]> git.saurik.com Git - wxWidgets.git/blame - configure
Manifest files for win64
[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"
bcaab0f9 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 RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S LNDIR CP_PR 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 DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
dee1a63f
MB
892 --enable-compat24 enable wxWidgets 2.4 compatibility
893 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1007 --enable-treebook use wxTreebook class
a848cd7e
SC
1008 --enable-treectrl use wxTreeCtrl class
1009 --enable-tipwindow use wxTipWindow class
1010 --enable-popupwin use wxPopUpWindow class
1011 --enable-commondlg use all common dialogs
1012 --enable-choicedlg use wxChoiceDialog
1013 --enable-coldlg use wxColourDialog
1014 --enable-filedlg use wxFileDialog
1015 --enable-finddlg use wxFindReplaceDialog
1016 --enable-fontdlg use wxFontDialog
1017 --enable-dirdlg use wxDirDialog
1018 --enable-msgdlg use wxMessageDialog
1019 --enable-numberdlg use wxNumberEntryDialog
1020 --enable-splash use wxSplashScreen
1021 --enable-textdlg use wxTextDialog
1022 --enable-tipdlg use startup tips
1023 --enable-progressdlg use wxProgressDialog
1024 --enable-wizarddlg use wxWizard
1025 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1026 --enable-miniframe use wxMiniFrame class
1027 --enable-tooltips use wxToolTip class
1028 --enable-splines use spline drawing code
fbe2ca43 1029 --enable-mousewheel use mousewheel
a848cd7e
SC
1030 --enable-validators use wxValidator and derived classes
1031 --enable-busyinfo use wxBusyInfo
4cb1d3da 1032 --enable-joystick use wxJoystick
38b4a946 1033 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1034 --enable-dragimage use wxDragImage
1035 --enable-accessibility enable accessibility support
38b4a946 1036 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1037 --enable-palette use wxPalette class
1038 --enable-image use wxImage class
1039 --enable-gif use gif images (GIF file format)
1040 --enable-pcx use pcx images (PCX file format)
1041 --enable-iff use iff images (IFF file format)
1042 --enable-pnm use pnm images (PNM file format)
1043 --enable-xpm use xpm images (XPM file format)
1044 --enable-icocur use Windows ICO and CUR formats
77ffb593 1045 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1046 --enable-vendor=VENDOR vendor name (win32 DLL only)
1047 --disable-largefile omit support for large files
1048 --disable-gtktest do not try to compile and run a test GTK+ program
1049 --disable-gtktest Do not try to compile and run a test GTK program
1050 --disable-sdltest Do not try to compile and run a test SDL program
1051 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1052 --disable-precomp-headers
1053 don't use precompiled headers even if compiler can
a848cd7e
SC
1054
1055Optional Packages:
1056 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1057 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1058 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1059 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1060 --with-motif use Motif/Lesstif
1061 --with-mac use Mac OS X
1062 --with-cocoa use Cocoa
1063 --with-wine use Wine
1064 --with-msw use MS-Windows
1065 --with-pm use OS/2 Presentation Manager
1066 --with-mgl use SciTech MGL
1067 --with-microwin use MicroWindows
1068 --with-x11 use X11
1069 --with-libpng use libpng (PNG image format)
1070 --with-libjpeg use libjpeg (JPEG file format)
1071 --with-libtiff use libtiff (TIFF file format)
1072 --with-libxpm use libxpm (XPM file format)
1073 --with-libmspack use libmspack (CHM help files loading)
1074 --with-sdl use SDL for audio on Unix
d51253e8 1075 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1076 --with-opengl use OpenGL (or Mesa)
1077 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1078 --with-regex enable support for wxRegEx class
1079 --with-zlib use zlib for LZW compression
1080 --with-odbc use the IODBC and wxODBC classes
1081 --with-expat enable XML support using expat parser
ceec2216 1082 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1083 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1084 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1085 --with-x use the X Window System
1086 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1087 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1088 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1089 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1090 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1091
1092Some influential environment variables:
dcc1b6ad
VS
1093 CC C compiler command
1094 CFLAGS C compiler flags
1095 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1096 nonstandard directory <lib dir>
1097 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1098 headers in a nonstandard directory <include dir>
1099 CPP C preprocessor
1100 CXX C++ compiler command
1101 CXXFLAGS C++ compiler flags
1102 CXXCPP C++ preprocessor
a848cd7e
SC
1103
1104Use these variables to override the choices made by `configure' or to help
1105it to find libraries and programs with nonstandard names/locations.
1106
77ffb593 1107Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1108_ACEOF
1109fi
1110
1111if test "$ac_init_help" = "recursive"; then
1112 # If there are subdirs, report their specific --help.
1113 ac_popdir=`pwd`
1114 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1115 test -d $ac_dir || continue
1116 ac_builddir=.
1117
1118if test "$ac_dir" != .; then
1119 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1120 # A "../" for each directory in $ac_dir_suffix.
1121 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1122else
1123 ac_dir_suffix= ac_top_builddir=
1124fi
1125
1126case $srcdir in
1127 .) # No --srcdir option. We are building in place.
1128 ac_srcdir=.
1129 if test -z "$ac_top_builddir"; then
1130 ac_top_srcdir=.
1131 else
1132 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1133 fi ;;
1134 [\\/]* | ?:[\\/]* ) # Absolute path.
1135 ac_srcdir=$srcdir$ac_dir_suffix;
1136 ac_top_srcdir=$srcdir ;;
1137 *) # Relative path.
1138 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1139 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1140esac
ac1cb8d3
VS
1141
1142# Do not use `cd foo && pwd` to compute absolute paths, because
1143# the directories may not exist.
1144case `pwd` in
1145.) ac_abs_builddir="$ac_dir";;
1146*)
1147 case "$ac_dir" in
1148 .) ac_abs_builddir=`pwd`;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1150 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1151 esac;;
1152esac
1153case $ac_abs_builddir in
1154.) ac_abs_top_builddir=${ac_top_builddir}.;;
1155*)
1156 case ${ac_top_builddir}. in
1157 .) ac_abs_top_builddir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1159 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1160 esac;;
1161esac
1162case $ac_abs_builddir in
1163.) ac_abs_srcdir=$ac_srcdir;;
1164*)
1165 case $ac_srcdir in
1166 .) ac_abs_srcdir=$ac_abs_builddir;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1168 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1169 esac;;
1170esac
1171case $ac_abs_builddir in
1172.) ac_abs_top_srcdir=$ac_top_srcdir;;
1173*)
1174 case $ac_top_srcdir in
1175 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1176 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1177 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1178 esac;;
1179esac
a848cd7e
SC
1180
1181 cd $ac_dir
1182 # Check for guested configure; otherwise get Cygnus style configure.
1183 if test -f $ac_srcdir/configure.gnu; then
1184 echo
1185 $SHELL $ac_srcdir/configure.gnu --help=recursive
1186 elif test -f $ac_srcdir/configure; then
1187 echo
1188 $SHELL $ac_srcdir/configure --help=recursive
1189 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1190 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1191 echo
1192 $ac_configure --help
1193 else
1194 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1195 fi
0093c2fc 1196 cd "$ac_popdir"
a848cd7e
SC
1197 done
1198fi
1199
1200test -n "$ac_init_help" && exit 0
1201if $ac_init_version; then
1202 cat <<\_ACEOF
dd8df4fc 1203wxWidgets configure 2.7.0
ac1cb8d3 1204generated by GNU Autoconf 2.59
a848cd7e 1205
ac1cb8d3 1206Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1207This configure script is free software; the Free Software Foundation
1208gives unlimited permission to copy, distribute and modify it.
1209_ACEOF
1210 exit 0
1211fi
1212exec 5>config.log
1213cat >&5 <<_ACEOF
1214This file contains any messages produced by compilers while
1215running configure, to aid debugging if configure makes a mistake.
1216
dd8df4fc 1217It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1218generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1219
1220 $ $0 $@
1221
1222_ACEOF
1223{
1224cat <<_ASUNAME
1225## --------- ##
1226## Platform. ##
1227## --------- ##
1228
1229hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1230uname -m = `(uname -m) 2>/dev/null || echo unknown`
1231uname -r = `(uname -r) 2>/dev/null || echo unknown`
1232uname -s = `(uname -s) 2>/dev/null || echo unknown`
1233uname -v = `(uname -v) 2>/dev/null || echo unknown`
1234
1235/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1236/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1237
1238/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1239/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1240/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1241hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1242/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1243/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1244/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1245
1246_ASUNAME
1247
1248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249for as_dir in $PATH
1250do
1251 IFS=$as_save_IFS
1252 test -z "$as_dir" && as_dir=.
1253 echo "PATH: $as_dir"
1254done
1255
1256} >&5
1257
1258cat >&5 <<_ACEOF
1259
1260
1261## ----------- ##
1262## Core tests. ##
1263## ----------- ##
1264
1265_ACEOF
1266
1267
1268# Keep a trace of the command line.
1269# Strip out --no-create and --no-recursion so they do not pile up.
1270# Strip out --silent because we don't want to record it for future runs.
1271# Also quote any args containing shell meta-characters.
1272# Make two passes to allow for proper duplicate-argument suppression.
1273ac_configure_args=
1274ac_configure_args0=
1275ac_configure_args1=
1276ac_sep=
1277ac_must_keep_next=false
1278for ac_pass in 1 2
1279do
1280 for ac_arg
1281 do
1282 case $ac_arg in
1283 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285 | -silent | --silent | --silen | --sile | --sil)
1286 continue ;;
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 esac
1290 case $ac_pass in
1291 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1292 2)
1293 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1294 if test $ac_must_keep_next = true; then
ac1cb8d3 1295 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1296 else
ac1cb8d3
VS
1297 case $ac_arg in
1298 *=* | --config-cache | -C | -disable-* | --disable-* \
1299 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1300 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1301 | -with-* | --with-* | -without-* | --without-* | --x)
1302 case "$ac_configure_args0 " in
1303 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1304 esac
1305 ;;
1306 -* ) ac_must_keep_next=true ;;
1307 esac
a848cd7e
SC
1308 fi
1309 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1310 # Get rid of the leading space.
1311 ac_sep=" "
1312 ;;
1313 esac
1314 done
1315done
1316$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1317$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1318
1319# When interrupted or exit'd, cleanup temporary files, and complete
1320# config.log. We remove comments because anyway the quotes in there
1321# would cause problems or look ugly.
1322# WARNING: Be sure not to use single quotes in there, as some shells,
1323# such as our DU 5.0 friend, will then `close' the trap.
1324trap 'exit_status=$?
1325 # Save into config.log some information that might help in debugging.
1326 {
1327 echo
1328
1329 cat <<\_ASBOX
1330## ---------------- ##
1331## Cache variables. ##
1332## ---------------- ##
1333_ASBOX
1334 echo
1335 # The following way of writing the cache mishandles newlines in values,
1336{
1337 (set) 2>&1 |
1338 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1339 *ac_space=\ *)
1340 sed -n \
ac1cb8d3
VS
1341 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1343 ;;
1344 *)
1345 sed -n \
ac1cb8d3 1346 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1347 ;;
1348 esac;
1349}
1350 echo
1351
1352 cat <<\_ASBOX
1353## ----------------- ##
1354## Output variables. ##
1355## ----------------- ##
1356_ASBOX
1357 echo
1358 for ac_var in $ac_subst_vars
1359 do
1360 eval ac_val=$`echo $ac_var`
1361 echo "$ac_var='"'"'$ac_val'"'"'"
1362 done | sort
1363 echo
1364
1365 if test -n "$ac_subst_files"; then
1366 cat <<\_ASBOX
1367## ------------- ##
1368## Output files. ##
1369## ------------- ##
1370_ASBOX
1371 echo
1372 for ac_var in $ac_subst_files
1373 do
1374 eval ac_val=$`echo $ac_var`
ac1cb8d3 1375 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1376 done | sort
1377 echo
1378 fi
1379
1380 if test -s confdefs.h; then
1381 cat <<\_ASBOX
1382## ----------- ##
1383## confdefs.h. ##
1384## ----------- ##
1385_ASBOX
1386 echo
1387 sed "/^$/d" confdefs.h | sort
1388 echo
1389 fi
1390 test "$ac_signal" != 0 &&
1391 echo "$as_me: caught signal $ac_signal"
1392 echo "$as_me: exit $exit_status"
1393 } >&5
ac1cb8d3 1394 rm -f core *.core &&
a848cd7e
SC
1395 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1396 exit $exit_status
1397 ' 0
1398for ac_signal in 1 2 13 15; do
1399 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1400done
1401ac_signal=0
1402
1403# confdefs.h avoids OS command line length limits that DEFS can exceed.
1404rm -rf conftest* confdefs.h
1405# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1406echo >confdefs.h
1407
1408# Predefined preprocessor variables.
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_NAME "$PACKAGE_NAME"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_VERSION "$PACKAGE_VERSION"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_STRING "$PACKAGE_STRING"
1427_ACEOF
1428
1429
1430cat >>confdefs.h <<_ACEOF
1431#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1432_ACEOF
1433
1434
1435# Let the site file select an alternate cache file if it wants to.
1436# Prefer explicitly selected file to automatically selected ones.
1437if test -z "$CONFIG_SITE"; then
1438 if test "x$prefix" != xNONE; then
1439 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1440 else
1441 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1442 fi
1443fi
1444for ac_site_file in $CONFIG_SITE; do
1445 if test -r "$ac_site_file"; then
1446 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1447echo "$as_me: loading site script $ac_site_file" >&6;}
1448 sed 's/^/| /' "$ac_site_file" >&5
1449 . "$ac_site_file"
1450 fi
1451done
1452
1453if test -r "$cache_file"; then
1454 # Some versions of bash will fail to source /dev/null (special
1455 # files actually), so we avoid doing that.
1456 if test -f "$cache_file"; then
1457 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1458echo "$as_me: loading cache $cache_file" >&6;}
1459 case $cache_file in
1460 [\\/]* | ?:[\\/]* ) . $cache_file;;
1461 *) . ./$cache_file;;
1462 esac
1463 fi
1464else
1465 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1466echo "$as_me: creating cache $cache_file" >&6;}
1467 >$cache_file
1468fi
1469
1470# Check that the precious variables saved in the cache have kept the same
1471# value.
1472ac_cache_corrupted=false
1473for ac_var in `(set) 2>&1 |
ac1cb8d3 1474 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1475 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1476 eval ac_new_set=\$ac_env_${ac_var}_set
1477 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1478 eval ac_new_val="\$ac_env_${ac_var}_value"
1479 case $ac_old_set,$ac_new_set in
1480 set,)
1481 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1482echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1483 ac_cache_corrupted=: ;;
1484 ,set)
1485 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1486echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1487 ac_cache_corrupted=: ;;
1488 ,);;
1489 *)
1490 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1491 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1492echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1493 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1494echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1495 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1496echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1497 ac_cache_corrupted=:
a848cd7e
SC
1498 fi;;
1499 esac
1500 # Pass precious variables to config.status.
1501 if test "$ac_new_set" = set; then
1502 case $ac_new_val in
1503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1504 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1505 *) ac_arg=$ac_var=$ac_new_val ;;
1506 esac
1507 case " $ac_configure_args " in
1508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1509 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1510 esac
1511 fi
1512done
1513if $ac_cache_corrupted; then
1514 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1515echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1516 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1517echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1518 { (exit 1); exit 1; }; }
1519fi
1520
1521ac_ext=c
1522ac_cpp='$CPP $CPPFLAGS'
1523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556ac_aux_dir=
1557for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1558 if test -f $ac_dir/install-sh; then
1559 ac_aux_dir=$ac_dir
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1561 break
1562 elif 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/shtool; then
1567 ac_aux_dir=$ac_dir
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1569 break
1570 fi
1571done
1572if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1574echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1575 { (exit 1); exit 1; }; }
1576fi
1577ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581# Make sure we can run config.sub.
1582$ac_config_sub sun4 >/dev/null 2>&1 ||
1583 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1584echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587echo "$as_me:$LINENO: checking build system type" >&5
1588echo $ECHO_N "checking build system type... $ECHO_C" >&6
1589if test "${ac_cv_build+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591else
1592 ac_cv_build_alias=$build_alias
1593test -z "$ac_cv_build_alias" &&
1594 ac_cv_build_alias=`$ac_config_guess`
1595test -z "$ac_cv_build_alias" &&
1596 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1597echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1598 { (exit 1); exit 1; }; }
1599ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1600 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1601echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1602 { (exit 1); exit 1; }; }
1603
1604fi
1605echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1606echo "${ECHO_T}$ac_cv_build" >&6
1607build=$ac_cv_build
1608build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611
1612
1613echo "$as_me:$LINENO: checking host system type" >&5
1614echo $ECHO_N "checking host system type... $ECHO_C" >&6
1615if test "${ac_cv_host+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1617else
1618 ac_cv_host_alias=$host_alias
1619test -z "$ac_cv_host_alias" &&
1620 ac_cv_host_alias=$ac_cv_build_alias
1621ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1622 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1623echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1624 { (exit 1); exit 1; }; }
1625
1626fi
1627echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1628echo "${ECHO_T}$ac_cv_host" >&6
1629host=$ac_cv_host
1630host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633
1634
1635echo "$as_me:$LINENO: checking target system type" >&5
1636echo $ECHO_N "checking target system type... $ECHO_C" >&6
1637if test "${ac_cv_target+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640 ac_cv_target_alias=$target_alias
1641test "x$ac_cv_target_alias" = "x" &&
1642 ac_cv_target_alias=$ac_cv_host_alias
1643ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1644 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1645echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1646 { (exit 1); exit 1; }; }
1647
1648fi
1649echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1650echo "${ECHO_T}$ac_cv_target" >&6
1651target=$ac_cv_target
1652target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1653target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1654target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1655
1656
1657# The aliases save the names the user supplied, while $host etc.
1658# will get canonicalized.
1659test -n "$target_alias" &&
1660 test "$program_prefix$program_suffix$program_transform_name" = \
1661 NONENONEs,x,x, &&
1662 program_prefix=${target_alias}-
1663
1664
1665
ceec2216 1666wx_major_version_number=2
dd8df4fc
VZ
1667wx_minor_version_number=7
1668wx_release_number=0
1669wx_subrelease_number=0
a848cd7e 1670
ceec2216
RL
1671WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1672WX_VERSION=$WX_RELEASE.$wx_release_number
1673WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1674
ceec2216 1675WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1676
a848cd7e
SC
1677
1678
1679
1680USE_UNIX=1
1681USE_OS2=0
1682USE_WIN32=0
1683USE_DOS=0
1684USE_BEOS=0
1685USE_MAC=0
1686
1687USE_AIX=
1688USE_BSD= USE_DARWIN= USE_FREEBSD=
1689USE_GNU= USE_HPUX=
1690USE_LINUX=
1691USE_NETBSD=
1692USE_OPENBSD=
1693USE_OSF= USE_SGI=
1694USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1695USE_ULTRIX=
1696USE_UNIXWARE=
1697
1698USE_ALPHA=
1699
1700NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1701
1702ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1703
1704DEFAULT_wxUSE_COCOA=0
1705DEFAULT_wxUSE_GTK=0
1706DEFAULT_wxUSE_MAC=0
1707DEFAULT_wxUSE_MGL=0
1708DEFAULT_wxUSE_MICROWIN=0
1709DEFAULT_wxUSE_MOTIF=0
1710DEFAULT_wxUSE_MSW=0
1711DEFAULT_wxUSE_PM=0
1712DEFAULT_wxUSE_X11=0
1713
1714DEFAULT_DEFAULT_wxUSE_COCOA=0
1715DEFAULT_DEFAULT_wxUSE_GTK=0
1716DEFAULT_DEFAULT_wxUSE_MAC=0
1717DEFAULT_DEFAULT_wxUSE_MGL=0
1718DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1719DEFAULT_DEFAULT_wxUSE_MOTIF=0
1720DEFAULT_DEFAULT_wxUSE_MSW=0
1721DEFAULT_DEFAULT_wxUSE_PM=0
1722DEFAULT_DEFAULT_wxUSE_X11=0
1723
1724PROGRAM_EXT=
1725SO_SUFFIX=so
1726SAMPLES_RPATH_FLAG=
1727SAMPLES_RPATH_POSTLINK=
1728
a03b8b04
RD
1729DEFAULT_STD_FLAG=yes
1730
a848cd7e
SC
1731case "${host}" in
1732 *-hp-hpux* )
1733 USE_HPUX=1
1734 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1735 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1736 SO_SUFFIX=sl
1737 cat >>confdefs.h <<\_ACEOF
1738#define __HPUX__ 1
1739_ACEOF
1740
2eef8513
VZ
1741
1742 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
a848cd7e
SC
1743 ;;
1744 *-*-linux* )
1745 USE_LINUX=1
1746 cat >>confdefs.h <<\_ACEOF
1747#define __LINUX__ 1
1748_ACEOF
1749
1750 TMP=`uname -m`
1751 if test "x$TMP" = "xalpha"; then
1752 USE_ALPHA=1
1753 cat >>confdefs.h <<\_ACEOF
1754#define __ALPHA__ 1
1755_ACEOF
1756
1757 fi
1758 DEFAULT_DEFAULT_wxUSE_GTK=1
1759 ;;
1760 *-*-gnu* | *-*-k*bsd*-gnu )
1761 USE_GNU=1
1762 TMP=`uname -m`
1763 if test "x$TMP" = "xalpha"; then
1764 USE_ALPHA=1
1765 cat >>confdefs.h <<\_ACEOF
1766#define __ALPHA__ 1
1767_ACEOF
1768
1769 fi
1770 DEFAULT_DEFAULT_wxUSE_GTK=1
1771 ;;
1772 *-*-irix5* | *-*-irix6* )
1773 USE_SGI=1
1774 USE_SVR4=1
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SGI__ 1
1777_ACEOF
1778
1779 cat >>confdefs.h <<\_ACEOF
1780#define __SVR4__ 1
1781_ACEOF
1782
1783 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1784 ;;
1785 *-*-solaris2* )
1786 USE_SUN=1
1787 USE_SOLARIS=1
1788 USE_SVR4=1
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SUN__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SOLARIS__ 1
1795_ACEOF
1796
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SVR4__ 1
1799_ACEOF
1800
1801 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1802 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1803 ;;
1804 *-*-sunos4* )
1805 USE_SUN=1
1806 USE_SUNOS=1
1807 USE_BSD=1
1808 cat >>confdefs.h <<\_ACEOF
1809#define __SUN__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __SUNOS__ 1
1814_ACEOF
1815
1816 cat >>confdefs.h <<\_ACEOF
1817#define __BSD__ 1
1818_ACEOF
1819
1820 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1821 ;;
1822 *-*-freebsd*)
1823 USE_BSD=1
1824 USE_FREEBSD=1
1825 cat >>confdefs.h <<\_ACEOF
1826#define __FREEBSD__ 1
1827_ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830#define __BSD__ 1
1831_ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_GTK=1
1834 ;;
1835 *-*-openbsd*)
1836 USE_BSD=1
1837 USE_OPENBSD=1
1838 cat >>confdefs.h <<\_ACEOF
1839#define __OPENBSD__ 1
1840_ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843#define __BSD__ 1
1844_ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_GTK=1
1847 ;;
1848 *-*-netbsd*)
1849 USE_BSD=1
1850 USE_NETBSD=1
1851 cat >>confdefs.h <<\_ACEOF
1852#define __NETBSD__ 1
1853_ACEOF
1854
1855 cat >>confdefs.h <<\_ACEOF
1856#define __BSD__ 1
1857_ACEOF
1858
1859 DEFAULT_DEFAULT_wxUSE_GTK=1
1860 ;;
1861 *-*-osf* )
1862 USE_ALPHA=1
1863 USE_OSF=1
1864 cat >>confdefs.h <<\_ACEOF
1865#define __ALPHA__ 1
1866_ACEOF
1867
1868 cat >>confdefs.h <<\_ACEOF
1869#define __OSF__ 1
1870_ACEOF
1871
1872 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1873 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1874 ;;
1875 *-*-dgux5* )
1876 USE_ALPHA=1
1877 USE_SVR4=1
1878 cat >>confdefs.h <<\_ACEOF
1879#define __ALPHA__ 1
1880_ACEOF
1881
1882 cat >>confdefs.h <<\_ACEOF
1883#define __SVR4__ 1
1884_ACEOF
1885
1886 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887 ;;
1888 *-*-sysv5* )
1889 USE_SYSV=1
1890 USE_SVR4=1
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SYSV__ 1
1893_ACEOF
1894
1895 cat >>confdefs.h <<\_ACEOF
1896#define __SVR4__ 1
1897_ACEOF
1898
1899 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1900 ;;
1901 *-*-aix* )
1902 USE_AIX=1
1903 USE_SYSV=1
1904 USE_SVR4=1
1905 SO_SUFFIX=a
1906 cat >>confdefs.h <<\_ACEOF
1907#define __AIX__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SYSV__ 1
1912_ACEOF
1913
1914 cat >>confdefs.h <<\_ACEOF
1915#define __SVR4__ 1
1916_ACEOF
1917
1918 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1919 ;;
1920
1921 *-*-*UnixWare*)
1922 USE_SYSV=1
1923 USE_SVR4=1
1924 USE_UNIXWARE=1
1925 cat >>confdefs.h <<\_ACEOF
1926#define __UNIXWARE__ 1
1927_ACEOF
1928
1929 ;;
1930
1931 *-*-cygwin* | *-*-mingw32* )
1932 SO_SUFFIX=dll
1933 PROGRAM_EXT=".exe"
a848cd7e 1934 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1935 DEFAULT_STD_FLAG=no
a848cd7e
SC
1936 ;;
1937
1938 *-pc-msdosdjgpp )
1939 USE_UNIX=0
1940 USE_DOS=1
1941 cat >>confdefs.h <<\_ACEOF
1942#define __DOS__ 1
1943_ACEOF
1944
1945 PROGRAM_EXT=".exe"
1946 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1947 ;;
1948
1949 *-pc-os2_emx | *-pc-os2-emx )
1950 cat >>confdefs.h <<\_ACEOF
1951#define __EMX__ 1
1952_ACEOF
1953
1954 USE_OS2=1
1955 cat >>confdefs.h <<\_ACEOF
1956#define __OS2__ 1
1957_ACEOF
1958
1959 PROGRAM_EXT=".exe"
1960 DEFAULT_DEFAULT_wxUSE_PM=1
1961 CXX=gcc
1962 LDFLAGS="$LDFLAGS -Zcrtdll"
1963 ac_executable_extensions=".exe"
1964 export ac_executable_extensions
1965 ac_save_IFS="$IFS"
1966 IFS='\\'
1967 ac_TEMP_PATH=
1968 for ac_dir in $PATH; do
1969 IFS=$ac_save_IFS
1970 if test -z "$ac_TEMP_PATH"; then
1971 ac_TEMP_PATH="$ac_dir"
1972 else
1973 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1974 fi
1975 done
1976 export PATH="$ac_TEMP_PATH"
1977 unset ac_TEMP_PATH
a03b8b04 1978 DEFAULT_STD_FLAG=no
a848cd7e
SC
1979 ;;
1980
cfda0ea8 1981 *-*-darwin* )
a848cd7e
SC
1982 USE_BSD=1
1983 USE_DARWIN=1
1984 SO_SUFFIX=dylib
1985 cat >>confdefs.h <<\_ACEOF
1986#define __BSD__ 1
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define __DARWIN__ 1
a848cd7e
SC
1991_ACEOF
1992
1993 cat >>confdefs.h <<\_ACEOF
1994#define TARGET_CARBON 1
1995_ACEOF
1996
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1998 DEFAULT_STD_FLAG=no
a848cd7e 1999 ;;
1e9e8aba
DE
2000 powerpc-apple-macos* )
2001 USE_UNIX=0
2002 ac_cv_c_bigendian=yes
2003 SO_SUFFIX=shlib
2004 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2005 DEFAULT_STD_FLAG=no
1e9e8aba 2006 ;;
a848cd7e
SC
2007
2008 *-*-beos* )
2009 USE_BEOS=1
2010 cat >>confdefs.h <<\_ACEOF
2011#define __BEOS__ 1
2012_ACEOF
2013
2014 ;;
2015
2016 *)
2017 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2018echo "$as_me: error: unknown system type ${host}." >&2;}
2019 { (exit 1); exit 1; }; }
2020esac
2021
2022
2023
2024
2025 wx_arg_cache_file="configarg.cache"
2026 echo "loading argument cache $wx_arg_cache_file"
2027 rm -f ${wx_arg_cache_file}.tmp
2028 touch ${wx_arg_cache_file}.tmp
2029 touch ${wx_arg_cache_file}
2030
2031
2032DEBUG_CONFIGURE=0
2033if test $DEBUG_CONFIGURE = 1; then
2034 DEFAULT_wxUSE_UNIVERSAL=no
2035 DEFAULT_wxUSE_STL=no
2036
2037 DEFAULT_wxUSE_NANOX=no
2038
2039 DEFAULT_wxUSE_THREADS=yes
2040
2041 DEFAULT_wxUSE_SHARED=yes
2042 DEFAULT_wxUSE_OPTIMISE=no
2043 DEFAULT_wxUSE_PROFILE=no
2044 DEFAULT_wxUSE_NO_DEPS=no
2045 DEFAULT_wxUSE_NO_RTTI=no
2046 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2047 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2048 DEFAULT_wxUSE_PERMISSIVE=no
2049 DEFAULT_wxUSE_DEBUG_FLAG=yes
2050 DEFAULT_wxUSE_DEBUG_INFO=yes
2051 DEFAULT_wxUSE_DEBUG_GDB=yes
2052 DEFAULT_wxUSE_MEM_TRACING=no
2053 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2054 DEFAULT_wxUSE_DMALLOC=no
2055 DEFAULT_wxUSE_APPLE_IEEE=no
2056
2057 DEFAULT_wxUSE_EXCEPTIONS=no
2058 DEFAULT_wxUSE_LOG=yes
2059 DEFAULT_wxUSE_LOGWINDOW=no
2060 DEFAULT_wxUSE_LOGGUI=no
2061 DEFAULT_wxUSE_LOGDIALOG=no
2062
2063 DEFAULT_wxUSE_GUI=yes
2064 DEFAULT_wxUSE_CONTROLS=no
2065
2066 DEFAULT_wxUSE_REGEX=no
2067 DEFAULT_wxUSE_XML=no
2068 DEFAULT_wxUSE_EXPAT=no
2069 DEFAULT_wxUSE_ZLIB=no
2070 DEFAULT_wxUSE_LIBPNG=no
2071 DEFAULT_wxUSE_LIBJPEG=no
2072 DEFAULT_wxUSE_LIBTIFF=no
2073 DEFAULT_wxUSE_LIBXPM=no
2074 DEFAULT_wxUSE_LIBMSPACK=no
2075 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2076 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2077 DEFAULT_wxUSE_ODBC=no
2078 DEFAULT_wxUSE_OPENGL=no
2079
2080 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2081 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2082 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2083 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2084 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2085 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2086 DEFAULT_wxUSE_CMDLINE_PARSER=no
2087 DEFAULT_wxUSE_DATETIME=no
2088 DEFAULT_wxUSE_TIMER=no
2089 DEFAULT_wxUSE_STOPWATCH=no
2090 DEFAULT_wxUSE_FILE=no
2091 DEFAULT_wxUSE_FFILE=no
07158944 2092 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2093 DEFAULT_wxUSE_TEXTBUFFER=no
2094 DEFAULT_wxUSE_TEXTFILE=no
2095 DEFAULT_wxUSE_SOUND=no
3b57de8b 2096 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2097 DEFAULT_wxUSE_INTL=no
2098 DEFAULT_wxUSE_CONFIG=no
2099 DEFAULT_wxUSE_FONTMAP=no
2100 DEFAULT_wxUSE_STREAMS=no
2101 DEFAULT_wxUSE_SOCKETS=no
2102 DEFAULT_wxUSE_OLE=no
2103 DEFAULT_wxUSE_DATAOBJ=no
2104 DEFAULT_wxUSE_DIALUP_MANAGER=no
2105 DEFAULT_wxUSE_JOYSTICK=no
2106 DEFAULT_wxUSE_DYNLIB_CLASS=no
2107 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2108 DEFAULT_wxUSE_LONGLONG=no
2109 DEFAULT_wxUSE_GEOMETRY=no
2110
2111 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2112 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2113 DEFAULT_wxUSE_POSTSCRIPT=no
2114
2115 DEFAULT_wxUSE_CLIPBOARD=no
2116 DEFAULT_wxUSE_TOOLTIPS=no
2117 DEFAULT_wxUSE_DRAG_AND_DROP=no
2118 DEFAULT_wxUSE_DRAGIMAGE=no
2119 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2120 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2121
8a7b1113 2122 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2123 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2124 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2125 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2126
2127 DEFAULT_wxUSE_RESOURCES=no
2128 DEFAULT_wxUSE_CONSTRAINTS=no
2129 DEFAULT_wxUSE_IPC=no
2130 DEFAULT_wxUSE_HELP=no
2131 DEFAULT_wxUSE_MS_HTML_HELP=no
2132 DEFAULT_wxUSE_WXHTML_HELP=no
2133 DEFAULT_wxUSE_TREELAYOUT=no
2134 DEFAULT_wxUSE_METAFILE=no
2135 DEFAULT_wxUSE_MIMETYPE=no
2136 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2137 DEFAULT_wxUSE_PROTOCOL=no
2138 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2139 DEFAULT_wxUSE_PROTOCOL_FTP=no
2140 DEFAULT_wxUSE_PROTOCOL_FILE=no
2141 DEFAULT_wxUSE_URL=no
2142
2143 DEFAULT_wxUSE_COMMONDLGS=no
2144 DEFAULT_wxUSE_CHOICEDLG=no
2145 DEFAULT_wxUSE_COLOURDLG=no
2146 DEFAULT_wxUSE_DIRDLG=no
2147 DEFAULT_wxUSE_FILEDLG=no
2148 DEFAULT_wxUSE_FINDREPLDLG=no
2149 DEFAULT_wxUSE_FONTDLG=no
2150 DEFAULT_wxUSE_MSGDLG=no
2151 DEFAULT_wxUSE_NUMBERDLG=no
2152 DEFAULT_wxUSE_TEXTDLG=no
2153 DEFAULT_wxUSE_SPLASH=no
2154 DEFAULT_wxUSE_STARTUP_TIPS=no
2155 DEFAULT_wxUSE_PROGRESSDLG=no
2156 DEFAULT_wxUSE_WIZARDDLG=no
2157
2158 DEFAULT_wxUSE_MENUS=no
2159 DEFAULT_wxUSE_MINIFRAME=no
2160 DEFAULT_wxUSE_HTML=no
9a8f0513 2161 DEFAULT_wxUSE_XRC=no
646b6ec1 2162 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2163 DEFAULT_wxUSE_FILESYSTEM=no
2164 DEFAULT_wxUSE_FS_INET=no
2165 DEFAULT_wxUSE_FS_ZIP=no
2166 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2167 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2168 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2169 DEFAULT_wxUSE_VALIDATORS=no
2170
2171 DEFAULT_wxUSE_ACCEL=no
2172 DEFAULT_wxUSE_BUTTON=no
2173 DEFAULT_wxUSE_BMPBUTTON=no
2174 DEFAULT_wxUSE_CALCTRL=no
2175 DEFAULT_wxUSE_CARET=no
2176 DEFAULT_wxUSE_CHECKBOX=no
2177 DEFAULT_wxUSE_CHECKLST=no
2178 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2179 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2180 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2181 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2182 DEFAULT_wxUSE_DISPLAY=no
2183 DEFAULT_wxUSE_GAUGE=no
2184 DEFAULT_wxUSE_GRID=no
2185 DEFAULT_wxUSE_IMAGLIST=no
2186 DEFAULT_wxUSE_LISTBOOK=no
2187 DEFAULT_wxUSE_LISTBOX=no
2188 DEFAULT_wxUSE_LISTCTRL=no
2189 DEFAULT_wxUSE_NOTEBOOK=no
2190 DEFAULT_wxUSE_RADIOBOX=no
2191 DEFAULT_wxUSE_RADIOBTN=no
2192 DEFAULT_wxUSE_SASH=no
2193 DEFAULT_wxUSE_SCROLLBAR=no
2194 DEFAULT_wxUSE_SLIDER=no
2195 DEFAULT_wxUSE_SPINBTN=no
2196 DEFAULT_wxUSE_SPINCTRL=no
2197 DEFAULT_wxUSE_SPLITTER=no
2198 DEFAULT_wxUSE_STATBMP=no
2199 DEFAULT_wxUSE_STATBOX=no
2200 DEFAULT_wxUSE_STATLINE=no
2201 DEFAULT_wxUSE_STATTEXT=no
2202 DEFAULT_wxUSE_STATUSBAR=yes
2203 DEFAULT_wxUSE_TABDIALOG=no
2204 DEFAULT_wxUSE_TEXTCTRL=no
2205 DEFAULT_wxUSE_TOGGLEBTN=no
2206 DEFAULT_wxUSE_TOOLBAR=no
2207 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2208 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2209 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
2210 DEFAULT_wxUSE_TREECTRL=no
2211 DEFAULT_wxUSE_POPUPWIN=no
2212 DEFAULT_wxUSE_TIPWINDOW=no
2213
2214 DEFAULT_wxUSE_UNICODE=no
2215 DEFAULT_wxUSE_UNICODE_MSLU=no
2216 DEFAULT_wxUSE_WCSRTOMBS=no
2217
2218 DEFAULT_wxUSE_PALETTE=no
2219 DEFAULT_wxUSE_IMAGE=no
2220 DEFAULT_wxUSE_GIF=no
2221 DEFAULT_wxUSE_PCX=no
2222 DEFAULT_wxUSE_PNM=no
2223 DEFAULT_wxUSE_IFF=no
2224 DEFAULT_wxUSE_XPM=no
2225 DEFAULT_wxUSE_ICO_CUR=no
2226 DEFAULT_wxUSE_ACCESSIBILITY=no
2227
2228 DEFAULT_wxUSE_MONOLITHIC=no
2229 DEFAULT_wxUSE_PLUGINS=no
2230 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2231else
2232 DEFAULT_wxUSE_UNIVERSAL=no
2233 DEFAULT_wxUSE_STL=no
2234
2235 DEFAULT_wxUSE_NANOX=no
2236
2237 DEFAULT_wxUSE_THREADS=yes
2238
2239 DEFAULT_wxUSE_SHARED=yes
2240 DEFAULT_wxUSE_OPTIMISE=yes
2241 DEFAULT_wxUSE_PROFILE=no
2242 DEFAULT_wxUSE_NO_DEPS=no
2243 DEFAULT_wxUSE_NO_RTTI=no
2244 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2245 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2246 DEFAULT_wxUSE_PERMISSIVE=no
2247 DEFAULT_wxUSE_DEBUG_FLAG=no
2248 DEFAULT_wxUSE_DEBUG_INFO=no
2249 DEFAULT_wxUSE_DEBUG_GDB=no
2250 DEFAULT_wxUSE_MEM_TRACING=no
2251 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2252 DEFAULT_wxUSE_DMALLOC=no
2253 DEFAULT_wxUSE_APPLE_IEEE=yes
2254
2255 DEFAULT_wxUSE_EXCEPTIONS=yes
2256 DEFAULT_wxUSE_LOG=yes
2257 DEFAULT_wxUSE_LOGWINDOW=yes
2258 DEFAULT_wxUSE_LOGGUI=yes
2259 DEFAULT_wxUSE_LOGDIALOG=yes
2260
2261 DEFAULT_wxUSE_GUI=yes
2262
2263 DEFAULT_wxUSE_REGEX=yes
2264 DEFAULT_wxUSE_XML=yes
2265 DEFAULT_wxUSE_EXPAT=yes
2266 DEFAULT_wxUSE_ZLIB=yes
2267 DEFAULT_wxUSE_LIBPNG=yes
2268 DEFAULT_wxUSE_LIBJPEG=yes
2269 DEFAULT_wxUSE_LIBTIFF=yes
2270 DEFAULT_wxUSE_LIBXPM=yes
2271 DEFAULT_wxUSE_LIBMSPACK=yes
2272 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2273 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2274 DEFAULT_wxUSE_ODBC=no
52cb607e 2275 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2276
2277 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2278 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2279 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2280 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2281 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2282 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2283 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2284 DEFAULT_wxUSE_DATETIME=yes
2285 DEFAULT_wxUSE_TIMER=yes
2286 DEFAULT_wxUSE_STOPWATCH=yes
2287 DEFAULT_wxUSE_FILE=yes
2288 DEFAULT_wxUSE_FFILE=yes
07158944 2289 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2290 DEFAULT_wxUSE_TEXTBUFFER=yes
2291 DEFAULT_wxUSE_TEXTFILE=yes
2292 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2293 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2294 DEFAULT_wxUSE_INTL=yes
2295 DEFAULT_wxUSE_CONFIG=yes
2296 DEFAULT_wxUSE_FONTMAP=yes
2297 DEFAULT_wxUSE_STREAMS=yes
2298 DEFAULT_wxUSE_SOCKETS=yes
2299 DEFAULT_wxUSE_OLE=yes
2300 DEFAULT_wxUSE_DATAOBJ=yes
2301 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2302 DEFAULT_wxUSE_JOYSTICK=yes
2303 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2304 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2305 DEFAULT_wxUSE_LONGLONG=yes
2306 DEFAULT_wxUSE_GEOMETRY=yes
2307
2308 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2309 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2310 DEFAULT_wxUSE_POSTSCRIPT=yes
2311
2312 DEFAULT_wxUSE_CLIPBOARD=yes
2313 DEFAULT_wxUSE_TOOLTIPS=yes
2314 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2315 DEFAULT_wxUSE_DRAGIMAGE=yes
2316 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2317 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2318
8a7b1113 2319 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2320 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2321 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2322 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2323
2324 DEFAULT_wxUSE_RESOURCES=no
2325 DEFAULT_wxUSE_CONSTRAINTS=yes
2326 DEFAULT_wxUSE_IPC=yes
2327 DEFAULT_wxUSE_HELP=yes
2328 DEFAULT_wxUSE_MS_HTML_HELP=yes
2329 DEFAULT_wxUSE_WXHTML_HELP=yes
2330 DEFAULT_wxUSE_TREELAYOUT=yes
2331 DEFAULT_wxUSE_METAFILE=yes
2332 DEFAULT_wxUSE_MIMETYPE=yes
2333 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2334 DEFAULT_wxUSE_PROTOCOL=yes
2335 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2336 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2337 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2338 DEFAULT_wxUSE_URL=yes
2339
2340 DEFAULT_wxUSE_COMMONDLGS=yes
2341 DEFAULT_wxUSE_CHOICEDLG=yes
2342 DEFAULT_wxUSE_COLOURDLG=yes
2343 DEFAULT_wxUSE_DIRDLG=yes
2344 DEFAULT_wxUSE_FILEDLG=yes
2345 DEFAULT_wxUSE_FINDREPLDLG=yes
2346 DEFAULT_wxUSE_FONTDLG=yes
2347 DEFAULT_wxUSE_MSGDLG=yes
2348 DEFAULT_wxUSE_NUMBERDLG=yes
2349 DEFAULT_wxUSE_TEXTDLG=yes
2350 DEFAULT_wxUSE_SPLASH=yes
2351 DEFAULT_wxUSE_STARTUP_TIPS=yes
2352 DEFAULT_wxUSE_PROGRESSDLG=yes
2353 DEFAULT_wxUSE_WIZARDDLG=yes
2354
2355 DEFAULT_wxUSE_MENUS=yes
2356 DEFAULT_wxUSE_MINIFRAME=yes
2357 DEFAULT_wxUSE_HTML=yes
9a8f0513 2358 DEFAULT_wxUSE_XRC=yes
646b6ec1 2359 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2360 DEFAULT_wxUSE_FILESYSTEM=yes
2361 DEFAULT_wxUSE_FS_INET=yes
2362 DEFAULT_wxUSE_FS_ZIP=yes
2363 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2364 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2365 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2366 DEFAULT_wxUSE_VALIDATORS=yes
2367
2368 DEFAULT_wxUSE_ACCEL=yes
2369 DEFAULT_wxUSE_BUTTON=yes
2370 DEFAULT_wxUSE_BMPBUTTON=yes
2371 DEFAULT_wxUSE_CALCTRL=yes
2372 DEFAULT_wxUSE_CARET=yes
2373 DEFAULT_wxUSE_CHECKBOX=yes
2374 DEFAULT_wxUSE_CHECKLST=yes
2375 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2376 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2377 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2378 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2379 DEFAULT_wxUSE_DISPLAY=yes
2380 DEFAULT_wxUSE_GAUGE=yes
2381 DEFAULT_wxUSE_GRID=yes
2382 DEFAULT_wxUSE_IMAGLIST=yes
2383 DEFAULT_wxUSE_LISTBOOK=yes
2384 DEFAULT_wxUSE_LISTBOX=yes
2385 DEFAULT_wxUSE_LISTCTRL=yes
2386 DEFAULT_wxUSE_NOTEBOOK=yes
2387 DEFAULT_wxUSE_RADIOBOX=yes
2388 DEFAULT_wxUSE_RADIOBTN=yes
2389 DEFAULT_wxUSE_SASH=yes
2390 DEFAULT_wxUSE_SCROLLBAR=yes
2391 DEFAULT_wxUSE_SLIDER=yes
2392 DEFAULT_wxUSE_SPINBTN=yes
2393 DEFAULT_wxUSE_SPINCTRL=yes
2394 DEFAULT_wxUSE_SPLITTER=yes
2395 DEFAULT_wxUSE_STATBMP=yes
2396 DEFAULT_wxUSE_STATBOX=yes
2397 DEFAULT_wxUSE_STATLINE=yes
2398 DEFAULT_wxUSE_STATTEXT=yes
2399 DEFAULT_wxUSE_STATUSBAR=yes
2400 DEFAULT_wxUSE_TABDIALOG=no
2401 DEFAULT_wxUSE_TEXTCTRL=yes
2402 DEFAULT_wxUSE_TOGGLEBTN=yes
2403 DEFAULT_wxUSE_TOOLBAR=yes
2404 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2405 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2406 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
2407 DEFAULT_wxUSE_TREECTRL=yes
2408 DEFAULT_wxUSE_POPUPWIN=yes
2409 DEFAULT_wxUSE_TIPWINDOW=yes
2410
78de529b 2411 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2412 DEFAULT_wxUSE_UNICODE_MSLU=yes
2413 DEFAULT_wxUSE_WCSRTOMBS=no
2414
2415 DEFAULT_wxUSE_PALETTE=yes
2416 DEFAULT_wxUSE_IMAGE=yes
2417 DEFAULT_wxUSE_GIF=yes
2418 DEFAULT_wxUSE_PCX=yes
2419 DEFAULT_wxUSE_IFF=no
2420 DEFAULT_wxUSE_PNM=yes
2421 DEFAULT_wxUSE_XPM=yes
2422 DEFAULT_wxUSE_ICO_CUR=yes
2423 DEFAULT_wxUSE_ACCESSIBILITY=no
2424
2425 DEFAULT_wxUSE_MONOLITHIC=no
2426 DEFAULT_wxUSE_PLUGINS=no
2427 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2428
f34ca037 2429 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2430fi
2431
2432
2433
f34ca037 2434
a848cd7e
SC
2435for toolkit in `echo $ALL_TOOLKITS`; do
2436 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2437 if test "x$LINE" != "x" ; then
2438 has_toolkit_in_cache=1
2439 eval "DEFAULT_$LINE"
2440 eval "CACHE_$toolkit=1"
f34ca037
MW
2441
2442 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2443 if test "x$LINE" != "x" ; then
2444 eval "DEFAULT_$LINE"
2445 fi
a848cd7e
SC
2446 fi
2447done
2448
2449
2450
2451 enablestring=
2452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2453echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2454 no_cache=0
2455 # Check whether --enable-gui or --disable-gui was given.
2456if test "${enable_gui+set}" = set; then
2457 enableval="$enable_gui"
2458
2459 if test "$enableval" = yes; then
2460 ac_cv_use_gui='wxUSE_GUI=yes'
2461 else
2462 ac_cv_use_gui='wxUSE_GUI=no'
2463 fi
2464
2465else
2466
2467 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2468 if test "x$LINE" != x ; then
2469 eval "DEFAULT_$LINE"
2470 else
2471 no_cache=1
2472 fi
2473
2474 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2475
2476fi;
2477
2478 eval "$ac_cv_use_gui"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_GUI" = yes; then
2484 echo "$as_me:$LINENO: result: yes" >&5
2485echo "${ECHO_T}yes" >&6
2486 else
2487 echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6
2489 fi
2490
2491
2492 enablestring=
2493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2494echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2495 no_cache=0
2496 # Check whether --enable-monolithic or --disable-monolithic was given.
2497if test "${enable_monolithic+set}" = set; then
2498 enableval="$enable_monolithic"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2502 else
2503 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2504 fi
2505
2506else
2507
2508 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2516
2517fi;
2518
2519 eval "$ac_cv_use_monolithic"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_MONOLITHIC" = yes; then
2525 echo "$as_me:$LINENO: result: yes" >&5
2526echo "${ECHO_T}yes" >&6
2527 else
2528 echo "$as_me:$LINENO: result: no" >&5
2529echo "${ECHO_T}no" >&6
2530 fi
2531
2532
2533 enablestring=
2534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2535echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2536 no_cache=0
2537 # Check whether --enable-plugins or --disable-plugins was given.
2538if test "${enable_plugins+set}" = set; then
2539 enableval="$enable_plugins"
2540
2541 if test "$enableval" = yes; then
2542 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2543 else
2544 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2545 fi
2546
2547else
2548
2549 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2557
2558fi;
2559
2560 eval "$ac_cv_use_plugins"
2561 if test "$no_cache" != 1; then
2562 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2563 fi
2564
2565 if test "$wxUSE_PLUGINS" = yes; then
2566 echo "$as_me:$LINENO: result: yes" >&5
2567echo "${ECHO_T}yes" >&6
2568 else
2569 echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6
2571 fi
2572
2573
1c14217d
VZ
2574 withstring=without
2575 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2576echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2577 no_cache=0
2578
2579# Check whether --with-subdirs or --without-subdirs was given.
2580if test "${with_subdirs+set}" = set; then
2581 withval="$with_subdirs"
2582
2583 if test "$withval" = yes; then
2584 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2585 else
2586 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2587 fi
2588
2589else
2590
2591 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2592 if test "x$LINE" != x ; then
2593 eval "DEFAULT_$LINE"
2594 else
2595 no_cache=1
2596 fi
2597
2598 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2599
2600fi;
2601
2602 eval "$ac_cv_use_subdirs"
2603 if test "$no_cache" != 1; then
2604 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2605 fi
2606
2607 if test "$wxWITH_SUBDIRS" = yes; then
2608 echo "$as_me:$LINENO: result: yes" >&5
2609echo "${ECHO_T}yes" >&6
2610 else
2611 echo "$as_me:$LINENO: result: no" >&5
2612echo "${ECHO_T}no" >&6
2613 fi
2614
2615
a848cd7e
SC
2616if test "$wxUSE_GUI" = "yes"; then
2617
2618
2619 enablestring=
2620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2621echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2622 no_cache=0
2623 # Check whether --enable-universal or --disable-universal was given.
2624if test "${enable_universal+set}" = set; then
2625 enableval="$enable_universal"
2626
2627 if test "$enableval" = yes; then
2628 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2629 else
2630 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2631 fi
2632
2633else
2634
2635 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2636 if test "x$LINE" != x ; then
2637 eval "DEFAULT_$LINE"
2638 else
2639 no_cache=1
2640 fi
2641
2642 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2643
2644fi;
2645
2646 eval "$ac_cv_use_universal"
2647 if test "$no_cache" != 1; then
2648 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2649 fi
2650
2651 if test "$wxUSE_UNIVERSAL" = yes; then
2652 echo "$as_me:$LINENO: result: yes" >&5
2653echo "${ECHO_T}yes" >&6
2654 else
2655 echo "$as_me:$LINENO: result: no" >&5
2656echo "${ECHO_T}no" >&6
2657 fi
2658
2659
2660# Check whether --with-gtk or --without-gtk was given.
2661if test "${with_gtk+set}" = set; then
2662 withval="$with_gtk"
2663 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2664fi;
2665
2666# Check whether --with-motif or --without-motif was given.
2667if test "${with_motif+set}" = set; then
2668 withval="$with_motif"
2669 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2670fi;
2671
2672# Check whether --with-mac or --without-mac was given.
2673if test "${with_mac+set}" = set; then
2674 withval="$with_mac"
c228d3a4 2675 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2676fi;
2677
2678# Check whether --with-cocoa or --without-cocoa was given.
2679if test "${with_cocoa+set}" = set; then
2680 withval="$with_cocoa"
c228d3a4 2681 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2682fi;
2683
2684# Check whether --with-wine or --without-wine was given.
2685if test "${with_wine+set}" = set; then
2686 withval="$with_wine"
2687 wxUSE_WINE="$withval" CACHE_WINE=1
2688fi;
2689
2690# Check whether --with-msw or --without-msw was given.
2691if test "${with_msw+set}" = set; then
2692 withval="$with_msw"
2693 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2694fi;
2695
2696# Check whether --with-pm or --without-pm was given.
2697if test "${with_pm+set}" = set; then
2698 withval="$with_pm"
2699 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2700fi;
2701
2702# Check whether --with-mgl or --without-mgl was given.
2703if test "${with_mgl+set}" = set; then
2704 withval="$with_mgl"
2705 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2706fi;
2707
2708# Check whether --with-microwin or --without-microwin was given.
2709if test "${with_microwin+set}" = set; then
2710 withval="$with_microwin"
2711 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2712fi;
2713
2714# Check whether --with-x11 or --without-x11 was given.
2715if test "${with_x11+set}" = set; then
2716 withval="$with_x11"
2717 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2718fi;
2719
2720 enablestring=
2721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2722echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2723 no_cache=0
2724 # Check whether --enable-nanox or --disable-nanox was given.
2725if test "${enable_nanox+set}" = set; then
2726 enableval="$enable_nanox"
2727
2728 if test "$enableval" = yes; then
2729 ac_cv_use_nanox='wxUSE_NANOX=yes'
2730 else
2731 ac_cv_use_nanox='wxUSE_NANOX=no'
2732 fi
2733
2734else
2735
2736 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2737 if test "x$LINE" != x ; then
2738 eval "DEFAULT_$LINE"
2739 else
2740 no_cache=1
2741 fi
2742
2743 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2744
2745fi;
2746
2747 eval "$ac_cv_use_nanox"
2748 if test "$no_cache" != 1; then
2749 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2750 fi
2751
2752 if test "$wxUSE_NANOX" = yes; then
2753 echo "$as_me:$LINENO: result: yes" >&5
2754echo "${ECHO_T}yes" >&6
2755 else
2756 echo "$as_me:$LINENO: result: no" >&5
2757echo "${ECHO_T}no" >&6
2758 fi
2759
2760
f34ca037
MW
2761# Check whether --enable-gtk2 or --disable-gtk2 was given.
2762if test "${enable_gtk2+set}" = set; then
2763 enableval="$enable_gtk2"
2764 wxUSE_GTK2="$enableval"
2765fi;
a848cd7e 2766
a848cd7e
SC
2767 enablestring=
2768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2769echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2770 no_cache=0
2771 # Check whether --enable-gpe or --disable-gpe was given.
2772if test "${enable_gpe+set}" = set; then
2773 enableval="$enable_gpe"
2774
2775 if test "$enableval" = yes; then
2776 ac_cv_use_gpe='wxUSE_GPE=yes'
2777 else
2778 ac_cv_use_gpe='wxUSE_GPE=no'
2779 fi
2780
2781else
2782
2783 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2784 if test "x$LINE" != x ; then
2785 eval "DEFAULT_$LINE"
2786 else
2787 no_cache=1
2788 fi
2789
2790 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2791
2792fi;
2793
2794 eval "$ac_cv_use_gpe"
2795 if test "$no_cache" != 1; then
2796 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2797 fi
2798
2799 if test "$wxUSE_GPE" = yes; then
2800 echo "$as_me:$LINENO: result: yes" >&5
2801echo "${ECHO_T}yes" >&6
2802 else
2803 echo "$as_me:$LINENO: result: no" >&5
2804echo "${ECHO_T}no" >&6
2805 fi
2806
2807
2808
2809 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2810echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2811 no_cache=0
2812
2813# Check whether --with-libpng or --without-libpng was given.
2814if test "${with_libpng+set}" = set; then
2815 withval="$with_libpng"
2816
2817 if test "$withval" = yes; then
2818 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2819 elif test "$withval" = no; then
2820 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2821 elif test "$withval" = sys; then
2822 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2823 elif test "$withval" = builtin; then
2824 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2825 else
2826 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2827echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2828 { (exit 1); exit 1; }; }
2829 fi
2830
2831else
2832
2833 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2834 if test "x$LINE" != x ; then
2835 eval "DEFAULT_$LINE"
2836 else
2837 no_cache=1
2838 fi
2839
2840 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2841
2842fi;
2843
2844 eval "$ac_cv_use_libpng"
2845 if test "$no_cache" != 1; then
2846 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2847 fi
2848
2849 if test "$wxUSE_LIBPNG" = yes; then
2850 echo "$as_me:$LINENO: result: yes" >&5
2851echo "${ECHO_T}yes" >&6
2852 elif test "$wxUSE_LIBPNG" = no; then
2853 echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6
2855 elif test "$wxUSE_LIBPNG" = sys; then
2856 echo "$as_me:$LINENO: result: system version" >&5
2857echo "${ECHO_T}system version" >&6
2858 elif test "$wxUSE_LIBPNG" = builtin; then
2859 echo "$as_me:$LINENO: result: builtin version" >&5
2860echo "${ECHO_T}builtin version" >&6
2861 else
2862 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2863echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866
2867
2868 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2869echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2870 no_cache=0
2871
2872# Check whether --with-libjpeg or --without-libjpeg was given.
2873if test "${with_libjpeg+set}" = set; then
2874 withval="$with_libjpeg"
2875
2876 if test "$withval" = yes; then
2877 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2878 elif test "$withval" = no; then
2879 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2880 elif test "$withval" = sys; then
2881 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2882 elif test "$withval" = builtin; then
2883 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2884 else
2885 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2886echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2887 { (exit 1); exit 1; }; }
2888 fi
2889
2890else
2891
2892 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2893 if test "x$LINE" != x ; then
2894 eval "DEFAULT_$LINE"
2895 else
2896 no_cache=1
2897 fi
2898
2899 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2900
2901fi;
2902
2903 eval "$ac_cv_use_libjpeg"
2904 if test "$no_cache" != 1; then
2905 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2906 fi
2907
2908 if test "$wxUSE_LIBJPEG" = yes; then
2909 echo "$as_me:$LINENO: result: yes" >&5
2910echo "${ECHO_T}yes" >&6
2911 elif test "$wxUSE_LIBJPEG" = no; then
2912 echo "$as_me:$LINENO: result: no" >&5
2913echo "${ECHO_T}no" >&6
2914 elif test "$wxUSE_LIBJPEG" = sys; then
2915 echo "$as_me:$LINENO: result: system version" >&5
2916echo "${ECHO_T}system version" >&6
2917 elif test "$wxUSE_LIBJPEG" = builtin; then
2918 echo "$as_me:$LINENO: result: builtin version" >&5
2919echo "${ECHO_T}builtin version" >&6
2920 else
2921 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2922echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2923 { (exit 1); exit 1; }; }
2924 fi
2925
2926
2927 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2928echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2929 no_cache=0
2930
2931# Check whether --with-libtiff or --without-libtiff was given.
2932if test "${with_libtiff+set}" = set; then
2933 withval="$with_libtiff"
2934
2935 if test "$withval" = yes; then
2936 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2937 elif test "$withval" = no; then
2938 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2939 elif test "$withval" = sys; then
2940 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2941 elif test "$withval" = builtin; then
2942 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2943 else
2944 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2945echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2946 { (exit 1); exit 1; }; }
2947 fi
2948
2949else
2950
2951 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2952 if test "x$LINE" != x ; then
2953 eval "DEFAULT_$LINE"
2954 else
2955 no_cache=1
2956 fi
2957
2958 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2959
2960fi;
2961
2962 eval "$ac_cv_use_libtiff"
2963 if test "$no_cache" != 1; then
2964 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2965 fi
2966
2967 if test "$wxUSE_LIBTIFF" = yes; then
2968 echo "$as_me:$LINENO: result: yes" >&5
2969echo "${ECHO_T}yes" >&6
2970 elif test "$wxUSE_LIBTIFF" = no; then
2971 echo "$as_me:$LINENO: result: no" >&5
2972echo "${ECHO_T}no" >&6
2973 elif test "$wxUSE_LIBTIFF" = sys; then
2974 echo "$as_me:$LINENO: result: system version" >&5
2975echo "${ECHO_T}system version" >&6
2976 elif test "$wxUSE_LIBTIFF" = builtin; then
2977 echo "$as_me:$LINENO: result: builtin version" >&5
2978echo "${ECHO_T}builtin version" >&6
2979 else
2980 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2981echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2982 { (exit 1); exit 1; }; }
2983 fi
2984
2985
2986 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2987echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2988 no_cache=0
2989
2990# Check whether --with-libxpm or --without-libxpm was given.
2991if test "${with_libxpm+set}" = set; then
2992 withval="$with_libxpm"
2993
2994 if test "$withval" = yes; then
2995 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2996 elif test "$withval" = no; then
2997 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2998 elif test "$withval" = sys; then
2999 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3000 elif test "$withval" = builtin; then
3001 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3002 else
3003 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3004echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3005 { (exit 1); exit 1; }; }
3006 fi
3007
3008else
3009
3010 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3018
3019fi;
3020
3021 eval "$ac_cv_use_libxpm"
3022 if test "$no_cache" != 1; then
3023 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3024 fi
3025
3026 if test "$wxUSE_LIBXPM" = yes; then
3027 echo "$as_me:$LINENO: result: yes" >&5
3028echo "${ECHO_T}yes" >&6
3029 elif test "$wxUSE_LIBXPM" = no; then
3030 echo "$as_me:$LINENO: result: no" >&5
3031echo "${ECHO_T}no" >&6
3032 elif test "$wxUSE_LIBXPM" = sys; then
3033 echo "$as_me:$LINENO: result: system version" >&5
3034echo "${ECHO_T}system version" >&6
3035 elif test "$wxUSE_LIBXPM" = builtin; then
3036 echo "$as_me:$LINENO: result: builtin version" >&5
3037echo "${ECHO_T}builtin version" >&6
3038 else
3039 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3040echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3041 { (exit 1); exit 1; }; }
3042 fi
3043
3044
1c14217d
VZ
3045 withstring=
3046 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3047echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3048 no_cache=0
3049
3050# Check whether --with-libmspack or --without-libmspack was given.
3051if test "${with_libmspack+set}" = set; then
3052 withval="$with_libmspack"
3053
3054 if test "$withval" = yes; then
3055 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3056 else
3057 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3058 fi
3059
3060else
3061
3062 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3063 if test "x$LINE" != x ; then
3064 eval "DEFAULT_$LINE"
3065 else
3066 no_cache=1
3067 fi
3068
3069 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3070
3071fi;
3072
3073 eval "$ac_cv_use_libmspack"
3074 if test "$no_cache" != 1; then
3075 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3076 fi
3077
3078 if test "$wxUSE_LIBMSPACK" = yes; then
3079 echo "$as_me:$LINENO: result: yes" >&5
3080echo "${ECHO_T}yes" >&6
3081 else
3082 echo "$as_me:$LINENO: result: no" >&5
3083echo "${ECHO_T}no" >&6
3084 fi
3085
3086
1c14217d
VZ
3087 withstring=
3088 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3089echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3090 no_cache=0
3091
3092# Check whether --with-sdl or --without-sdl was given.
3093if test "${with_sdl+set}" = set; then
3094 withval="$with_sdl"
3095
3096 if test "$withval" = yes; then
3097 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3098 else
3099 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3100 fi
3101
3102else
3103
3104 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3105 if test "x$LINE" != x ; then
3106 eval "DEFAULT_$LINE"
3107 else
3108 no_cache=1
3109 fi
3110
3111 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3112
3113fi;
3114
3115 eval "$ac_cv_use_sdl"
3116 if test "$no_cache" != 1; then
3117 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3118 fi
3119
3120 if test "$wxUSE_LIBSDL" = yes; then
3121 echo "$as_me:$LINENO: result: yes" >&5
3122echo "${ECHO_T}yes" >&6
3123 else
3124 echo "$as_me:$LINENO: result: no" >&5
3125echo "${ECHO_T}no" >&6
3126 fi
3127
3128
1c14217d
VZ
3129 withstring=
3130 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3131echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3132 no_cache=0
3133
3134# Check whether --with-gnomeprint or --without-gnomeprint was given.
3135if test "${with_gnomeprint+set}" = set; then
3136 withval="$with_gnomeprint"
3137
3138 if test "$withval" = yes; then
3139 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3140 else
3141 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3142 fi
3143
3144else
3145
3146 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3147 if test "x$LINE" != x ; then
3148 eval "DEFAULT_$LINE"
3149 else
3150 no_cache=1
3151 fi
3152
3153 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3154
3155fi;
3156
3157 eval "$ac_cv_use_gnomeprint"
3158 if test "$no_cache" != 1; then
3159 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3160 fi
3161
3162 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3163 echo "$as_me:$LINENO: result: yes" >&5
3164echo "${ECHO_T}yes" >&6
3165 else
3166 echo "$as_me:$LINENO: result: no" >&5
3167echo "${ECHO_T}no" >&6
3168 fi
3169
3170
1c14217d
VZ
3171 withstring=
3172 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3173echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3174 no_cache=0
3175
3176# Check whether --with-opengl or --without-opengl was given.
3177if test "${with_opengl+set}" = set; then
3178 withval="$with_opengl"
3179
3180 if test "$withval" = yes; then
3181 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3182 else
3183 ac_cv_use_opengl='wxUSE_OPENGL=no'
3184 fi
3185
3186else
3187
3188 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3189 if test "x$LINE" != x ; then
3190 eval "DEFAULT_$LINE"
3191 else
3192 no_cache=1
3193 fi
3194
3195 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3196
3197fi;
3198
3199 eval "$ac_cv_use_opengl"
3200 if test "$no_cache" != 1; then
3201 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3202 fi
3203
3204 if test "$wxUSE_OPENGL" = yes; then
3205 echo "$as_me:$LINENO: result: yes" >&5
3206echo "${ECHO_T}yes" >&6
3207 else
3208 echo "$as_me:$LINENO: result: no" >&5
3209echo "${ECHO_T}no" >&6
3210 fi
3211
3212
3213fi
3214
3215
1c14217d
VZ
3216 withstring=
3217 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3218echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3219 no_cache=0
3220
3221# Check whether --with-dmalloc or --without-dmalloc was given.
3222if test "${with_dmalloc+set}" = set; then
3223 withval="$with_dmalloc"
3224
3225 if test "$withval" = yes; then
3226 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3227 else
3228 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3229 fi
3230
3231else
3232
3233 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3234 if test "x$LINE" != x ; then
3235 eval "DEFAULT_$LINE"
3236 else
3237 no_cache=1
3238 fi
3239
3240 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3241
3242fi;
3243
3244 eval "$ac_cv_use_dmalloc"
3245 if test "$no_cache" != 1; then
3246 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3247 fi
3248
3249 if test "$wxUSE_DMALLOC" = yes; then
3250 echo "$as_me:$LINENO: result: yes" >&5
3251echo "${ECHO_T}yes" >&6
3252 else
3253 echo "$as_me:$LINENO: result: no" >&5
3254echo "${ECHO_T}no" >&6
3255 fi
3256
3257
3258 echo "$as_me:$LINENO: checking for --with-regex" >&5
3259echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3260 no_cache=0
3261
3262# Check whether --with-regex or --without-regex was given.
3263if test "${with_regex+set}" = set; then
3264 withval="$with_regex"
3265
3266 if test "$withval" = yes; then
3267 ac_cv_use_regex='wxUSE_REGEX=yes'
3268 elif test "$withval" = no; then
3269 ac_cv_use_regex='wxUSE_REGEX=no'
3270 elif test "$withval" = sys; then
3271 ac_cv_use_regex='wxUSE_REGEX=sys'
3272 elif test "$withval" = builtin; then
3273 ac_cv_use_regex='wxUSE_REGEX=builtin'
3274 else
3275 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3276echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3277 { (exit 1); exit 1; }; }
3278 fi
3279
3280else
3281
3282 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3283 if test "x$LINE" != x ; then
3284 eval "DEFAULT_$LINE"
3285 else
3286 no_cache=1
3287 fi
3288
3289 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3290
3291fi;
3292
3293 eval "$ac_cv_use_regex"
3294 if test "$no_cache" != 1; then
3295 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3296 fi
3297
3298 if test "$wxUSE_REGEX" = yes; then
3299 echo "$as_me:$LINENO: result: yes" >&5
3300echo "${ECHO_T}yes" >&6
3301 elif test "$wxUSE_REGEX" = no; then
3302 echo "$as_me:$LINENO: result: no" >&5
3303echo "${ECHO_T}no" >&6
3304 elif test "$wxUSE_REGEX" = sys; then
3305 echo "$as_me:$LINENO: result: system version" >&5
3306echo "${ECHO_T}system version" >&6
3307 elif test "$wxUSE_REGEX" = builtin; then
3308 echo "$as_me:$LINENO: result: builtin version" >&5
3309echo "${ECHO_T}builtin version" >&6
3310 else
3311 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3312echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3313 { (exit 1); exit 1; }; }
3314 fi
3315
3316
3317 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3318echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3319 no_cache=0
3320
3321# Check whether --with-zlib or --without-zlib was given.
3322if test "${with_zlib+set}" = set; then
3323 withval="$with_zlib"
3324
3325 if test "$withval" = yes; then
3326 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3327 elif test "$withval" = no; then
3328 ac_cv_use_zlib='wxUSE_ZLIB=no'
3329 elif test "$withval" = sys; then
3330 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3331 elif test "$withval" = builtin; then
3332 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3333 else
3334 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3335echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3336 { (exit 1); exit 1; }; }
3337 fi
3338
3339else
3340
3341 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3342 if test "x$LINE" != x ; then
3343 eval "DEFAULT_$LINE"
3344 else
3345 no_cache=1
3346 fi
3347
3348 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3349
3350fi;
3351
3352 eval "$ac_cv_use_zlib"
3353 if test "$no_cache" != 1; then
3354 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3355 fi
3356
3357 if test "$wxUSE_ZLIB" = yes; then
3358 echo "$as_me:$LINENO: result: yes" >&5
3359echo "${ECHO_T}yes" >&6
3360 elif test "$wxUSE_ZLIB" = no; then
3361 echo "$as_me:$LINENO: result: no" >&5
3362echo "${ECHO_T}no" >&6
3363 elif test "$wxUSE_ZLIB" = sys; then
3364 echo "$as_me:$LINENO: result: system version" >&5
3365echo "${ECHO_T}system version" >&6
3366 elif test "$wxUSE_ZLIB" = builtin; then
3367 echo "$as_me:$LINENO: result: builtin version" >&5
3368echo "${ECHO_T}builtin version" >&6
3369 else
3370 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3371echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3372 { (exit 1); exit 1; }; }
3373 fi
3374
3375
3376 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3377echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3378 no_cache=0
3379
3380# Check whether --with-odbc or --without-odbc was given.
3381if test "${with_odbc+set}" = set; then
3382 withval="$with_odbc"
3383
3384 if test "$withval" = yes; then
3385 ac_cv_use_odbc='wxUSE_ODBC=yes'
3386 elif test "$withval" = no; then
3387 ac_cv_use_odbc='wxUSE_ODBC=no'
3388 elif test "$withval" = sys; then
3389 ac_cv_use_odbc='wxUSE_ODBC=sys'
3390 elif test "$withval" = builtin; then
3391 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3392 else
3393 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3394echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3395 { (exit 1); exit 1; }; }
3396 fi
3397
3398else
3399
3400 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3408
3409fi;
3410
3411 eval "$ac_cv_use_odbc"
3412 if test "$no_cache" != 1; then
3413 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3414 fi
3415
3416 if test "$wxUSE_ODBC" = yes; then
3417 echo "$as_me:$LINENO: result: yes" >&5
3418echo "${ECHO_T}yes" >&6
3419 elif test "$wxUSE_ODBC" = no; then
3420 echo "$as_me:$LINENO: result: no" >&5
3421echo "${ECHO_T}no" >&6
3422 elif test "$wxUSE_ODBC" = sys; then
3423 echo "$as_me:$LINENO: result: system version" >&5
3424echo "${ECHO_T}system version" >&6
3425 elif test "$wxUSE_ODBC" = builtin; then
3426 echo "$as_me:$LINENO: result: builtin version" >&5
3427echo "${ECHO_T}builtin version" >&6
3428 else
3429 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3430echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3431 { (exit 1); exit 1; }; }
3432 fi
3433
3434
3435 echo "$as_me:$LINENO: checking for --with-expat" >&5
3436echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3437 no_cache=0
3438
3439# Check whether --with-expat or --without-expat was given.
3440if test "${with_expat+set}" = set; then
3441 withval="$with_expat"
3442
3443 if test "$withval" = yes; then
3444 ac_cv_use_expat='wxUSE_EXPAT=yes'
3445 elif test "$withval" = no; then
3446 ac_cv_use_expat='wxUSE_EXPAT=no'
3447 elif test "$withval" = sys; then
3448 ac_cv_use_expat='wxUSE_EXPAT=sys'
3449 elif test "$withval" = builtin; then
3450 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3451 else
3452 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3453echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3454 { (exit 1); exit 1; }; }
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3467
3468fi;
3469
3470 eval "$ac_cv_use_expat"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_EXPAT" = yes; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477echo "${ECHO_T}yes" >&6
3478 elif test "$wxUSE_EXPAT" = no; then
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
3481 elif test "$wxUSE_EXPAT" = sys; then
3482 echo "$as_me:$LINENO: result: system version" >&5
3483echo "${ECHO_T}system version" >&6
3484 elif test "$wxUSE_EXPAT" = builtin; then
3485 echo "$as_me:$LINENO: result: builtin version" >&5
3486echo "${ECHO_T}builtin version" >&6
3487 else
3488 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3489echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3490 { (exit 1); exit 1; }; }
3491 fi
3492
3493
3494
3495
3496 enablestring=
3497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3498echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3499 no_cache=0
3500 # Check whether --enable-shared or --disable-shared was given.
3501if test "${enable_shared+set}" = set; then
3502 enableval="$enable_shared"
3503
3504 if test "$enableval" = yes; then
3505 ac_cv_use_shared='wxUSE_SHARED=yes'
3506 else
3507 ac_cv_use_shared='wxUSE_SHARED=no'
3508 fi
3509
3510else
3511
3512 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3513 if test "x$LINE" != x ; then
3514 eval "DEFAULT_$LINE"
3515 else
3516 no_cache=1
3517 fi
3518
3519 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3520
3521fi;
3522
3523 eval "$ac_cv_use_shared"
3524 if test "$no_cache" != 1; then
3525 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3526 fi
3527
3528 if test "$wxUSE_SHARED" = yes; then
3529 echo "$as_me:$LINENO: result: yes" >&5
3530echo "${ECHO_T}yes" >&6
3531 else
3532 echo "$as_me:$LINENO: result: no" >&5
3533echo "${ECHO_T}no" >&6
3534 fi
3535
3536
3537 enablestring=
3538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3539echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3540 no_cache=0
3541 # Check whether --enable-optimise or --disable-optimise was given.
3542if test "${enable_optimise+set}" = set; then
3543 enableval="$enable_optimise"
3544
3545 if test "$enableval" = yes; then
3546 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3547 else
3548 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3549 fi
3550
3551else
3552
3553 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3554 if test "x$LINE" != x ; then
3555 eval "DEFAULT_$LINE"
3556 else
3557 no_cache=1
3558 fi
3559
3560 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3561
3562fi;
3563
3564 eval "$ac_cv_use_optimise"
3565 if test "$no_cache" != 1; then
3566 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3567 fi
3568
3569 if test "$wxUSE_OPTIMISE" = yes; then
3570 echo "$as_me:$LINENO: result: yes" >&5
3571echo "${ECHO_T}yes" >&6
3572 else
3573 echo "$as_me:$LINENO: result: no" >&5
3574echo "${ECHO_T}no" >&6
3575 fi
3576
3577
3578 enablestring=
3579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3580echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3581 no_cache=0
3582 # Check whether --enable-debug or --disable-debug was given.
3583if test "${enable_debug+set}" = set; then
3584 enableval="$enable_debug"
3585
3586 if test "$enableval" = yes; then
3587 ac_cv_use_debug='wxUSE_DEBUG=yes'
3588 else
3589 ac_cv_use_debug='wxUSE_DEBUG=no'
3590 fi
3591
3592else
3593
3594 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3595 if test "x$LINE" != x ; then
3596 eval "DEFAULT_$LINE"
3597 else
3598 no_cache=1
3599 fi
3600
3601 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3602
3603fi;
3604
3605 eval "$ac_cv_use_debug"
3606 if test "$no_cache" != 1; then
3607 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3608 fi
3609
3610 if test "$wxUSE_DEBUG" = yes; then
3611 echo "$as_me:$LINENO: result: yes" >&5
3612echo "${ECHO_T}yes" >&6
3613 else
3614 echo "$as_me:$LINENO: result: no" >&5
3615echo "${ECHO_T}no" >&6
3616 fi
3617
3618
3619 enablestring=
3620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3621echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3622 no_cache=0
3623 # Check whether --enable-stl or --disable-stl was given.
3624if test "${enable_stl+set}" = set; then
3625 enableval="$enable_stl"
3626
3627 if test "$enableval" = yes; then
3628 ac_cv_use_stl='wxUSE_STL=yes'
3629 else
3630 ac_cv_use_stl='wxUSE_STL=no'
3631 fi
3632
3633else
3634
3635 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3636 if test "x$LINE" != x ; then
3637 eval "DEFAULT_$LINE"
3638 else
3639 no_cache=1
3640 fi
3641
3642 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3643
3644fi;
3645
3646 eval "$ac_cv_use_stl"
3647 if test "$no_cache" != 1; then
3648 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3649 fi
3650
3651 if test "$wxUSE_STL" = yes; then
3652 echo "$as_me:$LINENO: result: yes" >&5
3653echo "${ECHO_T}yes" >&6
3654 else
3655 echo "$as_me:$LINENO: result: no" >&5
3656echo "${ECHO_T}no" >&6
3657 fi
3658
3659if test "$USE_OS2" = "1"; then
69120ee4 3660 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3661
3662 enablestring=
3663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3664echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3665 no_cache=0
3666 # Check whether --enable-omf or --disable-omf was given.
3667if test "${enable_omf+set}" = set; then
3668 enableval="$enable_omf"
3669
3670 if test "$enableval" = yes; then
3671 ac_cv_use_omf='wxUSE_OMF=yes'
3672 else
3673 ac_cv_use_omf='wxUSE_OMF=no'
3674 fi
3675
3676else
3677
3678 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3686
3687fi;
3688
3689 eval "$ac_cv_use_omf"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_OMF" = yes; then
3695 echo "$as_me:$LINENO: result: yes" >&5
3696echo "${ECHO_T}yes" >&6
3697 else
3698 echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700 fi
3701
3702fi
3703
3704if test "$wxUSE_DEBUG" = "yes"; then
3705 DEFAULT_wxUSE_DEBUG_FLAG=yes
3706 DEFAULT_wxUSE_DEBUG_INFO=yes
3707 BUILD=debug
3708elif test "$wxUSE_DEBUG" = "no"; then
3709 DEFAULT_wxUSE_DEBUG_FLAG=no
3710 DEFAULT_wxUSE_DEBUG_INFO=no
3711 BUILD=release
3712fi
3713
3714
3715 enablestring=
3716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3717echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3718 no_cache=0
3719 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3720if test "${enable_debug_flag+set}" = set; then
3721 enableval="$enable_debug_flag"
3722
3723 if test "$enableval" = yes; then
3724 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3725 else
3726 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3727 fi
3728
3729else
3730
3731 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
3738 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3739
3740fi;
3741
3742 eval "$ac_cv_use_debug_flag"
3743 if test "$no_cache" != 1; then
3744 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3745 fi
3746
3747 if test "$wxUSE_DEBUG_FLAG" = yes; then
3748 echo "$as_me:$LINENO: result: yes" >&5
3749echo "${ECHO_T}yes" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no" >&5
3752echo "${ECHO_T}no" >&6
3753 fi
3754
3755
3756 enablestring=
3757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3758echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3759 no_cache=0
3760 # Check whether --enable-debug_info or --disable-debug_info was given.
3761if test "${enable_debug_info+set}" = set; then
3762 enableval="$enable_debug_info"
3763
3764 if test "$enableval" = yes; then
3765 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3766 else
3767 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3768 fi
3769
3770else
3771
3772 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3780
3781fi;
3782
3783 eval "$ac_cv_use_debug_info"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_DEBUG_INFO" = yes; then
3789 echo "$as_me:$LINENO: result: yes" >&5
3790echo "${ECHO_T}yes" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6
3794 fi
3795
3796
3797 enablestring=
3798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3799echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3800 no_cache=0
3801 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3802if test "${enable_debug_gdb+set}" = set; then
3803 enableval="$enable_debug_gdb"
3804
3805 if test "$enableval" = yes; then
3806 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3807 else
3808 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3809 fi
3810
3811else
3812
3813 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3814 if test "x$LINE" != x ; then
3815 eval "DEFAULT_$LINE"
3816 else
3817 no_cache=1
3818 fi
3819
3820 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3821
3822fi;
3823
3824 eval "$ac_cv_use_debug_gdb"
3825 if test "$no_cache" != 1; then
3826 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3827 fi
3828
3829 if test "$wxUSE_DEBUG_GDB" = yes; then
3830 echo "$as_me:$LINENO: result: yes" >&5
3831echo "${ECHO_T}yes" >&6
3832 else
3833 echo "$as_me:$LINENO: result: no" >&5
3834echo "${ECHO_T}no" >&6
3835 fi
3836
3837
3838 enablestring=
3839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3840echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3841 no_cache=0
3842 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3843if test "${enable_debug_cntxt+set}" = set; then
3844 enableval="$enable_debug_cntxt"
3845
3846 if test "$enableval" = yes; then
3847 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3848 else
3849 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3850 fi
3851
3852else
3853
3854 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3855 if test "x$LINE" != x ; then
3856 eval "DEFAULT_$LINE"
3857 else
3858 no_cache=1
3859 fi
3860
3861 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3862
3863fi;
3864
3865 eval "$ac_cv_use_debug_cntxt"
3866 if test "$no_cache" != 1; then
3867 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3868 fi
3869
3870 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3871 echo "$as_me:$LINENO: result: yes" >&5
3872echo "${ECHO_T}yes" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
3876 fi
3877
3878
3879 enablestring=
3880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3881echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3882 no_cache=0
3883 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3884if test "${enable_mem_tracing+set}" = set; then
3885 enableval="$enable_mem_tracing"
3886
3887 if test "$enableval" = yes; then
3888 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3889 else
3890 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3891 fi
3892
3893else
3894
3895 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3896 if test "x$LINE" != x ; then
3897 eval "DEFAULT_$LINE"
3898 else
3899 no_cache=1
3900 fi
3901
3902 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3903
3904fi;
3905
3906 eval "$ac_cv_use_mem_tracing"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_MEM_TRACING" = yes; then
3912 echo "$as_me:$LINENO: result: yes" >&5
3913echo "${ECHO_T}yes" >&6
3914 else
3915 echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6
3917 fi
3918
3919
3920 enablestring=
3921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3922echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3923 no_cache=0
3924 # Check whether --enable-profile or --disable-profile was given.
3925if test "${enable_profile+set}" = set; then
3926 enableval="$enable_profile"
3927
3928 if test "$enableval" = yes; then
3929 ac_cv_use_profile='wxUSE_PROFILE=yes'
3930 else
3931 ac_cv_use_profile='wxUSE_PROFILE=no'
3932 fi
3933
3934else
3935
3936 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
3943 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3944
3945fi;
3946
3947 eval "$ac_cv_use_profile"
3948 if test "$no_cache" != 1; then
3949 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3950 fi
3951
3952 if test "$wxUSE_PROFILE" = yes; then
3953 echo "$as_me:$LINENO: result: yes" >&5
3954echo "${ECHO_T}yes" >&6
3955 else
3956 echo "$as_me:$LINENO: result: no" >&5
3957echo "${ECHO_T}no" >&6
3958 fi
3959
3960
3961 enablestring=
3962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3963echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3964 no_cache=0
3965 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3966if test "${enable_no_rtti+set}" = set; then
3967 enableval="$enable_no_rtti"
3968
3969 if test "$enableval" = yes; then
3970 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3971 else
3972 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3973 fi
3974
3975else
3976
3977 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3985
3986fi;
3987
3988 eval "$ac_cv_use_no_rtti"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_NO_RTTI" = yes; then
3994 echo "$as_me:$LINENO: result: yes" >&5
3995echo "${ECHO_T}yes" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998echo "${ECHO_T}no" >&6
3999 fi
4000
4001
4002 enablestring=
4003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4004echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4005 no_cache=0
4006 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4007if test "${enable_no_exceptions+set}" = set; then
4008 enableval="$enable_no_exceptions"
4009
4010 if test "$enableval" = yes; then
4011 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4012 else
4013 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4014 fi
4015
4016else
4017
4018 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4019 if test "x$LINE" != x ; then
4020 eval "DEFAULT_$LINE"
4021 else
4022 no_cache=1
4023 fi
4024
4025 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4026
4027fi;
4028
4029 eval "$ac_cv_use_no_exceptions"
4030 if test "$no_cache" != 1; then
4031 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4032 fi
4033
4034 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4035 echo "$as_me:$LINENO: result: yes" >&5
4036echo "${ECHO_T}yes" >&6
4037 else
4038 echo "$as_me:$LINENO: result: no" >&5
4039echo "${ECHO_T}no" >&6
4040 fi
4041
4042
4043 enablestring=
4044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4045echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4046 no_cache=0
4047 # Check whether --enable-permissive or --disable-permissive was given.
4048if test "${enable_permissive+set}" = set; then
4049 enableval="$enable_permissive"
4050
4051 if test "$enableval" = yes; then
4052 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4053 else
4054 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4055 fi
4056
4057else
4058
4059 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4060 if test "x$LINE" != x ; then
4061 eval "DEFAULT_$LINE"
4062 else
4063 no_cache=1
4064 fi
4065
4066 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4067
4068fi;
4069
4070 eval "$ac_cv_use_permissive"
4071 if test "$no_cache" != 1; then
4072 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4073 fi
4074
4075 if test "$wxUSE_PERMISSIVE" = yes; then
4076 echo "$as_me:$LINENO: result: yes" >&5
4077echo "${ECHO_T}yes" >&6
4078 else
4079 echo "$as_me:$LINENO: result: no" >&5
4080echo "${ECHO_T}no" >&6
4081 fi
4082
4083
4084 enablestring=
4085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4086echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4087 no_cache=0
4088 # Check whether --enable-no_deps or --disable-no_deps was given.
4089if test "${enable_no_deps+set}" = set; then
4090 enableval="$enable_no_deps"
4091
4092 if test "$enableval" = yes; then
4093 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4094 else
4095 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4096 fi
4097
4098else
4099
4100 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4101 if test "x$LINE" != x ; then
4102 eval "DEFAULT_$LINE"
4103 else
4104 no_cache=1
4105 fi
4106
4107 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4108
4109fi;
4110
4111 eval "$ac_cv_use_no_deps"
4112 if test "$no_cache" != 1; then
4113 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4114 fi
4115
4116 if test "$wxUSE_NO_DEPS" = yes; then
4117 echo "$as_me:$LINENO: result: yes" >&5
4118echo "${ECHO_T}yes" >&6
4119 else
4120 echo "$as_me:$LINENO: result: no" >&5
4121echo "${ECHO_T}no" >&6
4122 fi
4123
4124
4125
dee1a63f
MB
4126 enablestring=enable
4127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4128echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4129 no_cache=0
dee1a63f
MB
4130 # Check whether --enable-compat24 or --disable-compat24 was given.
4131if test "${enable_compat24+set}" = set; then
4132 enableval="$enable_compat24"
a848cd7e
SC
4133
4134 if test "$enableval" = yes; then
dee1a63f 4135 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4136 else
dee1a63f 4137 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4138 fi
4139
4140else
4141
dee1a63f 4142 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4143 if test "x$LINE" != x ; then
4144 eval "DEFAULT_$LINE"
4145 else
4146 no_cache=1
4147 fi
4148
dee1a63f 4149 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4150
4151fi;
4152
dee1a63f 4153 eval "$ac_cv_use_compat24"
a848cd7e 4154 if test "$no_cache" != 1; then
dee1a63f 4155 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4156 fi
4157
dee1a63f 4158 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4159 echo "$as_me:$LINENO: result: yes" >&5
4160echo "${ECHO_T}yes" >&6
4161 else
4162 echo "$as_me:$LINENO: result: no" >&5
4163echo "${ECHO_T}no" >&6
4164 fi
4165
4166
4167 enablestring=disable
dee1a63f
MB
4168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4169echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4170 no_cache=0
dee1a63f
MB
4171 # Check whether --enable-compat26 or --disable-compat26 was given.
4172if test "${enable_compat26+set}" = set; then
4173 enableval="$enable_compat26"
a848cd7e
SC
4174
4175 if test "$enableval" = yes; then
dee1a63f 4176 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4177 else
dee1a63f 4178 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4179 fi
4180
4181else
4182
dee1a63f 4183 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4184 if test "x$LINE" != x ; then
4185 eval "DEFAULT_$LINE"
4186 else
4187 no_cache=1
4188 fi
4189
dee1a63f 4190 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4191
4192fi;
4193
dee1a63f 4194 eval "$ac_cv_use_compat26"
a848cd7e 4195 if test "$no_cache" != 1; then
dee1a63f 4196 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4197 fi
4198
dee1a63f 4199 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4200 echo "$as_me:$LINENO: result: yes" >&5
4201echo "${ECHO_T}yes" >&6
4202 else
4203 echo "$as_me:$LINENO: result: no" >&5
4204echo "${ECHO_T}no" >&6
4205 fi
4206
4207
ffa0583f
RL
4208
4209 enablestring=
4210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4211echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4212 no_cache=0
4213 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4214if test "${enable_rpath+set}" = set; then
4215 enableval="$enable_rpath"
ffa0583f
RL
4216
4217 if test "$enableval" = yes; then
4218 ac_cv_use_rpath='wxUSE_RPATH=yes'
4219 else
4220 ac_cv_use_rpath='wxUSE_RPATH=no'
4221 fi
4222
4223else
4224
4225 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4226 if test "x$LINE" != x ; then
4227 eval "DEFAULT_$LINE"
4228 else
4229 no_cache=1
4230 fi
4231
4232 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4233
a848cd7e
SC
4234fi;
4235
ffa0583f
RL
4236 eval "$ac_cv_use_rpath"
4237 if test "$no_cache" != 1; then
4238 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4239 fi
4240
4241 if test "$wxUSE_RPATH" = yes; then
4242 echo "$as_me:$LINENO: result: yes" >&5
4243echo "${ECHO_T}yes" >&6
4244 else
4245 echo "$as_me:$LINENO: result: no" >&5
4246echo "${ECHO_T}no" >&6
4247 fi
4248
a848cd7e
SC
4249
4250
4251
4252
4253 enablestring=
4254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4255echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4256 no_cache=0
4257 # Check whether --enable-intl or --disable-intl was given.
4258if test "${enable_intl+set}" = set; then
4259 enableval="$enable_intl"
4260
4261 if test "$enableval" = yes; then
4262 ac_cv_use_intl='wxUSE_INTL=yes'
4263 else
4264 ac_cv_use_intl='wxUSE_INTL=no'
4265 fi
4266
4267else
4268
4269 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4270 if test "x$LINE" != x ; then
4271 eval "DEFAULT_$LINE"
4272 else
4273 no_cache=1
4274 fi
4275
4276 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4277
4278fi;
4279
4280 eval "$ac_cv_use_intl"
4281 if test "$no_cache" != 1; then
4282 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4283 fi
4284
4285 if test "$wxUSE_INTL" = yes; then
4286 echo "$as_me:$LINENO: result: yes" >&5
4287echo "${ECHO_T}yes" >&6
4288 else
4289 echo "$as_me:$LINENO: result: no" >&5
4290echo "${ECHO_T}no" >&6
4291 fi
4292
4293
4294 enablestring=
4295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4296echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4297 no_cache=0
4298 # Check whether --enable-config or --disable-config was given.
4299if test "${enable_config+set}" = set; then
4300 enableval="$enable_config"
4301
4302 if test "$enableval" = yes; then
4303 ac_cv_use_config='wxUSE_CONFIG=yes'
4304 else
4305 ac_cv_use_config='wxUSE_CONFIG=no'
4306 fi
4307
4308else
4309
4310 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4311 if test "x$LINE" != x ; then
4312 eval "DEFAULT_$LINE"
4313 else
4314 no_cache=1
4315 fi
4316
4317 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4318
4319fi;
4320
4321 eval "$ac_cv_use_config"
4322 if test "$no_cache" != 1; then
4323 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4324 fi
4325
4326 if test "$wxUSE_CONFIG" = yes; then
4327 echo "$as_me:$LINENO: result: yes" >&5
4328echo "${ECHO_T}yes" >&6
4329 else
4330 echo "$as_me:$LINENO: result: no" >&5
4331echo "${ECHO_T}no" >&6
4332 fi
4333
4334
4335
4336 enablestring=
4337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4338echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4339 no_cache=0
4340 # Check whether --enable-protocols or --disable-protocols was given.
4341if test "${enable_protocols+set}" = set; then
4342 enableval="$enable_protocols"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4346 else
4347 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4348 fi
4349
4350else
4351
4352 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4360
4361fi;
4362
4363 eval "$ac_cv_use_protocols"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_PROTOCOL" = yes; then
4369 echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6
4374 fi
4375
4376
4377 enablestring=
4378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4379echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4380 no_cache=0
4381 # Check whether --enable-ftp or --disable-ftp was given.
4382if test "${enable_ftp+set}" = set; then
4383 enableval="$enable_ftp"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4387 else
4388 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4389 fi
4390
4391else
4392
4393 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4401
4402fi;
4403
4404 eval "$ac_cv_use_ftp"
4405 if test "$no_cache" != 1; then
4406 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4407 fi
4408
4409 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4410 echo "$as_me:$LINENO: result: yes" >&5
4411echo "${ECHO_T}yes" >&6
4412 else
4413 echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6
4415 fi
4416
4417
4418 enablestring=
4419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4420echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4421 no_cache=0
4422 # Check whether --enable-http or --disable-http was given.
4423if test "${enable_http+set}" = set; then
4424 enableval="$enable_http"
4425
4426 if test "$enableval" = yes; then
4427 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4428 else
4429 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4430 fi
4431
4432else
4433
4434 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4435 if test "x$LINE" != x ; then
4436 eval "DEFAULT_$LINE"
4437 else
4438 no_cache=1
4439 fi
4440
4441 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4442
4443fi;
4444
4445 eval "$ac_cv_use_http"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4451 echo "$as_me:$LINENO: result: yes" >&5
4452echo "${ECHO_T}yes" >&6
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
4456 fi
4457
4458
4459 enablestring=
4460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4461echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4462 no_cache=0
4463 # Check whether --enable-fileproto or --disable-fileproto was given.
4464if test "${enable_fileproto+set}" = set; then
4465 enableval="$enable_fileproto"
4466
4467 if test "$enableval" = yes; then
4468 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4469 else
4470 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4471 fi
4472
4473else
4474
4475 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4476 if test "x$LINE" != x ; then
4477 eval "DEFAULT_$LINE"
4478 else
4479 no_cache=1
4480 fi
4481
4482 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4483
4484fi;
4485
4486 eval "$ac_cv_use_fileproto"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4492 echo "$as_me:$LINENO: result: yes" >&5
4493echo "${ECHO_T}yes" >&6
4494 else
4495 echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6
4497 fi
4498
4499
4500 enablestring=
4501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4502echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4503 no_cache=0
4504 # Check whether --enable-sockets or --disable-sockets was given.
4505if test "${enable_sockets+set}" = set; then
4506 enableval="$enable_sockets"
4507
4508 if test "$enableval" = yes; then
4509 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4510 else
4511 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4512 fi
4513
4514else
4515
4516 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4517 if test "x$LINE" != x ; then
4518 eval "DEFAULT_$LINE"
4519 else
4520 no_cache=1
4521 fi
4522
4523 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4524
4525fi;
4526
4527 eval "$ac_cv_use_sockets"
4528 if test "$no_cache" != 1; then
4529 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4530 fi
4531
4532 if test "$wxUSE_SOCKETS" = yes; then
4533 echo "$as_me:$LINENO: result: yes" >&5
4534echo "${ECHO_T}yes" >&6
4535 else
4536 echo "$as_me:$LINENO: result: no" >&5
4537echo "${ECHO_T}no" >&6
4538 fi
4539
4540
4541 enablestring=
4542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4543echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4544 no_cache=0
4545 # Check whether --enable-ole or --disable-ole was given.
4546if test "${enable_ole+set}" = set; then
4547 enableval="$enable_ole"
4548
4549 if test "$enableval" = yes; then
4550 ac_cv_use_ole='wxUSE_OLE=yes'
4551 else
4552 ac_cv_use_ole='wxUSE_OLE=no'
4553 fi
4554
4555else
4556
4557 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4558 if test "x$LINE" != x ; then
4559 eval "DEFAULT_$LINE"
4560 else
4561 no_cache=1
4562 fi
4563
4564 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4565
4566fi;
4567
4568 eval "$ac_cv_use_ole"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_OLE" = yes; then
4574 echo "$as_me:$LINENO: result: yes" >&5
4575echo "${ECHO_T}yes" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578echo "${ECHO_T}no" >&6
4579 fi
4580
4581
4582 enablestring=
4583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4584echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4585 no_cache=0
4586 # Check whether --enable-dataobj or --disable-dataobj was given.
4587if test "${enable_dataobj+set}" = set; then
4588 enableval="$enable_dataobj"
4589
4590 if test "$enableval" = yes; then
4591 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4592 else
4593 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4594 fi
4595
4596else
4597
4598 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4599 if test "x$LINE" != x ; then
4600 eval "DEFAULT_$LINE"
4601 else
4602 no_cache=1
4603 fi
4604
4605 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4606
4607fi;
4608
4609 eval "$ac_cv_use_dataobj"
4610 if test "$no_cache" != 1; then
4611 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4612 fi
4613
4614 if test "$wxUSE_DATAOBJ" = yes; then
4615 echo "$as_me:$LINENO: result: yes" >&5
4616echo "${ECHO_T}yes" >&6
4617 else
4618 echo "$as_me:$LINENO: result: no" >&5
4619echo "${ECHO_T}no" >&6
4620 fi
4621
4622
4623
4624 enablestring=
4625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4626echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4627 no_cache=0
4628 # Check whether --enable-ipc or --disable-ipc was given.
4629if test "${enable_ipc+set}" = set; then
4630 enableval="$enable_ipc"
4631
4632 if test "$enableval" = yes; then
4633 ac_cv_use_ipc='wxUSE_IPC=yes'
4634 else
4635 ac_cv_use_ipc='wxUSE_IPC=no'
4636 fi
4637
4638else
4639
4640 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4641 if test "x$LINE" != x ; then
4642 eval "DEFAULT_$LINE"
4643 else
4644 no_cache=1
4645 fi
4646
4647 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4648
4649fi;
4650
4651 eval "$ac_cv_use_ipc"
4652 if test "$no_cache" != 1; then
4653 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4654 fi
4655
4656 if test "$wxUSE_IPC" = yes; then
4657 echo "$as_me:$LINENO: result: yes" >&5
4658echo "${ECHO_T}yes" >&6
4659 else
4660 echo "$as_me:$LINENO: result: no" >&5
4661echo "${ECHO_T}no" >&6
4662 fi
4663
4664
4665
4666 enablestring=
4667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4668echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4669 no_cache=0
4670 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4671if test "${enable_apple_ieee+set}" = set; then
4672 enableval="$enable_apple_ieee"
4673
4674 if test "$enableval" = yes; then
4675 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4676 else
4677 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4678 fi
4679
4680else
4681
4682 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4683 if test "x$LINE" != x ; then
4684 eval "DEFAULT_$LINE"
4685 else
4686 no_cache=1
4687 fi
4688
4689 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4690
4691fi;
4692
4693 eval "$ac_cv_use_apple_ieee"
4694 if test "$no_cache" != 1; then
4695 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4696 fi
4697
4698 if test "$wxUSE_APPLE_IEEE" = yes; then
4699 echo "$as_me:$LINENO: result: yes" >&5
4700echo "${ECHO_T}yes" >&6
4701 else
4702 echo "$as_me:$LINENO: result: no" >&5
4703echo "${ECHO_T}no" >&6
4704 fi
4705
4706
81f90336
MW
4707 enablestring=
4708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4709echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4710 no_cache=0
4711 # Check whether --enable-arcstream or --disable-arcstream was given.
4712if test "${enable_arcstream+set}" = set; then
4713 enableval="$enable_arcstream"
4714
4715 if test "$enableval" = yes; then
9e8e867f 4716 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4717 else
9e8e867f 4718 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4719 fi
4720
4721else
4722
9e8e867f 4723 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4724 if test "x$LINE" != x ; then
4725 eval "DEFAULT_$LINE"
4726 else
4727 no_cache=1
4728 fi
4729
9e8e867f 4730 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4731
4732fi;
4733
4734 eval "$ac_cv_use_arcstream"
4735 if test "$no_cache" != 1; then
4736 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4737 fi
4738
9e8e867f 4739 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4740 echo "$as_me:$LINENO: result: yes" >&5
4741echo "${ECHO_T}yes" >&6
4742 else
4743 echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6
4745 fi
4746
4747
a848cd7e 4748 enablestring=
36b6448c
VZ
4749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4750echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4751 no_cache=0
36b6448c
VZ
4752 # Check whether --enable-backtrace or --disable-backtrace was given.
4753if test "${enable_backtrace+set}" = set; then
4754 enableval="$enable_backtrace"
a848cd7e
SC
4755
4756 if test "$enableval" = yes; then
36b6448c 4757 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4758 else
36b6448c 4759 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4760 fi
4761
4762else
4763
36b6448c 4764 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4765 if test "x$LINE" != x ; then
4766 eval "DEFAULT_$LINE"
4767 else
4768 no_cache=1
4769 fi
4770
36b6448c 4771 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4772
4773fi;
4774
36b6448c 4775 eval "$ac_cv_use_backtrace"
a848cd7e 4776 if test "$no_cache" != 1; then
36b6448c 4777 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4778 fi
4779
36b6448c 4780 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4781 echo "$as_me:$LINENO: result: yes" >&5
4782echo "${ECHO_T}yes" >&6
4783 else
4784 echo "$as_me:$LINENO: result: no" >&5
4785echo "${ECHO_T}no" >&6
4786 fi
4787
4788
eaff0f0d 4789 enablestring=
36b6448c
VZ
4790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4791echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4792 no_cache=0
36b6448c
VZ
4793 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4794if test "${enable_catch_segvs+set}" = set; then
4795 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4796
4797 if test "$enableval" = yes; then
36b6448c 4798 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4799 else
36b6448c 4800 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4801 fi
4802
4803else
4804
36b6448c 4805 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4806 if test "x$LINE" != x ; then
4807 eval "DEFAULT_$LINE"
4808 else
4809 no_cache=1
4810 fi
4811
36b6448c 4812 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4813
4814fi;
4815
36b6448c 4816 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4817 if test "$no_cache" != 1; then
36b6448c 4818 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4819 fi
4820
36b6448c 4821 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4822 echo "$as_me:$LINENO: result: yes" >&5
4823echo "${ECHO_T}yes" >&6
4824 else
4825 echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6
4827 fi
4828
4829
a848cd7e
SC
4830 enablestring=
4831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4832echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4833 no_cache=0
4834 # Check whether --enable-cmdline or --disable-cmdline was given.
4835if test "${enable_cmdline+set}" = set; then
4836 enableval="$enable_cmdline"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4840 else
4841 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4842 fi
4843
4844else
4845
4846 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4854
4855fi;
4856
4857 eval "$ac_cv_use_cmdline"
4858 if test "$no_cache" != 1; then
4859 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4860 fi
4861
4862 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4863 echo "$as_me:$LINENO: result: yes" >&5
4864echo "${ECHO_T}yes" >&6
4865 else
4866 echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6
4868 fi
4869
4870
4871 enablestring=
4872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4873echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4874 no_cache=0
4875 # Check whether --enable-datetime or --disable-datetime was given.
4876if test "${enable_datetime+set}" = set; then
4877 enableval="$enable_datetime"
4878
4879 if test "$enableval" = yes; then
4880 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4881 else
4882 ac_cv_use_datetime='wxUSE_DATETIME=no'
4883 fi
4884
4885else
4886
4887 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4888 if test "x$LINE" != x ; then
4889 eval "DEFAULT_$LINE"
4890 else
4891 no_cache=1
4892 fi
4893
4894 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4895
4896fi;
4897
4898 eval "$ac_cv_use_datetime"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_DATETIME" = yes; then
4904 echo "$as_me:$LINENO: result: yes" >&5
4905echo "${ECHO_T}yes" >&6
4906 else
4907 echo "$as_me:$LINENO: result: no" >&5
4908echo "${ECHO_T}no" >&6
4909 fi
4910
4911
36b6448c
VZ
4912 enablestring=
4913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4914echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4915 no_cache=0
4916 # Check whether --enable-debugreport or --disable-debugreport was given.
4917if test "${enable_debugreport+set}" = set; then
4918 enableval="$enable_debugreport"
4919
4920 if test "$enableval" = yes; then
4921 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4922 else
4923 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4924 fi
4925
4926else
4927
4928 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4929 if test "x$LINE" != x ; then
4930 eval "DEFAULT_$LINE"
4931 else
4932 no_cache=1
4933 fi
4934
4935 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4936
4937fi;
4938
4939 eval "$ac_cv_use_debugreport"
4940 if test "$no_cache" != 1; then
4941 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4942 fi
4943
4944 if test "$wxUSE_DEBUGREPORT" = yes; then
4945 echo "$as_me:$LINENO: result: yes" >&5
4946echo "${ECHO_T}yes" >&6
4947 else
4948 echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6
4950 fi
4951
4952
a848cd7e
SC
4953 enablestring=
4954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4955echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4956 no_cache=0
4957 # Check whether --enable-dialupman or --disable-dialupman was given.
4958if test "${enable_dialupman+set}" = set; then
4959 enableval="$enable_dialupman"
4960
4961 if test "$enableval" = yes; then
4962 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4963 else
4964 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4965 fi
4966
4967else
4968
4969 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4970 if test "x$LINE" != x ; then
4971 eval "DEFAULT_$LINE"
4972 else
4973 no_cache=1
4974 fi
4975
4976 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4977
4978fi;
4979
4980 eval "$ac_cv_use_dialupman"
4981 if test "$no_cache" != 1; then
4982 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4983 fi
4984
4985 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4986 echo "$as_me:$LINENO: result: yes" >&5
4987echo "${ECHO_T}yes" >&6
4988 else
4989 echo "$as_me:$LINENO: result: no" >&5
4990echo "${ECHO_T}no" >&6
4991 fi
4992
4993
4994 enablestring=
4995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4996echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4997 no_cache=0
4998 # Check whether --enable-dynlib or --disable-dynlib was given.
4999if test "${enable_dynlib+set}" = set; then
5000 enableval="$enable_dynlib"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5004 else
5005 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5006 fi
5007
5008else
5009
5010 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5018
5019fi;
5020
5021 eval "$ac_cv_use_dynlib"
5022 if test "$no_cache" != 1; then
5023 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5024 fi
5025
5026 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5027 echo "$as_me:$LINENO: result: yes" >&5
5028echo "${ECHO_T}yes" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031echo "${ECHO_T}no" >&6
5032 fi
5033
5034
5035 enablestring=
5036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5037echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5038 no_cache=0
5039 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5040if test "${enable_dynamicloader+set}" = set; then
5041 enableval="$enable_dynamicloader"
5042
5043 if test "$enableval" = yes; then
5044 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5045 else
5046 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5047 fi
5048
5049else
5050
5051 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5052 if test "x$LINE" != x ; then
5053 eval "DEFAULT_$LINE"
5054 else
5055 no_cache=1
5056 fi
5057
5058 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5059
5060fi;
5061
5062 eval "$ac_cv_use_dynamicloader"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5065 fi
5066
5067 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5068 echo "$as_me:$LINENO: result: yes" >&5
5069echo "${ECHO_T}yes" >&6
5070 else
5071 echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6
5073 fi
5074
5075
5076 enablestring=
5077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5078echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5079 no_cache=0
5080 # Check whether --enable-exceptions or --disable-exceptions was given.
5081if test "${enable_exceptions+set}" = set; then
5082 enableval="$enable_exceptions"
5083
5084 if test "$enableval" = yes; then
5085 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5086 else
5087 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5088 fi
5089
5090else
5091
5092 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5100
5101fi;
5102
5103 eval "$ac_cv_use_exceptions"
5104 if test "$no_cache" != 1; then
5105 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5106 fi
5107
5108 if test "$wxUSE_EXCEPTIONS" = yes; then
5109 echo "$as_me:$LINENO: result: yes" >&5
5110echo "${ECHO_T}yes" >&6
5111 else
5112 echo "$as_me:$LINENO: result: no" >&5
5113echo "${ECHO_T}no" >&6
5114 fi
5115
5116
5117 enablestring=
5118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5119echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5120 no_cache=0
5121 # Check whether --enable-ffile or --disable-ffile was given.
5122if test "${enable_ffile+set}" = set; then
5123 enableval="$enable_ffile"
5124
5125 if test "$enableval" = yes; then
5126 ac_cv_use_ffile='wxUSE_FFILE=yes'
5127 else
5128 ac_cv_use_ffile='wxUSE_FFILE=no'
5129 fi
5130
5131else
5132
5133 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5141
5142fi;
5143
5144 eval "$ac_cv_use_ffile"
5145 if test "$no_cache" != 1; then
5146 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5147 fi
5148
5149 if test "$wxUSE_FFILE" = yes; then
5150 echo "$as_me:$LINENO: result: yes" >&5
5151echo "${ECHO_T}yes" >&6
5152 else
5153 echo "$as_me:$LINENO: result: no" >&5
5154echo "${ECHO_T}no" >&6
5155 fi
5156
5157
5158 enablestring=
5159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5160echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5161 no_cache=0
5162 # Check whether --enable-file or --disable-file was given.
5163if test "${enable_file+set}" = set; then
5164 enableval="$enable_file"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_file='wxUSE_FILE=yes'
5168 else
5169 ac_cv_use_file='wxUSE_FILE=no'
5170 fi
5171
5172else
5173
5174 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5182
5183fi;
5184
5185 eval "$ac_cv_use_file"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_FILE" = yes; then
5191 echo "$as_me:$LINENO: result: yes" >&5
5192echo "${ECHO_T}yes" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6
5196 fi
5197
5198
5199 enablestring=
5200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5201echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5202 no_cache=0
5203 # Check whether --enable-filesystem or --disable-filesystem was given.
5204if test "${enable_filesystem+set}" = set; then
5205 enableval="$enable_filesystem"
5206
5207 if test "$enableval" = yes; then
5208 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5209 else
5210 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5211 fi
5212
5213else
5214
5215 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5216 if test "x$LINE" != x ; then
5217 eval "DEFAULT_$LINE"
5218 else
5219 no_cache=1
5220 fi
5221
5222 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5223
5224fi;
5225
5226 eval "$ac_cv_use_filesystem"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_FILESYSTEM" = yes; then
5232 echo "$as_me:$LINENO: result: yes" >&5
5233echo "${ECHO_T}yes" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
5237 fi
5238
5239
5240 enablestring=
5241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5242echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5243 no_cache=0
5244 # Check whether --enable-fontmap or --disable-fontmap was given.
5245if test "${enable_fontmap+set}" = set; then
5246 enableval="$enable_fontmap"
5247
5248 if test "$enableval" = yes; then
5249 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5250 else
5251 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5252 fi
5253
5254else
5255
5256 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5264
5265fi;
5266
5267 eval "$ac_cv_use_fontmap"
5268 if test "$no_cache" != 1; then
5269 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5270 fi
5271
5272 if test "$wxUSE_FONTMAP" = yes; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274echo "${ECHO_T}yes" >&6
5275 else
5276 echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6
5278 fi
5279
5280
5281 enablestring=
5282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5283echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5284 no_cache=0
5285 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5286if test "${enable_fs_inet+set}" = set; then
5287 enableval="$enable_fs_inet"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5291 else
5292 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5293 fi
5294
5295else
5296
5297 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5305
5306fi;
5307
5308 eval "$ac_cv_use_fs_inet"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_FS_INET" = yes; then
5314 echo "$as_me:$LINENO: result: yes" >&5
5315echo "${ECHO_T}yes" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319 fi
5320
5321
5322 enablestring=
5323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5324echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5325 no_cache=0
5326 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5327if test "${enable_fs_zip+set}" = set; then
5328 enableval="$enable_fs_zip"
5329
5330 if test "$enableval" = yes; then
5331 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5332 else
5333 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5334 fi
5335
5336else
5337
5338 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5346
5347fi;
5348
5349 eval "$ac_cv_use_fs_zip"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_FS_ZIP" = yes; then
5355 echo "$as_me:$LINENO: result: yes" >&5
5356echo "${ECHO_T}yes" >&6
5357 else
5358 echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6
5360 fi
5361
5362
5363 enablestring=
5364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5365echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5366 no_cache=0
5367 # Check whether --enable-geometry or --disable-geometry was given.
5368if test "${enable_geometry+set}" = set; then
5369 enableval="$enable_geometry"
5370
5371 if test "$enableval" = yes; then
5372 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5373 else
5374 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5375 fi
5376
5377else
5378
5379 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5380 if test "x$LINE" != x ; then
5381 eval "DEFAULT_$LINE"
5382 else
5383 no_cache=1
5384 fi
5385
5386 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5387
5388fi;
5389
5390 eval "$ac_cv_use_geometry"
5391 if test "$no_cache" != 1; then
5392 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5393 fi
5394
5395 if test "$wxUSE_GEOMETRY" = yes; then
5396 echo "$as_me:$LINENO: result: yes" >&5
5397echo "${ECHO_T}yes" >&6
5398 else
5399 echo "$as_me:$LINENO: result: no" >&5
5400echo "${ECHO_T}no" >&6
5401 fi
5402
5403
5404 enablestring=
5405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5406echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5407 no_cache=0
5408 # Check whether --enable-log or --disable-log was given.
5409if test "${enable_log+set}" = set; then
5410 enableval="$enable_log"
5411
5412 if test "$enableval" = yes; then
5413 ac_cv_use_log='wxUSE_LOG=yes'
5414 else
5415 ac_cv_use_log='wxUSE_LOG=no'
5416 fi
5417
5418else
5419
5420 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5421 if test "x$LINE" != x ; then
5422 eval "DEFAULT_$LINE"
5423 else
5424 no_cache=1
5425 fi
5426
5427 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5428
5429fi;
5430
5431 eval "$ac_cv_use_log"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_LOG" = yes; then
5437 echo "$as_me:$LINENO: result: yes" >&5
5438echo "${ECHO_T}yes" >&6
5439 else
5440 echo "$as_me:$LINENO: result: no" >&5
5441echo "${ECHO_T}no" >&6
5442 fi
5443
5444
5445 enablestring=
5446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5447echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5448 no_cache=0
5449 # Check whether --enable-longlong or --disable-longlong was given.
5450if test "${enable_longlong+set}" = set; then
5451 enableval="$enable_longlong"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5455 else
5456 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5457 fi
5458
5459else
5460
5461 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5469
5470fi;
5471
5472 eval "$ac_cv_use_longlong"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_LONGLONG" = yes; then
5478 echo "$as_me:$LINENO: result: yes" >&5
5479echo "${ECHO_T}yes" >&6
5480 else
5481 echo "$as_me:$LINENO: result: no" >&5
5482echo "${ECHO_T}no" >&6
5483 fi
5484
5485
5486 enablestring=
5487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5488echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5489 no_cache=0
5490 # Check whether --enable-mimetype or --disable-mimetype was given.
5491if test "${enable_mimetype+set}" = set; then
5492 enableval="$enable_mimetype"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5496 else
5497 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5498 fi
5499
5500else
5501
5502 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5510
5511fi;
5512
5513 eval "$ac_cv_use_mimetype"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_MIMETYPE" = yes; then
5519 echo "$as_me:$LINENO: result: yes" >&5
5520echo "${ECHO_T}yes" >&6
5521 else
5522 echo "$as_me:$LINENO: result: no" >&5
5523echo "${ECHO_T}no" >&6
5524 fi
5525
5526
5527 enablestring=
5528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5529echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5530 no_cache=0
5531 # Check whether --enable-mslu or --disable-mslu was given.
5532if test "${enable_mslu+set}" = set; then
5533 enableval="$enable_mslu"
5534
5535 if test "$enableval" = yes; then
5536 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5537 else
5538 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5539 fi
5540
5541else
5542
5543 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5544 if test "x$LINE" != x ; then
5545 eval "DEFAULT_$LINE"
5546 else
5547 no_cache=1
5548 fi
5549
5550 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5551
5552fi;
5553
5554 eval "$ac_cv_use_mslu"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_UNICODE_MSLU" = yes; then
5560 echo "$as_me:$LINENO: result: yes" >&5
5561echo "${ECHO_T}yes" >&6
5562 else
5563 echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6
5565 fi
5566
5567
5568 enablestring=
5569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5570echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5571 no_cache=0
5572 # Check whether --enable-snglinst or --disable-snglinst was given.
5573if test "${enable_snglinst+set}" = set; then
5574 enableval="$enable_snglinst"
5575
5576 if test "$enableval" = yes; then
5577 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5578 else
5579 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5580 fi
5581
5582else
5583
5584 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5585 if test "x$LINE" != x ; then
5586 eval "DEFAULT_$LINE"
5587 else
5588 no_cache=1
5589 fi
5590
5591 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5592
5593fi;
5594
5595 eval "$ac_cv_use_snglinst"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5601 echo "$as_me:$LINENO: result: yes" >&5
5602echo "${ECHO_T}yes" >&6
5603 else
5604 echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606 fi
5607
5608
5609 enablestring=
07158944
VZ
5610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5611echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5612 no_cache=0
07158944
VZ
5613 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5614if test "${enable_std_iostreams+set}" = set; then
5615 enableval="$enable_std_iostreams"
a848cd7e
SC
5616
5617 if test "$enableval" = yes; then
07158944 5618 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5619 else
07158944 5620 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5621 fi
5622
5623else
5624
07158944 5625 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5626 if test "x$LINE" != x ; then
5627 eval "DEFAULT_$LINE"
5628 else
5629 no_cache=1
5630 fi
5631
07158944 5632 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5633
5634fi;
5635
07158944 5636 eval "$ac_cv_use_std_iostreams"
a848cd7e 5637 if test "$no_cache" != 1; then
07158944 5638 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5639 fi
5640
07158944 5641 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5642 echo "$as_me:$LINENO: result: yes" >&5
5643echo "${ECHO_T}yes" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6
5647 fi
5648
5649
59746b65
MW
5650 enablestring=
5651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5652echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5653 no_cache=0
5654 # Check whether --enable-std_string or --disable-std_string was given.
5655if test "${enable_std_string+set}" = set; then
5656 enableval="$enable_std_string"
5657
5658 if test "$enableval" = yes; then
5659 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5660 else
5661 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5662 fi
5663
5664else
5665
5666 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5667 if test "x$LINE" != x ; then
5668 eval "DEFAULT_$LINE"
5669 else
5670 no_cache=1
5671 fi
5672
5673 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5674
5675fi;
5676
5677 eval "$ac_cv_use_std_string"
5678 if test "$no_cache" != 1; then
5679 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5680 fi
5681
5682 if test "$wxUSE_STD_STRING" = yes; then
5683 echo "$as_me:$LINENO: result: yes" >&5
5684echo "${ECHO_T}yes" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687echo "${ECHO_T}no" >&6
5688 fi
5689
5690
a848cd7e 5691 enablestring=
07158944
VZ
5692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5693echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5694 no_cache=0
07158944
VZ
5695 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5696if test "${enable_stdpaths+set}" = set; then
5697 enableval="$enable_stdpaths"
a848cd7e
SC
5698
5699 if test "$enableval" = yes; then
07158944 5700 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5701 else
07158944 5702 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5703 fi
5704
5705else
5706
07158944 5707 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5708 if test "x$LINE" != x ; then
5709 eval "DEFAULT_$LINE"
5710 else
5711 no_cache=1
5712 fi
5713
07158944 5714 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5715
5716fi;
5717
07158944 5718 eval "$ac_cv_use_stdpaths"
a848cd7e 5719 if test "$no_cache" != 1; then
07158944 5720 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5721 fi
5722
07158944 5723 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5724 echo "$as_me:$LINENO: result: yes" >&5
5725echo "${ECHO_T}yes" >&6
5726 else
5727 echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729 fi
5730
5731
5732 enablestring=
5733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5734echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5735 no_cache=0
5736 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5737if test "${enable_stopwatch+set}" = set; then
5738 enableval="$enable_stopwatch"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5742 else
5743 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5744 fi
5745
5746else
5747
5748 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5756
5757fi;
5758
5759 eval "$ac_cv_use_stopwatch"
5760 if test "$no_cache" != 1; then
5761 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5762 fi
5763
5764 if test "$wxUSE_STOPWATCH" = yes; then
5765 echo "$as_me:$LINENO: result: yes" >&5
5766echo "${ECHO_T}yes" >&6
5767 else
5768 echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770 fi
5771
5772
07158944
VZ
5773 enablestring=
5774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5775echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5776 no_cache=0
5777 # Check whether --enable-streams or --disable-streams was given.
5778if test "${enable_streams+set}" = set; then
5779 enableval="$enable_streams"
5780
5781 if test "$enableval" = yes; then
5782 ac_cv_use_streams='wxUSE_STREAMS=yes'
5783 else
5784 ac_cv_use_streams='wxUSE_STREAMS=no'
5785 fi
5786
5787else
5788
5789 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5790 if test "x$LINE" != x ; then
5791 eval "DEFAULT_$LINE"
5792 else
5793 no_cache=1
5794 fi
5795
5796 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5797
5798fi;
5799
5800 eval "$ac_cv_use_streams"
5801 if test "$no_cache" != 1; then
5802 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5803 fi
5804
5805 if test "$wxUSE_STREAMS" = yes; then
5806 echo "$as_me:$LINENO: result: yes" >&5
5807echo "${ECHO_T}yes" >&6
5808 else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811 fi
5812
5813
a848cd7e
SC
5814 enablestring=
5815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5816echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5817 no_cache=0
5818 # Check whether --enable-system_options or --disable-system_options was given.
5819if test "${enable_system_options+set}" = set; then
5820 enableval="$enable_system_options"
5821
5822 if test "$enableval" = yes; then
5823 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5824 else
5825 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5826 fi
5827
5828else
5829
5830 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5831 if test "x$LINE" != x ; then
5832 eval "DEFAULT_$LINE"
5833 else
5834 no_cache=1
5835 fi
5836
5837 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5838
5839fi;
5840
5841 eval "$ac_cv_use_system_options"
5842 if test "$no_cache" != 1; then
5843 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5844 fi
5845
5846 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5847 echo "$as_me:$LINENO: result: yes" >&5
5848echo "${ECHO_T}yes" >&6
5849 else
5850 echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852 fi
5853
5854
5855 enablestring=
5856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5857echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5858 no_cache=0
5859 # Check whether --enable-textbuf or --disable-textbuf was given.
5860if test "${enable_textbuf+set}" = set; then
5861 enableval="$enable_textbuf"
5862
5863 if test "$enableval" = yes; then
5864 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5865 else
5866 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5867 fi
5868
5869else
5870
5871 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5872 if test "x$LINE" != x ; then
5873 eval "DEFAULT_$LINE"
5874 else
5875 no_cache=1
5876 fi
5877
5878 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5879
5880fi;
5881
5882 eval "$ac_cv_use_textbuf"
5883 if test "$no_cache" != 1; then
5884 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5885 fi
5886
5887 if test "$wxUSE_TEXTBUFFER" = yes; then
5888 echo "$as_me:$LINENO: result: yes" >&5
5889echo "${ECHO_T}yes" >&6
5890 else
5891 echo "$as_me:$LINENO: result: no" >&5
5892echo "${ECHO_T}no" >&6
5893 fi
5894
5895
5896 enablestring=
5897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5898echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5899 no_cache=0
5900 # Check whether --enable-textfile or --disable-textfile was given.
5901if test "${enable_textfile+set}" = set; then
5902 enableval="$enable_textfile"
5903
5904 if test "$enableval" = yes; then
5905 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5906 else
5907 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5908 fi
5909
5910else
5911
5912 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5913 if test "x$LINE" != x ; then
5914 eval "DEFAULT_$LINE"
5915 else
5916 no_cache=1
5917 fi
5918
5919 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5920
5921fi;
5922
5923 eval "$ac_cv_use_textfile"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_TEXTFILE" = yes; then
5929 echo "$as_me:$LINENO: result: yes" >&5
5930echo "${ECHO_T}yes" >&6
5931 else
5932 echo "$as_me:$LINENO: result: no" >&5
5933echo "${ECHO_T}no" >&6
5934 fi
5935
5936
5937 enablestring=
5938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5939echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5940 no_cache=0
5941 # Check whether --enable-timer or --disable-timer was given.
5942if test "${enable_timer+set}" = set; then
5943 enableval="$enable_timer"
5944
5945 if test "$enableval" = yes; then
5946 ac_cv_use_timer='wxUSE_TIMER=yes'
5947 else
5948 ac_cv_use_timer='wxUSE_TIMER=no'
5949 fi
5950
5951else
5952
5953 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5954 if test "x$LINE" != x ; then
5955 eval "DEFAULT_$LINE"
5956 else
5957 no_cache=1
5958 fi
5959
5960 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5961
5962fi;
5963
5964 eval "$ac_cv_use_timer"
5965 if test "$no_cache" != 1; then
5966 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5967 fi
5968
5969 if test "$wxUSE_TIMER" = yes; then
5970 echo "$as_me:$LINENO: result: yes" >&5
5971echo "${ECHO_T}yes" >&6
5972 else
5973 echo "$as_me:$LINENO: result: no" >&5
5974echo "${ECHO_T}no" >&6
5975 fi
5976
5977
5978 enablestring=
5979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5980echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5981 no_cache=0
5982 # Check whether --enable-unicode or --disable-unicode was given.
5983if test "${enable_unicode+set}" = set; then
5984 enableval="$enable_unicode"
5985
5986 if test "$enableval" = yes; then
5987 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5988 else
5989 ac_cv_use_unicode='wxUSE_UNICODE=no'
5990 fi
5991
5992else
5993
5994 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5995 if test "x$LINE" != x ; then
5996 eval "DEFAULT_$LINE"
5997 else
5998 no_cache=1
5999 fi
6000
6001 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6002
6003fi;
6004
6005 eval "$ac_cv_use_unicode"
6006 if test "$no_cache" != 1; then
6007 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6008 fi
6009
6010 if test "$wxUSE_UNICODE" = yes; then
6011 echo "$as_me:$LINENO: result: yes" >&5
6012echo "${ECHO_T}yes" >&6
6013 else
6014 echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6
6016 fi
6017
6018
6019 enablestring=
6020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6021echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6022 no_cache=0
6023 # Check whether --enable-sound or --disable-sound was given.
6024if test "${enable_sound+set}" = set; then
6025 enableval="$enable_sound"
6026
6027 if test "$enableval" = yes; then
6028 ac_cv_use_sound='wxUSE_SOUND=yes'
6029 else
6030 ac_cv_use_sound='wxUSE_SOUND=no'
6031 fi
6032
6033else
6034
6035 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6036 if test "x$LINE" != x ; then
6037 eval "DEFAULT_$LINE"
6038 else
6039 no_cache=1
6040 fi
6041
6042 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6043
6044fi;
6045
6046 eval "$ac_cv_use_sound"
6047 if test "$no_cache" != 1; then
6048 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6049 fi
6050
6051 if test "$wxUSE_SOUND" = yes; then
6052 echo "$as_me:$LINENO: result: yes" >&5
6053echo "${ECHO_T}yes" >&6
6054 else
6055 echo "$as_me:$LINENO: result: no" >&5
6056echo "${ECHO_T}no" >&6
6057 fi
6058
6059
3b57de8b
RL
6060 enablestring=
6061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6062echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6063 no_cache=0
6064 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6065if test "${enable_mediactrl+set}" = set; then
6066 enableval="$enable_mediactrl"
6067
6068 if test "$enableval" = yes; then
6069 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6070 else
6071 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6072 fi
6073
6074else
6075
6076 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6077 if test "x$LINE" != x ; then
6078 eval "DEFAULT_$LINE"
6079 else
6080 no_cache=1
6081 fi
6082
6083 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6084
6085fi;
6086
6087 eval "$ac_cv_use_mediactrl"
6088 if test "$no_cache" != 1; then
6089 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6090 fi
6091
6092 if test "$wxUSE_MEDIACTRL" = yes; then
6093 echo "$as_me:$LINENO: result: yes" >&5
6094echo "${ECHO_T}yes" >&6
6095 else
6096 echo "$as_me:$LINENO: result: no" >&5
6097echo "${ECHO_T}no" >&6
6098 fi
6099
6100
a848cd7e
SC
6101 enablestring=
6102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6103echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6104 no_cache=0
6105 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6106if test "${enable_wxprintfv+set}" = set; then
6107 enableval="$enable_wxprintfv"
6108
6109 if test "$enableval" = yes; then
6110 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6111 else
6112 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6113 fi
6114
6115else
6116
6117 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6118 if test "x$LINE" != x ; then
6119 eval "DEFAULT_$LINE"
6120 else
6121 no_cache=1
6122 fi
6123
6124 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6125
6126fi;
6127
6128 eval "$ac_cv_use_wxprintfv"
6129 if test "$no_cache" != 1; then
6130 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6131 fi
6132
6133 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6134 echo "$as_me:$LINENO: result: yes" >&5
6135echo "${ECHO_T}yes" >&6
6136 else
6137 echo "$as_me:$LINENO: result: no" >&5
6138echo "${ECHO_T}no" >&6
6139 fi
6140
6141
6142 enablestring=
6143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6144echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6145 no_cache=0
6146 # Check whether --enable-zipstream or --disable-zipstream was given.
6147if test "${enable_zipstream+set}" = set; then
6148 enableval="$enable_zipstream"
6149
6150 if test "$enableval" = yes; then
6151 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6152 else
6153 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6154 fi
6155
6156else
6157
6158 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6159 if test "x$LINE" != x ; then
6160 eval "DEFAULT_$LINE"
6161 else
6162 no_cache=1
6163 fi
6164
6165 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6166
6167fi;
6168
6169 eval "$ac_cv_use_zipstream"
6170 if test "$no_cache" != 1; then
6171 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6172 fi
6173
6174 if test "$wxUSE_ZIPSTREAM" = yes; then
6175 echo "$as_me:$LINENO: result: yes" >&5
6176echo "${ECHO_T}yes" >&6
6177 else
6178 echo "$as_me:$LINENO: result: no" >&5
6179echo "${ECHO_T}no" >&6
6180 fi
6181
6182
a848cd7e
SC
6183
6184 enablestring=
6185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6186echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6187 no_cache=0
6188 # Check whether --enable-url or --disable-url was given.
6189if test "${enable_url+set}" = set; then
6190 enableval="$enable_url"
6191
6192 if test "$enableval" = yes; then
6193 ac_cv_use_url='wxUSE_URL=yes'
6194 else
6195 ac_cv_use_url='wxUSE_URL=no'
6196 fi
6197
6198else
6199
6200 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6201 if test "x$LINE" != x ; then
6202 eval "DEFAULT_$LINE"
6203 else
6204 no_cache=1
6205 fi
6206
6207 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6208
6209fi;
6210
6211 eval "$ac_cv_use_url"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_URL" = yes; then
6217 echo "$as_me:$LINENO: result: yes" >&5
6218echo "${ECHO_T}yes" >&6
6219 else
6220 echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6
6222 fi
6223
6224
6225 enablestring=
6226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6227echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6228 no_cache=0
6229 # Check whether --enable-protocol or --disable-protocol was given.
6230if test "${enable_protocol+set}" = set; then
6231 enableval="$enable_protocol"
6232
6233 if test "$enableval" = yes; then
6234 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6235 else
6236 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6237 fi
6238
6239else
6240
6241 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6249
6250fi;
6251
6252 eval "$ac_cv_use_protocol"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_PROTOCOL" = yes; then
6258 echo "$as_me:$LINENO: result: yes" >&5
6259echo "${ECHO_T}yes" >&6
6260 else
6261 echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6
6263 fi
6264
6265
6266 enablestring=
6267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6268echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6269 no_cache=0
6270 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6271if test "${enable_protocol_http+set}" = set; then
6272 enableval="$enable_protocol_http"
6273
6274 if test "$enableval" = yes; then
6275 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6276 else
6277 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6278 fi
6279
6280else
6281
6282 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6283 if test "x$LINE" != x ; then
6284 eval "DEFAULT_$LINE"
6285 else
6286 no_cache=1
6287 fi
6288
6289 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6290
6291fi;
6292
6293 eval "$ac_cv_use_protocol_http"
6294 if test "$no_cache" != 1; then
6295 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6296 fi
6297
6298 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6299 echo "$as_me:$LINENO: result: yes" >&5
6300echo "${ECHO_T}yes" >&6
6301 else
6302 echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6
6304 fi
6305
6306
6307 enablestring=
6308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6309echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6310 no_cache=0
6311 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6312if test "${enable_protocol_ftp+set}" = set; then
6313 enableval="$enable_protocol_ftp"
6314
6315 if test "$enableval" = yes; then
6316 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6317 else
6318 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6319 fi
6320
6321else
6322
6323 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6324 if test "x$LINE" != x ; then
6325 eval "DEFAULT_$LINE"
6326 else
6327 no_cache=1
6328 fi
6329
6330 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6331
6332fi;
6333
6334 eval "$ac_cv_use_protocol_ftp"
6335 if test "$no_cache" != 1; then
6336 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6337 fi
6338
6339 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6340 echo "$as_me:$LINENO: result: yes" >&5
6341echo "${ECHO_T}yes" >&6
6342 else
6343 echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6
6345 fi
6346
6347
6348 enablestring=
6349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6350echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6351 no_cache=0
6352 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6353if test "${enable_protocol_file+set}" = set; then
6354 enableval="$enable_protocol_file"
6355
6356 if test "$enableval" = yes; then
6357 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6358 else
6359 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6360 fi
6361
6362else
6363
6364 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6365 if test "x$LINE" != x ; then
6366 eval "DEFAULT_$LINE"
6367 else
6368 no_cache=1
6369 fi
6370
6371 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6372
6373fi;
6374
6375 eval "$ac_cv_use_protocol_file"
6376 if test "$no_cache" != 1; then
6377 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6378 fi
6379
6380 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6381 echo "$as_me:$LINENO: result: yes" >&5
6382echo "${ECHO_T}yes" >&6
6383 else
6384 echo "$as_me:$LINENO: result: no" >&5
6385echo "${ECHO_T}no" >&6
6386 fi
6387
6388
6389
6390
6391
6392 enablestring=
6393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6394echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6395 no_cache=0
6396 # Check whether --enable-threads or --disable-threads was given.
6397if test "${enable_threads+set}" = set; then
6398 enableval="$enable_threads"
6399
6400 if test "$enableval" = yes; then
6401 ac_cv_use_threads='wxUSE_THREADS=yes'
6402 else
6403 ac_cv_use_threads='wxUSE_THREADS=no'
6404 fi
6405
6406else
6407
6408 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6409 if test "x$LINE" != x ; then
6410 eval "DEFAULT_$LINE"
6411 else
6412 no_cache=1
6413 fi
6414
6415 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6416
6417fi;
6418
6419 eval "$ac_cv_use_threads"
6420 if test "$no_cache" != 1; then
6421 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6422 fi
6423
6424 if test "$wxUSE_THREADS" = yes; then
6425 echo "$as_me:$LINENO: result: yes" >&5
6426echo "${ECHO_T}yes" >&6
6427 else
6428 echo "$as_me:$LINENO: result: no" >&5
6429echo "${ECHO_T}no" >&6
6430 fi
6431
6432
6433if test "$wxUSE_GUI" = "yes"; then
6434
6435
6436
6437 enablestring=
6438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6439echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6440 no_cache=0
6441 # Check whether --enable-docview or --disable-docview was given.
6442if test "${enable_docview+set}" = set; then
6443 enableval="$enable_docview"
6444
6445 if test "$enableval" = yes; then
6446 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6447 else
6448 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6449 fi
6450
6451else
6452
6453 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6454 if test "x$LINE" != x ; then
6455 eval "DEFAULT_$LINE"
6456 else
6457 no_cache=1
6458 fi
6459
6460 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6461
6462fi;
6463
6464 eval "$ac_cv_use_docview"
6465 if test "$no_cache" != 1; then
6466 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6467 fi
6468
6469 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6470 echo "$as_me:$LINENO: result: yes" >&5
6471echo "${ECHO_T}yes" >&6
6472 else
6473 echo "$as_me:$LINENO: result: no" >&5
6474echo "${ECHO_T}no" >&6
6475 fi
6476
6477
6478 enablestring=
6479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6480echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6481 no_cache=0
6482 # Check whether --enable-help or --disable-help was given.
6483if test "${enable_help+set}" = set; then
6484 enableval="$enable_help"
6485
6486 if test "$enableval" = yes; then
6487 ac_cv_use_help='wxUSE_HELP=yes'
6488 else
6489 ac_cv_use_help='wxUSE_HELP=no'
6490 fi
6491
6492else
6493
6494 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6495 if test "x$LINE" != x ; then
6496 eval "DEFAULT_$LINE"
6497 else
6498 no_cache=1
6499 fi
6500
6501 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6502
6503fi;
6504
6505 eval "$ac_cv_use_help"
6506 if test "$no_cache" != 1; then
6507 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6508 fi
6509
6510 if test "$wxUSE_HELP" = yes; then
6511 echo "$as_me:$LINENO: result: yes" >&5
6512echo "${ECHO_T}yes" >&6
6513 else
6514 echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
6516 fi
6517
6518
6519 enablestring=
6520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6521echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6522 no_cache=0
6523 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6524if test "${enable_mshtmlhelp+set}" = set; then
6525 enableval="$enable_mshtmlhelp"
6526
6527 if test "$enableval" = yes; then
6528 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6529 else
6530 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6531 fi
6532
6533else
6534
6535 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6536 if test "x$LINE" != x ; then
6537 eval "DEFAULT_$LINE"
6538 else
6539 no_cache=1
6540 fi
6541
6542 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6543
6544fi;
6545
6546 eval "$ac_cv_use_mshtmlhelp"
6547 if test "$no_cache" != 1; then
6548 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6549 fi
6550
6551 if test "$wxUSE_MS_HTML_HELP" = yes; then
6552 echo "$as_me:$LINENO: result: yes" >&5
6553echo "${ECHO_T}yes" >&6
6554 else
6555 echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
6557 fi
6558
6559
6560 enablestring=
6561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6562echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6563 no_cache=0
6564 # Check whether --enable-html or --disable-html was given.
6565if test "${enable_html+set}" = set; then
6566 enableval="$enable_html"
6567
6568 if test "$enableval" = yes; then
6569 ac_cv_use_html='wxUSE_HTML=yes'
6570 else
6571 ac_cv_use_html='wxUSE_HTML=no'
6572 fi
6573
6574else
6575
6576 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6584
6585fi;
6586
6587 eval "$ac_cv_use_html"
6588 if test "$no_cache" != 1; then
6589 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6590 fi
6591
6592 if test "$wxUSE_HTML" = yes; then
6593 echo "$as_me:$LINENO: result: yes" >&5
6594echo "${ECHO_T}yes" >&6
6595 else
6596 echo "$as_me:$LINENO: result: no" >&5
6597echo "${ECHO_T}no" >&6
6598 fi
6599
6600
6601 enablestring=
6602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6603echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6604 no_cache=0
6605 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6606if test "${enable_htmlhelp+set}" = set; then
6607 enableval="$enable_htmlhelp"
6608
6609 if test "$enableval" = yes; then
6610 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6611 else
6612 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6613 fi
6614
6615else
6616
6617 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6618 if test "x$LINE" != x ; then
6619 eval "DEFAULT_$LINE"
6620 else
6621 no_cache=1
6622 fi
6623
6624 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6625
6626fi;
6627
6628 eval "$ac_cv_use_htmlhelp"
6629 if test "$no_cache" != 1; then
6630 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6631 fi
6632
6633 if test "$wxUSE_WXHTML_HELP" = yes; then
6634 echo "$as_me:$LINENO: result: yes" >&5
6635echo "${ECHO_T}yes" >&6
6636 else
6637 echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6
6639 fi
6640
6641
9a8f0513
VS
6642 enablestring=
6643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6644echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6645 no_cache=0
6646 # Check whether --enable-xrc or --disable-xrc was given.
6647if test "${enable_xrc+set}" = set; then
6648 enableval="$enable_xrc"
6649
6650 if test "$enableval" = yes; then
6651 ac_cv_use_xrc='wxUSE_XRC=yes'
6652 else
6653 ac_cv_use_xrc='wxUSE_XRC=no'
6654 fi
6655
6656else
6657
6658 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6659 if test "x$LINE" != x ; then
6660 eval "DEFAULT_$LINE"
6661 else
6662 no_cache=1
6663 fi
6664
6665 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6666
6667fi;
6668
6669 eval "$ac_cv_use_xrc"
6670 if test "$no_cache" != 1; then
6671 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6672 fi
6673
6674 if test "$wxUSE_XRC" = yes; then
6675 echo "$as_me:$LINENO: result: yes" >&5
6676echo "${ECHO_T}yes" >&6
6677 else
6678 echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6
6680 fi
6681
6682
a848cd7e
SC
6683 enablestring=
6684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6685echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6686 no_cache=0
6687 # Check whether --enable-constraints or --disable-constraints was given.
6688if test "${enable_constraints+set}" = set; then
6689 enableval="$enable_constraints"
6690
6691 if test "$enableval" = yes; then
6692 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6693 else
6694 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6695 fi
6696
6697else
6698
6699 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6700 if test "x$LINE" != x ; then
6701 eval "DEFAULT_$LINE"
6702 else
6703 no_cache=1
6704 fi
6705
6706 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6707
6708fi;
6709
6710 eval "$ac_cv_use_constraints"
6711 if test "$no_cache" != 1; then
6712 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6713 fi
6714
6715 if test "$wxUSE_CONSTRAINTS" = yes; then
6716 echo "$as_me:$LINENO: result: yes" >&5
6717echo "${ECHO_T}yes" >&6
6718 else
6719 echo "$as_me:$LINENO: result: no" >&5
6720echo "${ECHO_T}no" >&6
6721 fi
6722
6723
6724 enablestring=
6725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6726echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6727 no_cache=0
6728 # Check whether --enable-printarch or --disable-printarch was given.
6729if test "${enable_printarch+set}" = set; then
6730 enableval="$enable_printarch"
6731
6732 if test "$enableval" = yes; then
6733 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6734 else
6735 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6736 fi
6737
6738else
6739
6740 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6741 if test "x$LINE" != x ; then
6742 eval "DEFAULT_$LINE"
6743 else
6744 no_cache=1
6745 fi
6746
6747 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6748
6749fi;
6750
6751 eval "$ac_cv_use_printarch"
6752 if test "$no_cache" != 1; then
6753 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6754 fi
6755
6756 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6757 echo "$as_me:$LINENO: result: yes" >&5
6758echo "${ECHO_T}yes" >&6
6759 else
6760 echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6
6762 fi
6763
6764
6765 enablestring=
6766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6767echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6768 no_cache=0
6769 # Check whether --enable-mdi or --disable-mdi was given.
6770if test "${enable_mdi+set}" = set; then
6771 enableval="$enable_mdi"
6772
6773 if test "$enableval" = yes; then
8a7b1113 6774 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6775 else
8a7b1113 6776 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6777 fi
6778
6779else
6780
8a7b1113 6781 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6782 if test "x$LINE" != x ; then
6783 eval "DEFAULT_$LINE"
6784 else
6785 no_cache=1
6786 fi
6787
8a7b1113 6788 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6789
6790fi;
6791
6792 eval "$ac_cv_use_mdi"
6793 if test "$no_cache" != 1; then
6794 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6795 fi
6796
8a7b1113
VZ
6797 if test "$wxUSE_MDI" = yes; then
6798 echo "$as_me:$LINENO: result: yes" >&5
6799echo "${ECHO_T}yes" >&6
6800 else
6801 echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6
6803 fi
6804
6805
6806 enablestring=
6807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6808echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6809 no_cache=0
6810 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6811if test "${enable_mdidoc+set}" = set; then
6812 enableval="$enable_mdidoc"
6813
6814 if test "$enableval" = yes; then
6815 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6816 else
6817 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6818 fi
6819
6820else
6821
6822 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6823 if test "x$LINE" != x ; then
6824 eval "DEFAULT_$LINE"
6825 else
6826 no_cache=1
6827 fi
6828
6829 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6830
6831fi;
6832
6833 eval "$ac_cv_use_mdidoc"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6836 fi
6837
a848cd7e
SC
6838 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6839 echo "$as_me:$LINENO: result: yes" >&5
6840echo "${ECHO_T}yes" >&6
6841 else
6842 echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6
6844 fi
6845
6846
6847 enablestring=
6848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6849echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6850 no_cache=0
6851 # Check whether --enable-loggui or --disable-loggui was given.
6852if test "${enable_loggui+set}" = set; then
6853 enableval="$enable_loggui"
6854
6855 if test "$enableval" = yes; then
6856 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6857 else
6858 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6859 fi
6860
6861else
6862
6863 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6864 if test "x$LINE" != x ; then
6865 eval "DEFAULT_$LINE"
6866 else
6867 no_cache=1
6868 fi
6869
6870 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6871
6872fi;
6873
6874 eval "$ac_cv_use_loggui"
6875 if test "$no_cache" != 1; then
6876 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6877 fi
6878
6879 if test "$wxUSE_LOGGUI" = yes; then
6880 echo "$as_me:$LINENO: result: yes" >&5
6881echo "${ECHO_T}yes" >&6
6882 else
6883 echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6
6885 fi
6886
6887
6888 enablestring=
6889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6890echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6891 no_cache=0
6892 # Check whether --enable-logwin or --disable-logwin was given.
6893if test "${enable_logwin+set}" = set; then
6894 enableval="$enable_logwin"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6898 else
6899 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6900 fi
6901
6902else
6903
6904 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6912
6913fi;
6914
6915 eval "$ac_cv_use_logwin"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_LOGWINDOW" = yes; then
6921 echo "$as_me:$LINENO: result: yes" >&5
6922echo "${ECHO_T}yes" >&6
6923 else
6924 echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6
6926 fi
6927
6928
6929 enablestring=
6930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6931echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6932 no_cache=0
6933 # Check whether --enable-logdialog or --disable-logdialog was given.
6934if test "${enable_logdialog+set}" = set; then
6935 enableval="$enable_logdialog"
6936
6937 if test "$enableval" = yes; then
6938 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6939 else
6940 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6941 fi
6942
6943else
6944
6945 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6953
6954fi;
6955
6956 eval "$ac_cv_use_logdialog"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_LOGDIALOG" = yes; then
6962 echo "$as_me:$LINENO: result: yes" >&5
6963echo "${ECHO_T}yes" >&6
6964 else
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
6967 fi
6968
6969
646b6ec1
VS
6970 enablestring=
6971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6972echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6973 no_cache=0
6974 # Check whether --enable-webkit or --disable-webkit was given.
6975if test "${enable_webkit+set}" = set; then
6976 enableval="$enable_webkit"
6977
6978 if test "$enableval" = yes; then
6979 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6980 else
6981 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6982 fi
6983
6984else
6985
6986 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6994
6995fi;
6996
6997 eval "$ac_cv_use_webkit"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_WEBKIT" = yes; then
7003 echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6
7005 else
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
7008 fi
7009
7010
a848cd7e
SC
7011
7012 enablestring=
7013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7014echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7015 no_cache=0
7016 # Check whether --enable-postscript or --disable-postscript was given.
7017if test "${enable_postscript+set}" = set; then
7018 enableval="$enable_postscript"
7019
7020 if test "$enableval" = yes; then
7021 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7022 else
7023 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7024 fi
7025
7026else
7027
7028 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7029 if test "x$LINE" != x ; then
7030 eval "DEFAULT_$LINE"
7031 else
7032 no_cache=1
7033 fi
7034
7035 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7036
7037fi;
7038
7039 eval "$ac_cv_use_postscript"
7040 if test "$no_cache" != 1; then
7041 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7042 fi
7043
7044 if test "$wxUSE_POSTSCRIPT" = yes; then
7045 echo "$as_me:$LINENO: result: yes" >&5
7046echo "${ECHO_T}yes" >&6
7047 else
7048 echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6
7050 fi
7051
7052
7053
7054
7055
7056 enablestring=
7057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7058echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7059 no_cache=0
7060 # Check whether --enable-prologio or --disable-prologio was given.
7061if test "${enable_prologio+set}" = set; then
7062 enableval="$enable_prologio"
7063
7064 if test "$enableval" = yes; then
7065 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7066 else
7067 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7068 fi
7069
7070else
7071
7072 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7073 if test "x$LINE" != x ; then
7074 eval "DEFAULT_$LINE"
7075 else
7076 no_cache=1
7077 fi
7078
7079 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7080
7081fi;
7082
7083 eval "$ac_cv_use_prologio"
7084 if test "$no_cache" != 1; then
7085 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7086 fi
7087
7088 if test "$wxUSE_PROLOGIO" = yes; then
7089 echo "$as_me:$LINENO: result: yes" >&5
7090echo "${ECHO_T}yes" >&6
7091 else
7092 echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6
7094 fi
7095
7096
7097 enablestring=
7098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7099echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7100 no_cache=0
7101 # Check whether --enable-resources or --disable-resources was given.
7102if test "${enable_resources+set}" = set; then
7103 enableval="$enable_resources"
7104
7105 if test "$enableval" = yes; then
7106 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7107 else
7108 ac_cv_use_resources='wxUSE_RESOURCES=no'
7109 fi
7110
7111else
7112
7113 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7114 if test "x$LINE" != x ; then
7115 eval "DEFAULT_$LINE"
7116 else
7117 no_cache=1
7118 fi
7119
7120 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7121
7122fi;
7123
7124 eval "$ac_cv_use_resources"
7125 if test "$no_cache" != 1; then
7126 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7127 fi
7128
7129 if test "$wxUSE_RESOURCES" = yes; then
7130 echo "$as_me:$LINENO: result: yes" >&5
7131echo "${ECHO_T}yes" >&6
7132 else
7133 echo "$as_me:$LINENO: result: no" >&5
7134echo "${ECHO_T}no" >&6
7135 fi
7136
7137
7138
7139
7140 enablestring=
7141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7142echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7143 no_cache=0
7144 # Check whether --enable-clipboard or --disable-clipboard was given.
7145if test "${enable_clipboard+set}" = set; then
7146 enableval="$enable_clipboard"
7147
7148 if test "$enableval" = yes; then
7149 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7150 else
7151 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7152 fi
7153
7154else
7155
7156 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7157 if test "x$LINE" != x ; then
7158 eval "DEFAULT_$LINE"
7159 else
7160 no_cache=1
7161 fi
7162
7163 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7164
7165fi;
7166
7167 eval "$ac_cv_use_clipboard"
7168 if test "$no_cache" != 1; then
7169 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7170 fi
7171
7172 if test "$wxUSE_CLIPBOARD" = yes; then
7173 echo "$as_me:$LINENO: result: yes" >&5
7174echo "${ECHO_T}yes" >&6
7175 else
7176 echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6
7178 fi
7179
7180
7181 enablestring=
7182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7183echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7184 no_cache=0
7185 # Check whether --enable-dnd or --disable-dnd was given.
7186if test "${enable_dnd+set}" = set; then
7187 enableval="$enable_dnd"
7188
7189 if test "$enableval" = yes; then
7190 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7191 else
7192 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7193 fi
7194
7195else
7196
7197 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7198 if test "x$LINE" != x ; then
7199 eval "DEFAULT_$LINE"
7200 else
7201 no_cache=1
7202 fi
7203
7204 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7205
7206fi;
7207
7208 eval "$ac_cv_use_dnd"
7209 if test "$no_cache" != 1; then
7210 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7211 fi
7212
7213 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7214 echo "$as_me:$LINENO: result: yes" >&5
7215echo "${ECHO_T}yes" >&6
7216 else
7217 echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6
7219 fi
7220
7221
7222 enablestring=
7223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7224echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7225 no_cache=0
7226 # Check whether --enable-metafile or --disable-metafile was given.
7227if test "${enable_metafile+set}" = set; then
7228 enableval="$enable_metafile"
7229
7230 if test "$enableval" = yes; then
7231 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7232 else
7233 ac_cv_use_metafile='wxUSE_METAFILE=no'
7234 fi
7235
7236else
7237
7238 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7239 if test "x$LINE" != x ; then
7240 eval "DEFAULT_$LINE"
7241 else
7242 no_cache=1
7243 fi
7244
7245 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7246
7247fi;
7248
7249 eval "$ac_cv_use_metafile"
7250 if test "$no_cache" != 1; then
7251 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7252 fi
7253
7254 if test "$wxUSE_METAFILE" = yes; then
7255 echo "$as_me:$LINENO: result: yes" >&5
7256echo "${ECHO_T}yes" >&6
7257 else
7258 echo "$as_me:$LINENO: result: no" >&5
7259echo "${ECHO_T}no" >&6
7260 fi
7261
7262
7263
7264
7265
7266 enablestring=
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7268echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7269 no_cache=0
7270 # Check whether --enable-controls or --disable-controls was given.
7271if test "${enable_controls+set}" = set; then
7272 enableval="$enable_controls"
7273
7274 if test "$enableval" = yes; then
7275 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7276 else
7277 ac_cv_use_controls='wxUSE_CONTROLS=no'
7278 fi
7279
7280else
7281
7282 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7290
7291fi;
7292
7293 eval "$ac_cv_use_controls"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_CONTROLS" = yes; then
7299 echo "$as_me:$LINENO: result: yes" >&5
7300echo "${ECHO_T}yes" >&6
7301 else
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
7304 fi
7305
7306
7307if test "$wxUSE_CONTROLS" = "yes"; then
7308 DEFAULT_wxUSE_ACCEL=yes
7309 DEFAULT_wxUSE_BMPBUTTON=yes
7310 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7311 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7312 DEFAULT_wxUSE_CARET=yes
7313 DEFAULT_wxUSE_COMBOBOX=yes
7314 DEFAULT_wxUSE_CHECKBOX=yes
7315 DEFAULT_wxUSE_CHECKLISTBOX=yes
7316 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7317 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7318 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7319 DEFAULT_wxUSE_GAUGE=yes
7320 DEFAULT_wxUSE_GRID=yes
7321 DEFAULT_wxUSE_IMAGLIST=yes
7322 DEFAULT_wxUSE_LISTBOOK=yes
7323 DEFAULT_wxUSE_LISTBOX=yes
7324 DEFAULT_wxUSE_LISTCTRL=yes
7325 DEFAULT_wxUSE_NOTEBOOK=yes
7326 DEFAULT_wxUSE_RADIOBOX=yes
7327 DEFAULT_wxUSE_RADIOBTN=yes
7328 DEFAULT_wxUSE_SASH=yes
7329 DEFAULT_wxUSE_SCROLLBAR=yes
7330 DEFAULT_wxUSE_SLIDER=yes
7331 DEFAULT_wxUSE_SPINBTN=yes
7332 DEFAULT_wxUSE_SPINCTRL=yes
7333 DEFAULT_wxUSE_SPLITTER=yes
7334 DEFAULT_wxUSE_STATBMP=yes
7335 DEFAULT_wxUSE_STATBOX=yes
7336 DEFAULT_wxUSE_STATLINE=yes
7337 DEFAULT_wxUSE_STATUSBAR=yes
7338 DEFAULT_wxUSE_TAB_DIALOG=yes
7339 DEFAULT_wxUSE_TOGGLEBTN=yes
7340 DEFAULT_wxUSE_TOOLBAR=yes
7341 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7342 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7343 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7344 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
7345 DEFAULT_wxUSE_TREECTRL=yes
7346 DEFAULT_wxUSE_POPUPWIN=yes
7347 DEFAULT_wxUSE_TIPWINDOW=yes
7348elif test "$wxUSE_CONTROLS" = "no"; then
7349 DEFAULT_wxUSE_ACCEL=no
7350 DEFAULT_wxUSE_BMPBUTTON=no
7351 DEFAULT_wxUSE_BUTTON=no
7352 DEFAULT_wxUSE_CALCTRL=no
7353 DEFAULT_wxUSE_CARET=no
7354 DEFAULT_wxUSE_COMBOBOX=no
7355 DEFAULT_wxUSE_CHECKBOX=no
7356 DEFAULT_wxUSE_CHECKLISTBOX=no
7357 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7358 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7359 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7360 DEFAULT_wxUSE_GAUGE=no
7361 DEFAULT_wxUSE_GRID=no
7362 DEFAULT_wxUSE_IMAGLIST=no
7363 DEFAULT_wxUSE_LISTBOOK=no
7364 DEFAULT_wxUSE_LISTBOX=no
7365 DEFAULT_wxUSE_LISTCTRL=no
7366 DEFAULT_wxUSE_NOTEBOOK=no
7367 DEFAULT_wxUSE_RADIOBOX=no
7368 DEFAULT_wxUSE_RADIOBTN=no
7369 DEFAULT_wxUSE_SASH=no
7370 DEFAULT_wxUSE_SCROLLBAR=no
7371 DEFAULT_wxUSE_SLIDER=no
7372 DEFAULT_wxUSE_SPINBTN=no
7373 DEFAULT_wxUSE_SPINCTRL=no
7374 DEFAULT_wxUSE_SPLITTER=no
7375 DEFAULT_wxUSE_STATBMP=no
7376 DEFAULT_wxUSE_STATBOX=no
7377 DEFAULT_wxUSE_STATLINE=no
7378 DEFAULT_wxUSE_STATUSBAR=no
7379 DEFAULT_wxUSE_TAB_DIALOG=no
7380 DEFAULT_wxUSE_TOGGLEBTN=no
7381 DEFAULT_wxUSE_TOOLBAR=no
7382 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7383 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7384 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7385 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
7386 DEFAULT_wxUSE_TREECTRL=no
7387 DEFAULT_wxUSE_POPUPWIN=no
7388 DEFAULT_wxUSE_TIPWINDOW=no
7389fi
7390
a848cd7e
SC
7391
7392 enablestring=
7393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7394echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7395 no_cache=0
7396 # Check whether --enable-accel or --disable-accel was given.
7397if test "${enable_accel+set}" = set; then
7398 enableval="$enable_accel"
7399
7400 if test "$enableval" = yes; then
7401 ac_cv_use_accel='wxUSE_ACCEL=yes'
7402 else
7403 ac_cv_use_accel='wxUSE_ACCEL=no'
7404 fi
7405
7406else
7407
7408 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7409 if test "x$LINE" != x ; then
7410 eval "DEFAULT_$LINE"
7411 else
7412 no_cache=1
7413 fi
7414
7415 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7416
7417fi;
7418
7419 eval "$ac_cv_use_accel"
7420 if test "$no_cache" != 1; then
7421 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7422 fi
7423
7424 if test "$wxUSE_ACCEL" = yes; then
7425 echo "$as_me:$LINENO: result: yes" >&5
7426echo "${ECHO_T}yes" >&6
7427 else
7428 echo "$as_me:$LINENO: result: no" >&5
7429echo "${ECHO_T}no" >&6
7430 fi
7431
7432
7433 enablestring=
7434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7435echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7436 no_cache=0
7437 # Check whether --enable-button or --disable-button was given.
7438if test "${enable_button+set}" = set; then
7439 enableval="$enable_button"
7440
7441 if test "$enableval" = yes; then
7442 ac_cv_use_button='wxUSE_BUTTON=yes'
7443 else
7444 ac_cv_use_button='wxUSE_BUTTON=no'
7445 fi
7446
7447else
7448
7449 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7450 if test "x$LINE" != x ; then
7451 eval "DEFAULT_$LINE"
7452 else
7453 no_cache=1
7454 fi
7455
7456 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7457
7458fi;
7459
7460 eval "$ac_cv_use_button"
7461 if test "$no_cache" != 1; then
7462 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7463 fi
7464
7465 if test "$wxUSE_BUTTON" = yes; then
7466 echo "$as_me:$LINENO: result: yes" >&5
7467echo "${ECHO_T}yes" >&6
7468 else
7469 echo "$as_me:$LINENO: result: no" >&5
7470echo "${ECHO_T}no" >&6
7471 fi
7472
7473
7474 enablestring=
7475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7476echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7477 no_cache=0
7478 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7479if test "${enable_bmpbutton+set}" = set; then
7480 enableval="$enable_bmpbutton"
7481
7482 if test "$enableval" = yes; then
7483 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7484 else
7485 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7486 fi
7487
7488else
7489
7490 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7491 if test "x$LINE" != x ; then
7492 eval "DEFAULT_$LINE"
7493 else
7494 no_cache=1
7495 fi
7496
7497 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7498
7499fi;
7500
7501 eval "$ac_cv_use_bmpbutton"
7502 if test "$no_cache" != 1; then
7503 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7504 fi
7505
7506 if test "$wxUSE_BMPBUTTON" = yes; then
7507 echo "$as_me:$LINENO: result: yes" >&5
7508echo "${ECHO_T}yes" >&6
7509 else
7510 echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6
7512 fi
7513
7514
7515 enablestring=
7516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7517echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7518 no_cache=0
7519 # Check whether --enable-calendar or --disable-calendar was given.
7520if test "${enable_calendar+set}" = set; then
7521 enableval="$enable_calendar"
7522
7523 if test "$enableval" = yes; then
7524 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7525 else
7526 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7527 fi
7528
7529else
7530
7531 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7532 if test "x$LINE" != x ; then
7533 eval "DEFAULT_$LINE"
7534 else
7535 no_cache=1
7536 fi
7537
7538 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7539
7540fi;
7541
7542 eval "$ac_cv_use_calendar"
7543 if test "$no_cache" != 1; then
7544 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7545 fi
7546
7547 if test "$wxUSE_CALCTRL" = yes; then
7548 echo "$as_me:$LINENO: result: yes" >&5
7549echo "${ECHO_T}yes" >&6
7550 else
7551 echo "$as_me:$LINENO: result: no" >&5
7552echo "${ECHO_T}no" >&6
7553 fi
7554
7555
7556 enablestring=
7557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7558echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7559 no_cache=0
7560 # Check whether --enable-caret or --disable-caret was given.
7561if test "${enable_caret+set}" = set; then
7562 enableval="$enable_caret"
7563
7564 if test "$enableval" = yes; then
7565 ac_cv_use_caret='wxUSE_CARET=yes'
7566 else
7567 ac_cv_use_caret='wxUSE_CARET=no'
7568 fi
7569
7570else
7571
7572 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7573 if test "x$LINE" != x ; then
7574 eval "DEFAULT_$LINE"
7575 else
7576 no_cache=1
7577 fi
7578
7579 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7580
7581fi;
7582
7583 eval "$ac_cv_use_caret"
7584 if test "$no_cache" != 1; then
7585 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7586 fi
7587
7588 if test "$wxUSE_CARET" = yes; then
7589 echo "$as_me:$LINENO: result: yes" >&5
7590echo "${ECHO_T}yes" >&6
7591 else
7592 echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6
7594 fi
7595
7596
7597 enablestring=
7598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7599echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7600 no_cache=0
7601 # Check whether --enable-checkbox or --disable-checkbox was given.
7602if test "${enable_checkbox+set}" = set; then
7603 enableval="$enable_checkbox"
7604
7605 if test "$enableval" = yes; then
7606 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7607 else
7608 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7609 fi
7610
7611else
7612
7613 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7614 if test "x$LINE" != x ; then
7615 eval "DEFAULT_$LINE"
7616 else
7617 no_cache=1
7618 fi
7619
7620 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7621
7622fi;
7623
7624 eval "$ac_cv_use_checkbox"
7625 if test "$no_cache" != 1; then
7626 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7627 fi
7628
7629 if test "$wxUSE_CHECKBOX" = yes; then
7630 echo "$as_me:$LINENO: result: yes" >&5
7631echo "${ECHO_T}yes" >&6
7632 else
7633 echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6
7635 fi
7636
7637
7638 enablestring=
7639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7640echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7641 no_cache=0
7642 # Check whether --enable-checklst or --disable-checklst was given.
7643if test "${enable_checklst+set}" = set; then
7644 enableval="$enable_checklst"
7645
7646 if test "$enableval" = yes; then
7647 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7648 else
7649 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7650 fi
7651
7652else
7653
7654 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7655 if test "x$LINE" != x ; then
7656 eval "DEFAULT_$LINE"
7657 else
7658 no_cache=1
7659 fi
7660
7661 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7662
7663fi;
7664
7665 eval "$ac_cv_use_checklst"
7666 if test "$no_cache" != 1; then
7667 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7668 fi
7669
7670 if test "$wxUSE_CHECKLST" = yes; then
7671 echo "$as_me:$LINENO: result: yes" >&5
7672echo "${ECHO_T}yes" >&6
7673 else
7674 echo "$as_me:$LINENO: result: no" >&5
7675echo "${ECHO_T}no" >&6
7676 fi
7677
7678
7679 enablestring=
7680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7681echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7682 no_cache=0
7683 # Check whether --enable-choice or --disable-choice was given.
7684if test "${enable_choice+set}" = set; then
7685 enableval="$enable_choice"
7686
7687 if test "$enableval" = yes; then
7688 ac_cv_use_choice='wxUSE_CHOICE=yes'
7689 else
7690 ac_cv_use_choice='wxUSE_CHOICE=no'
7691 fi
7692
7693else
7694
7695 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7696 if test "x$LINE" != x ; then
7697 eval "DEFAULT_$LINE"
7698 else
7699 no_cache=1
7700 fi
7701
7702 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7703
7704fi;
7705
7706 eval "$ac_cv_use_choice"
7707 if test "$no_cache" != 1; then
7708 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7709 fi
7710
7711 if test "$wxUSE_CHOICE" = yes; then
7712 echo "$as_me:$LINENO: result: yes" >&5
7713echo "${ECHO_T}yes" >&6
7714 else
7715 echo "$as_me:$LINENO: result: no" >&5
7716echo "${ECHO_T}no" >&6
7717 fi
7718
7719
92bbdbcd
WS
7720 enablestring=
7721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7722echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7723 no_cache=0
7724 # Check whether --enable-choicebook or --disable-choicebook was given.
7725if test "${enable_choicebook+set}" = set; then
7726 enableval="$enable_choicebook"
7727
7728 if test "$enableval" = yes; then
7729 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7730 else
7731 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7732 fi
7733
7734else
7735
7736 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7737 if test "x$LINE" != x ; then
7738 eval "DEFAULT_$LINE"
7739 else
7740 no_cache=1
7741 fi
7742
7743 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7744
7745fi;
7746
7747 eval "$ac_cv_use_choicebook"
7748 if test "$no_cache" != 1; then
7749 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7750 fi
7751
7752 if test "$wxUSE_CHOICEBOOK" = yes; then
7753 echo "$as_me:$LINENO: result: yes" >&5
7754echo "${ECHO_T}yes" >&6
7755 else
7756 echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6
7758 fi
7759
7760
a848cd7e
SC
7761 enablestring=
7762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7763echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7764 no_cache=0
7765 # Check whether --enable-combobox or --disable-combobox was given.
7766if test "${enable_combobox+set}" = set; then
7767 enableval="$enable_combobox"
7768
7769 if test "$enableval" = yes; then
7770 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7771 else
7772 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7773 fi
7774
7775else
7776
7777 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7778 if test "x$LINE" != x ; then
7779 eval "DEFAULT_$LINE"
7780 else
7781 no_cache=1
7782 fi
7783
7784 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7785
7786fi;
7787
7788 eval "$ac_cv_use_combobox"
7789 if test "$no_cache" != 1; then
7790 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7791 fi
7792
7793 if test "$wxUSE_COMBOBOX" = yes; then
7794 echo "$as_me:$LINENO: result: yes" >&5
7795echo "${ECHO_T}yes" >&6
7796 else
7797 echo "$as_me:$LINENO: result: no" >&5
7798echo "${ECHO_T}no" >&6
7799 fi
7800
7801
da98e9be
VZ
7802 enablestring=
7803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7804echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7805 no_cache=0
7806 # Check whether --enable-datepick or --disable-datepick was given.
7807if test "${enable_datepick+set}" = set; then
7808 enableval="$enable_datepick"
7809
7810 if test "$enableval" = yes; then
7811 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7812 else
7813 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7814 fi
7815
7816else
7817
7818 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7819 if test "x$LINE" != x ; then
7820 eval "DEFAULT_$LINE"
7821 else
7822 no_cache=1
7823 fi
7824
7825 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7826
7827fi;
7828
7829 eval "$ac_cv_use_datepick"
7830 if test "$no_cache" != 1; then
7831 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7832 fi
7833
7834 if test "$wxUSE_DATEPICKCTRL" = yes; then
7835 echo "$as_me:$LINENO: result: yes" >&5
7836echo "${ECHO_T}yes" >&6
7837 else
7838 echo "$as_me:$LINENO: result: no" >&5
7839echo "${ECHO_T}no" >&6
7840 fi
7841
7842
a848cd7e
SC
7843 enablestring=
7844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7845echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7846 no_cache=0
7847 # Check whether --enable-display or --disable-display was given.
7848if test "${enable_display+set}" = set; then
7849 enableval="$enable_display"
7850
7851 if test "$enableval" = yes; then
7852 ac_cv_use_display='wxUSE_DISPLAY=yes'
7853 else
7854 ac_cv_use_display='wxUSE_DISPLAY=no'
7855 fi
7856
7857else
7858
7859 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7860 if test "x$LINE" != x ; then
7861 eval "DEFAULT_$LINE"
7862 else
7863 no_cache=1
7864 fi
7865
7866 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7867
7868fi;
7869
7870 eval "$ac_cv_use_display"
7871 if test "$no_cache" != 1; then
7872 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7873 fi
7874
7875 if test "$wxUSE_DISPLAY" = yes; then
7876 echo "$as_me:$LINENO: result: yes" >&5
7877echo "${ECHO_T}yes" >&6
7878 else
7879 echo "$as_me:$LINENO: result: no" >&5
7880echo "${ECHO_T}no" >&6
7881 fi
7882
7883
7884 enablestring=
7885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7886echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7887 no_cache=0
7888 # Check whether --enable-gauge or --disable-gauge was given.
7889if test "${enable_gauge+set}" = set; then
7890 enableval="$enable_gauge"
7891
7892 if test "$enableval" = yes; then
7893 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7894 else
7895 ac_cv_use_gauge='wxUSE_GAUGE=no'
7896 fi
7897
7898else
7899
7900 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7901 if test "x$LINE" != x ; then
7902 eval "DEFAULT_$LINE"
7903 else
7904 no_cache=1
7905 fi
7906
7907 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7908
7909fi;
7910
7911 eval "$ac_cv_use_gauge"
7912 if test "$no_cache" != 1; then
7913 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7914 fi
7915
7916 if test "$wxUSE_GAUGE" = yes; then
7917 echo "$as_me:$LINENO: result: yes" >&5
7918echo "${ECHO_T}yes" >&6
7919 else
7920 echo "$as_me:$LINENO: result: no" >&5
7921echo "${ECHO_T}no" >&6
7922 fi
7923
7924
7925 enablestring=
7926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7927echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7928 no_cache=0
7929 # Check whether --enable-grid or --disable-grid was given.
7930if test "${enable_grid+set}" = set; then
7931 enableval="$enable_grid"
7932
7933 if test "$enableval" = yes; then
7934 ac_cv_use_grid='wxUSE_GRID=yes'
7935 else
7936 ac_cv_use_grid='wxUSE_GRID=no'
7937 fi
7938
7939else
7940
7941 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7942 if test "x$LINE" != x ; then
7943 eval "DEFAULT_$LINE"
7944 else
7945 no_cache=1
7946 fi
7947
7948 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7949
7950fi;
7951
7952 eval "$ac_cv_use_grid"
7953 if test "$no_cache" != 1; then
7954 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7955 fi
7956
7957 if test "$wxUSE_GRID" = yes; then
7958 echo "$as_me:$LINENO: result: yes" >&5
7959echo "${ECHO_T}yes" >&6
7960 else
7961 echo "$as_me:$LINENO: result: no" >&5
7962echo "${ECHO_T}no" >&6
7963 fi
7964
7965
7966 enablestring=
7967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7968echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7969 no_cache=0
7970 # Check whether --enable-imaglist or --disable-imaglist was given.
7971if test "${enable_imaglist+set}" = set; then
7972 enableval="$enable_imaglist"
7973
7974 if test "$enableval" = yes; then
7975 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7976 else
7977 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7978 fi
7979
7980else
7981
7982 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7983 if test "x$LINE" != x ; then
7984 eval "DEFAULT_$LINE"
7985 else
7986 no_cache=1
7987 fi
7988
7989 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7990
7991fi;
7992
7993 eval "$ac_cv_use_imaglist"
7994 if test "$no_cache" != 1; then
7995 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7996 fi
7997
7998 if test "$wxUSE_IMAGLIST" = yes; then
7999 echo "$as_me:$LINENO: result: yes" >&5
8000echo "${ECHO_T}yes" >&6
8001 else
8002 echo "$as_me:$LINENO: result: no" >&5
8003echo "${ECHO_T}no" >&6
8004 fi
8005
8006
8007 enablestring=
8008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8009echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8010 no_cache=0
8011 # Check whether --enable-listbook or --disable-listbook was given.
8012if test "${enable_listbook+set}" = set; then
8013 enableval="$enable_listbook"
8014
8015 if test "$enableval" = yes; then
8016 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8017 else
8018 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8019 fi
8020
8021else
8022
8023 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8024 if test "x$LINE" != x ; then
8025 eval "DEFAULT_$LINE"
8026 else
8027 no_cache=1
8028 fi
8029
8030 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8031
8032fi;
8033
8034 eval "$ac_cv_use_listbook"
8035 if test "$no_cache" != 1; then
8036 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8037 fi
8038
8039 if test "$wxUSE_LISTBOOK" = yes; then
8040 echo "$as_me:$LINENO: result: yes" >&5
8041echo "${ECHO_T}yes" >&6
8042 else
8043 echo "$as_me:$LINENO: result: no" >&5
8044echo "${ECHO_T}no" >&6
8045 fi
8046
8047
8048 enablestring=
8049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8050echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8051 no_cache=0
8052 # Check whether --enable-listbox or --disable-listbox was given.
8053if test "${enable_listbox+set}" = set; then
8054 enableval="$enable_listbox"
8055
8056 if test "$enableval" = yes; then
8057 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8058 else
8059 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8060 fi
8061
8062else
8063
8064 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8065 if test "x$LINE" != x ; then
8066 eval "DEFAULT_$LINE"
8067 else
8068 no_cache=1
8069 fi
8070
8071 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8072
8073fi;
8074
8075 eval "$ac_cv_use_listbox"
8076 if test "$no_cache" != 1; then
8077 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8078 fi
8079
8080 if test "$wxUSE_LISTBOX" = yes; then
8081 echo "$as_me:$LINENO: result: yes" >&5
8082echo "${ECHO_T}yes" >&6
8083 else
8084 echo "$as_me:$LINENO: result: no" >&5
8085echo "${ECHO_T}no" >&6
8086 fi
8087
8088
8089 enablestring=
8090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8091echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8092 no_cache=0
8093 # Check whether --enable-listctrl or --disable-listctrl was given.
8094if test "${enable_listctrl+set}" = set; then
8095 enableval="$enable_listctrl"
8096
8097 if test "$enableval" = yes; then
8098 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8099 else
8100 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8101 fi
8102
8103else
8104
8105 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8106 if test "x$LINE" != x ; then
8107 eval "DEFAULT_$LINE"
8108 else
8109 no_cache=1
8110 fi
8111
8112 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8113
8114fi;
8115
8116 eval "$ac_cv_use_listctrl"
8117 if test "$no_cache" != 1; then
8118 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8119 fi
8120
8121 if test "$wxUSE_LISTCTRL" = yes; then
8122 echo "$as_me:$LINENO: result: yes" >&5
8123echo "${ECHO_T}yes" >&6
8124 else
8125 echo "$as_me:$LINENO: result: no" >&5
8126echo "${ECHO_T}no" >&6
8127 fi
8128
8129
8130 enablestring=
8131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8132echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8133 no_cache=0
8134 # Check whether --enable-notebook or --disable-notebook was given.
8135if test "${enable_notebook+set}" = set; then
8136 enableval="$enable_notebook"
8137
8138 if test "$enableval" = yes; then
8139 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8140 else
8141 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8142 fi
8143
8144else
8145
8146 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8147 if test "x$LINE" != x ; then
8148 eval "DEFAULT_$LINE"
8149 else
8150 no_cache=1
8151 fi
8152
8153 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8154
8155fi;
8156
8157 eval "$ac_cv_use_notebook"
8158 if test "$no_cache" != 1; then
8159 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8160 fi
8161
8162 if test "$wxUSE_NOTEBOOK" = yes; then
8163 echo "$as_me:$LINENO: result: yes" >&5
8164echo "${ECHO_T}yes" >&6
8165 else
8166 echo "$as_me:$LINENO: result: no" >&5
8167echo "${ECHO_T}no" >&6
8168 fi
8169
8170
8171 enablestring=
8172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8173echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8174 no_cache=0
8175 # Check whether --enable-radiobox or --disable-radiobox was given.
8176if test "${enable_radiobox+set}" = set; then
8177 enableval="$enable_radiobox"
8178
8179 if test "$enableval" = yes; then
8180 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8181 else
8182 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8183 fi
8184
8185else
8186
8187 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8188 if test "x$LINE" != x ; then
8189 eval "DEFAULT_$LINE"
8190 else
8191 no_cache=1
8192 fi
8193
8194 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8195
8196fi;
8197
8198 eval "$ac_cv_use_radiobox"
8199 if test "$no_cache" != 1; then
8200 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8201 fi
8202
8203 if test "$wxUSE_RADIOBOX" = yes; then
8204 echo "$as_me:$LINENO: result: yes" >&5
8205echo "${ECHO_T}yes" >&6
8206 else
8207 echo "$as_me:$LINENO: result: no" >&5
8208echo "${ECHO_T}no" >&6
8209 fi
8210
8211
8212 enablestring=
8213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8214echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8215 no_cache=0
8216 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8217if test "${enable_radiobtn+set}" = set; then
8218 enableval="$enable_radiobtn"
8219
8220 if test "$enableval" = yes; then
8221 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8222 else
8223 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8224 fi
8225
8226else
8227
8228 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8229 if test "x$LINE" != x ; then
8230 eval "DEFAULT_$LINE"
8231 else
8232 no_cache=1
8233 fi
8234
8235 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8236
8237fi;
8238
8239 eval "$ac_cv_use_radiobtn"
8240 if test "$no_cache" != 1; then
8241 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8242 fi
8243
8244 if test "$wxUSE_RADIOBTN" = yes; then
8245 echo "$as_me:$LINENO: result: yes" >&5
8246echo "${ECHO_T}yes" >&6
8247 else
8248 echo "$as_me:$LINENO: result: no" >&5
8249echo "${ECHO_T}no" >&6
8250 fi
8251
8252
8253 enablestring=
8254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8255echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8256 no_cache=0
8257 # Check whether --enable-sash or --disable-sash was given.
8258if test "${enable_sash+set}" = set; then
8259 enableval="$enable_sash"
8260
8261 if test "$enableval" = yes; then
8262 ac_cv_use_sash='wxUSE_SASH=yes'
8263 else
8264 ac_cv_use_sash='wxUSE_SASH=no'
8265 fi
8266
8267else
8268
8269 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8270 if test "x$LINE" != x ; then
8271 eval "DEFAULT_$LINE"
8272 else
8273 no_cache=1
8274 fi
8275
8276 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8277
8278fi;
8279
8280 eval "$ac_cv_use_sash"
8281 if test "$no_cache" != 1; then
8282 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8283 fi
8284
8285 if test "$wxUSE_SASH" = yes; then
8286 echo "$as_me:$LINENO: result: yes" >&5
8287echo "${ECHO_T}yes" >&6
8288 else
8289 echo "$as_me:$LINENO: result: no" >&5
8290echo "${ECHO_T}no" >&6
8291 fi
8292
8293
8294 enablestring=
8295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8296echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8297 no_cache=0
8298 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8299if test "${enable_scrollbar+set}" = set; then
8300 enableval="$enable_scrollbar"
8301
8302 if test "$enableval" = yes; then
8303 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8304 else
8305 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8306 fi
8307
8308else
8309
8310 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8311 if test "x$LINE" != x ; then
8312 eval "DEFAULT_$LINE"
8313 else
8314 no_cache=1
8315 fi
8316
8317 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8318
8319fi;
8320
8321 eval "$ac_cv_use_scrollbar"
8322 if test "$no_cache" != 1; then
8323 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8324 fi
8325
8326 if test "$wxUSE_SCROLLBAR" = yes; then
8327 echo "$as_me:$LINENO: result: yes" >&5
8328echo "${ECHO_T}yes" >&6
8329 else
8330 echo "$as_me:$LINENO: result: no" >&5
8331echo "${ECHO_T}no" >&6
8332 fi
8333
8334
8335 enablestring=
8336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8337echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8338 no_cache=0
8339 # Check whether --enable-slider or --disable-slider was given.
8340if test "${enable_slider+set}" = set; then
8341 enableval="$enable_slider"
8342
8343 if test "$enableval" = yes; then
8344 ac_cv_use_slider='wxUSE_SLIDER=yes'
8345 else
8346 ac_cv_use_slider='wxUSE_SLIDER=no'
8347 fi
8348
8349else
8350
8351 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8352 if test "x$LINE" != x ; then
8353 eval "DEFAULT_$LINE"
8354 else
8355 no_cache=1
8356 fi
8357
8358 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8359
8360fi;
8361
8362 eval "$ac_cv_use_slider"
8363 if test "$no_cache" != 1; then
8364 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8365 fi
8366
8367 if test "$wxUSE_SLIDER" = yes; then
8368 echo "$as_me:$LINENO: result: yes" >&5
8369echo "${ECHO_T}yes" >&6
8370 else
8371 echo "$as_me:$LINENO: result: no" >&5
8372echo "${ECHO_T}no" >&6
8373 fi
8374
8375
8376 enablestring=
8377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8378echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8379 no_cache=0
8380 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8381if test "${enable_spinbtn+set}" = set; then
8382 enableval="$enable_spinbtn"
8383
8384 if test "$enableval" = yes; then
8385 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8386 else
8387 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8388 fi
8389
8390else
8391
8392 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8393 if test "x$LINE" != x ; then
8394 eval "DEFAULT_$LINE"
8395 else
8396 no_cache=1
8397 fi
8398
8399 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8400
8401fi;
8402
8403 eval "$ac_cv_use_spinbtn"
8404 if test "$no_cache" != 1; then
8405 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8406 fi
8407
8408 if test "$wxUSE_SPINBTN" = yes; then
8409 echo "$as_me:$LINENO: result: yes" >&5
8410echo "${ECHO_T}yes" >&6
8411 else
8412 echo "$as_me:$LINENO: result: no" >&5
8413echo "${ECHO_T}no" >&6
8414 fi
8415
8416
8417 enablestring=
8418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8419echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8420 no_cache=0
8421 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8422if test "${enable_spinctrl+set}" = set; then
8423 enableval="$enable_spinctrl"
8424
8425 if test "$enableval" = yes; then
8426 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8427 else
8428 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8429 fi
8430
8431else
8432
8433 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8434 if test "x$LINE" != x ; then
8435 eval "DEFAULT_$LINE"
8436 else
8437 no_cache=1
8438 fi
8439
8440 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8441
8442fi;
8443
8444 eval "$ac_cv_use_spinctrl"
8445 if test "$no_cache" != 1; then
8446 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8447 fi
8448
8449 if test "$wxUSE_SPINCTRL" = yes; then
8450 echo "$as_me:$LINENO: result: yes" >&5
8451echo "${ECHO_T}yes" >&6
8452 else
8453 echo "$as_me:$LINENO: result: no" >&5
8454echo "${ECHO_T}no" >&6
8455 fi
8456
8457
8458 enablestring=
8459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8460echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8461 no_cache=0
8462 # Check whether --enable-splitter or --disable-splitter was given.
8463if test "${enable_splitter+set}" = set; then
8464 enableval="$enable_splitter"
8465
8466 if test "$enableval" = yes; then
8467 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8468 else
8469 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8470 fi
8471
8472else
8473
8474 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8475 if test "x$LINE" != x ; then
8476 eval "DEFAULT_$LINE"
8477 else
8478 no_cache=1
8479 fi
8480
8481 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8482
8483fi;
8484
8485 eval "$ac_cv_use_splitter"
8486 if test "$no_cache" != 1; then
8487 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8488 fi
8489
8490 if test "$wxUSE_SPLITTER" = yes; then
8491 echo "$as_me:$LINENO: result: yes" >&5
8492echo "${ECHO_T}yes" >&6
8493 else
8494 echo "$as_me:$LINENO: result: no" >&5
8495echo "${ECHO_T}no" >&6
8496 fi
8497
8498
8499 enablestring=
8500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8501echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8502 no_cache=0
8503 # Check whether --enable-statbmp or --disable-statbmp was given.
8504if test "${enable_statbmp+set}" = set; then
8505 enableval="$enable_statbmp"
8506
8507 if test "$enableval" = yes; then
8508 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8509 else
8510 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8511 fi
8512
8513else
8514
8515 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8516 if test "x$LINE" != x ; then
8517 eval "DEFAULT_$LINE"
8518 else
8519 no_cache=1
8520 fi
8521
8522 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8523
8524fi;
8525
8526 eval "$ac_cv_use_statbmp"
8527 if test "$no_cache" != 1; then
8528 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8529 fi
8530
8531 if test "$wxUSE_STATBMP" = yes; then
8532 echo "$as_me:$LINENO: result: yes" >&5
8533echo "${ECHO_T}yes" >&6
8534 else
8535 echo "$as_me:$LINENO: result: no" >&5
8536echo "${ECHO_T}no" >&6
8537 fi
8538
8539
8540 enablestring=
8541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8542echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8543 no_cache=0
8544 # Check whether --enable-statbox or --disable-statbox was given.
8545if test "${enable_statbox+set}" = set; then
8546 enableval="$enable_statbox"
8547
8548 if test "$enableval" = yes; then
8549 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8550 else
8551 ac_cv_use_statbox='wxUSE_STATBOX=no'
8552 fi
8553
8554else
8555
8556 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8557 if test "x$LINE" != x ; then
8558 eval "DEFAULT_$LINE"
8559 else
8560 no_cache=1
8561 fi
8562
8563 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8564
8565fi;
8566
8567 eval "$ac_cv_use_statbox"
8568 if test "$no_cache" != 1; then
8569 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8570 fi
8571
8572 if test "$wxUSE_STATBOX" = yes; then
8573 echo "$as_me:$LINENO: result: yes" >&5
8574echo "${ECHO_T}yes" >&6
8575 else
8576 echo "$as_me:$LINENO: result: no" >&5
8577echo "${ECHO_T}no" >&6
8578 fi
8579
8580
8581 enablestring=
8582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8583echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8584 no_cache=0
8585 # Check whether --enable-statline or --disable-statline was given.
8586if test "${enable_statline+set}" = set; then
8587 enableval="$enable_statline"
8588
8589 if test "$enableval" = yes; then
8590 ac_cv_use_statline='wxUSE_STATLINE=yes'
8591 else
8592 ac_cv_use_statline='wxUSE_STATLINE=no'
8593 fi
8594
8595else
8596
8597 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8598 if test "x$LINE" != x ; then
8599 eval "DEFAULT_$LINE"
8600 else
8601 no_cache=1
8602 fi
8603
8604 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8605
8606fi;
8607
8608 eval "$ac_cv_use_statline"
8609 if test "$no_cache" != 1; then
8610 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8611 fi
8612
8613 if test "$wxUSE_STATLINE" = yes; then
8614 echo "$as_me:$LINENO: result: yes" >&5
8615echo "${ECHO_T}yes" >&6
8616 else
8617 echo "$as_me:$LINENO: result: no" >&5
8618echo "${ECHO_T}no" >&6
8619 fi
8620
8621
8622 enablestring=
8623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8624echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8625 no_cache=0
8626 # Check whether --enable-stattext or --disable-stattext was given.
8627if test "${enable_stattext+set}" = set; then
8628 enableval="$enable_stattext"
8629
8630 if test "$enableval" = yes; then
8631 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8632 else
8633 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8634 fi
8635
8636else
8637
8638 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8639 if test "x$LINE" != x ; then
8640 eval "DEFAULT_$LINE"
8641 else
8642 no_cache=1
8643 fi
8644
8645 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8646
8647fi;
8648
8649 eval "$ac_cv_use_stattext"
8650 if test "$no_cache" != 1; then
8651 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8652 fi
8653
8654 if test "$wxUSE_STATTEXT" = yes; then
8655 echo "$as_me:$LINENO: result: yes" >&5
8656echo "${ECHO_T}yes" >&6
8657 else
8658 echo "$as_me:$LINENO: result: no" >&5
8659echo "${ECHO_T}no" >&6
8660 fi
8661
8662
8663 enablestring=
8664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8665echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8666 no_cache=0
8667 # Check whether --enable-statusbar or --disable-statusbar was given.
8668if test "${enable_statusbar+set}" = set; then
8669 enableval="$enable_statusbar"
8670
8671 if test "$enableval" = yes; then
8672 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8673 else
8674 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8675 fi
8676
8677else
8678
8679 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8680 if test "x$LINE" != x ; then
8681 eval "DEFAULT_$LINE"
8682 else
8683 no_cache=1
8684 fi
8685
8686 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8687
8688fi;
8689
8690 eval "$ac_cv_use_statusbar"
8691 if test "$no_cache" != 1; then
8692 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8693 fi
8694
8695 if test "$wxUSE_STATUSBAR" = yes; then
8696 echo "$as_me:$LINENO: result: yes" >&5
8697echo "${ECHO_T}yes" >&6
8698 else
8699 echo "$as_me:$LINENO: result: no" >&5
8700echo "${ECHO_T}no" >&6
8701 fi
8702
8703
8704 enablestring=
8705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8706echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8707 no_cache=0
8708 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8709if test "${enable_tabdialog+set}" = set; then
8710 enableval="$enable_tabdialog"
8711
8712 if test "$enableval" = yes; then
8713 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8714 else
8715 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8716 fi
8717
8718else
8719
8720 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8721 if test "x$LINE" != x ; then
8722 eval "DEFAULT_$LINE"
8723 else
8724 no_cache=1
8725 fi
8726
8727 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8728
8729fi;
8730
8731 eval "$ac_cv_use_tabdialog"
8732 if test "$no_cache" != 1; then
8733 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8734 fi
8735
8736 if test "$wxUSE_TABDIALOG" = yes; then
8737 echo "$as_me:$LINENO: result: yes" >&5
8738echo "${ECHO_T}yes" >&6
8739 else
8740 echo "$as_me:$LINENO: result: no" >&5
8741echo "${ECHO_T}no" >&6
8742 fi
8743
8744
8745 enablestring=
8746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8747echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8748 no_cache=0
8749 # Check whether --enable-textctrl or --disable-textctrl was given.
8750if test "${enable_textctrl+set}" = set; then
8751 enableval="$enable_textctrl"
8752
8753 if test "$enableval" = yes; then
8754 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8755 else
8756 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8757 fi
8758
8759else
8760
8761 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8762 if test "x$LINE" != x ; then
8763 eval "DEFAULT_$LINE"
8764 else
8765 no_cache=1
8766 fi
8767
8768 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8769
8770fi;
8771
8772 eval "$ac_cv_use_textctrl"
8773 if test "$no_cache" != 1; then
8774 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8775 fi
8776
8777 if test "$wxUSE_TEXTCTRL" = yes; then
8778 echo "$as_me:$LINENO: result: yes" >&5
8779echo "${ECHO_T}yes" >&6
8780 else
8781 echo "$as_me:$LINENO: result: no" >&5
8782echo "${ECHO_T}no" >&6
8783 fi
8784
8785
8786 enablestring=
8787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8788echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8789 no_cache=0
8790 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8791if test "${enable_togglebtn+set}" = set; then
8792 enableval="$enable_togglebtn"
8793
8794 if test "$enableval" = yes; then
8795 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8796 else
8797 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8798 fi
8799
8800else
8801
8802 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8803 if test "x$LINE" != x ; then
8804 eval "DEFAULT_$LINE"
8805 else
8806 no_cache=1
8807 fi
8808
8809 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8810
8811fi;
8812
8813 eval "$ac_cv_use_togglebtn"
8814 if test "$no_cache" != 1; then
8815 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8816 fi
8817
8818 if test "$wxUSE_TOGGLEBTN" = yes; then
8819 echo "$as_me:$LINENO: result: yes" >&5
8820echo "${ECHO_T}yes" >&6
8821 else
8822 echo "$as_me:$LINENO: result: no" >&5
8823echo "${ECHO_T}no" >&6
8824 fi
8825
8826
8827 enablestring=
8828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8829echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8830 no_cache=0
8831 # Check whether --enable-toolbar or --disable-toolbar was given.
8832if test "${enable_toolbar+set}" = set; then
8833 enableval="$enable_toolbar"
8834
8835 if test "$enableval" = yes; then
8836 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8837 else
8838 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8839 fi
8840
8841else
8842
8843 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8844 if test "x$LINE" != x ; then
8845 eval "DEFAULT_$LINE"
8846 else
8847 no_cache=1
8848 fi
8849
8850 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8851
8852fi;
8853
8854 eval "$ac_cv_use_toolbar"
8855 if test "$no_cache" != 1; then
8856 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8857 fi
8858
8859 if test "$wxUSE_TOOLBAR" = yes; then
8860 echo "$as_me:$LINENO: result: yes" >&5
8861echo "${ECHO_T}yes" >&6
8862 else
8863 echo "$as_me:$LINENO: result: no" >&5
8864echo "${ECHO_T}no" >&6
8865 fi
8866
8867
8868 enablestring=
8869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8870echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8871 no_cache=0
8872 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8873if test "${enable_tbarnative+set}" = set; then
8874 enableval="$enable_tbarnative"
8875
8876 if test "$enableval" = yes; then
8877 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8878 else
8879 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8880 fi
8881
8882else
8883
8884 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8885 if test "x$LINE" != x ; then
8886 eval "DEFAULT_$LINE"
8887 else
8888 no_cache=1
8889 fi
8890
8891 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8892
8893fi;
8894
8895 eval "$ac_cv_use_tbarnative"
8896 if test "$no_cache" != 1; then
8897 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8898 fi
8899
8900 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8901 echo "$as_me:$LINENO: result: yes" >&5
8902echo "${ECHO_T}yes" >&6
8903 else
8904 echo "$as_me:$LINENO: result: no" >&5
8905echo "${ECHO_T}no" >&6
8906 fi
8907
8908
8909 enablestring=
8910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8911echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8912 no_cache=0
8913 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8914if test "${enable_tbarsmpl+set}" = set; then
8915 enableval="$enable_tbarsmpl"
8916
8917 if test "$enableval" = yes; then
8918 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8919 else
8920 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8921 fi
8922
8923else
8924
8925 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8926 if test "x$LINE" != x ; then
8927 eval "DEFAULT_$LINE"
8928 else
8929 no_cache=1
8930 fi
8931
8932 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8933
8934fi;
8935
8936 eval "$ac_cv_use_tbarsmpl"
8937 if test "$no_cache" != 1; then
8938 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8939 fi
8940
8941 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8942 echo "$as_me:$LINENO: result: yes" >&5
8943echo "${ECHO_T}yes" >&6
8944 else
8945 echo "$as_me:$LINENO: result: no" >&5
8946echo "${ECHO_T}no" >&6
8947 fi
8948
8949
0093c2fc
VZ
8950 enablestring=
8951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
8952echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
8953 no_cache=0
8954 # Check whether --enable-treebook or --disable-treebook was given.
8955if test "${enable_treebook+set}" = set; then
8956 enableval="$enable_treebook"
8957
8958 if test "$enableval" = yes; then
8959 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
8960 else
8961 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
8962 fi
8963
8964else
8965
8966 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
8967 if test "x$LINE" != x ; then
8968 eval "DEFAULT_$LINE"
8969 else
8970 no_cache=1
8971 fi
8972
8973 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
8974
8975fi;
8976
8977 eval "$ac_cv_use_treebook"
8978 if test "$no_cache" != 1; then
8979 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
8980 fi
8981
8982 if test "$wxUSE_TREEBOOK" = yes; then
8983 echo "$as_me:$LINENO: result: yes" >&5
8984echo "${ECHO_T}yes" >&6
8985 else
8986 echo "$as_me:$LINENO: result: no" >&5
8987echo "${ECHO_T}no" >&6
8988 fi
8989
8990
a848cd7e
SC
8991 enablestring=
8992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8993echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8994 no_cache=0
8995 # Check whether --enable-treectrl or --disable-treectrl was given.
8996if test "${enable_treectrl+set}" = set; then
8997 enableval="$enable_treectrl"
8998
8999 if test "$enableval" = yes; then
9000 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9001 else
9002 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9003 fi
9004
9005else
9006
9007 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9008 if test "x$LINE" != x ; then
9009 eval "DEFAULT_$LINE"
9010 else
9011 no_cache=1
9012 fi
9013
9014 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9015
9016fi;
9017
9018 eval "$ac_cv_use_treectrl"
9019 if test "$no_cache" != 1; then
9020 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9021 fi
9022
9023 if test "$wxUSE_TREECTRL" = yes; then
9024 echo "$as_me:$LINENO: result: yes" >&5
9025echo "${ECHO_T}yes" >&6
9026 else
9027 echo "$as_me:$LINENO: result: no" >&5
9028echo "${ECHO_T}no" >&6
9029 fi
9030
9031
9032 enablestring=
9033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9034echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9035 no_cache=0
9036 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9037if test "${enable_tipwindow+set}" = set; then
9038 enableval="$enable_tipwindow"
9039
9040 if test "$enableval" = yes; then
9041 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9042 else
9043 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9044 fi
9045
9046else
9047
9048 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9049 if test "x$LINE" != x ; then
9050 eval "DEFAULT_$LINE"
9051 else
9052 no_cache=1
9053 fi
9054
9055 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9056
9057fi;
9058
9059 eval "$ac_cv_use_tipwindow"
9060 if test "$no_cache" != 1; then
9061 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9062 fi
9063
9064 if test "$wxUSE_TIPWINDOW" = yes; then
9065 echo "$as_me:$LINENO: result: yes" >&5
9066echo "${ECHO_T}yes" >&6
9067 else
9068 echo "$as_me:$LINENO: result: no" >&5
9069echo "${ECHO_T}no" >&6
9070 fi
9071
9072
9073 enablestring=
9074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9075echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9076 no_cache=0
9077 # Check whether --enable-popupwin or --disable-popupwin was given.
9078if test "${enable_popupwin+set}" = set; then
9079 enableval="$enable_popupwin"
9080
9081 if test "$enableval" = yes; then
9082 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9083 else
9084 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9085 fi
9086
9087else
9088
9089 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9090 if test "x$LINE" != x ; then
9091 eval "DEFAULT_$LINE"
9092 else
9093 no_cache=1
9094 fi
9095
9096 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9097
9098fi;
9099
9100 eval "$ac_cv_use_popupwin"
9101 if test "$no_cache" != 1; then
9102 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9103 fi
9104
9105 if test "$wxUSE_POPUPWIN" = yes; then
9106 echo "$as_me:$LINENO: result: yes" >&5
9107echo "${ECHO_T}yes" >&6
9108 else
9109 echo "$as_me:$LINENO: result: no" >&5
9110echo "${ECHO_T}no" >&6
9111 fi
9112
9113
9114
9115
9116 enablestring=
9117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9118echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9119 no_cache=0
9120 # Check whether --enable-commondlg or --disable-commondlg was given.
9121if test "${enable_commondlg+set}" = set; then
9122 enableval="$enable_commondlg"
9123
9124 if test "$enableval" = yes; then
9125 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9126 else
9127 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9128 fi
9129
9130else
9131
9132 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9133 if test "x$LINE" != x ; then
9134 eval "DEFAULT_$LINE"
9135 else
9136 no_cache=1
9137 fi
9138
9139 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9140
9141fi;
9142
9143 eval "$ac_cv_use_commondlg"
9144 if test "$no_cache" != 1; then
9145 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9146 fi
9147
9148 if test "$wxUSE_COMMONDLGS" = yes; then
9149 echo "$as_me:$LINENO: result: yes" >&5
9150echo "${ECHO_T}yes" >&6
9151 else
9152 echo "$as_me:$LINENO: result: no" >&5
9153echo "${ECHO_T}no" >&6
9154 fi
9155
9156
9157 enablestring=
9158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9159echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9160 no_cache=0
9161 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9162if test "${enable_choicedlg+set}" = set; then
9163 enableval="$enable_choicedlg"
9164
9165 if test "$enableval" = yes; then
9166 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9167 else
9168 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9169 fi
9170
9171else
9172
9173 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9174 if test "x$LINE" != x ; then
9175 eval "DEFAULT_$LINE"
9176 else
9177 no_cache=1
9178 fi
9179
9180 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9181
9182fi;
9183
9184 eval "$ac_cv_use_choicedlg"
9185 if test "$no_cache" != 1; then
9186 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9187 fi
9188
9189 if test "$wxUSE_CHOICEDLG" = yes; then
9190 echo "$as_me:$LINENO: result: yes" >&5
9191echo "${ECHO_T}yes" >&6
9192 else
9193 echo "$as_me:$LINENO: result: no" >&5
9194echo "${ECHO_T}no" >&6
9195 fi
9196
9197
9198 enablestring=
9199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9200echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9201 no_cache=0
9202 # Check whether --enable-coldlg or --disable-coldlg was given.
9203if test "${enable_coldlg+set}" = set; then
9204 enableval="$enable_coldlg"
9205
9206 if test "$enableval" = yes; then
9207 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9208 else
9209 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9210 fi
9211
9212else
9213
9214 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9215 if test "x$LINE" != x ; then
9216 eval "DEFAULT_$LINE"
9217 else
9218 no_cache=1
9219 fi
9220
9221 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9222
9223fi;
9224
9225 eval "$ac_cv_use_coldlg"
9226 if test "$no_cache" != 1; then
9227 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9228 fi
9229
9230 if test "$wxUSE_COLOURDLG" = yes; then
9231 echo "$as_me:$LINENO: result: yes" >&5
9232echo "${ECHO_T}yes" >&6
9233 else
9234 echo "$as_me:$LINENO: result: no" >&5
9235echo "${ECHO_T}no" >&6
9236 fi
9237
9238
9239 enablestring=
9240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9241echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9242 no_cache=0
9243 # Check whether --enable-filedlg or --disable-filedlg was given.
9244if test "${enable_filedlg+set}" = set; then
9245 enableval="$enable_filedlg"
9246
9247 if test "$enableval" = yes; then
9248 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9249 else
9250 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9251 fi
9252
9253else
9254
9255 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9256 if test "x$LINE" != x ; then
9257 eval "DEFAULT_$LINE"
9258 else
9259 no_cache=1
9260 fi
9261
9262 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9263
9264fi;
9265
9266 eval "$ac_cv_use_filedlg"
9267 if test "$no_cache" != 1; then
9268 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9269 fi
9270
9271 if test "$wxUSE_FILEDLG" = yes; then
9272 echo "$as_me:$LINENO: result: yes" >&5
9273echo "${ECHO_T}yes" >&6
9274 else
9275 echo "$as_me:$LINENO: result: no" >&5
9276echo "${ECHO_T}no" >&6
9277 fi
9278
9279
9280 enablestring=
9281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9282echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9283 no_cache=0
9284 # Check whether --enable-finddlg or --disable-finddlg was given.
9285if test "${enable_finddlg+set}" = set; then
9286 enableval="$enable_finddlg"
9287
9288 if test "$enableval" = yes; then
9289 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9290 else
9291 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9292 fi
9293
9294else
9295
9296 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9297 if test "x$LINE" != x ; then
9298 eval "DEFAULT_$LINE"
9299 else
9300 no_cache=1
9301 fi
9302
9303 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9304
9305fi;
9306
9307 eval "$ac_cv_use_finddlg"
9308 if test "$no_cache" != 1; then
9309 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9310 fi
9311
9312 if test "$wxUSE_FINDREPLDLG" = yes; then
9313 echo "$as_me:$LINENO: result: yes" >&5
9314echo "${ECHO_T}yes" >&6
9315 else
9316 echo "$as_me:$LINENO: result: no" >&5
9317echo "${ECHO_T}no" >&6
9318 fi
9319
9320
9321 enablestring=
9322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9323echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9324 no_cache=0
9325 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9326if test "${enable_fontdlg+set}" = set; then
9327 enableval="$enable_fontdlg"
9328
9329 if test "$enableval" = yes; then
9330 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9331 else
9332 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9333 fi
9334
9335else
9336
9337 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9338 if test "x$LINE" != x ; then
9339 eval "DEFAULT_$LINE"
9340 else
9341 no_cache=1
9342 fi
9343
9344 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9345
9346fi;
9347
9348 eval "$ac_cv_use_fontdlg"
9349 if test "$no_cache" != 1; then
9350 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9351 fi
9352
9353 if test "$wxUSE_FONTDLG" = yes; then
9354 echo "$as_me:$LINENO: result: yes" >&5
9355echo "${ECHO_T}yes" >&6
9356 else
9357 echo "$as_me:$LINENO: result: no" >&5
9358echo "${ECHO_T}no" >&6
9359 fi
9360
9361
9362 enablestring=
9363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9364echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9365 no_cache=0
9366 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9367if test "${enable_dirdlg+set}" = set; then
9368 enableval="$enable_dirdlg"
9369
9370 if test "$enableval" = yes; then
9371 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9372 else
9373 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9374 fi
9375
9376else
9377
9378 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9379 if test "x$LINE" != x ; then
9380 eval "DEFAULT_$LINE"
9381 else
9382 no_cache=1
9383 fi
9384
9385 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9386
9387fi;
9388
9389 eval "$ac_cv_use_dirdlg"
9390 if test "$no_cache" != 1; then
9391 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9392 fi
9393
9394 if test "$wxUSE_DIRDLG" = yes; then
9395 echo "$as_me:$LINENO: result: yes" >&5
9396echo "${ECHO_T}yes" >&6
9397 else
9398 echo "$as_me:$LINENO: result: no" >&5
9399echo "${ECHO_T}no" >&6
9400 fi
9401
9402
9403 enablestring=
9404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9405echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9406 no_cache=0
9407 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9408if test "${enable_msgdlg+set}" = set; then
9409 enableval="$enable_msgdlg"
9410
9411 if test "$enableval" = yes; then
9412 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9413 else
9414 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9415 fi
9416
9417else
9418
9419 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9420 if test "x$LINE" != x ; then
9421 eval "DEFAULT_$LINE"
9422 else
9423 no_cache=1
9424 fi
9425
9426 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9427
9428fi;
9429
9430 eval "$ac_cv_use_msgdlg"
9431 if test "$no_cache" != 1; then
9432 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9433 fi
9434
9435 if test "$wxUSE_MSGDLG" = yes; then
9436 echo "$as_me:$LINENO: result: yes" >&5
9437echo "${ECHO_T}yes" >&6
9438 else
9439 echo "$as_me:$LINENO: result: no" >&5
9440echo "${ECHO_T}no" >&6
9441 fi
9442
9443
9444 enablestring=
9445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9446echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9447 no_cache=0
9448 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9449if test "${enable_numberdlg+set}" = set; then
9450 enableval="$enable_numberdlg"
9451
9452 if test "$enableval" = yes; then
9453 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9454 else
9455 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9456 fi
9457
9458else
9459
9460 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9461 if test "x$LINE" != x ; then
9462 eval "DEFAULT_$LINE"
9463 else
9464 no_cache=1
9465 fi
9466
9467 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9468
9469fi;
9470
9471 eval "$ac_cv_use_numberdlg"
9472 if test "$no_cache" != 1; then
9473 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9474 fi
9475
9476 if test "$wxUSE_NUMBERDLG" = yes; then
9477 echo "$as_me:$LINENO: result: yes" >&5
9478echo "${ECHO_T}yes" >&6
9479 else
9480 echo "$as_me:$LINENO: result: no" >&5
9481echo "${ECHO_T}no" >&6
9482 fi
9483
9484
9485 enablestring=
9486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9487echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9488 no_cache=0
9489 # Check whether --enable-splash or --disable-splash was given.
9490if test "${enable_splash+set}" = set; then
9491 enableval="$enable_splash"
9492
9493 if test "$enableval" = yes; then
9494 ac_cv_use_splash='wxUSE_SPLASH=yes'
9495 else
9496 ac_cv_use_splash='wxUSE_SPLASH=no'
9497 fi
9498
9499else
9500
9501 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9502 if test "x$LINE" != x ; then
9503 eval "DEFAULT_$LINE"
9504 else
9505 no_cache=1
9506 fi
9507
9508 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9509
9510fi;
9511
9512 eval "$ac_cv_use_splash"
9513 if test "$no_cache" != 1; then
9514 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9515 fi
9516
9517 if test "$wxUSE_SPLASH" = yes; then
9518 echo "$as_me:$LINENO: result: yes" >&5
9519echo "${ECHO_T}yes" >&6
9520 else
9521 echo "$as_me:$LINENO: result: no" >&5
9522echo "${ECHO_T}no" >&6
9523 fi
9524
9525
9526 enablestring=
9527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9528echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9529 no_cache=0
9530 # Check whether --enable-textdlg or --disable-textdlg was given.
9531if test "${enable_textdlg+set}" = set; then
9532 enableval="$enable_textdlg"
9533
9534 if test "$enableval" = yes; then
9535 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9536 else
9537 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9538 fi
9539
9540else
9541
9542 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9543 if test "x$LINE" != x ; then
9544 eval "DEFAULT_$LINE"
9545 else
9546 no_cache=1
9547 fi
9548
9549 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9550
9551fi;
9552
9553 eval "$ac_cv_use_textdlg"
9554 if test "$no_cache" != 1; then
9555 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9556 fi
9557
9558 if test "$wxUSE_TEXTDLG" = yes; then
9559 echo "$as_me:$LINENO: result: yes" >&5
9560echo "${ECHO_T}yes" >&6
9561 else
9562 echo "$as_me:$LINENO: result: no" >&5
9563echo "${ECHO_T}no" >&6
9564 fi
9565
9566
9567 enablestring=
9568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9569echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9570 no_cache=0
9571 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9572if test "${enable_tipdlg+set}" = set; then
9573 enableval="$enable_tipdlg"
9574
9575 if test "$enableval" = yes; then
9576 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9577 else
9578 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9579 fi
9580
9581else
9582
9583 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9584 if test "x$LINE" != x ; then
9585 eval "DEFAULT_$LINE"
9586 else
9587 no_cache=1
9588 fi
9589
9590 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9591
9592fi;
9593
9594 eval "$ac_cv_use_tipdlg"
9595 if test "$no_cache" != 1; then
9596 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9597 fi
9598
9599 if test "$wxUSE_STARTUP_TIPS" = yes; then
9600 echo "$as_me:$LINENO: result: yes" >&5
9601echo "${ECHO_T}yes" >&6
9602 else
9603 echo "$as_me:$LINENO: result: no" >&5
9604echo "${ECHO_T}no" >&6
9605 fi
9606
9607
9608 enablestring=
9609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9610echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9611 no_cache=0
9612 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9613if test "${enable_progressdlg+set}" = set; then
9614 enableval="$enable_progressdlg"
9615
9616 if test "$enableval" = yes; then
9617 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9618 else
9619 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9620 fi
9621
9622else
9623
9624 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9625 if test "x$LINE" != x ; then
9626 eval "DEFAULT_$LINE"
9627 else
9628 no_cache=1
9629 fi
9630
9631 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9632
9633fi;
9634
9635 eval "$ac_cv_use_progressdlg"
9636 if test "$no_cache" != 1; then
9637 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9638 fi
9639
9640 if test "$wxUSE_PROGRESSDLG" = yes; then
9641 echo "$as_me:$LINENO: result: yes" >&5
9642echo "${ECHO_T}yes" >&6
9643 else
9644 echo "$as_me:$LINENO: result: no" >&5
9645echo "${ECHO_T}no" >&6
9646 fi
9647
9648
9649 enablestring=
9650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9651echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9652 no_cache=0
9653 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9654if test "${enable_wizarddlg+set}" = set; then
9655 enableval="$enable_wizarddlg"
9656
9657 if test "$enableval" = yes; then
9658 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9659 else
9660 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9661 fi
9662
9663else
9664
9665 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9666 if test "x$LINE" != x ; then
9667 eval "DEFAULT_$LINE"
9668 else
9669 no_cache=1
9670 fi
9671
9672 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9673
9674fi;
9675
9676 eval "$ac_cv_use_wizarddlg"
9677 if test "$no_cache" != 1; then
9678 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9679 fi
9680
9681 if test "$wxUSE_WIZARDDLG" = yes; then
9682 echo "$as_me:$LINENO: result: yes" >&5
9683echo "${ECHO_T}yes" >&6
9684 else
9685 echo "$as_me:$LINENO: result: no" >&5
9686echo "${ECHO_T}no" >&6
9687 fi
9688
9689
9690
9691
9692 enablestring=
9693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9694echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9695 no_cache=0
9696 # Check whether --enable-menus or --disable-menus was given.
9697if test "${enable_menus+set}" = set; then
9698 enableval="$enable_menus"
9699
9700 if test "$enableval" = yes; then
9701 ac_cv_use_menus='wxUSE_MENUS=yes'
9702 else
9703 ac_cv_use_menus='wxUSE_MENUS=no'
9704 fi
9705
9706else
9707
9708 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9709 if test "x$LINE" != x ; then
9710 eval "DEFAULT_$LINE"
9711 else
9712 no_cache=1
9713 fi
9714
9715 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9716
9717fi;
9718
9719 eval "$ac_cv_use_menus"
9720 if test "$no_cache" != 1; then
9721 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9722 fi
9723
9724 if test "$wxUSE_MENUS" = yes; then
9725 echo "$as_me:$LINENO: result: yes" >&5
9726echo "${ECHO_T}yes" >&6
9727 else
9728 echo "$as_me:$LINENO: result: no" >&5
9729echo "${ECHO_T}no" >&6
9730 fi
9731
9732
9733 enablestring=
9734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9735echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9736 no_cache=0
9737 # Check whether --enable-miniframe or --disable-miniframe was given.
9738if test "${enable_miniframe+set}" = set; then
9739 enableval="$enable_miniframe"
9740
9741 if test "$enableval" = yes; then
9742 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9743 else
9744 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9745 fi
9746
9747else
9748
9749 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9750 if test "x$LINE" != x ; then
9751 eval "DEFAULT_$LINE"
9752 else
9753 no_cache=1
9754 fi
9755
9756 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9757
9758fi;
9759
9760 eval "$ac_cv_use_miniframe"
9761 if test "$no_cache" != 1; then
9762 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9763 fi
9764
9765 if test "$wxUSE_MINIFRAME" = yes; then
9766 echo "$as_me:$LINENO: result: yes" >&5
9767echo "${ECHO_T}yes" >&6
9768 else
9769 echo "$as_me:$LINENO: result: no" >&5
9770echo "${ECHO_T}no" >&6
9771 fi
9772
9773
9774 enablestring=
9775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9776echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9777 no_cache=0
9778 # Check whether --enable-tooltips or --disable-tooltips was given.
9779if test "${enable_tooltips+set}" = set; then
9780 enableval="$enable_tooltips"
9781
9782 if test "$enableval" = yes; then
9783 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9784 else
9785 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9786 fi
9787
9788else
9789
9790 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9791 if test "x$LINE" != x ; then
9792 eval "DEFAULT_$LINE"
9793 else
9794 no_cache=1
9795 fi
9796
9797 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9798
9799fi;
9800
9801 eval "$ac_cv_use_tooltips"
9802 if test "$no_cache" != 1; then
9803 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9804 fi
9805
9806 if test "$wxUSE_TOOLTIPS" = yes; then
9807 echo "$as_me:$LINENO: result: yes" >&5
9808echo "${ECHO_T}yes" >&6
9809 else
9810 echo "$as_me:$LINENO: result: no" >&5
9811echo "${ECHO_T}no" >&6
9812 fi
9813
9814
9815 enablestring=
9816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9817echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9818 no_cache=0
9819 # Check whether --enable-splines or --disable-splines was given.
9820if test "${enable_splines+set}" = set; then
9821 enableval="$enable_splines"
9822
9823 if test "$enableval" = yes; then
9824 ac_cv_use_splines='wxUSE_SPLINES=yes'
9825 else
9826 ac_cv_use_splines='wxUSE_SPLINES=no'
9827 fi
9828
9829else
9830
9831 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9832 if test "x$LINE" != x ; then
9833 eval "DEFAULT_$LINE"
9834 else
9835 no_cache=1
9836 fi
9837
9838 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9839
9840fi;
9841
9842 eval "$ac_cv_use_splines"
9843 if test "$no_cache" != 1; then
9844 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9845 fi
9846
9847 if test "$wxUSE_SPLINES" = yes; then
9848 echo "$as_me:$LINENO: result: yes" >&5
9849echo "${ECHO_T}yes" >&6
9850 else
9851 echo "$as_me:$LINENO: result: no" >&5
9852echo "${ECHO_T}no" >&6
9853 fi
9854
9855
fbe2ca43
SN
9856 enablestring=
9857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9858echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9859 no_cache=0
9860 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9861if test "${enable_mousewheel+set}" = set; then
9862 enableval="$enable_mousewheel"
9863
9864 if test "$enableval" = yes; then
9865 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9866 else
9867 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9868 fi
9869
9870else
9871
9872 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9873 if test "x$LINE" != x ; then
9874 eval "DEFAULT_$LINE"
9875 else
9876 no_cache=1
9877 fi
9878
9879 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9880
9881fi;
9882
9883 eval "$ac_cv_use_mousewheel"
9884 if test "$no_cache" != 1; then
9885 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9886 fi
9887
9888 if test "$wxUSE_MOUSEWHEEL" = yes; then
9889 echo "$as_me:$LINENO: result: yes" >&5
9890echo "${ECHO_T}yes" >&6
9891 else
9892 echo "$as_me:$LINENO: result: no" >&5
9893echo "${ECHO_T}no" >&6
9894 fi
9895
9896
a848cd7e
SC
9897 enablestring=
9898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9899echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9900 no_cache=0
9901 # Check whether --enable-validators or --disable-validators was given.
9902if test "${enable_validators+set}" = set; then
9903 enableval="$enable_validators"
9904
9905 if test "$enableval" = yes; then
9906 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9907 else
9908 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9909 fi
9910
9911else
9912
9913 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9914 if test "x$LINE" != x ; then
9915 eval "DEFAULT_$LINE"
9916 else
9917 no_cache=1
9918 fi
9919
9920 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9921
9922fi;
9923
9924 eval "$ac_cv_use_validators"
9925 if test "$no_cache" != 1; then
9926 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9927 fi
9928
9929 if test "$wxUSE_VALIDATORS" = yes; then
9930 echo "$as_me:$LINENO: result: yes" >&5
9931echo "${ECHO_T}yes" >&6
9932 else
9933 echo "$as_me:$LINENO: result: no" >&5
9934echo "${ECHO_T}no" >&6
9935 fi
9936
9937
9938 enablestring=
9939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9940echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9941 no_cache=0
9942 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9943if test "${enable_busyinfo+set}" = set; then
9944 enableval="$enable_busyinfo"
9945
9946 if test "$enableval" = yes; then
9947 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9948 else
9949 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9950 fi
9951
9952else
9953
9954 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9955 if test "x$LINE" != x ; then
9956 eval "DEFAULT_$LINE"
9957 else
9958 no_cache=1
9959 fi
9960
9961 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9962
9963fi;
9964
9965 eval "$ac_cv_use_busyinfo"
9966 if test "$no_cache" != 1; then
9967 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9968 fi
9969
9970 if test "$wxUSE_BUSYINFO" = yes; then
9971 echo "$as_me:$LINENO: result: yes" >&5
9972echo "${ECHO_T}yes" >&6
9973 else
9974 echo "$as_me:$LINENO: result: no" >&5
9975echo "${ECHO_T}no" >&6
9976 fi
9977
9978
9979 enablestring=
9980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9981echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9982 no_cache=0
9983 # Check whether --enable-joystick or --disable-joystick was given.
9984if test "${enable_joystick+set}" = set; then
9985 enableval="$enable_joystick"
9986
9987 if test "$enableval" = yes; then
9988 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9989 else
9990 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9991 fi
9992
9993else
9994
9995 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9996 if test "x$LINE" != x ; then
9997 eval "DEFAULT_$LINE"
9998 else
9999 no_cache=1
10000 fi
10001
10002 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10003
10004fi;
10005
10006 eval "$ac_cv_use_joystick"
10007 if test "$no_cache" != 1; then
10008 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10009 fi
10010
10011 if test "$wxUSE_JOYSTICK" = yes; then
10012 echo "$as_me:$LINENO: result: yes" >&5
10013echo "${ECHO_T}yes" >&6
10014 else
10015 echo "$as_me:$LINENO: result: no" >&5
10016echo "${ECHO_T}no" >&6
10017 fi
10018
10019
10020 enablestring=
10021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10022echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10023 no_cache=0
10024 # Check whether --enable-metafile or --disable-metafile was given.
10025if test "${enable_metafile+set}" = set; then
10026 enableval="$enable_metafile"
10027
10028 if test "$enableval" = yes; then
10029 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10030 else
10031 ac_cv_use_metafile='wxUSE_METAFILE=no'
10032 fi
10033
10034else
10035
10036 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10037 if test "x$LINE" != x ; then
10038 eval "DEFAULT_$LINE"
10039 else
10040 no_cache=1
10041 fi
10042
10043 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10044
10045fi;
10046
10047 eval "$ac_cv_use_metafile"
10048 if test "$no_cache" != 1; then
10049 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10050 fi
10051
10052 if test "$wxUSE_METAFILE" = yes; then
10053 echo "$as_me:$LINENO: result: yes" >&5
10054echo "${ECHO_T}yes" >&6
10055 else
10056 echo "$as_me:$LINENO: result: no" >&5
10057echo "${ECHO_T}no" >&6
10058 fi
10059
10060
10061 enablestring=
10062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10063echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10064 no_cache=0
10065 # Check whether --enable-dragimage or --disable-dragimage was given.
10066if test "${enable_dragimage+set}" = set; then
10067 enableval="$enable_dragimage"
10068
10069 if test "$enableval" = yes; then
10070 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10071 else
10072 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10073 fi
10074
10075else
10076
10077 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10078 if test "x$LINE" != x ; then
10079 eval "DEFAULT_$LINE"
10080 else
10081 no_cache=1
10082 fi
10083
10084 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10085
10086fi;
10087
10088 eval "$ac_cv_use_dragimage"
10089 if test "$no_cache" != 1; then
10090 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10091 fi
10092
10093 if test "$wxUSE_DRAGIMAGE" = yes; then
10094 echo "$as_me:$LINENO: result: yes" >&5
10095echo "${ECHO_T}yes" >&6
10096 else
10097 echo "$as_me:$LINENO: result: no" >&5
10098echo "${ECHO_T}no" >&6
10099 fi
10100
10101
10102 enablestring=
10103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10104echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10105 no_cache=0
10106 # Check whether --enable-accessibility or --disable-accessibility was given.
10107if test "${enable_accessibility+set}" = set; then
10108 enableval="$enable_accessibility"
10109
10110 if test "$enableval" = yes; then
10111 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10112 else
10113 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10114 fi
10115
10116else
10117
10118 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10119 if test "x$LINE" != x ; then
10120 eval "DEFAULT_$LINE"
10121 else
10122 no_cache=1
10123 fi
10124
10125 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10126
10127fi;
10128
10129 eval "$ac_cv_use_accessibility"
10130 if test "$no_cache" != 1; then
10131 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10132 fi
10133
10134 if test "$wxUSE_ACCESSIBILITY" = yes; then
10135 echo "$as_me:$LINENO: result: yes" >&5
10136echo "${ECHO_T}yes" >&6
10137 else
10138 echo "$as_me:$LINENO: result: no" >&5
10139echo "${ECHO_T}no" >&6
10140 fi
10141
10142
38b4a946
VZ
10143if test "$wxUSE_MSW" = "1"; then
10144
10145 enablestring=
10146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10147echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10148 no_cache=0
10149 # Check whether --enable-dccache or --disable-dccache was given.
10150if test "${enable_dccache+set}" = set; then
10151 enableval="$enable_dccache"
10152
10153 if test "$enableval" = yes; then
10154 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10155 else
10156 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10157 fi
10158
10159else
10160
10161 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10162 if test "x$LINE" != x ; then
10163 eval "DEFAULT_$LINE"
10164 else
10165 no_cache=1
10166 fi
10167
10168 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10169
10170fi;
10171
10172 eval "$ac_cv_use_dccache"
10173 if test "$no_cache" != 1; then
10174 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10175 fi
10176
10177 if test "$wxUSE_DC_CACHEING" = yes; then
10178 echo "$as_me:$LINENO: result: yes" >&5
10179echo "${ECHO_T}yes" >&6
10180 else
10181 echo "$as_me:$LINENO: result: no" >&5
10182echo "${ECHO_T}no" >&6
10183 fi
10184
10185fi
10186
a848cd7e
SC
10187
10188
10189 enablestring=
10190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10191echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10192 no_cache=0
10193 # Check whether --enable-palette or --disable-palette was given.
10194if test "${enable_palette+set}" = set; then
10195 enableval="$enable_palette"
10196
10197 if test "$enableval" = yes; then
10198 ac_cv_use_palette='wxUSE_PALETTE=yes'
10199 else
10200 ac_cv_use_palette='wxUSE_PALETTE=no'
10201 fi
10202
10203else
10204
10205 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10206 if test "x$LINE" != x ; then
10207 eval "DEFAULT_$LINE"
10208 else
10209 no_cache=1
10210 fi
10211
10212 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10213
10214fi;
10215
10216 eval "$ac_cv_use_palette"
10217 if test "$no_cache" != 1; then
10218 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10219 fi
10220
10221 if test "$wxUSE_PALETTE" = yes; then
10222 echo "$as_me:$LINENO: result: yes" >&5
10223echo "${ECHO_T}yes" >&6
10224 else
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
10227 fi
10228
10229
10230 enablestring=
10231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10232echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10233 no_cache=0
10234 # Check whether --enable-image or --disable-image was given.
10235if test "${enable_image+set}" = set; then
10236 enableval="$enable_image"
10237
10238 if test "$enableval" = yes; then
10239 ac_cv_use_image='wxUSE_IMAGE=yes'
10240 else
10241 ac_cv_use_image='wxUSE_IMAGE=no'
10242 fi
10243
10244else
10245
10246 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10247 if test "x$LINE" != x ; then
10248 eval "DEFAULT_$LINE"
10249 else
10250 no_cache=1
10251 fi
10252
10253 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10254
10255fi;
10256
10257 eval "$ac_cv_use_image"
10258 if test "$no_cache" != 1; then
10259 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10260 fi
10261
10262 if test "$wxUSE_IMAGE" = yes; then
10263 echo "$as_me:$LINENO: result: yes" >&5
10264echo "${ECHO_T}yes" >&6
10265 else
10266 echo "$as_me:$LINENO: result: no" >&5
10267echo "${ECHO_T}no" >&6
10268 fi
10269
10270
10271 enablestring=
10272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10273echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10274 no_cache=0
10275 # Check whether --enable-gif or --disable-gif was given.
10276if test "${enable_gif+set}" = set; then
10277 enableval="$enable_gif"
10278
10279 if test "$enableval" = yes; then
10280 ac_cv_use_gif='wxUSE_GIF=yes'
10281 else
10282 ac_cv_use_gif='wxUSE_GIF=no'
10283 fi
10284
10285else
10286
10287 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10288 if test "x$LINE" != x ; then
10289 eval "DEFAULT_$LINE"
10290 else
10291 no_cache=1
10292 fi
10293
10294 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10295
10296fi;
10297
10298 eval "$ac_cv_use_gif"
10299 if test "$no_cache" != 1; then
10300 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10301 fi
10302
10303 if test "$wxUSE_GIF" = yes; then
10304 echo "$as_me:$LINENO: result: yes" >&5
10305echo "${ECHO_T}yes" >&6
10306 else
10307 echo "$as_me:$LINENO: result: no" >&5
10308echo "${ECHO_T}no" >&6
10309 fi
10310
10311
10312 enablestring=
10313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10314echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10315 no_cache=0
10316 # Check whether --enable-pcx or --disable-pcx was given.
10317if test "${enable_pcx+set}" = set; then
10318 enableval="$enable_pcx"
10319
10320 if test "$enableval" = yes; then
10321 ac_cv_use_pcx='wxUSE_PCX=yes'
10322 else
10323 ac_cv_use_pcx='wxUSE_PCX=no'
10324 fi
10325
10326else
10327
10328 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10329 if test "x$LINE" != x ; then
10330 eval "DEFAULT_$LINE"
10331 else
10332 no_cache=1
10333 fi
10334
10335 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10336
10337fi;
10338
10339 eval "$ac_cv_use_pcx"
10340 if test "$no_cache" != 1; then
10341 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10342 fi
10343
10344 if test "$wxUSE_PCX" = yes; then
10345 echo "$as_me:$LINENO: result: yes" >&5
10346echo "${ECHO_T}yes" >&6
10347 else
10348 echo "$as_me:$LINENO: result: no" >&5
10349echo "${ECHO_T}no" >&6
10350 fi
10351
10352
10353 enablestring=
10354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10355echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10356 no_cache=0
10357 # Check whether --enable-iff or --disable-iff was given.
10358if test "${enable_iff+set}" = set; then
10359 enableval="$enable_iff"
10360
10361 if test "$enableval" = yes; then
10362 ac_cv_use_iff='wxUSE_IFF=yes'
10363 else
10364 ac_cv_use_iff='wxUSE_IFF=no'
10365 fi
10366
10367else
10368
10369 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10370 if test "x$LINE" != x ; then
10371 eval "DEFAULT_$LINE"
10372 else
10373 no_cache=1
10374 fi
10375
10376 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10377
10378fi;
10379
10380 eval "$ac_cv_use_iff"
10381 if test "$no_cache" != 1; then
10382 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10383 fi
10384
10385 if test "$wxUSE_IFF" = yes; then
10386 echo "$as_me:$LINENO: result: yes" >&5
10387echo "${ECHO_T}yes" >&6
10388 else
10389 echo "$as_me:$LINENO: result: no" >&5
10390echo "${ECHO_T}no" >&6
10391 fi
10392
10393
10394 enablestring=
10395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10396echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10397 no_cache=0
10398 # Check whether --enable-pnm or --disable-pnm was given.
10399if test "${enable_pnm+set}" = set; then
10400 enableval="$enable_pnm"
10401
10402 if test "$enableval" = yes; then
10403 ac_cv_use_pnm='wxUSE_PNM=yes'
10404 else
10405 ac_cv_use_pnm='wxUSE_PNM=no'
10406 fi
10407
10408else
10409
10410 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10411 if test "x$LINE" != x ; then
10412 eval "DEFAULT_$LINE"
10413 else
10414 no_cache=1
10415 fi
10416
10417 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10418
10419fi;
10420
10421 eval "$ac_cv_use_pnm"
10422 if test "$no_cache" != 1; then
10423 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10424 fi
10425
10426 if test "$wxUSE_PNM" = yes; then
10427 echo "$as_me:$LINENO: result: yes" >&5
10428echo "${ECHO_T}yes" >&6
10429 else
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432 fi
10433
10434
10435 enablestring=
10436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10437echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10438 no_cache=0
10439 # Check whether --enable-xpm or --disable-xpm was given.
10440if test "${enable_xpm+set}" = set; then
10441 enableval="$enable_xpm"
10442
10443 if test "$enableval" = yes; then
10444 ac_cv_use_xpm='wxUSE_XPM=yes'
10445 else
10446 ac_cv_use_xpm='wxUSE_XPM=no'
10447 fi
10448
10449else
10450
10451 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10452 if test "x$LINE" != x ; then
10453 eval "DEFAULT_$LINE"
10454 else
10455 no_cache=1
10456 fi
10457
10458 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10459
10460fi;
10461
10462 eval "$ac_cv_use_xpm"
10463 if test "$no_cache" != 1; then
10464 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10465 fi
10466
10467 if test "$wxUSE_XPM" = yes; then
10468 echo "$as_me:$LINENO: result: yes" >&5
10469echo "${ECHO_T}yes" >&6
10470 else
10471 echo "$as_me:$LINENO: result: no" >&5
10472echo "${ECHO_T}no" >&6
10473 fi
10474
10475
10476 enablestring=
10477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10478echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10479 no_cache=0
10480 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10481if test "${enable_ico_cur+set}" = set; then
10482 enableval="$enable_ico_cur"
10483
10484 if test "$enableval" = yes; then
10485 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10486 else
10487 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10488 fi
10489
10490else
10491
10492 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10493 if test "x$LINE" != x ; then
10494 eval "DEFAULT_$LINE"
10495 else
10496 no_cache=1
10497 fi
10498
10499 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10500
10501fi;
10502
10503 eval "$ac_cv_use_ico_cur"
10504 if test "$no_cache" != 1; then
10505 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10506 fi
10507
10508 if test "$wxUSE_ICO_CUR" = yes; then
10509 echo "$as_me:$LINENO: result: yes" >&5
10510echo "${ECHO_T}yes" >&6
10511 else
10512 echo "$as_me:$LINENO: result: no" >&5
10513echo "${ECHO_T}no" >&6
10514 fi
10515
10516
10517fi
10518
10519
10520
ceec2216
RL
10521# Check whether --with-flavour or --without-flavour was given.
10522if test "${with_flavour+set}" = set; then
10523 withval="$with_flavour"
10524 WX_FLAVOUR="$withval"
10525fi;
10526
10527
10528
a848cd7e
SC
10529 enablestring=
10530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10531echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10532 no_cache=0
10533 # Check whether --enable-official_build or --disable-official_build was given.
10534if test "${enable_official_build+set}" = set; then
10535 enableval="$enable_official_build"
10536
10537 if test "$enableval" = yes; then
10538 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10539 else
10540 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10541 fi
10542
10543else
10544
10545 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10546 if test "x$LINE" != x ; then
10547 eval "DEFAULT_$LINE"
10548 else
10549 no_cache=1
10550 fi
10551
10552 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10553
10554fi;
10555
10556 eval "$ac_cv_use_official_build"
10557 if test "$no_cache" != 1; then
10558 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10559 fi
10560
10561 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10562 echo "$as_me:$LINENO: result: yes" >&5
10563echo "${ECHO_T}yes" >&6
10564 else
10565 echo "$as_me:$LINENO: result: no" >&5
10566echo "${ECHO_T}no" >&6
10567 fi
10568
10569# Check whether --enable-vendor or --disable-vendor was given.
10570if test "${enable_vendor+set}" = set; then
10571 enableval="$enable_vendor"
10572 VENDOR="$enableval"
10573fi;
10574if test "x$VENDOR" = "x"; then
10575 VENDOR="custom"
10576fi
10577
a848cd7e
SC
10578
10579
10580
10581 echo "saving argument cache $wx_arg_cache_file"
10582 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10583
10584
10585
10586echo "$as_me:$LINENO: checking for toolkit" >&5
10587echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10588
10589# In Wine, we need to default to MSW, not GTK or MOTIF
10590if test "$wxUSE_WINE" = "yes"; then
10591 DEFAULT_DEFAULT_wxUSE_GTK=0
10592 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10593 DEFAULT_DEFAULT_wxUSE_MSW=1
10594 wxUSE_SHARED=no
10595fi
10596
f597b41c 10597
a848cd7e
SC
10598if test "$wxUSE_GUI" = "yes"; then
10599
10600 if test "$USE_BEOS" = 1; then
10601 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10602echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10603 { (exit 1); exit 1; }; }
10604 fi
10605
10606 if test "$TOOLKIT_GIVEN" = 1; then
10607 for toolkit in `echo $ALL_TOOLKITS`; do
10608 var=wxUSE_$toolkit
10609 eval "value=\$${var}"
f34ca037
MW
10610 if test "x$value" = "xno"; then
10611 eval "$var=0"
10612 elif test "x$value" != "x"; then
10613 eval "$var=1"
10614 fi
10615
10616 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10617 eval "wx${toolkit}_VERSION=$value"
10618 fi
a848cd7e
SC
10619 done
10620 else
10621 for toolkit in `echo $ALL_TOOLKITS`; do
10622 if test "$has_toolkit_in_cache" != 1; then
10623 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10624 else
10625 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10626
10627 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10628 if test "x$version" != "x"; then
10629 eval "wx${toolkit}_VERSION=$version"
10630 fi
a848cd7e
SC
10631 fi
10632 eval "wxUSE_$toolkit=\$${var}"
10633 done
10634 fi
10635
10636 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10637 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10638 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10639
10640 case "${host}" in
10641 *-pc-os2_emx | *-pc-os2-emx )
10642 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10643 esac
10644
10645 case "$NUM_TOOLKITS" in
10646 1)
10647 ;;
10648 0)
10649 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10650echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10651 { (exit 1); exit 1; }; }
10652 ;;
10653 *)
10654 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10655echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10656 { (exit 1); exit 1; }; }
10657 esac
10658
f34ca037
MW
10659 # to be removed when --disable-gtk2 isn't needed
10660 if test "x$wxUSE_GTK2" = "xyes"; then
10661 wxGTK_VERSION=2
10662 elif test "x$wxUSE_GTK2" = "xno"; then
10663 wxGTK_VERSION=1
10664 fi
10665
a848cd7e
SC
10666 for toolkit in `echo $ALL_TOOLKITS`; do
10667 var=wxUSE_$toolkit
10668 eval "value=\$${var}"
10669 if test "x$value" != x; then
10670 cache_var=CACHE_$toolkit
10671 eval "cache=\$${cache_var}"
10672 if test "$cache" = 1; then
10673 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10674 eval "version=\$wx${toolkit}_VERSION"
10675 if test "x$version" != "x"; then
10676 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10677 fi
a848cd7e
SC
10678 fi
10679 if test "$value" = 1; then
10680 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10681 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10682echo "${ECHO_T}$toolkit_echo" >&6
10683 fi
10684 fi
10685 done
10686else
10687 if test "x$host_alias" != "x"; then
10688 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10689echo "${ECHO_T}base ($host_alias hosted) only" >&6
10690 else
10691 echo "$as_me:$LINENO: result: base only" >&5
10692echo "${ECHO_T}base only" >&6
10693 fi
10694fi
10695
10696wants_win32=0
10697doesnt_want_win32=0
10698case "${host}" in
10699 *-*-cygwin*)
10700 if test "$wxUSE_MSW" = 1 ; then
10701 wants_win32=1
7275146d 10702 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10703 else
10704 doesnt_want_win32=1
10705 fi
10706 ;;
10707 *-*-mingw*)
10708 wants_win32=1
10709 ;;
10710esac
10711
10712if test "$wxUSE_WINE" = "yes"; then
10713 wants_win32=1
10714 CC=winegcc
10715 CXX=wineg++
a848cd7e
SC
10716 LDFLAGS_GUI="-mwindows"
10717fi
10718
10719if test "$wants_win32" = 1 ; then
10720 USE_UNIX=0
10721 USE_WIN32=1
10722 cat >>confdefs.h <<\_ACEOF
10723#define __WIN32__ 1
10724_ACEOF
10725
10726 cat >>confdefs.h <<\_ACEOF
10727#define __WIN95__ 1
10728_ACEOF
10729
10730 cat >>confdefs.h <<\_ACEOF
10731#define __WINDOWS__ 1
10732_ACEOF
10733
10734 cat >>confdefs.h <<\_ACEOF
10735#define __GNUWIN32__ 1
10736_ACEOF
10737
10738 cat >>confdefs.h <<\_ACEOF
10739#define STRICT 1
10740_ACEOF
10741
10742 cat >>confdefs.h <<\_ACEOF
10743#define WINVER 0x0400
10744_ACEOF
10745
10746fi
10747if test "$doesnt_want_win32" = 1 ; then
10748 USE_UNIX=1
10749 USE_WIN32=0
10750fi
10751
10752if test "$USE_UNIX" = 1 ; then
10753 wxUSE_UNIX=yes
10754 cat >>confdefs.h <<\_ACEOF
10755#define __UNIX__ 1
10756_ACEOF
10757
10758fi
10759
10760
10761cat >confcache <<\_ACEOF
10762# This file is a shell script that caches the results of configure
10763# tests run on this system so they can be shared between configure
10764# scripts and configure runs, see configure's option --config-cache.
10765# It is not useful on other systems. If it contains results you don't
10766# want to keep, you may remove or edit it.
10767#
10768# config.status only pays attention to the cache file if you give it
10769# the --recheck option to rerun configure.
10770#
10771# `ac_cv_env_foo' variables (set or unset) will be overridden when
10772# loading this file, other *unset* `ac_cv_foo' will be assigned the
10773# following values.
10774
10775_ACEOF
10776
10777# The following way of writing the cache mishandles newlines in values,
10778# but we know of no workaround that is simple, portable, and efficient.
10779# So, don't put newlines in cache variables' values.
10780# Ultrix sh set writes to stderr and can't be redirected directly,
10781# and sets the high bit in the cache file unless we assign to the vars.
10782{
10783 (set) 2>&1 |
10784 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10785 *ac_space=\ *)
10786 # `set' does not quote correctly, so add quotes (double-quote
10787 # substitution turns \\\\ into \\, and sed turns \\ into \).
10788 sed -n \
ac1cb8d3
VS
10789 "s/'/'\\\\''/g;
10790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10791 ;;
10792 *)
10793 # `set' quotes correctly as required by POSIX, so do not add quotes.
10794 sed -n \
ac1cb8d3 10795 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10796 ;;
10797 esac;
10798} |
10799 sed '
10800 t clear
10801 : clear
10802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10803 t end
10804 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10805 : end' >>confcache
10806if diff $cache_file confcache >/dev/null 2>&1; then :; else
10807 if test -w $cache_file; then
10808 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10809 cat confcache >$cache_file
10810 else
10811 echo "not updating unwritable cache $cache_file"
10812 fi
10813fi
10814rm -f confcache
10815
a848cd7e 10816CFLAGS=${CFLAGS:=}
6dcfc289
DE
10817
10818
3006edc0 10819
6dcfc289 10820 ac_ext=c
a848cd7e
SC
10821ac_cpp='$CPP $CPPFLAGS'
10822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10824ac_compiler_gnu=$ac_cv_c_compiler_gnu
10825if test -n "$ac_tool_prefix"; then
10826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10827set dummy ${ac_tool_prefix}gcc; ac_word=$2
10828echo "$as_me:$LINENO: checking for $ac_word" >&5
10829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10830if test "${ac_cv_prog_CC+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832else
10833 if test -n "$CC"; then
10834 ac_cv_prog_CC="$CC" # Let the user override the test.
10835else
10836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837for as_dir in $PATH
10838do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10846 fi
10847done
10848done
10849
10850fi
10851fi
10852CC=$ac_cv_prog_CC
10853if test -n "$CC"; then
10854 echo "$as_me:$LINENO: result: $CC" >&5
10855echo "${ECHO_T}$CC" >&6
10856else
10857 echo "$as_me:$LINENO: result: no" >&5
10858echo "${ECHO_T}no" >&6
10859fi
10860
10861fi
10862if test -z "$ac_cv_prog_CC"; then
10863 ac_ct_CC=$CC
10864 # Extract the first word of "gcc", so it can be a program name with args.
10865set dummy gcc; ac_word=$2
10866echo "$as_me:$LINENO: checking for $ac_word" >&5
10867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 if test -n "$ac_ct_CC"; then
10872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10873else
10874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875for as_dir in $PATH
10876do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10881 ac_cv_prog_ac_ct_CC="gcc"
10882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10884 fi
10885done
10886done
10887
10888fi
10889fi
10890ac_ct_CC=$ac_cv_prog_ac_ct_CC
10891if test -n "$ac_ct_CC"; then
10892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10893echo "${ECHO_T}$ac_ct_CC" >&6
10894else
10895 echo "$as_me:$LINENO: result: no" >&5
10896echo "${ECHO_T}no" >&6
10897fi
10898
10899 CC=$ac_ct_CC
10900else
10901 CC="$ac_cv_prog_CC"
10902fi
10903
10904if test -z "$CC"; then
10905 if test -n "$ac_tool_prefix"; then
10906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10907set dummy ${ac_tool_prefix}cc; ac_word=$2
10908echo "$as_me:$LINENO: checking for $ac_word" >&5
10909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10910if test "${ac_cv_prog_CC+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912else
10913 if test -n "$CC"; then
10914 ac_cv_prog_CC="$CC" # Let the user override the test.
10915else
10916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917for as_dir in $PATH
10918do
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
10921 for ac_exec_ext in '' $ac_executable_extensions; do
10922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10923 ac_cv_prog_CC="${ac_tool_prefix}cc"
10924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10925 break 2
10926 fi
10927done
10928done
10929
10930fi
10931fi
10932CC=$ac_cv_prog_CC
10933if test -n "$CC"; then
10934 echo "$as_me:$LINENO: result: $CC" >&5
10935echo "${ECHO_T}$CC" >&6
10936else
10937 echo "$as_me:$LINENO: result: no" >&5
10938echo "${ECHO_T}no" >&6
10939fi
10940
10941fi
10942if test -z "$ac_cv_prog_CC"; then
10943 ac_ct_CC=$CC
10944 # Extract the first word of "cc", so it can be a program name with args.
10945set dummy cc; ac_word=$2
10946echo "$as_me:$LINENO: checking for $ac_word" >&5
10947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10948if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950else
10951 if test -n "$ac_ct_CC"; then
10952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10953else
10954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961 ac_cv_prog_ac_ct_CC="cc"
10962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10964 fi
10965done
10966done
10967
10968fi
10969fi
10970ac_ct_CC=$ac_cv_prog_ac_ct_CC
10971if test -n "$ac_ct_CC"; then
10972 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10973echo "${ECHO_T}$ac_ct_CC" >&6
10974else
10975 echo "$as_me:$LINENO: result: no" >&5
10976echo "${ECHO_T}no" >&6
10977fi
10978
10979 CC=$ac_ct_CC
10980else
10981 CC="$ac_cv_prog_CC"
10982fi
10983
10984fi
10985if test -z "$CC"; then
10986 # Extract the first word of "cc", so it can be a program name with args.
10987set dummy cc; ac_word=$2
10988echo "$as_me:$LINENO: checking for $ac_word" >&5
10989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10990if test "${ac_cv_prog_CC+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992else
10993 if test -n "$CC"; then
10994 ac_cv_prog_CC="$CC" # Let the user override the test.
10995else
10996 ac_prog_rejected=no
10997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998for as_dir in $PATH
10999do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11005 ac_prog_rejected=yes
11006 continue
11007 fi
11008 ac_cv_prog_CC="cc"
11009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11010 break 2
11011 fi
11012done
11013done
11014
11015if test $ac_prog_rejected = yes; then
11016 # We found a bogon in the path, so make sure we never use it.
11017 set dummy $ac_cv_prog_CC
11018 shift
11019 if test $# != 0; then
11020 # We chose a different compiler from the bogus one.
11021 # However, it has the same basename, so the bogon will be chosen
11022 # first if we set CC to just the basename; use the full file name.
11023 shift
11024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11025 fi
11026fi
11027fi
11028fi
11029CC=$ac_cv_prog_CC
11030if test -n "$CC"; then
11031 echo "$as_me:$LINENO: result: $CC" >&5
11032echo "${ECHO_T}$CC" >&6
11033else
11034 echo "$as_me:$LINENO: result: no" >&5
11035echo "${ECHO_T}no" >&6
11036fi
11037
11038fi
11039if test -z "$CC"; then
11040 if test -n "$ac_tool_prefix"; then
11041 for ac_prog in cl
11042 do
11043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11045echo "$as_me:$LINENO: checking for $ac_word" >&5
11046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11047if test "${ac_cv_prog_CC+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049else
11050 if test -n "$CC"; then
11051 ac_cv_prog_CC="$CC" # Let the user override the test.
11052else
11053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054for as_dir in $PATH
11055do
11056 IFS=$as_save_IFS
11057 test -z "$as_dir" && as_dir=.
11058 for ac_exec_ext in '' $ac_executable_extensions; do
11059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11062 break 2
11063 fi
11064done
11065done
11066
11067fi
11068fi
11069CC=$ac_cv_prog_CC
11070if test -n "$CC"; then
11071 echo "$as_me:$LINENO: result: $CC" >&5
11072echo "${ECHO_T}$CC" >&6
11073else
11074 echo "$as_me:$LINENO: result: no" >&5
11075echo "${ECHO_T}no" >&6
11076fi
11077
11078 test -n "$CC" && break
11079 done
11080fi
11081if test -z "$CC"; then
11082 ac_ct_CC=$CC
11083 for ac_prog in cl
11084do
11085 # Extract the first word of "$ac_prog", so it can be a program name with args.
11086set dummy $ac_prog; ac_word=$2
11087echo "$as_me:$LINENO: checking for $ac_word" >&5
11088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091else
11092 if test -n "$ac_ct_CC"; then
11093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11094else
11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096for as_dir in $PATH
11097do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 ac_cv_prog_ac_ct_CC="$ac_prog"
11103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11105 fi
11106done
11107done
11108
11109fi
11110fi
11111ac_ct_CC=$ac_cv_prog_ac_ct_CC
11112if test -n "$ac_ct_CC"; then
11113 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11114echo "${ECHO_T}$ac_ct_CC" >&6
11115else
11116 echo "$as_me:$LINENO: result: no" >&5
11117echo "${ECHO_T}no" >&6
11118fi
11119
11120 test -n "$ac_ct_CC" && break
11121done
11122
11123 CC=$ac_ct_CC
11124fi
11125
11126fi
11127
11128
11129test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11130See \`config.log' for more details." >&5
11131echo "$as_me: error: no acceptable C compiler found in \$PATH
11132See \`config.log' for more details." >&2;}
11133 { (exit 1); exit 1; }; }
11134
11135# Provide some information about the compiler.
11136echo "$as_me:$LINENO:" \
11137 "checking for C compiler version" >&5
11138ac_compiler=`set X $ac_compile; echo $2`
11139{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11140 (eval $ac_compiler --version </dev/null >&5) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }
11144{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11145 (eval $ac_compiler -v </dev/null >&5) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }
11149{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11150 (eval $ac_compiler -V </dev/null >&5) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }
11154
11155cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */
11161
11162int
11163main ()
11164{
11165
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170ac_clean_files_save=$ac_clean_files
11171ac_clean_files="$ac_clean_files a.out a.exe b.out"
11172# Try to create an executable without -o first, disregard a.out.
11173# It will help us diagnose broken compilers, and finding out an intuition
11174# of exeext.
ac1cb8d3
VS
11175echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11176echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11177ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11178if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11179 (eval $ac_link_default) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; then
11183 # Find the output, starting from the most likely. This scheme is
11184# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11185# resort.
11186
11187# Be careful to initialize this variable, since it used to be cached.
11188# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11189ac_cv_exeext=
11190# b.out is created by i960 compilers.
11191for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11192do
11193 test -f "$ac_file" || continue
11194 case $ac_file in
11195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11196 ;;
a848cd7e 11197 conftest.$ac_ext )
ac1cb8d3
VS
11198 # This is the source file.
11199 ;;
a848cd7e 11200 [ab].out )
ac1cb8d3
VS
11201 # We found the default executable, but exeext='' is most
11202 # certainly right.
11203 break;;
a848cd7e 11204 *.* )
ac1cb8d3
VS
11205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11206 # FIXME: I believe we export ac_cv_exeext for Libtool,
11207 # but it would be cool to find out if it's true. Does anybody
11208 # maintain Libtool? --akim.
11209 export ac_cv_exeext
11210 break;;
a848cd7e 11211 * )
ac1cb8d3 11212 break;;
a848cd7e
SC
11213 esac
11214done
11215else
11216 echo "$as_me: failed program was:" >&5
11217sed 's/^/| /' conftest.$ac_ext >&5
11218
11219{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11220See \`config.log' for more details." >&5
11221echo "$as_me: error: C compiler cannot create executables
11222See \`config.log' for more details." >&2;}
11223 { (exit 77); exit 77; }; }
11224fi
11225
11226ac_exeext=$ac_cv_exeext
11227echo "$as_me:$LINENO: result: $ac_file" >&5
11228echo "${ECHO_T}$ac_file" >&6
11229
11230# Check the compiler produces executables we can run. If not, either
11231# the compiler is broken, or we cross compile.
11232echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11233echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11234# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11235# If not cross compiling, check that we can run a simple program.
11236if test "$cross_compiling" != yes; then
11237 if { ac_try='./$ac_file'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 cross_compiling=no
11244 else
11245 if test "$cross_compiling" = maybe; then
11246 cross_compiling=yes
11247 else
11248 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11249If you meant to cross compile, use \`--host'.
11250See \`config.log' for more details." >&5
11251echo "$as_me: error: cannot run C compiled programs.
11252If you meant to cross compile, use \`--host'.
11253See \`config.log' for more details." >&2;}
11254 { (exit 1); exit 1; }; }
11255 fi
11256 fi
11257fi
11258echo "$as_me:$LINENO: result: yes" >&5
11259echo "${ECHO_T}yes" >&6
11260
11261rm -f a.out a.exe conftest$ac_cv_exeext b.out
11262ac_clean_files=$ac_clean_files_save
11263# Check the compiler produces executables we can run. If not, either
11264# the compiler is broken, or we cross compile.
11265echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11266echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11267echo "$as_me:$LINENO: result: $cross_compiling" >&5
11268echo "${ECHO_T}$cross_compiling" >&6
11269
11270echo "$as_me:$LINENO: checking for suffix of executables" >&5
11271echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11273 (eval $ac_link) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; then
11277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11278# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11279# work properly (i.e., refer to `conftest.exe'), while it won't with
11280# `rm'.
11281for ac_file in conftest.exe conftest conftest.*; do
11282 test -f "$ac_file" || continue
11283 case $ac_file in
11284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11286 export ac_cv_exeext
11287 break;;
a848cd7e
SC
11288 * ) break;;
11289 esac
11290done
11291else
11292 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11293See \`config.log' for more details." >&5
11294echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11295See \`config.log' for more details." >&2;}
11296 { (exit 1); exit 1; }; }
11297fi
11298
11299rm -f conftest$ac_cv_exeext
11300echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11301echo "${ECHO_T}$ac_cv_exeext" >&6
11302
11303rm -f conftest.$ac_ext
11304EXEEXT=$ac_cv_exeext
11305ac_exeext=$EXEEXT
11306echo "$as_me:$LINENO: checking for suffix of object files" >&5
11307echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11308if test "${ac_cv_objext+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310else
11311 cat >conftest.$ac_ext <<_ACEOF
11312/* confdefs.h. */
11313_ACEOF
11314cat confdefs.h >>conftest.$ac_ext
11315cat >>conftest.$ac_ext <<_ACEOF
11316/* end confdefs.h. */
11317
11318int
11319main ()
11320{
11321
11322 ;
11323 return 0;
11324}
11325_ACEOF
11326rm -f conftest.o conftest.obj
11327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11328 (eval $ac_compile) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; then
11332 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11333 case $ac_file in
11334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11336 break;;
11337 esac
11338done
11339else
11340 echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
11343{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11344See \`config.log' for more details." >&5
11345echo "$as_me: error: cannot compute suffix of object files: cannot compile
11346See \`config.log' for more details." >&2;}
11347 { (exit 1); exit 1; }; }
11348fi
11349
11350rm -f conftest.$ac_cv_objext conftest.$ac_ext
11351fi
11352echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11353echo "${ECHO_T}$ac_cv_objext" >&6
11354OBJEXT=$ac_cv_objext
11355ac_objext=$OBJEXT
11356echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11357echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11358if test "${ac_cv_c_compiler_gnu+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360else
11361 cat >conftest.$ac_ext <<_ACEOF
11362/* confdefs.h. */
11363_ACEOF
11364cat confdefs.h >>conftest.$ac_ext
11365cat >>conftest.$ac_ext <<_ACEOF
11366/* end confdefs.h. */
11367
11368int
11369main ()
11370{
11371#ifndef __GNUC__
11372 choke me
11373#endif
11374
11375 ;
11376 return 0;
11377}
11378_ACEOF
11379rm -f conftest.$ac_objext
11380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11381 (eval $ac_compile) 2>conftest.er1
a848cd7e 11382 ac_status=$?
ac1cb8d3
VS
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
a848cd7e
SC
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
0093c2fc 11388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_compiler_gnu=yes
11401else
11402 echo "$as_me: failed program was:" >&5
11403sed 's/^/| /' conftest.$ac_ext >&5
11404
11405ac_compiler_gnu=no
11406fi
ac1cb8d3 11407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11408ac_cv_c_compiler_gnu=$ac_compiler_gnu
11409
11410fi
11411echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11412echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11413GCC=`test $ac_compiler_gnu = yes && echo yes`
11414ac_test_CFLAGS=${CFLAGS+set}
11415ac_save_CFLAGS=$CFLAGS
1c14217d 11416CFLAGS="-g"
a848cd7e
SC
11417echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11418echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11419if test "${ac_cv_prog_cc_g+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11421else
11422 cat >conftest.$ac_ext <<_ACEOF
11423/* confdefs.h. */
11424_ACEOF
11425cat confdefs.h >>conftest.$ac_ext
11426cat >>conftest.$ac_ext <<_ACEOF
11427/* end confdefs.h. */
11428
11429int
11430main ()
11431{
11432
11433 ;
11434 return 0;
11435}
11436_ACEOF
11437rm -f conftest.$ac_objext
11438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11439 (eval $ac_compile) 2>conftest.er1
a848cd7e 11440 ac_status=$?
ac1cb8d3
VS
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
a848cd7e
SC
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
0093c2fc 11446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; } &&
11452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_cv_prog_cc_g=yes
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463ac_cv_prog_cc_g=no
11464fi
ac1cb8d3 11465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11466fi
11467echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11468echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11469if test "$ac_test_CFLAGS" = set; then
11470 CFLAGS=$ac_save_CFLAGS
11471elif test $ac_cv_prog_cc_g = yes; then
11472 if test "$GCC" = yes; then
11473 CFLAGS="-g -O2"
11474 else
11475 CFLAGS="-g"
11476 fi
11477else
11478 if test "$GCC" = yes; then
11479 CFLAGS="-O2"
11480 else
11481 CFLAGS=
11482 fi
11483fi
11484echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11485echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11486if test "${ac_cv_prog_cc_stdc+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488else
11489 ac_cv_prog_cc_stdc=no
11490ac_save_CC=$CC
11491cat >conftest.$ac_ext <<_ACEOF
11492/* confdefs.h. */
11493_ACEOF
11494cat confdefs.h >>conftest.$ac_ext
11495cat >>conftest.$ac_ext <<_ACEOF
11496/* end confdefs.h. */
11497#include <stdarg.h>
11498#include <stdio.h>
11499#include <sys/types.h>
11500#include <sys/stat.h>
11501/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11502struct buf { int x; };
11503FILE * (*rcsopen) (struct buf *, struct stat *, int);
11504static char *e (p, i)
11505 char **p;
11506 int i;
11507{
11508 return p[i];
11509}
11510static char *f (char * (*g) (char **, int), char **p, ...)
11511{
11512 char *s;
11513 va_list v;
11514 va_start (v,p);
11515 s = g (p, va_arg (v,int));
11516 va_end (v);
11517 return s;
11518}
ac1cb8d3
VS
11519
11520/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11521 function prototypes and stuff, but not '\xHH' hex character constants.
11522 These don't provoke an error unfortunately, instead are silently treated
11523 as 'x'. The following induces an error, until -std1 is added to get
11524 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11525 array size at least. It's necessary to write '\x00'==0 to get something
11526 that's true only with -std1. */
11527int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11528
a848cd7e
SC
11529int test (int i, double x);
11530struct s1 {int (*f) (int a);};
11531struct s2 {int (*f) (double a);};
11532int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11533int argc;
11534char **argv;
11535int
11536main ()
11537{
11538return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11539 ;
11540 return 0;
11541}
11542_ACEOF
11543# Don't try gcc -ansi; that turns off useful extensions and
11544# breaks some systems' header files.
11545# AIX -qlanglvl=ansi
11546# Ultrix and OSF/1 -std1
11547# HP-UX 10.20 and later -Ae
11548# HP-UX older versions -Aa -D_HPUX_SOURCE
11549# SVR4 -Xc -D__EXTENSIONS__
11550for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11551do
11552 CC="$ac_save_CC $ac_arg"
11553 rm -f conftest.$ac_objext
11554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11555 (eval $ac_compile) 2>conftest.er1
a848cd7e 11556 ac_status=$?
ac1cb8d3
VS
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
a848cd7e
SC
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
0093c2fc 11562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; } &&
11568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 ac_cv_prog_cc_stdc=$ac_arg
11575break
11576else
11577 echo "$as_me: failed program was:" >&5
11578sed 's/^/| /' conftest.$ac_ext >&5
11579
11580fi
ac1cb8d3 11581rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11582done
11583rm -f conftest.$ac_ext conftest.$ac_objext
11584CC=$ac_save_CC
11585
11586fi
11587
11588case "x$ac_cv_prog_cc_stdc" in
11589 x|xno)
11590 echo "$as_me:$LINENO: result: none needed" >&5
11591echo "${ECHO_T}none needed" >&6 ;;
11592 *)
11593 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11594echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11595 CC="$CC $ac_cv_prog_cc_stdc" ;;
11596esac
11597
11598# Some people use a C++ compiler to compile C. Since we use `exit',
11599# in C++ we need to declare it. In case someone uses the same compiler
11600# for both compiling C and C++ we need to have the C++ compiler decide
11601# the declaration of exit, since it's the most demanding environment.
11602cat >conftest.$ac_ext <<_ACEOF
11603#ifndef __cplusplus
11604 choke me
11605#endif
11606_ACEOF
11607rm -f conftest.$ac_objext
11608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11609 (eval $ac_compile) 2>conftest.er1
a848cd7e 11610 ac_status=$?
ac1cb8d3
VS
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
a848cd7e
SC
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
0093c2fc 11616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; } &&
11622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11625 ac_status=$?
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
11628 for ac_declaration in \
ac1cb8d3 11629 '' \
a848cd7e
SC
11630 'extern "C" void std::exit (int) throw (); using std::exit;' \
11631 'extern "C" void std::exit (int); using std::exit;' \
11632 'extern "C" void exit (int) throw ();' \
11633 'extern "C" void exit (int);' \
11634 'void exit (int);'
11635do
11636 cat >conftest.$ac_ext <<_ACEOF
11637/* confdefs.h. */
11638_ACEOF
11639cat confdefs.h >>conftest.$ac_ext
11640cat >>conftest.$ac_ext <<_ACEOF
11641/* end confdefs.h. */
de59c161 11642$ac_declaration
ac1cb8d3 11643#include <stdlib.h>
a848cd7e
SC
11644int
11645main ()
11646{
11647exit (42);
11648 ;
11649 return 0;
11650}
11651_ACEOF
11652rm -f conftest.$ac_objext
11653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11654 (eval $ac_compile) 2>conftest.er1
a848cd7e 11655 ac_status=$?
ac1cb8d3
VS
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
a848cd7e
SC
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
0093c2fc 11661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 :
11674else
11675 echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
11677
11678continue
11679fi
ac1cb8d3 11680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11681 cat >conftest.$ac_ext <<_ACEOF
11682/* confdefs.h. */
11683_ACEOF
11684cat confdefs.h >>conftest.$ac_ext
11685cat >>conftest.$ac_ext <<_ACEOF
11686/* end confdefs.h. */
11687$ac_declaration
11688int
11689main ()
11690{
11691exit (42);
11692 ;
11693 return 0;
11694}
11695_ACEOF
11696rm -f conftest.$ac_objext
11697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11698 (eval $ac_compile) 2>conftest.er1
a848cd7e 11699 ac_status=$?
ac1cb8d3
VS
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
a848cd7e
SC
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
0093c2fc 11705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 break
11718else
11719 echo "$as_me: failed program was:" >&5
11720sed 's/^/| /' conftest.$ac_ext >&5
11721
11722fi
ac1cb8d3 11723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11724done
11725rm -f conftest*
11726if test -n "$ac_declaration"; then
11727 echo '#ifdef __cplusplus' >>confdefs.h
11728 echo $ac_declaration >>confdefs.h
11729 echo '#endif' >>confdefs.h
11730fi
11731
11732else
11733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736fi
ac1cb8d3 11737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11738ac_ext=c
11739ac_cpp='$CPP $CPPFLAGS'
11740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11742ac_compiler_gnu=$ac_cv_c_compiler_gnu
11743
ab0ad5f1
VZ
11744
11745
11746 ac_ext=c
11747ac_cpp='$CPP $CPPFLAGS'
11748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11750ac_compiler_gnu=$ac_cv_c_compiler_gnu
11751
11752 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11753echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11754if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756else
11757 cat >conftest.$ac_ext <<_ACEOF
11758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
11763
11764int
11765main ()
11766{
11767
11768 #ifndef __INTEL_COMPILER
11769 choke me
11770 #endif
11771
11772 ;
11773 return 0;
11774}
11775_ACEOF
11776rm -f conftest.$ac_objext
11777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11778 (eval $ac_compile) 2>conftest.er1
11779 ac_status=$?
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
0093c2fc 11785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest.$ac_objext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11798else
11799 echo "$as_me: failed program was:" >&5
11800sed 's/^/| /' conftest.$ac_ext >&5
11801
11802bakefile_cv_c_compiler___INTEL_COMPILER=no
11803
11804fi
11805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11806
11807
11808fi
11809echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11810echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11811 ac_ext=c
11812ac_cpp='$CPP $CPPFLAGS'
11813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11815ac_compiler_gnu=$ac_cv_c_compiler_gnu
11816
11817 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11818 :; INTELCC=yes
11819 else
11820 :;
11821 fi
11822
11823
11824 if test "x$GCC" != "xyes"; then
3006edc0
VZ
11825 if test "xCC" = "xC"; then
11826 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 11827echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 11828if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830else
11831 cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837
11838int
11839main ()
11840{
11841
11842 ;
11843 return 0;
11844}
11845_ACEOF
11846rm -f conftest.$ac_objext conftest.$ac_ext.o
11847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; then
11852 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11853 case $ac_file in
11854 conftest.$ac_ext.o)
0093c2fc 11855 bakefile_cv_c_exto="-ext o"
480ccd21
DE
11856 ;;
11857 *)
11858 ;;
11859 esac
11860done
11861else
11862 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11863See \`config.log' for more details." >&5
11864echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11865See \`config.log' for more details." >&2;}
11866 { (exit 1); exit 1; }; }
11867
11868fi
11869
11870rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11871
11872fi
0093c2fc
VZ
11873echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
11874echo "${ECHO_T}$bakefile_cv_c_exto" >&6
11875if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 11876 if test "c" = "c"; then
0093c2fc 11877 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
11878 fi
11879 if test "c" = "cxx"; then
0093c2fc 11880 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
11881 fi
11882fi
11883
0093c2fc 11884 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
11885 unset ac_cv_prog_cc_g
11886 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11887ac_save_CFLAGS=$CFLAGS
1c14217d 11888CFLAGS="-g"
480ccd21
DE
11889echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11890echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11891if test "${ac_cv_prog_cc_g+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893else
11894 cat >conftest.$ac_ext <<_ACEOF
11895/* confdefs.h. */
11896_ACEOF
11897cat confdefs.h >>conftest.$ac_ext
11898cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h. */
11900
11901int
11902main ()
11903{
11904
11905 ;
11906 return 0;
11907}
11908_ACEOF
11909rm -f conftest.$ac_objext
11910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
0093c2fc 11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 ac_cv_prog_cc_g=yes
11931else
11932 echo "$as_me: failed program was:" >&5
11933sed 's/^/| /' conftest.$ac_ext >&5
11934
11935ac_cv_prog_cc_g=no
11936fi
11937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11938fi
11939echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11940echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11941if test "$ac_test_CFLAGS" = set; then
11942 CFLAGS=$ac_save_CFLAGS
11943elif test $ac_cv_prog_cc_g = yes; then
11944 if test "$GCC" = yes; then
11945 CFLAGS="-g -O2"
11946 else
11947 CFLAGS="-g"
11948 fi
11949else
11950 if test "$GCC" = yes; then
11951 CFLAGS="-O2"
11952 else
11953 CFLAGS=
11954 fi
11955fi
3006edc0 11956 fi
ab0ad5f1 11957 fi
3006edc0
VZ
11958
11959 case `uname -s` in
11960 AIX*)
11961 ac_ext=c
11962ac_cpp='$CPP $CPPFLAGS'
11963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11965ac_compiler_gnu=$ac_cv_c_compiler_gnu
11966
11967echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11968echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 11969if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11971else
11972 cat >conftest.$ac_ext <<_ACEOF
11973/* confdefs.h. */
11974_ACEOF
11975cat confdefs.h >>conftest.$ac_ext
11976cat >>conftest.$ac_ext <<_ACEOF
11977/* end confdefs.h. */
11978
11979int
11980main ()
11981{
11982#ifndef __xlC__
11983 choke me
11984#endif
11985
11986 ;
11987 return 0;
11988}
11989_ACEOF
11990rm -f conftest.$ac_objext
11991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992 (eval $ac_compile) 2>conftest.er1
11993 ac_status=$?
11994 grep -v '^ *+' conftest.er1 >conftest.err
11995 rm -f conftest.er1
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
0093c2fc 11999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; } &&
12005 { ac_try='test -s conftest.$ac_objext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
0093c2fc 12011 bakefile_compiler_xlc=yes
3006edc0
VZ
12012else
12013 echo "$as_me: failed program was:" >&5
12014sed 's/^/| /' conftest.$ac_ext >&5
12015
0093c2fc 12016bakefile_compiler_xlc=no
3006edc0
VZ
12017fi
12018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12019 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12020
12021fi
0093c2fc
VZ
12022echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12023echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12024
0093c2fc 12025XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12026ac_ext=c
12027ac_cpp='$CPP $CPPFLAGS'
12028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12030ac_compiler_gnu=$ac_cv_c_compiler_gnu
12031
12032
12033 ;;
12034
12035 Darwin)
12036 ac_ext=c
95986553
DE
12037ac_cpp='$CPP $CPPFLAGS'
12038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12040ac_compiler_gnu=$ac_cv_c_compiler_gnu
12041
12042echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12043echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12044if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046else
12047 cat >conftest.$ac_ext <<_ACEOF
12048/* confdefs.h. */
12049_ACEOF
12050cat confdefs.h >>conftest.$ac_ext
12051cat >>conftest.$ac_ext <<_ACEOF
12052/* end confdefs.h. */
12053
12054int
12055main ()
12056{
12057#ifndef __MWERKS__
12058 choke me
12059#endif
12060
12061 ;
12062 return 0;
12063}
12064_ACEOF
12065rm -f conftest.$ac_objext
12066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12067 (eval $ac_compile) 2>conftest.er1
12068 ac_status=$?
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
0093c2fc 12074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest.$ac_objext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 bakefile_compiler_mwerks=yes
12087else
12088 echo "$as_me: failed program was:" >&5
12089sed 's/^/| /' conftest.$ac_ext >&5
12090
12091bakefile_compiler_mwerks=no
12092fi
12093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12094 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12095
12096fi
12097echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12098echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12099
0e6fa1d9 12100MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12101ac_ext=c
12102ac_cpp='$CPP $CPPFLAGS'
12103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12105ac_compiler_gnu=$ac_cv_c_compiler_gnu
12106
12107
3006edc0 12108 ac_ext=c
9273ffba
DE
12109ac_cpp='$CPP $CPPFLAGS'
12110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12112ac_compiler_gnu=$ac_cv_c_compiler_gnu
12113
12114echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12115echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12116if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118else
12119 cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
12124/* end confdefs.h. */
12125
12126int
12127main ()
12128{
12129#ifndef __xlC__
12130 choke me
12131#endif
12132
12133 ;
12134 return 0;
12135}
12136_ACEOF
12137rm -f conftest.$ac_objext
12138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12139 (eval $ac_compile) 2>conftest.er1
12140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } &&
0093c2fc 12146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; } &&
12152 { ac_try='test -s conftest.$ac_objext'
12153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154 (eval $ac_try) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
0093c2fc 12158 bakefile_compiler_xlc=yes
9273ffba
DE
12159else
12160 echo "$as_me: failed program was:" >&5
12161sed 's/^/| /' conftest.$ac_ext >&5
12162
0093c2fc 12163bakefile_compiler_xlc=no
9273ffba
DE
12164fi
12165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12166 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12167
12168fi
0093c2fc
VZ
12169echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12170echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12171
0093c2fc 12172XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12173ac_ext=c
12174ac_cpp='$CPP $CPPFLAGS'
12175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177ac_compiler_gnu=$ac_cv_c_compiler_gnu
12178
12179
3006edc0
VZ
12180 ;;
12181
12182 IRIX*)
a848cd7e 12183
6dcfc289 12184
0ad5d837
VZ
12185 ac_ext=c
12186ac_cpp='$CPP $CPPFLAGS'
12187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12189ac_compiler_gnu=$ac_cv_c_compiler_gnu
12190
12191 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12192echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12193if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196 cat >conftest.$ac_ext <<_ACEOF
12197/* confdefs.h. */
12198_ACEOF
12199cat confdefs.h >>conftest.$ac_ext
12200cat >>conftest.$ac_ext <<_ACEOF
12201/* end confdefs.h. */
12202
12203int
12204main ()
12205{
12206
12207 #ifndef _SGI_COMPILER_VERSION
12208 choke me
12209 #endif
12210
12211 ;
12212 return 0;
12213}
12214_ACEOF
12215rm -f conftest.$ac_objext
12216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12217 (eval $ac_compile) 2>conftest.er1
12218 ac_status=$?
12219 grep -v '^ *+' conftest.er1 >conftest.err
12220 rm -f conftest.er1
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } &&
0093c2fc 12224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest.$ac_objext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12237else
12238 echo "$as_me: failed program was:" >&5
12239sed 's/^/| /' conftest.$ac_ext >&5
12240
12241bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12242
12243fi
12244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12245
12246
12247fi
12248echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12249echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12250 ac_ext=c
12251ac_cpp='$CPP $CPPFLAGS'
12252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12254ac_compiler_gnu=$ac_cv_c_compiler_gnu
12255
12256 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12257 :; SGICC=yes
12258 else
12259 :;
12260 fi
12261
12262
3006edc0
VZ
12263 ;;
12264
0093c2fc 12265 HP-UX*)
3006edc0
VZ
12266
12267
12268 ac_ext=c
12269ac_cpp='$CPP $CPPFLAGS'
12270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12272ac_compiler_gnu=$ac_cv_c_compiler_gnu
12273
0093c2fc
VZ
12274 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12275echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12276if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278else
12279 cat >conftest.$ac_ext <<_ACEOF
12280/* confdefs.h. */
12281_ACEOF
12282cat confdefs.h >>conftest.$ac_ext
12283cat >>conftest.$ac_ext <<_ACEOF
12284/* end confdefs.h. */
12285
12286int
12287main ()
12288{
12289
0093c2fc 12290 #ifndef __HP_cc
3006edc0
VZ
12291 choke me
12292 #endif
12293
12294 ;
12295 return 0;
12296}
12297_ACEOF
12298rm -f conftest.$ac_objext
12299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12300 (eval $ac_compile) 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
0093c2fc 12307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest.$ac_objext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
0093c2fc 12319 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12320else
12321 echo "$as_me: failed program was:" >&5
12322sed 's/^/| /' conftest.$ac_ext >&5
12323
0093c2fc 12324bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12325
12326fi
12327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12328
12329
12330fi
0093c2fc
VZ
12331echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12332echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12333 ac_ext=c
12334ac_cpp='$CPP $CPPFLAGS'
12335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337ac_compiler_gnu=$ac_cv_c_compiler_gnu
12338
0093c2fc
VZ
12339 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12340 :; HPCC=yes
a1aa0349
VZ
12341 else
12342 :;
12343 fi
12344
12345
12346 ;;
12347
0093c2fc 12348 OSF1)
a1aa0349
VZ
12349
12350
12351 ac_ext=c
12352ac_cpp='$CPP $CPPFLAGS'
12353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12355ac_compiler_gnu=$ac_cv_c_compiler_gnu
12356
0093c2fc
VZ
12357 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12358echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12359if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361else
12362 cat >conftest.$ac_ext <<_ACEOF
12363/* confdefs.h. */
12364_ACEOF
12365cat confdefs.h >>conftest.$ac_ext
12366cat >>conftest.$ac_ext <<_ACEOF
12367/* end confdefs.h. */
12368
12369int
12370main ()
12371{
12372
0093c2fc 12373 #ifndef __DECC
a1aa0349
VZ
12374 choke me
12375 #endif
12376
12377 ;
12378 return 0;
12379}
12380_ACEOF
12381rm -f conftest.$ac_objext
12382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383 (eval $ac_compile) 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
0093c2fc 12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; } &&
12396 { ac_try='test -s conftest.$ac_objext'
12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
0093c2fc 12402 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12403else
12404 echo "$as_me: failed program was:" >&5
12405sed 's/^/| /' conftest.$ac_ext >&5
12406
0093c2fc 12407bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12408
12409fi
12410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12411
12412
12413fi
0093c2fc
VZ
12414echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12415echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12416 ac_ext=c
12417ac_cpp='$CPP $CPPFLAGS'
12418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12420ac_compiler_gnu=$ac_cv_c_compiler_gnu
12421
0093c2fc
VZ
12422 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12423 :; COMPAQCC=yes
12424 else
12425 :;
12426 fi
12427
12428
12429 ;;
12430
12431 SunOS)
12432
12433
12434 ac_ext=c
12435ac_cpp='$CPP $CPPFLAGS'
12436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12438ac_compiler_gnu=$ac_cv_c_compiler_gnu
12439
12440 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12441echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12442if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12444else
12445 cat >conftest.$ac_ext <<_ACEOF
12446/* confdefs.h. */
12447_ACEOF
12448cat confdefs.h >>conftest.$ac_ext
12449cat >>conftest.$ac_ext <<_ACEOF
12450/* end confdefs.h. */
12451
12452int
12453main ()
12454{
12455
12456 #ifndef __SUNPRO_C
12457 choke me
12458 #endif
12459
12460 ;
12461 return 0;
12462}
12463_ACEOF
12464rm -f conftest.$ac_objext
12465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest.$ac_objext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 bakefile_cv_c_compiler___SUNPRO_C=yes
12486else
12487 echo "$as_me: failed program was:" >&5
12488sed 's/^/| /' conftest.$ac_ext >&5
12489
12490bakefile_cv_c_compiler___SUNPRO_C=no
12491
12492fi
12493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12494
12495
12496fi
12497echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12498echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12499 ac_ext=c
12500ac_cpp='$CPP $CPPFLAGS'
12501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12503ac_compiler_gnu=$ac_cv_c_compiler_gnu
12504
12505 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12506 :; SUNCC=yes
3006edc0
VZ
12507 else
12508 :;
12509 fi
12510
12511
12512 ;;
12513 esac
ab0ad5f1 12514 fi
a9e5b1f0
MW
12515
12516
3006edc0 12517
a848cd7e
SC
12518ac_ext=c
12519ac_cpp='$CPP $CPPFLAGS'
12520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12522ac_compiler_gnu=$ac_cv_c_compiler_gnu
12523echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12524echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12525# On Suns, sometimes $CPP names a directory.
12526if test -n "$CPP" && test -d "$CPP"; then
12527 CPP=
12528fi
12529if test -z "$CPP"; then
12530 if test "${ac_cv_prog_CPP+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532else
12533 # Double quotes because CPP needs to be expanded
12534 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12535 do
12536 ac_preproc_ok=false
12537for ac_c_preproc_warn_flag in '' yes
12538do
12539 # Use a header file that comes with gcc, so configuring glibc
12540 # with a fresh cross-compiler works.
12541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12542 # <limits.h> exists even on freestanding compilers.
12543 # On the NeXT, cc -E runs the code through the compiler's parser,
12544 # not just through cpp. "Syntax error" is here to catch this case.
12545 cat >conftest.$ac_ext <<_ACEOF
12546/* confdefs.h. */
12547_ACEOF
12548cat confdefs.h >>conftest.$ac_ext
12549cat >>conftest.$ac_ext <<_ACEOF
12550/* end confdefs.h. */
12551#ifdef __STDC__
12552# include <limits.h>
12553#else
12554# include <assert.h>
12555#endif
ac1cb8d3 12556 Syntax error
a848cd7e
SC
12557_ACEOF
12558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } >/dev/null; then
12566 if test -s conftest.err; then
12567 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12569 else
12570 ac_cpp_err=
12571 fi
12572else
12573 ac_cpp_err=yes
12574fi
12575if test -z "$ac_cpp_err"; then
12576 :
12577else
12578 echo "$as_me: failed program was:" >&5
12579sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 # Broken: fails on valid input.
12582continue
12583fi
12584rm -f conftest.err conftest.$ac_ext
12585
12586 # OK, works on sane cases. Now check whether non-existent headers
12587 # can be detected and how.
12588 cat >conftest.$ac_ext <<_ACEOF
12589/* confdefs.h. */
12590_ACEOF
12591cat confdefs.h >>conftest.$ac_ext
12592cat >>conftest.$ac_ext <<_ACEOF
12593/* end confdefs.h. */
12594#include <ac_nonexistent.h>
12595_ACEOF
12596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } >/dev/null; then
12604 if test -s conftest.err; then
12605 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12607 else
12608 ac_cpp_err=
12609 fi
12610else
12611 ac_cpp_err=yes
12612fi
12613if test -z "$ac_cpp_err"; then
12614 # Broken: success on invalid input.
12615continue
12616else
12617 echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620 # Passes both tests.
12621ac_preproc_ok=:
12622break
12623fi
12624rm -f conftest.err conftest.$ac_ext
12625
12626done
12627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12628rm -f conftest.err conftest.$ac_ext
12629if $ac_preproc_ok; then
12630 break
12631fi
12632
12633 done
12634 ac_cv_prog_CPP=$CPP
12635
12636fi
12637 CPP=$ac_cv_prog_CPP
12638else
12639 ac_cv_prog_CPP=$CPP
12640fi
12641echo "$as_me:$LINENO: result: $CPP" >&5
12642echo "${ECHO_T}$CPP" >&6
12643ac_preproc_ok=false
12644for ac_c_preproc_warn_flag in '' yes
12645do
12646 # Use a header file that comes with gcc, so configuring glibc
12647 # with a fresh cross-compiler works.
12648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12649 # <limits.h> exists even on freestanding compilers.
12650 # On the NeXT, cc -E runs the code through the compiler's parser,
12651 # not just through cpp. "Syntax error" is here to catch this case.
12652 cat >conftest.$ac_ext <<_ACEOF
12653/* confdefs.h. */
12654_ACEOF
12655cat confdefs.h >>conftest.$ac_ext
12656cat >>conftest.$ac_ext <<_ACEOF
12657/* end confdefs.h. */
12658#ifdef __STDC__
12659# include <limits.h>
12660#else
12661# include <assert.h>
12662#endif
ac1cb8d3 12663 Syntax error
a848cd7e
SC
12664_ACEOF
12665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } >/dev/null; then
12673 if test -s conftest.err; then
12674 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12676 else
12677 ac_cpp_err=
12678 fi
12679else
12680 ac_cpp_err=yes
12681fi
12682if test -z "$ac_cpp_err"; then
12683 :
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 # Broken: fails on valid input.
12689continue
12690fi
12691rm -f conftest.err conftest.$ac_ext
12692
12693 # OK, works on sane cases. Now check whether non-existent headers
12694 # can be detected and how.
12695 cat >conftest.$ac_ext <<_ACEOF
12696/* confdefs.h. */
12697_ACEOF
12698cat confdefs.h >>conftest.$ac_ext
12699cat >>conftest.$ac_ext <<_ACEOF
12700/* end confdefs.h. */
12701#include <ac_nonexistent.h>
12702_ACEOF
12703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12705 ac_status=$?
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } >/dev/null; then
12711 if test -s conftest.err; then
12712 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12714 else
12715 ac_cpp_err=
12716 fi
12717else
12718 ac_cpp_err=yes
12719fi
12720if test -z "$ac_cpp_err"; then
12721 # Broken: success on invalid input.
12722continue
12723else
12724 echo "$as_me: failed program was:" >&5
12725sed 's/^/| /' conftest.$ac_ext >&5
12726
12727 # Passes both tests.
12728ac_preproc_ok=:
12729break
12730fi
12731rm -f conftest.err conftest.$ac_ext
12732
12733done
12734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12735rm -f conftest.err conftest.$ac_ext
12736if $ac_preproc_ok; then
12737 :
12738else
12739 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12740See \`config.log' for more details." >&5
12741echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12742See \`config.log' for more details." >&2;}
12743 { (exit 1); exit 1; }; }
12744fi
12745
12746ac_ext=c
12747ac_cpp='$CPP $CPPFLAGS'
12748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12750ac_compiler_gnu=$ac_cv_c_compiler_gnu
12751
12752
12753echo "$as_me:$LINENO: checking for egrep" >&5
12754echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12755if test "${ac_cv_prog_egrep+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757else
12758 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12759 then ac_cv_prog_egrep='grep -E'
12760 else ac_cv_prog_egrep='egrep'
12761 fi
12762fi
12763echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12764echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12765 EGREP=$ac_cv_prog_egrep
12766
12767
12768if test $ac_cv_c_compiler_gnu = yes; then
12769 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12770echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12771if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773else
12774 ac_pattern="Autoconf.*'x'"
12775 cat >conftest.$ac_ext <<_ACEOF
12776/* confdefs.h. */
12777_ACEOF
12778cat confdefs.h >>conftest.$ac_ext
12779cat >>conftest.$ac_ext <<_ACEOF
12780/* end confdefs.h. */
12781#include <sgtty.h>
12782Autoconf TIOCGETP
12783_ACEOF
12784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12785 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12786 ac_cv_prog_gcc_traditional=yes
12787else
12788 ac_cv_prog_gcc_traditional=no
12789fi
12790rm -f conftest*
12791
12792
12793 if test $ac_cv_prog_gcc_traditional = no; then
12794 cat >conftest.$ac_ext <<_ACEOF
12795/* confdefs.h. */
12796_ACEOF
12797cat confdefs.h >>conftest.$ac_ext
12798cat >>conftest.$ac_ext <<_ACEOF
12799/* end confdefs.h. */
12800#include <termio.h>
12801Autoconf TCGETA
12802_ACEOF
12803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12804 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12805 ac_cv_prog_gcc_traditional=yes
12806fi
12807rm -f conftest*
12808
12809 fi
12810fi
12811echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12812echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12813 if test $ac_cv_prog_gcc_traditional = yes; then
12814 CC="$CC -traditional"
12815 fi
12816fi
12817
12818
12819
12820
12821ac_ext=cc
12822ac_cpp='$CXXCPP $CPPFLAGS'
12823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12826
12827
12828CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12829
12830
3006edc0 12831
6dcfc289 12832 ac_ext=cc
a848cd7e
SC
12833ac_cpp='$CXXCPP $CPPFLAGS'
12834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12837if test -n "$ac_tool_prefix"; then
12838 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12839 do
12840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12841set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12842echo "$as_me:$LINENO: checking for $ac_word" >&5
12843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12844if test "${ac_cv_prog_CXX+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846else
12847 if test -n "$CXX"; then
12848 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12849else
12850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851for as_dir in $PATH
12852do
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12857 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12860 fi
12861done
12862done
12863
12864fi
12865fi
12866CXX=$ac_cv_prog_CXX
12867if test -n "$CXX"; then
12868 echo "$as_me:$LINENO: result: $CXX" >&5
12869echo "${ECHO_T}$CXX" >&6
12870else
12871 echo "$as_me:$LINENO: result: no" >&5
12872echo "${ECHO_T}no" >&6
12873fi
12874
12875 test -n "$CXX" && break
12876 done
12877fi
12878if test -z "$CXX"; then
12879 ac_ct_CXX=$CXX
12880 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12881do
12882 # Extract the first word of "$ac_prog", so it can be a program name with args.
12883set dummy $ac_prog; ac_word=$2
12884echo "$as_me:$LINENO: checking for $ac_word" >&5
12885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12886if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12888else
12889 if test -n "$ac_ct_CXX"; then
12890 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12891else
12892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893for as_dir in $PATH
12894do
12895 IFS=$as_save_IFS
12896 test -z "$as_dir" && as_dir=.
12897 for ac_exec_ext in '' $ac_executable_extensions; do
12898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12899 ac_cv_prog_ac_ct_CXX="$ac_prog"
12900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12901 break 2
12902 fi
12903done
12904done
12905
12906fi
12907fi
12908ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12909if test -n "$ac_ct_CXX"; then
12910 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12911echo "${ECHO_T}$ac_ct_CXX" >&6
12912else
12913 echo "$as_me:$LINENO: result: no" >&5
12914echo "${ECHO_T}no" >&6
12915fi
12916
12917 test -n "$ac_ct_CXX" && break
12918done
12919test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12920
12921 CXX=$ac_ct_CXX
12922fi
12923
12924
12925# Provide some information about the compiler.
12926echo "$as_me:$LINENO:" \
12927 "checking for C++ compiler version" >&5
12928ac_compiler=`set X $ac_compile; echo $2`
12929{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12930 (eval $ac_compiler --version </dev/null >&5) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }
12934{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12935 (eval $ac_compiler -v </dev/null >&5) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }
12939{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12940 (eval $ac_compiler -V </dev/null >&5) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }
12944
12945echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12946echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12947if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949else
12950 cat >conftest.$ac_ext <<_ACEOF
12951/* confdefs.h. */
12952_ACEOF
12953cat confdefs.h >>conftest.$ac_ext
12954cat >>conftest.$ac_ext <<_ACEOF
12955/* end confdefs.h. */
12956
12957int
12958main ()
12959{
12960#ifndef __GNUC__
12961 choke me
12962#endif
12963
12964 ;
12965 return 0;
12966}
12967_ACEOF
12968rm -f conftest.$ac_objext
12969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12970 (eval $ac_compile) 2>conftest.er1
a848cd7e 12971 ac_status=$?
ac1cb8d3
VS
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
a848cd7e
SC
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
0093c2fc 12977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_compiler_gnu=yes
12990else
12991 echo "$as_me: failed program was:" >&5
12992sed 's/^/| /' conftest.$ac_ext >&5
12993
12994ac_compiler_gnu=no
12995fi
ac1cb8d3 12996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12997ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12998
12999fi
13000echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13001echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13002GXX=`test $ac_compiler_gnu = yes && echo yes`
13003ac_test_CXXFLAGS=${CXXFLAGS+set}
13004ac_save_CXXFLAGS=$CXXFLAGS
13005CXXFLAGS="-g"
13006echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13007echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13008if test "${ac_cv_prog_cxx_g+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010else
13011 cat >conftest.$ac_ext <<_ACEOF
13012/* confdefs.h. */
13013_ACEOF
13014cat confdefs.h >>conftest.$ac_ext
13015cat >>conftest.$ac_ext <<_ACEOF
13016/* end confdefs.h. */
13017
13018int
13019main ()
13020{
13021
13022 ;
13023 return 0;
13024}
13025_ACEOF
13026rm -f conftest.$ac_objext
13027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13028 (eval $ac_compile) 2>conftest.er1
a848cd7e 13029 ac_status=$?
ac1cb8d3
VS
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
a848cd7e
SC
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
0093c2fc 13035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 ac_cv_prog_cxx_g=yes
13048else
13049 echo "$as_me: failed program was:" >&5
13050sed 's/^/| /' conftest.$ac_ext >&5
13051
13052ac_cv_prog_cxx_g=no
13053fi
ac1cb8d3 13054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13055fi
13056echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13057echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13058if test "$ac_test_CXXFLAGS" = set; then
13059 CXXFLAGS=$ac_save_CXXFLAGS
13060elif test $ac_cv_prog_cxx_g = yes; then
13061 if test "$GXX" = yes; then
1c14217d 13062 CXXFLAGS="-g -O2"
a848cd7e 13063 else
1c14217d 13064 CXXFLAGS="-g"
a848cd7e
SC
13065 fi
13066else
13067 if test "$GXX" = yes; then
13068 CXXFLAGS="-O2"
13069 else
13070 CXXFLAGS=
13071 fi
13072fi
13073for ac_declaration in \
ac1cb8d3 13074 '' \
a848cd7e
SC
13075 'extern "C" void std::exit (int) throw (); using std::exit;' \
13076 'extern "C" void std::exit (int); using std::exit;' \
13077 'extern "C" void exit (int) throw ();' \
13078 'extern "C" void exit (int);' \
13079 'void exit (int);'
13080do
13081 cat >conftest.$ac_ext <<_ACEOF
13082/* confdefs.h. */
13083_ACEOF
13084cat confdefs.h >>conftest.$ac_ext
13085cat >>conftest.$ac_ext <<_ACEOF
13086/* end confdefs.h. */
de59c161 13087$ac_declaration
ac1cb8d3 13088#include <stdlib.h>
a848cd7e
SC
13089int
13090main ()
13091{
13092exit (42);
13093 ;
13094 return 0;
13095}
13096_ACEOF
13097rm -f conftest.$ac_objext
13098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13099 (eval $ac_compile) 2>conftest.er1
a848cd7e 13100 ac_status=$?
ac1cb8d3
VS
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
a848cd7e
SC
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
0093c2fc 13106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 :
13119else
13120 echo "$as_me: failed program was:" >&5
13121sed 's/^/| /' conftest.$ac_ext >&5
13122
13123continue
13124fi
ac1cb8d3 13125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13126 cat >conftest.$ac_ext <<_ACEOF
13127/* confdefs.h. */
13128_ACEOF
13129cat confdefs.h >>conftest.$ac_ext
13130cat >>conftest.$ac_ext <<_ACEOF
13131/* end confdefs.h. */
13132$ac_declaration
13133int
13134main ()
13135{
13136exit (42);
13137 ;
13138 return 0;
13139}
13140_ACEOF
13141rm -f conftest.$ac_objext
13142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13143 (eval $ac_compile) 2>conftest.er1
a848cd7e 13144 ac_status=$?
ac1cb8d3
VS
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
a848cd7e
SC
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } &&
0093c2fc 13150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 break
13163else
13164 echo "$as_me: failed program was:" >&5
13165sed 's/^/| /' conftest.$ac_ext >&5
13166
13167fi
ac1cb8d3 13168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13169done
13170rm -f conftest*
13171if test -n "$ac_declaration"; then
13172 echo '#ifdef __cplusplus' >>confdefs.h
13173 echo $ac_declaration >>confdefs.h
13174 echo '#endif' >>confdefs.h
13175fi
13176
13177ac_ext=cc
13178ac_cpp='$CXXCPP $CPPFLAGS'
13179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13182
ab0ad5f1
VZ
13183
13184
13185 ac_ext=cc
13186ac_cpp='$CXXCPP $CPPFLAGS'
13187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13190
13191 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13192echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13193if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195else
13196 cat >conftest.$ac_ext <<_ACEOF
13197/* confdefs.h. */
13198_ACEOF
13199cat confdefs.h >>conftest.$ac_ext
13200cat >>conftest.$ac_ext <<_ACEOF
13201/* end confdefs.h. */
13202
13203int
13204main ()
13205{
13206
13207 #ifndef __INTEL_COMPILER
13208 choke me
13209 #endif
13210
13211 ;
13212 return 0;
13213}
13214_ACEOF
13215rm -f conftest.$ac_objext
13216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217 (eval $ac_compile) 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
0093c2fc 13224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; } &&
13230 { ac_try='test -s conftest.$ac_objext'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13233 ac_status=$?
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }; then
13236 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13237else
13238 echo "$as_me: failed program was:" >&5
13239sed 's/^/| /' conftest.$ac_ext >&5
13240
13241bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13242
13243fi
13244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13245
13246
13247fi
13248echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13249echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13250 ac_ext=cc
13251ac_cpp='$CXXCPP $CPPFLAGS'
13252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13255
13256 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13257 :; INTELCXX=yes
13258 else
13259 :;
13260 fi
13261
13262
3006edc0
VZ
13263 if test "x$GCXX" != "xyes"; then
13264 if test "xCXX" = "xC"; then
13265 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13266echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13267if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13269else
13270 cat >conftest.$ac_ext <<_ACEOF
13271/* confdefs.h. */
13272_ACEOF
13273cat confdefs.h >>conftest.$ac_ext
13274cat >>conftest.$ac_ext <<_ACEOF
13275/* end confdefs.h. */
13276
13277int
13278main ()
13279{
13280
13281 ;
13282 return 0;
13283}
13284_ACEOF
13285rm -f conftest.$ac_objext conftest.$ac_ext.o
13286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287 (eval $ac_compile) 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; then
13291 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13292 case $ac_file in
13293 conftest.$ac_ext.o)
0093c2fc 13294 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13295 ;;
13296 *)
13297 ;;
13298 esac
13299done
13300else
13301 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13302See \`config.log' for more details." >&5
13303echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13304See \`config.log' for more details." >&2;}
13305 { (exit 1); exit 1; }; }
13306
13307fi
13308
13309rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13310
13311fi
0093c2fc
VZ
13312echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13313echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13314if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13315 if test "cxx" = "c"; then
0093c2fc 13316 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13317 fi
13318 if test "cxx" = "cxx"; then
0093c2fc 13319 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13320 fi
13321fi
13322
0093c2fc 13323 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13324 unset ac_cv_prog_cc_g
13325 ac_test_CFLAGS=${CFLAGS+set}
13326ac_save_CFLAGS=$CFLAGS
13327CFLAGS="-g"
13328echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13329echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13330if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332else
13333 cat >conftest.$ac_ext <<_ACEOF
13334/* confdefs.h. */
13335_ACEOF
13336cat confdefs.h >>conftest.$ac_ext
13337cat >>conftest.$ac_ext <<_ACEOF
13338/* end confdefs.h. */
13339
13340int
13341main ()
13342{
13343
13344 ;
13345 return 0;
13346}
13347_ACEOF
13348rm -f conftest.$ac_objext
13349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350 (eval $ac_compile) 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
0093c2fc 13357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
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); }; } &&
13363 { ac_try='test -s conftest.$ac_objext'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
3006edc0 13369 ac_cv_prog_cc_g=yes
480ccd21
DE
13370else
13371 echo "$as_me: failed program was:" >&5
13372sed 's/^/| /' conftest.$ac_ext >&5
13373
3006edc0 13374ac_cv_prog_cc_g=no
480ccd21
DE
13375fi
13376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13377fi
3006edc0
VZ
13378echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13379echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13380if test "$ac_test_CFLAGS" = set; then
13381 CFLAGS=$ac_save_CFLAGS
13382elif test $ac_cv_prog_cc_g = yes; then
13383 if test "$GCC" = yes; then
13384 CFLAGS="-g -O2"
480ccd21 13385 else
3006edc0 13386 CFLAGS="-g"
480ccd21
DE
13387 fi
13388else
3006edc0
VZ
13389 if test "$GCC" = yes; then
13390 CFLAGS="-O2"
480ccd21 13391 else
3006edc0 13392 CFLAGS=
480ccd21
DE
13393 fi
13394fi
3006edc0 13395 fi
ab0ad5f1 13396 fi
3006edc0
VZ
13397
13398 case `uname -s` in
13399 AIX*)
13400 ac_ext=cc
13401ac_cpp='$CXXCPP $CPPFLAGS'
13402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13405
13406echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13407echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13408if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13410else
13411 cat >conftest.$ac_ext <<_ACEOF
13412/* confdefs.h. */
13413_ACEOF
13414cat confdefs.h >>conftest.$ac_ext
13415cat >>conftest.$ac_ext <<_ACEOF
13416/* end confdefs.h. */
13417
13418int
13419main ()
13420{
13421#ifndef __xlC__
13422 choke me
13423#endif
13424
13425 ;
13426 return 0;
13427}
13428_ACEOF
13429rm -f conftest.$ac_objext
13430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431 (eval $ac_compile) 2>conftest.er1
13432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
0093c2fc 13438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
0093c2fc 13450 bakefile_compiler_xlc=yes
3006edc0
VZ
13451else
13452 echo "$as_me: failed program was:" >&5
13453sed 's/^/| /' conftest.$ac_ext >&5
13454
0093c2fc 13455bakefile_compiler_xlc=no
3006edc0
VZ
13456fi
13457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13458 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13459
13460fi
0093c2fc
VZ
13461echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13462echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13463
0093c2fc 13464XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13465ac_ext=cc
13466ac_cpp='$CXXCPP $CPPFLAGS'
13467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13470
13471
13472 ;;
13473
13474 Darwin)
13475 ac_ext=cc
95986553
DE
13476ac_cpp='$CXXCPP $CPPFLAGS'
13477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13480
13481echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13482echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13483if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485else
13486 cat >conftest.$ac_ext <<_ACEOF
13487/* confdefs.h. */
13488_ACEOF
13489cat confdefs.h >>conftest.$ac_ext
13490cat >>conftest.$ac_ext <<_ACEOF
13491/* end confdefs.h. */
13492
13493int
13494main ()
13495{
13496#ifndef __MWERKS__
13497 choke me
13498#endif
13499
13500 ;
13501 return 0;
13502}
13503_ACEOF
13504rm -f conftest.$ac_objext
13505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506 (eval $ac_compile) 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
0093c2fc 13513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13516 ac_status=$?
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; } &&
13519 { ac_try='test -s conftest.$ac_objext'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 bakefile_compiler_mwerks=yes
13526else
13527 echo "$as_me: failed program was:" >&5
13528sed 's/^/| /' conftest.$ac_ext >&5
13529
13530bakefile_compiler_mwerks=no
13531fi
13532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13533 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13534
13535fi
13536echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13537echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13538
0e6fa1d9 13539MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13540ac_ext=cc
13541ac_cpp='$CXXCPP $CPPFLAGS'
13542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13545
13546
3006edc0 13547 ac_ext=cc
9273ffba
DE
13548ac_cpp='$CXXCPP $CPPFLAGS'
13549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13552
13553echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13554echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13555if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13557else
13558 cat >conftest.$ac_ext <<_ACEOF
13559/* confdefs.h. */
13560_ACEOF
13561cat confdefs.h >>conftest.$ac_ext
13562cat >>conftest.$ac_ext <<_ACEOF
13563/* end confdefs.h. */
13564
13565int
13566main ()
13567{
13568#ifndef __xlC__
13569 choke me
13570#endif
13571
13572 ;
13573 return 0;
13574}
13575_ACEOF
13576rm -f conftest.$ac_objext
13577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578 (eval $ac_compile) 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
0093c2fc 13585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest.$ac_objext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
0093c2fc 13597 bakefile_compiler_xlc=yes
9273ffba
DE
13598else
13599 echo "$as_me: failed program was:" >&5
13600sed 's/^/| /' conftest.$ac_ext >&5
13601
0093c2fc 13602bakefile_compiler_xlc=no
9273ffba
DE
13603fi
13604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13605 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13606
13607fi
0093c2fc
VZ
13608echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13609echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13610
0093c2fc 13611XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13612ac_ext=cc
13613ac_cpp='$CXXCPP $CPPFLAGS'
13614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13617
13618
3006edc0
VZ
13619 ;;
13620
13621 IRIX*)
95986553 13622
6dcfc289 13623
0ad5d837
VZ
13624 ac_ext=cc
13625ac_cpp='$CXXCPP $CPPFLAGS'
13626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13629
13630 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13631echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13632if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13634else
13635 cat >conftest.$ac_ext <<_ACEOF
13636/* confdefs.h. */
13637_ACEOF
13638cat confdefs.h >>conftest.$ac_ext
13639cat >>conftest.$ac_ext <<_ACEOF
13640/* end confdefs.h. */
13641
13642int
13643main ()
13644{
13645
13646 #ifndef _SGI_COMPILER_VERSION
13647 choke me
13648 #endif
13649
13650 ;
13651 return 0;
13652}
13653_ACEOF
13654rm -f conftest.$ac_objext
13655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
0093c2fc 13663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13666 ac_status=$?
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; } &&
13669 { ac_try='test -s conftest.$ac_objext'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
13675 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13676else
13677 echo "$as_me: failed program was:" >&5
13678sed 's/^/| /' conftest.$ac_ext >&5
13679
13680bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13681
13682fi
13683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684
13685
13686fi
13687echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13688echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13689 ac_ext=cc
13690ac_cpp='$CXXCPP $CPPFLAGS'
13691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13694
13695 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13696 :; SGICXX=yes
13697 else
13698 :;
13699 fi
13700
13701
3006edc0
VZ
13702 ;;
13703
0093c2fc 13704 HP-UX*)
3006edc0
VZ
13705
13706
13707 ac_ext=cc
13708ac_cpp='$CXXCPP $CPPFLAGS'
13709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13712
0093c2fc
VZ
13713 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13714echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13715if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13717else
13718 cat >conftest.$ac_ext <<_ACEOF
13719/* confdefs.h. */
13720_ACEOF
13721cat confdefs.h >>conftest.$ac_ext
13722cat >>conftest.$ac_ext <<_ACEOF
13723/* end confdefs.h. */
13724
13725int
13726main ()
13727{
13728
0093c2fc 13729 #ifndef __HP_aCC
3006edc0
VZ
13730 choke me
13731 #endif
13732
13733 ;
13734 return 0;
13735}
13736_ACEOF
13737rm -f conftest.$ac_objext
13738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739 (eval $ac_compile) 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
0093c2fc 13746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
0093c2fc 13758 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
13759else
13760 echo "$as_me: failed program was:" >&5
13761sed 's/^/| /' conftest.$ac_ext >&5
13762
0093c2fc 13763bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
13764
13765fi
13766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13767
13768
13769fi
0093c2fc
VZ
13770echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13771echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
13772 ac_ext=cc
13773ac_cpp='$CXXCPP $CPPFLAGS'
13774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13777
0093c2fc
VZ
13778 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13779 :; HPCXX=yes
a1aa0349
VZ
13780 else
13781 :;
13782 fi
13783
13784
13785 ;;
13786
0093c2fc 13787 OSF1)
a1aa0349
VZ
13788
13789
13790 ac_ext=cc
13791ac_cpp='$CXXCPP $CPPFLAGS'
13792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13795
0093c2fc
VZ
13796 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
13797echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
13798if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13800else
13801 cat >conftest.$ac_ext <<_ACEOF
13802/* confdefs.h. */
13803_ACEOF
13804cat confdefs.h >>conftest.$ac_ext
13805cat >>conftest.$ac_ext <<_ACEOF
13806/* end confdefs.h. */
13807
13808int
13809main ()
13810{
13811
0093c2fc 13812 #ifndef __DECCXX
a1aa0349
VZ
13813 choke me
13814 #endif
13815
13816 ;
13817 return 0;
13818}
13819_ACEOF
13820rm -f conftest.$ac_objext
13821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822 (eval $ac_compile) 2>conftest.er1
13823 ac_status=$?
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
0093c2fc 13829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest.$ac_objext'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
0093c2fc 13841 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
13842else
13843 echo "$as_me: failed program was:" >&5
13844sed 's/^/| /' conftest.$ac_ext >&5
13845
0093c2fc 13846bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
13847
13848fi
13849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13850
13851
13852fi
0093c2fc
VZ
13853echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
13854echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
13855 ac_ext=cc
13856ac_cpp='$CXXCPP $CPPFLAGS'
13857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13860
0093c2fc
VZ
13861 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
13862 :; COMPAQCXX=yes
13863 else
13864 :;
13865 fi
13866
13867
13868 ;;
13869
13870 SunOS)
13871
13872
13873 ac_ext=cc
13874ac_cpp='$CXXCPP $CPPFLAGS'
13875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13878
13879 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13880echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13881if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883else
13884 cat >conftest.$ac_ext <<_ACEOF
13885/* confdefs.h. */
13886_ACEOF
13887cat confdefs.h >>conftest.$ac_ext
13888cat >>conftest.$ac_ext <<_ACEOF
13889/* end confdefs.h. */
13890
13891int
13892main ()
13893{
13894
13895 #ifndef __SUNPRO_CC
13896 choke me
13897 #endif
13898
13899 ;
13900 return 0;
13901}
13902_ACEOF
13903rm -f conftest.$ac_objext
13904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13905 (eval $ac_compile) 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } &&
13912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest.$ac_objext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13925else
13926 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929bakefile_cv_cxx_compiler___SUNPRO_CC=no
13930
13931fi
13932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13933
13934
13935fi
13936echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13937echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13938 ac_ext=cc
13939ac_cpp='$CXXCPP $CPPFLAGS'
13940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13943
13944 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13945 :; SUNCXX=yes
3006edc0
VZ
13946 else
13947 :;
ab0ad5f1 13948 fi
a9e5b1f0
MW
13949
13950
3006edc0
VZ
13951 ;;
13952 esac
13953 fi
13954
13955
13956
a848cd7e
SC
13957ac_ext=c
13958ac_cpp='$CPP $CPPFLAGS'
13959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962
13963
a848cd7e
SC
13964if test -n "$ac_tool_prefix"; then
13965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13966set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13967echo "$as_me:$LINENO: checking for $ac_word" >&5
13968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13969if test "${ac_cv_prog_RANLIB+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971else
13972 if test -n "$RANLIB"; then
13973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13974else
13975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976for as_dir in $PATH
13977do
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
13981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13985 fi
13986done
13987done
13988
13989fi
13990fi
13991RANLIB=$ac_cv_prog_RANLIB
13992if test -n "$RANLIB"; then
13993 echo "$as_me:$LINENO: result: $RANLIB" >&5
13994echo "${ECHO_T}$RANLIB" >&6
13995else
13996 echo "$as_me:$LINENO: result: no" >&5
13997echo "${ECHO_T}no" >&6
13998fi
13999
14000fi
14001if test -z "$ac_cv_prog_RANLIB"; then
14002 ac_ct_RANLIB=$RANLIB
14003 # Extract the first word of "ranlib", so it can be a program name with args.
14004set dummy ranlib; ac_word=$2
14005echo "$as_me:$LINENO: checking for $ac_word" >&5
14006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14007if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009else
14010 if test -n "$ac_ct_RANLIB"; then
14011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14012else
14013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014for as_dir in $PATH
14015do
14016 IFS=$as_save_IFS
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14020 ac_cv_prog_ac_ct_RANLIB="ranlib"
14021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14022 break 2
14023 fi
14024done
14025done
14026
14027 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14028fi
14029fi
14030ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14031if test -n "$ac_ct_RANLIB"; then
14032 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14033echo "${ECHO_T}$ac_ct_RANLIB" >&6
14034else
14035 echo "$as_me:$LINENO: result: no" >&5
14036echo "${ECHO_T}no" >&6
14037fi
14038
14039 RANLIB=$ac_ct_RANLIB
14040else
14041 RANLIB="$ac_cv_prog_RANLIB"
14042fi
14043
14044
8c80d384
DE
14045if test -n "$ac_tool_prefix"; then
14046 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14047set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14048echo "$as_me:$LINENO: checking for $ac_word" >&5
14049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14050if test "${ac_cv_prog_AR+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052else
14053 if test -n "$AR"; then
14054 ac_cv_prog_AR="$AR" # Let the user override the test.
14055else
14056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057for as_dir in $PATH
14058do
14059 IFS=$as_save_IFS
14060 test -z "$as_dir" && as_dir=.
14061 for ac_exec_ext in '' $ac_executable_extensions; do
14062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14063 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14065 break 2
14066 fi
14067done
14068done
14069
14070fi
14071fi
14072AR=$ac_cv_prog_AR
14073if test -n "$AR"; then
14074 echo "$as_me:$LINENO: result: $AR" >&5
14075echo "${ECHO_T}$AR" >&6
14076else
14077 echo "$as_me:$LINENO: result: no" >&5
14078echo "${ECHO_T}no" >&6
14079fi
14080
8c80d384
DE
14081fi
14082if test -z "$ac_cv_prog_AR"; then
14083 ac_ct_AR=$AR
14084 # Extract the first word of "ar", so it can be a program name with args.
14085set dummy ar; ac_word=$2
14086echo "$as_me:$LINENO: checking for $ac_word" >&5
14087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14088if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090else
14091 if test -n "$ac_ct_AR"; then
14092 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14093else
14094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095for as_dir in $PATH
14096do
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_ac_ct_AR="ar"
14102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 break 2
14104 fi
14105done
14106done
14107
14108fi
14109fi
14110ac_ct_AR=$ac_cv_prog_ac_ct_AR
14111if test -n "$ac_ct_AR"; then
14112 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14113echo "${ECHO_T}$ac_ct_AR" >&6
14114else
14115 echo "$as_me:$LINENO: result: no" >&5
14116echo "${ECHO_T}no" >&6
14117fi
14118
14119 AR=$ac_ct_AR
14120else
14121 AR="$ac_cv_prog_AR"
14122fi
14123
a848cd7e 14124if test "x$AR" = "x" ; then
77ffb593
JS
14125 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14126echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14127 { (exit 1); exit 1; }; }
14128fi
14129
14130# Find a good install program. We prefer a C program (faster),
14131# so one script is as good as another. But avoid the broken or
14132# incompatible versions:
14133# SysV /etc/install, /usr/sbin/install
14134# SunOS /usr/etc/install
14135# IRIX /sbin/install
14136# AIX /bin/install
14137# AmigaOS /C/install, which installs bootblocks on floppy discs
14138# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14139# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14140# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14141# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14142# ./install, which can be erroneously created by make from ./install.sh.
14143echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14144echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14145if test -z "$INSTALL"; then
14146if test "${ac_cv_path_install+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148else
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150for as_dir in $PATH
14151do
14152 IFS=$as_save_IFS
14153 test -z "$as_dir" && as_dir=.
14154 # Account for people who put trailing slashes in PATH elements.
14155case $as_dir/ in
14156 ./ | .// | /cC/* | \
14157 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14158 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14159 /usr/ucb/* ) ;;
14160 *)
14161 # OSF1 and SCO ODT 3.0 have their own names for install.
14162 # Don't use installbsd from OSF since it installs stuff as root
14163 # by default.
14164 for ac_prog in ginstall scoinst install; do
14165 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14166 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14167 if test $ac_prog = install &&
14168 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14169 # AIX install. It has an incompatible calling convention.
14170 :
14171 elif test $ac_prog = install &&
14172 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14173 # program-specific install script used by HP pwplus--don't use.
14174 :
14175 else
14176 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14177 break 3
14178 fi
14179 fi
a848cd7e
SC
14180 done
14181 done
14182 ;;
14183esac
14184done
14185
14186
14187fi
14188 if test "${ac_cv_path_install+set}" = set; then
14189 INSTALL=$ac_cv_path_install
14190 else
14191 # As a last resort, use the slow shell script. We don't cache a
14192 # path for INSTALL within a source directory, because that will
14193 # break other packages using the cache if that directory is
14194 # removed, or if the path is relative.
14195 INSTALL=$ac_install_sh
14196 fi
14197fi
14198echo "$as_me:$LINENO: result: $INSTALL" >&5
14199echo "${ECHO_T}$INSTALL" >&6
14200
14201# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14202# It thinks the first close brace ends the variable substitution.
14203test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14204
14205test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14206
14207test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14208
14209
14210case ${INSTALL} in
14211 /* ) # Absolute
14212 ;;
14213 ?:* ) # Drive letter, considered as absolute.
14214 ;;
14215 *)
14216 INSTALL=`pwd`/${INSTALL} ;;
14217esac
14218
a848cd7e
SC
14219
14220case "${host}" in
14221
cfda0ea8 14222 *-*-darwin* )
a848cd7e
SC
14223 INSTALL_PROGRAM="cp -fp"
14224 INSTALL_DATA="cp -fp"
14225 ;;
14226 *)
14227 ;;
14228esac
14229
8c80d384
DE
14230if test -n "$ac_tool_prefix"; then
14231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14232set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14233echo "$as_me:$LINENO: checking for $ac_word" >&5
14234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14235if test "${ac_cv_prog_STRIP+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237else
14238 if test -n "$STRIP"; then
14239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14240else
14241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14242for as_dir in $PATH
14243do
14244 IFS=$as_save_IFS
14245 test -z "$as_dir" && as_dir=.
14246 for ac_exec_ext in '' $ac_executable_extensions; do
14247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14250 break 2
14251 fi
14252done
14253done
14254
a848cd7e
SC
14255fi
14256fi
14257STRIP=$ac_cv_prog_STRIP
14258if test -n "$STRIP"; then
14259 echo "$as_me:$LINENO: result: $STRIP" >&5
14260echo "${ECHO_T}$STRIP" >&6
14261else
14262 echo "$as_me:$LINENO: result: no" >&5
14263echo "${ECHO_T}no" >&6
14264fi
14265
8c80d384
DE
14266fi
14267if test -z "$ac_cv_prog_STRIP"; then
14268 ac_ct_STRIP=$STRIP
14269 # Extract the first word of "strip", so it can be a program name with args.
14270set dummy strip; ac_word=$2
14271echo "$as_me:$LINENO: checking for $ac_word" >&5
14272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14273if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275else
14276 if test -n "$ac_ct_STRIP"; then
14277 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14278else
14279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280for as_dir in $PATH
14281do
14282 IFS=$as_save_IFS
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
14285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14286 ac_cv_prog_ac_ct_STRIP="strip"
14287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14288 break 2
14289 fi
14290done
14291done
14292
14293 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14294fi
14295fi
14296ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14297if test -n "$ac_ct_STRIP"; then
14298 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14299echo "${ECHO_T}$ac_ct_STRIP" >&6
14300else
14301 echo "$as_me:$LINENO: result: no" >&5
14302echo "${ECHO_T}no" >&6
14303fi
14304
14305 STRIP=$ac_ct_STRIP
14306else
14307 STRIP="$ac_cv_prog_STRIP"
14308fi
14309
14310
14311if test "$wxUSE_WINE" = "yes"; then
14312 if test -n "$ac_tool_prefix"; then
14313 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14314set dummy ${ac_tool_prefix}wrc; ac_word=$2
14315echo "$as_me:$LINENO: checking for $ac_word" >&5
14316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14317if test "${ac_cv_prog_RESCOMP+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14319else
14320 if test -n "$RESCOMP"; then
14321 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14322else
14323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324for as_dir in $PATH
14325do
14326 IFS=$as_save_IFS
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
14329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14330 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
14331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14332 break 2
14333 fi
14334done
14335done
14336
14337fi
14338fi
14339RESCOMP=$ac_cv_prog_RESCOMP
14340if test -n "$RESCOMP"; then
14341 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14342echo "${ECHO_T}$RESCOMP" >&6
14343else
14344 echo "$as_me:$LINENO: result: no" >&5
14345echo "${ECHO_T}no" >&6
14346fi
14347
14348fi
14349if test -z "$ac_cv_prog_RESCOMP"; then
14350 ac_ct_RESCOMP=$RESCOMP
14351 # Extract the first word of "wrc", so it can be a program name with args.
14352set dummy wrc; ac_word=$2
14353echo "$as_me:$LINENO: checking for $ac_word" >&5
14354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14355if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357else
14358 if test -n "$ac_ct_RESCOMP"; then
14359 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14360else
14361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362for as_dir in $PATH
14363do
14364 IFS=$as_save_IFS
14365 test -z "$as_dir" && as_dir=.
14366 for ac_exec_ext in '' $ac_executable_extensions; do
14367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14368 ac_cv_prog_ac_ct_RESCOMP="wrc"
14369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14370 break 2
14371 fi
14372done
14373done
14374
14375fi
14376fi
14377ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14378if test -n "$ac_ct_RESCOMP"; then
14379 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14380echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14381else
14382 echo "$as_me:$LINENO: result: no" >&5
14383echo "${ECHO_T}no" >&6
14384fi
14385
14386 RESCOMP=$ac_ct_RESCOMP
14387else
14388 RESCOMP="$ac_cv_prog_RESCOMP"
14389fi
14390
14391else
14392 case "${host}" in
14393 *-*-cygwin* | *-*-mingw32* )
14394 if test -n "$ac_tool_prefix"; then
14395 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14396set dummy ${ac_tool_prefix}windres; ac_word=$2
14397echo "$as_me:$LINENO: checking for $ac_word" >&5
14398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14399if test "${ac_cv_prog_RESCOMP+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401else
14402 if test -n "$RESCOMP"; then
14403 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14404else
14405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406for as_dir in $PATH
14407do
14408 IFS=$as_save_IFS
14409 test -z "$as_dir" && as_dir=.
14410 for ac_exec_ext in '' $ac_executable_extensions; do
14411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14412 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
14413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14414 break 2
14415 fi
14416done
14417done
14418
14419fi
14420fi
14421RESCOMP=$ac_cv_prog_RESCOMP
14422if test -n "$RESCOMP"; then
14423 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14424echo "${ECHO_T}$RESCOMP" >&6
14425else
14426 echo "$as_me:$LINENO: result: no" >&5
14427echo "${ECHO_T}no" >&6
14428fi
14429
14430fi
14431if test -z "$ac_cv_prog_RESCOMP"; then
14432 ac_ct_RESCOMP=$RESCOMP
14433 # Extract the first word of "windres", so it can be a program name with args.
14434set dummy windres; ac_word=$2
14435echo "$as_me:$LINENO: checking for $ac_word" >&5
14436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14437if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14439else
14440 if test -n "$ac_ct_RESCOMP"; then
14441 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14442else
14443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14444for as_dir in $PATH
14445do
14446 IFS=$as_save_IFS
14447 test -z "$as_dir" && as_dir=.
14448 for ac_exec_ext in '' $ac_executable_extensions; do
14449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14450 ac_cv_prog_ac_ct_RESCOMP="windres"
14451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14452 break 2
14453 fi
14454done
14455done
14456
14457fi
14458fi
14459ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14460if test -n "$ac_ct_RESCOMP"; then
14461 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14462echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14463else
14464 echo "$as_me:$LINENO: result: no" >&5
14465echo "${ECHO_T}no" >&6
14466fi
14467
14468 RESCOMP=$ac_ct_RESCOMP
14469else
14470 RESCOMP="$ac_cv_prog_RESCOMP"
14471fi
14472
14473 if test -n "$ac_tool_prefix"; then
14474 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14475set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14476echo "$as_me:$LINENO: checking for $ac_word" >&5
14477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14478if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480else
14481 if test -n "$DLLTOOL"; then
14482 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14483else
14484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14485for as_dir in $PATH
14486do
14487 IFS=$as_save_IFS
14488 test -z "$as_dir" && as_dir=.
14489 for ac_exec_ext in '' $ac_executable_extensions; do
14490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14491 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14493 break 2
14494 fi
14495done
14496done
14497
14498fi
14499fi
14500DLLTOOL=$ac_cv_prog_DLLTOOL
14501if test -n "$DLLTOOL"; then
14502 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14503echo "${ECHO_T}$DLLTOOL" >&6
14504else
14505 echo "$as_me:$LINENO: result: no" >&5
14506echo "${ECHO_T}no" >&6
14507fi
14508
14509fi
14510if test -z "$ac_cv_prog_DLLTOOL"; then
14511 ac_ct_DLLTOOL=$DLLTOOL
14512 # Extract the first word of "dlltool", so it can be a program name with args.
14513set dummy dlltool; ac_word=$2
14514echo "$as_me:$LINENO: checking for $ac_word" >&5
14515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14516if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518else
14519 if test -n "$ac_ct_DLLTOOL"; then
14520 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14521else
14522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14523for as_dir in $PATH
14524do
14525 IFS=$as_save_IFS
14526 test -z "$as_dir" && as_dir=.
14527 for ac_exec_ext in '' $ac_executable_extensions; do
14528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14529 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14531 break 2
14532 fi
14533done
14534done
14535
14536fi
14537fi
14538ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14539if test -n "$ac_ct_DLLTOOL"; then
14540 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14541echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14542else
14543 echo "$as_me:$LINENO: result: no" >&5
14544echo "${ECHO_T}no" >&6
14545fi
14546
14547 DLLTOOL=$ac_ct_DLLTOOL
14548else
14549 DLLTOOL="$ac_cv_prog_DLLTOOL"
14550fi
14551
14552 ;;
14553 esac
14554fi
a848cd7e
SC
14555
14556echo "$as_me:$LINENO: checking if make is GNU make" >&5
14557echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14558if test "${wx_cv_prog_makeisgnu+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560else
14561
14562 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14563 egrep -s GNU > /dev/null); then
14564 wx_cv_prog_makeisgnu="yes"
14565 else
14566 wx_cv_prog_makeisgnu="no"
14567 fi
14568
14569fi
14570echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14571echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14572
14573if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14574 IF_GNU_MAKE=""
14575else
14576 IF_GNU_MAKE="#"
14577fi
14578
14579
14580
14581if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14582echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14583echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14584if test "${wx_cv_prog_makevpath+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586else
14587
14588cat - << EOF > confMake
14589check : file
14590 cp \$? \$@
14591 cp \$? final_file
14592EOF
14593
14594if test ! -d sub ; then
14595 mkdir sub
14596fi
14597echo dummy > sub/file
14598${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14599RESULT=$?
14600rm -f sub/file check final_file confMake
14601rmdir sub
14602if test "$RESULT" = 0; then
14603 wx_cv_prog_makevpath="yes"
14604else
14605 wx_cv_prog_makevpath="no"
14606fi
14607
14608fi
14609echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14610echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14611
14612if test "x$wx_cv_prog_makevpath" != "xyes"; then
14613{ { echo "$as_me:$LINENO: error:
14614You need a make-utility that is able to use the variable
14615VPATH correctly.
14616If your version of make does not support VPATH correctly,
14617please install GNU-make (possibly as gmake), and start
14618configure with the following command:
14619export MAKE=gmake; ./configure for sh-type shells
14620setenv MAKE gmake; ./configure for csh-type shells
14621Also please do remember to use gmake in this case every time
14622you are trying to compile.
14623" >&5
14624echo "$as_me: error:
14625You need a make-utility that is able to use the variable
14626VPATH correctly.
14627If your version of make does not support VPATH correctly,
14628please install GNU-make (possibly as gmake), and start
14629configure with the following command:
14630export MAKE=gmake; ./configure for sh-type shells
14631setenv MAKE gmake; ./configure for csh-type shells
14632Also please do remember to use gmake in this case every time
14633you are trying to compile.
14634" >&2;}
14635 { (exit 1); exit 1; }; }
14636fi fi
14637echo "$as_me:$LINENO: checking whether ln -s works" >&5
14638echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14639LN_S=$as_ln_s
14640if test "$LN_S" = "ln -s"; then
14641 echo "$as_me:$LINENO: result: yes" >&5
14642echo "${ECHO_T}yes" >&6
14643else
14644 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14645echo "${ECHO_T}no, using $LN_S" >&6
14646fi
14647
14648
bcaab0f9
MW
14649CP_PR='cp -pR'
14650for ac_prog in lndir
14651do
14652 # Extract the first word of "$ac_prog", so it can be a program name with args.
14653set dummy $ac_prog; ac_word=$2
14654echo "$as_me:$LINENO: checking for $ac_word" >&5
14655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14656if test "${ac_cv_prog_LNDIR+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14658else
14659 if test -n "$LNDIR"; then
14660 ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test.
14661else
14662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14663for as_dir in $PATH
14664do
14665 IFS=$as_save_IFS
14666 test -z "$as_dir" && as_dir=.
14667 for ac_exec_ext in '' $ac_executable_extensions; do
14668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14669 ac_cv_prog_LNDIR="$ac_prog"
14670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14671 break 2
14672 fi
14673done
14674done
14675
14676fi
14677fi
14678LNDIR=$ac_cv_prog_LNDIR
14679if test -n "$LNDIR"; then
14680 echo "$as_me:$LINENO: result: $LNDIR" >&5
14681echo "${ECHO_T}$LNDIR" >&6
14682else
14683 echo "$as_me:$LINENO: result: no" >&5
14684echo "${ECHO_T}no" >&6
14685fi
14686
14687 test -n "$LNDIR" && break
14688done
14689test -n "$LNDIR" || LNDIR="$CP_PR"
14690
14691
14692
14693
a848cd7e 14694
2113bc77 14695if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14696 CXXFLAGS="$CXXFLAGS -qunique"
14697fi
14698
4d7ec9f1
DE
14699case "${host}" in
14700 powerpc-*-darwin* )
14701 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14702echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14703 cat >conftest.$ac_ext <<_ACEOF
14704/* confdefs.h. */
14705_ACEOF
14706cat confdefs.h >>conftest.$ac_ext
14707cat >>conftest.$ac_ext <<_ACEOF
14708/* end confdefs.h. */
14709
14710int
14711main ()
14712{
14713#ifndef __POWERPC__
14714 choke me for lack of PowerPC
14715#endif
14716
14717 ;
14718 return 0;
14719}
14720_ACEOF
14721rm -f conftest.$ac_objext
14722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723 (eval $ac_compile) 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
0093c2fc 14730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 echo "$as_me:$LINENO: result: yes" >&5
14743echo "${ECHO_T}yes" >&6
14744else
14745 echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5
14747
14748echo "$as_me:$LINENO: result: no" >&5
14749echo "${ECHO_T}no" >&6
14750 cat >>confdefs.h <<\_ACEOF
14751#define __POWERPC__ 1
14752_ACEOF
14753
14754
14755fi
14756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14757 ;;
14758esac
14759
14760case "${host}" in
14761 *-*-darwin* )
4d7ec9f1
DE
14762 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14763echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14764 cat >conftest.$ac_ext <<_ACEOF
14765/* confdefs.h. */
14766_ACEOF
14767cat confdefs.h >>conftest.$ac_ext
14768cat >>conftest.$ac_ext <<_ACEOF
14769/* end confdefs.h. */
14770#include <CoreFoundation/CFBase.h>
14771
14772int
14773main ()
14774{
14775
14776 ;
14777 return 0;
14778}
14779_ACEOF
14780rm -f conftest.$ac_objext
14781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14782 (eval $ac_compile) 2>conftest.er1
14783 ac_status=$?
14784 grep -v '^ *+' conftest.er1 >conftest.err
14785 rm -f conftest.er1
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } &&
0093c2fc 14789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; } &&
14795 { ac_try='test -s conftest.$ac_objext'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14801 echo "$as_me:$LINENO: result: yes" >&5
14802echo "${ECHO_T}yes" >&6
14803else
14804 echo "$as_me: failed program was:" >&5
14805sed 's/^/| /' conftest.$ac_ext >&5
14806
14807echo "$as_me:$LINENO: result: no" >&5
14808echo "${ECHO_T}no" >&6
14809 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14810echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14811 cat >conftest.$ac_ext <<_ACEOF
14812/* confdefs.h. */
14813_ACEOF
14814cat confdefs.h >>conftest.$ac_ext
14815cat >>conftest.$ac_ext <<_ACEOF
14816/* end confdefs.h. */
14817#define __CF_USE_FRAMEWORK_INCLUDES__
14818#include <CoreFoundation/CFBase.h>
14819
14820int
14821main ()
14822{
14823
14824 ;
14825 return 0;
14826}
14827_ACEOF
14828rm -f conftest.$ac_objext
14829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14830 (eval $ac_compile) 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
0093c2fc 14837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; } &&
14843 { ac_try='test -s conftest.$ac_objext'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14846 ac_status=$?
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 echo "$as_me:$LINENO: result: yes" >&5
14850echo "${ECHO_T}yes" >&6
14851 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14852else
14853 echo "$as_me: failed program was:" >&5
14854sed 's/^/| /' conftest.$ac_ext >&5
14855
14856{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14857See \`config.log' for more details." >&5
14858echo "$as_me: error: no. CoreFoundation not available.
14859See \`config.log' for more details." >&2;}
14860 { (exit 1); exit 1; }; }
14861
14862fi
14863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864
14865
14866fi
14867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14868 ;;
14869esac
14870
a848cd7e
SC
14871case "${host}" in
14872 *-pc-os2_emx | *-pc-os2-emx )
14873 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14874 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14875echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14876if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14878else
14879 ac_check_lib_save_LIBS=$LIBS
14880LIBS="-lcExt $LIBS"
14881cat >conftest.$ac_ext <<_ACEOF
14882/* confdefs.h. */
14883_ACEOF
14884cat confdefs.h >>conftest.$ac_ext
14885cat >>conftest.$ac_ext <<_ACEOF
14886/* end confdefs.h. */
14887
14888/* Override any gcc2 internal prototype to avoid an error. */
14889#ifdef __cplusplus
14890extern "C"
14891#endif
14892/* We use char because int might match the return type of a gcc2
14893 builtin and then its argument prototype would still apply. */
14894char drand48 ();
14895int
14896main ()
14897{
14898drand48 ();
14899 ;
14900 return 0;
14901}
14902_ACEOF
14903rm -f conftest.$ac_objext conftest$ac_exeext
14904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14905 (eval $ac_link) 2>conftest.er1
a848cd7e 14906 ac_status=$?
ac1cb8d3
VS
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
a848cd7e
SC
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
0093c2fc 14912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_cv_lib_cExt_drand48=yes
14925else
14926 echo "$as_me: failed program was:" >&5
14927sed 's/^/| /' conftest.$ac_ext >&5
14928
14929ac_cv_lib_cExt_drand48=no
14930fi
ac1cb8d3
VS
14931rm -f conftest.err conftest.$ac_objext \
14932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14933LIBS=$ac_check_lib_save_LIBS
14934fi
14935echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14936echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14937if test $ac_cv_lib_cExt_drand48 = yes; then
14938 LIBS="$LIBS -lcExt"
14939fi
14940
14941 else
14942 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14943 fi
69120ee4
VZ
14944 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14945echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14946if test "${wx_cv_gccversion+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14948else
14949
391a765e
VS
14950 if test "$cross_compiling" = yes; then
14951 wx_cv_gccversion="EMX2"
14952
14953else
14954 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14955/* confdefs.h. */
14956_ACEOF
14957cat confdefs.h >>conftest.$ac_ext
14958cat >>conftest.$ac_ext <<_ACEOF
14959/* end confdefs.h. */
14960
391a765e 14961 #include <stdio.h>
a848cd7e 14962
391a765e
VS
14963 int main()
14964 {
14965 FILE *f=fopen("conftestval", "w");
14966 if (!f) exit(1);
14967 fprintf(f,
a848cd7e 14968 #if (__GNUC__ < 3)
391a765e
VS
14969 "EMX2"
14970 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14971 "EMX3"
14972 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14973 "Innotek5"
14974 #else
14975 "Innotek6"
a848cd7e 14976 #endif
391a765e
VS
14977 );
14978 exit(0);
14979 }
a848cd7e 14980
a848cd7e 14981_ACEOF
391a765e
VS
14982rm -f conftest$ac_exeext
14983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14984 (eval $ac_link) 2>&5
ac1cb8d3
VS
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
391a765e 14993 wx_cv_gccversion=`cat conftestval`
a848cd7e 14994else
391a765e
VS
14995 echo "$as_me: program exited with status $ac_status" >&5
14996echo "$as_me: failed program was:" >&5
a848cd7e
SC
14997sed 's/^/| /' conftest.$ac_ext >&5
14998
391a765e
VS
14999( exit $ac_status )
15000wx_cv_gccversion="EMX2"
a848cd7e 15001fi
391a765e 15002rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15003fi
a848cd7e
SC
15004
15005fi
15006echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15007echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15008 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15009 LIBS="$LIBS -lstdcpp"
15010 LDFLAGS="$LDFLAGS -Zsysv-signals"
15011 else
391a765e 15012 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15013 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15014 LDFLAGS="$LDFLAGS -Zsysv-signals"
15015 else
15016 LIBS="$LIBS -lstdc++"
15017 fi
15018 fi
94acd38e
DE
15019 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15020 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15021echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15022 wxUSE_OMF=yes
2da0c077 15023 enable_omf=yes
a848cd7e
SC
15024 fi
15025 ;;
15026 *)
15027
15028
15029
15030 ac_ext=cc
15031ac_cpp='$CXXCPP $CPPFLAGS'
15032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15035
15036
95986553 15037 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15038echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15039if test "${ac_cv_string_strcasecmp+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15041else
15042
15043 cat >conftest.$ac_ext <<_ACEOF
15044/* confdefs.h. */
15045_ACEOF
15046cat confdefs.h >>conftest.$ac_ext
15047cat >>conftest.$ac_ext <<_ACEOF
15048/* end confdefs.h. */
15049
15050 #include <string.h>
15051
15052int
15053main ()
15054{
15055
15056 strcasecmp("foo", "bar");
15057
15058 ;
15059 return 0;
15060}
15061_ACEOF
15062rm -f conftest.$ac_objext conftest$ac_exeext
15063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15064 (eval $ac_link) 2>conftest.er1
a848cd7e 15065 ac_status=$?
ac1cb8d3
VS
15066 grep -v '^ *+' conftest.er1 >conftest.err
15067 rm -f conftest.er1
15068 cat conftest.err >&5
a848cd7e
SC
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } &&
0093c2fc 15071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; } &&
15077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
15083 ac_cv_string_strcasecmp=yes
15084else
15085 echo "$as_me: failed program was:" >&5
15086sed 's/^/| /' conftest.$ac_ext >&5
15087
15088ac_cv_string_strcasecmp=no
15089
15090fi
ac1cb8d3
VS
15091rm -f conftest.err conftest.$ac_objext \
15092 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15093
15094fi
15095echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15096echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15097
15098 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15099 cat >>confdefs.h <<\_ACEOF
15100#define HAVE_STRCASECMP_IN_STRING_H 1
15101_ACEOF
15102
15103 else
15104 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15105echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15106if test "${ac_cv_strings_strcasecmp+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15108else
15109
15110 cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116
15117 #include <strings.h>
15118
15119int
15120main ()
15121{
15122
15123 strcasecmp("foo", "bar");
15124
15125 ;
15126 return 0;
15127}
15128_ACEOF
15129rm -f conftest.$ac_objext conftest$ac_exeext
15130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15131 (eval $ac_link) 2>conftest.er1
a848cd7e 15132 ac_status=$?
ac1cb8d3
VS
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
a848cd7e
SC
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
0093c2fc 15138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 ac_cv_strings_strcasecmp=yes
15151else
15152 echo "$as_me: failed program was:" >&5
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
15155ac_cv_strings_strcasecmp=no
15156
15157fi
ac1cb8d3
VS
15158rm -f conftest.err conftest.$ac_objext \
15159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15160
15161fi
15162echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15163echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15164
0c3c69fc 15165 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15166 cat >>confdefs.h <<\_ACEOF
15167#define HAVE_STRCASECMP_IN_STRINGS_H 1
15168_ACEOF
15169
15170 else
15171 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15172echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15173 { (exit 1); exit 1; }; }
15174 fi
15175 fi
15176
15177 ac_ext=c
15178ac_cpp='$CPP $CPPFLAGS'
15179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15181ac_compiler_gnu=$ac_cv_c_compiler_gnu
15182
15183 ;;
15184esac
15185
15186
15187echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15188echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15189if test "${ac_cv_header_stdc+set}" = set; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15191else
15192 cat >conftest.$ac_ext <<_ACEOF
15193/* confdefs.h. */
15194_ACEOF
15195cat confdefs.h >>conftest.$ac_ext
15196cat >>conftest.$ac_ext <<_ACEOF
15197/* end confdefs.h. */
15198#include <stdlib.h>
15199#include <stdarg.h>
15200#include <string.h>
15201#include <float.h>
15202
15203int
15204main ()
15205{
15206
15207 ;
15208 return 0;
15209}
15210_ACEOF
15211rm -f conftest.$ac_objext
15212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15213 (eval $ac_compile) 2>conftest.er1
a848cd7e 15214 ac_status=$?
ac1cb8d3
VS
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
a848cd7e
SC
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
0093c2fc 15220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_cv_header_stdc=yes
15233else
15234 echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237ac_cv_header_stdc=no
15238fi
ac1cb8d3 15239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15240
15241if test $ac_cv_header_stdc = yes; then
15242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15243 cat >conftest.$ac_ext <<_ACEOF
15244/* confdefs.h. */
15245_ACEOF
15246cat confdefs.h >>conftest.$ac_ext
15247cat >>conftest.$ac_ext <<_ACEOF
15248/* end confdefs.h. */
15249#include <string.h>
15250
15251_ACEOF
15252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15253 $EGREP "memchr" >/dev/null 2>&1; then
15254 :
15255else
15256 ac_cv_header_stdc=no
15257fi
15258rm -f conftest*
15259
15260fi
15261
15262if test $ac_cv_header_stdc = yes; then
15263 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15264 cat >conftest.$ac_ext <<_ACEOF
15265/* confdefs.h. */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
15269/* end confdefs.h. */
15270#include <stdlib.h>
15271
15272_ACEOF
15273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15274 $EGREP "free" >/dev/null 2>&1; then
15275 :
15276else
15277 ac_cv_header_stdc=no
15278fi
15279rm -f conftest*
15280
15281fi
15282
15283if test $ac_cv_header_stdc = yes; then
15284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15285 if test "$cross_compiling" = yes; then
15286 :
15287else
15288 cat >conftest.$ac_ext <<_ACEOF
15289/* confdefs.h. */
15290_ACEOF
15291cat confdefs.h >>conftest.$ac_ext
15292cat >>conftest.$ac_ext <<_ACEOF
15293/* end confdefs.h. */
15294#include <ctype.h>
15295#if ((' ' & 0x0FF) == 0x020)
15296# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15297# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15298#else
15299# define ISLOWER(c) \
ac1cb8d3
VS
15300 (('a' <= (c) && (c) <= 'i') \
15301 || ('j' <= (c) && (c) <= 'r') \
15302 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15303# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15304#endif
15305
15306#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15307int
15308main ()
15309{
15310 int i;
15311 for (i = 0; i < 256; i++)
15312 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15313 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15314 exit(2);
15315 exit (0);
15316}
15317_ACEOF
15318rm -f conftest$ac_exeext
15319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320 (eval $ac_link) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 :
15330else
15331 echo "$as_me: program exited with status $ac_status" >&5
15332echo "$as_me: failed program was:" >&5
15333sed 's/^/| /' conftest.$ac_ext >&5
15334
15335( exit $ac_status )
15336ac_cv_header_stdc=no
15337fi
ac1cb8d3 15338rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15339fi
15340fi
15341fi
15342echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15343echo "${ECHO_T}$ac_cv_header_stdc" >&6
15344if test $ac_cv_header_stdc = yes; then
15345
15346cat >>confdefs.h <<\_ACEOF
15347#define STDC_HEADERS 1
15348_ACEOF
15349
15350fi
15351
15352# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15363 inttypes.h stdint.h unistd.h
a848cd7e
SC
15364do
15365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15366echo "$as_me:$LINENO: checking for $ac_header" >&5
15367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15368if eval "test \"\${$as_ac_Header+set}\" = set"; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370else
15371 cat >conftest.$ac_ext <<_ACEOF
15372/* confdefs.h. */
15373_ACEOF
15374cat confdefs.h >>conftest.$ac_ext
15375cat >>conftest.$ac_ext <<_ACEOF
15376/* end confdefs.h. */
15377$ac_includes_default
15378
15379#include <$ac_header>
15380_ACEOF
15381rm -f conftest.$ac_objext
15382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15383 (eval $ac_compile) 2>conftest.er1
a848cd7e 15384 ac_status=$?
ac1cb8d3
VS
15385 grep -v '^ *+' conftest.er1 >conftest.err
15386 rm -f conftest.er1
15387 cat conftest.err >&5
a848cd7e
SC
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
0093c2fc 15390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; } &&
15396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 eval "$as_ac_Header=yes"
15403else
15404 echo "$as_me: failed program was:" >&5
15405sed 's/^/| /' conftest.$ac_ext >&5
15406
15407eval "$as_ac_Header=no"
15408fi
ac1cb8d3 15409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15410fi
15411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15413if test `eval echo '${'$as_ac_Header'}'` = yes; then
15414 cat >>confdefs.h <<_ACEOF
15415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15416_ACEOF
15417
15418fi
15419
15420done
15421
15422
15423
15424for ac_header in stdlib.h
15425do
15426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15427if eval "test \"\${$as_ac_Header+set}\" = set"; then
15428 echo "$as_me:$LINENO: checking for $ac_header" >&5
15429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15430if eval "test \"\${$as_ac_Header+set}\" = set"; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15432fi
15433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15435else
15436 # Is the header compilable?
15437echo "$as_me:$LINENO: checking $ac_header usability" >&5
15438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15439cat >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$ac_includes_default
15446#include <$ac_header>
15447_ACEOF
15448rm -f conftest.$ac_objext
15449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15450 (eval $ac_compile) 2>conftest.er1
a848cd7e 15451 ac_status=$?
ac1cb8d3
VS
15452 grep -v '^ *+' conftest.er1 >conftest.err
15453 rm -f conftest.er1
15454 cat conftest.err >&5
a848cd7e
SC
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
0093c2fc 15457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; } &&
15463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15469 ac_header_compiler=yes
15470else
15471 echo "$as_me: failed program was:" >&5
15472sed 's/^/| /' conftest.$ac_ext >&5
15473
15474ac_header_compiler=no
15475fi
ac1cb8d3 15476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15477echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15478echo "${ECHO_T}$ac_header_compiler" >&6
15479
15480# Is the header present?
15481echo "$as_me:$LINENO: checking $ac_header presence" >&5
15482echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15483cat >conftest.$ac_ext <<_ACEOF
15484/* confdefs.h. */
15485_ACEOF
15486cat confdefs.h >>conftest.$ac_ext
15487cat >>conftest.$ac_ext <<_ACEOF
15488/* end confdefs.h. */
15489#include <$ac_header>
15490_ACEOF
15491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15493 ac_status=$?
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } >/dev/null; then
15499 if test -s conftest.err; then
15500 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15502 else
15503 ac_cpp_err=
15504 fi
15505else
15506 ac_cpp_err=yes
15507fi
15508if test -z "$ac_cpp_err"; then
15509 ac_header_preproc=yes
15510else
15511 echo "$as_me: failed program was:" >&5
15512sed 's/^/| /' conftest.$ac_ext >&5
15513
15514 ac_header_preproc=no
15515fi
15516rm -f conftest.err conftest.$ac_ext
15517echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15518echo "${ECHO_T}$ac_header_preproc" >&6
15519
15520# So? What about this header?
ac1cb8d3
VS
15521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15522 yes:no: )
a848cd7e
SC
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15526echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15527 ac_header_preproc=yes
a848cd7e 15528 ;;
ac1cb8d3 15529 no:yes:* )
a848cd7e
SC
15530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15531echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15533echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15535echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15537echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15541echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15542 (
15543 cat <<\_ASBOX
ac1cb8d3
VS
15544## ----------------------------------------- ##
15545## Report this to wx-dev@lists.wxwidgets.org ##
15546## ----------------------------------------- ##
a848cd7e
SC
15547_ASBOX
15548 ) |
15549 sed "s/^/$as_me: WARNING: /" >&2
15550 ;;
15551esac
15552echo "$as_me:$LINENO: checking for $ac_header" >&5
15553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15554if eval "test \"\${$as_ac_Header+set}\" = set"; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15556else
ac1cb8d3 15557 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15558fi
15559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15561
15562fi
15563if test `eval echo '${'$as_ac_Header'}'` = yes; then
15564 cat >>confdefs.h <<_ACEOF
15565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15566_ACEOF
15567
15568fi
15569
15570done
15571
15572
15573for ac_header in malloc.h
15574do
15575as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15576if eval "test \"\${$as_ac_Header+set}\" = set"; then
15577 echo "$as_me:$LINENO: checking for $ac_header" >&5
15578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15579if eval "test \"\${$as_ac_Header+set}\" = set"; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15581fi
15582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15584else
15585 # Is the header compilable?
15586echo "$as_me:$LINENO: checking $ac_header usability" >&5
15587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15588cat >conftest.$ac_ext <<_ACEOF
15589/* confdefs.h. */
15590_ACEOF
15591cat confdefs.h >>conftest.$ac_ext
15592cat >>conftest.$ac_ext <<_ACEOF
15593/* end confdefs.h. */
15594$ac_includes_default
15595#include <$ac_header>
15596_ACEOF
15597rm -f conftest.$ac_objext
15598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15599 (eval $ac_compile) 2>conftest.er1
a848cd7e 15600 ac_status=$?
ac1cb8d3
VS
15601 grep -v '^ *+' conftest.er1 >conftest.err
15602 rm -f conftest.er1
15603 cat conftest.err >&5
a848cd7e
SC
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
0093c2fc 15606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; } &&
15612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_header_compiler=yes
15619else
15620 echo "$as_me: failed program was:" >&5
15621sed 's/^/| /' conftest.$ac_ext >&5
15622
15623ac_header_compiler=no
15624fi
ac1cb8d3 15625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15626echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15627echo "${ECHO_T}$ac_header_compiler" >&6
15628
15629# Is the header present?
15630echo "$as_me:$LINENO: checking $ac_header presence" >&5
15631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15632cat >conftest.$ac_ext <<_ACEOF
15633/* confdefs.h. */
15634_ACEOF
15635cat confdefs.h >>conftest.$ac_ext
15636cat >>conftest.$ac_ext <<_ACEOF
15637/* end confdefs.h. */
15638#include <$ac_header>
15639_ACEOF
15640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15642 ac_status=$?
15643 grep -v '^ *+' conftest.er1 >conftest.err
15644 rm -f conftest.er1
15645 cat conftest.err >&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } >/dev/null; then
15648 if test -s conftest.err; then
15649 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15651 else
15652 ac_cpp_err=
15653 fi
15654else
15655 ac_cpp_err=yes
15656fi
15657if test -z "$ac_cpp_err"; then
15658 ac_header_preproc=yes
15659else
15660 echo "$as_me: failed program was:" >&5
15661sed 's/^/| /' conftest.$ac_ext >&5
15662
15663 ac_header_preproc=no
15664fi
15665rm -f conftest.err conftest.$ac_ext
15666echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15667echo "${ECHO_T}$ac_header_preproc" >&6
15668
15669# So? What about this header?
ac1cb8d3
VS
15670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15671 yes:no: )
a848cd7e
SC
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15675echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15676 ac_header_preproc=yes
a848cd7e 15677 ;;
ac1cb8d3 15678 no:yes:* )
a848cd7e
SC
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15680echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15682echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15684echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15686echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15690echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15691 (
15692 cat <<\_ASBOX
ac1cb8d3
VS
15693## ----------------------------------------- ##
15694## Report this to wx-dev@lists.wxwidgets.org ##
15695## ----------------------------------------- ##
a848cd7e
SC
15696_ASBOX
15697 ) |
15698 sed "s/^/$as_me: WARNING: /" >&2
15699 ;;
15700esac
15701echo "$as_me:$LINENO: checking for $ac_header" >&5
15702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15703if eval "test \"\${$as_ac_Header+set}\" = set"; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15705else
ac1cb8d3 15706 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15707fi
15708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15710
15711fi
15712if test `eval echo '${'$as_ac_Header'}'` = yes; then
15713 cat >>confdefs.h <<_ACEOF
15714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15715_ACEOF
15716
15717fi
15718
15719done
15720
15721
15722for ac_header in unistd.h
15723do
15724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15725if eval "test \"\${$as_ac_Header+set}\" = set"; then
15726 echo "$as_me:$LINENO: checking for $ac_header" >&5
15727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15728if eval "test \"\${$as_ac_Header+set}\" = set"; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15730fi
15731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15733else
15734 # Is the header compilable?
15735echo "$as_me:$LINENO: checking $ac_header usability" >&5
15736echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15737cat >conftest.$ac_ext <<_ACEOF
15738/* confdefs.h. */
15739_ACEOF
15740cat confdefs.h >>conftest.$ac_ext
15741cat >>conftest.$ac_ext <<_ACEOF
15742/* end confdefs.h. */
15743$ac_includes_default
15744#include <$ac_header>
15745_ACEOF
15746rm -f conftest.$ac_objext
15747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15748 (eval $ac_compile) 2>conftest.er1
a848cd7e 15749 ac_status=$?
ac1cb8d3
VS
15750 grep -v '^ *+' conftest.er1 >conftest.err
15751 rm -f conftest.er1
15752 cat conftest.err >&5
a848cd7e
SC
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } &&
0093c2fc 15755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757 (eval $ac_try) 2>&5
15758 ac_status=$?
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; } &&
15761 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 ac_header_compiler=yes
15768else
15769 echo "$as_me: failed program was:" >&5
15770sed 's/^/| /' conftest.$ac_ext >&5
15771
15772ac_header_compiler=no
15773fi
ac1cb8d3 15774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15776echo "${ECHO_T}$ac_header_compiler" >&6
15777
15778# Is the header present?
15779echo "$as_me:$LINENO: checking $ac_header presence" >&5
15780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15781cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787#include <$ac_header>
15788_ACEOF
15789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15791 ac_status=$?
15792 grep -v '^ *+' conftest.er1 >conftest.err
15793 rm -f conftest.er1
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } >/dev/null; then
15797 if test -s conftest.err; then
15798 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15800 else
15801 ac_cpp_err=
15802 fi
15803else
15804 ac_cpp_err=yes
15805fi
15806if test -z "$ac_cpp_err"; then
15807 ac_header_preproc=yes
15808else
15809 echo "$as_me: failed program was:" >&5
15810sed 's/^/| /' conftest.$ac_ext >&5
15811
15812 ac_header_preproc=no
15813fi
15814rm -f conftest.err conftest.$ac_ext
15815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15816echo "${ECHO_T}$ac_header_preproc" >&6
15817
15818# So? What about this header?
ac1cb8d3
VS
15819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15820 yes:no: )
a848cd7e
SC
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15825 ac_header_preproc=yes
a848cd7e 15826 ;;
ac1cb8d3 15827 no:yes:* )
a848cd7e
SC
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15840 (
15841 cat <<\_ASBOX
ac1cb8d3
VS
15842## ----------------------------------------- ##
15843## Report this to wx-dev@lists.wxwidgets.org ##
15844## ----------------------------------------- ##
a848cd7e
SC
15845_ASBOX
15846 ) |
15847 sed "s/^/$as_me: WARNING: /" >&2
15848 ;;
15849esac
15850echo "$as_me:$LINENO: checking for $ac_header" >&5
15851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15852if eval "test \"\${$as_ac_Header+set}\" = set"; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15854else
ac1cb8d3 15855 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15856fi
15857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15859
15860fi
15861if test `eval echo '${'$as_ac_Header'}'` = yes; then
15862 cat >>confdefs.h <<_ACEOF
15863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15864_ACEOF
15865
15866fi
15867
15868done
15869
15870
15871for ac_header in wchar.h
15872do
15873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15874if eval "test \"\${$as_ac_Header+set}\" = set"; then
15875 echo "$as_me:$LINENO: checking for $ac_header" >&5
15876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15877if eval "test \"\${$as_ac_Header+set}\" = set"; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879fi
15880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15882else
15883 # Is the header compilable?
15884echo "$as_me:$LINENO: checking $ac_header usability" >&5
15885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15886cat >conftest.$ac_ext <<_ACEOF
15887/* confdefs.h. */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h. */
15892$ac_includes_default
15893#include <$ac_header>
15894_ACEOF
15895rm -f conftest.$ac_objext
15896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15897 (eval $ac_compile) 2>conftest.er1
a848cd7e 15898 ac_status=$?
ac1cb8d3
VS
15899 grep -v '^ *+' conftest.er1 >conftest.err
15900 rm -f conftest.er1
15901 cat conftest.err >&5
a848cd7e
SC
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
0093c2fc 15904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_header_compiler=yes
15917else
15918 echo "$as_me: failed program was:" >&5
15919sed 's/^/| /' conftest.$ac_ext >&5
15920
15921ac_header_compiler=no
15922fi
ac1cb8d3 15923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15924echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925echo "${ECHO_T}$ac_header_compiler" >&6
15926
15927# Is the header present?
15928echo "$as_me:$LINENO: checking $ac_header presence" >&5
15929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15930cat >conftest.$ac_ext <<_ACEOF
15931/* confdefs.h. */
15932_ACEOF
15933cat confdefs.h >>conftest.$ac_ext
15934cat >>conftest.$ac_ext <<_ACEOF
15935/* end confdefs.h. */
15936#include <$ac_header>
15937_ACEOF
15938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } >/dev/null; then
15946 if test -s conftest.err; then
15947 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15949 else
15950 ac_cpp_err=
15951 fi
15952else
15953 ac_cpp_err=yes
15954fi
15955if test -z "$ac_cpp_err"; then
15956 ac_header_preproc=yes
15957else
15958 echo "$as_me: failed program was:" >&5
15959sed 's/^/| /' conftest.$ac_ext >&5
15960
15961 ac_header_preproc=no
15962fi
15963rm -f conftest.err conftest.$ac_ext
15964echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15965echo "${ECHO_T}$ac_header_preproc" >&6
15966
15967# So? What about this header?
ac1cb8d3
VS
15968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15969 yes:no: )
a848cd7e
SC
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15974 ac_header_preproc=yes
a848cd7e 15975 ;;
ac1cb8d3 15976 no:yes:* )
a848cd7e
SC
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15980echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15984echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15989 (
15990 cat <<\_ASBOX
ac1cb8d3
VS
15991## ----------------------------------------- ##
15992## Report this to wx-dev@lists.wxwidgets.org ##
15993## ----------------------------------------- ##
a848cd7e
SC
15994_ASBOX
15995 ) |
15996 sed "s/^/$as_me: WARNING: /" >&2
15997 ;;
15998esac
15999echo "$as_me:$LINENO: checking for $ac_header" >&5
16000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16001if eval "test \"\${$as_ac_Header+set}\" = set"; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003else
ac1cb8d3 16004 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16005fi
16006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16008
16009fi
16010if test `eval echo '${'$as_ac_Header'}'` = yes; then
16011 cat >>confdefs.h <<_ACEOF
16012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16013_ACEOF
16014
16015fi
16016
16017done
16018
16019
16020if test "$ac_cv_header_wchar_h" != "yes"; then
16021
16022for ac_header in wcstr.h
16023do
16024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16025if eval "test \"\${$as_ac_Header+set}\" = set"; then
16026 echo "$as_me:$LINENO: checking for $ac_header" >&5
16027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16028if eval "test \"\${$as_ac_Header+set}\" = set"; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16030fi
16031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16033else
16034 # Is the header compilable?
16035echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16037cat >conftest.$ac_ext <<_ACEOF
16038/* confdefs.h. */
16039_ACEOF
16040cat confdefs.h >>conftest.$ac_ext
16041cat >>conftest.$ac_ext <<_ACEOF
16042/* end confdefs.h. */
16043$ac_includes_default
16044#include <$ac_header>
16045_ACEOF
16046rm -f conftest.$ac_objext
16047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16048 (eval $ac_compile) 2>conftest.er1
a848cd7e 16049 ac_status=$?
ac1cb8d3
VS
16050 grep -v '^ *+' conftest.er1 >conftest.err
16051 rm -f conftest.er1
16052 cat conftest.err >&5
a848cd7e
SC
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
0093c2fc 16055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; } &&
16061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 ac_header_compiler=yes
16068else
16069 echo "$as_me: failed program was:" >&5
16070sed 's/^/| /' conftest.$ac_ext >&5
16071
16072ac_header_compiler=no
16073fi
ac1cb8d3 16074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16076echo "${ECHO_T}$ac_header_compiler" >&6
16077
16078# Is the header present?
16079echo "$as_me:$LINENO: checking $ac_header presence" >&5
16080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16081cat >conftest.$ac_ext <<_ACEOF
16082/* confdefs.h. */
16083_ACEOF
16084cat confdefs.h >>conftest.$ac_ext
16085cat >>conftest.$ac_ext <<_ACEOF
16086/* end confdefs.h. */
16087#include <$ac_header>
16088_ACEOF
16089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16091 ac_status=$?
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } >/dev/null; then
16097 if test -s conftest.err; then
16098 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16100 else
16101 ac_cpp_err=
16102 fi
16103else
16104 ac_cpp_err=yes
16105fi
16106if test -z "$ac_cpp_err"; then
16107 ac_header_preproc=yes
16108else
16109 echo "$as_me: failed program was:" >&5
16110sed 's/^/| /' conftest.$ac_ext >&5
16111
16112 ac_header_preproc=no
16113fi
16114rm -f conftest.err conftest.$ac_ext
16115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16116echo "${ECHO_T}$ac_header_preproc" >&6
16117
16118# So? What about this header?
ac1cb8d3
VS
16119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16120 yes:no: )
a848cd7e
SC
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16125 ac_header_preproc=yes
a848cd7e 16126 ;;
ac1cb8d3 16127 no:yes:* )
a848cd7e
SC
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16135echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16140 (
16141 cat <<\_ASBOX
ac1cb8d3
VS
16142## ----------------------------------------- ##
16143## Report this to wx-dev@lists.wxwidgets.org ##
16144## ----------------------------------------- ##
a848cd7e
SC
16145_ASBOX
16146 ) |
16147 sed "s/^/$as_me: WARNING: /" >&2
16148 ;;
16149esac
16150echo "$as_me:$LINENO: checking for $ac_header" >&5
16151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16152if eval "test \"\${$as_ac_Header+set}\" = set"; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16154else
ac1cb8d3 16155 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16156fi
16157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16159
16160fi
16161if test `eval echo '${'$as_ac_Header'}'` = yes; then
16162 cat >>confdefs.h <<_ACEOF
16163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16164_ACEOF
16165
16166fi
16167
16168done
16169
16170fi
16171
16172
16173for ac_header in fnmatch.h
16174do
16175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16176if eval "test \"\${$as_ac_Header+set}\" = set"; then
16177 echo "$as_me:$LINENO: checking for $ac_header" >&5
16178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16179if eval "test \"\${$as_ac_Header+set}\" = set"; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181fi
16182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16184else
16185 # Is the header compilable?
16186echo "$as_me:$LINENO: checking $ac_header usability" >&5
16187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16188cat >conftest.$ac_ext <<_ACEOF
16189/* confdefs.h. */
16190_ACEOF
16191cat confdefs.h >>conftest.$ac_ext
16192cat >>conftest.$ac_ext <<_ACEOF
16193/* end confdefs.h. */
16194$ac_includes_default
16195#include <$ac_header>
16196_ACEOF
16197rm -f conftest.$ac_objext
16198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16199 (eval $ac_compile) 2>conftest.er1
a848cd7e 16200 ac_status=$?
ac1cb8d3
VS
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
a848cd7e
SC
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
0093c2fc 16206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; } &&
16212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 ac_header_compiler=yes
16219else
16220 echo "$as_me: failed program was:" >&5
16221sed 's/^/| /' conftest.$ac_ext >&5
16222
16223ac_header_compiler=no
16224fi
ac1cb8d3 16225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16226echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16227echo "${ECHO_T}$ac_header_compiler" >&6
16228
16229# Is the header present?
16230echo "$as_me:$LINENO: checking $ac_header presence" >&5
16231echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16232cat >conftest.$ac_ext <<_ACEOF
16233/* confdefs.h. */
16234_ACEOF
16235cat confdefs.h >>conftest.$ac_ext
16236cat >>conftest.$ac_ext <<_ACEOF
16237/* end confdefs.h. */
16238#include <$ac_header>
16239_ACEOF
16240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } >/dev/null; then
16248 if test -s conftest.err; then
16249 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16251 else
16252 ac_cpp_err=
16253 fi
16254else
16255 ac_cpp_err=yes
16256fi
16257if test -z "$ac_cpp_err"; then
16258 ac_header_preproc=yes
16259else
16260 echo "$as_me: failed program was:" >&5
16261sed 's/^/| /' conftest.$ac_ext >&5
16262
16263 ac_header_preproc=no
16264fi
16265rm -f conftest.err conftest.$ac_ext
16266echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16267echo "${ECHO_T}$ac_header_preproc" >&6
16268
16269# So? What about this header?
ac1cb8d3
VS
16270case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16271 yes:no: )
a848cd7e
SC
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16273echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16275echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16276 ac_header_preproc=yes
a848cd7e 16277 ;;
ac1cb8d3 16278 no:yes:* )
a848cd7e
SC
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16280echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16282echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16284echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16286echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16288echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16290echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16291 (
16292 cat <<\_ASBOX
ac1cb8d3
VS
16293## ----------------------------------------- ##
16294## Report this to wx-dev@lists.wxwidgets.org ##
16295## ----------------------------------------- ##
a848cd7e
SC
16296_ASBOX
16297 ) |
16298 sed "s/^/$as_me: WARNING: /" >&2
16299 ;;
16300esac
16301echo "$as_me:$LINENO: checking for $ac_header" >&5
16302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16303if eval "test \"\${$as_ac_Header+set}\" = set"; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305else
ac1cb8d3 16306 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16307fi
16308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16310
16311fi
16312if test `eval echo '${'$as_ac_Header'}'` = yes; then
16313 cat >>confdefs.h <<_ACEOF
16314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16315_ACEOF
16316
16317fi
16318
16319done
16320
16321
a848cd7e
SC
16322
16323for ac_header in langinfo.h
16324do
16325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16326if eval "test \"\${$as_ac_Header+set}\" = set"; then
16327 echo "$as_me:$LINENO: checking for $ac_header" >&5
16328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16329if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16331fi
16332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16334else
16335 # Is the header compilable?
16336echo "$as_me:$LINENO: checking $ac_header usability" >&5
16337echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16338cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
16344$ac_includes_default
16345#include <$ac_header>
16346_ACEOF
16347rm -f conftest.$ac_objext
16348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16349 (eval $ac_compile) 2>conftest.er1
a848cd7e 16350 ac_status=$?
ac1cb8d3
VS
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
a848cd7e
SC
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
0093c2fc 16356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 ac_header_compiler=yes
16369else
16370 echo "$as_me: failed program was:" >&5
16371sed 's/^/| /' conftest.$ac_ext >&5
16372
16373ac_header_compiler=no
16374fi
ac1cb8d3 16375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16376echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16377echo "${ECHO_T}$ac_header_compiler" >&6
16378
16379# Is the header present?
16380echo "$as_me:$LINENO: checking $ac_header presence" >&5
16381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16382cat >conftest.$ac_ext <<_ACEOF
16383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
16388#include <$ac_header>
16389_ACEOF
16390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } >/dev/null; then
16398 if test -s conftest.err; then
16399 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16401 else
16402 ac_cpp_err=
16403 fi
16404else
16405 ac_cpp_err=yes
16406fi
16407if test -z "$ac_cpp_err"; then
16408 ac_header_preproc=yes
16409else
16410 echo "$as_me: failed program was:" >&5
16411sed 's/^/| /' conftest.$ac_ext >&5
16412
16413 ac_header_preproc=no
16414fi
16415rm -f conftest.err conftest.$ac_ext
16416echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16417echo "${ECHO_T}$ac_header_preproc" >&6
16418
16419# So? What about this header?
ac1cb8d3
VS
16420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16421 yes:no: )
a848cd7e
SC
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16426 ac_header_preproc=yes
a848cd7e 16427 ;;
ac1cb8d3 16428 no:yes:* )
a848cd7e
SC
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16432echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16436echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16441 (
16442 cat <<\_ASBOX
ac1cb8d3
VS
16443## ----------------------------------------- ##
16444## Report this to wx-dev@lists.wxwidgets.org ##
16445## ----------------------------------------- ##
a848cd7e
SC
16446_ASBOX
16447 ) |
16448 sed "s/^/$as_me: WARNING: /" >&2
16449 ;;
16450esac
16451echo "$as_me:$LINENO: checking for $ac_header" >&5
16452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16453if eval "test \"\${$as_ac_Header+set}\" = set"; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16455else
ac1cb8d3 16456 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16457fi
16458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16460
16461fi
16462if test `eval echo '${'$as_ac_Header'}'` = yes; then
16463 cat >>confdefs.h <<_ACEOF
16464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16465_ACEOF
16466
16467fi
16468
16469done
16470
16471
16472case "${host}" in
16473 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16474 if test $ac_cv_header_langinfo_h = "yes" \
16475 -a \( "$wx_cv_gccversion" = "EMX2" \
16476 -o "$wx_cv_gccversion" = "EMX3" \
16477 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16478 LIBS="$LIBS -lintl"
16479 fi
16480 ;;
16481esac
16482
a848cd7e
SC
16483
16484echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16485echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16486if test "${ac_cv_c_const+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488else
16489 cat >conftest.$ac_ext <<_ACEOF
16490/* confdefs.h. */
16491_ACEOF
16492cat confdefs.h >>conftest.$ac_ext
16493cat >>conftest.$ac_ext <<_ACEOF
16494/* end confdefs.h. */
16495
16496int
16497main ()
16498{
16499/* FIXME: Include the comments suggested by Paul. */
16500#ifndef __cplusplus
16501 /* Ultrix mips cc rejects this. */
16502 typedef int charset[2];
16503 const charset x;
16504 /* SunOS 4.1.1 cc rejects this. */
16505 char const *const *ccp;
16506 char **p;
16507 /* NEC SVR4.0.2 mips cc rejects this. */
16508 struct point {int x, y;};
16509 static struct point const zero = {0,0};
16510 /* AIX XL C 1.02.0.0 rejects this.
16511 It does not let you subtract one const X* pointer from another in
16512 an arm of an if-expression whose if-part is not a constant
16513 expression */
16514 const char *g = "string";
16515 ccp = &g + (g ? g-g : 0);
16516 /* HPUX 7.0 cc rejects these. */
16517 ++ccp;
16518 p = (char**) ccp;
16519 ccp = (char const *const *) p;
16520 { /* SCO 3.2v4 cc rejects this. */
16521 char *t;
16522 char const *s = 0 ? (char *) 0 : (char const *) 0;
16523
16524 *t++ = 0;
16525 }
16526 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16527 int x[] = {25, 17};
16528 const int *foo = &x[0];
16529 ++foo;
16530 }
16531 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16532 typedef const int *iptr;
16533 iptr p = 0;
16534 ++p;
16535 }
16536 { /* AIX XL C 1.02.0.0 rejects this saying
16537 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16538 struct s { int j; const int *ap[3]; };
16539 struct s *b; b->j = 5;
16540 }
16541 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16542 const int foo = 10;
16543 }
16544#endif
16545
16546 ;
16547 return 0;
16548}
16549_ACEOF
16550rm -f conftest.$ac_objext
16551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16552 (eval $ac_compile) 2>conftest.er1
a848cd7e 16553 ac_status=$?
ac1cb8d3
VS
16554 grep -v '^ *+' conftest.er1 >conftest.err
16555 rm -f conftest.er1
16556 cat conftest.err >&5
a848cd7e
SC
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
0093c2fc 16559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; } &&
16565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_cv_c_const=yes
16572else
16573 echo "$as_me: failed program was:" >&5
16574sed 's/^/| /' conftest.$ac_ext >&5
16575
16576ac_cv_c_const=no
16577fi
ac1cb8d3 16578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16579fi
16580echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16581echo "${ECHO_T}$ac_cv_c_const" >&6
16582if test $ac_cv_c_const = no; then
16583
16584cat >>confdefs.h <<\_ACEOF
16585#define const
16586_ACEOF
16587
16588fi
16589
16590echo "$as_me:$LINENO: checking for inline" >&5
16591echo $ECHO_N "checking for inline... $ECHO_C" >&6
16592if test "${ac_cv_c_inline+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16594else
16595 ac_cv_c_inline=no
16596for ac_kw in inline __inline__ __inline; do
16597 cat >conftest.$ac_ext <<_ACEOF
16598/* confdefs.h. */
16599_ACEOF
16600cat confdefs.h >>conftest.$ac_ext
16601cat >>conftest.$ac_ext <<_ACEOF
16602/* end confdefs.h. */
16603#ifndef __cplusplus
16604typedef int foo_t;
16605static $ac_kw foo_t static_foo () {return 0; }
16606$ac_kw foo_t foo () {return 0; }
16607#endif
16608
16609_ACEOF
16610rm -f conftest.$ac_objext
16611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16612 (eval $ac_compile) 2>conftest.er1
a848cd7e 16613 ac_status=$?
ac1cb8d3
VS
16614 grep -v '^ *+' conftest.er1 >conftest.err
16615 rm -f conftest.er1
16616 cat conftest.err >&5
a848cd7e
SC
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
0093c2fc 16619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; } &&
16625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 ac_cv_c_inline=$ac_kw; break
16632else
16633 echo "$as_me: failed program was:" >&5
16634sed 's/^/| /' conftest.$ac_ext >&5
16635
16636fi
ac1cb8d3 16637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16638done
16639
16640fi
16641echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16642echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16643
16644
a848cd7e
SC
16645case $ac_cv_c_inline in
16646 inline | yes) ;;
ac1cb8d3
VS
16647 *)
16648 case $ac_cv_c_inline in
16649 no) ac_val=;;
16650 *) ac_val=$ac_cv_c_inline;;
16651 esac
16652 cat >>confdefs.h <<_ACEOF
16653#ifndef __cplusplus
16654#define inline $ac_val
16655#endif
de59c161 16656_ACEOF
ac1cb8d3 16657 ;;
a848cd7e
SC
16658esac
16659
16660
16661echo "$as_me:$LINENO: checking for char" >&5
16662echo $ECHO_N "checking for char... $ECHO_C" >&6
16663if test "${ac_cv_type_char+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16665else
16666 cat >conftest.$ac_ext <<_ACEOF
16667/* confdefs.h. */
16668_ACEOF
16669cat confdefs.h >>conftest.$ac_ext
16670cat >>conftest.$ac_ext <<_ACEOF
16671/* end confdefs.h. */
16672$ac_includes_default
16673int
16674main ()
16675{
16676if ((char *) 0)
16677 return 0;
16678if (sizeof (char))
16679 return 0;
16680 ;
16681 return 0;
16682}
16683_ACEOF
16684rm -f conftest.$ac_objext
16685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16686 (eval $ac_compile) 2>conftest.er1
a848cd7e 16687 ac_status=$?
ac1cb8d3
VS
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
a848cd7e
SC
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
0093c2fc 16693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } &&
16699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_cv_type_char=yes
16706else
16707 echo "$as_me: failed program was:" >&5
16708sed 's/^/| /' conftest.$ac_ext >&5
16709
16710ac_cv_type_char=no
16711fi
ac1cb8d3 16712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16713fi
16714echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16715echo "${ECHO_T}$ac_cv_type_char" >&6
16716
16717echo "$as_me:$LINENO: checking size of char" >&5
16718echo $ECHO_N "checking size of char... $ECHO_C" >&6
16719if test "${ac_cv_sizeof_char+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16721else
16722 if test "$ac_cv_type_char" = yes; then
16723 # The cast to unsigned long works around a bug in the HP C Compiler
16724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16726 # This bug is HP SR number 8606223364.
16727 if test "$cross_compiling" = yes; then
16728 # Depending upon the size, compute the lo and hi bounds.
16729cat >conftest.$ac_ext <<_ACEOF
16730/* confdefs.h. */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h. */
16735$ac_includes_default
16736int
16737main ()
16738{
16739static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16740test_array [0] = 0
16741
16742 ;
16743 return 0;
16744}
16745_ACEOF
16746rm -f conftest.$ac_objext
16747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16748 (eval $ac_compile) 2>conftest.er1
a848cd7e 16749 ac_status=$?
ac1cb8d3
VS
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
a848cd7e
SC
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
0093c2fc 16755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 ac_lo=0 ac_mid=0
16768 while :; do
16769 cat >conftest.$ac_ext <<_ACEOF
16770/* confdefs.h. */
16771_ACEOF
16772cat confdefs.h >>conftest.$ac_ext
16773cat >>conftest.$ac_ext <<_ACEOF
16774/* end confdefs.h. */
16775$ac_includes_default
16776int
16777main ()
16778{
16779static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16780test_array [0] = 0
16781
16782 ;
16783 return 0;
16784}
16785_ACEOF
16786rm -f conftest.$ac_objext
16787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16788 (eval $ac_compile) 2>conftest.er1
a848cd7e 16789 ac_status=$?
ac1cb8d3
VS
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
a848cd7e
SC
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
0093c2fc 16795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_hi=$ac_mid; break
16808else
16809 echo "$as_me: failed program was:" >&5
16810sed 's/^/| /' conftest.$ac_ext >&5
16811
16812ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16813 if test $ac_lo -le $ac_mid; then
16814 ac_lo= ac_hi=
16815 break
16816 fi
16817 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16818fi
ac1cb8d3 16819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16820 done
16821else
16822 echo "$as_me: failed program was:" >&5
16823sed 's/^/| /' conftest.$ac_ext >&5
16824
16825cat >conftest.$ac_ext <<_ACEOF
16826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
16830/* end confdefs.h. */
16831$ac_includes_default
16832int
16833main ()
16834{
16835static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16836test_array [0] = 0
16837
16838 ;
16839 return 0;
16840}
16841_ACEOF
16842rm -f conftest.$ac_objext
16843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16844 (eval $ac_compile) 2>conftest.er1
a848cd7e 16845 ac_status=$?
ac1cb8d3
VS
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
a848cd7e
SC
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
0093c2fc 16851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; } &&
16857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_hi=-1 ac_mid=-1
16864 while :; do
16865 cat >conftest.$ac_ext <<_ACEOF
16866/* confdefs.h. */
16867_ACEOF
16868cat confdefs.h >>conftest.$ac_ext
16869cat >>conftest.$ac_ext <<_ACEOF
16870/* end confdefs.h. */
16871$ac_includes_default
16872int
16873main ()
16874{
16875static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16876test_array [0] = 0
16877
16878 ;
16879 return 0;
16880}
16881_ACEOF
16882rm -f conftest.$ac_objext
16883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16884 (eval $ac_compile) 2>conftest.er1
a848cd7e 16885 ac_status=$?
ac1cb8d3
VS
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
a848cd7e
SC
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } &&
0093c2fc 16891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; }; then
16903 ac_lo=$ac_mid; break
16904else
16905 echo "$as_me: failed program was:" >&5
16906sed 's/^/| /' conftest.$ac_ext >&5
16907
16908ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16909 if test $ac_mid -le $ac_hi; then
16910 ac_lo= ac_hi=
16911 break
16912 fi
16913 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16914fi
ac1cb8d3 16915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16916 done
16917else
16918 echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
16921ac_lo= ac_hi=
16922fi
ac1cb8d3 16923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16924fi
ac1cb8d3 16925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16926# Binary search between lo and hi bounds.
16927while test "x$ac_lo" != "x$ac_hi"; do
16928 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16929 cat >conftest.$ac_ext <<_ACEOF
16930/* confdefs.h. */
16931_ACEOF
16932cat confdefs.h >>conftest.$ac_ext
16933cat >>conftest.$ac_ext <<_ACEOF
16934/* end confdefs.h. */
16935$ac_includes_default
16936int
16937main ()
16938{
16939static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16940test_array [0] = 0
16941
16942 ;
16943 return 0;
16944}
16945_ACEOF
16946rm -f conftest.$ac_objext
16947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16948 (eval $ac_compile) 2>conftest.er1
a848cd7e 16949 ac_status=$?
ac1cb8d3
VS
16950 grep -v '^ *+' conftest.er1 >conftest.err
16951 rm -f conftest.er1
16952 cat conftest.err >&5
a848cd7e
SC
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
0093c2fc 16955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; } &&
16961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; }; then
16967 ac_hi=$ac_mid
16968else
16969 echo "$as_me: failed program was:" >&5
16970sed 's/^/| /' conftest.$ac_ext >&5
16971
16972ac_lo=`expr '(' $ac_mid ')' + 1`
16973fi
ac1cb8d3 16974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16975done
16976case $ac_lo in
16977?*) ac_cv_sizeof_char=$ac_lo;;
16978'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16979See \`config.log' for more details." >&5
16980echo "$as_me: error: cannot compute sizeof (char), 77
16981See \`config.log' for more details." >&2;}
16982 { (exit 1); exit 1; }; } ;;
16983esac
16984else
16985 if test "$cross_compiling" = yes; then
0093c2fc
VZ
16986 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16987echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16988 { (exit 1); exit 1; }; }
16989else
16990 cat >conftest.$ac_ext <<_ACEOF
16991/* confdefs.h. */
16992_ACEOF
16993cat confdefs.h >>conftest.$ac_ext
16994cat >>conftest.$ac_ext <<_ACEOF
16995/* end confdefs.h. */
16996$ac_includes_default
16997long longval () { return (long) (sizeof (char)); }
16998unsigned long ulongval () { return (long) (sizeof (char)); }
16999#include <stdio.h>
17000#include <stdlib.h>
17001int
17002main ()
17003{
17004
17005 FILE *f = fopen ("conftest.val", "w");
17006 if (! f)
17007 exit (1);
17008 if (((long) (sizeof (char))) < 0)
17009 {
17010 long i = longval ();
17011 if (i != ((long) (sizeof (char))))
17012 exit (1);
17013 fprintf (f, "%ld\n", i);
17014 }
17015 else
17016 {
17017 unsigned long i = ulongval ();
17018 if (i != ((long) (sizeof (char))))
17019 exit (1);
17020 fprintf (f, "%lu\n", i);
17021 }
17022 exit (ferror (f) || fclose (f) != 0);
17023
17024 ;
17025 return 0;
17026}
17027_ACEOF
17028rm -f conftest$ac_exeext
17029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17030 (eval $ac_link) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_cv_sizeof_char=`cat conftest.val`
17040else
17041 echo "$as_me: program exited with status $ac_status" >&5
17042echo "$as_me: failed program was:" >&5
17043sed 's/^/| /' conftest.$ac_ext >&5
17044
17045( exit $ac_status )
17046{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17047See \`config.log' for more details." >&5
17048echo "$as_me: error: cannot compute sizeof (char), 77
17049See \`config.log' for more details." >&2;}
17050 { (exit 1); exit 1; }; }
17051fi
ac1cb8d3 17052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17053fi
17054fi
17055rm -f conftest.val
17056else
17057 ac_cv_sizeof_char=0
17058fi
17059fi
17060echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17061echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17062cat >>confdefs.h <<_ACEOF
17063#define SIZEOF_CHAR $ac_cv_sizeof_char
17064_ACEOF
17065
17066
17067echo "$as_me:$LINENO: checking for short" >&5
17068echo $ECHO_N "checking for short... $ECHO_C" >&6
17069if test "${ac_cv_type_short+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17071else
17072 cat >conftest.$ac_ext <<_ACEOF
17073/* confdefs.h. */
17074_ACEOF
17075cat confdefs.h >>conftest.$ac_ext
17076cat >>conftest.$ac_ext <<_ACEOF
17077/* end confdefs.h. */
17078$ac_includes_default
17079int
17080main ()
17081{
17082if ((short *) 0)
17083 return 0;
17084if (sizeof (short))
17085 return 0;
17086 ;
17087 return 0;
17088}
17089_ACEOF
17090rm -f conftest.$ac_objext
17091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17092 (eval $ac_compile) 2>conftest.er1
a848cd7e 17093 ac_status=$?
ac1cb8d3
VS
17094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
a848cd7e
SC
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
0093c2fc 17099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_cv_type_short=yes
17112else
17113 echo "$as_me: failed program was:" >&5
17114sed 's/^/| /' conftest.$ac_ext >&5
17115
17116ac_cv_type_short=no
17117fi
ac1cb8d3 17118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17119fi
17120echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17121echo "${ECHO_T}$ac_cv_type_short" >&6
17122
17123echo "$as_me:$LINENO: checking size of short" >&5
17124echo $ECHO_N "checking size of short... $ECHO_C" >&6
17125if test "${ac_cv_sizeof_short+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17127else
17128 if test "$ac_cv_type_short" = yes; then
17129 # The cast to unsigned long works around a bug in the HP C Compiler
17130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17132 # This bug is HP SR number 8606223364.
17133 if test "$cross_compiling" = yes; then
17134 # Depending upon the size, compute the lo and hi bounds.
17135cat >conftest.$ac_ext <<_ACEOF
17136/* confdefs.h. */
17137_ACEOF
17138cat confdefs.h >>conftest.$ac_ext
17139cat >>conftest.$ac_ext <<_ACEOF
17140/* end confdefs.h. */
17141$ac_includes_default
17142int
17143main ()
17144{
17145static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17146test_array [0] = 0
17147
17148 ;
17149 return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext
17153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17154 (eval $ac_compile) 2>conftest.er1
a848cd7e 17155 ac_status=$?
ac1cb8d3
VS
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
a848cd7e
SC
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
0093c2fc 17161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_lo=0 ac_mid=0
17174 while :; do
17175 cat >conftest.$ac_ext <<_ACEOF
17176/* confdefs.h. */
17177_ACEOF
17178cat confdefs.h >>conftest.$ac_ext
17179cat >>conftest.$ac_ext <<_ACEOF
17180/* end confdefs.h. */
17181$ac_includes_default
17182int
17183main ()
17184{
17185static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17186test_array [0] = 0
17187
17188 ;
17189 return 0;
17190}
17191_ACEOF
17192rm -f conftest.$ac_objext
17193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17194 (eval $ac_compile) 2>conftest.er1
a848cd7e 17195 ac_status=$?
ac1cb8d3
VS
17196 grep -v '^ *+' conftest.er1 >conftest.err
17197 rm -f conftest.er1
17198 cat conftest.err >&5
a848cd7e
SC
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } &&
0093c2fc 17201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } &&
17207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 ac_hi=$ac_mid; break
17214else
17215 echo "$as_me: failed program was:" >&5
17216sed 's/^/| /' conftest.$ac_ext >&5
17217
17218ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17219 if test $ac_lo -le $ac_mid; then
17220 ac_lo= ac_hi=
17221 break
17222 fi
17223 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17224fi
ac1cb8d3 17225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17226 done
17227else
17228 echo "$as_me: failed program was:" >&5
17229sed 's/^/| /' conftest.$ac_ext >&5
17230
17231cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
17237$ac_includes_default
17238int
17239main ()
17240{
17241static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17242test_array [0] = 0
17243
17244 ;
17245 return 0;
17246}
17247_ACEOF
17248rm -f conftest.$ac_objext
17249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17250 (eval $ac_compile) 2>conftest.er1
a848cd7e 17251 ac_status=$?
ac1cb8d3
VS
17252 grep -v '^ *+' conftest.er1 >conftest.err
17253 rm -f conftest.er1
17254 cat conftest.err >&5
a848cd7e
SC
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
0093c2fc 17257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 ac_hi=-1 ac_mid=-1
17270 while :; do
17271 cat >conftest.$ac_ext <<_ACEOF
17272/* confdefs.h. */
17273_ACEOF
17274cat confdefs.h >>conftest.$ac_ext
17275cat >>conftest.$ac_ext <<_ACEOF
17276/* end confdefs.h. */
17277$ac_includes_default
17278int
17279main ()
17280{
17281static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17282test_array [0] = 0
17283
17284 ;
17285 return 0;
17286}
17287_ACEOF
17288rm -f conftest.$ac_objext
17289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17290 (eval $ac_compile) 2>conftest.er1
a848cd7e 17291 ac_status=$?
ac1cb8d3
VS
17292 grep -v '^ *+' conftest.er1 >conftest.err
17293 rm -f conftest.er1
17294 cat conftest.err >&5
a848cd7e
SC
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } &&
0093c2fc 17297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 ac_lo=$ac_mid; break
17310else
17311 echo "$as_me: failed program was:" >&5
17312sed 's/^/| /' conftest.$ac_ext >&5
17313
17314ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17315 if test $ac_mid -le $ac_hi; then
17316 ac_lo= ac_hi=
17317 break
17318 fi
17319 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17320fi
ac1cb8d3 17321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17322 done
17323else
17324 echo "$as_me: failed program was:" >&5
17325sed 's/^/| /' conftest.$ac_ext >&5
17326
17327ac_lo= ac_hi=
17328fi
ac1cb8d3 17329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17330fi
ac1cb8d3 17331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17332# Binary search between lo and hi bounds.
17333while test "x$ac_lo" != "x$ac_hi"; do
17334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17335 cat >conftest.$ac_ext <<_ACEOF
17336/* confdefs.h. */
17337_ACEOF
17338cat confdefs.h >>conftest.$ac_ext
17339cat >>conftest.$ac_ext <<_ACEOF
17340/* end confdefs.h. */
17341$ac_includes_default
17342int
17343main ()
17344{
17345static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17346test_array [0] = 0
17347
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext
17353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17354 (eval $ac_compile) 2>conftest.er1
a848cd7e 17355 ac_status=$?
ac1cb8d3
VS
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
a848cd7e
SC
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
0093c2fc 17361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; } &&
17367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
17373 ac_hi=$ac_mid
17374else
17375 echo "$as_me: failed program was:" >&5
17376sed 's/^/| /' conftest.$ac_ext >&5
17377
17378ac_lo=`expr '(' $ac_mid ')' + 1`
17379fi
ac1cb8d3 17380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17381done
17382case $ac_lo in
17383?*) ac_cv_sizeof_short=$ac_lo;;
17384'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17385See \`config.log' for more details." >&5
17386echo "$as_me: error: cannot compute sizeof (short), 77
17387See \`config.log' for more details." >&2;}
17388 { (exit 1); exit 1; }; } ;;
17389esac
17390else
17391 if test "$cross_compiling" = yes; then
0093c2fc
VZ
17392 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17393echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17394 { (exit 1); exit 1; }; }
17395else
17396 cat >conftest.$ac_ext <<_ACEOF
17397/* confdefs.h. */
17398_ACEOF
17399cat confdefs.h >>conftest.$ac_ext
17400cat >>conftest.$ac_ext <<_ACEOF
17401/* end confdefs.h. */
17402$ac_includes_default
17403long longval () { return (long) (sizeof (short)); }
17404unsigned long ulongval () { return (long) (sizeof (short)); }
17405#include <stdio.h>
17406#include <stdlib.h>
17407int
17408main ()
17409{
17410
17411 FILE *f = fopen ("conftest.val", "w");
17412 if (! f)
17413 exit (1);
17414 if (((long) (sizeof (short))) < 0)
17415 {
17416 long i = longval ();
17417 if (i != ((long) (sizeof (short))))
17418 exit (1);
17419 fprintf (f, "%ld\n", i);
17420 }
17421 else
17422 {
17423 unsigned long i = ulongval ();
17424 if (i != ((long) (sizeof (short))))
17425 exit (1);
17426 fprintf (f, "%lu\n", i);
17427 }
17428 exit (ferror (f) || fclose (f) != 0);
17429
17430 ;
17431 return 0;
17432}
17433_ACEOF
17434rm -f conftest$ac_exeext
17435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17436 (eval $ac_link) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 ac_cv_sizeof_short=`cat conftest.val`
17446else
17447 echo "$as_me: program exited with status $ac_status" >&5
17448echo "$as_me: failed program was:" >&5
17449sed 's/^/| /' conftest.$ac_ext >&5
17450
17451( exit $ac_status )
17452{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17453See \`config.log' for more details." >&5
17454echo "$as_me: error: cannot compute sizeof (short), 77
17455See \`config.log' for more details." >&2;}
17456 { (exit 1); exit 1; }; }
17457fi
ac1cb8d3 17458rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17459fi
17460fi
17461rm -f conftest.val
17462else
17463 ac_cv_sizeof_short=0
17464fi
17465fi
17466echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17467echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17468cat >>confdefs.h <<_ACEOF
17469#define SIZEOF_SHORT $ac_cv_sizeof_short
17470_ACEOF
17471
17472
17473echo "$as_me:$LINENO: checking for void *" >&5
17474echo $ECHO_N "checking for void *... $ECHO_C" >&6
17475if test "${ac_cv_type_void_p+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477else
17478 cat >conftest.$ac_ext <<_ACEOF
17479/* confdefs.h. */
17480_ACEOF
17481cat confdefs.h >>conftest.$ac_ext
17482cat >>conftest.$ac_ext <<_ACEOF
17483/* end confdefs.h. */
17484$ac_includes_default
17485int
17486main ()
17487{
17488if ((void * *) 0)
17489 return 0;
17490if (sizeof (void *))
17491 return 0;
17492 ;
17493 return 0;
17494}
17495_ACEOF
17496rm -f conftest.$ac_objext
17497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17498 (eval $ac_compile) 2>conftest.er1
a848cd7e 17499 ac_status=$?
ac1cb8d3
VS
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
a848cd7e
SC
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
0093c2fc 17505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_cv_type_void_p=yes
17518else
17519 echo "$as_me: failed program was:" >&5
17520sed 's/^/| /' conftest.$ac_ext >&5
17521
17522ac_cv_type_void_p=no
17523fi
ac1cb8d3 17524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17525fi
17526echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17527echo "${ECHO_T}$ac_cv_type_void_p" >&6
17528
17529echo "$as_me:$LINENO: checking size of void *" >&5
17530echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17531if test "${ac_cv_sizeof_void_p+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17533else
17534 if test "$ac_cv_type_void_p" = yes; then
17535 # The cast to unsigned long works around a bug in the HP C Compiler
17536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17538 # This bug is HP SR number 8606223364.
17539 if test "$cross_compiling" = yes; then
17540 # Depending upon the size, compute the lo and hi bounds.
17541cat >conftest.$ac_ext <<_ACEOF
17542/* confdefs.h. */
17543_ACEOF
17544cat confdefs.h >>conftest.$ac_ext
17545cat >>conftest.$ac_ext <<_ACEOF
17546/* end confdefs.h. */
17547$ac_includes_default
17548int
17549main ()
17550{
17551static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17552test_array [0] = 0
17553
17554 ;
17555 return 0;
17556}
17557_ACEOF
17558rm -f conftest.$ac_objext
17559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17560 (eval $ac_compile) 2>conftest.er1
a848cd7e 17561 ac_status=$?
ac1cb8d3
VS
17562 grep -v '^ *+' conftest.er1 >conftest.err
17563 rm -f conftest.er1
17564 cat conftest.err >&5
a848cd7e
SC
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); } &&
0093c2fc 17567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569 (eval $ac_try) 2>&5
17570 ac_status=$?
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; } &&
17573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; }; then
17579 ac_lo=0 ac_mid=0
17580 while :; do
17581 cat >conftest.$ac_ext <<_ACEOF
17582/* confdefs.h. */
17583_ACEOF
17584cat confdefs.h >>conftest.$ac_ext
17585cat >>conftest.$ac_ext <<_ACEOF
17586/* end confdefs.h. */
17587$ac_includes_default
17588int
17589main ()
17590{
17591static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17592test_array [0] = 0
17593
17594 ;
17595 return 0;
17596}
17597_ACEOF
17598rm -f conftest.$ac_objext
17599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17600 (eval $ac_compile) 2>conftest.er1
a848cd7e 17601 ac_status=$?
ac1cb8d3
VS
17602 grep -v '^ *+' conftest.er1 >conftest.err
17603 rm -f conftest.er1
17604 cat conftest.err >&5
a848cd7e
SC
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } &&
0093c2fc 17607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17619 ac_hi=$ac_mid; break
17620else
17621 echo "$as_me: failed program was:" >&5
17622sed 's/^/| /' conftest.$ac_ext >&5
17623
17624ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17625 if test $ac_lo -le $ac_mid; then
17626 ac_lo= ac_hi=
17627 break
17628 fi
17629 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17630fi
ac1cb8d3 17631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17632 done
17633else
17634 echo "$as_me: failed program was:" >&5
17635sed 's/^/| /' conftest.$ac_ext >&5
17636
17637cat >conftest.$ac_ext <<_ACEOF
17638/* confdefs.h. */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h. */
17643$ac_includes_default
17644int
17645main ()
17646{
17647static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17648test_array [0] = 0
17649
17650 ;
17651 return 0;
17652}
17653_ACEOF
17654rm -f conftest.$ac_objext
17655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17656 (eval $ac_compile) 2>conftest.er1
a848cd7e 17657 ac_status=$?
ac1cb8d3
VS
17658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
a848cd7e
SC
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
0093c2fc 17663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 ac_hi=-1 ac_mid=-1
17676 while :; do
17677 cat >conftest.$ac_ext <<_ACEOF
17678/* confdefs.h. */
17679_ACEOF
17680cat confdefs.h >>conftest.$ac_ext
17681cat >>conftest.$ac_ext <<_ACEOF
17682/* end confdefs.h. */
17683$ac_includes_default
17684int
17685main ()
17686{
17687static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17688test_array [0] = 0
17689
17690 ;
17691 return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext
17695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17696 (eval $ac_compile) 2>conftest.er1
a848cd7e 17697 ac_status=$?
ac1cb8d3
VS
17698 grep -v '^ *+' conftest.er1 >conftest.err
17699 rm -f conftest.er1
17700 cat conftest.err >&5
a848cd7e
SC
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } &&
0093c2fc 17703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 ac_lo=$ac_mid; break
17716else
17717 echo "$as_me: failed program was:" >&5
17718sed 's/^/| /' conftest.$ac_ext >&5
17719
17720ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17721 if test $ac_mid -le $ac_hi; then
17722 ac_lo= ac_hi=
17723 break
17724 fi
17725 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17726fi
ac1cb8d3 17727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17728 done
17729else
17730 echo "$as_me: failed program was:" >&5
17731sed 's/^/| /' conftest.$ac_ext >&5
17732
17733ac_lo= ac_hi=
17734fi
ac1cb8d3 17735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17736fi
ac1cb8d3 17737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17738# Binary search between lo and hi bounds.
17739while test "x$ac_lo" != "x$ac_hi"; do
17740 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17741 cat >conftest.$ac_ext <<_ACEOF
17742/* confdefs.h. */
17743_ACEOF
17744cat confdefs.h >>conftest.$ac_ext
17745cat >>conftest.$ac_ext <<_ACEOF
17746/* end confdefs.h. */
17747$ac_includes_default
17748int
17749main ()
17750{
17751static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17752test_array [0] = 0
17753
17754 ;
17755 return 0;
17756}
17757_ACEOF
17758rm -f conftest.$ac_objext
17759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17760 (eval $ac_compile) 2>conftest.er1
a848cd7e 17761 ac_status=$?
ac1cb8d3
VS
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
a848cd7e
SC
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
0093c2fc 17767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; } &&
17773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17779 ac_hi=$ac_mid
17780else
17781 echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784ac_lo=`expr '(' $ac_mid ')' + 1`
17785fi
ac1cb8d3 17786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17787done
17788case $ac_lo in
17789?*) ac_cv_sizeof_void_p=$ac_lo;;
17790'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17791See \`config.log' for more details." >&5
17792echo "$as_me: error: cannot compute sizeof (void *), 77
17793See \`config.log' for more details." >&2;}
17794 { (exit 1); exit 1; }; } ;;
17795esac
17796else
17797 if test "$cross_compiling" = yes; then
0093c2fc
VZ
17798 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17799echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17800 { (exit 1); exit 1; }; }
17801else
17802 cat >conftest.$ac_ext <<_ACEOF
17803/* confdefs.h. */
17804_ACEOF
17805cat confdefs.h >>conftest.$ac_ext
17806cat >>conftest.$ac_ext <<_ACEOF
17807/* end confdefs.h. */
17808$ac_includes_default
17809long longval () { return (long) (sizeof (void *)); }
17810unsigned long ulongval () { return (long) (sizeof (void *)); }
17811#include <stdio.h>
17812#include <stdlib.h>
17813int
17814main ()
17815{
17816
17817 FILE *f = fopen ("conftest.val", "w");
17818 if (! f)
17819 exit (1);
17820 if (((long) (sizeof (void *))) < 0)
17821 {
17822 long i = longval ();
17823 if (i != ((long) (sizeof (void *))))
17824 exit (1);
17825 fprintf (f, "%ld\n", i);
17826 }
17827 else
17828 {
17829 unsigned long i = ulongval ();
17830 if (i != ((long) (sizeof (void *))))
17831 exit (1);
17832 fprintf (f, "%lu\n", i);
17833 }
17834 exit (ferror (f) || fclose (f) != 0);
17835
17836 ;
17837 return 0;
17838}
17839_ACEOF
17840rm -f conftest$ac_exeext
17841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17842 (eval $ac_link) 2>&5
17843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 ac_cv_sizeof_void_p=`cat conftest.val`
17852else
17853 echo "$as_me: program exited with status $ac_status" >&5
17854echo "$as_me: failed program was:" >&5
17855sed 's/^/| /' conftest.$ac_ext >&5
17856
17857( exit $ac_status )
17858{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17859See \`config.log' for more details." >&5
17860echo "$as_me: error: cannot compute sizeof (void *), 77
17861See \`config.log' for more details." >&2;}
17862 { (exit 1); exit 1; }; }
17863fi
ac1cb8d3 17864rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17865fi
17866fi
17867rm -f conftest.val
17868else
17869 ac_cv_sizeof_void_p=0
17870fi
17871fi
17872echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17873echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17874cat >>confdefs.h <<_ACEOF
17875#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17876_ACEOF
17877
17878
17879echo "$as_me:$LINENO: checking for int" >&5
17880echo $ECHO_N "checking for int... $ECHO_C" >&6
17881if test "${ac_cv_type_int+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17883else
17884 cat >conftest.$ac_ext <<_ACEOF
17885/* confdefs.h. */
17886_ACEOF
17887cat confdefs.h >>conftest.$ac_ext
17888cat >>conftest.$ac_ext <<_ACEOF
17889/* end confdefs.h. */
17890$ac_includes_default
17891int
17892main ()
17893{
17894if ((int *) 0)
17895 return 0;
17896if (sizeof (int))
17897 return 0;
17898 ;
17899 return 0;
17900}
17901_ACEOF
17902rm -f conftest.$ac_objext
17903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17904 (eval $ac_compile) 2>conftest.er1
a848cd7e 17905 ac_status=$?
ac1cb8d3
VS
17906 grep -v '^ *+' conftest.er1 >conftest.err
17907 rm -f conftest.er1
17908 cat conftest.err >&5
a848cd7e
SC
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
0093c2fc 17911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; }; then
17923 ac_cv_type_int=yes
17924else
17925 echo "$as_me: failed program was:" >&5
17926sed 's/^/| /' conftest.$ac_ext >&5
17927
17928ac_cv_type_int=no
17929fi
ac1cb8d3 17930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17931fi
17932echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17933echo "${ECHO_T}$ac_cv_type_int" >&6
17934
17935echo "$as_me:$LINENO: checking size of int" >&5
17936echo $ECHO_N "checking size of int... $ECHO_C" >&6
17937if test "${ac_cv_sizeof_int+set}" = set; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17939else
17940 if test "$ac_cv_type_int" = yes; then
17941 # The cast to unsigned long works around a bug in the HP C Compiler
17942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17944 # This bug is HP SR number 8606223364.
17945 if test "$cross_compiling" = yes; then
17946 # Depending upon the size, compute the lo and hi bounds.
17947cat >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 (int))) >= 0)];
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); } &&
0093c2fc 17973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_lo=0 ac_mid=0
17986 while :; do
17987 cat >conftest.$ac_ext <<_ACEOF
17988/* confdefs.h. */
17989_ACEOF
17990cat confdefs.h >>conftest.$ac_ext
17991cat >>conftest.$ac_ext <<_ACEOF
17992/* end confdefs.h. */
17993$ac_includes_default
17994int
17995main ()
17996{
17997static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17998test_array [0] = 0
17999
18000 ;
18001 return 0;
18002}
18003_ACEOF
18004rm -f conftest.$ac_objext
18005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18006 (eval $ac_compile) 2>conftest.er1
a848cd7e 18007 ac_status=$?
ac1cb8d3
VS
18008 grep -v '^ *+' conftest.er1 >conftest.err
18009 rm -f conftest.er1
18010 cat conftest.err >&5
a848cd7e
SC
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } &&
0093c2fc 18013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015 (eval $ac_try) 2>&5
18016 ac_status=$?
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; } &&
18019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; }; then
18025 ac_hi=$ac_mid; break
18026else
18027 echo "$as_me: failed program was:" >&5
18028sed 's/^/| /' conftest.$ac_ext >&5
18029
18030ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18031 if test $ac_lo -le $ac_mid; then
18032 ac_lo= ac_hi=
18033 break
18034 fi
18035 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18036fi
ac1cb8d3 18037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18038 done
18039else
18040 echo "$as_me: failed program was:" >&5
18041sed 's/^/| /' conftest.$ac_ext >&5
18042
18043cat >conftest.$ac_ext <<_ACEOF
18044/* confdefs.h. */
18045_ACEOF
18046cat confdefs.h >>conftest.$ac_ext
18047cat >>conftest.$ac_ext <<_ACEOF
18048/* end confdefs.h. */
18049$ac_includes_default
18050int
18051main ()
18052{
18053static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18054test_array [0] = 0
18055
18056 ;
18057 return 0;
18058}
18059_ACEOF
18060rm -f conftest.$ac_objext
18061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18062 (eval $ac_compile) 2>conftest.er1
a848cd7e 18063 ac_status=$?
ac1cb8d3
VS
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
a848cd7e
SC
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
0093c2fc 18069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; }; then
18081 ac_hi=-1 ac_mid=-1
18082 while :; do
18083 cat >conftest.$ac_ext <<_ACEOF
18084/* confdefs.h. */
18085_ACEOF
18086cat confdefs.h >>conftest.$ac_ext
18087cat >>conftest.$ac_ext <<_ACEOF
18088/* end confdefs.h. */
18089$ac_includes_default
18090int
18091main ()
18092{
18093static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18094test_array [0] = 0
18095
18096 ;
18097 return 0;
18098}
18099_ACEOF
18100rm -f conftest.$ac_objext
18101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18102 (eval $ac_compile) 2>conftest.er1
a848cd7e 18103 ac_status=$?
ac1cb8d3
VS
18104 grep -v '^ *+' conftest.er1 >conftest.err
18105 rm -f conftest.er1
18106 cat conftest.err >&5
a848cd7e
SC
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
0093c2fc 18109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18112 ac_status=$?
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; } &&
18115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 ac_lo=$ac_mid; break
18122else
18123 echo "$as_me: failed program was:" >&5
18124sed 's/^/| /' conftest.$ac_ext >&5
18125
18126ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18127 if test $ac_mid -le $ac_hi; then
18128 ac_lo= ac_hi=
18129 break
18130 fi
18131 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18132fi
ac1cb8d3 18133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18134 done
18135else
18136 echo "$as_me: failed program was:" >&5
18137sed 's/^/| /' conftest.$ac_ext >&5
18138
18139ac_lo= ac_hi=
18140fi
ac1cb8d3 18141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18142fi
ac1cb8d3 18143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18144# Binary search between lo and hi bounds.
18145while test "x$ac_lo" != "x$ac_hi"; do
18146 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18147 cat >conftest.$ac_ext <<_ACEOF
18148/* confdefs.h. */
18149_ACEOF
18150cat confdefs.h >>conftest.$ac_ext
18151cat >>conftest.$ac_ext <<_ACEOF
18152/* end confdefs.h. */
18153$ac_includes_default
18154int
18155main ()
18156{
18157static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18158test_array [0] = 0
18159
18160 ;
18161 return 0;
18162}
18163_ACEOF
18164rm -f conftest.$ac_objext
18165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18166 (eval $ac_compile) 2>conftest.er1
a848cd7e 18167 ac_status=$?
ac1cb8d3
VS
18168 grep -v '^ *+' conftest.er1 >conftest.err
18169 rm -f conftest.er1
18170 cat conftest.err >&5
a848cd7e
SC
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } &&
0093c2fc 18173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_hi=$ac_mid
18186else
18187 echo "$as_me: failed program was:" >&5
18188sed 's/^/| /' conftest.$ac_ext >&5
18189
18190ac_lo=`expr '(' $ac_mid ')' + 1`
18191fi
ac1cb8d3 18192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18193done
18194case $ac_lo in
18195?*) ac_cv_sizeof_int=$ac_lo;;
18196'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18197See \`config.log' for more details." >&5
18198echo "$as_me: error: cannot compute sizeof (int), 77
18199See \`config.log' for more details." >&2;}
18200 { (exit 1); exit 1; }; } ;;
18201esac
18202else
18203 if test "$cross_compiling" = yes; then
0093c2fc
VZ
18204 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18205echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18206 { (exit 1); exit 1; }; }
18207else
18208 cat >conftest.$ac_ext <<_ACEOF
18209/* confdefs.h. */
18210_ACEOF
18211cat confdefs.h >>conftest.$ac_ext
18212cat >>conftest.$ac_ext <<_ACEOF
18213/* end confdefs.h. */
18214$ac_includes_default
18215long longval () { return (long) (sizeof (int)); }
18216unsigned long ulongval () { return (long) (sizeof (int)); }
18217#include <stdio.h>
18218#include <stdlib.h>
18219int
18220main ()
18221{
18222
18223 FILE *f = fopen ("conftest.val", "w");
18224 if (! f)
18225 exit (1);
18226 if (((long) (sizeof (int))) < 0)
18227 {
18228 long i = longval ();
18229 if (i != ((long) (sizeof (int))))
18230 exit (1);
18231 fprintf (f, "%ld\n", i);
18232 }
18233 else
18234 {
18235 unsigned long i = ulongval ();
18236 if (i != ((long) (sizeof (int))))
18237 exit (1);
18238 fprintf (f, "%lu\n", i);
18239 }
18240 exit (ferror (f) || fclose (f) != 0);
18241
18242 ;
18243 return 0;
18244}
18245_ACEOF
18246rm -f conftest$ac_exeext
18247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18248 (eval $ac_link) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18254 ac_status=$?
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; }; then
18257 ac_cv_sizeof_int=`cat conftest.val`
18258else
18259 echo "$as_me: program exited with status $ac_status" >&5
18260echo "$as_me: failed program was:" >&5
18261sed 's/^/| /' conftest.$ac_ext >&5
18262
18263( exit $ac_status )
18264{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18265See \`config.log' for more details." >&5
18266echo "$as_me: error: cannot compute sizeof (int), 77
18267See \`config.log' for more details." >&2;}
18268 { (exit 1); exit 1; }; }
18269fi
ac1cb8d3 18270rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18271fi
18272fi
18273rm -f conftest.val
18274else
18275 ac_cv_sizeof_int=0
18276fi
18277fi
18278echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18279echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18280cat >>confdefs.h <<_ACEOF
18281#define SIZEOF_INT $ac_cv_sizeof_int
18282_ACEOF
18283
18284
18285echo "$as_me:$LINENO: checking for long" >&5
18286echo $ECHO_N "checking for long... $ECHO_C" >&6
18287if test "${ac_cv_type_long+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18289else
18290 cat >conftest.$ac_ext <<_ACEOF
18291/* confdefs.h. */
18292_ACEOF
18293cat confdefs.h >>conftest.$ac_ext
18294cat >>conftest.$ac_ext <<_ACEOF
18295/* end confdefs.h. */
18296$ac_includes_default
18297int
18298main ()
18299{
18300if ((long *) 0)
18301 return 0;
18302if (sizeof (long))
18303 return 0;
18304 ;
18305 return 0;
18306}
18307_ACEOF
18308rm -f conftest.$ac_objext
18309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18310 (eval $ac_compile) 2>conftest.er1
a848cd7e 18311 ac_status=$?
ac1cb8d3
VS
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
a848cd7e
SC
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
0093c2fc 18317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319 (eval $ac_try) 2>&5
18320 ac_status=$?
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; } &&
18323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18329 ac_cv_type_long=yes
18330else
18331 echo "$as_me: failed program was:" >&5
18332sed 's/^/| /' conftest.$ac_ext >&5
18333
18334ac_cv_type_long=no
18335fi
ac1cb8d3 18336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18337fi
18338echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18339echo "${ECHO_T}$ac_cv_type_long" >&6
18340
18341echo "$as_me:$LINENO: checking size of long" >&5
18342echo $ECHO_N "checking size of long... $ECHO_C" >&6
18343if test "${ac_cv_sizeof_long+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18345else
18346 if test "$ac_cv_type_long" = yes; then
18347 # The cast to unsigned long works around a bug in the HP C Compiler
18348 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18349 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18350 # This bug is HP SR number 8606223364.
18351 if test "$cross_compiling" = yes; then
18352 # Depending upon the size, compute the lo and hi bounds.
18353cat >conftest.$ac_ext <<_ACEOF
18354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
18358/* end confdefs.h. */
18359$ac_includes_default
18360int
18361main ()
18362{
18363static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18364test_array [0] = 0
18365
18366 ;
18367 return 0;
18368}
18369_ACEOF
18370rm -f conftest.$ac_objext
18371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18372 (eval $ac_compile) 2>conftest.er1
a848cd7e 18373 ac_status=$?
ac1cb8d3
VS
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
a848cd7e
SC
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
0093c2fc 18379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_lo=0 ac_mid=0
18392 while :; do
18393 cat >conftest.$ac_ext <<_ACEOF
18394/* confdefs.h. */
18395_ACEOF
18396cat confdefs.h >>conftest.$ac_ext
18397cat >>conftest.$ac_ext <<_ACEOF
18398/* end confdefs.h. */
18399$ac_includes_default
18400int
18401main ()
18402{
18403static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18404test_array [0] = 0
18405
18406 ;
18407 return 0;
18408}
18409_ACEOF
18410rm -f conftest.$ac_objext
18411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18412 (eval $ac_compile) 2>conftest.er1
a848cd7e 18413 ac_status=$?
ac1cb8d3
VS
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
a848cd7e
SC
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
0093c2fc 18419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; } &&
18425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_hi=$ac_mid; break
18432else
18433 echo "$as_me: failed program was:" >&5
18434sed 's/^/| /' conftest.$ac_ext >&5
18435
18436ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18437 if test $ac_lo -le $ac_mid; then
18438 ac_lo= ac_hi=
18439 break
18440 fi
18441 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18442fi
ac1cb8d3 18443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18444 done
18445else
18446 echo "$as_me: failed program was:" >&5
18447sed 's/^/| /' conftest.$ac_ext >&5
18448
18449cat >conftest.$ac_ext <<_ACEOF
18450/* confdefs.h. */
18451_ACEOF
18452cat confdefs.h >>conftest.$ac_ext
18453cat >>conftest.$ac_ext <<_ACEOF
18454/* end confdefs.h. */
18455$ac_includes_default
18456int
18457main ()
18458{
18459static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18460test_array [0] = 0
18461
18462 ;
18463 return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext
18467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18468 (eval $ac_compile) 2>conftest.er1
a848cd7e 18469 ac_status=$?
ac1cb8d3
VS
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
a848cd7e
SC
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
0093c2fc 18475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_hi=-1 ac_mid=-1
18488 while :; do
18489 cat >conftest.$ac_ext <<_ACEOF
18490/* confdefs.h. */
18491_ACEOF
18492cat confdefs.h >>conftest.$ac_ext
18493cat >>conftest.$ac_ext <<_ACEOF
18494/* end confdefs.h. */
18495$ac_includes_default
18496int
18497main ()
18498{
18499static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18500test_array [0] = 0
18501
18502 ;
18503 return 0;
18504}
18505_ACEOF
18506rm -f conftest.$ac_objext
18507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18508 (eval $ac_compile) 2>conftest.er1
a848cd7e 18509 ac_status=$?
ac1cb8d3
VS
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
a848cd7e
SC
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } &&
0093c2fc 18515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517 (eval $ac_try) 2>&5
18518 ac_status=$?
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); }; } &&
18521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; }; then
18527 ac_lo=$ac_mid; break
18528else
18529 echo "$as_me: failed program was:" >&5
18530sed 's/^/| /' conftest.$ac_ext >&5
18531
18532ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18533 if test $ac_mid -le $ac_hi; then
18534 ac_lo= ac_hi=
18535 break
18536 fi
18537 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18538fi
ac1cb8d3 18539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18540 done
18541else
18542 echo "$as_me: failed program was:" >&5
18543sed 's/^/| /' conftest.$ac_ext >&5
18544
18545ac_lo= ac_hi=
18546fi
ac1cb8d3 18547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18548fi
ac1cb8d3 18549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18550# Binary search between lo and hi bounds.
18551while test "x$ac_lo" != "x$ac_hi"; do
18552 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18553 cat >conftest.$ac_ext <<_ACEOF
18554/* confdefs.h. */
18555_ACEOF
18556cat confdefs.h >>conftest.$ac_ext
18557cat >>conftest.$ac_ext <<_ACEOF
18558/* end confdefs.h. */
18559$ac_includes_default
18560int
18561main ()
18562{
18563static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18564test_array [0] = 0
18565
18566 ;
18567 return 0;
18568}
18569_ACEOF
18570rm -f conftest.$ac_objext
18571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18572 (eval $ac_compile) 2>conftest.er1
a848cd7e 18573 ac_status=$?
ac1cb8d3
VS
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
a848cd7e
SC
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
0093c2fc 18579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581 (eval $ac_try) 2>&5
18582 ac_status=$?
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); }; } &&
18585 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; }; then
18591 ac_hi=$ac_mid
18592else
18593 echo "$as_me: failed program was:" >&5
18594sed 's/^/| /' conftest.$ac_ext >&5
18595
18596ac_lo=`expr '(' $ac_mid ')' + 1`
18597fi
ac1cb8d3 18598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18599done
18600case $ac_lo in
18601?*) ac_cv_sizeof_long=$ac_lo;;
18602'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18603See \`config.log' for more details." >&5
18604echo "$as_me: error: cannot compute sizeof (long), 77
18605See \`config.log' for more details." >&2;}
18606 { (exit 1); exit 1; }; } ;;
18607esac
18608else
18609 if test "$cross_compiling" = yes; then
0093c2fc
VZ
18610 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18611echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18612 { (exit 1); exit 1; }; }
18613else
18614 cat >conftest.$ac_ext <<_ACEOF
18615/* confdefs.h. */
18616_ACEOF
18617cat confdefs.h >>conftest.$ac_ext
18618cat >>conftest.$ac_ext <<_ACEOF
18619/* end confdefs.h. */
18620$ac_includes_default
18621long longval () { return (long) (sizeof (long)); }
18622unsigned long ulongval () { return (long) (sizeof (long)); }
18623#include <stdio.h>
18624#include <stdlib.h>
18625int
18626main ()
18627{
18628
18629 FILE *f = fopen ("conftest.val", "w");
18630 if (! f)
18631 exit (1);
18632 if (((long) (sizeof (long))) < 0)
18633 {
18634 long i = longval ();
18635 if (i != ((long) (sizeof (long))))
18636 exit (1);
18637 fprintf (f, "%ld\n", i);
18638 }
18639 else
18640 {
18641 unsigned long i = ulongval ();
18642 if (i != ((long) (sizeof (long))))
18643 exit (1);
18644 fprintf (f, "%lu\n", i);
18645 }
18646 exit (ferror (f) || fclose (f) != 0);
18647
18648 ;
18649 return 0;
18650}
18651_ACEOF
18652rm -f conftest$ac_exeext
18653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18654 (eval $ac_link) 2>&5
18655 ac_status=$?
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659 (eval $ac_try) 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; }; then
18663 ac_cv_sizeof_long=`cat conftest.val`
18664else
18665 echo "$as_me: program exited with status $ac_status" >&5
18666echo "$as_me: failed program was:" >&5
18667sed 's/^/| /' conftest.$ac_ext >&5
18668
18669( exit $ac_status )
18670{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18671See \`config.log' for more details." >&5
18672echo "$as_me: error: cannot compute sizeof (long), 77
18673See \`config.log' for more details." >&2;}
18674 { (exit 1); exit 1; }; }
18675fi
ac1cb8d3 18676rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18677fi
18678fi
18679rm -f conftest.val
18680else
18681 ac_cv_sizeof_long=0
18682fi
18683fi
18684echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18685echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18686cat >>confdefs.h <<_ACEOF
18687#define SIZEOF_LONG $ac_cv_sizeof_long
18688_ACEOF
18689
18690
18691echo "$as_me:$LINENO: checking for size_t" >&5
18692echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18693if test "${ac_cv_type_size_t+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695else
18696 cat >conftest.$ac_ext <<_ACEOF
18697/* confdefs.h. */
18698_ACEOF
18699cat confdefs.h >>conftest.$ac_ext
18700cat >>conftest.$ac_ext <<_ACEOF
18701/* end confdefs.h. */
18702$ac_includes_default
18703int
18704main ()
18705{
18706if ((size_t *) 0)
18707 return 0;
18708if (sizeof (size_t))
18709 return 0;
18710 ;
18711 return 0;
18712}
18713_ACEOF
18714rm -f conftest.$ac_objext
18715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18716 (eval $ac_compile) 2>conftest.er1
a848cd7e 18717 ac_status=$?
ac1cb8d3
VS
18718 grep -v '^ *+' conftest.er1 >conftest.err
18719 rm -f conftest.er1
18720 cat conftest.err >&5
a848cd7e
SC
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } &&
0093c2fc 18723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; } &&
18729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_cv_type_size_t=yes
18736else
18737 echo "$as_me: failed program was:" >&5
18738sed 's/^/| /' conftest.$ac_ext >&5
18739
18740ac_cv_type_size_t=no
18741fi
ac1cb8d3 18742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18743fi
18744echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18745echo "${ECHO_T}$ac_cv_type_size_t" >&6
18746
18747echo "$as_me:$LINENO: checking size of size_t" >&5
18748echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18749if test "${ac_cv_sizeof_size_t+set}" = set; then
18750 echo $ECHO_N "(cached) $ECHO_C" >&6
18751else
18752 if test "$ac_cv_type_size_t" = yes; then
18753 # The cast to unsigned long works around a bug in the HP C Compiler
18754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18756 # This bug is HP SR number 8606223364.
18757 if test "$cross_compiling" = yes; then
18758 # Depending upon the size, compute the lo and hi bounds.
18759cat >conftest.$ac_ext <<_ACEOF
18760/* confdefs.h. */
18761_ACEOF
18762cat confdefs.h >>conftest.$ac_ext
18763cat >>conftest.$ac_ext <<_ACEOF
18764/* end confdefs.h. */
18765$ac_includes_default
18766int
18767main ()
18768{
18769static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18770test_array [0] = 0
18771
18772 ;
18773 return 0;
18774}
18775_ACEOF
18776rm -f conftest.$ac_objext
18777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18778 (eval $ac_compile) 2>conftest.er1
a848cd7e 18779 ac_status=$?
ac1cb8d3
VS
18780 grep -v '^ *+' conftest.er1 >conftest.err
18781 rm -f conftest.er1
18782 cat conftest.err >&5
a848cd7e
SC
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
0093c2fc 18785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; } &&
18791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793 (eval $ac_try) 2>&5
18794 ac_status=$?
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; }; then
18797 ac_lo=0 ac_mid=0
18798 while :; do
18799 cat >conftest.$ac_ext <<_ACEOF
18800/* confdefs.h. */
18801_ACEOF
18802cat confdefs.h >>conftest.$ac_ext
18803cat >>conftest.$ac_ext <<_ACEOF
18804/* end confdefs.h. */
18805$ac_includes_default
18806int
18807main ()
18808{
18809static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18810test_array [0] = 0
18811
18812 ;
18813 return 0;
18814}
18815_ACEOF
18816rm -f conftest.$ac_objext
18817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18818 (eval $ac_compile) 2>conftest.er1
a848cd7e 18819 ac_status=$?
ac1cb8d3
VS
18820 grep -v '^ *+' conftest.er1 >conftest.err
18821 rm -f conftest.er1
18822 cat conftest.err >&5
a848cd7e
SC
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
0093c2fc 18825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; } &&
18831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833 (eval $ac_try) 2>&5
18834 ac_status=$?
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837 ac_hi=$ac_mid; break
18838else
18839 echo "$as_me: failed program was:" >&5
18840sed 's/^/| /' conftest.$ac_ext >&5
18841
18842ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18843 if test $ac_lo -le $ac_mid; then
18844 ac_lo= ac_hi=
18845 break
18846 fi
18847 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18848fi
ac1cb8d3 18849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18850 done
18851else
18852 echo "$as_me: failed program was:" >&5
18853sed 's/^/| /' conftest.$ac_ext >&5
18854
18855cat >conftest.$ac_ext <<_ACEOF
18856/* confdefs.h. */
18857_ACEOF
18858cat confdefs.h >>conftest.$ac_ext
18859cat >>conftest.$ac_ext <<_ACEOF
18860/* end confdefs.h. */
18861$ac_includes_default
18862int
18863main ()
18864{
18865static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18866test_array [0] = 0
18867
18868 ;
18869 return 0;
18870}
18871_ACEOF
18872rm -f conftest.$ac_objext
18873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18874 (eval $ac_compile) 2>conftest.er1
a848cd7e 18875 ac_status=$?
ac1cb8d3
VS
18876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
a848cd7e
SC
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
0093c2fc 18881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } &&
18887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; }; then
18893 ac_hi=-1 ac_mid=-1
18894 while :; do
18895 cat >conftest.$ac_ext <<_ACEOF
18896/* confdefs.h. */
18897_ACEOF
18898cat confdefs.h >>conftest.$ac_ext
18899cat >>conftest.$ac_ext <<_ACEOF
18900/* end confdefs.h. */
18901$ac_includes_default
18902int
18903main ()
18904{
18905static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18906test_array [0] = 0
18907
18908 ;
18909 return 0;
18910}
18911_ACEOF
18912rm -f conftest.$ac_objext
18913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18914 (eval $ac_compile) 2>conftest.er1
a848cd7e 18915 ac_status=$?
ac1cb8d3
VS
18916 grep -v '^ *+' conftest.er1 >conftest.err
18917 rm -f conftest.er1
18918 cat conftest.err >&5
a848cd7e
SC
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
0093c2fc 18921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923 (eval $ac_try) 2>&5
18924 ac_status=$?
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; } &&
18927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 ac_lo=$ac_mid; break
18934else
18935 echo "$as_me: failed program was:" >&5
18936sed 's/^/| /' conftest.$ac_ext >&5
18937
18938ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18939 if test $ac_mid -le $ac_hi; then
18940 ac_lo= ac_hi=
18941 break
18942 fi
18943 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18944fi
ac1cb8d3 18945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18946 done
18947else
18948 echo "$as_me: failed program was:" >&5
18949sed 's/^/| /' conftest.$ac_ext >&5
18950
18951ac_lo= ac_hi=
18952fi
ac1cb8d3 18953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18954fi
ac1cb8d3 18955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18956# Binary search between lo and hi bounds.
18957while test "x$ac_lo" != "x$ac_hi"; do
18958 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18959 cat >conftest.$ac_ext <<_ACEOF
18960/* confdefs.h. */
18961_ACEOF
18962cat confdefs.h >>conftest.$ac_ext
18963cat >>conftest.$ac_ext <<_ACEOF
18964/* end confdefs.h. */
18965$ac_includes_default
18966int
18967main ()
18968{
18969static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18970test_array [0] = 0
18971
18972 ;
18973 return 0;
18974}
18975_ACEOF
18976rm -f conftest.$ac_objext
18977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18978 (eval $ac_compile) 2>conftest.er1
a848cd7e 18979 ac_status=$?
ac1cb8d3
VS
18980 grep -v '^ *+' conftest.er1 >conftest.err
18981 rm -f conftest.er1
18982 cat conftest.err >&5
a848cd7e
SC
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
0093c2fc 18985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
18991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18997 ac_hi=$ac_mid
18998else
18999 echo "$as_me: failed program was:" >&5
19000sed 's/^/| /' conftest.$ac_ext >&5
19001
19002ac_lo=`expr '(' $ac_mid ')' + 1`
19003fi
ac1cb8d3 19004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19005done
19006case $ac_lo in
19007?*) ac_cv_sizeof_size_t=$ac_lo;;
19008'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19009See \`config.log' for more details." >&5
19010echo "$as_me: error: cannot compute sizeof (size_t), 77
19011See \`config.log' for more details." >&2;}
19012 { (exit 1); exit 1; }; } ;;
19013esac
19014else
19015 if test "$cross_compiling" = yes; then
0093c2fc
VZ
19016 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19017echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19018 { (exit 1); exit 1; }; }
19019else
19020 cat >conftest.$ac_ext <<_ACEOF
19021/* confdefs.h. */
19022_ACEOF
19023cat confdefs.h >>conftest.$ac_ext
19024cat >>conftest.$ac_ext <<_ACEOF
19025/* end confdefs.h. */
19026$ac_includes_default
19027long longval () { return (long) (sizeof (size_t)); }
19028unsigned long ulongval () { return (long) (sizeof (size_t)); }
19029#include <stdio.h>
19030#include <stdlib.h>
19031int
19032main ()
19033{
19034
19035 FILE *f = fopen ("conftest.val", "w");
19036 if (! f)
19037 exit (1);
19038 if (((long) (sizeof (size_t))) < 0)
19039 {
19040 long i = longval ();
19041 if (i != ((long) (sizeof (size_t))))
19042 exit (1);
19043 fprintf (f, "%ld\n", i);
19044 }
19045 else
19046 {
19047 unsigned long i = ulongval ();
19048 if (i != ((long) (sizeof (size_t))))
19049 exit (1);
19050 fprintf (f, "%lu\n", i);
19051 }
19052 exit (ferror (f) || fclose (f) != 0);
19053
19054 ;
19055 return 0;
19056}
19057_ACEOF
19058rm -f conftest$ac_exeext
19059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19060 (eval $ac_link) 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19069 ac_cv_sizeof_size_t=`cat conftest.val`
19070else
19071 echo "$as_me: program exited with status $ac_status" >&5
19072echo "$as_me: failed program was:" >&5
19073sed 's/^/| /' conftest.$ac_ext >&5
19074
19075( exit $ac_status )
19076{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19077See \`config.log' for more details." >&5
19078echo "$as_me: error: cannot compute sizeof (size_t), 77
19079See \`config.log' for more details." >&2;}
19080 { (exit 1); exit 1; }; }
19081fi
ac1cb8d3 19082rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19083fi
19084fi
19085rm -f conftest.val
19086else
19087 ac_cv_sizeof_size_t=0
19088fi
19089fi
19090echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19091echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19092cat >>confdefs.h <<_ACEOF
19093#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19094_ACEOF
19095
19096
19097
19098case "${host}" in
19099 arm-*-linux* )
19100 echo "$as_me:$LINENO: checking for long long" >&5
19101echo $ECHO_N "checking for long long... $ECHO_C" >&6
19102if test "${ac_cv_type_long_long+set}" = set; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19104else
19105 cat >conftest.$ac_ext <<_ACEOF
19106/* confdefs.h. */
19107_ACEOF
19108cat confdefs.h >>conftest.$ac_ext
19109cat >>conftest.$ac_ext <<_ACEOF
19110/* end confdefs.h. */
19111$ac_includes_default
19112int
19113main ()
19114{
19115if ((long long *) 0)
19116 return 0;
19117if (sizeof (long long))
19118 return 0;
19119 ;
19120 return 0;
19121}
19122_ACEOF
19123rm -f conftest.$ac_objext
19124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19125 (eval $ac_compile) 2>conftest.er1
a848cd7e 19126 ac_status=$?
ac1cb8d3
VS
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
a848cd7e
SC
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
0093c2fc 19132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; } &&
19138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19144 ac_cv_type_long_long=yes
19145else
19146 echo "$as_me: failed program was:" >&5
19147sed 's/^/| /' conftest.$ac_ext >&5
19148
19149ac_cv_type_long_long=no
19150fi
ac1cb8d3 19151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19152fi
19153echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19154echo "${ECHO_T}$ac_cv_type_long_long" >&6
19155
19156echo "$as_me:$LINENO: checking size of long long" >&5
19157echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19158if test "${ac_cv_sizeof_long_long+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19160else
19161 if test "$ac_cv_type_long_long" = yes; then
19162 # The cast to unsigned long works around a bug in the HP C Compiler
19163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19165 # This bug is HP SR number 8606223364.
19166 if test "$cross_compiling" = yes; then
19167 # Depending upon the size, compute the lo and hi bounds.
19168cat >conftest.$ac_ext <<_ACEOF
19169/* confdefs.h. */
19170_ACEOF
19171cat confdefs.h >>conftest.$ac_ext
19172cat >>conftest.$ac_ext <<_ACEOF
19173/* end confdefs.h. */
19174$ac_includes_default
19175int
19176main ()
19177{
19178static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19179test_array [0] = 0
19180
19181 ;
19182 return 0;
19183}
19184_ACEOF
19185rm -f conftest.$ac_objext
19186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19187 (eval $ac_compile) 2>conftest.er1
a848cd7e 19188 ac_status=$?
ac1cb8d3
VS
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
a848cd7e
SC
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
0093c2fc 19194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19203 ac_status=$?
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206 ac_lo=0 ac_mid=0
19207 while :; do
19208 cat >conftest.$ac_ext <<_ACEOF
19209/* confdefs.h. */
19210_ACEOF
19211cat confdefs.h >>conftest.$ac_ext
19212cat >>conftest.$ac_ext <<_ACEOF
19213/* end confdefs.h. */
19214$ac_includes_default
19215int
19216main ()
19217{
19218static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19219test_array [0] = 0
19220
19221 ;
19222 return 0;
19223}
19224_ACEOF
19225rm -f conftest.$ac_objext
19226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19227 (eval $ac_compile) 2>conftest.er1
a848cd7e 19228 ac_status=$?
ac1cb8d3
VS
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
a848cd7e
SC
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
0093c2fc 19234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19237 ac_status=$?
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; } &&
19240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_hi=$ac_mid; break
19247else
19248 echo "$as_me: failed program was:" >&5
19249sed 's/^/| /' conftest.$ac_ext >&5
19250
19251ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19252 if test $ac_lo -le $ac_mid; then
19253 ac_lo= ac_hi=
19254 break
19255 fi
19256 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19257fi
ac1cb8d3 19258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19259 done
19260else
19261 echo "$as_me: failed program was:" >&5
19262sed 's/^/| /' conftest.$ac_ext >&5
19263
19264cat >conftest.$ac_ext <<_ACEOF
19265/* confdefs.h. */
19266_ACEOF
19267cat confdefs.h >>conftest.$ac_ext
19268cat >>conftest.$ac_ext <<_ACEOF
19269/* end confdefs.h. */
19270$ac_includes_default
19271int
19272main ()
19273{
19274static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19275test_array [0] = 0
19276
19277 ;
19278 return 0;
19279}
19280_ACEOF
19281rm -f conftest.$ac_objext
19282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19283 (eval $ac_compile) 2>conftest.er1
a848cd7e 19284 ac_status=$?
ac1cb8d3
VS
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
a848cd7e
SC
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
0093c2fc 19290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292 (eval $ac_try) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; } &&
19296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_hi=-1 ac_mid=-1
19303 while :; do
19304 cat >conftest.$ac_ext <<_ACEOF
19305/* confdefs.h. */
19306_ACEOF
19307cat confdefs.h >>conftest.$ac_ext
19308cat >>conftest.$ac_ext <<_ACEOF
19309/* end confdefs.h. */
19310$ac_includes_default
19311int
19312main ()
19313{
19314static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19315test_array [0] = 0
19316
19317 ;
19318 return 0;
19319}
19320_ACEOF
19321rm -f conftest.$ac_objext
19322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19323 (eval $ac_compile) 2>conftest.er1
a848cd7e 19324 ac_status=$?
ac1cb8d3
VS
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
a848cd7e
SC
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
0093c2fc 19330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_lo=$ac_mid; break
19343else
19344 echo "$as_me: failed program was:" >&5
19345sed 's/^/| /' conftest.$ac_ext >&5
19346
19347ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19348 if test $ac_mid -le $ac_hi; then
19349 ac_lo= ac_hi=
19350 break
19351 fi
19352 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19353fi
ac1cb8d3 19354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19355 done
19356else
19357 echo "$as_me: failed program was:" >&5
19358sed 's/^/| /' conftest.$ac_ext >&5
19359
19360ac_lo= ac_hi=
19361fi
ac1cb8d3 19362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19363fi
ac1cb8d3 19364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19365# Binary search between lo and hi bounds.
19366while test "x$ac_lo" != "x$ac_hi"; do
19367 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19368 cat >conftest.$ac_ext <<_ACEOF
19369/* confdefs.h. */
19370_ACEOF
19371cat confdefs.h >>conftest.$ac_ext
19372cat >>conftest.$ac_ext <<_ACEOF
19373/* end confdefs.h. */
19374$ac_includes_default
19375int
19376main ()
19377{
19378static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19379test_array [0] = 0
19380
19381 ;
19382 return 0;
19383}
19384_ACEOF
19385rm -f conftest.$ac_objext
19386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19387 (eval $ac_compile) 2>conftest.er1
a848cd7e 19388 ac_status=$?
ac1cb8d3
VS
19389 grep -v '^ *+' conftest.er1 >conftest.err
19390 rm -f conftest.er1
19391 cat conftest.err >&5
a848cd7e
SC
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
0093c2fc 19394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; } &&
19400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; }; then
19406 ac_hi=$ac_mid
19407else
19408 echo "$as_me: failed program was:" >&5
19409sed 's/^/| /' conftest.$ac_ext >&5
19410
19411ac_lo=`expr '(' $ac_mid ')' + 1`
19412fi
ac1cb8d3 19413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19414done
19415case $ac_lo in
19416?*) ac_cv_sizeof_long_long=$ac_lo;;
19417'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19418See \`config.log' for more details." >&5
19419echo "$as_me: error: cannot compute sizeof (long long), 77
19420See \`config.log' for more details." >&2;}
19421 { (exit 1); exit 1; }; } ;;
19422esac
19423else
19424 if test "$cross_compiling" = yes; then
0093c2fc
VZ
19425 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19426echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19427 { (exit 1); exit 1; }; }
19428else
19429 cat >conftest.$ac_ext <<_ACEOF
19430/* confdefs.h. */
19431_ACEOF
19432cat confdefs.h >>conftest.$ac_ext
19433cat >>conftest.$ac_ext <<_ACEOF
19434/* end confdefs.h. */
19435$ac_includes_default
19436long longval () { return (long) (sizeof (long long)); }
19437unsigned long ulongval () { return (long) (sizeof (long long)); }
19438#include <stdio.h>
19439#include <stdlib.h>
19440int
19441main ()
19442{
19443
19444 FILE *f = fopen ("conftest.val", "w");
19445 if (! f)
19446 exit (1);
19447 if (((long) (sizeof (long long))) < 0)
19448 {
19449 long i = longval ();
19450 if (i != ((long) (sizeof (long long))))
19451 exit (1);
19452 fprintf (f, "%ld\n", i);
19453 }
19454 else
19455 {
19456 unsigned long i = ulongval ();
19457 if (i != ((long) (sizeof (long long))))
19458 exit (1);
19459 fprintf (f, "%lu\n", i);
19460 }
19461 exit (ferror (f) || fclose (f) != 0);
19462
19463 ;
19464 return 0;
19465}
19466_ACEOF
19467rm -f conftest$ac_exeext
19468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19469 (eval $ac_link) 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_cv_sizeof_long_long=`cat conftest.val`
19479else
19480 echo "$as_me: program exited with status $ac_status" >&5
19481echo "$as_me: failed program was:" >&5
19482sed 's/^/| /' conftest.$ac_ext >&5
19483
19484( exit $ac_status )
19485{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19486See \`config.log' for more details." >&5
19487echo "$as_me: error: cannot compute sizeof (long long), 77
19488See \`config.log' for more details." >&2;}
19489 { (exit 1); exit 1; }; }
19490fi
ac1cb8d3 19491rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19492fi
19493fi
19494rm -f conftest.val
19495else
19496 ac_cv_sizeof_long_long=0
19497fi
19498fi
19499echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19500echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19501cat >>confdefs.h <<_ACEOF
19502#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19503_ACEOF
19504
19505
19506 ;;
19507 *-hp-hpux* )
19508 echo "$as_me:$LINENO: checking for long long" >&5
19509echo $ECHO_N "checking for long long... $ECHO_C" >&6
19510if test "${ac_cv_type_long_long+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512else
19513 cat >conftest.$ac_ext <<_ACEOF
19514/* confdefs.h. */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
19518/* end confdefs.h. */
19519$ac_includes_default
19520int
19521main ()
19522{
19523if ((long long *) 0)
19524 return 0;
19525if (sizeof (long long))
19526 return 0;
19527 ;
19528 return 0;
19529}
19530_ACEOF
19531rm -f conftest.$ac_objext
19532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19533 (eval $ac_compile) 2>conftest.er1
a848cd7e 19534 ac_status=$?
ac1cb8d3
VS
19535 grep -v '^ *+' conftest.er1 >conftest.err
19536 rm -f conftest.er1
19537 cat conftest.err >&5
a848cd7e
SC
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
0093c2fc 19540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 ac_cv_type_long_long=yes
19553else
19554 echo "$as_me: failed program was:" >&5
19555sed 's/^/| /' conftest.$ac_ext >&5
19556
19557ac_cv_type_long_long=no
19558fi
ac1cb8d3 19559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19560fi
19561echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19562echo "${ECHO_T}$ac_cv_type_long_long" >&6
19563
19564echo "$as_me:$LINENO: checking size of long long" >&5
19565echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19566if test "${ac_cv_sizeof_long_long+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19568else
19569 if test "$ac_cv_type_long_long" = yes; then
19570 # The cast to unsigned long works around a bug in the HP C Compiler
19571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19573 # This bug is HP SR number 8606223364.
19574 if test "$cross_compiling" = yes; then
19575 # Depending upon the size, compute the lo and hi bounds.
19576cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
19581/* end confdefs.h. */
19582$ac_includes_default
19583int
19584main ()
19585{
19586static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19587test_array [0] = 0
19588
19589 ;
19590 return 0;
19591}
19592_ACEOF
19593rm -f conftest.$ac_objext
19594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19595 (eval $ac_compile) 2>conftest.er1
a848cd7e 19596 ac_status=$?
ac1cb8d3
VS
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
a848cd7e
SC
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
0093c2fc 19602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 ac_lo=0 ac_mid=0
19615 while :; do
19616 cat >conftest.$ac_ext <<_ACEOF
19617/* confdefs.h. */
19618_ACEOF
19619cat confdefs.h >>conftest.$ac_ext
19620cat >>conftest.$ac_ext <<_ACEOF
19621/* end confdefs.h. */
19622$ac_includes_default
19623int
19624main ()
19625{
19626static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19627test_array [0] = 0
19628
19629 ;
19630 return 0;
19631}
19632_ACEOF
19633rm -f conftest.$ac_objext
19634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19635 (eval $ac_compile) 2>conftest.er1
a848cd7e 19636 ac_status=$?
ac1cb8d3
VS
19637 grep -v '^ *+' conftest.er1 >conftest.err
19638 rm -f conftest.er1
19639 cat conftest.err >&5
a848cd7e
SC
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
0093c2fc 19642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; }; then
19654 ac_hi=$ac_mid; break
19655else
19656 echo "$as_me: failed program was:" >&5
19657sed 's/^/| /' conftest.$ac_ext >&5
19658
19659ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19660 if test $ac_lo -le $ac_mid; then
19661 ac_lo= ac_hi=
19662 break
19663 fi
19664 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19665fi
ac1cb8d3 19666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19667 done
19668else
19669 echo "$as_me: failed program was:" >&5
19670sed 's/^/| /' conftest.$ac_ext >&5
19671
19672cat >conftest.$ac_ext <<_ACEOF
19673/* confdefs.h. */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
19677/* end confdefs.h. */
19678$ac_includes_default
19679int
19680main ()
19681{
19682static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19683test_array [0] = 0
19684
19685 ;
19686 return 0;
19687}
19688_ACEOF
19689rm -f conftest.$ac_objext
19690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19691 (eval $ac_compile) 2>conftest.er1
a848cd7e 19692 ac_status=$?
ac1cb8d3
VS
19693 grep -v '^ *+' conftest.er1 >conftest.err
19694 rm -f conftest.er1
19695 cat conftest.err >&5
a848cd7e
SC
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } &&
0093c2fc 19698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } &&
19704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710 ac_hi=-1 ac_mid=-1
19711 while :; do
19712 cat >conftest.$ac_ext <<_ACEOF
19713/* confdefs.h. */
19714_ACEOF
19715cat confdefs.h >>conftest.$ac_ext
19716cat >>conftest.$ac_ext <<_ACEOF
19717/* end confdefs.h. */
19718$ac_includes_default
19719int
19720main ()
19721{
19722static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19723test_array [0] = 0
19724
19725 ;
19726 return 0;
19727}
19728_ACEOF
19729rm -f conftest.$ac_objext
19730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19731 (eval $ac_compile) 2>conftest.er1
a848cd7e 19732 ac_status=$?
ac1cb8d3
VS
19733 grep -v '^ *+' conftest.er1 >conftest.err
19734 rm -f conftest.er1
19735 cat conftest.err >&5
a848cd7e
SC
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
0093c2fc 19738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; } &&
19744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_lo=$ac_mid; break
19751else
19752 echo "$as_me: failed program was:" >&5
19753sed 's/^/| /' conftest.$ac_ext >&5
19754
19755ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19756 if test $ac_mid -le $ac_hi; then
19757 ac_lo= ac_hi=
19758 break
19759 fi
19760 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19761fi
ac1cb8d3 19762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19763 done
19764else
19765 echo "$as_me: failed program was:" >&5
19766sed 's/^/| /' conftest.$ac_ext >&5
19767
19768ac_lo= ac_hi=
19769fi
ac1cb8d3 19770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19771fi
ac1cb8d3 19772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19773# Binary search between lo and hi bounds.
19774while test "x$ac_lo" != "x$ac_hi"; do
19775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19776 cat >conftest.$ac_ext <<_ACEOF
19777/* confdefs.h. */
19778_ACEOF
19779cat confdefs.h >>conftest.$ac_ext
19780cat >>conftest.$ac_ext <<_ACEOF
19781/* end confdefs.h. */
19782$ac_includes_default
19783int
19784main ()
19785{
19786static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19787test_array [0] = 0
19788
19789 ;
19790 return 0;
19791}
19792_ACEOF
19793rm -f conftest.$ac_objext
19794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19795 (eval $ac_compile) 2>conftest.er1
a848cd7e 19796 ac_status=$?
ac1cb8d3
VS
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
a848cd7e
SC
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
0093c2fc 19802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; } &&
19808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
19814 ac_hi=$ac_mid
19815else
19816 echo "$as_me: failed program was:" >&5
19817sed 's/^/| /' conftest.$ac_ext >&5
19818
19819ac_lo=`expr '(' $ac_mid ')' + 1`
19820fi
ac1cb8d3 19821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19822done
19823case $ac_lo in
19824?*) ac_cv_sizeof_long_long=$ac_lo;;
19825'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19826See \`config.log' for more details." >&5
19827echo "$as_me: error: cannot compute sizeof (long long), 77
19828See \`config.log' for more details." >&2;}
19829 { (exit 1); exit 1; }; } ;;
19830esac
19831else
19832 if test "$cross_compiling" = yes; then
0093c2fc
VZ
19833 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19834echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19835 { (exit 1); exit 1; }; }
19836else
19837 cat >conftest.$ac_ext <<_ACEOF
19838/* confdefs.h. */
19839_ACEOF
19840cat confdefs.h >>conftest.$ac_ext
19841cat >>conftest.$ac_ext <<_ACEOF
19842/* end confdefs.h. */
19843$ac_includes_default
19844long longval () { return (long) (sizeof (long long)); }
19845unsigned long ulongval () { return (long) (sizeof (long long)); }
19846#include <stdio.h>
19847#include <stdlib.h>
19848int
19849main ()
19850{
19851
19852 FILE *f = fopen ("conftest.val", "w");
19853 if (! f)
19854 exit (1);
19855 if (((long) (sizeof (long long))) < 0)
19856 {
19857 long i = longval ();
19858 if (i != ((long) (sizeof (long long))))
19859 exit (1);
19860 fprintf (f, "%ld\n", i);
19861 }
19862 else
19863 {
19864 unsigned long i = ulongval ();
19865 if (i != ((long) (sizeof (long long))))
19866 exit (1);
19867 fprintf (f, "%lu\n", i);
19868 }
19869 exit (ferror (f) || fclose (f) != 0);
19870
19871 ;
19872 return 0;
19873}
19874_ACEOF
19875rm -f conftest$ac_exeext
19876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19877 (eval $ac_link) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; }; then
19886 ac_cv_sizeof_long_long=`cat conftest.val`
19887else
19888 echo "$as_me: program exited with status $ac_status" >&5
19889echo "$as_me: failed program was:" >&5
19890sed 's/^/| /' conftest.$ac_ext >&5
19891
19892( exit $ac_status )
19893{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19894See \`config.log' for more details." >&5
19895echo "$as_me: error: cannot compute sizeof (long long), 77
19896See \`config.log' for more details." >&2;}
19897 { (exit 1); exit 1; }; }
19898fi
ac1cb8d3 19899rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19900fi
19901fi
19902rm -f conftest.val
19903else
19904 ac_cv_sizeof_long_long=0
19905fi
19906fi
19907echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19908echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19909cat >>confdefs.h <<_ACEOF
19910#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19911_ACEOF
19912
19913
19914 if test "$ac_cv_sizeof_long_long" != "0"; then
19915 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19916 fi
19917 ;;
19918 * )
19919 echo "$as_me:$LINENO: checking for long long" >&5
19920echo $ECHO_N "checking for long long... $ECHO_C" >&6
19921if test "${ac_cv_type_long_long+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923else
19924 cat >conftest.$ac_ext <<_ACEOF
19925/* confdefs.h. */
19926_ACEOF
19927cat confdefs.h >>conftest.$ac_ext
19928cat >>conftest.$ac_ext <<_ACEOF
19929/* end confdefs.h. */
19930$ac_includes_default
19931int
19932main ()
19933{
19934if ((long long *) 0)
19935 return 0;
19936if (sizeof (long long))
19937 return 0;
19938 ;
19939 return 0;
19940}
19941_ACEOF
19942rm -f conftest.$ac_objext
19943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19944 (eval $ac_compile) 2>conftest.er1
a848cd7e 19945 ac_status=$?
ac1cb8d3
VS
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
a848cd7e
SC
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
0093c2fc 19951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 ac_cv_type_long_long=yes
19964else
19965 echo "$as_me: failed program was:" >&5
19966sed 's/^/| /' conftest.$ac_ext >&5
19967
19968ac_cv_type_long_long=no
19969fi
ac1cb8d3 19970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19971fi
19972echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19973echo "${ECHO_T}$ac_cv_type_long_long" >&6
19974
19975echo "$as_me:$LINENO: checking size of long long" >&5
19976echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19977if test "${ac_cv_sizeof_long_long+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19979else
19980 if test "$ac_cv_type_long_long" = yes; then
19981 # The cast to unsigned long works around a bug in the HP C Compiler
19982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19984 # This bug is HP SR number 8606223364.
19985 if test "$cross_compiling" = yes; then
19986 # Depending upon the size, compute the lo and hi bounds.
19987cat >conftest.$ac_ext <<_ACEOF
19988/* confdefs.h. */
19989_ACEOF
19990cat confdefs.h >>conftest.$ac_ext
19991cat >>conftest.$ac_ext <<_ACEOF
19992/* end confdefs.h. */
19993$ac_includes_default
19994int
19995main ()
19996{
19997static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19998test_array [0] = 0
19999
20000 ;
20001 return 0;
20002}
20003_ACEOF
20004rm -f conftest.$ac_objext
20005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20006 (eval $ac_compile) 2>conftest.er1
a848cd7e 20007 ac_status=$?
ac1cb8d3
VS
20008 grep -v '^ *+' conftest.er1 >conftest.err
20009 rm -f conftest.er1
20010 cat conftest.err >&5
a848cd7e
SC
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } &&
0093c2fc 20013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; } &&
20019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20025 ac_lo=0 ac_mid=0
20026 while :; do
20027 cat >conftest.$ac_ext <<_ACEOF
20028/* confdefs.h. */
20029_ACEOF
20030cat confdefs.h >>conftest.$ac_ext
20031cat >>conftest.$ac_ext <<_ACEOF
20032/* end confdefs.h. */
20033$ac_includes_default
20034int
20035main ()
20036{
20037static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20038test_array [0] = 0
20039
20040 ;
20041 return 0;
20042}
20043_ACEOF
20044rm -f conftest.$ac_objext
20045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20046 (eval $ac_compile) 2>conftest.er1
a848cd7e 20047 ac_status=$?
ac1cb8d3
VS
20048 grep -v '^ *+' conftest.er1 >conftest.err
20049 rm -f conftest.er1
20050 cat conftest.err >&5
a848cd7e
SC
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
0093c2fc 20053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } &&
20059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 ac_hi=$ac_mid; break
20066else
20067 echo "$as_me: failed program was:" >&5
20068sed 's/^/| /' conftest.$ac_ext >&5
20069
20070ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20071 if test $ac_lo -le $ac_mid; then
20072 ac_lo= ac_hi=
20073 break
20074 fi
20075 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20076fi
ac1cb8d3 20077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20078 done
20079else
20080 echo "$as_me: failed program was:" >&5
20081sed 's/^/| /' conftest.$ac_ext >&5
20082
20083cat >conftest.$ac_ext <<_ACEOF
20084/* confdefs.h. */
20085_ACEOF
20086cat confdefs.h >>conftest.$ac_ext
20087cat >>conftest.$ac_ext <<_ACEOF
20088/* end confdefs.h. */
20089$ac_includes_default
20090int
20091main ()
20092{
20093static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20094test_array [0] = 0
20095
20096 ;
20097 return 0;
20098}
20099_ACEOF
20100rm -f conftest.$ac_objext
20101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20102 (eval $ac_compile) 2>conftest.er1
a848cd7e 20103 ac_status=$?
ac1cb8d3
VS
20104 grep -v '^ *+' conftest.er1 >conftest.err
20105 rm -f conftest.er1
20106 cat conftest.err >&5
a848cd7e
SC
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } &&
0093c2fc 20109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; } &&
20115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20118 ac_status=$?
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 ac_hi=-1 ac_mid=-1
20122 while :; do
20123 cat >conftest.$ac_ext <<_ACEOF
20124/* confdefs.h. */
20125_ACEOF
20126cat confdefs.h >>conftest.$ac_ext
20127cat >>conftest.$ac_ext <<_ACEOF
20128/* end confdefs.h. */
20129$ac_includes_default
20130int
20131main ()
20132{
20133static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20134test_array [0] = 0
20135
20136 ;
20137 return 0;
20138}
20139_ACEOF
20140rm -f conftest.$ac_objext
20141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20142 (eval $ac_compile) 2>conftest.er1
a848cd7e 20143 ac_status=$?
ac1cb8d3
VS
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
a848cd7e
SC
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
0093c2fc 20149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 ac_lo=$ac_mid; break
20162else
20163 echo "$as_me: failed program was:" >&5
20164sed 's/^/| /' conftest.$ac_ext >&5
20165
20166ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20167 if test $ac_mid -le $ac_hi; then
20168 ac_lo= ac_hi=
20169 break
20170 fi
20171 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20172fi
ac1cb8d3 20173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20174 done
20175else
20176 echo "$as_me: failed program was:" >&5
20177sed 's/^/| /' conftest.$ac_ext >&5
20178
20179ac_lo= ac_hi=
20180fi
ac1cb8d3 20181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20182fi
ac1cb8d3 20183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20184# Binary search between lo and hi bounds.
20185while test "x$ac_lo" != "x$ac_hi"; do
20186 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20187 cat >conftest.$ac_ext <<_ACEOF
20188/* confdefs.h. */
20189_ACEOF
20190cat confdefs.h >>conftest.$ac_ext
20191cat >>conftest.$ac_ext <<_ACEOF
20192/* end confdefs.h. */
20193$ac_includes_default
20194int
20195main ()
20196{
20197static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20198test_array [0] = 0
20199
20200 ;
20201 return 0;
20202}
20203_ACEOF
20204rm -f conftest.$ac_objext
20205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20206 (eval $ac_compile) 2>conftest.er1
a848cd7e 20207 ac_status=$?
ac1cb8d3
VS
20208 grep -v '^ *+' conftest.er1 >conftest.err
20209 rm -f conftest.er1
20210 cat conftest.err >&5
a848cd7e
SC
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } &&
0093c2fc 20213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; } &&
20219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20225 ac_hi=$ac_mid
20226else
20227 echo "$as_me: failed program was:" >&5
20228sed 's/^/| /' conftest.$ac_ext >&5
20229
20230ac_lo=`expr '(' $ac_mid ')' + 1`
20231fi
ac1cb8d3 20232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20233done
20234case $ac_lo in
20235?*) ac_cv_sizeof_long_long=$ac_lo;;
20236'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20237See \`config.log' for more details." >&5
20238echo "$as_me: error: cannot compute sizeof (long long), 77
20239See \`config.log' for more details." >&2;}
20240 { (exit 1); exit 1; }; } ;;
20241esac
20242else
20243 if test "$cross_compiling" = yes; then
0093c2fc
VZ
20244 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20245echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20246 { (exit 1); exit 1; }; }
20247else
20248 cat >conftest.$ac_ext <<_ACEOF
20249/* confdefs.h. */
20250_ACEOF
20251cat confdefs.h >>conftest.$ac_ext
20252cat >>conftest.$ac_ext <<_ACEOF
20253/* end confdefs.h. */
20254$ac_includes_default
20255long longval () { return (long) (sizeof (long long)); }
20256unsigned long ulongval () { return (long) (sizeof (long long)); }
20257#include <stdio.h>
20258#include <stdlib.h>
20259int
20260main ()
20261{
20262
20263 FILE *f = fopen ("conftest.val", "w");
20264 if (! f)
20265 exit (1);
20266 if (((long) (sizeof (long long))) < 0)
20267 {
20268 long i = longval ();
20269 if (i != ((long) (sizeof (long long))))
20270 exit (1);
20271 fprintf (f, "%ld\n", i);
20272 }
20273 else
20274 {
20275 unsigned long i = ulongval ();
20276 if (i != ((long) (sizeof (long long))))
20277 exit (1);
20278 fprintf (f, "%lu\n", i);
20279 }
20280 exit (ferror (f) || fclose (f) != 0);
20281
20282 ;
20283 return 0;
20284}
20285_ACEOF
20286rm -f conftest$ac_exeext
20287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20288 (eval $ac_link) 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_sizeof_long_long=`cat conftest.val`
20298else
20299 echo "$as_me: program exited with status $ac_status" >&5
20300echo "$as_me: failed program was:" >&5
20301sed 's/^/| /' conftest.$ac_ext >&5
20302
20303( exit $ac_status )
20304{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20305See \`config.log' for more details." >&5
20306echo "$as_me: error: cannot compute sizeof (long long), 77
20307See \`config.log' for more details." >&2;}
20308 { (exit 1); exit 1; }; }
20309fi
ac1cb8d3 20310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20311fi
20312fi
20313rm -f conftest.val
20314else
20315 ac_cv_sizeof_long_long=0
20316fi
20317fi
20318echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20319echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20320cat >>confdefs.h <<_ACEOF
20321#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20322_ACEOF
20323
20324
20325esac
20326
238ecede
MW
20327echo "$as_me:$LINENO: checking for wchar_t" >&5
20328echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20329if test "${ac_cv_type_wchar_t+set}" = set; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20331else
20332 cat >conftest.$ac_ext <<_ACEOF
20333/* confdefs.h. */
20334_ACEOF
20335cat confdefs.h >>conftest.$ac_ext
20336cat >>conftest.$ac_ext <<_ACEOF
20337/* end confdefs.h. */
20338
83d8eb47
MW
20339 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20340 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20341 # error "fake wchar_t"
20342 #endif
20343 #ifdef HAVE_WCHAR_H
20344 # ifdef __CYGWIN__
20345 # include <stddef.h>
20346 # endif
20347 # include <wchar.h>
20348 #endif
20349 #ifdef HAVE_STDLIB_H
20350 # include <stdlib.h>
20351 #endif
20352 #include <stdio.h>
20353
20354
20355
20356int
20357main ()
20358{
20359if ((wchar_t *) 0)
20360 return 0;
20361if (sizeof (wchar_t))
20362 return 0;
20363 ;
20364 return 0;
20365}
20366_ACEOF
20367rm -f conftest.$ac_objext
20368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20369 (eval $ac_compile) 2>conftest.er1
20370 ac_status=$?
20371 grep -v '^ *+' conftest.er1 >conftest.err
20372 rm -f conftest.er1
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } &&
0093c2fc 20376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } &&
20382 { ac_try='test -s conftest.$ac_objext'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; }; then
20388 ac_cv_type_wchar_t=yes
20389else
20390 echo "$as_me: failed program was:" >&5
20391sed 's/^/| /' conftest.$ac_ext >&5
20392
20393ac_cv_type_wchar_t=no
20394fi
20395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20396fi
20397echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20398echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20399
a848cd7e
SC
20400echo "$as_me:$LINENO: checking size of wchar_t" >&5
20401echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20402if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20404else
238ecede
MW
20405 if test "$ac_cv_type_wchar_t" = yes; then
20406 # The cast to unsigned long works around a bug in the HP C Compiler
20407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20409 # This bug is HP SR number 8606223364.
20410 if test "$cross_compiling" = yes; then
20411 # Depending upon the size, compute the lo and hi bounds.
20412cat >conftest.$ac_ext <<_ACEOF
20413/* confdefs.h. */
20414_ACEOF
20415cat confdefs.h >>conftest.$ac_ext
20416cat >>conftest.$ac_ext <<_ACEOF
20417/* end confdefs.h. */
20418
83d8eb47
MW
20419 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20420 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20421 # error "fake wchar_t"
20422 #endif
20423 #ifdef HAVE_WCHAR_H
20424 # ifdef __CYGWIN__
20425 # include <stddef.h>
20426 # endif
20427 # include <wchar.h>
20428 #endif
20429 #ifdef HAVE_STDLIB_H
20430 # include <stdlib.h>
20431 #endif
20432 #include <stdio.h>
20433
20434
20435
20436int
20437main ()
20438{
20439static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20440test_array [0] = 0
20441
20442 ;
20443 return 0;
20444}
20445_ACEOF
20446rm -f conftest.$ac_objext
20447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448 (eval $ac_compile) 2>conftest.er1
20449 ac_status=$?
20450 grep -v '^ *+' conftest.er1 >conftest.err
20451 rm -f conftest.er1
20452 cat conftest.err >&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } &&
0093c2fc 20455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457 (eval $ac_try) 2>&5
20458 ac_status=$?
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; } &&
20461 { ac_try='test -s conftest.$ac_objext'
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; }; then
20467 ac_lo=0 ac_mid=0
20468 while :; do
20469 cat >conftest.$ac_ext <<_ACEOF
20470/* confdefs.h. */
20471_ACEOF
20472cat confdefs.h >>conftest.$ac_ext
20473cat >>conftest.$ac_ext <<_ACEOF
20474/* end confdefs.h. */
20475
83d8eb47
MW
20476 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20477 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20478 # error "fake wchar_t"
20479 #endif
20480 #ifdef HAVE_WCHAR_H
20481 # ifdef __CYGWIN__
20482 # include <stddef.h>
20483 # endif
20484 # include <wchar.h>
20485 #endif
20486 #ifdef HAVE_STDLIB_H
20487 # include <stdlib.h>
20488 #endif
20489 #include <stdio.h>
20490
20491
20492
20493int
20494main ()
20495{
20496static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20497test_array [0] = 0
20498
20499 ;
20500 return 0;
20501}
20502_ACEOF
20503rm -f conftest.$ac_objext
20504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20505 (eval $ac_compile) 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
0093c2fc 20512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; } &&
20518 { ac_try='test -s conftest.$ac_objext'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
20524 ac_hi=$ac_mid; break
20525else
20526 echo "$as_me: failed program was:" >&5
20527sed 's/^/| /' conftest.$ac_ext >&5
20528
20529ac_lo=`expr $ac_mid + 1`
20530 if test $ac_lo -le $ac_mid; then
20531 ac_lo= ac_hi=
20532 break
20533 fi
20534 ac_mid=`expr 2 '*' $ac_mid + 1`
20535fi
20536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20537 done
20538else
20539 echo "$as_me: failed program was:" >&5
20540sed 's/^/| /' conftest.$ac_ext >&5
20541
20542cat >conftest.$ac_ext <<_ACEOF
20543/* confdefs.h. */
20544_ACEOF
20545cat confdefs.h >>conftest.$ac_ext
20546cat >>conftest.$ac_ext <<_ACEOF
20547/* end confdefs.h. */
20548
83d8eb47
MW
20549 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20550 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20551 # error "fake wchar_t"
20552 #endif
20553 #ifdef HAVE_WCHAR_H
20554 # ifdef __CYGWIN__
20555 # include <stddef.h>
20556 # endif
20557 # include <wchar.h>
20558 #endif
20559 #ifdef HAVE_STDLIB_H
20560 # include <stdlib.h>
20561 #endif
20562 #include <stdio.h>
20563
20564
20565
20566int
20567main ()
20568{
20569static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20570test_array [0] = 0
20571
20572 ;
20573 return 0;
20574}
20575_ACEOF
20576rm -f conftest.$ac_objext
20577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20578 (eval $ac_compile) 2>conftest.er1
20579 ac_status=$?
20580 grep -v '^ *+' conftest.er1 >conftest.err
20581 rm -f conftest.er1
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } &&
0093c2fc 20585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587 (eval $ac_try) 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try='test -s conftest.$ac_objext'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; }; then
20597 ac_hi=-1 ac_mid=-1
20598 while :; do
20599 cat >conftest.$ac_ext <<_ACEOF
20600/* confdefs.h. */
20601_ACEOF
20602cat confdefs.h >>conftest.$ac_ext
20603cat >>conftest.$ac_ext <<_ACEOF
20604/* end confdefs.h. */
20605
83d8eb47
MW
20606 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20607 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20608 # error "fake wchar_t"
20609 #endif
20610 #ifdef HAVE_WCHAR_H
20611 # ifdef __CYGWIN__
20612 # include <stddef.h>
20613 # endif
20614 # include <wchar.h>
20615 #endif
20616 #ifdef HAVE_STDLIB_H
20617 # include <stdlib.h>
20618 #endif
20619 #include <stdio.h>
20620
20621
20622
20623int
20624main ()
20625{
20626static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20627test_array [0] = 0
20628
20629 ;
20630 return 0;
20631}
20632_ACEOF
20633rm -f conftest.$ac_objext
20634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20635 (eval $ac_compile) 2>conftest.er1
20636 ac_status=$?
20637 grep -v '^ *+' conftest.er1 >conftest.err
20638 rm -f conftest.er1
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } &&
0093c2fc 20642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; } &&
20648 { ac_try='test -s conftest.$ac_objext'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
20654 ac_lo=$ac_mid; break
20655else
20656 echo "$as_me: failed program was:" >&5
20657sed 's/^/| /' conftest.$ac_ext >&5
20658
20659ac_hi=`expr '(' $ac_mid ')' - 1`
20660 if test $ac_mid -le $ac_hi; then
20661 ac_lo= ac_hi=
20662 break
20663 fi
20664 ac_mid=`expr 2 '*' $ac_mid`
20665fi
20666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20667 done
20668else
20669 echo "$as_me: failed program was:" >&5
20670sed 's/^/| /' conftest.$ac_ext >&5
20671
20672ac_lo= ac_hi=
20673fi
20674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20675fi
20676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20677# Binary search between lo and hi bounds.
20678while test "x$ac_lo" != "x$ac_hi"; do
20679 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20680 cat >conftest.$ac_ext <<_ACEOF
20681/* confdefs.h. */
20682_ACEOF
20683cat confdefs.h >>conftest.$ac_ext
20684cat >>conftest.$ac_ext <<_ACEOF
20685/* end confdefs.h. */
20686
83d8eb47
MW
20687 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20688 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20689 # error "fake wchar_t"
20690 #endif
20691 #ifdef HAVE_WCHAR_H
20692 # ifdef __CYGWIN__
20693 # include <stddef.h>
20694 # endif
20695 # include <wchar.h>
20696 #endif
20697 #ifdef HAVE_STDLIB_H
20698 # include <stdlib.h>
20699 #endif
20700 #include <stdio.h>
a848cd7e 20701
a848cd7e 20702
a848cd7e 20703
238ecede
MW
20704int
20705main ()
20706{
20707static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20708test_array [0] = 0
a848cd7e 20709
238ecede
MW
20710 ;
20711 return 0;
20712}
20713_ACEOF
20714rm -f conftest.$ac_objext
20715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716 (eval $ac_compile) 2>conftest.er1
20717 ac_status=$?
20718 grep -v '^ *+' conftest.er1 >conftest.err
20719 rm -f conftest.er1
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
0093c2fc 20723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20726 ac_status=$?
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; } &&
20729 { ac_try='test -s conftest.$ac_objext'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20732 ac_status=$?
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 ac_hi=$ac_mid
20736else
20737 echo "$as_me: failed program was:" >&5
20738sed 's/^/| /' conftest.$ac_ext >&5
20739
20740ac_lo=`expr '(' $ac_mid ')' + 1`
20741fi
20742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20743done
20744case $ac_lo in
20745?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20746'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20747See \`config.log' for more details." >&5
20748echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20749See \`config.log' for more details." >&2;}
20750 { (exit 1); exit 1; }; } ;;
20751esac
20752else
20753 if test "$cross_compiling" = yes; then
0093c2fc
VZ
20754 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20755echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20756 { (exit 1); exit 1; }; }
a848cd7e
SC
20757else
20758 cat >conftest.$ac_ext <<_ACEOF
20759/* confdefs.h. */
20760_ACEOF
20761cat confdefs.h >>conftest.$ac_ext
20762cat >>conftest.$ac_ext <<_ACEOF
20763/* end confdefs.h. */
20764
83d8eb47
MW
20765 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20766 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20767 # error "fake wchar_t"
20768 #endif
20769 #ifdef HAVE_WCHAR_H
20770 # ifdef __CYGWIN__
20771 # include <stddef.h>
20772 # endif
20773 # include <wchar.h>
20774 #endif
20775 #ifdef HAVE_STDLIB_H
20776 # include <stdlib.h>
20777 #endif
20778 #include <stdio.h>
20779
20780
20781
20782long longval () { return (long) (sizeof (wchar_t)); }
20783unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20784#include <stdio.h>
20785#include <stdlib.h>
20786int
20787main ()
20788{
a848cd7e 20789
238ecede
MW
20790 FILE *f = fopen ("conftest.val", "w");
20791 if (! f)
20792 exit (1);
20793 if (((long) (sizeof (wchar_t))) < 0)
20794 {
20795 long i = longval ();
20796 if (i != ((long) (sizeof (wchar_t))))
20797 exit (1);
20798 fprintf (f, "%ld\n", i);
20799 }
20800 else
20801 {
20802 unsigned long i = ulongval ();
20803 if (i != ((long) (sizeof (wchar_t))))
20804 exit (1);
20805 fprintf (f, "%lu\n", i);
20806 }
20807 exit (ferror (f) || fclose (f) != 0);
20808
20809 ;
20810 return 0;
20811}
a848cd7e
SC
20812_ACEOF
20813rm -f conftest$ac_exeext
20814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20815 (eval $ac_link) 2>&5
20816 ac_status=$?
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
238ecede 20824 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20825else
20826 echo "$as_me: program exited with status $ac_status" >&5
20827echo "$as_me: failed program was:" >&5
20828sed 's/^/| /' conftest.$ac_ext >&5
20829
20830( exit $ac_status )
238ecede
MW
20831{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20832See \`config.log' for more details." >&5
20833echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20834See \`config.log' for more details." >&2;}
20835 { (exit 1); exit 1; }; }
a848cd7e 20836fi
ac1cb8d3 20837rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20838fi
a848cd7e 20839fi
238ecede
MW
20840rm -f conftest.val
20841else
20842 ac_cv_sizeof_wchar_t=0
20843fi
20844fi
20845echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20846echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20847cat >>confdefs.h <<_ACEOF
238ecede 20848#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20849_ACEOF
20850
20851
47a7e797
MW
20852if test "$ac_cv_sizeof_wchar_t" != "0"; then
20853 wxUSE_WCHAR_T=yes
20854else
20855 wxUSE_WCHAR_T=no
20856fi
238ecede 20857
ba3d13e1
VZ
20858echo "$as_me:$LINENO: checking for va_copy" >&5
20859echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20860if test "${wx_cv_func_va_copy+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20862else
20863
20864 cat >conftest.$ac_ext <<_ACEOF
20865
20866 #include <stdarg.h>
20867 void foo(char *f, ...)
20868 {
20869 va_list ap1, ap2;
20870 va_start(ap1, f);
20871 va_copy(ap2, ap1);
20872 va_end(ap2);
20873 va_end(ap1);
20874 }
5886b072
VZ
20875 int main()
20876 {
b902e639
VZ
20877 foo("hi", 17);
20878 return 0;
5886b072 20879 }
ba3d13e1
VZ
20880_ACEOF
20881rm -f conftest.$ac_objext conftest$ac_exeext
20882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20883 (eval $ac_link) 2>conftest.er1
20884 ac_status=$?
20885 grep -v '^ *+' conftest.er1 >conftest.err
20886 rm -f conftest.er1
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } &&
0093c2fc 20890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; } &&
20896 { ac_try='test -s conftest$ac_exeext'
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20899 ac_status=$?
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; }; then
20902 wx_cv_func_va_copy=yes
20903else
20904 echo "$as_me: failed program was:" >&5
20905sed 's/^/| /' conftest.$ac_ext >&5
20906
20907wx_cv_func_va_copy=no
20908
20909fi
20910rm -f conftest.err conftest.$ac_objext \
20911 conftest$ac_exeext conftest.$ac_ext
20912
20913
20914fi
20915echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20916echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20917
20918if test $wx_cv_func_va_copy = "yes"; then
20919 cat >>confdefs.h <<\_ACEOF
20920#define HAVE_VA_COPY 1
20921_ACEOF
20922
20923else
20924 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20925echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20926if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20927 echo $ECHO_N "(cached) $ECHO_C" >&6
20928else
20929
20930 if test "$cross_compiling" = yes; then
20931 wx_cv_type_va_list_lvalue=yes
20932
20933else
20934 cat >conftest.$ac_ext <<_ACEOF
20935
20936 #include <stdarg.h>
20937 int foo(char *f, ...)
20938 {
20939 va_list ap1, ap2;
20940 va_start(ap1, f);
20941 ap2 = ap1;
20942 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20943 return 1;
20944 va_end(ap2);
20945 va_end(ap1);
20946 return 0;
20947 }
20948 int main()
20949 {
20950 return foo("hi", 17);
20951 }
20952_ACEOF
20953rm -f conftest$ac_exeext
20954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20955 (eval $ac_link) 2>&5
20956 ac_status=$?
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 wx_cv_type_va_list_lvalue=yes
20965else
20966 echo "$as_me: program exited with status $ac_status" >&5
20967echo "$as_me: failed program was:" >&5
20968sed 's/^/| /' conftest.$ac_ext >&5
20969
20970( exit $ac_status )
20971wx_cv_type_va_list_lvalue=no
20972fi
20973rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20974fi
20975
20976
20977fi
20978echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20979echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20980
20981 if test $wx_cv_type_va_list_lvalue != "yes"; then
20982 cat >>confdefs.h <<\_ACEOF
20983#define VA_LIST_IS_ARRAY 1
20984_ACEOF
20985
20986 fi
20987fi
20988
a848cd7e
SC
20989# Check whether --enable-largefile or --disable-largefile was given.
20990if test "${enable_largefile+set}" = set; then
20991 enableval="$enable_largefile"
20992
20993fi;
20994if test "$enable_largefile" != no; then
20995 wx_largefile=no
20996
20997 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20998echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20999if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21001else
21002
21003 cat >conftest.$ac_ext <<_ACEOF
21004/* confdefs.h. */
21005_ACEOF
21006cat confdefs.h >>conftest.$ac_ext
21007cat >>conftest.$ac_ext <<_ACEOF
21008/* end confdefs.h. */
21009#define _FILE_OFFSET_BITS 64
21010 #include <sys/types.h>
21011int
21012main ()
21013{
21014typedef struct {
21015 unsigned int field: sizeof(off_t) == 8;
21016} wxlf;
21017
21018 ;
21019 return 0;
21020}
21021_ACEOF
21022rm -f conftest.$ac_objext
21023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21024 (eval $ac_compile) 2>conftest.er1
a848cd7e 21025 ac_status=$?
ac1cb8d3
VS
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
a848cd7e
SC
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } &&
0093c2fc 21031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21034 ac_status=$?
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21043 ac_cv_sys_file_offset_bits=64
21044else
21045 echo "$as_me: failed program was:" >&5
21046sed 's/^/| /' conftest.$ac_ext >&5
21047
21048ac_cv_sys_file_offset_bits=no
21049fi
ac1cb8d3 21050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21051
21052
21053fi
21054echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21055echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21056
21057 if test "$ac_cv_sys_file_offset_bits" != no; then
21058 wx_largefile=yes
21059 cat >>confdefs.h <<_ACEOF
21060#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21061_ACEOF
21062
21063 fi
21064
21065 if test "x$wx_largefile" != "xyes"; then
21066
21067 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21068echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21069if test "${ac_cv_sys_large_files+set}" = set; then
21070 echo $ECHO_N "(cached) $ECHO_C" >&6
21071else
21072
21073 cat >conftest.$ac_ext <<_ACEOF
21074/* confdefs.h. */
21075_ACEOF
21076cat confdefs.h >>conftest.$ac_ext
21077cat >>conftest.$ac_ext <<_ACEOF
21078/* end confdefs.h. */
21079#define _LARGE_FILES 1
21080 #include <sys/types.h>
21081int
21082main ()
21083{
21084typedef struct {
21085 unsigned int field: sizeof(off_t) == 8;
21086} wxlf;
21087
21088 ;
21089 return 0;
21090}
21091_ACEOF
21092rm -f conftest.$ac_objext
21093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21094 (eval $ac_compile) 2>conftest.er1
a848cd7e 21095 ac_status=$?
ac1cb8d3
VS
21096 grep -v '^ *+' conftest.er1 >conftest.err
21097 rm -f conftest.er1
21098 cat conftest.err >&5
a848cd7e
SC
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } &&
0093c2fc 21101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21104 ac_status=$?
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; } &&
21107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; }; then
21113 ac_cv_sys_large_files=1
21114else
21115 echo "$as_me: failed program was:" >&5
21116sed 's/^/| /' conftest.$ac_ext >&5
21117
21118ac_cv_sys_large_files=no
21119fi
ac1cb8d3 21120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21121
21122
21123fi
21124echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21125echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21126
21127 if test "$ac_cv_sys_large_files" != no; then
21128 wx_largefile=yes
21129 cat >>confdefs.h <<_ACEOF
21130#define _LARGE_FILES $ac_cv_sys_large_files
21131_ACEOF
21132
21133 fi
21134
21135 fi
21136
21137 echo "$as_me:$LINENO: checking if large file support is available" >&5
21138echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21139 if test "x$wx_largefile" = "xyes"; then
21140 cat >>confdefs.h <<\_ACEOF
21141#define HAVE_LARGEFILE_SUPPORT 1
21142_ACEOF
21143
21144 fi
21145 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21146echo "${ECHO_T}$wx_largefile" >&6
21147fi
21148
5b674b9d
DE
21149
21150if test "x$wx_largefile" = "xyes"; then
21151 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
21152 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21153
21154 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21155 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21156echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21157if test "${wx_cv_STDC_EXT_required+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21159else
21160
21161
21162
21163 ac_ext=cc
21164ac_cpp='$CXXCPP $CPPFLAGS'
21165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21168
21169 cat >conftest.$ac_ext <<_ACEOF
21170/* confdefs.h. */
21171_ACEOF
21172cat confdefs.h >>conftest.$ac_ext
21173cat >>conftest.$ac_ext <<_ACEOF
21174/* end confdefs.h. */
21175
21176int
21177main ()
21178{
21179
21180 #ifndef __STDC_EXT__
21181 choke me
21182 #endif
21183
21184 ;
21185 return 0;
21186}
21187_ACEOF
21188rm -f conftest.$ac_objext
21189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21190 (eval $ac_compile) 2>conftest.er1
21191 ac_status=$?
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } &&
0093c2fc 21197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; } &&
21203 { ac_try='test -s conftest.$ac_objext'
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; }; then
21209 wx_cv_STDC_EXT_required=no
21210else
21211 echo "$as_me: failed program was:" >&5
21212sed 's/^/| /' conftest.$ac_ext >&5
21213
21214wx_cv_STDC_EXT_required=yes
21215
21216fi
21217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21218 ac_ext=c
21219ac_cpp='$CPP $CPPFLAGS'
21220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21222ac_compiler_gnu=$ac_cv_c_compiler_gnu
21223
21224
21225
21226fi
21227echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21228echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21229 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
21230 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
21231 fi
21232 fi
5b674b9d
DE
21233 else
21234 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
21235 fi
21236 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21237echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21238if test "${ac_cv_sys_largefile_source+set}" = set; then
21239 echo $ECHO_N "(cached) $ECHO_C" >&6
21240else
21241 while :; do
21242 ac_cv_sys_largefile_source=no
21243 cat >conftest.$ac_ext <<_ACEOF
21244/* confdefs.h. */
21245_ACEOF
21246cat confdefs.h >>conftest.$ac_ext
21247cat >>conftest.$ac_ext <<_ACEOF
21248/* end confdefs.h. */
21249#include <stdio.h>
21250int
21251main ()
21252{
21253return !fseeko;
21254 ;
21255 return 0;
21256}
21257_ACEOF
21258rm -f conftest.$ac_objext
21259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21260 (eval $ac_compile) 2>conftest.er1
21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } &&
0093c2fc 21267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; } &&
21273 { ac_try='test -s conftest.$ac_objext'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; }; then
21279 break
21280else
21281 echo "$as_me: failed program was:" >&5
21282sed 's/^/| /' conftest.$ac_ext >&5
21283
21284fi
21285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21286 cat >conftest.$ac_ext <<_ACEOF
21287/* confdefs.h. */
21288_ACEOF
21289cat confdefs.h >>conftest.$ac_ext
21290cat >>conftest.$ac_ext <<_ACEOF
21291/* end confdefs.h. */
21292#define _LARGEFILE_SOURCE 1
21293#include <stdio.h>
21294int
21295main ()
21296{
21297return !fseeko;
21298 ;
21299 return 0;
21300}
21301_ACEOF
21302rm -f conftest.$ac_objext
21303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21304 (eval $ac_compile) 2>conftest.er1
21305 ac_status=$?
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
0093c2fc 21311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; } &&
21317 { ac_try='test -s conftest.$ac_objext'
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21323 ac_cv_sys_largefile_source=1; break
21324else
21325 echo "$as_me: failed program was:" >&5
21326sed 's/^/| /' conftest.$ac_ext >&5
21327
21328fi
21329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21330 break
21331done
21332fi
21333echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21334echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21335if test "$ac_cv_sys_largefile_source" != no; then
21336
21337cat >>confdefs.h <<_ACEOF
21338#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21339_ACEOF
21340
21341fi
21342rm -f conftest*
21343
21344# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21345# in glibc 2.1.3, but that breaks too many other things.
21346# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21347echo "$as_me:$LINENO: checking for fseeko" >&5
21348echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21349if test "${ac_cv_func_fseeko+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21351else
21352 cat >conftest.$ac_ext <<_ACEOF
21353/* confdefs.h. */
21354_ACEOF
21355cat confdefs.h >>conftest.$ac_ext
21356cat >>conftest.$ac_ext <<_ACEOF
21357/* end confdefs.h. */
21358#include <stdio.h>
21359int
21360main ()
21361{
21362return fseeko && fseeko (stdin, 0, 0);
21363 ;
21364 return 0;
21365}
21366_ACEOF
21367rm -f conftest.$ac_objext conftest$ac_exeext
21368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21369 (eval $ac_link) 2>conftest.er1
21370 ac_status=$?
21371 grep -v '^ *+' conftest.er1 >conftest.err
21372 rm -f conftest.er1
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } &&
0093c2fc 21376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; } &&
21382 { ac_try='test -s conftest$ac_exeext'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
21388 ac_cv_func_fseeko=yes
21389else
21390 echo "$as_me: failed program was:" >&5
21391sed 's/^/| /' conftest.$ac_ext >&5
21392
21393ac_cv_func_fseeko=no
21394fi
21395rm -f conftest.err conftest.$ac_objext \
21396 conftest$ac_exeext conftest.$ac_ext
21397fi
21398echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21399echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21400if test $ac_cv_func_fseeko = yes; then
21401
21402cat >>confdefs.h <<\_ACEOF
21403#define HAVE_FSEEKO 1
21404_ACEOF
21405
21406fi
21407
5b674b9d
DE
21408 if test "$ac_cv_sys_largefile_source" != no; then
21409 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
21410 fi
21411 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
21412fi
21413
21414echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21415echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21416if test "${ac_cv_c_bigendian+set}" = set; then
21417 echo $ECHO_N "(cached) $ECHO_C" >&6
21418else
21419 ac_cv_c_bigendian=unknown
21420# See if sys/param.h defines the BYTE_ORDER macro.
21421cat >conftest.$ac_ext <<_ACEOF
21422/* confdefs.h. */
21423_ACEOF
21424cat confdefs.h >>conftest.$ac_ext
21425cat >>conftest.$ac_ext <<_ACEOF
21426/* end confdefs.h. */
21427#include <sys/types.h>
21428#include <sys/param.h>
21429int
21430main ()
21431{
21432
21433#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21434 bogus endian macros
21435#endif
21436 ;
21437 return 0;
21438}
21439_ACEOF
21440rm -f conftest.$ac_objext
21441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21442 (eval $ac_compile) 2>conftest.er1
a848cd7e 21443 ac_status=$?
ac1cb8d3
VS
21444 grep -v '^ *+' conftest.er1 >conftest.err
21445 rm -f conftest.er1
21446 cat conftest.err >&5
a848cd7e
SC
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
0093c2fc 21449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; } &&
21455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; }; then
21461 # It does; now see whether it defined to BIG_ENDIAN or not.
21462cat >conftest.$ac_ext <<_ACEOF
21463/* confdefs.h. */
21464_ACEOF
21465cat confdefs.h >>conftest.$ac_ext
21466cat >>conftest.$ac_ext <<_ACEOF
21467/* end confdefs.h. */
21468#include <sys/types.h>
21469#include <sys/param.h>
21470int
21471main ()
21472{
21473
21474#if BYTE_ORDER != BIG_ENDIAN
21475 not big endian
21476#endif
21477 ;
21478 return 0;
21479}
21480_ACEOF
21481rm -f conftest.$ac_objext
21482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21483 (eval $ac_compile) 2>conftest.er1
a848cd7e 21484 ac_status=$?
ac1cb8d3
VS
21485 grep -v '^ *+' conftest.er1 >conftest.err
21486 rm -f conftest.er1
21487 cat conftest.err >&5
a848cd7e
SC
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } &&
0093c2fc 21490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 ac_cv_c_bigendian=yes
21503else
21504 echo "$as_me: failed program was:" >&5
21505sed 's/^/| /' conftest.$ac_ext >&5
21506
21507ac_cv_c_bigendian=no
21508fi
ac1cb8d3 21509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21510else
21511 echo "$as_me: failed program was:" >&5
21512sed 's/^/| /' conftest.$ac_ext >&5
21513
21514fi
ac1cb8d3 21515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21516if test $ac_cv_c_bigendian = unknown; then
21517if test "$cross_compiling" = yes; then
21518 ac_cv_c_bigendian=unknown
21519else
21520 cat >conftest.$ac_ext <<_ACEOF
21521/* confdefs.h. */
21522_ACEOF
21523cat confdefs.h >>conftest.$ac_ext
21524cat >>conftest.$ac_ext <<_ACEOF
21525/* end confdefs.h. */
21526main () {
21527 /* Are we little or big endian? From Harbison&Steele. */
21528 union
21529 {
21530 long l;
21531 char c[sizeof (long)];
21532 } u;
21533 u.l = 1;
21534 exit (u.c[sizeof (long) - 1] == 1);
21535}
21536_ACEOF
21537rm -f conftest$ac_exeext
21538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21539 (eval $ac_link) 2>&5
21540 ac_status=$?
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 ac_cv_c_bigendian=no
21549else
21550 echo "$as_me: program exited with status $ac_status" >&5
21551echo "$as_me: failed program was:" >&5
21552sed 's/^/| /' conftest.$ac_ext >&5
21553
21554( exit $ac_status )
21555ac_cv_c_bigendian=yes
21556fi
ac1cb8d3 21557rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21558fi
21559fi
21560fi
21561echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21562echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21563if test $ac_cv_c_bigendian = unknown; then
21564 { 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
21565echo "$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;}
21566fi
21567if test $ac_cv_c_bigendian = yes; then
21568 cat >>confdefs.h <<\_ACEOF
21569#define WORDS_BIGENDIAN 1
21570_ACEOF
21571
21572fi
21573
21574
21575ac_ext=cc
21576ac_cpp='$CXXCPP $CPPFLAGS'
21577ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21578ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21579ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21580echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21581echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21582if test -z "$CXXCPP"; then
21583 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21584 echo $ECHO_N "(cached) $ECHO_C" >&6
21585else
21586 # Double quotes because CXXCPP needs to be expanded
21587 for CXXCPP in "$CXX -E" "/lib/cpp"
21588 do
21589 ac_preproc_ok=false
21590for ac_cxx_preproc_warn_flag in '' yes
21591do
21592 # Use a header file that comes with gcc, so configuring glibc
21593 # with a fresh cross-compiler works.
21594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21595 # <limits.h> exists even on freestanding compilers.
21596 # On the NeXT, cc -E runs the code through the compiler's parser,
21597 # not just through cpp. "Syntax error" is here to catch this case.
21598 cat >conftest.$ac_ext <<_ACEOF
21599/* confdefs.h. */
21600_ACEOF
21601cat confdefs.h >>conftest.$ac_ext
21602cat >>conftest.$ac_ext <<_ACEOF
21603/* end confdefs.h. */
21604#ifdef __STDC__
21605# include <limits.h>
21606#else
21607# include <assert.h>
21608#endif
ac1cb8d3 21609 Syntax error
a848cd7e
SC
21610_ACEOF
21611if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21613 ac_status=$?
21614 grep -v '^ *+' conftest.er1 >conftest.err
21615 rm -f conftest.er1
21616 cat conftest.err >&5
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } >/dev/null; then
21619 if test -s conftest.err; then
21620 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21621 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21622 else
21623 ac_cpp_err=
21624 fi
21625else
21626 ac_cpp_err=yes
21627fi
21628if test -z "$ac_cpp_err"; then
21629 :
21630else
21631 echo "$as_me: failed program was:" >&5
21632sed 's/^/| /' conftest.$ac_ext >&5
21633
21634 # Broken: fails on valid input.
21635continue
21636fi
21637rm -f conftest.err conftest.$ac_ext
21638
21639 # OK, works on sane cases. Now check whether non-existent headers
21640 # can be detected and how.
21641 cat >conftest.$ac_ext <<_ACEOF
21642/* confdefs.h. */
21643_ACEOF
21644cat confdefs.h >>conftest.$ac_ext
21645cat >>conftest.$ac_ext <<_ACEOF
21646/* end confdefs.h. */
21647#include <ac_nonexistent.h>
21648_ACEOF
21649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21651 ac_status=$?
21652 grep -v '^ *+' conftest.er1 >conftest.err
21653 rm -f conftest.er1
21654 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } >/dev/null; then
21657 if test -s conftest.err; then
21658 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21659 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21660 else
21661 ac_cpp_err=
21662 fi
21663else
21664 ac_cpp_err=yes
21665fi
21666if test -z "$ac_cpp_err"; then
21667 # Broken: success on invalid input.
21668continue
21669else
21670 echo "$as_me: failed program was:" >&5
21671sed 's/^/| /' conftest.$ac_ext >&5
21672
21673 # Passes both tests.
21674ac_preproc_ok=:
21675break
21676fi
21677rm -f conftest.err conftest.$ac_ext
21678
21679done
21680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21681rm -f conftest.err conftest.$ac_ext
21682if $ac_preproc_ok; then
21683 break
21684fi
21685
21686 done
21687 ac_cv_prog_CXXCPP=$CXXCPP
21688
21689fi
21690 CXXCPP=$ac_cv_prog_CXXCPP
21691else
21692 ac_cv_prog_CXXCPP=$CXXCPP
21693fi
21694echo "$as_me:$LINENO: result: $CXXCPP" >&5
21695echo "${ECHO_T}$CXXCPP" >&6
21696ac_preproc_ok=false
21697for ac_cxx_preproc_warn_flag in '' yes
21698do
21699 # Use a header file that comes with gcc, so configuring glibc
21700 # with a fresh cross-compiler works.
21701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21702 # <limits.h> exists even on freestanding compilers.
21703 # On the NeXT, cc -E runs the code through the compiler's parser,
21704 # not just through cpp. "Syntax error" is here to catch this case.
21705 cat >conftest.$ac_ext <<_ACEOF
21706/* confdefs.h. */
21707_ACEOF
21708cat confdefs.h >>conftest.$ac_ext
21709cat >>conftest.$ac_ext <<_ACEOF
21710/* end confdefs.h. */
21711#ifdef __STDC__
21712# include <limits.h>
21713#else
21714# include <assert.h>
21715#endif
ac1cb8d3 21716 Syntax error
a848cd7e
SC
21717_ACEOF
21718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } >/dev/null; then
21726 if test -s conftest.err; then
21727 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21728 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21729 else
21730 ac_cpp_err=
21731 fi
21732else
21733 ac_cpp_err=yes
21734fi
21735if test -z "$ac_cpp_err"; then
21736 :
21737else
21738 echo "$as_me: failed program was:" >&5
21739sed 's/^/| /' conftest.$ac_ext >&5
21740
21741 # Broken: fails on valid input.
21742continue
21743fi
21744rm -f conftest.err conftest.$ac_ext
21745
21746 # OK, works on sane cases. Now check whether non-existent headers
21747 # can be detected and how.
21748 cat >conftest.$ac_ext <<_ACEOF
21749/* confdefs.h. */
21750_ACEOF
21751cat confdefs.h >>conftest.$ac_ext
21752cat >>conftest.$ac_ext <<_ACEOF
21753/* end confdefs.h. */
21754#include <ac_nonexistent.h>
21755_ACEOF
21756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21758 ac_status=$?
21759 grep -v '^ *+' conftest.er1 >conftest.err
21760 rm -f conftest.er1
21761 cat conftest.err >&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } >/dev/null; then
21764 if test -s conftest.err; then
21765 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21766 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21767 else
21768 ac_cpp_err=
21769 fi
21770else
21771 ac_cpp_err=yes
21772fi
21773if test -z "$ac_cpp_err"; then
21774 # Broken: success on invalid input.
21775continue
21776else
21777 echo "$as_me: failed program was:" >&5
21778sed 's/^/| /' conftest.$ac_ext >&5
21779
21780 # Passes both tests.
21781ac_preproc_ok=:
21782break
21783fi
21784rm -f conftest.err conftest.$ac_ext
21785
21786done
21787# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21788rm -f conftest.err conftest.$ac_ext
21789if $ac_preproc_ok; then
21790 :
21791else
21792 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21793See \`config.log' for more details." >&5
21794echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21795See \`config.log' for more details." >&2;}
21796 { (exit 1); exit 1; }; }
21797fi
21798
21799ac_ext=cc
21800ac_cpp='$CXXCPP $CPPFLAGS'
21801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21804
21805
21806
21807
21808
21809 ac_ext=cc
21810ac_cpp='$CXXCPP $CPPFLAGS'
21811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21814
21815
21816
21817for ac_header in iostream
21818do
21819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21820if eval "test \"\${$as_ac_Header+set}\" = set"; then
21821 echo "$as_me:$LINENO: checking for $ac_header" >&5
21822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21823if eval "test \"\${$as_ac_Header+set}\" = set"; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825fi
21826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21828else
21829 # Is the header compilable?
21830echo "$as_me:$LINENO: checking $ac_header usability" >&5
21831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21832cat >conftest.$ac_ext <<_ACEOF
21833/* confdefs.h. */
21834_ACEOF
21835cat confdefs.h >>conftest.$ac_ext
21836cat >>conftest.$ac_ext <<_ACEOF
21837/* end confdefs.h. */
21838$ac_includes_default
21839#include <$ac_header>
21840_ACEOF
21841rm -f conftest.$ac_objext
21842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21843 (eval $ac_compile) 2>conftest.er1
a848cd7e 21844 ac_status=$?
ac1cb8d3
VS
21845 grep -v '^ *+' conftest.er1 >conftest.err
21846 rm -f conftest.er1
21847 cat conftest.err >&5
a848cd7e
SC
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } &&
0093c2fc 21850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); }; } &&
21856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858 (eval $ac_try) 2>&5
21859 ac_status=$?
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; }; then
21862 ac_header_compiler=yes
21863else
21864 echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
21866
21867ac_header_compiler=no
21868fi
ac1cb8d3 21869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21870echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21871echo "${ECHO_T}$ac_header_compiler" >&6
21872
21873# Is the header present?
21874echo "$as_me:$LINENO: checking $ac_header presence" >&5
21875echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21876cat >conftest.$ac_ext <<_ACEOF
21877/* confdefs.h. */
21878_ACEOF
21879cat confdefs.h >>conftest.$ac_ext
21880cat >>conftest.$ac_ext <<_ACEOF
21881/* end confdefs.h. */
21882#include <$ac_header>
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 ac_header_preproc=yes
21903else
21904 echo "$as_me: failed program was:" >&5
21905sed 's/^/| /' conftest.$ac_ext >&5
21906
21907 ac_header_preproc=no
21908fi
21909rm -f conftest.err conftest.$ac_ext
21910echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21911echo "${ECHO_T}$ac_header_preproc" >&6
21912
21913# So? What about this header?
ac1cb8d3
VS
21914case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21915 yes:no: )
a848cd7e
SC
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21919echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21920 ac_header_preproc=yes
a848cd7e 21921 ;;
ac1cb8d3 21922 no:yes:* )
a848cd7e
SC
21923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21926echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21928echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21930echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21934echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21935 (
21936 cat <<\_ASBOX
ac1cb8d3
VS
21937## ----------------------------------------- ##
21938## Report this to wx-dev@lists.wxwidgets.org ##
21939## ----------------------------------------- ##
a848cd7e
SC
21940_ASBOX
21941 ) |
21942 sed "s/^/$as_me: WARNING: /" >&2
21943 ;;
21944esac
21945echo "$as_me:$LINENO: checking for $ac_header" >&5
21946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21947if eval "test \"\${$as_ac_Header+set}\" = set"; then
21948 echo $ECHO_N "(cached) $ECHO_C" >&6
21949else
ac1cb8d3 21950 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21951fi
21952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21954
21955fi
21956if test `eval echo '${'$as_ac_Header'}'` = yes; then
21957 cat >>confdefs.h <<_ACEOF
21958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21959_ACEOF
21960
21961fi
21962
21963done
21964
21965
21966 if test "$ac_cv_header_iostream" = "yes" ; then
21967 :
21968 else
21969 cat >>confdefs.h <<\_ACEOF
21970#define wxUSE_IOSTREAMH 1
21971_ACEOF
21972
21973 fi
21974
21975 ac_ext=c
21976ac_cpp='$CPP $CPPFLAGS'
21977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21979ac_compiler_gnu=$ac_cv_c_compiler_gnu
21980
21981
21982
21983
21984 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21985echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21986if test "${wx_cv_cpp_bool+set}" = set; then
21987 echo $ECHO_N "(cached) $ECHO_C" >&6
21988else
21989
21990
21991
21992 ac_ext=cc
21993ac_cpp='$CXXCPP $CPPFLAGS'
21994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21997
21998
21999 cat >conftest.$ac_ext <<_ACEOF
22000/* confdefs.h. */
22001_ACEOF
22002cat confdefs.h >>conftest.$ac_ext
22003cat >>conftest.$ac_ext <<_ACEOF
22004/* end confdefs.h. */
22005
22006
22007int
22008main ()
22009{
22010
22011 bool b = true;
22012
22013 return 0;
22014
22015 ;
22016 return 0;
22017}
22018_ACEOF
22019rm -f conftest.$ac_objext
22020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22021 (eval $ac_compile) 2>conftest.er1
a848cd7e 22022 ac_status=$?
ac1cb8d3
VS
22023 grep -v '^ *+' conftest.er1 >conftest.err
22024 rm -f conftest.er1
22025 cat conftest.err >&5
a848cd7e
SC
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } &&
0093c2fc 22028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030 (eval $ac_try) 2>&5
22031 ac_status=$?
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; } &&
22034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22036 (eval $ac_try) 2>&5
22037 ac_status=$?
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; }; then
22040
22041 wx_cv_cpp_bool=yes
22042
22043else
22044 echo "$as_me: failed program was:" >&5
22045sed 's/^/| /' conftest.$ac_ext >&5
22046
22047
22048 wx_cv_cpp_bool=no
22049
22050
22051fi
ac1cb8d3 22052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22053
22054 ac_ext=c
22055ac_cpp='$CPP $CPPFLAGS'
22056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22058ac_compiler_gnu=$ac_cv_c_compiler_gnu
22059
22060
22061fi
22062echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22063echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22064
22065 if test "$wx_cv_cpp_bool" = "yes"; then
22066 cat >>confdefs.h <<\_ACEOF
22067#define HAVE_BOOL 1
22068_ACEOF
22069
22070 fi
22071
22072
22073
22074 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22075echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22076if test "${wx_cv_explicit+set}" = set; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22078else
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 cat >conftest.$ac_ext <<_ACEOF
22090/* confdefs.h. */
22091_ACEOF
22092cat confdefs.h >>conftest.$ac_ext
22093cat >>conftest.$ac_ext <<_ACEOF
22094/* end confdefs.h. */
22095
22096 class Foo { public: explicit Foo(int) {} };
22097
22098int
22099main ()
22100{
22101
22102 return 0;
22103
22104 ;
22105 return 0;
22106}
22107_ACEOF
22108rm -f conftest.$ac_objext
22109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22110 (eval $ac_compile) 2>conftest.er1
a848cd7e 22111 ac_status=$?
ac1cb8d3
VS
22112 grep -v '^ *+' conftest.er1 >conftest.err
22113 rm -f conftest.er1
22114 cat conftest.err >&5
a848cd7e
SC
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } &&
0093c2fc 22117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; } &&
22123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
22129
22130 cat >conftest.$ac_ext <<_ACEOF
22131/* confdefs.h. */
22132_ACEOF
22133cat confdefs.h >>conftest.$ac_ext
22134cat >>conftest.$ac_ext <<_ACEOF
22135/* end confdefs.h. */
22136
22137 class Foo { public: explicit Foo(int) {} };
22138 static void TakeFoo(const Foo& foo) { }
22139
22140int
22141main ()
22142{
22143
22144 TakeFoo(17);
22145 return 0;
22146
22147 ;
22148 return 0;
22149}
22150_ACEOF
22151rm -f conftest.$ac_objext
22152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22153 (eval $ac_compile) 2>conftest.er1
a848cd7e 22154 ac_status=$?
ac1cb8d3
VS
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
a848cd7e
SC
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
0093c2fc 22160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; } &&
22166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
22172 wx_cv_explicit=no
22173else
22174 echo "$as_me: failed program was:" >&5
22175sed 's/^/| /' conftest.$ac_ext >&5
22176
22177wx_cv_explicit=yes
22178
22179fi
ac1cb8d3 22180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22181
22182else
22183 echo "$as_me: failed program was:" >&5
22184sed 's/^/| /' conftest.$ac_ext >&5
22185
22186wx_cv_explicit=no
22187
22188fi
ac1cb8d3 22189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22190
22191 ac_ext=c
22192ac_cpp='$CPP $CPPFLAGS'
22193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22195ac_compiler_gnu=$ac_cv_c_compiler_gnu
22196
22197
22198fi
22199echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22200echo "${ECHO_T}$wx_cv_explicit" >&6
22201
22202 if test "$wx_cv_explicit" = "yes"; then
22203 cat >>confdefs.h <<\_ACEOF
22204#define HAVE_EXPLICIT 1
22205_ACEOF
22206
22207 fi
22208
22209
22210echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22211echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22212if test "${ac_cv_cxx_const_cast+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22214else
22215
22216
22217 ac_ext=cc
22218ac_cpp='$CXXCPP $CPPFLAGS'
22219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22222
22223 cat >conftest.$ac_ext <<_ACEOF
22224/* confdefs.h. */
22225_ACEOF
22226cat confdefs.h >>conftest.$ac_ext
22227cat >>conftest.$ac_ext <<_ACEOF
22228/* end confdefs.h. */
22229
22230int
22231main ()
22232{
22233int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22234 ;
22235 return 0;
22236}
22237_ACEOF
22238rm -f conftest.$ac_objext
22239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22240 (eval $ac_compile) 2>conftest.er1
a848cd7e 22241 ac_status=$?
ac1cb8d3
VS
22242 grep -v '^ *+' conftest.er1 >conftest.err
22243 rm -f conftest.er1
22244 cat conftest.err >&5
a848cd7e
SC
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } &&
0093c2fc 22247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; } &&
22253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22256 ac_status=$?
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; }; then
22259 ac_cv_cxx_const_cast=yes
22260else
22261 echo "$as_me: failed program was:" >&5
22262sed 's/^/| /' conftest.$ac_ext >&5
22263
22264ac_cv_cxx_const_cast=no
22265fi
ac1cb8d3 22266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22267 ac_ext=c
22268ac_cpp='$CPP $CPPFLAGS'
22269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22271ac_compiler_gnu=$ac_cv_c_compiler_gnu
22272
22273
22274fi
22275echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22276echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22277if test "$ac_cv_cxx_const_cast" = yes; then
22278
22279cat >>confdefs.h <<\_ACEOF
22280#define HAVE_CONST_CAST
22281_ACEOF
22282
22283fi
22284
7714864e
RL
22285echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22286echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22287if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22289else
22290
22291
22292 ac_ext=cc
22293ac_cpp='$CXXCPP $CPPFLAGS'
22294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22297
22298 cat >conftest.$ac_ext <<_ACEOF
22299/* confdefs.h. */
22300_ACEOF
22301cat confdefs.h >>conftest.$ac_ext
22302cat >>conftest.$ac_ext <<_ACEOF
22303/* end confdefs.h. */
22304#include <typeinfo>
22305class Base { public : Base () {} virtual void f () = 0;};
22306class Derived : public Base { public : Derived () {} virtual void f () {} };
22307class Unrelated { public : Unrelated () {} };
22308int g (Unrelated&) { return 0; }
22309int
22310main ()
22311{
22312
22313Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22314 ;
22315 return 0;
22316}
22317_ACEOF
22318rm -f conftest.$ac_objext
22319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320 (eval $ac_compile) 2>conftest.er1
22321 ac_status=$?
22322 grep -v '^ *+' conftest.er1 >conftest.err
22323 rm -f conftest.er1
22324 cat conftest.err >&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } &&
0093c2fc 22327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; } &&
22333 { ac_try='test -s conftest.$ac_objext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 ac_cv_cxx_reinterpret_cast=yes
22340else
22341 echo "$as_me: failed program was:" >&5
22342sed 's/^/| /' conftest.$ac_ext >&5
22343
22344ac_cv_cxx_reinterpret_cast=no
22345fi
22346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22347 ac_ext=c
22348ac_cpp='$CPP $CPPFLAGS'
22349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22351ac_compiler_gnu=$ac_cv_c_compiler_gnu
22352
22353
22354fi
22355echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22356echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22357if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22358
22359cat >>confdefs.h <<\_ACEOF
22360#define HAVE_REINTERPRET_CAST
22361_ACEOF
22362
22363fi
22364
a848cd7e
SC
22365echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22366echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22367if test "${ac_cv_cxx_static_cast+set}" = set; then
22368 echo $ECHO_N "(cached) $ECHO_C" >&6
22369else
22370
22371
22372 ac_ext=cc
22373ac_cpp='$CXXCPP $CPPFLAGS'
22374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22377
22378 cat >conftest.$ac_ext <<_ACEOF
22379/* confdefs.h. */
22380_ACEOF
22381cat confdefs.h >>conftest.$ac_ext
22382cat >>conftest.$ac_ext <<_ACEOF
22383/* end confdefs.h. */
22384#include <typeinfo>
22385class Base { public : Base () {} virtual void f () = 0; };
22386class Derived : public Base { public : Derived () {} virtual void f () {} };
22387int g (Derived&) { return 0; }
22388int
22389main ()
22390{
22391
22392Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22393 ;
22394 return 0;
22395}
22396_ACEOF
22397rm -f conftest.$ac_objext
22398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22399 (eval $ac_compile) 2>conftest.er1
a848cd7e 22400 ac_status=$?
ac1cb8d3
VS
22401 grep -v '^ *+' conftest.er1 >conftest.err
22402 rm -f conftest.er1
22403 cat conftest.err >&5
a848cd7e
SC
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } &&
0093c2fc 22406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22408 (eval $ac_try) 2>&5
22409 ac_status=$?
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); }; } &&
22412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414 (eval $ac_try) 2>&5
22415 ac_status=$?
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }; }; then
22418 ac_cv_cxx_static_cast=yes
22419else
22420 echo "$as_me: failed program was:" >&5
22421sed 's/^/| /' conftest.$ac_ext >&5
22422
22423ac_cv_cxx_static_cast=no
22424fi
ac1cb8d3 22425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22426 ac_ext=c
22427ac_cpp='$CPP $CPPFLAGS'
22428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22430ac_compiler_gnu=$ac_cv_c_compiler_gnu
22431
22432
22433fi
22434echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22435echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22436if test "$ac_cv_cxx_static_cast" = yes; then
22437
22438cat >>confdefs.h <<\_ACEOF
22439#define HAVE_STATIC_CAST
22440_ACEOF
22441
22442fi
22443
22444
3c28b7cb
MW
22445if test "x$SUNCXX" = xyes; then
22446 CXXFLAGS="$CXXFLAGS -features=tmplife"
22447fi
22448
9122d155
VZ
22449if test "x$SUNCC" = xyes; then
22450 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
22451fi
22452
0ad5d837
VZ
22453if test "x$SGICC" = "xyes"; then
22454 CFLAGS="$CFLAGS -woff 3970"
22455fi
22456if test "x$SGICXX" = "xyes"; then
22457 CXXFLAGS="$CXXFLAGS -woff 3970"
22458fi
22459
2eef8513
VZ
22460if test "x$HPCC" = "xyes"; then
22461 CFLAGS="$CFLAGS +W 2011,2450"
22462fi
22463if test "x$HPCXX" = "xyes"; then
22464 CXXFLAGS="$CXXFLAGS +W 2340"
22465fi
22466
22467if test "x$COMPAQCXX" = "xyes"; then
22468 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22469fi
22470
f56c22b4 22471if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22472 ac_ext=cc
22473ac_cpp='$CXXCPP $CPPFLAGS'
22474ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22475ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22476ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22477
22478
f56c22b4
MW
22479 if test "$wxUSE_UNICODE" = "yes"; then
22480 std_string="std::wstring"
22481 char_type="wchar_t"
22482 else
22483 std_string="std::string"
22484 char_type="char"
22485 fi
22486
22487 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22488echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22489 cat >conftest.$ac_ext <<_ACEOF
22490/* confdefs.h. */
22491_ACEOF
22492cat confdefs.h >>conftest.$ac_ext
22493cat >>conftest.$ac_ext <<_ACEOF
22494/* end confdefs.h. */
22495#include <string>
a848cd7e
SC
22496int
22497main ()
22498{
f56c22b4 22499$std_string foo;
a848cd7e
SC
22500 ;
22501 return 0;
22502}
22503_ACEOF
22504rm -f conftest.$ac_objext
22505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22506 (eval $ac_compile) 2>conftest.er1
a848cd7e 22507 ac_status=$?
ac1cb8d3
VS
22508 grep -v '^ *+' conftest.er1 >conftest.err
22509 rm -f conftest.er1
22510 cat conftest.err >&5
a848cd7e
SC
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
0093c2fc 22513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22516 ac_status=$?
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; } &&
22519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22522 ac_status=$?
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22525 echo "$as_me:$LINENO: result: yes" >&5
22526echo "${ECHO_T}yes" >&6
0a08f02a
MB
22527 cat >>confdefs.h <<\_ACEOF
22528#define HAVE_STD_WSTRING 1
22529_ACEOF
22530
a848cd7e
SC
22531else
22532 echo "$as_me: failed program was:" >&5
22533sed 's/^/| /' conftest.$ac_ext >&5
22534
22535echo "$as_me:$LINENO: result: no" >&5
22536echo "${ECHO_T}no" >&6
f56c22b4
MW
22537 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22538echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22539 cat >conftest.$ac_ext <<_ACEOF
22540/* confdefs.h. */
22541_ACEOF
22542cat confdefs.h >>conftest.$ac_ext
22543cat >>conftest.$ac_ext <<_ACEOF
22544/* end confdefs.h. */
22545
22546 #ifdef HAVE_WCHAR_H
22547 # ifdef __CYGWIN__
22548 # include <stddef.h>
22549 # endif
22550 # include <wchar.h>
22551 #endif
22552 #ifdef HAVE_STDLIB_H
22553 # include <stdlib.h>
22554 #endif
22555 #include <stdio.h>
22556 #include <string>
22557
22558int
22559main ()
22560{
f56c22b4
MW
22561std::basic_string<$char_type> foo;
22562 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22563 ;
22564 return 0;
22565}
22566_ACEOF
22567rm -f conftest.$ac_objext
22568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22569 (eval $ac_compile) 2>conftest.er1
22570 ac_status=$?
22571 grep -v '^ *+' conftest.er1 >conftest.err
22572 rm -f conftest.er1
22573 cat conftest.err >&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } &&
0093c2fc 22576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22579 ac_status=$?
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; } &&
22582 { ac_try='test -s conftest.$ac_objext'
22583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584 (eval $ac_try) 2>&5
22585 ac_status=$?
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22588 echo "$as_me:$LINENO: result: yes" >&5
22589echo "${ECHO_T}yes" >&6
22590else
22591 echo "$as_me: failed program was:" >&5
22592sed 's/^/| /' conftest.$ac_ext >&5
22593
22594echo "$as_me:$LINENO: result: no" >&5
22595echo "${ECHO_T}no" >&6
f56c22b4 22596 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22597 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22598echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22599 { (exit 1); exit 1; }; }
22600 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22601 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22602echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22603 { (exit 1); exit 1; }; }
f56c22b4
MW
22604 else
22605 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22606echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22607 wxUSE_STD_STRING=no
22608 fi
22609
0a08f02a 22610
a848cd7e 22611fi
ac1cb8d3 22612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22613
0a08f02a
MB
22614fi
22615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22616
22617 ac_ext=c
22618ac_cpp='$CPP $CPPFLAGS'
22619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22621ac_compiler_gnu=$ac_cv_c_compiler_gnu
22622
22623fi
22624
22625if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22626 ac_ext=cc
22627ac_cpp='$CXXCPP $CPPFLAGS'
22628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22631
22632
22633 echo "$as_me:$LINENO: checking for std::istream" >&5
22634echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22635if test "${ac_cv_type_std__istream+set}" = set; then
22636 echo $ECHO_N "(cached) $ECHO_C" >&6
22637else
22638 cat >conftest.$ac_ext <<_ACEOF
22639/* confdefs.h. */
22640_ACEOF
22641cat confdefs.h >>conftest.$ac_ext
22642cat >>conftest.$ac_ext <<_ACEOF
22643/* end confdefs.h. */
22644#include <iostream>
22645
22646int
22647main ()
22648{
22649if ((std::istream *) 0)
22650 return 0;
22651if (sizeof (std::istream))
22652 return 0;
22653 ;
22654 return 0;
22655}
22656_ACEOF
22657rm -f conftest.$ac_objext
22658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22659 (eval $ac_compile) 2>conftest.er1
22660 ac_status=$?
22661 grep -v '^ *+' conftest.er1 >conftest.err
22662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } &&
0093c2fc 22666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668 (eval $ac_try) 2>&5
22669 ac_status=$?
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); }; } &&
22672 { ac_try='test -s conftest.$ac_objext'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; }; then
22678 ac_cv_type_std__istream=yes
22679else
22680 echo "$as_me: failed program was:" >&5
22681sed 's/^/| /' conftest.$ac_ext >&5
22682
22683ac_cv_type_std__istream=no
22684fi
22685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22686fi
22687echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22688echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22689if test $ac_cv_type_std__istream = yes; then
22690
22691cat >>confdefs.h <<_ACEOF
22692#define HAVE_STD__ISTREAM 1
22693_ACEOF
22694
22695
22696else
22697 wxUSE_STD_IOSTREAM=no
22698fi
22699echo "$as_me:$LINENO: checking for std::ostream" >&5
22700echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22701if test "${ac_cv_type_std__ostream+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22703else
22704 cat >conftest.$ac_ext <<_ACEOF
22705/* confdefs.h. */
22706_ACEOF
22707cat confdefs.h >>conftest.$ac_ext
22708cat >>conftest.$ac_ext <<_ACEOF
22709/* end confdefs.h. */
22710#include <iostream>
22711
22712int
22713main ()
22714{
22715if ((std::ostream *) 0)
22716 return 0;
22717if (sizeof (std::ostream))
22718 return 0;
22719 ;
22720 return 0;
22721}
22722_ACEOF
22723rm -f conftest.$ac_objext
22724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22725 (eval $ac_compile) 2>conftest.er1
22726 ac_status=$?
22727 grep -v '^ *+' conftest.er1 >conftest.err
22728 rm -f conftest.er1
22729 cat conftest.err >&5
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); } &&
0093c2fc 22732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22735 ac_status=$?
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; } &&
22738 { ac_try='test -s conftest.$ac_objext'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22741 ac_status=$?
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; }; then
22744 ac_cv_type_std__ostream=yes
22745else
22746 echo "$as_me: failed program was:" >&5
22747sed 's/^/| /' conftest.$ac_ext >&5
22748
22749ac_cv_type_std__ostream=no
22750fi
22751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22752fi
22753echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22754echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22755if test $ac_cv_type_std__ostream = yes; then
22756
22757cat >>confdefs.h <<_ACEOF
22758#define HAVE_STD__OSTREAM 1
22759_ACEOF
22760
22761
22762else
22763 wxUSE_STD_IOSTREAM=no
22764fi
22765
22766
22767 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22768 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22769 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22770echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22771 { (exit 1); exit 1; }; }
22772 else
22773 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22774echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22775 fi
f56c22b4
MW
22776 fi
22777
22778 ac_ext=c
22779ac_cpp='$CPP $CPPFLAGS'
22780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22782ac_compiler_gnu=$ac_cv_c_compiler_gnu
22783
22784fi
22785
22786if test "$wxUSE_STL" = "yes"; then
22787 ac_ext=cc
22788ac_cpp='$CXXCPP $CPPFLAGS'
22789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22792
22793
22794 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22795echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22796 cat >conftest.$ac_ext <<_ACEOF
22797/* confdefs.h. */
22798_ACEOF
22799cat confdefs.h >>conftest.$ac_ext
22800cat >>conftest.$ac_ext <<_ACEOF
22801/* end confdefs.h. */
22802#include <string>
0a08f02a
MB
22803 #include <functional>
22804 #include <algorithm>
22805 #include <vector>
22806 #include <list>
a848cd7e
SC
22807int
22808main ()
22809{
0a08f02a
MB
22810std::vector<int> moo;
22811 std::list<int> foo;
22812 std::vector<int>::iterator it =
22813 std::find_if(moo.begin(), moo.end(),
22814 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22815 ;
22816 return 0;
22817}
22818_ACEOF
22819rm -f conftest.$ac_objext
22820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22821 (eval $ac_compile) 2>conftest.er1
a848cd7e 22822 ac_status=$?
ac1cb8d3
VS
22823 grep -v '^ *+' conftest.er1 >conftest.err
22824 rm -f conftest.er1
22825 cat conftest.err >&5
a848cd7e
SC
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); } &&
0093c2fc 22828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22831 ac_status=$?
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }; } &&
22834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22837 ac_status=$?
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }; then
22840 echo "$as_me:$LINENO: result: yes" >&5
22841echo "${ECHO_T}yes" >&6
a848cd7e
SC
22842else
22843 echo "$as_me: failed program was:" >&5
22844sed 's/^/| /' conftest.$ac_ext >&5
22845
22846echo "$as_me:$LINENO: result: no" >&5
22847echo "${ECHO_T}no" >&6
0a08f02a
MB
22848 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22849echo "$as_me: error: Basic STL functionality missing" >&2;}
22850 { (exit 1); exit 1; }; }
a848cd7e 22851fi
ac1cb8d3 22852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22853
22854 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22855echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22856 cat >conftest.$ac_ext <<_ACEOF
22857/* confdefs.h. */
22858_ACEOF
22859cat confdefs.h >>conftest.$ac_ext
22860cat >>conftest.$ac_ext <<_ACEOF
22861/* end confdefs.h. */
22862#include <string>
22863int
22864main ()
22865{
22866std::string foo, bar;
22867 foo.compare(bar);
22868 foo.compare(1, 1, bar);
22869 foo.compare(1, 1, bar, 1, 1);
22870 foo.compare("");
22871 foo.compare(1, 1, "");
22872 foo.compare(1, 1, "", 2);
22873 ;
22874 return 0;
22875}
22876_ACEOF
22877rm -f conftest.$ac_objext
22878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22879 (eval $ac_compile) 2>conftest.er1
a848cd7e 22880 ac_status=$?
ac1cb8d3
VS
22881 grep -v '^ *+' conftest.er1 >conftest.err
22882 rm -f conftest.er1
22883 cat conftest.err >&5
a848cd7e
SC
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } &&
0093c2fc 22886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; } &&
22892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894 (eval $ac_try) 2>&5
22895 ac_status=$?
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; }; then
22898 echo "$as_me:$LINENO: result: yes" >&5
22899echo "${ECHO_T}yes" >&6
22900 cat >>confdefs.h <<\_ACEOF
22901#define HAVE_STD_STRING_COMPARE 1
22902_ACEOF
22903
22904else
22905 echo "$as_me: failed program was:" >&5
22906sed 's/^/| /' conftest.$ac_ext >&5
22907
22908echo "$as_me:$LINENO: result: no" >&5
22909echo "${ECHO_T}no" >&6
22910fi
ac1cb8d3 22911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22912
22913 if test "${ac_cv_header_hash_map+set}" = set; then
22914 echo "$as_me:$LINENO: checking for hash_map" >&5
22915echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22916if test "${ac_cv_header_hash_map+set}" = set; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22918fi
22919echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22920echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22921else
22922 # Is the header compilable?
22923echo "$as_me:$LINENO: checking hash_map usability" >&5
22924echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22925cat >conftest.$ac_ext <<_ACEOF
22926/* confdefs.h. */
22927_ACEOF
22928cat confdefs.h >>conftest.$ac_ext
22929cat >>conftest.$ac_ext <<_ACEOF
22930/* end confdefs.h. */
22931$ac_includes_default
22932#include <hash_map>
22933_ACEOF
22934rm -f conftest.$ac_objext
22935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22936 (eval $ac_compile) 2>conftest.er1
bdcade0a 22937 ac_status=$?
ac1cb8d3
VS
22938 grep -v '^ *+' conftest.er1 >conftest.err
22939 rm -f conftest.er1
22940 cat conftest.err >&5
bdcade0a
MB
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
0093c2fc 22943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; } &&
22949 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951 (eval $ac_try) 2>&5
22952 ac_status=$?
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); }; }; then
22955 ac_header_compiler=yes
22956else
22957 echo "$as_me: failed program was:" >&5
22958sed 's/^/| /' conftest.$ac_ext >&5
22959
22960ac_header_compiler=no
22961fi
ac1cb8d3 22962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22963echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22964echo "${ECHO_T}$ac_header_compiler" >&6
22965
22966# Is the header present?
22967echo "$as_me:$LINENO: checking hash_map presence" >&5
22968echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
22969cat >conftest.$ac_ext <<_ACEOF
22970/* confdefs.h. */
22971_ACEOF
22972cat confdefs.h >>conftest.$ac_ext
22973cat >>conftest.$ac_ext <<_ACEOF
22974/* end confdefs.h. */
22975#include <hash_map>
22976_ACEOF
22977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22979 ac_status=$?
22980 grep -v '^ *+' conftest.er1 >conftest.err
22981 rm -f conftest.er1
22982 cat conftest.err >&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); } >/dev/null; then
22985 if test -s conftest.err; then
22986 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22987 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22988 else
22989 ac_cpp_err=
22990 fi
22991else
22992 ac_cpp_err=yes
22993fi
22994if test -z "$ac_cpp_err"; then
22995 ac_header_preproc=yes
22996else
22997 echo "$as_me: failed program was:" >&5
22998sed 's/^/| /' conftest.$ac_ext >&5
22999
23000 ac_header_preproc=no
23001fi
23002rm -f conftest.err conftest.$ac_ext
23003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23004echo "${ECHO_T}$ac_header_preproc" >&6
23005
23006# So? What about this header?
ac1cb8d3
VS
23007case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23008 yes:no: )
bdcade0a
MB
23009 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23010echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23011 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23012echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23013 ac_header_preproc=yes
bdcade0a 23014 ;;
ac1cb8d3 23015 no:yes:* )
bdcade0a
MB
23016 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23017echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23018 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23019echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23020 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23021echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23022 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23023echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23024 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23025echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23026 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23027echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23028 (
23029 cat <<\_ASBOX
ac1cb8d3
VS
23030## ----------------------------------------- ##
23031## Report this to wx-dev@lists.wxwidgets.org ##
23032## ----------------------------------------- ##
bdcade0a
MB
23033_ASBOX
23034 ) |
23035 sed "s/^/$as_me: WARNING: /" >&2
23036 ;;
23037esac
23038echo "$as_me:$LINENO: checking for hash_map" >&5
23039echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23040if test "${ac_cv_header_hash_map+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23042else
23043 ac_cv_header_hash_map=$ac_header_preproc
23044fi
23045echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23046echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23047
23048fi
23049if test $ac_cv_header_hash_map = yes; then
23050 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23051echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23052 cat >conftest.$ac_ext <<_ACEOF
23053/* confdefs.h. */
23054_ACEOF
23055cat confdefs.h >>conftest.$ac_ext
23056cat >>conftest.$ac_ext <<_ACEOF
23057/* end confdefs.h. */
23058#include <hash_map>
23059 #include <hash_set>
23060int
23061main ()
23062{
23063std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23064 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23065 ;
23066 return 0;
23067}
23068_ACEOF
23069rm -f conftest.$ac_objext
23070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23071 (eval $ac_compile) 2>conftest.er1
bdcade0a 23072 ac_status=$?
ac1cb8d3
VS
23073 grep -v '^ *+' conftest.er1 >conftest.err
23074 rm -f conftest.er1
23075 cat conftest.err >&5
bdcade0a
MB
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } &&
0093c2fc 23078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23080 (eval $ac_try) 2>&5
23081 ac_status=$?
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); }; } &&
23084 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }; then
23090 echo "$as_me:$LINENO: result: yes" >&5
23091echo "${ECHO_T}yes" >&6
23092 cat >>confdefs.h <<\_ACEOF
23093#define HAVE_HASH_MAP 1
23094_ACEOF
23095
23096 cat >>confdefs.h <<\_ACEOF
23097#define HAVE_STD_HASH_MAP 1
23098_ACEOF
23099
23100else
23101 echo "$as_me: failed program was:" >&5
23102sed 's/^/| /' conftest.$ac_ext >&5
23103
23104echo "$as_me:$LINENO: result: no" >&5
23105echo "${ECHO_T}no" >&6
23106fi
ac1cb8d3 23107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23108
23109fi
23110
23111
23112
23113 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23114 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23115echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23116if test "${ac_cv_header_ext_hash_map+set}" = set; then
23117 echo $ECHO_N "(cached) $ECHO_C" >&6
23118fi
23119echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23120echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23121else
23122 # Is the header compilable?
23123echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23124echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23125cat >conftest.$ac_ext <<_ACEOF
23126/* confdefs.h. */
23127_ACEOF
23128cat confdefs.h >>conftest.$ac_ext
23129cat >>conftest.$ac_ext <<_ACEOF
23130/* end confdefs.h. */
23131$ac_includes_default
23132#include <ext/hash_map>
23133_ACEOF
23134rm -f conftest.$ac_objext
23135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23136 (eval $ac_compile) 2>conftest.er1
bdcade0a 23137 ac_status=$?
ac1cb8d3
VS
23138 grep -v '^ *+' conftest.er1 >conftest.err
23139 rm -f conftest.er1
23140 cat conftest.err >&5
bdcade0a
MB
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } &&
0093c2fc 23143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145 (eval $ac_try) 2>&5
23146 ac_status=$?
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); }; } &&
23149 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151 (eval $ac_try) 2>&5
23152 ac_status=$?
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); }; }; then
23155 ac_header_compiler=yes
23156else
23157 echo "$as_me: failed program was:" >&5
23158sed 's/^/| /' conftest.$ac_ext >&5
23159
23160ac_header_compiler=no
23161fi
ac1cb8d3 23162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23163echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23164echo "${ECHO_T}$ac_header_compiler" >&6
23165
23166# Is the header present?
23167echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23168echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23169cat >conftest.$ac_ext <<_ACEOF
23170/* confdefs.h. */
23171_ACEOF
23172cat confdefs.h >>conftest.$ac_ext
23173cat >>conftest.$ac_ext <<_ACEOF
23174/* end confdefs.h. */
23175#include <ext/hash_map>
23176_ACEOF
23177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23179 ac_status=$?
23180 grep -v '^ *+' conftest.er1 >conftest.err
23181 rm -f conftest.er1
23182 cat conftest.err >&5
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } >/dev/null; then
23185 if test -s conftest.err; then
23186 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23187 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23188 else
23189 ac_cpp_err=
23190 fi
23191else
23192 ac_cpp_err=yes
23193fi
23194if test -z "$ac_cpp_err"; then
23195 ac_header_preproc=yes
23196else
23197 echo "$as_me: failed program was:" >&5
23198sed 's/^/| /' conftest.$ac_ext >&5
23199
23200 ac_header_preproc=no
23201fi
23202rm -f conftest.err conftest.$ac_ext
23203echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23204echo "${ECHO_T}$ac_header_preproc" >&6
23205
23206# So? What about this header?
ac1cb8d3
VS
23207case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23208 yes:no: )
bdcade0a
MB
23209 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23210echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23211 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23212echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23213 ac_header_preproc=yes
bdcade0a 23214 ;;
ac1cb8d3 23215 no:yes:* )
bdcade0a
MB
23216 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23217echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23218 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23219echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23220 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23221echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23222 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23223echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23224 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23225echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23226 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23227echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23228 (
23229 cat <<\_ASBOX
ac1cb8d3
VS
23230## ----------------------------------------- ##
23231## Report this to wx-dev@lists.wxwidgets.org ##
23232## ----------------------------------------- ##
bdcade0a
MB
23233_ASBOX
23234 ) |
23235 sed "s/^/$as_me: WARNING: /" >&2
23236 ;;
23237esac
23238echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23239echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23240if test "${ac_cv_header_ext_hash_map+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23242else
23243 ac_cv_header_ext_hash_map=$ac_header_preproc
23244fi
23245echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23246echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23247
23248fi
23249if test $ac_cv_header_ext_hash_map = yes; then
23250 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23251echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23252 cat >conftest.$ac_ext <<_ACEOF
23253/* confdefs.h. */
23254_ACEOF
23255cat confdefs.h >>conftest.$ac_ext
23256cat >>conftest.$ac_ext <<_ACEOF
23257/* end confdefs.h. */
23258#include <ext/hash_map>
23259 #include <ext/hash_set>
23260int
23261main ()
23262{
23263__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23264 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23265 ;
23266 return 0;
23267}
23268_ACEOF
23269rm -f conftest.$ac_objext
23270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23271 (eval $ac_compile) 2>conftest.er1
bdcade0a 23272 ac_status=$?
ac1cb8d3
VS
23273 grep -v '^ *+' conftest.er1 >conftest.err
23274 rm -f conftest.er1
23275 cat conftest.err >&5
bdcade0a
MB
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } &&
0093c2fc 23278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280 (eval $ac_try) 2>&5
23281 ac_status=$?
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); }; } &&
23284 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 echo "$as_me:$LINENO: result: yes" >&5
23291echo "${ECHO_T}yes" >&6
23292 cat >>confdefs.h <<\_ACEOF
23293#define HAVE_EXT_HASH_MAP 1
23294_ACEOF
23295
23296 cat >>confdefs.h <<\_ACEOF
23297#define HAVE_GNU_CXX_HASH_MAP 1
23298_ACEOF
23299
23300else
23301 echo "$as_me: failed program was:" >&5
23302sed 's/^/| /' conftest.$ac_ext >&5
23303
23304echo "$as_me:$LINENO: result: no" >&5
23305echo "${ECHO_T}no" >&6
23306fi
ac1cb8d3 23307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23308
23309fi
23310
23311
a848cd7e
SC
23312
23313 ac_ext=c
23314ac_cpp='$CPP $CPPFLAGS'
23315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23317ac_compiler_gnu=$ac_cv_c_compiler_gnu
23318
23319fi
23320
23321
23322SEARCH_INCLUDE="\
23323 /usr/local/include \
23324 \
23325 /usr/Motif-2.1/include \
23326 /usr/Motif-1.2/include \
23327 /usr/include/Motif1.2 \
a848cd7e
SC
23328 \
23329 /usr/dt/include \
23330 /usr/openwin/include \
23331 \
23332 /usr/include/Xm \
23333 \
23334 /usr/X11R6/include \
23335 /usr/X11R6.4/include \
23336 /usr/X11R5/include \
23337 /usr/X11R4/include \
23338 \
23339 /usr/include/X11R6 \
23340 /usr/include/X11R5 \
23341 /usr/include/X11R4 \
23342 \
23343 /usr/local/X11R6/include \
23344 /usr/local/X11R5/include \
23345 /usr/local/X11R4/include \
23346 \
23347 /usr/local/include/X11R6 \
23348 /usr/local/include/X11R5 \
23349 /usr/local/include/X11R4 \
23350 \
23351 /usr/X11/include \
23352 /usr/include/X11 \
23353 /usr/local/X11/include \
23354 /usr/local/include/X11 \
23355 \
a848cd7e 23356 /usr/XFree86/include/X11 \
e051b34e
MW
23357 /usr/pkg/include \
23358 \
a848cd7e
SC
23359 /usr/openwin/share/include"
23360
6f9cf1e6 23361echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23362echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23363
23364case "${host}" in
23365 *-*-irix6* )
23366 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23368else
23369
c687b303
VZ
23370 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23371 for e in a so sl dylib dll.a; do
23372 libc="$d/libc.$e"
23373 if test -f $libc; then
23374 save_LIBS="$LIBS"
23375 LIBS="$libc"
23376 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23377int main() { return 0; }
23378_ACEOF
23379rm -f conftest.$ac_objext conftest$ac_exeext
23380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23381 (eval $ac_link) 2>conftest.er1
23382 ac_status=$?
23383 grep -v '^ *+' conftest.er1 >conftest.err
23384 rm -f conftest.er1
23385 cat conftest.err >&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } &&
0093c2fc 23388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; } &&
23394 { ac_try='test -s conftest$ac_exeext'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; }; then
23400 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23401else
23402 echo "$as_me: failed program was:" >&5
23403sed 's/^/| /' conftest.$ac_ext >&5
23404
23405fi
23406rm -f conftest.err conftest.$ac_objext \
23407 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23408 LIBS="$save_LIBS"
23409 if test "x$wx_cv_std_libpath" != "x"; then
23410 break 2
23411 fi
23412 fi
23413 done
23414 done
23415 if test "x$wx_cv_std_libpath" = "x"; then
23416 wx_cv_std_libpath="lib"
0ad5d837 23417 fi
0ad5d837
VZ
23418
23419
23420fi
6f9cf1e6
MW
23421
23422 ;;
23423
23424 *-*-solaris2* )
23425 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23426 wx_cv_std_libpath="lib/64"
23427 else
23428 wx_cv_std_libpath="lib"
23429 fi
23430 ;;
23431
23432 *-*-linux* )
23433 if test "$ac_cv_sizeof_void_p" = 8 -a \
23434 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23435 wx_cv_std_libpath="lib64"
23436 else
23437 wx_cv_std_libpath="lib"
23438 fi
c687b303
VZ
23439 ;;
23440
23441 *)
23442 wx_cv_std_libpath="lib";
23443 ;;
23444esac
0ad5d837 23445
6f9cf1e6
MW
23446echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23447echo "${ECHO_T}$wx_cv_std_libpath" >&6
23448
23449SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23450
3eca31dc
MW
23451if test "$build" != "$host" -a "$GCC" = yes; then
23452 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23453 cross_root=`dirname $cross_root`
23454 cross_root=`dirname $cross_root`
23455
23456 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23457 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23458
23459 if test -z "$PKG_CONFIG_PATH"; then
23460 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23461 export PKG_CONFIG_PATH
23462 fi
23463
23464 if test -z "$x_includes" -o "$x_includes" = NONE; then
23465
23466ac_find_includes=
23467for ac_dir in $SEARCH_INCLUDE /usr/include;
23468 do
23469 if test -f "$ac_dir/X11/Intrinsic.h"; then
23470 ac_find_includes=$ac_dir
23471 break
23472 fi
23473 done
23474
23475 x_includes=$ac_find_includes
23476 fi
23477 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23478
0ad5d837
VZ
23479 ac_find_libraries=
23480 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23481 do
23482 for ac_extension in a so sl dylib dll.a; do
23483 if test -f "$ac_dir/libXt.$ac_extension"; then
23484 ac_find_libraries=$ac_dir
23485 break 2
23486 fi
23487 done
23488 done
23489
23490 x_libraries=$ac_find_libraries
23491 fi
23492 fi
23493fi
23494
a848cd7e
SC
23495
23496cat >confcache <<\_ACEOF
23497# This file is a shell script that caches the results of configure
23498# tests run on this system so they can be shared between configure
23499# scripts and configure runs, see configure's option --config-cache.
23500# It is not useful on other systems. If it contains results you don't
23501# want to keep, you may remove or edit it.
23502#
23503# config.status only pays attention to the cache file if you give it
23504# the --recheck option to rerun configure.
23505#
23506# `ac_cv_env_foo' variables (set or unset) will be overridden when
23507# loading this file, other *unset* `ac_cv_foo' will be assigned the
23508# following values.
23509
23510_ACEOF
23511
23512# The following way of writing the cache mishandles newlines in values,
23513# but we know of no workaround that is simple, portable, and efficient.
23514# So, don't put newlines in cache variables' values.
23515# Ultrix sh set writes to stderr and can't be redirected directly,
23516# and sets the high bit in the cache file unless we assign to the vars.
23517{
23518 (set) 2>&1 |
23519 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23520 *ac_space=\ *)
23521 # `set' does not quote correctly, so add quotes (double-quote
23522 # substitution turns \\\\ into \\, and sed turns \\ into \).
23523 sed -n \
ac1cb8d3
VS
23524 "s/'/'\\\\''/g;
23525 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23526 ;;
23527 *)
23528 # `set' quotes correctly as required by POSIX, so do not add quotes.
23529 sed -n \
ac1cb8d3 23530 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23531 ;;
23532 esac;
23533} |
23534 sed '
23535 t clear
23536 : clear
23537 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23538 t end
23539 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23540 : end' >>confcache
23541if diff $cache_file confcache >/dev/null 2>&1; then :; else
23542 if test -w $cache_file; then
23543 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23544 cat confcache >$cache_file
23545 else
23546 echo "not updating unwritable cache $cache_file"
23547 fi
23548fi
23549rm -f confcache
23550
23551if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23552 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23553echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23554if test "${wx_cv_lib_glibc21+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23556else
23557
23558 cat >conftest.$ac_ext <<_ACEOF
23559/* confdefs.h. */
23560_ACEOF
23561cat confdefs.h >>conftest.$ac_ext
23562cat >>conftest.$ac_ext <<_ACEOF
23563/* end confdefs.h. */
23564#include <features.h>
23565int
23566main ()
23567{
23568
23569 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23570 not glibc 2.1
a848cd7e
SC
23571 #endif
23572
23573 ;
23574 return 0;
23575}
23576_ACEOF
23577rm -f conftest.$ac_objext
23578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23579 (eval $ac_compile) 2>conftest.er1
a848cd7e 23580 ac_status=$?
ac1cb8d3
VS
23581 grep -v '^ *+' conftest.er1 >conftest.err
23582 rm -f conftest.er1
23583 cat conftest.err >&5
a848cd7e
SC
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } &&
0093c2fc 23586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588 (eval $ac_try) 2>&5
23589 ac_status=$?
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; } &&
23592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594 (eval $ac_try) 2>&5
23595 ac_status=$?
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); }; }; then
23598
23599 wx_cv_lib_glibc21=yes
23600
23601else
23602 echo "$as_me: failed program was:" >&5
23603sed 's/^/| /' conftest.$ac_ext >&5
23604
23605
23606 wx_cv_lib_glibc21=no
23607
23608
23609fi
ac1cb8d3 23610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23611
23612fi
23613echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23614echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23615 if test "$wx_cv_lib_glibc21" = "yes"; then
23616 cat >>confdefs.h <<\_ACEOF
23617#define wxHAVE_GLIBC2 1
23618_ACEOF
23619
23620 fi
23621fi
23622
23623if test "x$wx_cv_lib_glibc21" = "xyes"; then
23624 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23625 cat >>confdefs.h <<\_ACEOF
23626#define _GNU_SOURCE 1
23627_ACEOF
23628
23629 fi
23630fi
23631
23632
23633
23634if test "$wxUSE_REGEX" != "no"; then
23635 cat >>confdefs.h <<\_ACEOF
23636#define wxUSE_REGEX 1
23637_ACEOF
23638
23639
23640 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23641 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23642echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23643 wxUSE_REGEX=builtin
23644 fi
23645
23646 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23647 if test "${ac_cv_header_regex_h+set}" = set; then
23648 echo "$as_me:$LINENO: checking for regex.h" >&5
23649echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23650if test "${ac_cv_header_regex_h+set}" = set; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23652fi
23653echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23654echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23655else
23656 # Is the header compilable?
23657echo "$as_me:$LINENO: checking regex.h usability" >&5
23658echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23659cat >conftest.$ac_ext <<_ACEOF
23660/* confdefs.h. */
23661_ACEOF
23662cat confdefs.h >>conftest.$ac_ext
23663cat >>conftest.$ac_ext <<_ACEOF
23664/* end confdefs.h. */
23665$ac_includes_default
23666#include <regex.h>
23667_ACEOF
23668rm -f conftest.$ac_objext
23669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23670 (eval $ac_compile) 2>conftest.er1
a848cd7e 23671 ac_status=$?
ac1cb8d3
VS
23672 grep -v '^ *+' conftest.er1 >conftest.err
23673 rm -f conftest.er1
23674 cat conftest.err >&5
a848cd7e
SC
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } &&
0093c2fc 23677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23680 ac_status=$?
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 ac_header_compiler=yes
23690else
23691 echo "$as_me: failed program was:" >&5
23692sed 's/^/| /' conftest.$ac_ext >&5
23693
23694ac_header_compiler=no
23695fi
ac1cb8d3 23696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23698echo "${ECHO_T}$ac_header_compiler" >&6
23699
23700# Is the header present?
23701echo "$as_me:$LINENO: checking regex.h presence" >&5
23702echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23703cat >conftest.$ac_ext <<_ACEOF
23704/* confdefs.h. */
23705_ACEOF
23706cat confdefs.h >>conftest.$ac_ext
23707cat >>conftest.$ac_ext <<_ACEOF
23708/* end confdefs.h. */
23709#include <regex.h>
23710_ACEOF
23711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23713 ac_status=$?
23714 grep -v '^ *+' conftest.er1 >conftest.err
23715 rm -f conftest.er1
23716 cat conftest.err >&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } >/dev/null; then
23719 if test -s conftest.err; then
23720 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23722 else
23723 ac_cpp_err=
23724 fi
23725else
23726 ac_cpp_err=yes
23727fi
23728if test -z "$ac_cpp_err"; then
23729 ac_header_preproc=yes
23730else
23731 echo "$as_me: failed program was:" >&5
23732sed 's/^/| /' conftest.$ac_ext >&5
23733
23734 ac_header_preproc=no
23735fi
23736rm -f conftest.err conftest.$ac_ext
23737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23738echo "${ECHO_T}$ac_header_preproc" >&6
23739
23740# So? What about this header?
ac1cb8d3
VS
23741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23742 yes:no: )
a848cd7e
SC
23743 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23744echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23745 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23746echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23747 ac_header_preproc=yes
a848cd7e 23748 ;;
ac1cb8d3 23749 no:yes:* )
a848cd7e
SC
23750 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23751echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23752 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23753echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23754 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23755echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23756 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23757echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23758 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23759echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23760 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23761echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23762 (
23763 cat <<\_ASBOX
ac1cb8d3
VS
23764## ----------------------------------------- ##
23765## Report this to wx-dev@lists.wxwidgets.org ##
23766## ----------------------------------------- ##
a848cd7e
SC
23767_ASBOX
23768 ) |
23769 sed "s/^/$as_me: WARNING: /" >&2
23770 ;;
23771esac
23772echo "$as_me:$LINENO: checking for regex.h" >&5
23773echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23774if test "${ac_cv_header_regex_h+set}" = set; then
23775 echo $ECHO_N "(cached) $ECHO_C" >&6
23776else
23777 ac_cv_header_regex_h=$ac_header_preproc
23778fi
23779echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23780echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23781
23782fi
23783if test $ac_cv_header_regex_h = yes; then
23784
23785for ac_func in regcomp
23786do
23787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23788echo "$as_me:$LINENO: checking for $ac_func" >&5
23789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23790if eval "test \"\${$as_ac_var+set}\" = set"; then
23791 echo $ECHO_N "(cached) $ECHO_C" >&6
23792else
23793 cat >conftest.$ac_ext <<_ACEOF
23794/* confdefs.h. */
23795_ACEOF
23796cat confdefs.h >>conftest.$ac_ext
23797cat >>conftest.$ac_ext <<_ACEOF
23798/* end confdefs.h. */
ac1cb8d3
VS
23799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23801#define $ac_func innocuous_$ac_func
23802
a848cd7e
SC
23803/* System header to define __stub macros and hopefully few prototypes,
23804 which can conflict with char $ac_func (); below.
23805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23806 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23807
a848cd7e
SC
23808#ifdef __STDC__
23809# include <limits.h>
23810#else
23811# include <assert.h>
23812#endif
ac1cb8d3
VS
23813
23814#undef $ac_func
23815
a848cd7e
SC
23816/* Override any gcc2 internal prototype to avoid an error. */
23817#ifdef __cplusplus
23818extern "C"
23819{
23820#endif
23821/* We use char because int might match the return type of a gcc2
23822 builtin and then its argument prototype would still apply. */
23823char $ac_func ();
23824/* The GNU C library defines this for functions which it implements
23825 to always fail with ENOSYS. Some functions are actually named
23826 something starting with __ and the normal name is an alias. */
23827#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23828choke me
23829#else
23830char (*f) () = $ac_func;
23831#endif
23832#ifdef __cplusplus
23833}
23834#endif
23835
23836int
23837main ()
23838{
23839return f != $ac_func;
23840 ;
23841 return 0;
23842}
23843_ACEOF
23844rm -f conftest.$ac_objext conftest$ac_exeext
23845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23846 (eval $ac_link) 2>conftest.er1
a848cd7e 23847 ac_status=$?
ac1cb8d3
VS
23848 grep -v '^ *+' conftest.er1 >conftest.err
23849 rm -f conftest.er1
23850 cat conftest.err >&5
a848cd7e
SC
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); } &&
0093c2fc 23853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23855 (eval $ac_try) 2>&5
23856 ac_status=$?
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); }; } &&
23859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861 (eval $ac_try) 2>&5
23862 ac_status=$?
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); }; }; then
23865 eval "$as_ac_var=yes"
23866else
23867 echo "$as_me: failed program was:" >&5
23868sed 's/^/| /' conftest.$ac_ext >&5
23869
23870eval "$as_ac_var=no"
23871fi
ac1cb8d3
VS
23872rm -f conftest.err conftest.$ac_objext \
23873 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23874fi
23875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23876echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23877if test `eval echo '${'$as_ac_var'}'` = yes; then
23878 cat >>confdefs.h <<_ACEOF
23879#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23880_ACEOF
23881
23882fi
23883done
23884
23885fi
23886
23887
23888
23889 if test "x$ac_cv_func_regcomp" != "xyes"; then
23890 if test "$wxUSE_REGEX" = "sys" ; then
23891 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23892echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23893 { (exit 1); exit 1; }; }
23894 else
23895 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23896echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23897 wxUSE_REGEX=builtin
23898 fi
23899 else
23900 wxUSE_REGEX=sys
23901 cat >>confdefs.h <<\_ACEOF
23902#define WX_NO_REGEX_ADVANCED 1
23903_ACEOF
23904
23905 fi
23906 fi
23907fi
23908
23909
23910ZLIB_LINK=
23911if test "$wxUSE_ZLIB" != "no" ; then
23912 cat >>confdefs.h <<\_ACEOF
23913#define wxUSE_ZLIB 1
23914_ACEOF
23915
23916
23917 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23918 if test "$USE_DARWIN" = 1; then
23919 system_zlib_h_ok="yes"
23920 else
23921 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23922echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23923if test "${ac_cv_header_zlib_h+set}" = set; then
23924 echo $ECHO_N "(cached) $ECHO_C" >&6
23925else
23926 if test "$cross_compiling" = yes; then
23927 unset ac_cv_header_zlib_h
23928
23929else
23930 cat >conftest.$ac_ext <<_ACEOF
23931/* confdefs.h. */
23932_ACEOF
23933cat confdefs.h >>conftest.$ac_ext
23934cat >>conftest.$ac_ext <<_ACEOF
23935/* end confdefs.h. */
23936
23937 #include <zlib.h>
23938 #include <stdio.h>
23939
23940 int main()
23941 {
23942 FILE *f=fopen("conftestval", "w");
23943 if (!f) exit(1);
23944 fprintf(f, "%s",
23945 ZLIB_VERSION[0] == '1' &&
23946 (ZLIB_VERSION[2] > '1' ||
23947 (ZLIB_VERSION[2] == '1' &&
23948 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23949 exit(0);
23950 }
23951
23952_ACEOF
23953rm -f conftest$ac_exeext
23954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23955 (eval $ac_link) 2>&5
23956 ac_status=$?
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960 (eval $ac_try) 2>&5
23961 ac_status=$?
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); }; }; then
23964 ac_cv_header_zlib_h=`cat conftestval`
23965else
23966 echo "$as_me: program exited with status $ac_status" >&5
23967echo "$as_me: failed program was:" >&5
23968sed 's/^/| /' conftest.$ac_ext >&5
23969
23970( exit $ac_status )
23971ac_cv_header_zlib_h=no
23972fi
ac1cb8d3 23973rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23974fi
23975
23976fi
23977echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23978echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23979 if test "${ac_cv_header_zlib_h+set}" = set; then
23980 echo "$as_me:$LINENO: checking for zlib.h" >&5
23981echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23982if test "${ac_cv_header_zlib_h+set}" = set; then
23983 echo $ECHO_N "(cached) $ECHO_C" >&6
23984fi
23985echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23986echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23987else
23988 # Is the header compilable?
23989echo "$as_me:$LINENO: checking zlib.h usability" >&5
23990echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23991cat >conftest.$ac_ext <<_ACEOF
23992/* confdefs.h. */
23993_ACEOF
23994cat confdefs.h >>conftest.$ac_ext
23995cat >>conftest.$ac_ext <<_ACEOF
23996/* end confdefs.h. */
23997$ac_includes_default
23998#include <zlib.h>
23999_ACEOF
24000rm -f conftest.$ac_objext
24001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24002 (eval $ac_compile) 2>conftest.er1
a848cd7e 24003 ac_status=$?
ac1cb8d3
VS
24004 grep -v '^ *+' conftest.er1 >conftest.err
24005 rm -f conftest.er1
24006 cat conftest.err >&5
a848cd7e
SC
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); } &&
0093c2fc 24009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24011 (eval $ac_try) 2>&5
24012 ac_status=$?
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); }; } &&
24015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017 (eval $ac_try) 2>&5
24018 ac_status=$?
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; }; then
24021 ac_header_compiler=yes
24022else
24023 echo "$as_me: failed program was:" >&5
24024sed 's/^/| /' conftest.$ac_ext >&5
24025
24026ac_header_compiler=no
24027fi
ac1cb8d3 24028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24029echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24030echo "${ECHO_T}$ac_header_compiler" >&6
24031
24032# Is the header present?
24033echo "$as_me:$LINENO: checking zlib.h presence" >&5
24034echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24035cat >conftest.$ac_ext <<_ACEOF
24036/* confdefs.h. */
24037_ACEOF
24038cat confdefs.h >>conftest.$ac_ext
24039cat >>conftest.$ac_ext <<_ACEOF
24040/* end confdefs.h. */
24041#include <zlib.h>
24042_ACEOF
24043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24045 ac_status=$?
24046 grep -v '^ *+' conftest.er1 >conftest.err
24047 rm -f conftest.er1
24048 cat conftest.err >&5
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); } >/dev/null; then
24051 if test -s conftest.err; then
24052 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24054 else
24055 ac_cpp_err=
24056 fi
24057else
24058 ac_cpp_err=yes
24059fi
24060if test -z "$ac_cpp_err"; then
24061 ac_header_preproc=yes
24062else
24063 echo "$as_me: failed program was:" >&5
24064sed 's/^/| /' conftest.$ac_ext >&5
24065
24066 ac_header_preproc=no
24067fi
24068rm -f conftest.err conftest.$ac_ext
24069echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24070echo "${ECHO_T}$ac_header_preproc" >&6
24071
24072# So? What about this header?
ac1cb8d3
VS
24073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24074 yes:no: )
a848cd7e
SC
24075 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24076echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24077 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24078echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24079 ac_header_preproc=yes
a848cd7e 24080 ;;
ac1cb8d3 24081 no:yes:* )
a848cd7e
SC
24082 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24083echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24084 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24085echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24086 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24087echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24088 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24089echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24090 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24091echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24092 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24093echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24094 (
24095 cat <<\_ASBOX
ac1cb8d3
VS
24096## ----------------------------------------- ##
24097## Report this to wx-dev@lists.wxwidgets.org ##
24098## ----------------------------------------- ##
a848cd7e
SC
24099_ASBOX
24100 ) |
24101 sed "s/^/$as_me: WARNING: /" >&2
24102 ;;
24103esac
24104echo "$as_me:$LINENO: checking for zlib.h" >&5
24105echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24106if test "${ac_cv_header_zlib_h+set}" = set; then
24107 echo $ECHO_N "(cached) $ECHO_C" >&6
24108else
24109 ac_cv_header_zlib_h=$ac_header_preproc
24110fi
24111echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24112echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24113
24114fi
24115
24116
24117
24118 system_zlib_h_ok=$ac_cv_header_zlib_h
24119 fi
24120
24121 if test "$system_zlib_h_ok" = "yes"; then
24122 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24123echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24124if test "${ac_cv_lib_z_deflate+set}" = set; then
24125 echo $ECHO_N "(cached) $ECHO_C" >&6
24126else
24127 ac_check_lib_save_LIBS=$LIBS
24128LIBS="-lz $LIBS"
24129cat >conftest.$ac_ext <<_ACEOF
24130/* confdefs.h. */
24131_ACEOF
24132cat confdefs.h >>conftest.$ac_ext
24133cat >>conftest.$ac_ext <<_ACEOF
24134/* end confdefs.h. */
24135
24136/* Override any gcc2 internal prototype to avoid an error. */
24137#ifdef __cplusplus
24138extern "C"
24139#endif
24140/* We use char because int might match the return type of a gcc2
24141 builtin and then its argument prototype would still apply. */
24142char deflate ();
24143int
24144main ()
24145{
24146deflate ();
24147 ;
24148 return 0;
24149}
24150_ACEOF
24151rm -f conftest.$ac_objext conftest$ac_exeext
24152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24153 (eval $ac_link) 2>conftest.er1
a848cd7e 24154 ac_status=$?
ac1cb8d3
VS
24155 grep -v '^ *+' conftest.er1 >conftest.err
24156 rm -f conftest.er1
24157 cat conftest.err >&5
a848cd7e
SC
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); } &&
0093c2fc 24160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162 (eval $ac_try) 2>&5
24163 ac_status=$?
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); }; } &&
24166 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168 (eval $ac_try) 2>&5
24169 ac_status=$?
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); }; }; then
24172 ac_cv_lib_z_deflate=yes
24173else
24174 echo "$as_me: failed program was:" >&5
24175sed 's/^/| /' conftest.$ac_ext >&5
24176
24177ac_cv_lib_z_deflate=no
24178fi
ac1cb8d3
VS
24179rm -f conftest.err conftest.$ac_objext \
24180 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24181LIBS=$ac_check_lib_save_LIBS
24182fi
24183echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24184echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24185if test $ac_cv_lib_z_deflate = yes; then
24186 ZLIB_LINK=" -lz"
24187fi
24188
24189 fi
24190
24191 if test "x$ZLIB_LINK" = "x" ; then
24192 if test "$wxUSE_ZLIB" = "sys" ; then
24193 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24194echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24195 { (exit 1); exit 1; }; }
24196 else
24197 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24198echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24199 wxUSE_ZLIB=builtin
24200 fi
24201 else
24202 wxUSE_ZLIB=sys
24203 fi
24204 fi
24205fi
24206
24207
24208PNG_LINK=
24209if test "$wxUSE_LIBPNG" != "no" ; then
24210 cat >>confdefs.h <<\_ACEOF
24211#define wxUSE_LIBPNG 1
24212_ACEOF
24213
24214
24215 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24216 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24217echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24218 wxUSE_LIBPNG=sys
24219 fi
24220
24221 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24222 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24223echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24224 wxUSE_LIBPNG=builtin
24225 fi
24226
24227 if test "$wxUSE_MGL" != 1 ; then
24228 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24229 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24230echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24231if test "${ac_cv_header_png_h+set}" = set; then
24232 echo $ECHO_N "(cached) $ECHO_C" >&6
24233else
24234 if test "$cross_compiling" = yes; then
24235 unset ac_cv_header_png_h
24236
24237else
24238 cat >conftest.$ac_ext <<_ACEOF
24239/* confdefs.h. */
24240_ACEOF
24241cat confdefs.h >>conftest.$ac_ext
24242cat >>conftest.$ac_ext <<_ACEOF
24243/* end confdefs.h. */
24244
24245 #include <png.h>
24246 #include <stdio.h>
24247
24248 int main()
24249 {
24250 FILE *f=fopen("conftestval", "w");
24251 if (!f) exit(1);
24252 fprintf(f, "%s",
24253 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24254 exit(0);
24255 }
24256
24257_ACEOF
24258rm -f conftest$ac_exeext
24259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24260 (eval $ac_link) 2>&5
24261 ac_status=$?
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265 (eval $ac_try) 2>&5
24266 ac_status=$?
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; }; then
24269 ac_cv_header_png_h=`cat conftestval`
24270else
24271 echo "$as_me: program exited with status $ac_status" >&5
24272echo "$as_me: failed program was:" >&5
24273sed 's/^/| /' conftest.$ac_ext >&5
24274
24275( exit $ac_status )
24276ac_cv_header_png_h=no
24277fi
ac1cb8d3 24278rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24279fi
24280
24281fi
24282echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24283echo "${ECHO_T}$ac_cv_header_png_h" >&6
24284 if test "${ac_cv_header_png_h+set}" = set; then
24285 echo "$as_me:$LINENO: checking for png.h" >&5
24286echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24287if test "${ac_cv_header_png_h+set}" = set; then
24288 echo $ECHO_N "(cached) $ECHO_C" >&6
24289fi
24290echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24291echo "${ECHO_T}$ac_cv_header_png_h" >&6
24292else
24293 # Is the header compilable?
24294echo "$as_me:$LINENO: checking png.h usability" >&5
24295echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24296cat >conftest.$ac_ext <<_ACEOF
24297/* confdefs.h. */
24298_ACEOF
24299cat confdefs.h >>conftest.$ac_ext
24300cat >>conftest.$ac_ext <<_ACEOF
24301/* end confdefs.h. */
24302$ac_includes_default
24303#include <png.h>
24304_ACEOF
24305rm -f conftest.$ac_objext
24306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24307 (eval $ac_compile) 2>conftest.er1
a848cd7e 24308 ac_status=$?
ac1cb8d3
VS
24309 grep -v '^ *+' conftest.er1 >conftest.err
24310 rm -f conftest.er1
24311 cat conftest.err >&5
a848cd7e
SC
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } &&
0093c2fc 24314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24316 (eval $ac_try) 2>&5
24317 ac_status=$?
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); }; } &&
24320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24322 (eval $ac_try) 2>&5
24323 ac_status=$?
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); }; }; then
24326 ac_header_compiler=yes
24327else
24328 echo "$as_me: failed program was:" >&5
24329sed 's/^/| /' conftest.$ac_ext >&5
24330
24331ac_header_compiler=no
24332fi
ac1cb8d3 24333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24335echo "${ECHO_T}$ac_header_compiler" >&6
24336
24337# Is the header present?
24338echo "$as_me:$LINENO: checking png.h presence" >&5
24339echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24340cat >conftest.$ac_ext <<_ACEOF
24341/* confdefs.h. */
24342_ACEOF
24343cat confdefs.h >>conftest.$ac_ext
24344cat >>conftest.$ac_ext <<_ACEOF
24345/* end confdefs.h. */
24346#include <png.h>
24347_ACEOF
24348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24350 ac_status=$?
24351 grep -v '^ *+' conftest.er1 >conftest.err
24352 rm -f conftest.er1
24353 cat conftest.err >&5
24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); } >/dev/null; then
24356 if test -s conftest.err; then
24357 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24359 else
24360 ac_cpp_err=
24361 fi
24362else
24363 ac_cpp_err=yes
24364fi
24365if test -z "$ac_cpp_err"; then
24366 ac_header_preproc=yes
24367else
24368 echo "$as_me: failed program was:" >&5
24369sed 's/^/| /' conftest.$ac_ext >&5
24370
24371 ac_header_preproc=no
24372fi
24373rm -f conftest.err conftest.$ac_ext
24374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24375echo "${ECHO_T}$ac_header_preproc" >&6
24376
24377# So? What about this header?
ac1cb8d3
VS
24378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24379 yes:no: )
a848cd7e
SC
24380 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24381echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24382 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24383echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24384 ac_header_preproc=yes
a848cd7e 24385 ;;
ac1cb8d3 24386 no:yes:* )
a848cd7e
SC
24387 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24388echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24389 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24390echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24391 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24392echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24393 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24394echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24395 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24396echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24397 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24398echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24399 (
24400 cat <<\_ASBOX
ac1cb8d3
VS
24401## ----------------------------------------- ##
24402## Report this to wx-dev@lists.wxwidgets.org ##
24403## ----------------------------------------- ##
a848cd7e
SC
24404_ASBOX
24405 ) |
24406 sed "s/^/$as_me: WARNING: /" >&2
24407 ;;
24408esac
24409echo "$as_me:$LINENO: checking for png.h" >&5
24410echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24411if test "${ac_cv_header_png_h+set}" = set; then
24412 echo $ECHO_N "(cached) $ECHO_C" >&6
24413else
24414 ac_cv_header_png_h=$ac_header_preproc
24415fi
24416echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24417echo "${ECHO_T}$ac_cv_header_png_h" >&6
24418
24419fi
24420
24421
24422
24423 if test "$ac_cv_header_png_h" = "yes"; then
24424 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24425echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24426if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24427 echo $ECHO_N "(cached) $ECHO_C" >&6
24428else
24429 ac_check_lib_save_LIBS=$LIBS
24430LIBS="-lpng -lz -lm $LIBS"
24431cat >conftest.$ac_ext <<_ACEOF
24432/* confdefs.h. */
24433_ACEOF
24434cat confdefs.h >>conftest.$ac_ext
24435cat >>conftest.$ac_ext <<_ACEOF
24436/* end confdefs.h. */
24437
24438/* Override any gcc2 internal prototype to avoid an error. */
24439#ifdef __cplusplus
24440extern "C"
24441#endif
24442/* We use char because int might match the return type of a gcc2
24443 builtin and then its argument prototype would still apply. */
24444char png_check_sig ();
24445int
24446main ()
24447{
24448png_check_sig ();
24449 ;
24450 return 0;
24451}
24452_ACEOF
24453rm -f conftest.$ac_objext conftest$ac_exeext
24454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24455 (eval $ac_link) 2>conftest.er1
a848cd7e 24456 ac_status=$?
ac1cb8d3
VS
24457 grep -v '^ *+' conftest.er1 >conftest.err
24458 rm -f conftest.er1
24459 cat conftest.err >&5
a848cd7e
SC
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } &&
0093c2fc 24462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464 (eval $ac_try) 2>&5
24465 ac_status=$?
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; } &&
24468 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470 (eval $ac_try) 2>&5
24471 ac_status=$?
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); }; }; then
24474 ac_cv_lib_png_png_check_sig=yes
24475else
24476 echo "$as_me: failed program was:" >&5
24477sed 's/^/| /' conftest.$ac_ext >&5
24478
24479ac_cv_lib_png_png_check_sig=no
24480fi
ac1cb8d3
VS
24481rm -f conftest.err conftest.$ac_objext \
24482 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24483LIBS=$ac_check_lib_save_LIBS
24484fi
24485echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24486echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24487if test $ac_cv_lib_png_png_check_sig = yes; then
24488 PNG_LINK=" -lpng -lz"
24489fi
24490
24491 fi
24492
24493 if test "x$PNG_LINK" = "x" ; then
24494 if test "$wxUSE_LIBPNG" = "sys" ; then
24495 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24496echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24497 { (exit 1); exit 1; }; }
24498 else
24499 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24500echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24501 wxUSE_LIBPNG=builtin
24502 fi
24503 else
24504 wxUSE_LIBPNG=sys
24505 fi
24506 fi
24507 fi
24508
24509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24510fi
24511
24512
24513JPEG_LINK=
24514if test "$wxUSE_LIBJPEG" != "no" ; then
24515 cat >>confdefs.h <<\_ACEOF
24516#define wxUSE_LIBJPEG 1
24517_ACEOF
24518
24519
24520 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24521 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24522echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24523 wxUSE_LIBJPEG=sys
24524 fi
24525
24526 if test "$wxUSE_MGL" != 1 ; then
24527 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24528 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24529echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24530 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24531 echo $ECHO_N "(cached) $ECHO_C" >&6
24532else
24533 cat >conftest.$ac_ext <<_ACEOF
24534/* confdefs.h. */
24535_ACEOF
24536cat confdefs.h >>conftest.$ac_ext
24537cat >>conftest.$ac_ext <<_ACEOF
24538/* end confdefs.h. */
24539
24540 #undef HAVE_STDLIB_H
24541 #include <stdio.h>
24542 #include <jpeglib.h>
24543
24544int
24545main ()
24546{
24547
24548
24549 ;
24550 return 0;
24551}
24552_ACEOF
24553rm -f conftest.$ac_objext
24554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24555 (eval $ac_compile) 2>conftest.er1
a848cd7e 24556 ac_status=$?
ac1cb8d3
VS
24557 grep -v '^ *+' conftest.er1 >conftest.err
24558 rm -f conftest.er1
24559 cat conftest.err >&5
a848cd7e
SC
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } &&
0093c2fc 24562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24564 (eval $ac_try) 2>&5
24565 ac_status=$?
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); }; } &&
24568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570 (eval $ac_try) 2>&5
24571 ac_status=$?
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); }; }; then
24574 ac_cv_header_jpeglib_h=yes
24575else
24576 echo "$as_me: failed program was:" >&5
24577sed 's/^/| /' conftest.$ac_ext >&5
24578
24579ac_cv_header_jpeglib_h=no
24580
24581fi
ac1cb8d3 24582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24583
24584fi
24585
24586 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24587echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24588
24589 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24590 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24591echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24592if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24593 echo $ECHO_N "(cached) $ECHO_C" >&6
24594else
24595 ac_check_lib_save_LIBS=$LIBS
24596LIBS="-ljpeg $LIBS"
24597cat >conftest.$ac_ext <<_ACEOF
24598/* confdefs.h. */
24599_ACEOF
24600cat confdefs.h >>conftest.$ac_ext
24601cat >>conftest.$ac_ext <<_ACEOF
24602/* end confdefs.h. */
24603
24604/* Override any gcc2 internal prototype to avoid an error. */
24605#ifdef __cplusplus
24606extern "C"
24607#endif
24608/* We use char because int might match the return type of a gcc2
24609 builtin and then its argument prototype would still apply. */
24610char jpeg_read_header ();
24611int
24612main ()
24613{
24614jpeg_read_header ();
24615 ;
24616 return 0;
24617}
24618_ACEOF
24619rm -f conftest.$ac_objext conftest$ac_exeext
24620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24621 (eval $ac_link) 2>conftest.er1
a848cd7e 24622 ac_status=$?
ac1cb8d3
VS
24623 grep -v '^ *+' conftest.er1 >conftest.err
24624 rm -f conftest.er1
24625 cat conftest.err >&5
a848cd7e
SC
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); } &&
0093c2fc 24628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24631 ac_status=$?
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; } &&
24634 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636 (eval $ac_try) 2>&5
24637 ac_status=$?
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; }; then
24640 ac_cv_lib_jpeg_jpeg_read_header=yes
24641else
24642 echo "$as_me: failed program was:" >&5
24643sed 's/^/| /' conftest.$ac_ext >&5
24644
24645ac_cv_lib_jpeg_jpeg_read_header=no
24646fi
ac1cb8d3
VS
24647rm -f conftest.err conftest.$ac_objext \
24648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24649LIBS=$ac_check_lib_save_LIBS
24650fi
24651echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24652echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24653if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24654 JPEG_LINK=" -ljpeg"
24655fi
24656
24657 fi
24658
24659 if test "x$JPEG_LINK" = "x" ; then
24660 if test "$wxUSE_LIBJPEG" = "sys" ; then
24661 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24662echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24663 { (exit 1); exit 1; }; }
24664 else
24665 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24666echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24667 wxUSE_LIBJPEG=builtin
24668 fi
24669 else
24670 wxUSE_LIBJPEG=sys
24671 fi
24672 fi
24673 fi
24674fi
24675
24676
24677TIFF_LINK=
24678TIFF_PREREQ_LINKS=-lm
24679if test "$wxUSE_LIBTIFF" != "no" ; then
24680 cat >>confdefs.h <<\_ACEOF
24681#define wxUSE_LIBTIFF 1
24682_ACEOF
24683
24684
24685 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24686 if test "$wxUSE_LIBJPEG" = "sys"; then
24687 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24688 fi
24689 if test "$wxUSE_ZLIB" = "sys"; then
24690 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24691 fi
24692 if test "${ac_cv_header_tiffio_h+set}" = set; then
24693 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24694echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24695if test "${ac_cv_header_tiffio_h+set}" = set; then
24696 echo $ECHO_N "(cached) $ECHO_C" >&6
24697fi
24698echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24699echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24700else
24701 # Is the header compilable?
24702echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24703echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24704cat >conftest.$ac_ext <<_ACEOF
24705/* confdefs.h. */
24706_ACEOF
24707cat confdefs.h >>conftest.$ac_ext
24708cat >>conftest.$ac_ext <<_ACEOF
24709/* end confdefs.h. */
24710$ac_includes_default
24711#include <tiffio.h>
24712_ACEOF
24713rm -f conftest.$ac_objext
24714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24715 (eval $ac_compile) 2>conftest.er1
a848cd7e 24716 ac_status=$?
ac1cb8d3
VS
24717 grep -v '^ *+' conftest.er1 >conftest.err
24718 rm -f conftest.er1
24719 cat conftest.err >&5
a848cd7e
SC
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } &&
0093c2fc 24722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24725 ac_status=$?
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; } &&
24728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730 (eval $ac_try) 2>&5
24731 ac_status=$?
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); }; }; then
24734 ac_header_compiler=yes
24735else
24736 echo "$as_me: failed program was:" >&5
24737sed 's/^/| /' conftest.$ac_ext >&5
24738
24739ac_header_compiler=no
24740fi
ac1cb8d3 24741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24742echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24743echo "${ECHO_T}$ac_header_compiler" >&6
24744
24745# Is the header present?
24746echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24747echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24748cat >conftest.$ac_ext <<_ACEOF
24749/* confdefs.h. */
24750_ACEOF
24751cat confdefs.h >>conftest.$ac_ext
24752cat >>conftest.$ac_ext <<_ACEOF
24753/* end confdefs.h. */
24754#include <tiffio.h>
24755_ACEOF
24756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24758 ac_status=$?
24759 grep -v '^ *+' conftest.er1 >conftest.err
24760 rm -f conftest.er1
24761 cat conftest.err >&5
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } >/dev/null; then
24764 if test -s conftest.err; then
24765 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24767 else
24768 ac_cpp_err=
24769 fi
24770else
24771 ac_cpp_err=yes
24772fi
24773if test -z "$ac_cpp_err"; then
24774 ac_header_preproc=yes
24775else
24776 echo "$as_me: failed program was:" >&5
24777sed 's/^/| /' conftest.$ac_ext >&5
24778
24779 ac_header_preproc=no
24780fi
24781rm -f conftest.err conftest.$ac_ext
24782echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24783echo "${ECHO_T}$ac_header_preproc" >&6
24784
24785# So? What about this header?
ac1cb8d3
VS
24786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24787 yes:no: )
a848cd7e
SC
24788 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24789echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24790 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24791echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24792 ac_header_preproc=yes
a848cd7e 24793 ;;
ac1cb8d3 24794 no:yes:* )
a848cd7e
SC
24795 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24796echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24797 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24798echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24799 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24800echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24801 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24802echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24803 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24804echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24805 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24806echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24807 (
24808 cat <<\_ASBOX
ac1cb8d3
VS
24809## ----------------------------------------- ##
24810## Report this to wx-dev@lists.wxwidgets.org ##
24811## ----------------------------------------- ##
a848cd7e
SC
24812_ASBOX
24813 ) |
24814 sed "s/^/$as_me: WARNING: /" >&2
24815 ;;
24816esac
24817echo "$as_me:$LINENO: checking for tiffio.h" >&5
24818echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24819if test "${ac_cv_header_tiffio_h+set}" = set; then
24820 echo $ECHO_N "(cached) $ECHO_C" >&6
24821else
24822 ac_cv_header_tiffio_h=$ac_header_preproc
24823fi
24824echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24825echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24826
24827fi
24828if test $ac_cv_header_tiffio_h = yes; then
24829
24830 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24831echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24832if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24833 echo $ECHO_N "(cached) $ECHO_C" >&6
24834else
24835 ac_check_lib_save_LIBS=$LIBS
24836LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24837cat >conftest.$ac_ext <<_ACEOF
24838/* confdefs.h. */
24839_ACEOF
24840cat confdefs.h >>conftest.$ac_ext
24841cat >>conftest.$ac_ext <<_ACEOF
24842/* end confdefs.h. */
24843
24844/* Override any gcc2 internal prototype to avoid an error. */
24845#ifdef __cplusplus
24846extern "C"
24847#endif
24848/* We use char because int might match the return type of a gcc2
24849 builtin and then its argument prototype would still apply. */
24850char TIFFError ();
24851int
24852main ()
24853{
24854TIFFError ();
24855 ;
24856 return 0;
24857}
24858_ACEOF
24859rm -f conftest.$ac_objext conftest$ac_exeext
24860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24861 (eval $ac_link) 2>conftest.er1
a848cd7e 24862 ac_status=$?
ac1cb8d3
VS
24863 grep -v '^ *+' conftest.er1 >conftest.err
24864 rm -f conftest.er1
24865 cat conftest.err >&5
a848cd7e
SC
24866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); } &&
0093c2fc 24868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24870 (eval $ac_try) 2>&5
24871 ac_status=$?
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); }; } &&
24874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876 (eval $ac_try) 2>&5
24877 ac_status=$?
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; }; then
24880 ac_cv_lib_tiff_TIFFError=yes
24881else
24882 echo "$as_me: failed program was:" >&5
24883sed 's/^/| /' conftest.$ac_ext >&5
24884
24885ac_cv_lib_tiff_TIFFError=no
24886fi
ac1cb8d3
VS
24887rm -f conftest.err conftest.$ac_objext \
24888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24889LIBS=$ac_check_lib_save_LIBS
24890fi
24891echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24892echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24893if test $ac_cv_lib_tiff_TIFFError = yes; then
24894 TIFF_LINK=" -ltiff"
24895fi
24896
24897
24898
24899fi
24900
24901
24902
24903 if test "x$TIFF_LINK" = "x" ; then
24904 if test "$wxUSE_LIBTIFF" = "sys" ; then
24905 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24906echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24907 { (exit 1); exit 1; }; }
24908 else
24909 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24910echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24911 wxUSE_LIBTIFF=builtin
24912 fi
24913 else
24914 wxUSE_LIBTIFF=sys
24915 fi
24916 fi
24917fi
24918
24919
47a7e797
MW
24920if test "$wxUSE_WCHAR_T" != "yes"; then
24921 if test "$wxUSE_EXPAT" != "no"; then
24922 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24923echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24924 wxUSE_EXPAT=no
24925 fi
24926 if test "$wxUSE_XML" != "no"; then
24927 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24928echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24929 wxUSE_XML=no
24930 fi
24931fi
24932
a848cd7e
SC
24933if test "$wxUSE_EXPAT" != "no"; then
24934 wxUSE_XML=yes
24935 cat >>confdefs.h <<\_ACEOF
24936#define wxUSE_EXPAT 1
24937_ACEOF
24938
24939 cat >>confdefs.h <<\_ACEOF
24940#define wxUSE_XML 1
24941_ACEOF
24942
24943
24944 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24945 if test "${ac_cv_header_expat_h+set}" = set; then
24946 echo "$as_me:$LINENO: checking for expat.h" >&5
24947echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24948if test "${ac_cv_header_expat_h+set}" = set; then
24949 echo $ECHO_N "(cached) $ECHO_C" >&6
24950fi
24951echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24952echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24953else
24954 # Is the header compilable?
24955echo "$as_me:$LINENO: checking expat.h usability" >&5
24956echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24957cat >conftest.$ac_ext <<_ACEOF
24958/* confdefs.h. */
24959_ACEOF
24960cat confdefs.h >>conftest.$ac_ext
24961cat >>conftest.$ac_ext <<_ACEOF
24962/* end confdefs.h. */
24963$ac_includes_default
24964#include <expat.h>
24965_ACEOF
24966rm -f conftest.$ac_objext
24967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24968 (eval $ac_compile) 2>conftest.er1
a848cd7e 24969 ac_status=$?
ac1cb8d3
VS
24970 grep -v '^ *+' conftest.er1 >conftest.err
24971 rm -f conftest.er1
24972 cat conftest.err >&5
a848cd7e
SC
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } &&
0093c2fc 24975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977 (eval $ac_try) 2>&5
24978 ac_status=$?
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); }; } &&
24981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24983 (eval $ac_try) 2>&5
24984 ac_status=$?
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); }; }; then
24987 ac_header_compiler=yes
24988else
24989 echo "$as_me: failed program was:" >&5
24990sed 's/^/| /' conftest.$ac_ext >&5
24991
24992ac_header_compiler=no
24993fi
ac1cb8d3 24994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24995echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24996echo "${ECHO_T}$ac_header_compiler" >&6
24997
24998# Is the header present?
24999echo "$as_me:$LINENO: checking expat.h presence" >&5
25000echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25001cat >conftest.$ac_ext <<_ACEOF
25002/* confdefs.h. */
25003_ACEOF
25004cat confdefs.h >>conftest.$ac_ext
25005cat >>conftest.$ac_ext <<_ACEOF
25006/* end confdefs.h. */
25007#include <expat.h>
25008_ACEOF
25009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25011 ac_status=$?
25012 grep -v '^ *+' conftest.er1 >conftest.err
25013 rm -f conftest.er1
25014 cat conftest.err >&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } >/dev/null; then
25017 if test -s conftest.err; then
25018 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25020 else
25021 ac_cpp_err=
25022 fi
25023else
25024 ac_cpp_err=yes
25025fi
25026if test -z "$ac_cpp_err"; then
25027 ac_header_preproc=yes
25028else
25029 echo "$as_me: failed program was:" >&5
25030sed 's/^/| /' conftest.$ac_ext >&5
25031
25032 ac_header_preproc=no
25033fi
25034rm -f conftest.err conftest.$ac_ext
25035echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25036echo "${ECHO_T}$ac_header_preproc" >&6
25037
25038# So? What about this header?
ac1cb8d3
VS
25039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25040 yes:no: )
a848cd7e
SC
25041 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25042echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25043 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25044echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25045 ac_header_preproc=yes
a848cd7e 25046 ;;
ac1cb8d3 25047 no:yes:* )
a848cd7e
SC
25048 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25049echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25050 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25051echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25052 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25053echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25054 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25055echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25056 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25057echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25058 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25059echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25060 (
25061 cat <<\_ASBOX
ac1cb8d3
VS
25062## ----------------------------------------- ##
25063## Report this to wx-dev@lists.wxwidgets.org ##
25064## ----------------------------------------- ##
a848cd7e
SC
25065_ASBOX
25066 ) |
25067 sed "s/^/$as_me: WARNING: /" >&2
25068 ;;
25069esac
25070echo "$as_me:$LINENO: checking for expat.h" >&5
25071echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25072if test "${ac_cv_header_expat_h+set}" = set; then
25073 echo $ECHO_N "(cached) $ECHO_C" >&6
25074else
25075 ac_cv_header_expat_h=$ac_header_preproc
25076fi
25077echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25078echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25079
25080fi
25081if test $ac_cv_header_expat_h = yes; then
25082 found_expat_h=1
25083fi
25084
25085
25086 if test "x$found_expat_h" = "x1"; then
25087 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25088echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25089if test "${wx_cv_expat_is_not_broken+set}" = set; then
25090 echo $ECHO_N "(cached) $ECHO_C" >&6
25091else
25092
25093
25094
25095 ac_ext=cc
25096ac_cpp='$CXXCPP $CPPFLAGS'
25097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25100
25101 cat >conftest.$ac_ext <<_ACEOF
25102/* confdefs.h. */
25103_ACEOF
25104cat confdefs.h >>conftest.$ac_ext
25105cat >>conftest.$ac_ext <<_ACEOF
25106/* end confdefs.h. */
25107#include <expat.h>
25108int
25109main ()
25110{
25111
25112 ;
25113 return 0;
25114}
25115_ACEOF
25116rm -f conftest.$ac_objext
25117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25118 (eval $ac_compile) 2>conftest.er1
a848cd7e 25119 ac_status=$?
ac1cb8d3
VS
25120 grep -v '^ *+' conftest.er1 >conftest.err
25121 rm -f conftest.er1
25122 cat conftest.err >&5
a848cd7e
SC
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); } &&
0093c2fc 25125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25127 (eval $ac_try) 2>&5
25128 ac_status=$?
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); }; } &&
25131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133 (eval $ac_try) 2>&5
25134 ac_status=$?
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); }; }; then
25137 wx_cv_expat_is_not_broken=yes
25138else
25139 echo "$as_me: failed program was:" >&5
25140sed 's/^/| /' conftest.$ac_ext >&5
25141
25142wx_cv_expat_is_not_broken=no
25143
25144fi
ac1cb8d3 25145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25146 ac_ext=c
25147ac_cpp='$CPP $CPPFLAGS'
25148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25150ac_compiler_gnu=$ac_cv_c_compiler_gnu
25151
25152
25153
25154fi
25155echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25156echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25157 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25158 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25159echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25160if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25161 echo $ECHO_N "(cached) $ECHO_C" >&6
25162else
25163 ac_check_lib_save_LIBS=$LIBS
25164LIBS="-lexpat $LIBS"
25165cat >conftest.$ac_ext <<_ACEOF
25166/* confdefs.h. */
25167_ACEOF
25168cat confdefs.h >>conftest.$ac_ext
25169cat >>conftest.$ac_ext <<_ACEOF
25170/* end confdefs.h. */
25171
25172/* Override any gcc2 internal prototype to avoid an error. */
25173#ifdef __cplusplus
25174extern "C"
25175#endif
25176/* We use char because int might match the return type of a gcc2
25177 builtin and then its argument prototype would still apply. */
25178char XML_ParserCreate ();
25179int
25180main ()
25181{
25182XML_ParserCreate ();
25183 ;
25184 return 0;
25185}
25186_ACEOF
25187rm -f conftest.$ac_objext conftest$ac_exeext
25188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25189 (eval $ac_link) 2>conftest.er1
a848cd7e 25190 ac_status=$?
ac1cb8d3
VS
25191 grep -v '^ *+' conftest.er1 >conftest.err
25192 rm -f conftest.er1
25193 cat conftest.err >&5
a848cd7e
SC
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); } &&
0093c2fc 25196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25199 ac_status=$?
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; } &&
25202 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204 (eval $ac_try) 2>&5
25205 ac_status=$?
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); }; }; then
25208 ac_cv_lib_expat_XML_ParserCreate=yes
25209else
25210 echo "$as_me: failed program was:" >&5
25211sed 's/^/| /' conftest.$ac_ext >&5
25212
25213ac_cv_lib_expat_XML_ParserCreate=no
25214fi
ac1cb8d3
VS
25215rm -f conftest.err conftest.$ac_objext \
25216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25217LIBS=$ac_check_lib_save_LIBS
25218fi
25219echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25220echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25221if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25222 EXPAT_LINK=" -lexpat"
25223fi
25224
25225 fi
25226 fi
25227 if test "x$EXPAT_LINK" = "x" ; then
25228 if test "$wxUSE_EXPAT" = "sys" ; then
25229 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25230echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25231 { (exit 1); exit 1; }; }
25232 else
25233 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25234echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25235 wxUSE_EXPAT=builtin
25236 fi
25237 else
25238 wxUSE_EXPAT=sys
25239 fi
25240 fi
25241 if test "$wxUSE_EXPAT" = "builtin" ; then
25242
25243
25244subdirs="$subdirs src/expat"
25245
25246 fi
25247fi
25248
25249
25250
25251if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25252 if test "${ac_cv_header_mspack_h+set}" = set; then
25253 echo "$as_me:$LINENO: checking for mspack.h" >&5
25254echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25255if test "${ac_cv_header_mspack_h+set}" = set; then
25256 echo $ECHO_N "(cached) $ECHO_C" >&6
25257fi
25258echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25259echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25260else
25261 # Is the header compilable?
25262echo "$as_me:$LINENO: checking mspack.h usability" >&5
25263echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25264cat >conftest.$ac_ext <<_ACEOF
25265/* confdefs.h. */
25266_ACEOF
25267cat confdefs.h >>conftest.$ac_ext
25268cat >>conftest.$ac_ext <<_ACEOF
25269/* end confdefs.h. */
25270$ac_includes_default
25271#include <mspack.h>
25272_ACEOF
25273rm -f conftest.$ac_objext
25274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25275 (eval $ac_compile) 2>conftest.er1
a848cd7e 25276 ac_status=$?
ac1cb8d3
VS
25277 grep -v '^ *+' conftest.er1 >conftest.err
25278 rm -f conftest.er1
25279 cat conftest.err >&5
a848cd7e
SC
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); } &&
0093c2fc 25282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25284 (eval $ac_try) 2>&5
25285 ac_status=$?
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); }; } &&
25288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290 (eval $ac_try) 2>&5
25291 ac_status=$?
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); }; }; then
25294 ac_header_compiler=yes
25295else
25296 echo "$as_me: failed program was:" >&5
25297sed 's/^/| /' conftest.$ac_ext >&5
25298
25299ac_header_compiler=no
25300fi
ac1cb8d3 25301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25302echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25303echo "${ECHO_T}$ac_header_compiler" >&6
25304
25305# Is the header present?
25306echo "$as_me:$LINENO: checking mspack.h presence" >&5
25307echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25308cat >conftest.$ac_ext <<_ACEOF
25309/* confdefs.h. */
25310_ACEOF
25311cat confdefs.h >>conftest.$ac_ext
25312cat >>conftest.$ac_ext <<_ACEOF
25313/* end confdefs.h. */
25314#include <mspack.h>
25315_ACEOF
25316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25318 ac_status=$?
25319 grep -v '^ *+' conftest.er1 >conftest.err
25320 rm -f conftest.er1
25321 cat conftest.err >&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } >/dev/null; then
25324 if test -s conftest.err; then
25325 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25327 else
25328 ac_cpp_err=
25329 fi
25330else
25331 ac_cpp_err=yes
25332fi
25333if test -z "$ac_cpp_err"; then
25334 ac_header_preproc=yes
25335else
25336 echo "$as_me: failed program was:" >&5
25337sed 's/^/| /' conftest.$ac_ext >&5
25338
25339 ac_header_preproc=no
25340fi
25341rm -f conftest.err conftest.$ac_ext
25342echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25343echo "${ECHO_T}$ac_header_preproc" >&6
25344
25345# So? What about this header?
ac1cb8d3
VS
25346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25347 yes:no: )
a848cd7e
SC
25348 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25349echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25350 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25351echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25352 ac_header_preproc=yes
a848cd7e 25353 ;;
ac1cb8d3 25354 no:yes:* )
a848cd7e
SC
25355 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25356echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25357 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25358echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25359 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25360echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25361 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25362echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25363 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25364echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25365 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25366echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25367 (
25368 cat <<\_ASBOX
ac1cb8d3
VS
25369## ----------------------------------------- ##
25370## Report this to wx-dev@lists.wxwidgets.org ##
25371## ----------------------------------------- ##
a848cd7e
SC
25372_ASBOX
25373 ) |
25374 sed "s/^/$as_me: WARNING: /" >&2
25375 ;;
25376esac
25377echo "$as_me:$LINENO: checking for mspack.h" >&5
25378echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25379if test "${ac_cv_header_mspack_h+set}" = set; then
25380 echo $ECHO_N "(cached) $ECHO_C" >&6
25381else
25382 ac_cv_header_mspack_h=$ac_header_preproc
25383fi
25384echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25385echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25386
25387fi
25388if test $ac_cv_header_mspack_h = yes; then
25389 found_mspack_h=1
25390fi
25391
25392
25393 if test "x$found_mspack_h" = "x1"; then
25394 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25395echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25396if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25397 echo $ECHO_N "(cached) $ECHO_C" >&6
25398else
25399 ac_check_lib_save_LIBS=$LIBS
25400LIBS="-lmspack $LIBS"
25401cat >conftest.$ac_ext <<_ACEOF
25402/* confdefs.h. */
25403_ACEOF
25404cat confdefs.h >>conftest.$ac_ext
25405cat >>conftest.$ac_ext <<_ACEOF
25406/* end confdefs.h. */
25407
25408/* Override any gcc2 internal prototype to avoid an error. */
25409#ifdef __cplusplus
25410extern "C"
25411#endif
25412/* We use char because int might match the return type of a gcc2
25413 builtin and then its argument prototype would still apply. */
25414char mspack_create_chm_decompressor ();
25415int
25416main ()
25417{
25418mspack_create_chm_decompressor ();
25419 ;
25420 return 0;
25421}
25422_ACEOF
25423rm -f conftest.$ac_objext conftest$ac_exeext
25424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25425 (eval $ac_link) 2>conftest.er1
a848cd7e 25426 ac_status=$?
ac1cb8d3
VS
25427 grep -v '^ *+' conftest.er1 >conftest.err
25428 rm -f conftest.er1
25429 cat conftest.err >&5
a848cd7e
SC
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); } &&
0093c2fc 25432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434 (eval $ac_try) 2>&5
25435 ac_status=$?
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); }; } &&
25438 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25440 (eval $ac_try) 2>&5
25441 ac_status=$?
25442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); }; }; then
25444 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25445else
25446 echo "$as_me: failed program was:" >&5
25447sed 's/^/| /' conftest.$ac_ext >&5
25448
25449ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25450fi
ac1cb8d3
VS
25451rm -f conftest.err conftest.$ac_objext \
25452 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25453LIBS=$ac_check_lib_save_LIBS
25454fi
25455echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25456echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25457if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25458 MSPACK_LINK=" -lmspack"
25459fi
25460
25461 fi
25462 if test "x$MSPACK_LINK" = "x" ; then
25463 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25464 fi
25465fi
25466
25467if test "$wxUSE_LIBMSPACK" != "no"; then
25468 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25469#define wxUSE_LIBMSPACK 1
25470_ACEOF
25471
a848cd7e
SC
25472fi
25473
25474
25475
25476AFMINSTALL=
25477WIN32INSTALL=
25478
25479TOOLKIT=
25480TOOLKIT_INCLUDE=
25481WIDGET_SET=
25482
25483if test "$USE_WIN32" = 1 ; then
25484
25485for ac_header in w32api.h
25486do
25487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25488if eval "test \"\${$as_ac_Header+set}\" = set"; then
25489 echo "$as_me:$LINENO: checking for $ac_header" >&5
25490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25491if eval "test \"\${$as_ac_Header+set}\" = set"; then
25492 echo $ECHO_N "(cached) $ECHO_C" >&6
25493fi
25494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25496else
25497 # Is the header compilable?
25498echo "$as_me:$LINENO: checking $ac_header usability" >&5
25499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25500cat >conftest.$ac_ext <<_ACEOF
25501/* confdefs.h. */
25502_ACEOF
25503cat confdefs.h >>conftest.$ac_ext
25504cat >>conftest.$ac_ext <<_ACEOF
25505/* end confdefs.h. */
25506$ac_includes_default
25507#include <$ac_header>
25508_ACEOF
25509rm -f conftest.$ac_objext
25510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25511 (eval $ac_compile) 2>conftest.er1
a848cd7e 25512 ac_status=$?
ac1cb8d3
VS
25513 grep -v '^ *+' conftest.er1 >conftest.err
25514 rm -f conftest.er1
25515 cat conftest.err >&5
a848cd7e
SC
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } &&
0093c2fc 25518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520 (eval $ac_try) 2>&5
25521 ac_status=$?
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); }; } &&
25524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; }; then
25530 ac_header_compiler=yes
25531else
25532 echo "$as_me: failed program was:" >&5
25533sed 's/^/| /' conftest.$ac_ext >&5
25534
25535ac_header_compiler=no
25536fi
ac1cb8d3 25537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25539echo "${ECHO_T}$ac_header_compiler" >&6
25540
25541# Is the header present?
25542echo "$as_me:$LINENO: checking $ac_header presence" >&5
25543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25544cat >conftest.$ac_ext <<_ACEOF
25545/* confdefs.h. */
25546_ACEOF
25547cat confdefs.h >>conftest.$ac_ext
25548cat >>conftest.$ac_ext <<_ACEOF
25549/* end confdefs.h. */
25550#include <$ac_header>
25551_ACEOF
25552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25554 ac_status=$?
25555 grep -v '^ *+' conftest.er1 >conftest.err
25556 rm -f conftest.er1
25557 cat conftest.err >&5
25558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); } >/dev/null; then
25560 if test -s conftest.err; then
25561 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25563 else
25564 ac_cpp_err=
25565 fi
25566else
25567 ac_cpp_err=yes
25568fi
25569if test -z "$ac_cpp_err"; then
25570 ac_header_preproc=yes
25571else
25572 echo "$as_me: failed program was:" >&5
25573sed 's/^/| /' conftest.$ac_ext >&5
25574
25575 ac_header_preproc=no
25576fi
25577rm -f conftest.err conftest.$ac_ext
25578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25579echo "${ECHO_T}$ac_header_preproc" >&6
25580
25581# So? What about this header?
ac1cb8d3
VS
25582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25583 yes:no: )
a848cd7e
SC
25584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25588 ac_header_preproc=yes
a848cd7e 25589 ;;
ac1cb8d3 25590 no:yes:* )
a848cd7e
SC
25591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25603 (
25604 cat <<\_ASBOX
ac1cb8d3
VS
25605## ----------------------------------------- ##
25606## Report this to wx-dev@lists.wxwidgets.org ##
25607## ----------------------------------------- ##
a848cd7e
SC
25608_ASBOX
25609 ) |
25610 sed "s/^/$as_me: WARNING: /" >&2
25611 ;;
25612esac
25613echo "$as_me:$LINENO: checking for $ac_header" >&5
25614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25615if eval "test \"\${$as_ac_Header+set}\" = set"; then
25616 echo $ECHO_N "(cached) $ECHO_C" >&6
25617else
ac1cb8d3 25618 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25619fi
25620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25622
25623fi
25624if test `eval echo '${'$as_ac_Header'}'` = yes; then
25625 cat >>confdefs.h <<_ACEOF
25626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25627_ACEOF
25628
25629fi
25630
25631done
25632
25633 if test "${ac_cv_header_windows_h+set}" = set; then
25634 echo "$as_me:$LINENO: checking for windows.h" >&5
25635echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25636if test "${ac_cv_header_windows_h+set}" = set; then
25637 echo $ECHO_N "(cached) $ECHO_C" >&6
25638fi
25639echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25640echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25641else
25642 # Is the header compilable?
25643echo "$as_me:$LINENO: checking windows.h usability" >&5
25644echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25645cat >conftest.$ac_ext <<_ACEOF
25646/* confdefs.h. */
25647_ACEOF
25648cat confdefs.h >>conftest.$ac_ext
25649cat >>conftest.$ac_ext <<_ACEOF
25650/* end confdefs.h. */
25651$ac_includes_default
25652#include <windows.h>
25653_ACEOF
25654rm -f conftest.$ac_objext
25655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25656 (eval $ac_compile) 2>conftest.er1
a848cd7e 25657 ac_status=$?
ac1cb8d3
VS
25658 grep -v '^ *+' conftest.er1 >conftest.err
25659 rm -f conftest.er1
25660 cat conftest.err >&5
a848cd7e
SC
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
0093c2fc 25663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665 (eval $ac_try) 2>&5
25666 ac_status=$?
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; } &&
25669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671 (eval $ac_try) 2>&5
25672 ac_status=$?
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); }; }; then
25675 ac_header_compiler=yes
25676else
25677 echo "$as_me: failed program was:" >&5
25678sed 's/^/| /' conftest.$ac_ext >&5
25679
25680ac_header_compiler=no
25681fi
ac1cb8d3 25682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25684echo "${ECHO_T}$ac_header_compiler" >&6
25685
25686# Is the header present?
25687echo "$as_me:$LINENO: checking windows.h presence" >&5
25688echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25689cat >conftest.$ac_ext <<_ACEOF
25690/* confdefs.h. */
25691_ACEOF
25692cat confdefs.h >>conftest.$ac_ext
25693cat >>conftest.$ac_ext <<_ACEOF
25694/* end confdefs.h. */
25695#include <windows.h>
25696_ACEOF
25697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25699 ac_status=$?
25700 grep -v '^ *+' conftest.er1 >conftest.err
25701 rm -f conftest.er1
25702 cat conftest.err >&5
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); } >/dev/null; then
25705 if test -s conftest.err; then
25706 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25708 else
25709 ac_cpp_err=
25710 fi
25711else
25712 ac_cpp_err=yes
25713fi
25714if test -z "$ac_cpp_err"; then
25715 ac_header_preproc=yes
25716else
25717 echo "$as_me: failed program was:" >&5
25718sed 's/^/| /' conftest.$ac_ext >&5
25719
25720 ac_header_preproc=no
25721fi
25722rm -f conftest.err conftest.$ac_ext
25723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25724echo "${ECHO_T}$ac_header_preproc" >&6
25725
25726# So? What about this header?
ac1cb8d3
VS
25727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25728 yes:no: )
a848cd7e
SC
25729 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25730echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25731 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25732echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25733 ac_header_preproc=yes
a848cd7e 25734 ;;
ac1cb8d3 25735 no:yes:* )
a848cd7e
SC
25736 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25737echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25738 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25739echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25740 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25741echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25742 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25743echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25744 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25745echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25746 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25747echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25748 (
25749 cat <<\_ASBOX
ac1cb8d3
VS
25750## ----------------------------------------- ##
25751## Report this to wx-dev@lists.wxwidgets.org ##
25752## ----------------------------------------- ##
a848cd7e
SC
25753_ASBOX
25754 ) |
25755 sed "s/^/$as_me: WARNING: /" >&2
25756 ;;
25757esac
25758echo "$as_me:$LINENO: checking for windows.h" >&5
25759echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25760if test "${ac_cv_header_windows_h+set}" = set; then
25761 echo $ECHO_N "(cached) $ECHO_C" >&6
25762else
25763 ac_cv_header_windows_h=$ac_header_preproc
25764fi
25765echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25766echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25767
25768fi
25769if test $ac_cv_header_windows_h = yes; then
25770 :
25771else
25772
25773 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25774echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25775 { (exit 1); exit 1; }; }
25776
25777fi
25778
25779
25780
25781 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25782
25783 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25784 LIBS="$LIBS -loleacc"
25785 fi
25786
25787 case "${host}" in
25788 *-*-cygwin* )
25789 LIBS="$LIBS -lkernel32 -luser32"
25790 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
25791 esac
25792
25793 if test "$wxUSE_ODBC" = "sys" ; then
25794 wxUSE_ODBC = "yes"
25795 fi
25796 if test "$wxUSE_ODBC" = "yes" ; then
25797 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25798 cat >>confdefs.h <<\_ACEOF
25799#define wxUSE_ODBC 1
25800_ACEOF
25801
25802 fi
25803
25804 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25805 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25806
25807 WIN32INSTALL=win32install
25808fi
25809
25810if test "$wxUSE_GUI" = "yes"; then
25811 USE_GUI=1
25812
25813 GUI_TK_LIBRARY=
25814
25815 WXGTK12=
25816 WXGTK127=
25817 WXGTK20=
25818 WXGPE=
25819
207bc66c
RN
25820 if test "$wxUSE_COCOA" = 1 ; then
25821 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25822 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25823echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25824 wxUSE_PRINTING_ARCHITECTURE=no
25825 fi
25826 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25827 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25828echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25829 wxUSE_DRAG_AND_DROP=no
25830 fi
25831 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25832 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25833echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25834 wxUSE_DRAGIMAGE=no
25835 fi
25836 fi
25837
a848cd7e
SC
25838 if test "$wxUSE_MSW" = 1 ; then
25839 TOOLKIT=MSW
25840 GUIDIST=MSW_DIST
25841
ceec2216 25842 case "${host}" in
a848cd7e
SC
25843 *-*-mingw32* )
25844 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25845 esac
25846 fi
25847
25848 if test "$wxUSE_GTK" = 1; then
25849 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25850echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25851
25852 gtk_version_cached=1
25853 if test "${wx_cv_lib_gtk+set}" = set; then
25854 echo $ECHO_N "(cached) $ECHO_C" >&6
25855else
25856
25857 gtk_version_cached=0
25858 echo "$as_me:$LINENO: result: " >&5
25859echo "${ECHO_T}" >&6
25860
25861 GTK_MODULES=
25862 if test "$wxUSE_THREADS" = "yes"; then
25863 GTK_MODULES=gthread
25864 fi
25865
f597b41c 25866 wx_cv_lib_gtk=
5001df0d
MW
25867 if test "x$wxGTK_VERSION" != "x1"
25868 then
25869 case "${host}" in
25870 *-*-solaris2* )
25871 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25872 enable_gtktest=no
25873 fi
25874 esac
25875
a848cd7e
SC
25876 # Check whether --enable-gtktest or --disable-gtktest was given.
25877if test "${enable_gtktest+set}" = set; then
25878 enableval="$enable_gtktest"
25879
25880else
25881 enable_gtktest=yes
25882fi;
25883
25884 pkg_config_args=gtk+-2.0
25885 for module in . $GTK_MODULES
25886 do
25887 case "$module" in
25888 gthread)
25889 pkg_config_args="$pkg_config_args gthread-2.0"
25890 ;;
25891 esac
25892 done
25893
25894 no_gtk=""
25895
25896 # Extract the first word of "pkg-config", so it can be a program name with args.
25897set dummy pkg-config; ac_word=$2
25898echo "$as_me:$LINENO: checking for $ac_word" >&5
25899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25900if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25901 echo $ECHO_N "(cached) $ECHO_C" >&6
25902else
25903 case $PKG_CONFIG in
25904 [\\/]* | ?:[\\/]*)
25905 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25906 ;;
25907 *)
25908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25909for as_dir in $PATH
25910do
25911 IFS=$as_save_IFS
25912 test -z "$as_dir" && as_dir=.
25913 for ac_exec_ext in '' $ac_executable_extensions; do
25914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25915 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25917 break 2
25918 fi
25919done
25920done
25921
25922 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25923 ;;
25924esac
25925fi
25926PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25927
25928if test -n "$PKG_CONFIG"; then
25929 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25930echo "${ECHO_T}$PKG_CONFIG" >&6
25931else
25932 echo "$as_me:$LINENO: result: no" >&5
25933echo "${ECHO_T}no" >&6
25934fi
25935
25936
25937 if test x$PKG_CONFIG != xno ; then
25938 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25939 :
25940 else
c2218763 25941 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25942 no_gtk=yes
25943 PKG_CONFIG=no
25944 fi
25945 else
25946 no_gtk=yes
25947 fi
25948
25949 min_gtk_version=2.0.0
25950 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25951echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25952
25953 if test x$PKG_CONFIG != xno ; then
25954 ## don't try to run the test against uninstalled libtool libs
25955 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25956 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25957 enable_gtktest=no
25958 fi
25959
25960 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25961 :
25962 else
25963 no_gtk=yes
25964 fi
25965 fi
25966
25967 if test x"$no_gtk" = x ; then
25968 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25969 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25970 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25971 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25972 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25973 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25974 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25975 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25976 if test "x$enable_gtktest" = "xyes" ; then
25977 ac_save_CFLAGS="$CFLAGS"
25978 ac_save_LIBS="$LIBS"
25979 CFLAGS="$CFLAGS $GTK_CFLAGS"
25980 LIBS="$GTK_LIBS $LIBS"
25981 rm -f conf.gtktest
25982 if test "$cross_compiling" = yes; then
25983 echo $ac_n "cross compiling; assumed OK... $ac_c"
25984else
25985 cat >conftest.$ac_ext <<_ACEOF
25986/* confdefs.h. */
25987_ACEOF
25988cat confdefs.h >>conftest.$ac_ext
25989cat >>conftest.$ac_ext <<_ACEOF
25990/* end confdefs.h. */
25991
25992#include <gtk/gtk.h>
25993#include <stdio.h>
25994#include <stdlib.h>
25995
25996int
25997main ()
25998{
25999 int major, minor, micro;
26000 char *tmp_version;
26001
26002 system ("touch conf.gtktest");
26003
26004 /* HP/UX 9 (%@#!) writes to sscanf strings */
26005 tmp_version = g_strdup("$min_gtk_version");
26006 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26007 printf("%s, bad version string\n", "$min_gtk_version");
26008 exit(1);
26009 }
26010
26011 if ((gtk_major_version != $gtk_config_major_version) ||
26012 (gtk_minor_version != $gtk_config_minor_version) ||
26013 (gtk_micro_version != $gtk_config_micro_version))
26014 {
26015 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26016 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26017 gtk_major_version, gtk_minor_version, gtk_micro_version);
26018 printf ("*** was found! If pkg-config was correct, then it is best\n");
26019 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26020 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26021 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26022 printf("*** required on your system.\n");
26023 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26024 printf("*** to point to the correct configuration files\n");
26025 }
26026 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26027 (gtk_minor_version != GTK_MINOR_VERSION) ||
26028 (gtk_micro_version != GTK_MICRO_VERSION))
26029 {
26030 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26031 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26032 printf("*** library (version %d.%d.%d)\n",
26033 gtk_major_version, gtk_minor_version, gtk_micro_version);
26034 }
26035 else
26036 {
26037 if ((gtk_major_version > major) ||
26038 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26039 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26040 {
26041 return 0;
26042 }
26043 else
26044 {
26045 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26046 gtk_major_version, gtk_minor_version, gtk_micro_version);
26047 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26048 major, minor, micro);
26049 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26050 printf("***\n");
26051 printf("*** If you have already installed a sufficiently new version, this error\n");
26052 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26053 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26054 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26055 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26056 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26057 printf("*** so that the correct libraries are found at run-time))\n");
26058 }
26059 }
26060 return 1;
26061}
26062
26063_ACEOF
26064rm -f conftest$ac_exeext
26065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26066 (eval $ac_link) 2>&5
26067 ac_status=$?
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26071 (eval $ac_try) 2>&5
26072 ac_status=$?
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); }; }; then
26075 :
26076else
26077 echo "$as_me: program exited with status $ac_status" >&5
26078echo "$as_me: failed program was:" >&5
26079sed 's/^/| /' conftest.$ac_ext >&5
26080
26081( exit $ac_status )
26082no_gtk=yes
26083fi
ac1cb8d3 26084rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26085fi
26086 CFLAGS="$ac_save_CFLAGS"
26087 LIBS="$ac_save_LIBS"
26088 fi
26089 fi
26090 if test "x$no_gtk" = x ; then
26091 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26092echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26093 wx_cv_lib_gtk=2.0
26094 else
26095 echo "$as_me:$LINENO: result: no" >&5
26096echo "${ECHO_T}no" >&6
26097 if test "$PKG_CONFIG" = "no" ; then
26098 echo "*** A new enough version of pkg-config was not found."
26099 echo "*** See http://pkgconfig.sourceforge.net"
26100 else
26101 if test -f conf.gtktest ; then
26102 :
26103 else
26104 echo "*** Could not run GTK+ test program, checking why..."
26105 ac_save_CFLAGS="$CFLAGS"
26106 ac_save_LIBS="$LIBS"
26107 CFLAGS="$CFLAGS $GTK_CFLAGS"
26108 LIBS="$LIBS $GTK_LIBS"
26109 cat >conftest.$ac_ext <<_ACEOF
26110/* confdefs.h. */
26111_ACEOF
26112cat confdefs.h >>conftest.$ac_ext
26113cat >>conftest.$ac_ext <<_ACEOF
26114/* end confdefs.h. */
26115
26116#include <gtk/gtk.h>
26117#include <stdio.h>
26118
26119int
26120main ()
26121{
26122 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26123 ;
26124 return 0;
26125}
26126_ACEOF
26127rm -f conftest.$ac_objext conftest$ac_exeext
26128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26129 (eval $ac_link) 2>conftest.er1
a848cd7e 26130 ac_status=$?
ac1cb8d3
VS
26131 grep -v '^ *+' conftest.er1 >conftest.err
26132 rm -f conftest.er1
26133 cat conftest.err >&5
a848cd7e
SC
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); } &&
0093c2fc 26136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26138 (eval $ac_try) 2>&5
26139 ac_status=$?
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); }; } &&
26142 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144 (eval $ac_try) 2>&5
26145 ac_status=$?
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); }; }; then
26148 echo "*** The test program compiled, but did not run. This usually means"
26149 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26150 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26151 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26152 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26153 echo "*** is required on your system"
26154 echo "***"
26155 echo "*** If you have an old version installed, it is best to remove it, although"
26156 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26157else
26158 echo "$as_me: failed program was:" >&5
26159sed 's/^/| /' conftest.$ac_ext >&5
26160
26161 echo "*** The test program failed to compile or link. See the file config.log for the"
26162 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26163fi
ac1cb8d3
VS
26164rm -f conftest.err conftest.$ac_objext \
26165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26166 CFLAGS="$ac_save_CFLAGS"
26167 LIBS="$ac_save_LIBS"
26168 fi
26169 fi
26170 GTK_CFLAGS=""
26171 GTK_LIBS=""
26172 :
26173 fi
26174
26175
26176 rm -f conf.gtktest
26177
5001df0d
MW
26178
26179 case "${host}" in
26180 *-*-solaris2* )
26181 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26182 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26183 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26184 fi
26185 if test "$wxUSE_SHARED" != "yes"; then
26186 GTK_LIBS="$GTK_LIBS -lX11"
26187 fi
26188 esac
f597b41c
MW
26189 fi
26190
f34ca037
MW
26191 if test -z "$wx_cv_lib_gtk"; then
26192 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26193
26194# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26195if test "${with_gtk_prefix+set}" = set; then
26196 withval="$with_gtk_prefix"
26197 gtk_config_prefix="$withval"
26198else
26199 gtk_config_prefix=""
26200fi;
26201
26202# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26203if test "${with_gtk_exec_prefix+set}" = set; then
26204 withval="$with_gtk_exec_prefix"
26205 gtk_config_exec_prefix="$withval"
26206else
26207 gtk_config_exec_prefix=""
26208fi;
26209# Check whether --enable-gtktest or --disable-gtktest was given.
26210if test "${enable_gtktest+set}" = set; then
26211 enableval="$enable_gtktest"
26212
26213else
26214 enable_gtktest=yes
26215fi;
26216
26217 for module in . $GTK_MODULES
26218 do
26219 case "$module" in
26220 gthread)
26221 gtk_config_args="$gtk_config_args gthread"
26222 ;;
26223 esac
26224 done
26225
26226 if test x$gtk_config_exec_prefix != x ; then
26227 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26228 if test x${GTK_CONFIG+set} != xset ; then
26229 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26230 fi
26231 fi
26232 if test x$gtk_config_prefix != x ; then
26233 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26234 if test x${GTK_CONFIG+set} != xset ; then
26235 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26236 fi
26237 fi
26238
26239 # Extract the first word of "gtk-config", so it can be a program name with args.
26240set dummy gtk-config; ac_word=$2
26241echo "$as_me:$LINENO: checking for $ac_word" >&5
26242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26243if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26244 echo $ECHO_N "(cached) $ECHO_C" >&6
26245else
26246 case $GTK_CONFIG in
26247 [\\/]* | ?:[\\/]*)
26248 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26249 ;;
26250 *)
26251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26252for as_dir in $PATH
26253do
26254 IFS=$as_save_IFS
26255 test -z "$as_dir" && as_dir=.
26256 for ac_exec_ext in '' $ac_executable_extensions; do
26257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26258 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26260 break 2
26261 fi
26262done
26263done
26264
26265 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26266 ;;
26267esac
26268fi
26269GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26270
26271if test -n "$GTK_CONFIG"; then
26272 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26273echo "${ECHO_T}$GTK_CONFIG" >&6
26274else
26275 echo "$as_me:$LINENO: result: no" >&5
26276echo "${ECHO_T}no" >&6
26277fi
26278
26279 min_gtk_version=1.2.7
26280 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26281echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26282 no_gtk=""
26283 if test "$GTK_CONFIG" = "no" ; then
26284 no_gtk=yes
26285 else
26286 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26287 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26288 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26289 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26290 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26291 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26292 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26293 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26294 if test "x$enable_gtktest" = "xyes" ; then
26295 ac_save_CFLAGS="$CFLAGS"
26296 ac_save_LIBS="$LIBS"
26297 CFLAGS="$CFLAGS $GTK_CFLAGS"
26298 LIBS="$GTK_LIBS $LIBS"
26299 rm -f conf.gtktest
26300 if test "$cross_compiling" = yes; then
26301 echo $ac_n "cross compiling; assumed OK... $ac_c"
26302else
26303 cat >conftest.$ac_ext <<_ACEOF
26304/* confdefs.h. */
26305_ACEOF
26306cat confdefs.h >>conftest.$ac_ext
26307cat >>conftest.$ac_ext <<_ACEOF
26308/* end confdefs.h. */
26309
26310#include <gtk/gtk.h>
26311#include <stdio.h>
26312#include <stdlib.h>
26313
26314int
26315main ()
26316{
26317 int major, minor, micro;
26318 char *tmp_version;
26319
26320 system ("touch conf.gtktest");
26321
26322 /* HP/UX 9 (%@#!) writes to sscanf strings */
26323 tmp_version = g_strdup("$min_gtk_version");
26324 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26325 printf("%s, bad version string\n", "$min_gtk_version");
26326 exit(1);
26327 }
26328
26329 if ((gtk_major_version != $gtk_config_major_version) ||
26330 (gtk_minor_version != $gtk_config_minor_version) ||
26331 (gtk_micro_version != $gtk_config_micro_version))
26332 {
26333 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26334 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26335 gtk_major_version, gtk_minor_version, gtk_micro_version);
26336 printf ("*** was found! If gtk-config was correct, then it is best\n");
26337 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26338 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26339 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26340 printf("*** required on your system.\n");
26341 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26342 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26343 printf("*** before re-running configure\n");
26344 }
26345#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26346 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26347 (gtk_minor_version != GTK_MINOR_VERSION) ||
26348 (gtk_micro_version != GTK_MICRO_VERSION))
26349 {
26350 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26351 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26352 printf("*** library (version %d.%d.%d)\n",
26353 gtk_major_version, gtk_minor_version, gtk_micro_version);
26354 }
26355#endif /* defined (GTK_MAJOR_VERSION) ... */
26356 else
26357 {
26358 if ((gtk_major_version > major) ||
26359 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26360 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26361 {
26362 return 0;
26363 }
26364 else
26365 {
26366 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26367 gtk_major_version, gtk_minor_version, gtk_micro_version);
26368 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26369 major, minor, micro);
26370 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26371 printf("***\n");
26372 printf("*** If you have already installed a sufficiently new version, this error\n");
26373 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26374 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26375 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26376 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26377 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26378 printf("*** so that the correct libraries are found at run-time))\n");
26379 }
26380 }
26381 return 1;
26382}
26383
26384_ACEOF
26385rm -f conftest$ac_exeext
26386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26387 (eval $ac_link) 2>&5
26388 ac_status=$?
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26392 (eval $ac_try) 2>&5
26393 ac_status=$?
26394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395 (exit $ac_status); }; }; then
26396 :
26397else
26398 echo "$as_me: program exited with status $ac_status" >&5
26399echo "$as_me: failed program was:" >&5
26400sed 's/^/| /' conftest.$ac_ext >&5
26401
26402( exit $ac_status )
26403no_gtk=yes
26404fi
ac1cb8d3 26405rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26406fi
26407 CFLAGS="$ac_save_CFLAGS"
26408 LIBS="$ac_save_LIBS"
26409 fi
26410 fi
26411 if test "x$no_gtk" = x ; then
26412 echo "$as_me:$LINENO: result: yes" >&5
26413echo "${ECHO_T}yes" >&6
26414 wx_cv_lib_gtk=1.2.7
26415 else
26416 echo "$as_me:$LINENO: result: no" >&5
26417echo "${ECHO_T}no" >&6
26418 if test "$GTK_CONFIG" = "no" ; then
26419 echo "*** The gtk-config script installed by GTK could not be found"
26420 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26421 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26422 echo "*** full path to gtk-config."
26423 else
26424 if test -f conf.gtktest ; then
26425 :
26426 else
26427 echo "*** Could not run GTK test program, checking why..."
26428 CFLAGS="$CFLAGS $GTK_CFLAGS"
26429 LIBS="$LIBS $GTK_LIBS"
26430 cat >conftest.$ac_ext <<_ACEOF
26431/* confdefs.h. */
26432_ACEOF
26433cat confdefs.h >>conftest.$ac_ext
26434cat >>conftest.$ac_ext <<_ACEOF
26435/* end confdefs.h. */
26436
26437#include <gtk/gtk.h>
26438#include <stdio.h>
26439
26440int
26441main ()
26442{
26443 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26444 ;
26445 return 0;
26446}
26447_ACEOF
26448rm -f conftest.$ac_objext conftest$ac_exeext
26449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26450 (eval $ac_link) 2>conftest.er1
a848cd7e 26451 ac_status=$?
ac1cb8d3
VS
26452 grep -v '^ *+' conftest.er1 >conftest.err
26453 rm -f conftest.er1
26454 cat conftest.err >&5
a848cd7e
SC
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } &&
0093c2fc 26457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26459 (eval $ac_try) 2>&5
26460 ac_status=$?
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); }; } &&
26463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465 (eval $ac_try) 2>&5
26466 ac_status=$?
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); }; }; then
26469 echo "*** The test program compiled, but did not run. This usually means"
26470 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26471 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26472 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26473 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26474 echo "*** is required on your system"
26475 echo "***"
26476 echo "*** If you have an old version installed, it is best to remove it, although"
26477 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26478 echo "***"
26479 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26480 echo "*** came with the system with the command"
26481 echo "***"
26482 echo "*** rpm --erase --nodeps gtk gtk-devel"
26483else
26484 echo "$as_me: failed program was:" >&5
26485sed 's/^/| /' conftest.$ac_ext >&5
26486
26487 echo "*** The test program failed to compile or link. See the file config.log for the"
26488 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26489 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26490 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26491fi
ac1cb8d3
VS
26492rm -f conftest.err conftest.$ac_objext \
26493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26494 CFLAGS="$ac_save_CFLAGS"
26495 LIBS="$ac_save_LIBS"
26496 fi
26497 fi
26498 GTK_CFLAGS=""
26499 GTK_LIBS=""
26500 :
26501 fi
26502
26503
26504 rm -f conf.gtktest
26505
26506
f34ca037 26507 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26508
26509# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26510if test "${with_gtk_prefix+set}" = set; then
26511 withval="$with_gtk_prefix"
26512 gtk_config_prefix="$withval"
26513else
26514 gtk_config_prefix=""
26515fi;
26516
26517# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26518if test "${with_gtk_exec_prefix+set}" = set; then
26519 withval="$with_gtk_exec_prefix"
26520 gtk_config_exec_prefix="$withval"
26521else
26522 gtk_config_exec_prefix=""
26523fi;
26524# Check whether --enable-gtktest or --disable-gtktest was given.
26525if test "${enable_gtktest+set}" = set; then
26526 enableval="$enable_gtktest"
26527
26528else
26529 enable_gtktest=yes
26530fi;
26531
26532 for module in . $GTK_MODULES
26533 do
26534 case "$module" in
26535 gthread)
26536 gtk_config_args="$gtk_config_args gthread"
26537 ;;
26538 esac
26539 done
26540
26541 if test x$gtk_config_exec_prefix != x ; then
26542 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26543 if test x${GTK_CONFIG+set} != xset ; then
26544 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26545 fi
26546 fi
26547 if test x$gtk_config_prefix != x ; then
26548 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26549 if test x${GTK_CONFIG+set} != xset ; then
26550 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26551 fi
26552 fi
26553
26554 # Extract the first word of "gtk-config", so it can be a program name with args.
26555set dummy gtk-config; ac_word=$2
26556echo "$as_me:$LINENO: checking for $ac_word" >&5
26557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26558if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26559 echo $ECHO_N "(cached) $ECHO_C" >&6
26560else
26561 case $GTK_CONFIG in
26562 [\\/]* | ?:[\\/]*)
26563 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26564 ;;
26565 *)
26566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26567for as_dir in $PATH
26568do
26569 IFS=$as_save_IFS
26570 test -z "$as_dir" && as_dir=.
26571 for ac_exec_ext in '' $ac_executable_extensions; do
26572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26573 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26575 break 2
26576 fi
26577done
26578done
26579
26580 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26581 ;;
26582esac
26583fi
26584GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26585
26586if test -n "$GTK_CONFIG"; then
26587 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26588echo "${ECHO_T}$GTK_CONFIG" >&6
26589else
26590 echo "$as_me:$LINENO: result: no" >&5
26591echo "${ECHO_T}no" >&6
26592fi
26593
26594 min_gtk_version=1.2.3
26595 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26596echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26597 no_gtk=""
26598 if test "$GTK_CONFIG" = "no" ; then
26599 no_gtk=yes
26600 else
26601 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26602 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26603 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26604 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26605 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26606 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26607 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26609 if test "x$enable_gtktest" = "xyes" ; then
26610 ac_save_CFLAGS="$CFLAGS"
26611 ac_save_LIBS="$LIBS"
26612 CFLAGS="$CFLAGS $GTK_CFLAGS"
26613 LIBS="$GTK_LIBS $LIBS"
26614 rm -f conf.gtktest
26615 if test "$cross_compiling" = yes; then
26616 echo $ac_n "cross compiling; assumed OK... $ac_c"
26617else
26618 cat >conftest.$ac_ext <<_ACEOF
26619/* confdefs.h. */
26620_ACEOF
26621cat confdefs.h >>conftest.$ac_ext
26622cat >>conftest.$ac_ext <<_ACEOF
26623/* end confdefs.h. */
26624
26625#include <gtk/gtk.h>
26626#include <stdio.h>
26627#include <stdlib.h>
26628
26629int
26630main ()
26631{
26632 int major, minor, micro;
26633 char *tmp_version;
26634
26635 system ("touch conf.gtktest");
26636
26637 /* HP/UX 9 (%@#!) writes to sscanf strings */
26638 tmp_version = g_strdup("$min_gtk_version");
26639 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26640 printf("%s, bad version string\n", "$min_gtk_version");
26641 exit(1);
26642 }
26643
26644 if ((gtk_major_version != $gtk_config_major_version) ||
26645 (gtk_minor_version != $gtk_config_minor_version) ||
26646 (gtk_micro_version != $gtk_config_micro_version))
26647 {
26648 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26649 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26650 gtk_major_version, gtk_minor_version, gtk_micro_version);
26651 printf ("*** was found! If gtk-config was correct, then it is best\n");
26652 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26653 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26654 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26655 printf("*** required on your system.\n");
26656 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26657 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26658 printf("*** before re-running configure\n");
26659 }
26660#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26661 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26662 (gtk_minor_version != GTK_MINOR_VERSION) ||
26663 (gtk_micro_version != GTK_MICRO_VERSION))
26664 {
26665 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26666 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26667 printf("*** library (version %d.%d.%d)\n",
26668 gtk_major_version, gtk_minor_version, gtk_micro_version);
26669 }
26670#endif /* defined (GTK_MAJOR_VERSION) ... */
26671 else
26672 {
26673 if ((gtk_major_version > major) ||
26674 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26675 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26676 {
26677 return 0;
26678 }
26679 else
26680 {
26681 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26682 gtk_major_version, gtk_minor_version, gtk_micro_version);
26683 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26684 major, minor, micro);
26685 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26686 printf("***\n");
26687 printf("*** If you have already installed a sufficiently new version, this error\n");
26688 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26689 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26690 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26691 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26692 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26693 printf("*** so that the correct libraries are found at run-time))\n");
26694 }
26695 }
26696 return 1;
26697}
26698
26699_ACEOF
26700rm -f conftest$ac_exeext
26701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26702 (eval $ac_link) 2>&5
26703 ac_status=$?
26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26707 (eval $ac_try) 2>&5
26708 ac_status=$?
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); }; }; then
26711 :
26712else
26713 echo "$as_me: program exited with status $ac_status" >&5
26714echo "$as_me: failed program was:" >&5
26715sed 's/^/| /' conftest.$ac_ext >&5
26716
26717( exit $ac_status )
26718no_gtk=yes
26719fi
ac1cb8d3 26720rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26721fi
26722 CFLAGS="$ac_save_CFLAGS"
26723 LIBS="$ac_save_LIBS"
26724 fi
26725 fi
26726 if test "x$no_gtk" = x ; then
26727 echo "$as_me:$LINENO: result: yes" >&5
26728echo "${ECHO_T}yes" >&6
26729 wx_cv_lib_gtk=1.2.3
26730 else
26731 echo "$as_me:$LINENO: result: no" >&5
26732echo "${ECHO_T}no" >&6
26733 if test "$GTK_CONFIG" = "no" ; then
26734 echo "*** The gtk-config script installed by GTK could not be found"
26735 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26736 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26737 echo "*** full path to gtk-config."
26738 else
26739 if test -f conf.gtktest ; then
26740 :
26741 else
26742 echo "*** Could not run GTK test program, checking why..."
26743 CFLAGS="$CFLAGS $GTK_CFLAGS"
26744 LIBS="$LIBS $GTK_LIBS"
26745 cat >conftest.$ac_ext <<_ACEOF
26746/* confdefs.h. */
26747_ACEOF
26748cat confdefs.h >>conftest.$ac_ext
26749cat >>conftest.$ac_ext <<_ACEOF
26750/* end confdefs.h. */
26751
26752#include <gtk/gtk.h>
26753#include <stdio.h>
26754
26755int
26756main ()
26757{
26758 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26759 ;
26760 return 0;
26761}
26762_ACEOF
26763rm -f conftest.$ac_objext conftest$ac_exeext
26764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26765 (eval $ac_link) 2>conftest.er1
a848cd7e 26766 ac_status=$?
ac1cb8d3
VS
26767 grep -v '^ *+' conftest.er1 >conftest.err
26768 rm -f conftest.er1
26769 cat conftest.err >&5
a848cd7e
SC
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); } &&
0093c2fc 26772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26774 (eval $ac_try) 2>&5
26775 ac_status=$?
26776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); }; } &&
26778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26780 (eval $ac_try) 2>&5
26781 ac_status=$?
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); }; }; then
26784 echo "*** The test program compiled, but did not run. This usually means"
26785 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26786 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26787 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26788 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26789 echo "*** is required on your system"
26790 echo "***"
26791 echo "*** If you have an old version installed, it is best to remove it, although"
26792 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26793 echo "***"
26794 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26795 echo "*** came with the system with the command"
26796 echo "***"
26797 echo "*** rpm --erase --nodeps gtk gtk-devel"
26798else
26799 echo "$as_me: failed program was:" >&5
26800sed 's/^/| /' conftest.$ac_ext >&5
26801
26802 echo "*** The test program failed to compile or link. See the file config.log for the"
26803 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26804 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26805 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26806fi
ac1cb8d3
VS
26807rm -f conftest.err conftest.$ac_objext \
26808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26809 CFLAGS="$ac_save_CFLAGS"
26810 LIBS="$ac_save_LIBS"
26811 fi
26812 fi
26813 GTK_CFLAGS=""
26814 GTK_LIBS=""
26815 :
26816 fi
26817
26818
26819 rm -f conf.gtktest
26820
f34ca037 26821 fi
a848cd7e
SC
26822 fi
26823 fi
26824
26825 if test -z "$wx_cv_lib_gtk"; then
26826 wx_cv_lib_gtk=none
26827 else
26828 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26829 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26830 fi
26831
26832
26833fi
26834
26835
26836 if test "$gtk_version_cached" = 1; then
26837 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26838echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26839 fi
26840
26841 case "$wx_cv_lib_gtk" in
26842 2.0) WXGTK20=1
26843 TOOLKIT_VERSION=2
26844 ;;
26845 1.2.7) WXGTK127=1
26846 WXGTK12=1
26847 ;;
26848 1.2.3) WXGTK12=1
26849 ;;
26850 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26851The development files for GTK+ were not found. For GTK+ 2, please
26852ensure that pkg-config is in the path and that gtk+-2.0.pc is
26853installed. For GTK+ 1.2 please check that gtk-config is in the path,
26854and that the version is 1.2.3 or above. Also check that the
26855libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26856--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26857 " >&5
26858echo "$as_me: error:
f597b41c
MW
26859The development files for GTK+ were not found. For GTK+ 2, please
26860ensure that pkg-config is in the path and that gtk+-2.0.pc is
26861installed. For GTK+ 1.2 please check that gtk-config is in the path,
26862and that the version is 1.2.3 or above. Also check that the
26863libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26864--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26865 " >&2;}
26866 { (exit 1); exit 1; }; }
26867 ;;
26868 esac
26869
26870 if test "$WXGTK20" = 1; then
304205f1
VS
26871 save_CFLAGS="$CFLAGS"
26872 save_LIBS="$LIBS"
9d271838 26873 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26874 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26875
d12aef51
VZ
26876 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26877echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26878 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26879/* confdefs.h. */
26880_ACEOF
26881cat confdefs.h >>conftest.$ac_ext
26882cat >>conftest.$ac_ext <<_ACEOF
26883/* end confdefs.h. */
304205f1 26884
d12aef51 26885 #include <gtk/gtk.h>
304205f1 26886
d12aef51
VZ
26887int
26888main ()
26889{
304205f1 26890
d12aef51 26891 void *f = gtk_icon_size_lookup;
abc736fd
MW
26892
26893 ;
26894 return 0;
26895}
26896_ACEOF
26897rm -f conftest.$ac_objext
26898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26899 (eval $ac_compile) 2>conftest.er1
26900 ac_status=$?
26901 grep -v '^ *+' conftest.er1 >conftest.err
26902 rm -f conftest.er1
26903 cat conftest.err >&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); } &&
0093c2fc 26906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
26907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908 (eval $ac_try) 2>&5
26909 ac_status=$?
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); }; } &&
26912 { ac_try='test -s conftest.$ac_objext'
26913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914 (eval $ac_try) 2>&5
26915 ac_status=$?
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; }; then
26918
26919 echo "$as_me:$LINENO: result: no" >&5
26920echo "${ECHO_T}no" >&6
26921
26922else
26923 echo "$as_me: failed program was:" >&5
26924sed 's/^/| /' conftest.$ac_ext >&5
26925
26926
26927 cat >>confdefs.h <<\_ACEOF
26928#define NEED_GTK_ICON_SIZE_LOOKUP 1
26929_ACEOF
26930
26931 echo "$as_me:$LINENO: result: yes" >&5
26932echo "${ECHO_T}yes" >&6
26933
26934fi
26935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26936
9755e73b
VS
26937 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26938echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26939 cat >conftest.$ac_ext <<_ACEOF
26940/* confdefs.h. */
26941_ACEOF
26942cat confdefs.h >>conftest.$ac_ext
26943cat >>conftest.$ac_ext <<_ACEOF
26944/* end confdefs.h. */
26945
26946 #include <gtk/gtk.h>
26947
26948int
26949main ()
26950{
26951
26952 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26953 Not GTK+ 2.4
9755e73b
VS
26954 #endif
26955
26956 ;
26957 return 0;
26958}
26959_ACEOF
26960rm -f conftest.$ac_objext
26961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26962 (eval $ac_compile) 2>conftest.er1
26963 ac_status=$?
26964 grep -v '^ *+' conftest.er1 >conftest.err
26965 rm -f conftest.er1
26966 cat conftest.err >&5
26967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968 (exit $ac_status); } &&
0093c2fc 26969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
26970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26971 (eval $ac_try) 2>&5
26972 ac_status=$?
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); }; } &&
26975 { ac_try='test -s conftest.$ac_objext'
26976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977 (eval $ac_try) 2>&5
26978 ac_status=$?
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); }; }; then
26981
26982 cat >>confdefs.h <<\_ACEOF
26983#define __WXGTK24__ 1
26984_ACEOF
26985
26986 echo "$as_me:$LINENO: result: yes" >&5
26987echo "${ECHO_T}yes" >&6
26988
26989else
26990 echo "$as_me: failed program was:" >&5
26991sed 's/^/| /' conftest.$ac_ext >&5
26992
26993
26994 echo "$as_me:$LINENO: result: no" >&5
26995echo "${ECHO_T}no" >&6
26996
26997fi
26998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26999
304205f1
VS
27000 CFLAGS="$save_CFLAGS"
27001 LIBS="$save_LIBS"
a848cd7e
SC
27002 else
27003 if test "$wxUSE_UNICODE" = "yes"; then
27004 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27005echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27006 wxUSE_UNICODE=no
27007 fi
27008 fi
27009
27010 if test "$USE_DARWIN" != 1; then
27011
27012for ac_func in poll
27013do
27014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27015echo "$as_me:$LINENO: checking for $ac_func" >&5
27016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27017if eval "test \"\${$as_ac_var+set}\" = set"; then
27018 echo $ECHO_N "(cached) $ECHO_C" >&6
27019else
27020 cat >conftest.$ac_ext <<_ACEOF
27021/* confdefs.h. */
27022_ACEOF
27023cat confdefs.h >>conftest.$ac_ext
27024cat >>conftest.$ac_ext <<_ACEOF
27025/* end confdefs.h. */
ac1cb8d3
VS
27026/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27028#define $ac_func innocuous_$ac_func
27029
a848cd7e
SC
27030/* System header to define __stub macros and hopefully few prototypes,
27031 which can conflict with char $ac_func (); below.
27032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27033 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27034
a848cd7e
SC
27035#ifdef __STDC__
27036# include <limits.h>
27037#else
27038# include <assert.h>
27039#endif
ac1cb8d3
VS
27040
27041#undef $ac_func
27042
a848cd7e
SC
27043/* Override any gcc2 internal prototype to avoid an error. */
27044#ifdef __cplusplus
27045extern "C"
27046{
27047#endif
27048/* We use char because int might match the return type of a gcc2
27049 builtin and then its argument prototype would still apply. */
27050char $ac_func ();
27051/* The GNU C library defines this for functions which it implements
27052 to always fail with ENOSYS. Some functions are actually named
27053 something starting with __ and the normal name is an alias. */
27054#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27055choke me
27056#else
27057char (*f) () = $ac_func;
27058#endif
27059#ifdef __cplusplus
27060}
27061#endif
27062
27063int
27064main ()
27065{
27066return f != $ac_func;
27067 ;
27068 return 0;
27069}
27070_ACEOF
27071rm -f conftest.$ac_objext conftest$ac_exeext
27072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27073 (eval $ac_link) 2>conftest.er1
a848cd7e 27074 ac_status=$?
ac1cb8d3
VS
27075 grep -v '^ *+' conftest.er1 >conftest.err
27076 rm -f conftest.er1
27077 cat conftest.err >&5
a848cd7e
SC
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); } &&
0093c2fc 27080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082 (eval $ac_try) 2>&5
27083 ac_status=$?
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; } &&
27086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088 (eval $ac_try) 2>&5
27089 ac_status=$?
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; }; then
27092 eval "$as_ac_var=yes"
27093else
27094 echo "$as_me: failed program was:" >&5
27095sed 's/^/| /' conftest.$ac_ext >&5
27096
27097eval "$as_ac_var=no"
27098fi
ac1cb8d3
VS
27099rm -f conftest.err conftest.$ac_objext \
27100 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27101fi
27102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27103echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27104if test `eval echo '${'$as_ac_var'}'` = yes; then
27105 cat >>confdefs.h <<_ACEOF
27106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27107_ACEOF
27108
27109fi
27110done
27111
27112 fi
27113
27114 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27115 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27116
27117 AFMINSTALL=afminstall
27118 TOOLKIT=GTK
27119 GUIDIST=GTK_DIST
27120
27121 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27122echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27123if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27124 echo $ECHO_N "(cached) $ECHO_C" >&6
27125else
27126 ac_check_lib_save_LIBS=$LIBS
27127LIBS="-lgdk $LIBS"
27128cat >conftest.$ac_ext <<_ACEOF
27129/* confdefs.h. */
27130_ACEOF
27131cat confdefs.h >>conftest.$ac_ext
27132cat >>conftest.$ac_ext <<_ACEOF
27133/* end confdefs.h. */
27134
27135/* Override any gcc2 internal prototype to avoid an error. */
27136#ifdef __cplusplus
27137extern "C"
27138#endif
27139/* We use char because int might match the return type of a gcc2
27140 builtin and then its argument prototype would still apply. */
27141char gdk_im_open ();
27142int
27143main ()
27144{
27145gdk_im_open ();
27146 ;
27147 return 0;
27148}
27149_ACEOF
27150rm -f conftest.$ac_objext conftest$ac_exeext
27151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27152 (eval $ac_link) 2>conftest.er1
a848cd7e 27153 ac_status=$?
ac1cb8d3
VS
27154 grep -v '^ *+' conftest.er1 >conftest.err
27155 rm -f conftest.er1
27156 cat conftest.err >&5
a848cd7e
SC
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); } &&
0093c2fc 27159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27161 (eval $ac_try) 2>&5
27162 ac_status=$?
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); }; } &&
27165 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27167 (eval $ac_try) 2>&5
27168 ac_status=$?
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); }; }; then
27171 ac_cv_lib_gdk_gdk_im_open=yes
27172else
27173 echo "$as_me: failed program was:" >&5
27174sed 's/^/| /' conftest.$ac_ext >&5
27175
27176ac_cv_lib_gdk_gdk_im_open=no
27177fi
ac1cb8d3
VS
27178rm -f conftest.err conftest.$ac_objext \
27179 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27180LIBS=$ac_check_lib_save_LIBS
27181fi
27182echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27183echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27184if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27185 cat >>confdefs.h <<\_ACEOF
27186#define HAVE_XIM 1
27187_ACEOF
27188
27189fi
27190
27191
27192
27193 if test "$wxUSE_GPE" = "yes"; then
27194 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27195echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27196
0ad5d837
VZ
27197 ac_find_libraries=
27198 for ac_dir in $SEARCH_LIB;
a848cd7e 27199 do
3eca31dc 27200 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27201 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27202 ac_find_libraries=$ac_dir
27203 break 2
27204 fi
27205 done
27206 done
27207
27208 if test "$ac_find_libraries" != "" ; then
27209
0ad5d837 27210 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27211 ac_path_to_link=""
27212 else
0ad5d837
VZ
27213 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27214 result=$?
27215 if test $result = 0; then
27216 ac_path_to_link=""
27217 else
27218 ac_path_to_link=" -L$ac_find_libraries"
27219 fi
a848cd7e
SC
27220 fi
27221
27222 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27223 WXGPE=1
0ad5d837
VZ
27224 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27225echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27226 else
27227 echo "$as_me:$LINENO: result: not found" >&5
27228echo "${ECHO_T}not found" >&6
27229 fi
27230
27231 fi
27232 fi
27233
27234 if test "$wxUSE_MGL" = 1; then
27235 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27236echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27237 if test "x$MGL_ROOT" = x ; then
27238 echo "$as_me:$LINENO: result: not found" >&5
27239echo "${ECHO_T}not found" >&6
27240 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27241echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27242 { (exit 1); exit 1; }; }
27243 else
27244 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27245echo "${ECHO_T}$MGL_ROOT" >&6
27246 fi
27247
27248 echo "$as_me:$LINENO: checking for libmgl location" >&5
27249echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27250 case "${host}" in
27251 *-*-linux* )
27252 if test "x$wxUSE_SHARED" = xyes ; then
27253 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27254 else
27255 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27256 fi
27257 ;;
27258 *-pc-msdosdjgpp )
27259 mgl_os_candidates="dos32/dj2"
27260 ;;
27261 *)
27262 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27263echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27264 { (exit 1); exit 1; }; }
27265 esac
27266
27267 mgl_lib_type=""
27268 mgl_os=""
27269
27270 for mgl_os_i in $mgl_os_candidates ; do
27271 if test "x$mgl_os" = x ; then
27272 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27273 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27274 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27275 mgl_lib_type=debug
27276 mgl_os=$mgl_os_i
27277 fi
27278 fi
27279 if test "x$mgl_lib_type" = x ; then
27280 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27281 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27282 mgl_lib_type=release
27283 mgl_os=$mgl_os_i
27284 fi
27285 fi
27286 fi
27287 done
27288
27289 if test "x$mgl_os" = x ; then
27290 echo "$as_me:$LINENO: result: not found" >&5
27291echo "${ECHO_T}not found" >&6
27292 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27293echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27294 { (exit 1); exit 1; }; }
27295 fi
27296 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27297echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27298
27299 wxUSE_UNIVERSAL="yes"
27300
27301 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27302 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27303
27304 AFMINSTALL=afminstall
27305 TOOLKIT=MGL
27306 GUIDIST=MGL_DIST
27307 fi
27308
27309 if test "$wxUSE_MICROWIN" = 1; then
27310 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27311echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27312 if test "x$MICROWINDOWS" = x ; then
27313 echo "$as_me:$LINENO: result: not found" >&5
27314echo "${ECHO_T}not found" >&6
27315 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27316echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27317 { (exit 1); exit 1; }; }
27318 else
27319 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27320echo "${ECHO_T}$MICROWINDOWS" >&6
27321 fi
27322
27323 if test -f $MICROWINDOWS/lib/libmwin.a; then
27324 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27325echo "${ECHO_T}MicroWindows' libraries found." >&6
27326 else
27327 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27328echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27329 { (exit 1); exit 1; }; }
27330 fi
27331
27332 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27333 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27334
27335 wxUSE_UNIVERSAL="yes"
27336
27337 AFMINSTALL=afminstall
27338 TOOLKIT=MICROWIN
27339 GUIDIST=MICROWIN_DIST
27340
27341 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27342 fi
27343
74b84332 27344 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
0093c2fc
VZ
27345
27346if test "x$ac_path_x_has_been_run" != xyes; then
27347 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27348echo $ECHO_N "checking for X... $ECHO_C" >&6
27349
0093c2fc 27350ac_path_x_has_been_run=yes
a848cd7e
SC
27351
27352# Check whether --with-x or --without-x was given.
27353if test "${with_x+set}" = set; then
27354 withval="$with_x"
27355
27356fi;
27357# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27358if test "x$with_x" = xno; then
27359 # The user explicitly disabled X.
27360 have_x=disabled
27361else
27362 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27363 # Both variables are already set.
27364 have_x=yes
27365 else
27366 if test "${ac_cv_have_x+set}" = set; then
27367 echo $ECHO_N "(cached) $ECHO_C" >&6
27368else
27369 # One or both of the vars are not set, and there is no cached value.
27370ac_x_includes=no ac_x_libraries=no
27371rm -fr conftest.dir
27372if mkdir conftest.dir; then
27373 cd conftest.dir
27374 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27375 cat >Imakefile <<'_ACEOF'
27376acfindx:
27377 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27378_ACEOF
27379 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27381 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27382 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27383 for ac_extension in a so sl; do
27384 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27385 test -f $ac_im_libdir/libX11.$ac_extension; then
27386 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27387 fi
27388 done
27389 # Screen out bogus values from the imake configuration. They are
27390 # bogus both because they are the default anyway, and because
27391 # using them would break gcc on systems where it needs fixed includes.
27392 case $ac_im_incroot in
27393 /usr/include) ;;
27394 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27395 esac
27396 case $ac_im_usrlibdir in
27397 /usr/lib | /lib) ;;
27398 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27399 esac
27400 fi
27401 cd ..
27402 rm -fr conftest.dir
27403fi
27404
27405# Standard set of common directories for X headers.
27406# Check X11 before X11Rn because it is often a symlink to the current release.
27407ac_x_header_dirs='
27408/usr/X11/include
27409/usr/X11R6/include
27410/usr/X11R5/include
27411/usr/X11R4/include
27412
27413/usr/include/X11
27414/usr/include/X11R6
27415/usr/include/X11R5
27416/usr/include/X11R4
27417
27418/usr/local/X11/include
27419/usr/local/X11R6/include
27420/usr/local/X11R5/include
27421/usr/local/X11R4/include
27422
27423/usr/local/include/X11
27424/usr/local/include/X11R6
27425/usr/local/include/X11R5
27426/usr/local/include/X11R4
27427
27428/usr/X386/include
27429/usr/x386/include
27430/usr/XFree86/include/X11
27431
27432/usr/include
27433/usr/local/include
27434/usr/unsupported/include
27435/usr/athena/include
27436/usr/local/x11r5/include
27437/usr/lpp/Xamples/include
27438
27439/usr/openwin/include
27440/usr/openwin/share/include'
27441
27442if test "$ac_x_includes" = no; then
0093c2fc 27443 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
27444 # First, try using that file with no special directory specified.
27445 cat >conftest.$ac_ext <<_ACEOF
27446/* confdefs.h. */
27447_ACEOF
27448cat confdefs.h >>conftest.$ac_ext
27449cat >>conftest.$ac_ext <<_ACEOF
27450/* end confdefs.h. */
27451#include <X11/Intrinsic.h>
27452_ACEOF
27453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27455 ac_status=$?
27456 grep -v '^ *+' conftest.er1 >conftest.err
27457 rm -f conftest.er1
27458 cat conftest.err >&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } >/dev/null; then
27461 if test -s conftest.err; then
27462 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27464 else
27465 ac_cpp_err=
27466 fi
27467else
27468 ac_cpp_err=yes
27469fi
27470if test -z "$ac_cpp_err"; then
27471 # We can compile using X headers with no special include directory.
27472ac_x_includes=
27473else
27474 echo "$as_me: failed program was:" >&5
27475sed 's/^/| /' conftest.$ac_ext >&5
27476
27477 for ac_dir in $ac_x_header_dirs; do
27478 if test -r "$ac_dir/X11/Intrinsic.h"; then
27479 ac_x_includes=$ac_dir
27480 break
27481 fi
27482done
27483fi
27484rm -f conftest.err conftest.$ac_ext
27485fi # $ac_x_includes = no
27486
27487if test "$ac_x_libraries" = no; then
27488 # Check for the libraries.
27489 # See if we find them without any special options.
27490 # Don't add to $LIBS permanently.
27491 ac_save_LIBS=$LIBS
27492 LIBS="-lXt $LIBS"
27493 cat >conftest.$ac_ext <<_ACEOF
27494/* confdefs.h. */
27495_ACEOF
27496cat confdefs.h >>conftest.$ac_ext
27497cat >>conftest.$ac_ext <<_ACEOF
27498/* end confdefs.h. */
27499#include <X11/Intrinsic.h>
27500int
27501main ()
27502{
27503XtMalloc (0)
27504 ;
27505 return 0;
27506}
27507_ACEOF
27508rm -f conftest.$ac_objext conftest$ac_exeext
27509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27510 (eval $ac_link) 2>conftest.er1
a848cd7e 27511 ac_status=$?
ac1cb8d3
VS
27512 grep -v '^ *+' conftest.er1 >conftest.err
27513 rm -f conftest.er1
27514 cat conftest.err >&5
a848cd7e
SC
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); } &&
0093c2fc 27517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519 (eval $ac_try) 2>&5
27520 ac_status=$?
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; } &&
27523 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27526 ac_status=$?
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; }; then
27529 LIBS=$ac_save_LIBS
27530# We can link X programs with no special library path.
27531ac_x_libraries=
27532else
27533 echo "$as_me: failed program was:" >&5
27534sed 's/^/| /' conftest.$ac_ext >&5
27535
27536LIBS=$ac_save_LIBS
27537for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27538do
27539 # Don't even attempt the hair of trying to link an X program!
27540 for ac_extension in a so sl; do
27541 if test -r $ac_dir/libXt.$ac_extension; then
27542 ac_x_libraries=$ac_dir
27543 break 2
27544 fi
27545 done
27546done
27547fi
ac1cb8d3
VS
27548rm -f conftest.err conftest.$ac_objext \
27549 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27550fi # $ac_x_libraries = no
27551
27552if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27553 # Didn't find X anywhere. Cache the known absence of X.
27554 ac_cv_have_x="have_x=no"
27555else
27556 # Record where we found X for the cache.
27557 ac_cv_have_x="have_x=yes \
ac1cb8d3 27558 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27559fi
27560fi
27561
27562 fi
27563 eval "$ac_cv_have_x"
27564fi # $with_x != no
27565
27566if test "$have_x" != yes; then
27567 echo "$as_me:$LINENO: result: $have_x" >&5
27568echo "${ECHO_T}$have_x" >&6
27569 no_x=yes
27570else
27571 # If each of the values was on the command line, it overrides each guess.
27572 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27573 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27574 # Update the cache value to reflect the command line values.
27575 ac_cv_have_x="have_x=yes \
27576 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
0093c2fc
VZ
27577 # It might be that x_includes is empty (headers are found in the
27578 # standard search path. Then output the corresponding message
27579 ac_out_x_includes=$x_includes
27580 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
27581 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
27582echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
27583fi
27584
0093c2fc 27585fi
a848cd7e
SC
27586if test "$no_x" = yes; then
27587 # Not all programs may use this symbol, but it does not hurt to define it.
27588
27589cat >>confdefs.h <<\_ACEOF
27590#define X_DISPLAY_MISSING 1
27591_ACEOF
27592
27593 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27594else
27595 if test -n "$x_includes"; then
27596 X_CFLAGS="$X_CFLAGS -I$x_includes"
27597 fi
27598
27599 # It would also be nice to do this for all -L options, not just this one.
27600 if test -n "$x_libraries"; then
27601 X_LIBS="$X_LIBS -L$x_libraries"
27602 # For Solaris; some versions of Sun CC require a space after -R and
27603 # others require no space. Words are not sufficient . . . .
27604 case `(uname -sr) 2>/dev/null` in
27605 "SunOS 5"*)
27606 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27607echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27608 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27609 cat >conftest.$ac_ext <<_ACEOF
27610/* confdefs.h. */
27611_ACEOF
27612cat confdefs.h >>conftest.$ac_ext
27613cat >>conftest.$ac_ext <<_ACEOF
27614/* end confdefs.h. */
27615
27616int
27617main ()
27618{
27619
27620 ;
27621 return 0;
27622}
27623_ACEOF
27624rm -f conftest.$ac_objext conftest$ac_exeext
27625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27626 (eval $ac_link) 2>conftest.er1
a848cd7e 27627 ac_status=$?
ac1cb8d3
VS
27628 grep -v '^ *+' conftest.er1 >conftest.err
27629 rm -f conftest.er1
27630 cat conftest.err >&5
a848cd7e
SC
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); } &&
0093c2fc 27633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27636 ac_status=$?
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; } &&
27639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27641 (eval $ac_try) 2>&5
27642 ac_status=$?
27643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644 (exit $ac_status); }; }; then
27645 ac_R_nospace=yes
27646else
27647 echo "$as_me: failed program was:" >&5
27648sed 's/^/| /' conftest.$ac_ext >&5
27649
27650ac_R_nospace=no
27651fi
ac1cb8d3
VS
27652rm -f conftest.err conftest.$ac_objext \
27653 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27654 if test $ac_R_nospace = yes; then
27655 echo "$as_me:$LINENO: result: no" >&5
27656echo "${ECHO_T}no" >&6
27657 X_LIBS="$X_LIBS -R$x_libraries"
27658 else
27659 LIBS="$ac_xsave_LIBS -R $x_libraries"
27660 cat >conftest.$ac_ext <<_ACEOF
27661/* confdefs.h. */
27662_ACEOF
27663cat confdefs.h >>conftest.$ac_ext
27664cat >>conftest.$ac_ext <<_ACEOF
27665/* end confdefs.h. */
27666
27667int
27668main ()
27669{
27670
27671 ;
27672 return 0;
27673}
27674_ACEOF
27675rm -f conftest.$ac_objext conftest$ac_exeext
27676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27677 (eval $ac_link) 2>conftest.er1
a848cd7e 27678 ac_status=$?
ac1cb8d3
VS
27679 grep -v '^ *+' conftest.er1 >conftest.err
27680 rm -f conftest.er1
27681 cat conftest.err >&5
a848cd7e
SC
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); } &&
0093c2fc 27684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27686 (eval $ac_try) 2>&5
27687 ac_status=$?
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); }; } &&
27690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27692 (eval $ac_try) 2>&5
27693 ac_status=$?
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); }; }; then
27696 ac_R_space=yes
27697else
27698 echo "$as_me: failed program was:" >&5
27699sed 's/^/| /' conftest.$ac_ext >&5
27700
27701ac_R_space=no
27702fi
ac1cb8d3
VS
27703rm -f conftest.err conftest.$ac_objext \
27704 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27705 if test $ac_R_space = yes; then
27706 echo "$as_me:$LINENO: result: yes" >&5
27707echo "${ECHO_T}yes" >&6
27708 X_LIBS="$X_LIBS -R $x_libraries"
27709 else
27710 echo "$as_me:$LINENO: result: neither works" >&5
27711echo "${ECHO_T}neither works" >&6
27712 fi
27713 fi
27714 LIBS=$ac_xsave_LIBS
27715 esac
27716 fi
27717
27718 # Check for system-dependent libraries X programs must link with.
27719 # Do this before checking for the system-independent R6 libraries
27720 # (-lICE), since we may need -lsocket or whatever for X linking.
27721
27722 if test "$ISC" = yes; then
27723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27724 else
27725 # Martyn Johnson says this is needed for Ultrix, if the X
27726 # libraries were built with DECnet support. And Karl Berry says
27727 # the Alpha needs dnet_stub (dnet does not exist).
27728 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27729 cat >conftest.$ac_ext <<_ACEOF
27730/* confdefs.h. */
27731_ACEOF
27732cat confdefs.h >>conftest.$ac_ext
27733cat >>conftest.$ac_ext <<_ACEOF
27734/* end confdefs.h. */
27735
27736/* Override any gcc2 internal prototype to avoid an error. */
27737#ifdef __cplusplus
27738extern "C"
27739#endif
27740/* We use char because int might match the return type of a gcc2
27741 builtin and then its argument prototype would still apply. */
27742char XOpenDisplay ();
27743int
27744main ()
27745{
27746XOpenDisplay ();
27747 ;
27748 return 0;
27749}
27750_ACEOF
27751rm -f conftest.$ac_objext conftest$ac_exeext
27752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27753 (eval $ac_link) 2>conftest.er1
a848cd7e 27754 ac_status=$?
ac1cb8d3
VS
27755 grep -v '^ *+' conftest.er1 >conftest.err
27756 rm -f conftest.er1
27757 cat conftest.err >&5
a848cd7e
SC
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); } &&
0093c2fc 27760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762 (eval $ac_try) 2>&5
27763 ac_status=$?
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; } &&
27766 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27768 (eval $ac_try) 2>&5
27769 ac_status=$?
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); }; }; then
27772 :
27773else
27774 echo "$as_me: failed program was:" >&5
27775sed 's/^/| /' conftest.$ac_ext >&5
27776
27777echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27778echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27779if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27780 echo $ECHO_N "(cached) $ECHO_C" >&6
27781else
27782 ac_check_lib_save_LIBS=$LIBS
27783LIBS="-ldnet $LIBS"
27784cat >conftest.$ac_ext <<_ACEOF
27785/* confdefs.h. */
27786_ACEOF
27787cat confdefs.h >>conftest.$ac_ext
27788cat >>conftest.$ac_ext <<_ACEOF
27789/* end confdefs.h. */
27790
27791/* Override any gcc2 internal prototype to avoid an error. */
27792#ifdef __cplusplus
27793extern "C"
27794#endif
27795/* We use char because int might match the return type of a gcc2
27796 builtin and then its argument prototype would still apply. */
27797char dnet_ntoa ();
27798int
27799main ()
27800{
27801dnet_ntoa ();
27802 ;
27803 return 0;
27804}
27805_ACEOF
27806rm -f conftest.$ac_objext conftest$ac_exeext
27807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27808 (eval $ac_link) 2>conftest.er1
a848cd7e 27809 ac_status=$?
ac1cb8d3
VS
27810 grep -v '^ *+' conftest.er1 >conftest.err
27811 rm -f conftest.er1
27812 cat conftest.err >&5
a848cd7e
SC
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); } &&
0093c2fc 27815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817 (eval $ac_try) 2>&5
27818 ac_status=$?
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); }; } &&
27821 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27823 (eval $ac_try) 2>&5
27824 ac_status=$?
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; }; then
27827 ac_cv_lib_dnet_dnet_ntoa=yes
27828else
27829 echo "$as_me: failed program was:" >&5
27830sed 's/^/| /' conftest.$ac_ext >&5
27831
27832ac_cv_lib_dnet_dnet_ntoa=no
27833fi
ac1cb8d3
VS
27834rm -f conftest.err conftest.$ac_objext \
27835 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27836LIBS=$ac_check_lib_save_LIBS
27837fi
27838echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27839echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27840if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27841 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27842fi
27843
27844 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27845 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27846echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27847if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27848 echo $ECHO_N "(cached) $ECHO_C" >&6
27849else
27850 ac_check_lib_save_LIBS=$LIBS
27851LIBS="-ldnet_stub $LIBS"
27852cat >conftest.$ac_ext <<_ACEOF
27853/* confdefs.h. */
27854_ACEOF
27855cat confdefs.h >>conftest.$ac_ext
27856cat >>conftest.$ac_ext <<_ACEOF
27857/* end confdefs.h. */
27858
27859/* Override any gcc2 internal prototype to avoid an error. */
27860#ifdef __cplusplus
27861extern "C"
27862#endif
27863/* We use char because int might match the return type of a gcc2
27864 builtin and then its argument prototype would still apply. */
27865char dnet_ntoa ();
27866int
27867main ()
27868{
27869dnet_ntoa ();
27870 ;
27871 return 0;
27872}
27873_ACEOF
27874rm -f conftest.$ac_objext conftest$ac_exeext
27875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27876 (eval $ac_link) 2>conftest.er1
a848cd7e 27877 ac_status=$?
ac1cb8d3
VS
27878 grep -v '^ *+' conftest.er1 >conftest.err
27879 rm -f conftest.er1
27880 cat conftest.err >&5
a848cd7e
SC
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); } &&
0093c2fc 27883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885 (eval $ac_try) 2>&5
27886 ac_status=$?
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27891 (eval $ac_try) 2>&5
27892 ac_status=$?
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; }; then
27895 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27896else
27897 echo "$as_me: failed program was:" >&5
27898sed 's/^/| /' conftest.$ac_ext >&5
27899
27900ac_cv_lib_dnet_stub_dnet_ntoa=no
27901fi
ac1cb8d3
VS
27902rm -f conftest.err conftest.$ac_objext \
27903 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27904LIBS=$ac_check_lib_save_LIBS
27905fi
27906echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27907echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27908if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27909 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27910fi
27911
27912 fi
27913fi
ac1cb8d3
VS
27914rm -f conftest.err conftest.$ac_objext \
27915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27916 LIBS="$ac_xsave_LIBS"
27917
27918 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27919 # to get the SysV transport functions.
27920 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27921 # needs -lnsl.
27922 # The nsl library prevents programs from opening the X display
27923 # on Irix 5.2, according to T.E. Dickey.
27924 # The functions gethostbyname, getservbyname, and inet_addr are
27925 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27926 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27927echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27928if test "${ac_cv_func_gethostbyname+set}" = set; then
27929 echo $ECHO_N "(cached) $ECHO_C" >&6
27930else
27931 cat >conftest.$ac_ext <<_ACEOF
27932/* confdefs.h. */
27933_ACEOF
27934cat confdefs.h >>conftest.$ac_ext
27935cat >>conftest.$ac_ext <<_ACEOF
27936/* end confdefs.h. */
ac1cb8d3
VS
27937/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27939#define gethostbyname innocuous_gethostbyname
27940
a848cd7e
SC
27941/* System header to define __stub macros and hopefully few prototypes,
27942 which can conflict with char gethostbyname (); below.
27943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27944 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27945
a848cd7e
SC
27946#ifdef __STDC__
27947# include <limits.h>
27948#else
27949# include <assert.h>
27950#endif
ac1cb8d3
VS
27951
27952#undef gethostbyname
27953
a848cd7e
SC
27954/* Override any gcc2 internal prototype to avoid an error. */
27955#ifdef __cplusplus
27956extern "C"
27957{
27958#endif
27959/* We use char because int might match the return type of a gcc2
27960 builtin and then its argument prototype would still apply. */
27961char gethostbyname ();
27962/* The GNU C library defines this for functions which it implements
27963 to always fail with ENOSYS. Some functions are actually named
27964 something starting with __ and the normal name is an alias. */
27965#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27966choke me
27967#else
27968char (*f) () = gethostbyname;
27969#endif
27970#ifdef __cplusplus
27971}
27972#endif
27973
27974int
27975main ()
27976{
27977return f != gethostbyname;
27978 ;
27979 return 0;
27980}
27981_ACEOF
27982rm -f conftest.$ac_objext conftest$ac_exeext
27983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27984 (eval $ac_link) 2>conftest.er1
a848cd7e 27985 ac_status=$?
ac1cb8d3
VS
27986 grep -v '^ *+' conftest.er1 >conftest.err
27987 rm -f conftest.er1
27988 cat conftest.err >&5
a848cd7e
SC
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); } &&
0093c2fc 27991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993 (eval $ac_try) 2>&5
27994 ac_status=$?
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; } &&
27997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27999 (eval $ac_try) 2>&5
28000 ac_status=$?
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); }; }; then
28003 ac_cv_func_gethostbyname=yes
28004else
28005 echo "$as_me: failed program was:" >&5
28006sed 's/^/| /' conftest.$ac_ext >&5
28007
28008ac_cv_func_gethostbyname=no
28009fi
ac1cb8d3
VS
28010rm -f conftest.err conftest.$ac_objext \
28011 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28012fi
28013echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28014echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28015
28016 if test $ac_cv_func_gethostbyname = no; then
28017 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28018echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28019if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28021else
28022 ac_check_lib_save_LIBS=$LIBS
28023LIBS="-lnsl $LIBS"
28024cat >conftest.$ac_ext <<_ACEOF
28025/* confdefs.h. */
28026_ACEOF
28027cat confdefs.h >>conftest.$ac_ext
28028cat >>conftest.$ac_ext <<_ACEOF
28029/* end confdefs.h. */
28030
28031/* Override any gcc2 internal prototype to avoid an error. */
28032#ifdef __cplusplus
28033extern "C"
28034#endif
28035/* We use char because int might match the return type of a gcc2
28036 builtin and then its argument prototype would still apply. */
28037char gethostbyname ();
28038int
28039main ()
28040{
28041gethostbyname ();
28042 ;
28043 return 0;
28044}
28045_ACEOF
28046rm -f conftest.$ac_objext conftest$ac_exeext
28047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28048 (eval $ac_link) 2>conftest.er1
28049 ac_status=$?
28050 grep -v '^ *+' conftest.er1 >conftest.err
28051 rm -f conftest.er1
28052 cat conftest.err >&5
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054 (exit $ac_status); } &&
0093c2fc 28055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28057 (eval $ac_try) 2>&5
28058 ac_status=$?
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); }; } &&
28061 { ac_try='test -s conftest$ac_exeext'
28062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28063 (eval $ac_try) 2>&5
28064 ac_status=$?
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); }; }; then
28067 ac_cv_lib_nsl_gethostbyname=yes
28068else
28069 echo "$as_me: failed program was:" >&5
28070sed 's/^/| /' conftest.$ac_ext >&5
28071
28072ac_cv_lib_nsl_gethostbyname=no
28073fi
28074rm -f conftest.err conftest.$ac_objext \
28075 conftest$ac_exeext conftest.$ac_ext
28076LIBS=$ac_check_lib_save_LIBS
28077fi
28078echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28079echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28080if test $ac_cv_lib_nsl_gethostbyname = yes; then
28081 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28082fi
28083
28084 if test $ac_cv_lib_nsl_gethostbyname = no; then
28085 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28086echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28087if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28088 echo $ECHO_N "(cached) $ECHO_C" >&6
28089else
28090 ac_check_lib_save_LIBS=$LIBS
28091LIBS="-lbsd $LIBS"
28092cat >conftest.$ac_ext <<_ACEOF
28093/* confdefs.h. */
28094_ACEOF
28095cat confdefs.h >>conftest.$ac_ext
28096cat >>conftest.$ac_ext <<_ACEOF
28097/* end confdefs.h. */
28098
28099/* Override any gcc2 internal prototype to avoid an error. */
28100#ifdef __cplusplus
28101extern "C"
28102#endif
28103/* We use char because int might match the return type of a gcc2
28104 builtin and then its argument prototype would still apply. */
28105char gethostbyname ();
28106int
28107main ()
28108{
28109gethostbyname ();
28110 ;
28111 return 0;
28112}
28113_ACEOF
28114rm -f conftest.$ac_objext conftest$ac_exeext
28115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28116 (eval $ac_link) 2>conftest.er1
a848cd7e 28117 ac_status=$?
ac1cb8d3
VS
28118 grep -v '^ *+' conftest.er1 >conftest.err
28119 rm -f conftest.er1
28120 cat conftest.err >&5
a848cd7e
SC
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } &&
0093c2fc 28123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28128 (exit $ac_status); }; } &&
28129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28131 (eval $ac_try) 2>&5
28132 ac_status=$?
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); }; }; then
28135 ac_cv_lib_bsd_gethostbyname=yes
28136else
28137 echo "$as_me: failed program was:" >&5
28138sed 's/^/| /' conftest.$ac_ext >&5
28139
28140ac_cv_lib_bsd_gethostbyname=no
28141fi
ac1cb8d3
VS
28142rm -f conftest.err conftest.$ac_objext \
28143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28144LIBS=$ac_check_lib_save_LIBS
28145fi
28146echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28147echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28148if test $ac_cv_lib_bsd_gethostbyname = yes; then
28149 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28150fi
28151
28152 fi
28153 fi
28154
28155 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28156 # socket/setsockopt and other routines are undefined under SCO ODT
28157 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28158 # on later versions), says Simon Leinen: it contains gethostby*
28159 # variants that don't use the name server (or something). -lsocket
28160 # must be given before -lnsl if both are needed. We assume that
28161 # if connect needs -lnsl, so does gethostbyname.
28162 echo "$as_me:$LINENO: checking for connect" >&5
28163echo $ECHO_N "checking for connect... $ECHO_C" >&6
28164if test "${ac_cv_func_connect+set}" = set; then
28165 echo $ECHO_N "(cached) $ECHO_C" >&6
28166else
28167 cat >conftest.$ac_ext <<_ACEOF
28168/* confdefs.h. */
28169_ACEOF
28170cat confdefs.h >>conftest.$ac_ext
28171cat >>conftest.$ac_ext <<_ACEOF
28172/* end confdefs.h. */
ac1cb8d3
VS
28173/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28175#define connect innocuous_connect
28176
a848cd7e
SC
28177/* System header to define __stub macros and hopefully few prototypes,
28178 which can conflict with char connect (); below.
28179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28180 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28181
a848cd7e
SC
28182#ifdef __STDC__
28183# include <limits.h>
28184#else
28185# include <assert.h>
28186#endif
ac1cb8d3
VS
28187
28188#undef connect
28189
a848cd7e
SC
28190/* Override any gcc2 internal prototype to avoid an error. */
28191#ifdef __cplusplus
28192extern "C"
28193{
28194#endif
28195/* We use char because int might match the return type of a gcc2
28196 builtin and then its argument prototype would still apply. */
28197char connect ();
28198/* The GNU C library defines this for functions which it implements
28199 to always fail with ENOSYS. Some functions are actually named
28200 something starting with __ and the normal name is an alias. */
28201#if defined (__stub_connect) || defined (__stub___connect)
28202choke me
28203#else
28204char (*f) () = connect;
28205#endif
28206#ifdef __cplusplus
28207}
28208#endif
28209
28210int
28211main ()
28212{
28213return f != connect;
28214 ;
28215 return 0;
28216}
28217_ACEOF
28218rm -f conftest.$ac_objext conftest$ac_exeext
28219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28220 (eval $ac_link) 2>conftest.er1
a848cd7e 28221 ac_status=$?
ac1cb8d3
VS
28222 grep -v '^ *+' conftest.er1 >conftest.err
28223 rm -f conftest.er1
28224 cat conftest.err >&5
a848cd7e
SC
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } &&
0093c2fc 28227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229 (eval $ac_try) 2>&5
28230 ac_status=$?
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); }; } &&
28233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235 (eval $ac_try) 2>&5
28236 ac_status=$?
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); }; }; then
28239 ac_cv_func_connect=yes
28240else
28241 echo "$as_me: failed program was:" >&5
28242sed 's/^/| /' conftest.$ac_ext >&5
28243
28244ac_cv_func_connect=no
28245fi
ac1cb8d3
VS
28246rm -f conftest.err conftest.$ac_objext \
28247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28248fi
28249echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28250echo "${ECHO_T}$ac_cv_func_connect" >&6
28251
28252 if test $ac_cv_func_connect = no; then
28253 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28254echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28255if test "${ac_cv_lib_socket_connect+set}" = set; then
28256 echo $ECHO_N "(cached) $ECHO_C" >&6
28257else
28258 ac_check_lib_save_LIBS=$LIBS
28259LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28260cat >conftest.$ac_ext <<_ACEOF
28261/* confdefs.h. */
28262_ACEOF
28263cat confdefs.h >>conftest.$ac_ext
28264cat >>conftest.$ac_ext <<_ACEOF
28265/* end confdefs.h. */
28266
28267/* Override any gcc2 internal prototype to avoid an error. */
28268#ifdef __cplusplus
28269extern "C"
28270#endif
28271/* We use char because int might match the return type of a gcc2
28272 builtin and then its argument prototype would still apply. */
28273char connect ();
28274int
28275main ()
28276{
28277connect ();
28278 ;
28279 return 0;
28280}
28281_ACEOF
28282rm -f conftest.$ac_objext conftest$ac_exeext
28283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28284 (eval $ac_link) 2>conftest.er1
a848cd7e 28285 ac_status=$?
ac1cb8d3
VS
28286 grep -v '^ *+' conftest.er1 >conftest.err
28287 rm -f conftest.er1
28288 cat conftest.err >&5
a848cd7e
SC
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); } &&
0093c2fc 28291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293 (eval $ac_try) 2>&5
28294 ac_status=$?
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; } &&
28297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28299 (eval $ac_try) 2>&5
28300 ac_status=$?
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; }; then
28303 ac_cv_lib_socket_connect=yes
28304else
28305 echo "$as_me: failed program was:" >&5
28306sed 's/^/| /' conftest.$ac_ext >&5
28307
28308ac_cv_lib_socket_connect=no
28309fi
ac1cb8d3
VS
28310rm -f conftest.err conftest.$ac_objext \
28311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28312LIBS=$ac_check_lib_save_LIBS
28313fi
28314echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28315echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28316if test $ac_cv_lib_socket_connect = yes; then
28317 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28318fi
28319
28320 fi
28321
28322 # Guillermo Gomez says -lposix is necessary on A/UX.
28323 echo "$as_me:$LINENO: checking for remove" >&5
28324echo $ECHO_N "checking for remove... $ECHO_C" >&6
28325if test "${ac_cv_func_remove+set}" = set; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28327else
28328 cat >conftest.$ac_ext <<_ACEOF
28329/* confdefs.h. */
28330_ACEOF
28331cat confdefs.h >>conftest.$ac_ext
28332cat >>conftest.$ac_ext <<_ACEOF
28333/* end confdefs.h. */
ac1cb8d3
VS
28334/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28336#define remove innocuous_remove
28337
a848cd7e
SC
28338/* System header to define __stub macros and hopefully few prototypes,
28339 which can conflict with char remove (); below.
28340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28341 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28342
a848cd7e
SC
28343#ifdef __STDC__
28344# include <limits.h>
28345#else
28346# include <assert.h>
28347#endif
ac1cb8d3
VS
28348
28349#undef remove
28350
a848cd7e
SC
28351/* Override any gcc2 internal prototype to avoid an error. */
28352#ifdef __cplusplus
28353extern "C"
28354{
28355#endif
28356/* We use char because int might match the return type of a gcc2
28357 builtin and then its argument prototype would still apply. */
28358char remove ();
28359/* The GNU C library defines this for functions which it implements
28360 to always fail with ENOSYS. Some functions are actually named
28361 something starting with __ and the normal name is an alias. */
28362#if defined (__stub_remove) || defined (__stub___remove)
28363choke me
28364#else
28365char (*f) () = remove;
28366#endif
28367#ifdef __cplusplus
28368}
28369#endif
28370
28371int
28372main ()
28373{
28374return f != remove;
28375 ;
28376 return 0;
28377}
28378_ACEOF
28379rm -f conftest.$ac_objext conftest$ac_exeext
28380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28381 (eval $ac_link) 2>conftest.er1
a848cd7e 28382 ac_status=$?
ac1cb8d3
VS
28383 grep -v '^ *+' conftest.er1 >conftest.err
28384 rm -f conftest.er1
28385 cat conftest.err >&5
a848cd7e
SC
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); } &&
0093c2fc 28388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390 (eval $ac_try) 2>&5
28391 ac_status=$?
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); }; } &&
28394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 (eval $ac_try) 2>&5
28397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 ac_cv_func_remove=yes
28401else
28402 echo "$as_me: failed program was:" >&5
28403sed 's/^/| /' conftest.$ac_ext >&5
28404
28405ac_cv_func_remove=no
28406fi
ac1cb8d3
VS
28407rm -f conftest.err conftest.$ac_objext \
28408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28409fi
28410echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28411echo "${ECHO_T}$ac_cv_func_remove" >&6
28412
28413 if test $ac_cv_func_remove = no; then
28414 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28415echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28416if test "${ac_cv_lib_posix_remove+set}" = set; then
28417 echo $ECHO_N "(cached) $ECHO_C" >&6
28418else
28419 ac_check_lib_save_LIBS=$LIBS
28420LIBS="-lposix $LIBS"
28421cat >conftest.$ac_ext <<_ACEOF
28422/* confdefs.h. */
28423_ACEOF
28424cat confdefs.h >>conftest.$ac_ext
28425cat >>conftest.$ac_ext <<_ACEOF
28426/* end confdefs.h. */
28427
28428/* Override any gcc2 internal prototype to avoid an error. */
28429#ifdef __cplusplus
28430extern "C"
28431#endif
28432/* We use char because int might match the return type of a gcc2
28433 builtin and then its argument prototype would still apply. */
28434char remove ();
28435int
28436main ()
28437{
28438remove ();
28439 ;
28440 return 0;
28441}
28442_ACEOF
28443rm -f conftest.$ac_objext conftest$ac_exeext
28444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28445 (eval $ac_link) 2>conftest.er1
a848cd7e 28446 ac_status=$?
ac1cb8d3
VS
28447 grep -v '^ *+' conftest.er1 >conftest.err
28448 rm -f conftest.er1
28449 cat conftest.err >&5
a848cd7e
SC
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } &&
0093c2fc 28452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; } &&
28458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28460 (eval $ac_try) 2>&5
28461 ac_status=$?
28462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463 (exit $ac_status); }; }; then
28464 ac_cv_lib_posix_remove=yes
28465else
28466 echo "$as_me: failed program was:" >&5
28467sed 's/^/| /' conftest.$ac_ext >&5
28468
28469ac_cv_lib_posix_remove=no
28470fi
ac1cb8d3
VS
28471rm -f conftest.err conftest.$ac_objext \
28472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28473LIBS=$ac_check_lib_save_LIBS
28474fi
28475echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28476echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28477if test $ac_cv_lib_posix_remove = yes; then
28478 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28479fi
28480
28481 fi
28482
28483 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28484 echo "$as_me:$LINENO: checking for shmat" >&5
28485echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28486if test "${ac_cv_func_shmat+set}" = set; then
28487 echo $ECHO_N "(cached) $ECHO_C" >&6
28488else
28489 cat >conftest.$ac_ext <<_ACEOF
28490/* confdefs.h. */
28491_ACEOF
28492cat confdefs.h >>conftest.$ac_ext
28493cat >>conftest.$ac_ext <<_ACEOF
28494/* end confdefs.h. */
ac1cb8d3
VS
28495/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28497#define shmat innocuous_shmat
28498
a848cd7e
SC
28499/* System header to define __stub macros and hopefully few prototypes,
28500 which can conflict with char shmat (); below.
28501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28502 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28503
a848cd7e
SC
28504#ifdef __STDC__
28505# include <limits.h>
28506#else
28507# include <assert.h>
28508#endif
ac1cb8d3
VS
28509
28510#undef shmat
28511
a848cd7e
SC
28512/* Override any gcc2 internal prototype to avoid an error. */
28513#ifdef __cplusplus
28514extern "C"
28515{
28516#endif
28517/* We use char because int might match the return type of a gcc2
28518 builtin and then its argument prototype would still apply. */
28519char shmat ();
28520/* The GNU C library defines this for functions which it implements
28521 to always fail with ENOSYS. Some functions are actually named
28522 something starting with __ and the normal name is an alias. */
28523#if defined (__stub_shmat) || defined (__stub___shmat)
28524choke me
28525#else
28526char (*f) () = shmat;
28527#endif
28528#ifdef __cplusplus
28529}
28530#endif
28531
28532int
28533main ()
28534{
28535return f != shmat;
28536 ;
28537 return 0;
28538}
28539_ACEOF
28540rm -f conftest.$ac_objext conftest$ac_exeext
28541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28542 (eval $ac_link) 2>conftest.er1
a848cd7e 28543 ac_status=$?
ac1cb8d3
VS
28544 grep -v '^ *+' conftest.er1 >conftest.err
28545 rm -f conftest.er1
28546 cat conftest.err >&5
a848cd7e
SC
28547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548 (exit $ac_status); } &&
0093c2fc 28549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551 (eval $ac_try) 2>&5
28552 ac_status=$?
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); }; } &&
28555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557 (eval $ac_try) 2>&5
28558 ac_status=$?
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); }; }; then
28561 ac_cv_func_shmat=yes
28562else
28563 echo "$as_me: failed program was:" >&5
28564sed 's/^/| /' conftest.$ac_ext >&5
28565
28566ac_cv_func_shmat=no
28567fi
ac1cb8d3
VS
28568rm -f conftest.err conftest.$ac_objext \
28569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28570fi
28571echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28572echo "${ECHO_T}$ac_cv_func_shmat" >&6
28573
28574 if test $ac_cv_func_shmat = no; then
28575 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28576echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28577if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28578 echo $ECHO_N "(cached) $ECHO_C" >&6
28579else
28580 ac_check_lib_save_LIBS=$LIBS
28581LIBS="-lipc $LIBS"
28582cat >conftest.$ac_ext <<_ACEOF
28583/* confdefs.h. */
28584_ACEOF
28585cat confdefs.h >>conftest.$ac_ext
28586cat >>conftest.$ac_ext <<_ACEOF
28587/* end confdefs.h. */
28588
28589/* Override any gcc2 internal prototype to avoid an error. */
28590#ifdef __cplusplus
28591extern "C"
28592#endif
28593/* We use char because int might match the return type of a gcc2
28594 builtin and then its argument prototype would still apply. */
28595char shmat ();
28596int
28597main ()
28598{
28599shmat ();
28600 ;
28601 return 0;
28602}
28603_ACEOF
28604rm -f conftest.$ac_objext conftest$ac_exeext
28605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28606 (eval $ac_link) 2>conftest.er1
a848cd7e 28607 ac_status=$?
ac1cb8d3
VS
28608 grep -v '^ *+' conftest.er1 >conftest.err
28609 rm -f conftest.er1
28610 cat conftest.err >&5
a848cd7e
SC
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); } &&
0093c2fc 28613 { ac_try='test -z "$ac_c_werror_flag" || 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_ipc_shmat=yes
28626else
28627 echo "$as_me: failed program was:" >&5
28628sed 's/^/| /' conftest.$ac_ext >&5
28629
28630ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
28637echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28638if test $ac_cv_lib_ipc_shmat = yes; then
28639 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28640fi
28641
28642 fi
28643 fi
28644
28645 # Check for libraries that X11R6 Xt/Xaw programs need.
28646 ac_save_LDFLAGS=$LDFLAGS
28647 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28648 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28649 # check for ICE first), but we must link in the order -lSM -lICE or
28650 # we get undefined symbols. So assume we have SM if we have ICE.
28651 # These have to be linked with before -lX11, unlike the other
28652 # libraries we check for below, so use a different variable.
28653 # John Interrante, Karl Berry
28654 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28655echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28656if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28657 echo $ECHO_N "(cached) $ECHO_C" >&6
28658else
28659 ac_check_lib_save_LIBS=$LIBS
28660LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28661cat >conftest.$ac_ext <<_ACEOF
28662/* confdefs.h. */
28663_ACEOF
28664cat confdefs.h >>conftest.$ac_ext
28665cat >>conftest.$ac_ext <<_ACEOF
28666/* end confdefs.h. */
28667
28668/* Override any gcc2 internal prototype to avoid an error. */
28669#ifdef __cplusplus
28670extern "C"
28671#endif
28672/* We use char because int might match the return type of a gcc2
28673 builtin and then its argument prototype would still apply. */
28674char IceConnectionNumber ();
28675int
28676main ()
28677{
28678IceConnectionNumber ();
28679 ;
28680 return 0;
28681}
28682_ACEOF
28683rm -f conftest.$ac_objext conftest$ac_exeext
28684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28685 (eval $ac_link) 2>conftest.er1
a848cd7e 28686 ac_status=$?
ac1cb8d3
VS
28687 grep -v '^ *+' conftest.er1 >conftest.err
28688 rm -f conftest.er1
28689 cat conftest.err >&5
a848cd7e
SC
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); } &&
0093c2fc 28692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694 (eval $ac_try) 2>&5
28695 ac_status=$?
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; } &&
28698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28700 (eval $ac_try) 2>&5
28701 ac_status=$?
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; }; then
28704 ac_cv_lib_ICE_IceConnectionNumber=yes
28705else
28706 echo "$as_me: failed program was:" >&5
28707sed 's/^/| /' conftest.$ac_ext >&5
28708
28709ac_cv_lib_ICE_IceConnectionNumber=no
28710fi
ac1cb8d3
VS
28711rm -f conftest.err conftest.$ac_objext \
28712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28713LIBS=$ac_check_lib_save_LIBS
28714fi
28715echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28716echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28717if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28718 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28719fi
28720
28721 LDFLAGS=$ac_save_LDFLAGS
28722
28723fi
28724
28725
28726 if test "$no_x" = "yes"; then
89d90d6d
VZ
28727 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28728echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28729 { (exit 1); exit 1; }; }
a848cd7e
SC
28730 fi
28731
74b84332
VS
28732 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28733 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28734 AFMINSTALL=afminstall
28735 COMPILED_X_PROGRAM=0
28736
74b84332
VS
28737 fi
28738
28739 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28740 if test "$wxUSE_NANOX" = "yes"; then
28741 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28742echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28743 if test "x$MICROWIN" = x ; then
28744 echo "$as_me:$LINENO: result: not found" >&5
28745echo "${ECHO_T}not found" >&6
28746 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28747echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28748 { (exit 1); exit 1; }; }
28749 else
28750 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28751echo "${ECHO_T}$MICROWIN" >&6
28752 cat >>confdefs.h <<\_ACEOF
28753#define wxUSE_NANOX 1
28754_ACEOF
28755
28756 fi
28757 fi
28758
28759 if test "$wxUSE_UNICODE" = "yes"; then
28760
28761 succeeded=no
28762
28763 if test -z "$PKG_CONFIG"; then
28764 # Extract the first word of "pkg-config", so it can be a program name with args.
28765set dummy pkg-config; ac_word=$2
28766echo "$as_me:$LINENO: checking for $ac_word" >&5
28767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28768if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28769 echo $ECHO_N "(cached) $ECHO_C" >&6
28770else
28771 case $PKG_CONFIG in
28772 [\\/]* | ?:[\\/]*)
28773 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28774 ;;
28775 *)
28776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28777for as_dir in $PATH
28778do
28779 IFS=$as_save_IFS
28780 test -z "$as_dir" && as_dir=.
28781 for ac_exec_ext in '' $ac_executable_extensions; do
28782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28783 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28785 break 2
28786 fi
28787done
28788done
28789
28790 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28791 ;;
28792esac
28793fi
28794PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28795
28796if test -n "$PKG_CONFIG"; then
28797 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28798echo "${ECHO_T}$PKG_CONFIG" >&6
28799else
28800 echo "$as_me:$LINENO: result: no" >&5
28801echo "${ECHO_T}no" >&6
28802fi
28803
28804 fi
28805
28806 if test "$PKG_CONFIG" = "no" ; then
28807 echo "*** The pkg-config script could not be found. Make sure it is"
28808 echo "*** in your path, or set the PKG_CONFIG environment variable"
28809 echo "*** to the full path to pkg-config."
28810 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28811 else
28812 PKG_CONFIG_MIN_VERSION=0.9.0
28813 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28814 echo "$as_me:$LINENO: checking for pangox" >&5
28815echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28816
28817 if $PKG_CONFIG --exists "pangox" ; then
28818 echo "$as_me:$LINENO: result: yes" >&5
28819echo "${ECHO_T}yes" >&6
28820 succeeded=yes
28821
28822 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28823echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28824 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28825 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28826echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28827
28828 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28829echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28830 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28831 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28832echo "${ECHO_T}$PANGOX_LIBS" >&6
28833 else
28834 PANGOX_CFLAGS=""
28835 PANGOX_LIBS=""
28836 ## If we have a custom action on failure, don't print errors, but
28837 ## do set a variable so people can do so.
28838 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28839
28840 fi
28841
28842
28843
28844 else
28845 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28846 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28847 fi
28848 fi
28849
28850 if test $succeeded = yes; then
28851
28852 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28853 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28854
28855 else
28856
28857 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28858echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28859 { (exit 1); exit 1; }; }
28860
28861
28862 fi
28863
28864
28865 succeeded=no
28866
28867 if test -z "$PKG_CONFIG"; then
28868 # Extract the first word of "pkg-config", so it can be a program name with args.
28869set dummy pkg-config; ac_word=$2
28870echo "$as_me:$LINENO: checking for $ac_word" >&5
28871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28872if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28873 echo $ECHO_N "(cached) $ECHO_C" >&6
28874else
28875 case $PKG_CONFIG in
28876 [\\/]* | ?:[\\/]*)
28877 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28878 ;;
28879 *)
28880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28881for as_dir in $PATH
28882do
28883 IFS=$as_save_IFS
28884 test -z "$as_dir" && as_dir=.
28885 for ac_exec_ext in '' $ac_executable_extensions; do
28886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28887 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28889 break 2
28890 fi
28891done
28892done
28893
28894 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28895 ;;
28896esac
28897fi
28898PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28899
28900if test -n "$PKG_CONFIG"; then
28901 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28902echo "${ECHO_T}$PKG_CONFIG" >&6
28903else
28904 echo "$as_me:$LINENO: result: no" >&5
28905echo "${ECHO_T}no" >&6
28906fi
28907
28908 fi
28909
28910 if test "$PKG_CONFIG" = "no" ; then
28911 echo "*** The pkg-config script could not be found. Make sure it is"
28912 echo "*** in your path, or set the PKG_CONFIG environment variable"
28913 echo "*** to the full path to pkg-config."
28914 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28915 else
28916 PKG_CONFIG_MIN_VERSION=0.9.0
28917 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28918 echo "$as_me:$LINENO: checking for pangoft2" >&5
28919echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28920
28921 if $PKG_CONFIG --exists "pangoft2" ; then
28922 echo "$as_me:$LINENO: result: yes" >&5
28923echo "${ECHO_T}yes" >&6
28924 succeeded=yes
28925
28926 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28927echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28928 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28929 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28930echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28931
28932 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28933echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28934 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28935 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28936echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28937 else
28938 PANGOFT2_CFLAGS=""
28939 PANGOFT2_LIBS=""
28940 ## If we have a custom action on failure, don't print errors, but
28941 ## do set a variable so people can do so.
28942 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28943
28944 fi
28945
28946
28947
28948 else
28949 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28950 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28951 fi
28952 fi
28953
28954 if test $succeeded = yes; then
28955
28956 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28957 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28958
28959 else
28960
28961 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28962echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28963 wxUSE_PRINTING_ARCHITECTURE="no"
28964
28965
28966 fi
28967
28968
28969 succeeded=no
28970
28971 if test -z "$PKG_CONFIG"; then
28972 # Extract the first word of "pkg-config", so it can be a program name with args.
28973set dummy pkg-config; ac_word=$2
28974echo "$as_me:$LINENO: checking for $ac_word" >&5
28975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28976if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28977 echo $ECHO_N "(cached) $ECHO_C" >&6
28978else
28979 case $PKG_CONFIG in
28980 [\\/]* | ?:[\\/]*)
28981 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28982 ;;
28983 *)
28984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28985for as_dir in $PATH
28986do
28987 IFS=$as_save_IFS
28988 test -z "$as_dir" && as_dir=.
28989 for ac_exec_ext in '' $ac_executable_extensions; do
28990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28991 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28993 break 2
28994 fi
28995done
28996done
28997
28998 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28999 ;;
29000esac
29001fi
29002PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29003
29004if test -n "$PKG_CONFIG"; then
29005 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29006echo "${ECHO_T}$PKG_CONFIG" >&6
29007else
29008 echo "$as_me:$LINENO: result: no" >&5
29009echo "${ECHO_T}no" >&6
29010fi
29011
29012 fi
29013
29014 if test "$PKG_CONFIG" = "no" ; then
29015 echo "*** The pkg-config script could not be found. Make sure it is"
29016 echo "*** in your path, or set the PKG_CONFIG environment variable"
29017 echo "*** to the full path to pkg-config."
29018 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29019 else
29020 PKG_CONFIG_MIN_VERSION=0.9.0
29021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29022 echo "$as_me:$LINENO: checking for pangoxft" >&5
29023echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29024
29025 if $PKG_CONFIG --exists "pangoxft" ; then
29026 echo "$as_me:$LINENO: result: yes" >&5
29027echo "${ECHO_T}yes" >&6
29028 succeeded=yes
29029
29030 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29031echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29032 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29033 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29034echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29035
29036 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29037echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29038 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29039 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29040echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29041 else
29042 PANGOXFT_CFLAGS=""
29043 PANGOXFT_LIBS=""
29044 ## If we have a custom action on failure, don't print errors, but
29045 ## do set a variable so people can do so.
29046 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29047
29048 fi
29049
29050
29051
29052 else
29053 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29054 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29055 fi
29056 fi
29057
29058 if test $succeeded = yes; then
29059
4ae1af05
MB
29060 cat >>confdefs.h <<\_ACEOF
29061#define HAVE_PANGO_XFT 1
29062_ACEOF
29063
a848cd7e
SC
29064 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
29065 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29066
29067 else
29068
29069 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29070echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29071
29072
29073 fi
29074
304205f1
VS
29075 save_CFLAGS="$CFLAGS"
29076 save_LIBS="$LIBS"
29077 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
29078 LIBS="$LIBS $PANGOX_LIBS"
29079
29080for ac_func in pango_font_family_is_monospace
29081do
29082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29083echo "$as_me:$LINENO: checking for $ac_func" >&5
29084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29085if eval "test \"\${$as_ac_var+set}\" = set"; then
29086 echo $ECHO_N "(cached) $ECHO_C" >&6
29087else
29088 cat >conftest.$ac_ext <<_ACEOF
29089/* confdefs.h. */
29090_ACEOF
29091cat confdefs.h >>conftest.$ac_ext
29092cat >>conftest.$ac_ext <<_ACEOF
29093/* end confdefs.h. */
29094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29096#define $ac_func innocuous_$ac_func
29097
29098/* System header to define __stub macros and hopefully few prototypes,
29099 which can conflict with char $ac_func (); below.
29100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29101 <limits.h> exists even on freestanding compilers. */
29102
29103#ifdef __STDC__
29104# include <limits.h>
29105#else
29106# include <assert.h>
29107#endif
29108
29109#undef $ac_func
29110
29111/* Override any gcc2 internal prototype to avoid an error. */
29112#ifdef __cplusplus
29113extern "C"
29114{
29115#endif
29116/* We use char because int might match the return type of a gcc2
29117 builtin and then its argument prototype would still apply. */
29118char $ac_func ();
29119/* The GNU C library defines this for functions which it implements
29120 to always fail with ENOSYS. Some functions are actually named
29121 something starting with __ and the normal name is an alias. */
29122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29123choke me
29124#else
29125char (*f) () = $ac_func;
29126#endif
29127#ifdef __cplusplus
29128}
29129#endif
29130
29131int
29132main ()
29133{
29134return f != $ac_func;
29135 ;
29136 return 0;
29137}
29138_ACEOF
29139rm -f conftest.$ac_objext conftest$ac_exeext
29140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29141 (eval $ac_link) 2>conftest.er1
29142 ac_status=$?
29143 grep -v '^ *+' conftest.er1 >conftest.err
29144 rm -f conftest.er1
29145 cat conftest.err >&5
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); } &&
0093c2fc 29148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
29149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29150 (eval $ac_try) 2>&5
29151 ac_status=$?
29152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); }; } &&
29154 { ac_try='test -s conftest$ac_exeext'
29155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29156 (eval $ac_try) 2>&5
29157 ac_status=$?
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); }; }; then
29160 eval "$as_ac_var=yes"
29161else
29162 echo "$as_me: failed program was:" >&5
29163sed 's/^/| /' conftest.$ac_ext >&5
29164
29165eval "$as_ac_var=no"
29166fi
29167rm -f conftest.err conftest.$ac_objext \
29168 conftest$ac_exeext conftest.$ac_ext
29169fi
29170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29172if test `eval echo '${'$as_ac_var'}'` = yes; then
29173 cat >>confdefs.h <<_ACEOF
29174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29175_ACEOF
29176
29177fi
29178done
29179
29180 CFLAGS="$save_CFLAGS"
29181 LIBS="$save_LIBS"
a848cd7e
SC
29182 fi
29183
29184 wxUSE_UNIVERSAL="yes"
29185
29186 if test "$wxUSE_NANOX" = "yes"; then
29187 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29188 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"
29189 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29190 else
29191 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29192 fi
29193
a848cd7e
SC
29194 TOOLKIT=X11
29195 GUIDIST=X11_DIST
29196 fi
29197
29198 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29199 if test "$wxUSE_UNICODE" = "yes"; then
29200 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29201echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29202 { (exit 1); exit 1; }; }
29203 fi
29204
74b84332
VS
29205 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29206echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29207
74b84332
VS
29208ac_find_includes=
29209for ac_dir in $SEARCH_INCLUDE /usr/include;
29210 do
29211 if test -f "$ac_dir/Xm/Xm.h"; then
29212 ac_find_includes=$ac_dir
29213 break
29214 fi
29215 done
a848cd7e 29216
74b84332
VS
29217 if test "$ac_find_includes" != "" ; then
29218 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29219echo "${ECHO_T}found in $ac_find_includes" >&6
29220
29221 if test "x$ac_find_includes" = "x/usr/include"; then
29222 ac_path_to_include=""
29223 else
29224 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29225 result=$?
29226 if test $result = 0; then
29227 ac_path_to_include=""
29228 else
29229 ac_path_to_include=" -I$ac_find_includes"
29230 fi
a848cd7e
SC
29231 fi
29232
74b84332
VS
29233 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29234 else
e051b34e
MW
29235 save_CFLAGS=$CFLAGS
29236 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29237
74b84332 29238 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29239/* confdefs.h. */
29240_ACEOF
29241cat confdefs.h >>conftest.$ac_ext
29242cat >>conftest.$ac_ext <<_ACEOF
29243/* end confdefs.h. */
29244
74b84332
VS
29245 #include <Xm/Xm.h>
29246
a848cd7e
SC
29247int
29248main ()
29249{
29250
74b84332
VS
29251 int version;
29252 version = xmUseVersion;
29253
a848cd7e
SC
29254 ;
29255 return 0;
29256}
29257_ACEOF
74b84332
VS
29258rm -f conftest.$ac_objext
29259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29260 (eval $ac_compile) 2>conftest.er1
a848cd7e 29261 ac_status=$?
ac1cb8d3
VS
29262 grep -v '^ *+' conftest.er1 >conftest.err
29263 rm -f conftest.er1
29264 cat conftest.err >&5
a848cd7e
SC
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); } &&
0093c2fc 29267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29269 (eval $ac_try) 2>&5
29270 ac_status=$?
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); }; } &&
74b84332 29273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29275 (eval $ac_try) 2>&5
29276 ac_status=$?
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); }; }; then
74b84332
VS
29279
29280 echo "$as_me:$LINENO: result: found in default search path" >&5
29281echo "${ECHO_T}found in default search path" >&6
29282 COMPILED_X_PROGRAM=1
29283
a848cd7e
SC
29284else
29285 echo "$as_me: failed program was:" >&5
29286sed 's/^/| /' conftest.$ac_ext >&5
29287
a848cd7e 29288
74b84332
VS
29289 echo "$as_me:$LINENO: result: no" >&5
29290echo "${ECHO_T}no" >&6
e051b34e
MW
29291 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29292echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29293 { (exit 1); exit 1; }; }
a848cd7e 29294
a848cd7e 29295
a848cd7e 29296fi
74b84332 29297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29298
29299 CFLAGS=$save_CFLAGS
74b84332
VS
29300 fi
29301
0ad5d837
VZ
29302
29303 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29304echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29305
0ad5d837
VZ
29306 ac_find_libraries=
29307 for ac_dir in $SEARCH_LIB;
74b84332 29308 do
3eca31dc 29309 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29310 if test -f "$ac_dir/libXm.$ac_extension"; then
29311 ac_find_libraries=$ac_dir
29312 break 2
a848cd7e 29313 fi
74b84332
VS
29314 done
29315 done
a848cd7e 29316
0ad5d837
VZ
29317
29318 if test "x$ac_find_libraries" != "x" ; then
29319 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29320echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29321
74b84332 29322
0ad5d837 29323 if test "$ac_find_libraries" = "default location"; then
74b84332 29324 ac_path_to_link=""
a848cd7e 29325 else
0ad5d837
VZ
29326 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29327 result=$?
29328 if test $result = 0; then
29329 ac_path_to_link=""
29330 else
29331 ac_path_to_link=" -L$ac_find_libraries"
29332 fi
74b84332
VS
29333 fi
29334
0ad5d837
VZ
29335 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29336 else
29337 save_CFLAGS=$CFLAGS
29338 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
29339 save_LIBS="$LIBS"
29340 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29341
0ad5d837 29342 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29343/* confdefs.h. */
29344_ACEOF
29345cat confdefs.h >>conftest.$ac_ext
29346cat >>conftest.$ac_ext <<_ACEOF
29347/* end confdefs.h. */
29348
0ad5d837 29349 #include <Xm/Xm.h>
74b84332 29350
a848cd7e
SC
29351int
29352main ()
29353{
74b84332 29354
0ad5d837
VZ
29355 int version;
29356 version = xmUseVersion;
74b84332 29357
a848cd7e
SC
29358 ;
29359 return 0;
29360}
29361_ACEOF
0ad5d837
VZ
29362rm -f conftest.$ac_objext conftest$ac_exeext
29363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29364 (eval $ac_link) 2>conftest.er1
a848cd7e 29365 ac_status=$?
ac1cb8d3
VS
29366 grep -v '^ *+' conftest.er1 >conftest.err
29367 rm -f conftest.er1
29368 cat conftest.err >&5
a848cd7e
SC
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); } &&
0093c2fc 29371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29373 (eval $ac_try) 2>&5
29374 ac_status=$?
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; } &&
0ad5d837 29377 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29379 (eval $ac_try) 2>&5
29380 ac_status=$?
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); }; }; then
74b84332 29383
0ad5d837 29384 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29385echo "${ECHO_T}found in default search path" >&6
0ad5d837 29386 COMPILED_X_PROGRAM=1
74b84332 29387
a848cd7e
SC
29388else
29389 echo "$as_me: failed program was:" >&5
29390sed 's/^/| /' conftest.$ac_ext >&5
29391
74b84332 29392
6f9cf1e6 29393 echo "$as_me:$LINENO: result: no" >&5
74b84332 29394echo "${ECHO_T}no" >&6
6f9cf1e6 29395 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29396echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29397 { (exit 1); exit 1; }; }
29398
29399
29400fi
0ad5d837
VZ
29401rm -f conftest.err conftest.$ac_objext \
29402 conftest$ac_exeext conftest.$ac_ext
74b84332 29403
0ad5d837 29404 CFLAGS=$save_CFLAGS
6f9cf1e6 29405 LIBS="$save_LIBS"
74b84332
VS
29406 fi
29407
29408 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29409echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29410 libp_link=""
29411 libsm_ice_link=""
29412 libs_found=0
29413 for libp in "" " -lXp"; do
29414 if test "$libs_found" = "0"; then
29415 for libsm_ice in "" " -lSM -lICE"; do
29416 if test "$libs_found" = "0"; then
29417 save_LIBS="$LIBS"
29418 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29419 save_CFLAGS=$CFLAGS
29420 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29421
29422 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29423/* confdefs.h. */
29424_ACEOF
29425cat confdefs.h >>conftest.$ac_ext
29426cat >>conftest.$ac_ext <<_ACEOF
29427/* end confdefs.h. */
29428
74b84332
VS
29429 #include <Xm/Xm.h>
29430 #include <Xm/List.h>
29431
a848cd7e
SC
29432int
29433main ()
29434{
74b84332
VS
29435
29436 XmString string = NULL;
29437 Widget w = NULL;
29438 int position = 0;
29439 XmListAddItem(w, string, position);
29440
a848cd7e
SC
29441 ;
29442 return 0;
29443}
29444_ACEOF
29445rm -f conftest.$ac_objext conftest$ac_exeext
29446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29447 (eval $ac_link) 2>conftest.er1
a848cd7e 29448 ac_status=$?
ac1cb8d3
VS
29449 grep -v '^ *+' conftest.er1 >conftest.err
29450 rm -f conftest.er1
29451 cat conftest.err >&5
a848cd7e
SC
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); } &&
0093c2fc 29454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29456 (eval $ac_try) 2>&5
29457 ac_status=$?
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; } &&
29460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29462 (eval $ac_try) 2>&5
29463 ac_status=$?
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); }; }; then
29466
29467 libp_link="$libp"
29468 libsm_ice_link="$libsm_ice"
29469 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29470echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29471 libs_found=1
29472
29473else
29474 echo "$as_me: failed program was:" >&5
29475sed 's/^/| /' conftest.$ac_ext >&5
29476
29477
29478
29479fi
ac1cb8d3
VS
29480rm -f conftest.err conftest.$ac_objext \
29481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29482
29483 LIBS="$save_LIBS"
29484 CFLAGS=$save_CFLAGS
29485 fi
29486 done
29487 fi
29488 done
29489
29490 if test "$libs_found" = "0"; then
29491 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29492echo "${ECHO_T}can't find the right libraries" >&6
29493 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29494echo "$as_me: error: can't link a simple motif program" >&2;}
29495 { (exit 1); exit 1; }; }
29496 fi
29497
62fa8b3a
MW
29498 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29499echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29500if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29501 echo $ECHO_N "(cached) $ECHO_C" >&6
29502else
29503 ac_check_lib_save_LIBS=$LIBS
29504LIBS="-lSgm $LIBS"
29505cat >conftest.$ac_ext <<_ACEOF
29506/* confdefs.h. */
29507_ACEOF
29508cat confdefs.h >>conftest.$ac_ext
29509cat >>conftest.$ac_ext <<_ACEOF
29510/* end confdefs.h. */
29511
29512/* Override any gcc2 internal prototype to avoid an error. */
29513#ifdef __cplusplus
29514extern "C"
29515#endif
29516/* We use char because int might match the return type of a gcc2
29517 builtin and then its argument prototype would still apply. */
29518char SgCreateList ();
29519int
29520main ()
29521{
29522SgCreateList ();
29523 ;
29524 return 0;
29525}
29526_ACEOF
29527rm -f conftest.$ac_objext conftest$ac_exeext
29528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29529 (eval $ac_link) 2>conftest.er1
29530 ac_status=$?
29531 grep -v '^ *+' conftest.er1 >conftest.err
29532 rm -f conftest.er1
29533 cat conftest.err >&5
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); } &&
0093c2fc 29536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; } &&
29542 { ac_try='test -s conftest$ac_exeext'
29543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544 (eval $ac_try) 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; }; then
29548 ac_cv_lib_Sgm_SgCreateList=yes
29549else
29550 echo "$as_me: failed program was:" >&5
29551sed 's/^/| /' conftest.$ac_ext >&5
29552
29553ac_cv_lib_Sgm_SgCreateList=no
29554fi
29555rm -f conftest.err conftest.$ac_objext \
29556 conftest$ac_exeext conftest.$ac_ext
29557LIBS=$ac_check_lib_save_LIBS
29558fi
29559echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29560echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29561if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29562 libsgm_link=" -lSgm"
29563fi
29564
29565
a848cd7e
SC
29566 save_CFLAGS=$CFLAGS
29567 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 29568
a848cd7e
SC
29569 echo "$as_me:$LINENO: checking for Motif 2" >&5
29570echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29571if test "${wx_cv_lib_motif2+set}" = set; then
29572 echo $ECHO_N "(cached) $ECHO_C" >&6
29573else
29574 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29575/* confdefs.h. */
29576_ACEOF
29577cat confdefs.h >>conftest.$ac_ext
29578cat >>conftest.$ac_ext <<_ACEOF
29579/* end confdefs.h. */
29580
0ad5d837 29581 #include <Xm/Xm.h>
a848cd7e
SC
29582
29583int
29584main ()
29585{
29586
0ad5d837
VZ
29587 #if XmVersion < 2000
29588 Not Motif 2
29589 #endif
a848cd7e
SC
29590
29591 ;
29592 return 0;
29593}
29594_ACEOF
29595rm -f conftest.$ac_objext
29596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29597 (eval $ac_compile) 2>conftest.er1
a848cd7e 29598 ac_status=$?
ac1cb8d3
VS
29599 grep -v '^ *+' conftest.er1 >conftest.err
29600 rm -f conftest.er1
29601 cat conftest.err >&5
a848cd7e
SC
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); } &&
0093c2fc 29604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29606 (eval $ac_try) 2>&5
29607 ac_status=$?
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); }; } &&
29610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29612 (eval $ac_try) 2>&5
29613 ac_status=$?
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; }; then
0ad5d837 29616 wx_cv_lib_motif2="yes"
a848cd7e
SC
29617else
29618 echo "$as_me: failed program was:" >&5
29619sed 's/^/| /' conftest.$ac_ext >&5
29620
0ad5d837
VZ
29621wx_cv_lib_motif2="no"
29622fi
29623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29624fi
29625echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29626echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29627 if test "$wx_cv_lib_motif2" = "yes"; then
29628 cat >>confdefs.h <<\_ACEOF
29629#define __WXMOTIF20__ 1
29630_ACEOF
a848cd7e 29631
0ad5d837
VZ
29632 else
29633 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29634#define __WXMOTIF20__ 0
29635_ACEOF
29636
0ad5d837 29637 fi
2113bc77
MW
29638
29639 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29640echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29641if test "${wx_cv_lib_lesstif+set}" = set; then
29642 echo $ECHO_N "(cached) $ECHO_C" >&6
29643else
29644 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29645/* confdefs.h. */
29646_ACEOF
29647cat confdefs.h >>conftest.$ac_ext
29648cat >>conftest.$ac_ext <<_ACEOF
29649/* end confdefs.h. */
29650
0ad5d837 29651 #include <Xm/Xm.h>
2113bc77
MW
29652
29653int
29654main ()
29655{
29656
0ad5d837
VZ
29657 #if !defined(LesstifVersion) || LesstifVersion <= 0
29658 Not Lesstif
29659 #endif
2113bc77
MW
29660
29661 ;
29662 return 0;
29663}
29664_ACEOF
29665rm -f conftest.$ac_objext
29666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29667 (eval $ac_compile) 2>conftest.er1
29668 ac_status=$?
29669 grep -v '^ *+' conftest.er1 >conftest.err
29670 rm -f conftest.er1
29671 cat conftest.err >&5
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); } &&
0093c2fc 29674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29676 (eval $ac_try) 2>&5
29677 ac_status=$?
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); }; } &&
29680 { ac_try='test -s conftest.$ac_objext'
29681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682 (eval $ac_try) 2>&5
29683 ac_status=$?
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); }; }; then
0ad5d837 29686 wx_cv_lib_lesstif="yes"
2113bc77
MW
29687else
29688 echo "$as_me: failed program was:" >&5
29689sed 's/^/| /' conftest.$ac_ext >&5
29690
0ad5d837
VZ
29691wx_cv_lib_lesstif="no"
29692fi
29693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29694
0ad5d837
VZ
29695fi
29696echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29697echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29698 if test "$wx_cv_lib_lesstif" = "yes"; then
29699 cat >>confdefs.h <<\_ACEOF
29700#define __WXLESSTIF__ 1
29701_ACEOF
29702
29703 else
29704 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29705#define __WXLESSTIF__ 0
29706_ACEOF
29707
0ad5d837 29708 fi
2113bc77 29709
a848cd7e
SC
29710 CFLAGS=$save_CFLAGS
29711
62fa8b3a 29712 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29713 TOOLKIT=MOTIF
29714 GUIDIST=MOTIF_DIST
29715 fi
29716
74b84332 29717 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29718 if test "$wxUSE_LIBXPM" = "sys"; then
29719 echo "$as_me:$LINENO: checking for Xpm library" >&5
29720echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29721
0ad5d837
VZ
29722 ac_find_libraries=
29723 for ac_dir in $SEARCH_LIB;
a848cd7e 29724 do
3eca31dc 29725 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29726 if test -f "$ac_dir/libXpm.$ac_extension"; then
29727 ac_find_libraries=$ac_dir
29728 break 2
29729 fi
29730 done
29731 done
29732
29733 if test "$ac_find_libraries" != "" ; then
29734
0ad5d837 29735 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29736 ac_path_to_link=""
29737 else
0ad5d837
VZ
29738 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29739 result=$?
29740 if test $result = 0; then
29741 ac_path_to_link=""
29742 else
29743 ac_path_to_link=" -L$ac_find_libraries"
29744 fi
a848cd7e
SC
29745 fi
29746
29747 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29748 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29749echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29750
29751 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29752echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29753if test "${wx_cv_x11_xpm_h+set}" = set; then
29754 echo $ECHO_N "(cached) $ECHO_C" >&6
29755else
29756
29757 save_CFLAGS=$CFLAGS
29758 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29759
29760 cat >conftest.$ac_ext <<_ACEOF
29761/* confdefs.h. */
29762_ACEOF
29763cat confdefs.h >>conftest.$ac_ext
29764cat >>conftest.$ac_ext <<_ACEOF
29765/* end confdefs.h. */
29766
29767 #include <X11/xpm.h>
29768
29769int
29770main ()
29771{
29772
29773 int version;
29774 version = XpmLibraryVersion();
29775
29776 ;
29777 return 0;
29778}
29779_ACEOF
29780rm -f conftest.$ac_objext
29781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29782 (eval $ac_compile) 2>conftest.er1
a848cd7e 29783 ac_status=$?
ac1cb8d3
VS
29784 grep -v '^ *+' conftest.er1 >conftest.err
29785 rm -f conftest.er1
29786 cat conftest.err >&5
a848cd7e
SC
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); } &&
0093c2fc 29789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29791 (eval $ac_try) 2>&5
29792 ac_status=$?
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); }; } &&
29795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29797 (eval $ac_try) 2>&5
29798 ac_status=$?
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); }; }; then
29801 wx_cv_x11_xpm_h=yes
29802else
29803 echo "$as_me: failed program was:" >&5
29804sed 's/^/| /' conftest.$ac_ext >&5
29805
29806wx_cv_x11_xpm_h=no
29807
29808fi
ac1cb8d3 29809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29810
29811 CFLAGS=$save_CFLAGS
29812
29813
29814fi
29815echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29816echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29817
29818 if test $wx_cv_x11_xpm_h = "yes"; then
29819 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29820 cat >>confdefs.h <<\_ACEOF
29821#define wxHAVE_LIB_XPM 1
29822_ACEOF
29823
29824 else
29825 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29826echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29827 fi
29828 fi
29829
29830 fi
29831
29832 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29833echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29834if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29835 echo $ECHO_N "(cached) $ECHO_C" >&6
29836else
29837 ac_check_lib_save_LIBS=$LIBS
29838LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29839cat >conftest.$ac_ext <<_ACEOF
29840/* confdefs.h. */
29841_ACEOF
29842cat confdefs.h >>conftest.$ac_ext
29843cat >>conftest.$ac_ext <<_ACEOF
29844/* end confdefs.h. */
29845
29846/* Override any gcc2 internal prototype to avoid an error. */
29847#ifdef __cplusplus
29848extern "C"
29849#endif
29850/* We use char because int might match the return type of a gcc2
29851 builtin and then its argument prototype would still apply. */
29852char XShapeQueryExtension ();
29853int
29854main ()
29855{
29856XShapeQueryExtension ();
29857 ;
29858 return 0;
29859}
29860_ACEOF
29861rm -f conftest.$ac_objext conftest$ac_exeext
29862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29863 (eval $ac_link) 2>conftest.er1
a848cd7e 29864 ac_status=$?
ac1cb8d3
VS
29865 grep -v '^ *+' conftest.er1 >conftest.err
29866 rm -f conftest.er1
29867 cat conftest.err >&5
a848cd7e
SC
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); } &&
0093c2fc 29870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872 (eval $ac_try) 2>&5
29873 ac_status=$?
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; } &&
29876 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878 (eval $ac_try) 2>&5
29879 ac_status=$?
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); }; }; then
29882 ac_cv_lib_Xext_XShapeQueryExtension=yes
29883else
29884 echo "$as_me: failed program was:" >&5
29885sed 's/^/| /' conftest.$ac_ext >&5
29886
29887ac_cv_lib_Xext_XShapeQueryExtension=no
29888fi
ac1cb8d3
VS
29889rm -f conftest.err conftest.$ac_objext \
29890 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29891LIBS=$ac_check_lib_save_LIBS
29892fi
29893echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29894echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29895if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29896
29897 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29898 wxHAVE_XEXT_LIB=1
29899
29900fi
29901
29902
29903 if test "$wxHAVE_XEXT_LIB" = 1; then
29904 save_CFLAGS="$CFLAGS"
29905 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29906
29907 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29908echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29909 cat >conftest.$ac_ext <<_ACEOF
29910/* confdefs.h. */
29911_ACEOF
29912cat confdefs.h >>conftest.$ac_ext
29913cat >>conftest.$ac_ext <<_ACEOF
29914/* end confdefs.h. */
29915
29916 #include <X11/Xlib.h>
29917 #include <X11/extensions/shape.h>
29918
29919int
29920main ()
29921{
29922
29923 int dummy1, dummy2;
29924 XShapeQueryExtension((Display*)NULL,
29925 (int*)NULL, (int*)NULL);
29926
29927 ;
29928 return 0;
29929}
29930_ACEOF
29931rm -f conftest.$ac_objext
29932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29933 (eval $ac_compile) 2>conftest.er1
a848cd7e 29934 ac_status=$?
ac1cb8d3
VS
29935 grep -v '^ *+' conftest.er1 >conftest.err
29936 rm -f conftest.er1
29937 cat conftest.err >&5
a848cd7e
SC
29938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); } &&
0093c2fc 29940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942 (eval $ac_try) 2>&5
29943 ac_status=$?
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); }; } &&
29946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948 (eval $ac_try) 2>&5
29949 ac_status=$?
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); }; }; then
29952
29953 cat >>confdefs.h <<\_ACEOF
29954#define HAVE_XSHAPE 1
29955_ACEOF
29956
29957 echo "$as_me:$LINENO: result: found" >&5
29958echo "${ECHO_T}found" >&6
29959
29960else
29961 echo "$as_me: failed program was:" >&5
29962sed 's/^/| /' conftest.$ac_ext >&5
29963
29964
29965 echo "$as_me:$LINENO: result: not found" >&5
29966echo "${ECHO_T}not found" >&6
29967
29968fi
ac1cb8d3 29969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29970 CFLAGS="$save_CFLAGS"
29971
29972 fi
29973 fi
29974
29975 if test "$wxUSE_MAC" = 1; then
29976 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29977echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29978 if test "$GCC" = yes; then
29979 echo "$as_me:$LINENO: result: gcc" >&5
29980echo "${ECHO_T}gcc" >&6
29981 CPPFLAGS_PASCAL="-fpascal-strings"
29982 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29983 echo "$as_me:$LINENO: result: xlc" >&5
29984echo "${ECHO_T}xlc" >&6
29985 CPPFLAGS_PASCAL="-qmacpstr"
29986 else
29987 echo "$as_me:$LINENO: result: none" >&5
29988echo "${ECHO_T}none" >&6
29989 fi
29990
1e9e8aba
DE
29991 if test "x$wxUSE_UNIX" = "xyes"; then
29992 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29993 else
29994 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29995 fi
a848cd7e 29996
a848cd7e
SC
29997 TOOLKIT=MAC
29998 GUIDIST=MACX_DIST
dd21ced8 29999 WXBASEPORT="_carbon"
a848cd7e
SC
30000 fi
30001
30002 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30003 TOOLKIT=COCOA
30004 GUIDIST=COCOA_DIST
30005 fi
30006
30007 if test "$wxUSE_PM" = 1; then
30008 TOOLKIT=PM
de59c161
RD
30009 GUIDIST=PM_DIST
30010 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30011echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30012if test "${wx_cv_spbcdata+set}" = set; then
30013 echo $ECHO_N "(cached) $ECHO_C" >&6
30014else
30015
30016 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30017/* confdefs.h. */
30018_ACEOF
30019cat confdefs.h >>conftest.$ac_ext
30020cat >>conftest.$ac_ext <<_ACEOF
30021/* end confdefs.h. */
30022
30023 #define INCL_PM
30024 #include <os2.h>
30025
30026int
30027main ()
30028{
30029
30030 SPBCDATA test;
30031
30032 ;
30033 return 0;
30034}
30035_ACEOF
30036rm -f conftest.$ac_objext
30037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30038 (eval $ac_compile) 2>conftest.er1
de59c161 30039 ac_status=$?
ac1cb8d3
VS
30040 grep -v '^ *+' conftest.er1 >conftest.err
30041 rm -f conftest.er1
30042 cat conftest.err >&5
de59c161
RD
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } &&
0093c2fc 30045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30047 (eval $ac_try) 2>&5
30048 ac_status=$?
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); }; } &&
30051 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30053 (eval $ac_try) 2>&5
30054 ac_status=$?
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); }; }; then
30057 wx_cv_spbcdata=yes
30058else
30059 echo "$as_me: failed program was:" >&5
30060sed 's/^/| /' conftest.$ac_ext >&5
30061
30062wx_cv_spbcdata=no
30063
30064fi
ac1cb8d3 30065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30066
30067
30068fi
30069echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30070echo "${ECHO_T}$wx_cv_spbcdata" >&6
30071
30072 if test $wx_cv_spbcdata = "yes"; then
30073 cat >>confdefs.h <<\_ACEOF
30074#define HAVE_SPBCDATA 1
30075_ACEOF
30076
30077 fi
a848cd7e
SC
30078 fi
30079
30080 if test "$TOOLKIT" = "PM" ; then
30081 TOOLKIT_DIR="os2"
30082 else
30083 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30084 fi
30085
a848cd7e 30086 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30087 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30088 WIDGET_SET=univ
a848cd7e
SC
30089 fi
30090
30091 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30092 DISTDIR="wx\$(TOOLKIT)"
30093else
30094 USE_GUI=0
30095
30096 TOOLKIT_DIR="base"
30097
30098 if test "$USE_WIN32" = 1 ; then
a848cd7e 30099 TOOLKIT="MSW"
a848cd7e
SC
30100 fi
30101
a848cd7e
SC
30102 GUIDIST="BASE_DIST"
30103 DISTDIR="wxBase"
30104fi
30105
30106
d12aef51
VZ
30107if test "$wxUSE_GUI" = "yes"; then
30108 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30109
30110for ac_header in X11/Xlib.h
30111do
30112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30113if eval "test \"\${$as_ac_Header+set}\" = set"; then
30114 echo "$as_me:$LINENO: checking for $ac_header" >&5
30115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30116if eval "test \"\${$as_ac_Header+set}\" = set"; then
30117 echo $ECHO_N "(cached) $ECHO_C" >&6
30118fi
30119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30121else
30122 # Is the header compilable?
30123echo "$as_me:$LINENO: checking $ac_header usability" >&5
30124echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30125cat >conftest.$ac_ext <<_ACEOF
30126/* confdefs.h. */
30127_ACEOF
30128cat confdefs.h >>conftest.$ac_ext
30129cat >>conftest.$ac_ext <<_ACEOF
30130/* end confdefs.h. */
30131$ac_includes_default
30132#include <$ac_header>
30133_ACEOF
30134rm -f conftest.$ac_objext
30135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30136 (eval $ac_compile) 2>conftest.er1
30137 ac_status=$?
30138 grep -v '^ *+' conftest.er1 >conftest.err
30139 rm -f conftest.er1
30140 cat conftest.err >&5
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); } &&
0093c2fc 30143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30145 (eval $ac_try) 2>&5
30146 ac_status=$?
30147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); }; } &&
30149 { ac_try='test -s conftest.$ac_objext'
30150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30151 (eval $ac_try) 2>&5
30152 ac_status=$?
30153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); }; }; then
30155 ac_header_compiler=yes
30156else
30157 echo "$as_me: failed program was:" >&5
30158sed 's/^/| /' conftest.$ac_ext >&5
30159
30160ac_header_compiler=no
30161fi
30162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30163echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30164echo "${ECHO_T}$ac_header_compiler" >&6
30165
30166# Is the header present?
30167echo "$as_me:$LINENO: checking $ac_header presence" >&5
30168echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30169cat >conftest.$ac_ext <<_ACEOF
30170/* confdefs.h. */
30171_ACEOF
30172cat confdefs.h >>conftest.$ac_ext
30173cat >>conftest.$ac_ext <<_ACEOF
30174/* end confdefs.h. */
30175#include <$ac_header>
30176_ACEOF
30177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30179 ac_status=$?
30180 grep -v '^ *+' conftest.er1 >conftest.err
30181 rm -f conftest.er1
30182 cat conftest.err >&5
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); } >/dev/null; then
30185 if test -s conftest.err; then
30186 ac_cpp_err=$ac_c_preproc_warn_flag
30187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30188 else
30189 ac_cpp_err=
30190 fi
30191else
30192 ac_cpp_err=yes
30193fi
30194if test -z "$ac_cpp_err"; then
30195 ac_header_preproc=yes
30196else
30197 echo "$as_me: failed program was:" >&5
30198sed 's/^/| /' conftest.$ac_ext >&5
30199
30200 ac_header_preproc=no
30201fi
30202rm -f conftest.err conftest.$ac_ext
30203echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30204echo "${ECHO_T}$ac_header_preproc" >&6
30205
30206# So? What about this header?
30207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30208 yes:no: )
30209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30210echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30212echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30213 ac_header_preproc=yes
30214 ;;
30215 no:yes:* )
30216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30219echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30221echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30223echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30227echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30228 (
30229 cat <<\_ASBOX
30230## ----------------------------------------- ##
30231## Report this to wx-dev@lists.wxwidgets.org ##
30232## ----------------------------------------- ##
30233_ASBOX
30234 ) |
30235 sed "s/^/$as_me: WARNING: /" >&2
30236 ;;
30237esac
30238echo "$as_me:$LINENO: checking for $ac_header" >&5
30239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30240if eval "test \"\${$as_ac_Header+set}\" = set"; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30242else
30243 eval "$as_ac_Header=\$ac_header_preproc"
30244fi
30245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30247
30248fi
30249if test `eval echo '${'$as_ac_Header'}'` = yes; then
30250 cat >>confdefs.h <<_ACEOF
30251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30252_ACEOF
30253
30254fi
30255
30256done
30257
30258
30259for ac_header in X11/XKBlib.h
30260do
30261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30262echo "$as_me:$LINENO: checking for $ac_header" >&5
30263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30264if eval "test \"\${$as_ac_Header+set}\" = set"; then
30265 echo $ECHO_N "(cached) $ECHO_C" >&6
30266else
30267 cat >conftest.$ac_ext <<_ACEOF
30268/* confdefs.h. */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h. */
30273
30274 #if HAVE_X11_XLIB_H
30275 #include <X11/Xlib.h>
30276 #endif
30277
30278
30279#include <$ac_header>
30280_ACEOF
30281rm -f conftest.$ac_objext
30282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30283 (eval $ac_compile) 2>conftest.er1
30284 ac_status=$?
30285 grep -v '^ *+' conftest.er1 >conftest.err
30286 rm -f conftest.er1
30287 cat conftest.err >&5
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); } &&
0093c2fc 30290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30292 (eval $ac_try) 2>&5
30293 ac_status=$?
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); }; } &&
30296 { ac_try='test -s conftest.$ac_objext'
30297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30298 (eval $ac_try) 2>&5
30299 ac_status=$?
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); }; }; then
30302 eval "$as_ac_Header=yes"
30303else
30304 echo "$as_me: failed program was:" >&5
30305sed 's/^/| /' conftest.$ac_ext >&5
30306
30307eval "$as_ac_Header=no"
30308fi
30309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30310fi
30311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30313if test `eval echo '${'$as_ac_Header'}'` = yes; then
30314 cat >>confdefs.h <<_ACEOF
30315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30316_ACEOF
30317
30318fi
30319
30320done
30321
30322 fi
30323fi
30324
a848cd7e
SC
30325
30326
30327IODBC_C_SRC=""
30328
30329
30330if test "$TOOLKIT" != "MSW" ; then
30331
30332 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30333
30334 if test "${ac_cv_header_sql_h+set}" = set; then
30335 echo "$as_me:$LINENO: checking for sql.h" >&5
30336echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30337if test "${ac_cv_header_sql_h+set}" = set; then
30338 echo $ECHO_N "(cached) $ECHO_C" >&6
30339fi
30340echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30341echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30342else
30343 # Is the header compilable?
30344echo "$as_me:$LINENO: checking sql.h usability" >&5
30345echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30346cat >conftest.$ac_ext <<_ACEOF
30347/* confdefs.h. */
30348_ACEOF
30349cat confdefs.h >>conftest.$ac_ext
30350cat >>conftest.$ac_ext <<_ACEOF
30351/* end confdefs.h. */
30352$ac_includes_default
30353#include <sql.h>
30354_ACEOF
30355rm -f conftest.$ac_objext
30356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30357 (eval $ac_compile) 2>conftest.er1
a848cd7e 30358 ac_status=$?
ac1cb8d3
VS
30359 grep -v '^ *+' conftest.er1 >conftest.err
30360 rm -f conftest.er1
30361 cat conftest.err >&5
a848cd7e
SC
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } &&
0093c2fc 30364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30366 (eval $ac_try) 2>&5
30367 ac_status=$?
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); }; } &&
30370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30372 (eval $ac_try) 2>&5
30373 ac_status=$?
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); }; }; then
30376 ac_header_compiler=yes
30377else
30378 echo "$as_me: failed program was:" >&5
30379sed 's/^/| /' conftest.$ac_ext >&5
30380
30381ac_header_compiler=no
30382fi
ac1cb8d3 30383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30385echo "${ECHO_T}$ac_header_compiler" >&6
30386
30387# Is the header present?
30388echo "$as_me:$LINENO: checking sql.h presence" >&5
30389echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30390cat >conftest.$ac_ext <<_ACEOF
30391/* confdefs.h. */
30392_ACEOF
30393cat confdefs.h >>conftest.$ac_ext
30394cat >>conftest.$ac_ext <<_ACEOF
30395/* end confdefs.h. */
30396#include <sql.h>
30397_ACEOF
30398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30400 ac_status=$?
30401 grep -v '^ *+' conftest.er1 >conftest.err
30402 rm -f conftest.er1
30403 cat conftest.err >&5
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); } >/dev/null; then
30406 if test -s conftest.err; then
30407 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30409 else
30410 ac_cpp_err=
30411 fi
30412else
30413 ac_cpp_err=yes
30414fi
30415if test -z "$ac_cpp_err"; then
30416 ac_header_preproc=yes
30417else
30418 echo "$as_me: failed program was:" >&5
30419sed 's/^/| /' conftest.$ac_ext >&5
30420
30421 ac_header_preproc=no
30422fi
30423rm -f conftest.err conftest.$ac_ext
30424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30425echo "${ECHO_T}$ac_header_preproc" >&6
30426
30427# So? What about this header?
ac1cb8d3
VS
30428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30429 yes:no: )
a848cd7e
SC
30430 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30431echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30432 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30433echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30434 ac_header_preproc=yes
a848cd7e 30435 ;;
ac1cb8d3 30436 no:yes:* )
a848cd7e
SC
30437 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30438echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30439 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30440echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30441 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30442echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30443 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30444echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30445 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30446echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30447 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30448echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30449 (
30450 cat <<\_ASBOX
ac1cb8d3
VS
30451## ----------------------------------------- ##
30452## Report this to wx-dev@lists.wxwidgets.org ##
30453## ----------------------------------------- ##
a848cd7e
SC
30454_ASBOX
30455 ) |
30456 sed "s/^/$as_me: WARNING: /" >&2
30457 ;;
30458esac
30459echo "$as_me:$LINENO: checking for sql.h" >&5
30460echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30461if test "${ac_cv_header_sql_h+set}" = set; then
30462 echo $ECHO_N "(cached) $ECHO_C" >&6
30463else
30464 ac_cv_header_sql_h=$ac_header_preproc
30465fi
30466echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30467echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30468
30469fi
30470if test $ac_cv_header_sql_h = yes; then
30471 found_sql_h=1
30472fi
30473
30474
30475 if test "x$found_sql_h" = "x1" ; then
30476 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30477echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30478if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30479 echo $ECHO_N "(cached) $ECHO_C" >&6
30480else
30481 ac_check_lib_save_LIBS=$LIBS
30482LIBS="-liodbc $LIBS"
30483cat >conftest.$ac_ext <<_ACEOF
30484/* confdefs.h. */
30485_ACEOF
30486cat confdefs.h >>conftest.$ac_ext
30487cat >>conftest.$ac_ext <<_ACEOF
30488/* end confdefs.h. */
30489
30490/* Override any gcc2 internal prototype to avoid an error. */
30491#ifdef __cplusplus
30492extern "C"
30493#endif
30494/* We use char because int might match the return type of a gcc2
30495 builtin and then its argument prototype would still apply. */
30496char SQLAllocEnv ();
30497int
30498main ()
30499{
30500SQLAllocEnv ();
30501 ;
30502 return 0;
30503}
30504_ACEOF
30505rm -f conftest.$ac_objext conftest$ac_exeext
30506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30507 (eval $ac_link) 2>conftest.er1
a848cd7e 30508 ac_status=$?
ac1cb8d3
VS
30509 grep -v '^ *+' conftest.er1 >conftest.err
30510 rm -f conftest.er1
30511 cat conftest.err >&5
a848cd7e
SC
30512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513 (exit $ac_status); } &&
0093c2fc 30514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30516 (eval $ac_try) 2>&5
30517 ac_status=$?
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); }; } &&
30520 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522 (eval $ac_try) 2>&5
30523 ac_status=$?
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); }; }; then
30526 ac_cv_lib_iodbc_SQLAllocEnv=yes
30527else
30528 echo "$as_me: failed program was:" >&5
30529sed 's/^/| /' conftest.$ac_ext >&5
30530
30531ac_cv_lib_iodbc_SQLAllocEnv=no
30532fi
ac1cb8d3
VS
30533rm -f conftest.err conftest.$ac_objext \
30534 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30535LIBS=$ac_check_lib_save_LIBS
30536fi
30537echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30538echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30539if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30540 ODBC_LINK=" -liodbc"
30541else
30542
30543 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30544echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30545if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30547else
30548 ac_check_lib_save_LIBS=$LIBS
30549LIBS="-lunixodbc $LIBS"
30550cat >conftest.$ac_ext <<_ACEOF
30551/* confdefs.h. */
30552_ACEOF
30553cat confdefs.h >>conftest.$ac_ext
30554cat >>conftest.$ac_ext <<_ACEOF
30555/* end confdefs.h. */
30556
30557/* Override any gcc2 internal prototype to avoid an error. */
30558#ifdef __cplusplus
30559extern "C"
30560#endif
30561/* We use char because int might match the return type of a gcc2
30562 builtin and then its argument prototype would still apply. */
30563char SQLAllocEnv ();
30564int
30565main ()
30566{
30567SQLAllocEnv ();
30568 ;
30569 return 0;
30570}
30571_ACEOF
30572rm -f conftest.$ac_objext conftest$ac_exeext
30573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30574 (eval $ac_link) 2>conftest.er1
a848cd7e 30575 ac_status=$?
ac1cb8d3
VS
30576 grep -v '^ *+' conftest.er1 >conftest.err
30577 rm -f conftest.er1
30578 cat conftest.err >&5
a848cd7e
SC
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); } &&
0093c2fc 30581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30583 (eval $ac_try) 2>&5
30584 ac_status=$?
30585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586 (exit $ac_status); }; } &&
30587 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30589 (eval $ac_try) 2>&5
30590 ac_status=$?
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); }; }; then
30593 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30594else
30595 echo "$as_me: failed program was:" >&5
30596sed 's/^/| /' conftest.$ac_ext >&5
30597
30598ac_cv_lib_unixodbc_SQLAllocEnv=no
30599fi
ac1cb8d3
VS
30600rm -f conftest.err conftest.$ac_objext \
30601 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30602LIBS=$ac_check_lib_save_LIBS
30603fi
30604echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30605echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30606if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30607 ODBC_LINK=" -lunixodbc"
30608else
30609
30610 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30611echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30612if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30613 echo $ECHO_N "(cached) $ECHO_C" >&6
30614else
30615 ac_check_lib_save_LIBS=$LIBS
30616LIBS="-lodbc $LIBS"
30617cat >conftest.$ac_ext <<_ACEOF
30618/* confdefs.h. */
30619_ACEOF
30620cat confdefs.h >>conftest.$ac_ext
30621cat >>conftest.$ac_ext <<_ACEOF
30622/* end confdefs.h. */
30623
30624/* Override any gcc2 internal prototype to avoid an error. */
30625#ifdef __cplusplus
30626extern "C"
30627#endif
30628/* We use char because int might match the return type of a gcc2
30629 builtin and then its argument prototype would still apply. */
30630char SQLAllocEnv ();
30631int
30632main ()
30633{
30634SQLAllocEnv ();
30635 ;
30636 return 0;
30637}
30638_ACEOF
30639rm -f conftest.$ac_objext conftest$ac_exeext
30640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30641 (eval $ac_link) 2>conftest.er1
a848cd7e 30642 ac_status=$?
ac1cb8d3
VS
30643 grep -v '^ *+' conftest.er1 >conftest.err
30644 rm -f conftest.er1
30645 cat conftest.err >&5
a848cd7e
SC
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); } &&
0093c2fc 30648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30650 (eval $ac_try) 2>&5
30651 ac_status=$?
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); }; } &&
30654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656 (eval $ac_try) 2>&5
30657 ac_status=$?
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; }; then
30660 ac_cv_lib_odbc_SQLAllocEnv=yes
30661else
30662 echo "$as_me: failed program was:" >&5
30663sed 's/^/| /' conftest.$ac_ext >&5
30664
30665ac_cv_lib_odbc_SQLAllocEnv=no
30666fi
ac1cb8d3
VS
30667rm -f conftest.err conftest.$ac_objext \
30668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30669LIBS=$ac_check_lib_save_LIBS
30670fi
30671echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30672echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30673if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30674 ODBC_LINK=" -lodbc"
30675fi
30676
30677
30678fi
30679
30680
30681fi
30682
30683 fi
30684 if test "x$ODBC_LINK" = "x" ; then
30685 if test "$wxUSE_ODBC" = "sys" ; then
30686 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30687echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30688 { (exit 1); exit 1; }; }
30689 else
30690 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30691echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30692 wxUSE_ODBC=builtin
30693 fi
30694 else
30695 wxUSE_ODBC=sys
30696 fi
30697 fi
a848cd7e 30698
2da0c077
RD
30699 if test "$wxUSE_ODBC" = "builtin" ; then
30700 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30701#define wxUSE_BUILTIN_IODBC 1
30702_ACEOF
30703
a848cd7e
SC
30704 fi
30705fi
30706
2da0c077
RD
30707if test "$wxUSE_ODBC" != "no" ; then
30708 cat >>confdefs.h <<\_ACEOF
30709#define wxUSE_ODBC 1
30710_ACEOF
30711
30712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30713
30714 WXODBCFLAG="-D_IODBC_"
30715fi
a848cd7e 30716
01cb68df 30717
a848cd7e 30718if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30719 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30720 echo "$as_me:$LINENO: checking for Xinerama" >&5
30721echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30722
0ad5d837
VZ
30723 ac_find_libraries=
30724 for ac_dir in $SEARCH_LIB;
30725 do
30726 for ac_extension in a so sl dylib dll.a; do
30727 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30728 ac_find_libraries=$ac_dir
30729 break 2
30730 fi
30731 done
30732 done
30733
a848cd7e
SC
30734 if test "$ac_find_libraries" != "" ; then
30735
0ad5d837 30736 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30737 ac_path_to_link=""
30738 else
0ad5d837
VZ
30739 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30740 result=$?
30741 if test $result = 0; then
30742 ac_path_to_link=""
30743 else
30744 ac_path_to_link=" -L$ac_find_libraries"
30745 fi
a848cd7e
SC
30746 fi
30747
30748 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30749 LDFLAGS="$LDFLAGS $ac_path_to_link"
30750 fi
30751 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30752 echo "$as_me:$LINENO: result: yes" >&5
30753echo "${ECHO_T}yes" >&6
30754
30755 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30756echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30757
0ad5d837
VZ
30758 ac_find_libraries=
30759 for ac_dir in $SEARCH_LIB;
a848cd7e 30760 do
3eca31dc 30761 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30762 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30763 ac_find_libraries=$ac_dir
30764 break 2
30765 fi
30766 done
30767 done
30768
30769 if test "$ac_find_libraries" != "" ; then
30770 echo "$as_me:$LINENO: result: yes" >&5
30771echo "${ECHO_T}yes" >&6
30772
30773for ac_header in X11/extensions/xf86vmode.h
30774do
30775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30776echo "$as_me:$LINENO: checking for $ac_header" >&5
30777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30778if eval "test \"\${$as_ac_Header+set}\" = set"; then
30779 echo $ECHO_N "(cached) $ECHO_C" >&6
30780else
30781 cat >conftest.$ac_ext <<_ACEOF
30782/* confdefs.h. */
30783_ACEOF
30784cat confdefs.h >>conftest.$ac_ext
30785cat >>conftest.$ac_ext <<_ACEOF
30786/* end confdefs.h. */
30787
30788 #if HAVE_X11_XLIB_H
30789 #include <X11/Xlib.h>
30790 #endif
30791
30792
30793#include <$ac_header>
30794_ACEOF
30795rm -f conftest.$ac_objext
30796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30797 (eval $ac_compile) 2>conftest.er1
a848cd7e 30798 ac_status=$?
ac1cb8d3
VS
30799 grep -v '^ *+' conftest.er1 >conftest.err
30800 rm -f conftest.er1
30801 cat conftest.err >&5
a848cd7e
SC
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); } &&
0093c2fc 30804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30806 (eval $ac_try) 2>&5
30807 ac_status=$?
30808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809 (exit $ac_status); }; } &&
30810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30812 (eval $ac_try) 2>&5
30813 ac_status=$?
30814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); }; }; then
30816 eval "$as_ac_Header=yes"
30817else
30818 echo "$as_me: failed program was:" >&5
30819sed 's/^/| /' conftest.$ac_ext >&5
30820
30821eval "$as_ac_Header=no"
30822fi
ac1cb8d3 30823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30824fi
30825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30827if test `eval echo '${'$as_ac_Header'}'` = yes; then
30828 cat >>confdefs.h <<_ACEOF
30829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30830_ACEOF
30831
30832 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30833
30834fi
30835
30836done
30837
30838 else
30839 echo "$as_me:$LINENO: result: no" >&5
30840echo "${ECHO_T}no" >&6
30841 fi
30842
30843 else
30844 echo "$as_me:$LINENO: result: no" >&5
30845echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30846 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30847echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30848 wxUSE_DISPLAY="no"
30849 fi
01cb68df
RG
30850 elif test "$wxUSE_MSW" = 1; then
30851
30852
30853for ac_header in multimon.h ddraw.h
30854do
30855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30856echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30858if eval "test \"\${$as_ac_Header+set}\" = set"; then
30859 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30860else
5294a27e 30861 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30862/* confdefs.h. */
30863_ACEOF
30864cat confdefs.h >>conftest.$ac_ext
30865cat >>conftest.$ac_ext <<_ACEOF
30866/* end confdefs.h. */
5294a27e
VZ
30867#include <windows.h>
30868
01cb68df
RG
30869#include <$ac_header>
30870_ACEOF
30871rm -f conftest.$ac_objext
30872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30873 (eval $ac_compile) 2>conftest.er1
01cb68df 30874 ac_status=$?
ac1cb8d3
VS
30875 grep -v '^ *+' conftest.er1 >conftest.err
30876 rm -f conftest.er1
30877 cat conftest.err >&5
01cb68df
RG
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); } &&
0093c2fc 30880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882 (eval $ac_try) 2>&5
30883 ac_status=$?
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; } &&
30886 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888 (eval $ac_try) 2>&5
30889 ac_status=$?
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); }; }; then
5294a27e 30892 eval "$as_ac_Header=yes"
01cb68df
RG
30893else
30894 echo "$as_me: failed program was:" >&5
30895sed 's/^/| /' conftest.$ac_ext >&5
30896
5294a27e 30897eval "$as_ac_Header=no"
01cb68df 30898fi
ac1cb8d3 30899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30900fi
30901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30903if test `eval echo '${'$as_ac_Header'}'` = yes; then
30904 cat >>confdefs.h <<_ACEOF
30905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30906_ACEOF
30907
30908else
30909
5294a27e
VZ
30910 wxUSE_DISPLAY="no"
30911 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30912echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30913
30914fi
30915
30916done
30917
a848cd7e
SC
30918 fi
30919fi
30920
30921
30922USE_OPENGL=0
30923if test "$wxUSE_OPENGL" = "yes"; then
30924 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30925 OPENGL_LIBS="-framework OpenGL -framework AGL"
30926 elif test "$wxUSE_MSW" = 1; then
30927 OPENGL_LIBS="-lopengl32 -lglu32"
30928 else
30929
30930
30931ac_find_includes=
30932for ac_dir in $SEARCH_INCLUDE /usr/include;
30933 do
30934 if test -f "$ac_dir/GL/gl.h"; then
30935 ac_find_includes=$ac_dir
30936 break
30937 fi
30938 done
30939
30940 if test "$ac_find_includes" != "" ; then
30941 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30942echo "${ECHO_T}found in $ac_find_includes" >&6
30943
30944 if test "x$ac_find_includes" = "x/usr/include"; then
30945 ac_path_to_include=""
30946 else
30947 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30948 result=$?
30949 if test $result = 0; then
30950 ac_path_to_include=""
30951 else
30952 ac_path_to_include=" -I$ac_find_includes"
30953 fi
30954 fi
30955
30956 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30957 fi
30958
30959 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30960 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30961echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30962if test "${ac_cv_header_GL_gl_h+set}" = set; then
30963 echo $ECHO_N "(cached) $ECHO_C" >&6
30964fi
30965echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30966echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30967else
30968 # Is the header compilable?
30969echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30970echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30971cat >conftest.$ac_ext <<_ACEOF
30972/* confdefs.h. */
30973_ACEOF
30974cat confdefs.h >>conftest.$ac_ext
30975cat >>conftest.$ac_ext <<_ACEOF
30976/* end confdefs.h. */
30977$ac_includes_default
30978#include <GL/gl.h>
30979_ACEOF
30980rm -f conftest.$ac_objext
30981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30982 (eval $ac_compile) 2>conftest.er1
a848cd7e 30983 ac_status=$?
ac1cb8d3
VS
30984 grep -v '^ *+' conftest.er1 >conftest.err
30985 rm -f conftest.er1
30986 cat conftest.err >&5
a848cd7e
SC
30987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988 (exit $ac_status); } &&
0093c2fc 30989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991 (eval $ac_try) 2>&5
30992 ac_status=$?
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); }; } &&
30995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30997 (eval $ac_try) 2>&5
30998 ac_status=$?
30999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000 (exit $ac_status); }; }; then
31001 ac_header_compiler=yes
31002else
31003 echo "$as_me: failed program was:" >&5
31004sed 's/^/| /' conftest.$ac_ext >&5
31005
31006ac_header_compiler=no
31007fi
ac1cb8d3 31008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31010echo "${ECHO_T}$ac_header_compiler" >&6
31011
31012# Is the header present?
31013echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31014echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31015cat >conftest.$ac_ext <<_ACEOF
31016/* confdefs.h. */
31017_ACEOF
31018cat confdefs.h >>conftest.$ac_ext
31019cat >>conftest.$ac_ext <<_ACEOF
31020/* end confdefs.h. */
31021#include <GL/gl.h>
31022_ACEOF
31023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31025 ac_status=$?
31026 grep -v '^ *+' conftest.er1 >conftest.err
31027 rm -f conftest.er1
31028 cat conftest.err >&5
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); } >/dev/null; then
31031 if test -s conftest.err; then
31032 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31034 else
31035 ac_cpp_err=
31036 fi
31037else
31038 ac_cpp_err=yes
31039fi
31040if test -z "$ac_cpp_err"; then
31041 ac_header_preproc=yes
31042else
31043 echo "$as_me: failed program was:" >&5
31044sed 's/^/| /' conftest.$ac_ext >&5
31045
31046 ac_header_preproc=no
31047fi
31048rm -f conftest.err conftest.$ac_ext
31049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31050echo "${ECHO_T}$ac_header_preproc" >&6
31051
31052# So? What about this header?
ac1cb8d3
VS
31053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31054 yes:no: )
a848cd7e
SC
31055 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31056echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31057 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31058echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31059 ac_header_preproc=yes
a848cd7e 31060 ;;
ac1cb8d3 31061 no:yes:* )
a848cd7e
SC
31062 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31063echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31064 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31065echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31066 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31067echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31068 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31069echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31070 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31071echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31072 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31073echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31074 (
31075 cat <<\_ASBOX
ac1cb8d3
VS
31076## ----------------------------------------- ##
31077## Report this to wx-dev@lists.wxwidgets.org ##
31078## ----------------------------------------- ##
a848cd7e
SC
31079_ASBOX
31080 ) |
31081 sed "s/^/$as_me: WARNING: /" >&2
31082 ;;
31083esac
31084echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31085echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31086if test "${ac_cv_header_GL_gl_h+set}" = set; then
31087 echo $ECHO_N "(cached) $ECHO_C" >&6
31088else
31089 ac_cv_header_GL_gl_h=$ac_header_preproc
31090fi
31091echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31092echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31093
31094fi
31095if test $ac_cv_header_GL_gl_h = yes; then
31096
31097 found_gl=0
31098
31099 echo "$as_me:$LINENO: checking for -lGL" >&5
31100echo $ECHO_N "checking for -lGL... $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/libGL.$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
69120ee4
VZ
31114 echo "$as_me:$LINENO: result: yes" >&5
31115echo "${ECHO_T}yes" >&6
31116
a848cd7e 31117
0ad5d837 31118 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31119 ac_path_to_link=""
31120 else
0ad5d837
VZ
31121 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31122 result=$?
31123 if test $result = 0; then
31124 ac_path_to_link=""
31125 else
31126 ac_path_to_link=" -L$ac_find_libraries"
31127 fi
a848cd7e
SC
31128 fi
31129
31130 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31131 LDFLAGS_GL="$ac_path_to_link"
31132 fi
31133
69120ee4
VZ
31134 echo "$as_me:$LINENO: checking for -lGLU" >&5
31135echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31136
0ad5d837
VZ
31137 ac_find_libraries=
31138 for ac_dir in $SEARCH_LIB;
31139 do
31140 for ac_extension in a so sl dylib dll.a; do
31141 if test -f "$ac_dir/libGLU.$ac_extension"; then
31142 ac_find_libraries=$ac_dir
31143 break 2
31144 fi
31145 done
31146 done
31147
a848cd7e
SC
31148 if test "$ac_find_libraries" != "" ; then
31149
0ad5d837 31150 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31151 ac_path_to_link=""
31152 else
0ad5d837
VZ
31153 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31154 result=$?
31155 if test $result = 0; then
31156 ac_path_to_link=""
31157 else
31158 ac_path_to_link=" -L$ac_find_libraries"
31159 fi
a848cd7e
SC
31160 fi
31161
31162 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31163 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31164 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31165 fi
31166
31167 found_gl=1
31168 OPENGL_LIBS="-lGL -lGLU"
31169 echo "$as_me:$LINENO: result: yes" >&5
31170echo "${ECHO_T}yes" >&6
69120ee4
VZ
31171 else
31172 echo "$as_me:$LINENO: result: no" >&5
31173echo "${ECHO_T}no" >&6
a848cd7e 31174 fi
69120ee4
VZ
31175 else
31176 echo "$as_me:$LINENO: result: no" >&5
31177echo "${ECHO_T}no" >&6
a848cd7e
SC
31178 fi
31179
31180 if test "$found_gl" != 1; then
a848cd7e
SC
31181 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31182echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31183
0ad5d837
VZ
31184 ac_find_libraries=
31185 for ac_dir in $SEARCH_LIB;
a848cd7e 31186 do
3eca31dc 31187 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31188 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31189 ac_find_libraries=$ac_dir
31190 break 2
31191 fi
31192 done
31193 done
31194
31195 if test "$ac_find_libraries" != "" ; then
31196
0ad5d837 31197 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31198 ac_path_to_link=""
31199 else
0ad5d837
VZ
31200 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31201 result=$?
31202 if test $result = 0; then
31203 ac_path_to_link=""
31204 else
31205 ac_path_to_link=" -L$ac_find_libraries"
31206 fi
a848cd7e
SC
31207 fi
31208
31209 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31210 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31211 echo "$as_me:$LINENO: result: yes" >&5
31212echo "${ECHO_T}yes" >&6
31213 else
31214 echo "$as_me:$LINENO: result: no" >&5
31215echo "${ECHO_T}no" >&6
31216 fi
31217 fi
31218
31219fi
31220
31221
31222
31223 if test "x$OPENGL_LIBS" = "x"; then
31224 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31225echo "$as_me: error: OpenGL libraries not available" >&2;}
31226 { (exit 1); exit 1; }; }
31227 fi
31228 fi
31229
31230 if test "$wxUSE_OPENGL" = "yes"; then
31231 USE_OPENGL=1
31232 cat >>confdefs.h <<\_ACEOF
31233#define wxUSE_OPENGL 1
31234_ACEOF
31235
31236 cat >>confdefs.h <<\_ACEOF
31237#define wxUSE_GLCANVAS 1
31238_ACEOF
31239
31240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31241 fi
31242fi
31243
a848cd7e
SC
31244
31245if test -n "$TOOLKIT" ; then
31246 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31247fi
31248
a848cd7e
SC
31249
31250
31251if test "$wxUSE_SHARED" = "yes"; then
31252 case "${host}" in
31253 *-pc-msdosdjgpp )
31254 wxUSE_SHARED=no
31255 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31256echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31257 ;;
31258 esac
31259fi
31260
a848cd7e 31261if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31262
31263
31264 found_versioning=no
31265
31266
31267 if test $found_versioning = no ; then
31268 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31269echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31270if test "${wx_cv_version_script+set}" = set; then
31271 echo $ECHO_N "(cached) $ECHO_C" >&6
31272else
31273
31274 echo "VER_1 { *; };" >conftest.sym
31275 echo "int main() { return 0; }" >conftest.cpp
31276
31277 if { ac_try='
31278 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31279 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31281 (eval $ac_try) 2>&5
31282 ac_status=$?
31283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284 (exit $ac_status); }; } ; then
31285 if test -s conftest.stderr ; then
31286 wx_cv_version_script=no
31287 else
31288 wx_cv_version_script=yes
31289 fi
31290 else
31291 wx_cv_version_script=no
31292 fi
e5d4b470
MW
31293
31294 if test $wx_cv_version_script = yes
31295 then
31296 echo "struct B { virtual ~B() { } }; \
31297 struct D : public B { }; \
31298 void F() { D d; }" > conftest.cpp
31299
31300 if { ac_try='
31301 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31302 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31304 (eval $ac_try) 2>&5
31305 ac_status=$?
31306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307 (exit $ac_status); }; } &&
31308 { ac_try='
31309 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31310 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31312 (eval $ac_try) 2>&5
31313 ac_status=$?
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); }; }
31316 then
31317 if { ac_try='
31318 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31319 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31321 (eval $ac_try) 2>&5
31322 ac_status=$?
31323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324 (exit $ac_status); }; }
31325 then
31326 wx_cv_version_script=yes
31327 else
31328 wx_cv_version_script=no
31329 fi
31330 fi
31331 fi
31332
a848cd7e 31333 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31334 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31335
31336fi
31337echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31338echo "${ECHO_T}$wx_cv_version_script" >&6
31339 if test $wx_cv_version_script = yes ; then
31340 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31341 fi
31342 fi
31343
31344
31345 case "${host}" in
31346 *-*-linux* | *-*-gnu* )
31347 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31348 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31349 ;;
a848cd7e
SC
31350
31351 *-*-solaris2* )
31352 if test "$GCC" = yes ; then
31353 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
31354
31355 saveLdflags="$LDFLAGS"
31356 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31357 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31358echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31359 cat >conftest.$ac_ext <<_ACEOF
31360/* confdefs.h. */
31361_ACEOF
31362cat confdefs.h >>conftest.$ac_ext
31363cat >>conftest.$ac_ext <<_ACEOF
31364/* end confdefs.h. */
31365
31366int
31367main ()
31368{
31369
31370 ;
31371 return 0;
31372}
31373_ACEOF
31374rm -f conftest.$ac_objext conftest$ac_exeext
31375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31376 (eval $ac_link) 2>conftest.er1
a848cd7e 31377 ac_status=$?
ac1cb8d3
VS
31378 grep -v '^ *+' conftest.er1 >conftest.err
31379 rm -f conftest.er1
31380 cat conftest.err >&5
a848cd7e
SC
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); } &&
0093c2fc 31383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31385 (eval $ac_try) 2>&5
31386 ac_status=$?
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); }; } &&
31389 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31391 (eval $ac_try) 2>&5
31392 ac_status=$?
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); }; }; then
31395
31396 echo "$as_me:$LINENO: result: yes" >&5
31397echo "${ECHO_T}yes" >&6
31398 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31399 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31400
31401else
31402 echo "$as_me: failed program was:" >&5
31403sed 's/^/| /' conftest.$ac_ext >&5
31404
31405
31406 echo "$as_me:$LINENO: result: no" >&5
31407echo "${ECHO_T}no" >&6
31408 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31409echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31410 LDFLAGS="$saveLdflags -Wl,-R,/"
31411 cat >conftest.$ac_ext <<_ACEOF
31412/* confdefs.h. */
31413_ACEOF
31414cat confdefs.h >>conftest.$ac_ext
31415cat >>conftest.$ac_ext <<_ACEOF
31416/* end confdefs.h. */
31417
31418int
31419main ()
31420{
31421
31422 ;
31423 return 0;
31424}
31425_ACEOF
31426rm -f conftest.$ac_objext conftest$ac_exeext
31427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31428 (eval $ac_link) 2>conftest.er1
a848cd7e 31429 ac_status=$?
ac1cb8d3
VS
31430 grep -v '^ *+' conftest.er1 >conftest.err
31431 rm -f conftest.er1
31432 cat conftest.err >&5
a848cd7e
SC
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); } &&
0093c2fc 31435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31437 (eval $ac_try) 2>&5
31438 ac_status=$?
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); }; } &&
31441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31443 (eval $ac_try) 2>&5
31444 ac_status=$?
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); }; }; then
31447
ffa0583f 31448 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31449echo "${ECHO_T}yes" >&6
ffa0583f
RL
31450 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31451 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31452
a848cd7e
SC
31453else
31454 echo "$as_me: failed program was:" >&5
31455sed 's/^/| /' conftest.$ac_ext >&5
31456
31457
31458 echo "$as_me:$LINENO: result: no" >&5
31459echo "${ECHO_T}no" >&6
31460
31461fi
ac1cb8d3
VS
31462rm -f conftest.err conftest.$ac_objext \
31463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31464
31465fi
ac1cb8d3
VS
31466rm -f conftest.err conftest.$ac_objext \
31467 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31468 LDFLAGS="$saveLdflags"
31469 else
a848cd7e 31470 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31471 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31472 fi
31473 ;;
31474
cfda0ea8 31475 *-*-darwin* )
0caebc27
MW
31476 install_name_tool=`which install_name_tool`
31477 if test "$install_name_tool" -a -x "$install_name_tool"; then
31478 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31479 cat <<EOF >change-install-names
a848cd7e
SC
31480#!/bin/sh
31481libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31482inst_cmd="install_name_tool "
31483for i in \${libnames} ; do
31484 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31485done
31486\${inst_cmd} \${3}
31487EOF
0caebc27
MW
31488 chmod +x change-install-names
31489 fi
a848cd7e
SC
31490 ;;
31491
31492 *-*-cygwin* | *-*-mingw32* )
31493 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
31494 ;;
31495
81f90336
MW
31496 *-*-hpux* )
31497 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31498 WXCONFIG_RPATH="-Wl,+b,\$libdir"
31499 ;;
31500
a848cd7e 31501 esac
ceec2216 31502
ffa0583f
RL
31503 if test $wxUSE_RPATH = "no"; then
31504 SAMPLES_RPATH_FLAG=''
31505 SAMPLES_RPATH_POSTLINK=''
31506 WXCONFIG_RPATH=''
31507 fi
31508
31509 SHARED=1
31510
31511else
31512
ceec2216
RL
31513 config_linkage_component="-static"
31514 SHARED=0
ffa0583f 31515
ceec2216 31516fi
a848cd7e 31517
a848cd7e 31518
ceec2216
RL
31519UNICODE=0
31520lib_unicode_suffix=
31521WX_CHARTYPE="ansi"
31522if test "$wxUSE_UNICODE" = "yes"; then
31523 lib_unicode_suffix=u
31524 WX_CHARTYPE="unicode"
31525 UNICODE=1
a848cd7e
SC
31526fi
31527
ceec2216
RL
31528lib_debug_suffix=
31529WX_DEBUGTYPE="release"
31530DEBUG_FLAG=0
31531if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31532 lib_debug_suffix=d
31533 WX_DEBUGTYPE="debug"
31534 DEBUG_FLAG=1
31535fi
a848cd7e 31536
ceec2216
RL
31537WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31538WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31539
ceec2216
RL
31540DEBUG_INFO=0
31541if test "$wxUSE_DEBUG_INFO" = "yes"; then
31542 DEBUG_INFO=1
31543fi
a848cd7e 31544
ceec2216 31545WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31546
ceec2216 31547TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31548
ceec2216 31549TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31550
ceec2216
RL
31551if test "$cross_compiling" = "yes"; then
31552 HOST_SUFFIX="-$host_alias"
31553 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31554 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31555fi
31556
dd21ced8 31557WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31558if test "${TOOLKIT_DIR}" = "os2"; then
31559 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31560else
31561 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31562fi
ceec2216
RL
31563
31564
31565
1d1af5ea
DE
31566if test "$wxUSE_COCOA" = 1; then
31567
31568
31569 ac_ext=c
31570ac_cpp='$CPP $CPPFLAGS'
31571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31573ac_compiler_gnu=$ac_cv_c_compiler_gnu
31574
31575ac_ext=m
31576
31577 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31578echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31579 cat >conftest.$ac_ext <<_ACEOF
31580/* confdefs.h. */
31581_ACEOF
31582cat confdefs.h >>conftest.$ac_ext
31583cat >>conftest.$ac_ext <<_ACEOF
31584/* end confdefs.h. */
31585#include <AppKit/NSEvent.h>
31586#include <CoreFoundation/CoreFoundation.h>
31587
31588int
31589main ()
31590{
31591
31592 ;
31593 return 0;
31594}
31595_ACEOF
31596rm -f conftest.$ac_objext
31597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31598 (eval $ac_compile) 2>conftest.er1
31599 ac_status=$?
31600 grep -v '^ *+' conftest.er1 >conftest.err
31601 rm -f conftest.er1
31602 cat conftest.err >&5
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); } &&
0093c2fc 31605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31607 (eval $ac_try) 2>&5
31608 ac_status=$?
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); }; } &&
31611 { ac_try='test -s conftest.$ac_objext'
31612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31613 (eval $ac_try) 2>&5
31614 ac_status=$?
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); }; }; then
31617 echo "$as_me:$LINENO: result: no" >&5
31618echo "${ECHO_T}no" >&6
31619else
31620 echo "$as_me: failed program was:" >&5
31621sed 's/^/| /' conftest.$ac_ext >&5
31622
31623echo "$as_me:$LINENO: result: yes" >&5
31624echo "${ECHO_T}yes" >&6
31625 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31626echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31627 cat >conftest.$ac_ext <<_ACEOF
31628/* confdefs.h. */
31629_ACEOF
31630cat confdefs.h >>conftest.$ac_ext
31631cat >>conftest.$ac_ext <<_ACEOF
31632/* end confdefs.h. */
31633#define __Point__ 1
31634#include <AppKit/NSEvent.h>
31635#include <CoreFoundation/CoreFoundation.h>
31636
31637int
31638main ()
31639{
31640
31641 ;
31642 return 0;
31643}
31644_ACEOF
31645rm -f conftest.$ac_objext
31646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31647 (eval $ac_compile) 2>conftest.er1
31648 ac_status=$?
31649 grep -v '^ *+' conftest.er1 >conftest.err
31650 rm -f conftest.er1
31651 cat conftest.err >&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); } &&
0093c2fc 31654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31656 (eval $ac_try) 2>&5
31657 ac_status=$?
31658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659 (exit $ac_status); }; } &&
31660 { ac_try='test -s conftest.$ac_objext'
31661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31662 (eval $ac_try) 2>&5
31663 ac_status=$?
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); }; }; then
31666 echo "$as_me:$LINENO: result: yes" >&5
31667echo "${ECHO_T}yes" >&6
31668 cat >>confdefs.h <<\_ACEOF
31669#define __Point__ 1
31670_ACEOF
31671
31672
31673else
31674 echo "$as_me: failed program was:" >&5
31675sed 's/^/| /' conftest.$ac_ext >&5
31676
31677{ { echo "$as_me:$LINENO: error: no
31678See \`config.log' for more details." >&5
31679echo "$as_me: error: no
31680See \`config.log' for more details." >&2;}
31681 { (exit 1); exit 1; }; }
31682
31683fi
31684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31685
31686fi
31687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31688 ac_ext=c
31689ac_cpp='$CPP $CPPFLAGS'
31690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31692ac_compiler_gnu=$ac_cv_c_compiler_gnu
31693
31694fi
31695
a848cd7e 31696if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31697 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31698 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31699
a848cd7e 31700 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31701
31702 # Extract the first word of "Rez", so it can be a program name with args.
31703set dummy Rez; ac_word=$2
31704echo "$as_me:$LINENO: checking for $ac_word" >&5
31705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31706if test "${ac_cv_prog_RESCOMP+set}" = set; then
31707 echo $ECHO_N "(cached) $ECHO_C" >&6
31708else
31709 if test -n "$RESCOMP"; then
31710 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31711else
31712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31713for as_dir in $PATH
31714do
31715 IFS=$as_save_IFS
31716 test -z "$as_dir" && as_dir=.
31717 for ac_exec_ext in '' $ac_executable_extensions; do
31718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31719 ac_cv_prog_RESCOMP="Rez"
31720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31721 break 2
31722 fi
31723done
31724done
31725
31726 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31727fi
31728fi
31729RESCOMP=$ac_cv_prog_RESCOMP
31730if test -n "$RESCOMP"; then
31731 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31732echo "${ECHO_T}$RESCOMP" >&6
31733else
31734 echo "$as_me:$LINENO: result: no" >&5
31735echo "${ECHO_T}no" >&6
31736fi
31737
31738 # Extract the first word of "DeRez", so it can be a program name with args.
31739set dummy DeRez; ac_word=$2
31740echo "$as_me:$LINENO: checking for $ac_word" >&5
31741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31742if test "${ac_cv_prog_DEREZ+set}" = set; then
31743 echo $ECHO_N "(cached) $ECHO_C" >&6
31744else
31745 if test -n "$DEREZ"; then
31746 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31747else
31748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31749for as_dir in $PATH
31750do
31751 IFS=$as_save_IFS
31752 test -z "$as_dir" && as_dir=.
31753 for ac_exec_ext in '' $ac_executable_extensions; do
31754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31755 ac_cv_prog_DEREZ="DeRez"
31756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31757 break 2
31758 fi
31759done
31760done
31761
31762 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31763fi
31764fi
31765DEREZ=$ac_cv_prog_DEREZ
31766if test -n "$DEREZ"; then
31767 echo "$as_me:$LINENO: result: $DEREZ" >&5
31768echo "${ECHO_T}$DEREZ" >&6
31769else
31770 echo "$as_me:$LINENO: result: no" >&5
31771echo "${ECHO_T}no" >&6
31772fi
31773
31774 # Extract the first word of "SetFile", so it can be a program name with args.
31775set dummy SetFile; ac_word=$2
31776echo "$as_me:$LINENO: checking for $ac_word" >&5
31777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31778if test "${ac_cv_prog_SETFILE+set}" = set; then
31779 echo $ECHO_N "(cached) $ECHO_C" >&6
31780else
31781 if test -n "$SETFILE"; then
31782 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31783else
31784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31785for as_dir in $PATH
31786do
31787 IFS=$as_save_IFS
31788 test -z "$as_dir" && as_dir=.
31789 for ac_exec_ext in '' $ac_executable_extensions; do
31790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31791 ac_cv_prog_SETFILE="SetFile"
31792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31793 break 2
31794 fi
31795done
31796done
31797
31798 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31799fi
31800fi
31801SETFILE=$ac_cv_prog_SETFILE
31802if test -n "$SETFILE"; then
31803 echo "$as_me:$LINENO: result: $SETFILE" >&5
31804echo "${ECHO_T}$SETFILE" >&6
31805else
31806 echo "$as_me:$LINENO: result: no" >&5
31807echo "${ECHO_T}no" >&6
31808fi
31809
31810
31811 MACSETFILE="\$(SETFILE)"
31812
31813 if test "$wxUSE_MAC" = 1; then
1a79f136 31814 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31815
1a79f136 31816 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
31817 else
31818 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31819 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31820 fi
31821else
ffa0583f
RL
31822 MACSETFILE="@true"
31823 MACRESWXCONFIG="@true"
a848cd7e
SC
31824
31825 if test "$wxUSE_PM" = 1; then
31826 MACRESCOMP="emxbind -ep"
31827 else
ffa0583f 31828 MACRESCOMP="@true"
a848cd7e
SC
31829 fi
31830fi
31831
31832
31833
31834echo "$as_me:$LINENO: checking for mode_t" >&5
31835echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31836if test "${ac_cv_type_mode_t+set}" = set; then
31837 echo $ECHO_N "(cached) $ECHO_C" >&6
31838else
31839 cat >conftest.$ac_ext <<_ACEOF
31840/* confdefs.h. */
31841_ACEOF
31842cat confdefs.h >>conftest.$ac_ext
31843cat >>conftest.$ac_ext <<_ACEOF
31844/* end confdefs.h. */
31845$ac_includes_default
31846int
31847main ()
31848{
31849if ((mode_t *) 0)
31850 return 0;
31851if (sizeof (mode_t))
31852 return 0;
31853 ;
31854 return 0;
31855}
31856_ACEOF
31857rm -f conftest.$ac_objext
31858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31859 (eval $ac_compile) 2>conftest.er1
a848cd7e 31860 ac_status=$?
ac1cb8d3
VS
31861 grep -v '^ *+' conftest.er1 >conftest.err
31862 rm -f conftest.er1
31863 cat conftest.err >&5
a848cd7e
SC
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); } &&
0093c2fc 31866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31868 (eval $ac_try) 2>&5
31869 ac_status=$?
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); }; } &&
31872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31874 (eval $ac_try) 2>&5
31875 ac_status=$?
31876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877 (exit $ac_status); }; }; then
31878 ac_cv_type_mode_t=yes
31879else
31880 echo "$as_me: failed program was:" >&5
31881sed 's/^/| /' conftest.$ac_ext >&5
31882
31883ac_cv_type_mode_t=no
31884fi
ac1cb8d3 31885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31886fi
31887echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31888echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31889if test $ac_cv_type_mode_t = yes; then
31890 :
31891else
31892
31893cat >>confdefs.h <<_ACEOF
31894#define mode_t int
31895_ACEOF
31896
31897fi
31898
31899echo "$as_me:$LINENO: checking for off_t" >&5
31900echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31901if test "${ac_cv_type_off_t+set}" = set; then
31902 echo $ECHO_N "(cached) $ECHO_C" >&6
31903else
31904 cat >conftest.$ac_ext <<_ACEOF
31905/* confdefs.h. */
31906_ACEOF
31907cat confdefs.h >>conftest.$ac_ext
31908cat >>conftest.$ac_ext <<_ACEOF
31909/* end confdefs.h. */
31910$ac_includes_default
31911int
31912main ()
31913{
31914if ((off_t *) 0)
31915 return 0;
31916if (sizeof (off_t))
31917 return 0;
31918 ;
31919 return 0;
31920}
31921_ACEOF
31922rm -f conftest.$ac_objext
31923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31924 (eval $ac_compile) 2>conftest.er1
a848cd7e 31925 ac_status=$?
ac1cb8d3
VS
31926 grep -v '^ *+' conftest.er1 >conftest.err
31927 rm -f conftest.er1
31928 cat conftest.err >&5
a848cd7e
SC
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); } &&
0093c2fc 31931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31933 (eval $ac_try) 2>&5
31934 ac_status=$?
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); }; } &&
31937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31939 (eval $ac_try) 2>&5
31940 ac_status=$?
31941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942 (exit $ac_status); }; }; then
31943 ac_cv_type_off_t=yes
31944else
31945 echo "$as_me: failed program was:" >&5
31946sed 's/^/| /' conftest.$ac_ext >&5
31947
31948ac_cv_type_off_t=no
31949fi
ac1cb8d3 31950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31951fi
31952echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31953echo "${ECHO_T}$ac_cv_type_off_t" >&6
31954if test $ac_cv_type_off_t = yes; then
31955 :
31956else
31957
31958cat >>confdefs.h <<_ACEOF
31959#define off_t long
31960_ACEOF
31961
31962fi
31963
31964echo "$as_me:$LINENO: checking for pid_t" >&5
31965echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31966if test "${ac_cv_type_pid_t+set}" = set; then
31967 echo $ECHO_N "(cached) $ECHO_C" >&6
31968else
31969 cat >conftest.$ac_ext <<_ACEOF
31970/* confdefs.h. */
31971_ACEOF
31972cat confdefs.h >>conftest.$ac_ext
31973cat >>conftest.$ac_ext <<_ACEOF
31974/* end confdefs.h. */
31975$ac_includes_default
31976int
31977main ()
31978{
31979if ((pid_t *) 0)
31980 return 0;
31981if (sizeof (pid_t))
31982 return 0;
31983 ;
31984 return 0;
31985}
31986_ACEOF
31987rm -f conftest.$ac_objext
31988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31989 (eval $ac_compile) 2>conftest.er1
a848cd7e 31990 ac_status=$?
ac1cb8d3
VS
31991 grep -v '^ *+' conftest.er1 >conftest.err
31992 rm -f conftest.er1
31993 cat conftest.err >&5
a848cd7e
SC
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); } &&
0093c2fc 31996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31998 (eval $ac_try) 2>&5
31999 ac_status=$?
32000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001 (exit $ac_status); }; } &&
32002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32004 (eval $ac_try) 2>&5
32005 ac_status=$?
32006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007 (exit $ac_status); }; }; then
32008 ac_cv_type_pid_t=yes
32009else
32010 echo "$as_me: failed program was:" >&5
32011sed 's/^/| /' conftest.$ac_ext >&5
32012
32013ac_cv_type_pid_t=no
32014fi
ac1cb8d3 32015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32016fi
32017echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32018echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32019if test $ac_cv_type_pid_t = yes; then
32020 :
32021else
32022
32023cat >>confdefs.h <<_ACEOF
32024#define pid_t int
32025_ACEOF
32026
32027fi
32028
32029echo "$as_me:$LINENO: checking for size_t" >&5
32030echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32031if test "${ac_cv_type_size_t+set}" = set; then
32032 echo $ECHO_N "(cached) $ECHO_C" >&6
32033else
32034 cat >conftest.$ac_ext <<_ACEOF
32035/* confdefs.h. */
32036_ACEOF
32037cat confdefs.h >>conftest.$ac_ext
32038cat >>conftest.$ac_ext <<_ACEOF
32039/* end confdefs.h. */
32040$ac_includes_default
32041int
32042main ()
32043{
32044if ((size_t *) 0)
32045 return 0;
32046if (sizeof (size_t))
32047 return 0;
32048 ;
32049 return 0;
32050}
32051_ACEOF
32052rm -f conftest.$ac_objext
32053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32054 (eval $ac_compile) 2>conftest.er1
a848cd7e 32055 ac_status=$?
ac1cb8d3
VS
32056 grep -v '^ *+' conftest.er1 >conftest.err
32057 rm -f conftest.er1
32058 cat conftest.err >&5
a848cd7e
SC
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } &&
0093c2fc 32061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32063 (eval $ac_try) 2>&5
32064 ac_status=$?
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); }; } &&
32067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32069 (eval $ac_try) 2>&5
32070 ac_status=$?
32071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072 (exit $ac_status); }; }; then
32073 ac_cv_type_size_t=yes
32074else
32075 echo "$as_me: failed program was:" >&5
32076sed 's/^/| /' conftest.$ac_ext >&5
32077
32078ac_cv_type_size_t=no
32079fi
ac1cb8d3 32080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32081fi
32082echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32083echo "${ECHO_T}$ac_cv_type_size_t" >&6
32084if test $ac_cv_type_size_t = yes; then
32085 :
32086else
32087
32088cat >>confdefs.h <<_ACEOF
32089#define size_t unsigned
32090_ACEOF
32091
32092fi
32093
32094echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32095echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32096if test "${ac_cv_type_uid_t+set}" = set; then
32097 echo $ECHO_N "(cached) $ECHO_C" >&6
32098else
32099 cat >conftest.$ac_ext <<_ACEOF
32100/* confdefs.h. */
32101_ACEOF
32102cat confdefs.h >>conftest.$ac_ext
32103cat >>conftest.$ac_ext <<_ACEOF
32104/* end confdefs.h. */
32105#include <sys/types.h>
32106
32107_ACEOF
32108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32109 $EGREP "uid_t" >/dev/null 2>&1; then
32110 ac_cv_type_uid_t=yes
32111else
32112 ac_cv_type_uid_t=no
32113fi
32114rm -f conftest*
32115
32116fi
32117echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32118echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32119if test $ac_cv_type_uid_t = no; then
32120
32121cat >>confdefs.h <<\_ACEOF
32122#define uid_t int
32123_ACEOF
32124
32125
32126cat >>confdefs.h <<\_ACEOF
32127#define gid_t int
32128_ACEOF
32129
32130fi
32131
32132
d51253e8
RL
32133echo "$as_me:$LINENO: checking for ssize_t" >&5
32134echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32135if test "${ac_cv_type_ssize_t+set}" = set; then
32136 echo $ECHO_N "(cached) $ECHO_C" >&6
32137else
32138 cat >conftest.$ac_ext <<_ACEOF
32139/* confdefs.h. */
32140_ACEOF
32141cat confdefs.h >>conftest.$ac_ext
32142cat >>conftest.$ac_ext <<_ACEOF
32143/* end confdefs.h. */
32144$ac_includes_default
32145int
32146main ()
32147{
32148if ((ssize_t *) 0)
32149 return 0;
32150if (sizeof (ssize_t))
32151 return 0;
32152 ;
32153 return 0;
32154}
32155_ACEOF
32156rm -f conftest.$ac_objext
32157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32158 (eval $ac_compile) 2>conftest.er1
32159 ac_status=$?
32160 grep -v '^ *+' conftest.er1 >conftest.err
32161 rm -f conftest.er1
32162 cat conftest.err >&5
32163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164 (exit $ac_status); } &&
0093c2fc 32165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
32166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32167 (eval $ac_try) 2>&5
32168 ac_status=$?
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; } &&
32171 { ac_try='test -s conftest.$ac_objext'
32172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32173 (eval $ac_try) 2>&5
32174 ac_status=$?
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); }; }; then
32177 ac_cv_type_ssize_t=yes
32178else
32179 echo "$as_me: failed program was:" >&5
32180sed 's/^/| /' conftest.$ac_ext >&5
32181
32182ac_cv_type_ssize_t=no
32183fi
32184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32185fi
32186echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32187echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32188if test $ac_cv_type_ssize_t = yes; then
32189
32190cat >>confdefs.h <<_ACEOF
32191#define HAVE_SSIZE_T 1
32192_ACEOF
32193
32194
32195fi
32196
32197
a848cd7e
SC
32198
32199
32200ac_ext=cc
32201ac_cpp='$CXXCPP $CPPFLAGS'
32202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32205
32206echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32207echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32208if test "${wx_cv_size_t_is_uint+set}" = set; then
32209 echo $ECHO_N "(cached) $ECHO_C" >&6
32210else
32211
32212 cat >conftest.$ac_ext <<_ACEOF
32213/* confdefs.h. */
32214_ACEOF
32215cat confdefs.h >>conftest.$ac_ext
32216cat >>conftest.$ac_ext <<_ACEOF
32217/* end confdefs.h. */
32218#include <stddef.h>
32219int
32220main ()
32221{
32222
32223 return 0; }
32224
32225 struct Foo { void foo(size_t); void foo(unsigned int); };
32226
32227 int bar() {
32228
32229 ;
32230 return 0;
32231}
32232_ACEOF
32233rm -f conftest.$ac_objext
32234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32235 (eval $ac_compile) 2>conftest.er1
a848cd7e 32236 ac_status=$?
ac1cb8d3
VS
32237 grep -v '^ *+' conftest.er1 >conftest.err
32238 rm -f conftest.er1
32239 cat conftest.err >&5
a848cd7e
SC
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); } &&
0093c2fc 32242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32244 (eval $ac_try) 2>&5
32245 ac_status=$?
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; } &&
32248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32250 (eval $ac_try) 2>&5
32251 ac_status=$?
32252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32253 (exit $ac_status); }; }; then
32254 wx_cv_size_t_is_uint=no
32255else
32256 echo "$as_me: failed program was:" >&5
32257sed 's/^/| /' conftest.$ac_ext >&5
32258
32259wx_cv_size_t_is_uint=yes
32260
32261fi
ac1cb8d3 32262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32263
32264
32265fi
32266echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32267echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32268
32269if test "$wx_cv_size_t_is_uint" = "yes"; then
32270 cat >>confdefs.h <<\_ACEOF
32271#define wxSIZE_T_IS_UINT 1
32272_ACEOF
32273
32274else
32275 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32276echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32277if test "${wx_cv_size_t_is_ulong+set}" = set; then
32278 echo $ECHO_N "(cached) $ECHO_C" >&6
32279else
32280 cat >conftest.$ac_ext <<_ACEOF
32281/* confdefs.h. */
32282_ACEOF
32283cat confdefs.h >>conftest.$ac_ext
32284cat >>conftest.$ac_ext <<_ACEOF
32285/* end confdefs.h. */
32286#include <stddef.h>
32287int
32288main ()
32289{
32290
32291 return 0; }
32292
32293 struct Foo { void foo(size_t); void foo(unsigned long); };
32294
32295 int bar() {
32296
32297 ;
32298 return 0;
32299}
32300_ACEOF
32301rm -f conftest.$ac_objext
32302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32303 (eval $ac_compile) 2>conftest.er1
a848cd7e 32304 ac_status=$?
ac1cb8d3
VS
32305 grep -v '^ *+' conftest.er1 >conftest.err
32306 rm -f conftest.er1
32307 cat conftest.err >&5
a848cd7e
SC
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); } &&
0093c2fc 32310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32312 (eval $ac_try) 2>&5
32313 ac_status=$?
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); }; } &&
32316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318 (eval $ac_try) 2>&5
32319 ac_status=$?
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); }; }; then
32322 wx_cv_size_t_is_ulong=no
32323else
32324 echo "$as_me: failed program was:" >&5
32325sed 's/^/| /' conftest.$ac_ext >&5
32326
32327wx_cv_size_t_is_ulong=yes
32328
32329fi
ac1cb8d3 32330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32331
32332fi
32333echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32334echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32335
32336 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32337 cat >>confdefs.h <<\_ACEOF
32338#define wxSIZE_T_IS_ULONG 1
32339_ACEOF
32340
32341 fi
32342fi
32343
32344ac_ext=c
32345ac_cpp='$CPP $CPPFLAGS'
32346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32348ac_compiler_gnu=$ac_cv_c_compiler_gnu
32349
32350
32351
32352echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32353echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32354if test "${wx_cv_struct_pw_gecos+set}" = set; then
32355 echo $ECHO_N "(cached) $ECHO_C" >&6
32356else
32357
32358 cat >conftest.$ac_ext <<_ACEOF
32359/* confdefs.h. */
32360_ACEOF
32361cat confdefs.h >>conftest.$ac_ext
32362cat >>conftest.$ac_ext <<_ACEOF
32363/* end confdefs.h. */
32364#include <pwd.h>
32365int
32366main ()
32367{
32368
32369 char *p;
32370 struct passwd *pw;
32371 p = pw->pw_gecos;
32372
32373 ;
32374 return 0;
32375}
32376_ACEOF
32377rm -f conftest.$ac_objext
32378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32379 (eval $ac_compile) 2>conftest.er1
a848cd7e 32380 ac_status=$?
ac1cb8d3
VS
32381 grep -v '^ *+' conftest.er1 >conftest.err
32382 rm -f conftest.er1
32383 cat conftest.err >&5
a848cd7e
SC
32384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32385 (exit $ac_status); } &&
0093c2fc 32386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32388 (eval $ac_try) 2>&5
32389 ac_status=$?
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); }; } &&
32392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32394 (eval $ac_try) 2>&5
32395 ac_status=$?
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); }; }; then
32398
32399 wx_cv_struct_pw_gecos=yes
32400
32401else
32402 echo "$as_me: failed program was:" >&5
32403sed 's/^/| /' conftest.$ac_ext >&5
32404
32405
32406 wx_cv_struct_pw_gecos=no
32407
32408
32409fi
ac1cb8d3 32410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32411
32412
32413fi
32414echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32415echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32416
32417if test "$wx_cv_struct_pw_gecos" = "yes"; then
32418 cat >>confdefs.h <<\_ACEOF
32419#define HAVE_PW_GECOS 1
32420_ACEOF
32421
32422fi
32423
32424
47a7e797 32425if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32426 cat >>confdefs.h <<\_ACEOF
32427#define wxUSE_WCHAR_T 1
32428_ACEOF
32429
32430
32431 WCSLEN_FOUND=0
32432 WCHAR_LINK=
32433
32434for ac_func in wcslen
32435do
32436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32437echo "$as_me:$LINENO: checking for $ac_func" >&5
32438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32439if eval "test \"\${$as_ac_var+set}\" = set"; then
32440 echo $ECHO_N "(cached) $ECHO_C" >&6
32441else
32442 cat >conftest.$ac_ext <<_ACEOF
32443/* confdefs.h. */
32444_ACEOF
32445cat confdefs.h >>conftest.$ac_ext
32446cat >>conftest.$ac_ext <<_ACEOF
32447/* end confdefs.h. */
ac1cb8d3
VS
32448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32450#define $ac_func innocuous_$ac_func
32451
a848cd7e
SC
32452/* System header to define __stub macros and hopefully few prototypes,
32453 which can conflict with char $ac_func (); below.
32454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32455 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32456
a848cd7e
SC
32457#ifdef __STDC__
32458# include <limits.h>
32459#else
32460# include <assert.h>
32461#endif
ac1cb8d3
VS
32462
32463#undef $ac_func
32464
a848cd7e
SC
32465/* Override any gcc2 internal prototype to avoid an error. */
32466#ifdef __cplusplus
32467extern "C"
32468{
32469#endif
32470/* We use char because int might match the return type of a gcc2
32471 builtin and then its argument prototype would still apply. */
32472char $ac_func ();
32473/* The GNU C library defines this for functions which it implements
32474 to always fail with ENOSYS. Some functions are actually named
32475 something starting with __ and the normal name is an alias. */
32476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32477choke me
32478#else
32479char (*f) () = $ac_func;
32480#endif
32481#ifdef __cplusplus
32482}
32483#endif
32484
32485int
32486main ()
32487{
32488return f != $ac_func;
32489 ;
32490 return 0;
32491}
32492_ACEOF
32493rm -f conftest.$ac_objext conftest$ac_exeext
32494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32495 (eval $ac_link) 2>conftest.er1
a848cd7e 32496 ac_status=$?
ac1cb8d3
VS
32497 grep -v '^ *+' conftest.er1 >conftest.err
32498 rm -f conftest.er1
32499 cat conftest.err >&5
a848cd7e
SC
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); } &&
0093c2fc 32502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32504 (eval $ac_try) 2>&5
32505 ac_status=$?
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); }; } &&
32508 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32510 (eval $ac_try) 2>&5
32511 ac_status=$?
32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); }; }; then
32514 eval "$as_ac_var=yes"
32515else
32516 echo "$as_me: failed program was:" >&5
32517sed 's/^/| /' conftest.$ac_ext >&5
32518
32519eval "$as_ac_var=no"
32520fi
ac1cb8d3
VS
32521rm -f conftest.err conftest.$ac_objext \
32522 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32523fi
32524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32526if test `eval echo '${'$as_ac_var'}'` = yes; then
32527 cat >>confdefs.h <<_ACEOF
32528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32529_ACEOF
32530 WCSLEN_FOUND=1
32531fi
32532done
32533
32534
32535 if test "$WCSLEN_FOUND" = 0; then
32536 if test "$TOOLKIT" = "MSW"; then
32537 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32538echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32539if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32540 echo $ECHO_N "(cached) $ECHO_C" >&6
32541else
32542 ac_check_lib_save_LIBS=$LIBS
32543LIBS="-lmsvcrt $LIBS"
32544cat >conftest.$ac_ext <<_ACEOF
32545/* confdefs.h. */
32546_ACEOF
32547cat confdefs.h >>conftest.$ac_ext
32548cat >>conftest.$ac_ext <<_ACEOF
32549/* end confdefs.h. */
32550
32551/* Override any gcc2 internal prototype to avoid an error. */
32552#ifdef __cplusplus
32553extern "C"
32554#endif
32555/* We use char because int might match the return type of a gcc2
32556 builtin and then its argument prototype would still apply. */
32557char wcslen ();
32558int
32559main ()
32560{
32561wcslen ();
32562 ;
32563 return 0;
32564}
32565_ACEOF
32566rm -f conftest.$ac_objext conftest$ac_exeext
32567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32568 (eval $ac_link) 2>conftest.er1
a848cd7e 32569 ac_status=$?
ac1cb8d3
VS
32570 grep -v '^ *+' conftest.er1 >conftest.err
32571 rm -f conftest.er1
32572 cat conftest.err >&5
a848cd7e
SC
32573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574 (exit $ac_status); } &&
0093c2fc 32575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32577 (eval $ac_try) 2>&5
32578 ac_status=$?
32579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580 (exit $ac_status); }; } &&
32581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32583 (eval $ac_try) 2>&5
32584 ac_status=$?
32585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586 (exit $ac_status); }; }; then
32587 ac_cv_lib_msvcrt_wcslen=yes
32588else
32589 echo "$as_me: failed program was:" >&5
32590sed 's/^/| /' conftest.$ac_ext >&5
32591
32592ac_cv_lib_msvcrt_wcslen=no
32593fi
ac1cb8d3
VS
32594rm -f conftest.err conftest.$ac_objext \
32595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32596LIBS=$ac_check_lib_save_LIBS
32597fi
32598echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32599echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32600if test $ac_cv_lib_msvcrt_wcslen = yes; then
32601 WCHAR_OK=1
32602fi
32603
32604 else
32605 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32606echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32607if test "${ac_cv_lib_w_wcslen+set}" = set; then
32608 echo $ECHO_N "(cached) $ECHO_C" >&6
32609else
32610 ac_check_lib_save_LIBS=$LIBS
32611LIBS="-lw $LIBS"
32612cat >conftest.$ac_ext <<_ACEOF
32613/* confdefs.h. */
32614_ACEOF
32615cat confdefs.h >>conftest.$ac_ext
32616cat >>conftest.$ac_ext <<_ACEOF
32617/* end confdefs.h. */
32618
32619/* Override any gcc2 internal prototype to avoid an error. */
32620#ifdef __cplusplus
32621extern "C"
32622#endif
32623/* We use char because int might match the return type of a gcc2
32624 builtin and then its argument prototype would still apply. */
32625char wcslen ();
32626int
32627main ()
32628{
32629wcslen ();
32630 ;
32631 return 0;
32632}
32633_ACEOF
32634rm -f conftest.$ac_objext conftest$ac_exeext
32635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32636 (eval $ac_link) 2>conftest.er1
a848cd7e 32637 ac_status=$?
ac1cb8d3
VS
32638 grep -v '^ *+' conftest.er1 >conftest.err
32639 rm -f conftest.er1
32640 cat conftest.err >&5
a848cd7e
SC
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); } &&
0093c2fc 32643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645 (eval $ac_try) 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; } &&
32649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651 (eval $ac_try) 2>&5
32652 ac_status=$?
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; }; then
32655 ac_cv_lib_w_wcslen=yes
32656else
32657 echo "$as_me: failed program was:" >&5
32658sed 's/^/| /' conftest.$ac_ext >&5
32659
32660ac_cv_lib_w_wcslen=no
32661fi
ac1cb8d3
VS
32662rm -f conftest.err conftest.$ac_objext \
32663 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32664LIBS=$ac_check_lib_save_LIBS
32665fi
32666echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32667echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32668if test $ac_cv_lib_w_wcslen = yes; then
32669
32670 WCHAR_LINK=" -lw"
32671 WCSLEN_FOUND=1
32672
32673fi
32674
32675 fi
32676 fi
32677
32678 if test "$WCSLEN_FOUND" = 1; then
32679 cat >>confdefs.h <<\_ACEOF
32680#define HAVE_WCSLEN 1
32681_ACEOF
32682
32683 fi
32684
efdf6afe 32685 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32686 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32687 fi
32688
efdf6afe
VZ
32689 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32690echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32691if test "${ac_cv_type_mbstate_t+set}" = set; then
32692 echo $ECHO_N "(cached) $ECHO_C" >&6
32693else
32694 cat >conftest.$ac_ext <<_ACEOF
32695/* confdefs.h. */
32696_ACEOF
32697cat confdefs.h >>conftest.$ac_ext
32698cat >>conftest.$ac_ext <<_ACEOF
32699/* end confdefs.h. */
32700#include <wchar.h>
32701
32702int
32703main ()
32704{
32705if ((mbstate_t *) 0)
32706 return 0;
32707if (sizeof (mbstate_t))
32708 return 0;
32709 ;
32710 return 0;
32711}
32712_ACEOF
32713rm -f conftest.$ac_objext
32714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32715 (eval $ac_compile) 2>conftest.er1
32716 ac_status=$?
32717 grep -v '^ *+' conftest.er1 >conftest.err
32718 rm -f conftest.er1
32719 cat conftest.err >&5
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); } &&
0093c2fc 32722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
32723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32724 (eval $ac_try) 2>&5
32725 ac_status=$?
32726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); }; } &&
32728 { ac_try='test -s conftest.$ac_objext'
32729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32730 (eval $ac_try) 2>&5
32731 ac_status=$?
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); }; }; then
32734 ac_cv_type_mbstate_t=yes
32735else
32736 echo "$as_me: failed program was:" >&5
32737sed 's/^/| /' conftest.$ac_ext >&5
32738
32739ac_cv_type_mbstate_t=no
32740fi
32741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32742fi
32743echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32744echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32745if test $ac_cv_type_mbstate_t = yes; then
32746
32747cat >>confdefs.h <<_ACEOF
32748#define HAVE_MBSTATE_T 1
32749_ACEOF
32750
a848cd7e
SC
32751
32752for ac_func in wcsrtombs
32753do
32754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32755echo "$as_me:$LINENO: checking for $ac_func" >&5
32756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32757if eval "test \"\${$as_ac_var+set}\" = set"; then
32758 echo $ECHO_N "(cached) $ECHO_C" >&6
32759else
32760 cat >conftest.$ac_ext <<_ACEOF
32761/* confdefs.h. */
32762_ACEOF
32763cat confdefs.h >>conftest.$ac_ext
32764cat >>conftest.$ac_ext <<_ACEOF
32765/* end confdefs.h. */
ac1cb8d3
VS
32766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32768#define $ac_func innocuous_$ac_func
32769
a848cd7e
SC
32770/* System header to define __stub macros and hopefully few prototypes,
32771 which can conflict with char $ac_func (); below.
32772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32773 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32774
a848cd7e
SC
32775#ifdef __STDC__
32776# include <limits.h>
32777#else
32778# include <assert.h>
32779#endif
ac1cb8d3
VS
32780
32781#undef $ac_func
32782
a848cd7e
SC
32783/* Override any gcc2 internal prototype to avoid an error. */
32784#ifdef __cplusplus
32785extern "C"
32786{
32787#endif
32788/* We use char because int might match the return type of a gcc2
32789 builtin and then its argument prototype would still apply. */
32790char $ac_func ();
32791/* The GNU C library defines this for functions which it implements
32792 to always fail with ENOSYS. Some functions are actually named
32793 something starting with __ and the normal name is an alias. */
32794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32795choke me
32796#else
32797char (*f) () = $ac_func;
32798#endif
32799#ifdef __cplusplus
32800}
32801#endif
32802
32803int
32804main ()
32805{
32806return f != $ac_func;
32807 ;
32808 return 0;
32809}
32810_ACEOF
32811rm -f conftest.$ac_objext conftest$ac_exeext
32812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32813 (eval $ac_link) 2>conftest.er1
a848cd7e 32814 ac_status=$?
ac1cb8d3
VS
32815 grep -v '^ *+' conftest.er1 >conftest.err
32816 rm -f conftest.er1
32817 cat conftest.err >&5
a848cd7e
SC
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); } &&
0093c2fc 32820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32822 (eval $ac_try) 2>&5
32823 ac_status=$?
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); }; } &&
32826 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32828 (eval $ac_try) 2>&5
32829 ac_status=$?
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); }; }; then
32832 eval "$as_ac_var=yes"
32833else
32834 echo "$as_me: failed program was:" >&5
32835sed 's/^/| /' conftest.$ac_ext >&5
32836
32837eval "$as_ac_var=no"
32838fi
ac1cb8d3
VS
32839rm -f conftest.err conftest.$ac_objext \
32840 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32841fi
32842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32843echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32844if test `eval echo '${'$as_ac_var'}'` = yes; then
32845 cat >>confdefs.h <<_ACEOF
32846#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32847_ACEOF
32848
32849fi
32850done
32851
efdf6afe
VZ
32852fi
32853
a848cd7e
SC
32854else
32855 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32856echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32857fi
32858
32859
32860
32861ac_ext=cc
32862ac_cpp='$CXXCPP $CPPFLAGS'
32863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32866
32867
32868
4a767dd5
VZ
32869
32870for ac_func in snprintf vsnprintf
a848cd7e
SC
32871do
32872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32873echo "$as_me:$LINENO: checking for $ac_func" >&5
32874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32875if eval "test \"\${$as_ac_var+set}\" = set"; then
32876 echo $ECHO_N "(cached) $ECHO_C" >&6
32877else
32878 cat >conftest.$ac_ext <<_ACEOF
32879/* confdefs.h. */
32880_ACEOF
32881cat confdefs.h >>conftest.$ac_ext
32882cat >>conftest.$ac_ext <<_ACEOF
32883/* end confdefs.h. */
ac1cb8d3
VS
32884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32886#define $ac_func innocuous_$ac_func
32887
a848cd7e
SC
32888/* System header to define __stub macros and hopefully few prototypes,
32889 which can conflict with char $ac_func (); below.
32890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32891 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32892
a848cd7e
SC
32893#ifdef __STDC__
32894# include <limits.h>
32895#else
32896# include <assert.h>
32897#endif
ac1cb8d3
VS
32898
32899#undef $ac_func
32900
a848cd7e
SC
32901/* Override any gcc2 internal prototype to avoid an error. */
32902#ifdef __cplusplus
32903extern "C"
32904{
32905#endif
32906/* We use char because int might match the return type of a gcc2
32907 builtin and then its argument prototype would still apply. */
32908char $ac_func ();
32909/* The GNU C library defines this for functions which it implements
32910 to always fail with ENOSYS. Some functions are actually named
32911 something starting with __ and the normal name is an alias. */
32912#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32913choke me
32914#else
32915char (*f) () = $ac_func;
32916#endif
32917#ifdef __cplusplus
32918}
32919#endif
32920
32921int
32922main ()
32923{
32924return f != $ac_func;
32925 ;
32926 return 0;
32927}
32928_ACEOF
32929rm -f conftest.$ac_objext conftest$ac_exeext
32930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32931 (eval $ac_link) 2>conftest.er1
a848cd7e 32932 ac_status=$?
ac1cb8d3
VS
32933 grep -v '^ *+' conftest.er1 >conftest.err
32934 rm -f conftest.er1
32935 cat conftest.err >&5
a848cd7e
SC
32936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32937 (exit $ac_status); } &&
0093c2fc 32938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32940 (eval $ac_try) 2>&5
32941 ac_status=$?
32942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 (exit $ac_status); }; } &&
32944 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32946 (eval $ac_try) 2>&5
32947 ac_status=$?
32948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 (exit $ac_status); }; }; then
32950 eval "$as_ac_var=yes"
32951else
32952 echo "$as_me: failed program was:" >&5
32953sed 's/^/| /' conftest.$ac_ext >&5
32954
32955eval "$as_ac_var=no"
32956fi
ac1cb8d3
VS
32957rm -f conftest.err conftest.$ac_objext \
32958 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32959fi
32960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32961echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32962if test `eval echo '${'$as_ac_var'}'` = yes; then
32963 cat >>confdefs.h <<_ACEOF
32964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32965_ACEOF
32966
32967fi
32968done
32969
32970
32971if test "$ac_cv_func_vsnprintf" = "yes"; then
32972 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32973echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32974if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32975 echo $ECHO_N "(cached) $ECHO_C" >&6
32976else
32977
efdf6afe 32978 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32979/* confdefs.h. */
32980_ACEOF
32981cat confdefs.h >>conftest.$ac_ext
32982cat >>conftest.$ac_ext <<_ACEOF
32983/* end confdefs.h. */
32984
32985 #include <stdio.h>
32986 #include <stdarg.h>
efdf6afe
VZ
32987 #ifdef __MSL__
32988 #if __MSL__ >= 0x6000
32989 namespace std {}
32990 using namespace std;
32991 #endif
32992 #endif
a848cd7e
SC
32993
32994int
32995main ()
32996{
32997
32998 char *buf;
32999 va_list ap;
62fa8b3a 33000 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33001
33002 ;
33003 return 0;
33004}
33005_ACEOF
33006rm -f conftest.$ac_objext
33007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33008 (eval $ac_compile) 2>conftest.er1
33009 ac_status=$?
33010 grep -v '^ *+' conftest.er1 >conftest.err
33011 rm -f conftest.er1
33012 cat conftest.err >&5
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); } &&
0093c2fc 33015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
33016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33017 (eval $ac_try) 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; } &&
33021 { ac_try='test -s conftest.$ac_objext'
33022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33023 (eval $ac_try) 2>&5
33024 ac_status=$?
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); }; }; then
33027 wx_cv_func_vsnprintf_decl=yes
33028else
33029 echo "$as_me: failed program was:" >&5
33030sed 's/^/| /' conftest.$ac_ext >&5
33031
a848cd7e
SC
33032wx_cv_func_vsnprintf_decl=no
33033
33034fi
ac1cb8d3 33035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33036
33037
33038fi
33039echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33040echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33041
33042 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33043 cat >>confdefs.h <<\_ACEOF
33044#define HAVE_VSNPRINTF_DECL 1
33045_ACEOF
33046
62fa8b3a
MW
33047
33048 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33049echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33050if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33051 echo $ECHO_N "(cached) $ECHO_C" >&6
33052else
33053
33054 cat >conftest.$ac_ext <<_ACEOF
33055/* confdefs.h. */
33056_ACEOF
33057cat confdefs.h >>conftest.$ac_ext
33058cat >>conftest.$ac_ext <<_ACEOF
33059/* end confdefs.h. */
33060
33061 #include <stdio.h>
33062 #include <stdarg.h>
33063 #ifdef __MSL__
33064 #if __MSL__ >= 0x6000
33065 namespace std {}
33066 using namespace std;
33067 #endif
33068 #endif
33069
33070int
33071main ()
33072{
33073
33074 char *buf;
33075 va_list ap;
33076 const char *fmt = "%s";
33077 vsnprintf(buf, 10u, fmt, ap);
33078
33079 ;
33080 return 0;
33081}
33082_ACEOF
33083rm -f conftest.$ac_objext
33084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33085 (eval $ac_compile) 2>conftest.er1
33086 ac_status=$?
33087 grep -v '^ *+' conftest.er1 >conftest.err
33088 rm -f conftest.er1
33089 cat conftest.err >&5
33090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091 (exit $ac_status); } &&
0093c2fc 33092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33094 (eval $ac_try) 2>&5
33095 ac_status=$?
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); }; } &&
33098 { ac_try='test -s conftest.$ac_objext'
33099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33100 (eval $ac_try) 2>&5
33101 ac_status=$?
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); }; }; then
33104 wx_cv_func_broken_vsnprintf_decl=no
33105else
33106 echo "$as_me: failed program was:" >&5
33107sed 's/^/| /' conftest.$ac_ext >&5
33108
33109wx_cv_func_broken_vsnprintf_decl=yes
33110
33111fi
33112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33113
33114
33115fi
33116echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33117echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33118
33119 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33120 cat >>confdefs.h <<\_ACEOF
33121#define HAVE_BROKEN_VSNPRINTF_DECL 1
33122_ACEOF
33123
33124 fi
a848cd7e
SC
33125 fi
33126fi
33127
4a767dd5
VZ
33128if test "$ac_cv_func_snprintf" = "yes"; then
33129 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33130echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33131if test "${wx_cv_func_snprintf_decl+set}" = set; then
33132 echo $ECHO_N "(cached) $ECHO_C" >&6
33133else
33134
33135 cat >conftest.$ac_ext <<_ACEOF
33136/* confdefs.h. */
33137_ACEOF
33138cat confdefs.h >>conftest.$ac_ext
33139cat >>conftest.$ac_ext <<_ACEOF
33140/* end confdefs.h. */
33141
33142 #include <stdio.h>
33143 #include <stdarg.h>
33144 #ifdef __MSL__
33145 #if __MSL__ >= 0x6000
33146 namespace std {}
33147 using namespace std;
33148 #endif
33149 #endif
33150
33151int
33152main ()
33153{
33154
33155 char *buf;
62fa8b3a 33156 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33157
33158 ;
33159 return 0;
33160}
33161_ACEOF
33162rm -f conftest.$ac_objext
33163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33164 (eval $ac_compile) 2>conftest.er1
33165 ac_status=$?
33166 grep -v '^ *+' conftest.er1 >conftest.err
33167 rm -f conftest.er1
33168 cat conftest.err >&5
33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); } &&
0093c2fc 33171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
33172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33173 (eval $ac_try) 2>&5
33174 ac_status=$?
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; } &&
33177 { ac_try='test -s conftest.$ac_objext'
33178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33179 (eval $ac_try) 2>&5
33180 ac_status=$?
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); }; }; then
33183 wx_cv_func_snprintf_decl=yes
33184else
33185 echo "$as_me: failed program was:" >&5
33186sed 's/^/| /' conftest.$ac_ext >&5
33187
33188wx_cv_func_snprintf_decl=no
33189
33190fi
33191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33192
33193
33194fi
33195echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33196echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33197
33198 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33199 cat >>confdefs.h <<\_ACEOF
33200#define HAVE_SNPRINTF_DECL 1
33201_ACEOF
33202
62fa8b3a
MW
33203
33204 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33205echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33206if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33207 echo $ECHO_N "(cached) $ECHO_C" >&6
33208else
33209
33210 cat >conftest.$ac_ext <<_ACEOF
33211/* confdefs.h. */
33212_ACEOF
33213cat confdefs.h >>conftest.$ac_ext
33214cat >>conftest.$ac_ext <<_ACEOF
33215/* end confdefs.h. */
33216
33217 #include <stdio.h>
33218 #include <stdarg.h>
33219 #ifdef __MSL__
33220 #if __MSL__ >= 0x6000
33221 namespace std {}
33222 using namespace std;
33223 #endif
33224 #endif
33225
33226int
33227main ()
33228{
33229
33230 char *buf;
33231 const char *fmt = "%s";
33232 snprintf(buf, 10u, fmt, "wx");
33233
33234 ;
33235 return 0;
33236}
33237_ACEOF
33238rm -f conftest.$ac_objext
33239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33240 (eval $ac_compile) 2>conftest.er1
33241 ac_status=$?
33242 grep -v '^ *+' conftest.er1 >conftest.err
33243 rm -f conftest.er1
33244 cat conftest.err >&5
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); } &&
0093c2fc 33247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249 (eval $ac_try) 2>&5
33250 ac_status=$?
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; } &&
33253 { ac_try='test -s conftest.$ac_objext'
33254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33255 (eval $ac_try) 2>&5
33256 ac_status=$?
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); }; }; then
33259 wx_cv_func_broken_snprintf_decl=no
33260else
33261 echo "$as_me: failed program was:" >&5
33262sed 's/^/| /' conftest.$ac_ext >&5
33263
33264wx_cv_func_broken_snprintf_decl=yes
33265
33266fi
33267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33268
33269
33270fi
33271echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33272echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33273
33274 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33275 cat >>confdefs.h <<\_ACEOF
33276#define HAVE_BROKEN_SNPRINTF_DECL 1
33277_ACEOF
33278
33279 fi
4a767dd5
VZ
33280 fi
33281fi
33282
a848cd7e
SC
33283if test "$wxUSE_UNICODE" = yes; then
33284
33285
33286
fbe47c7b
VS
33287
33288
33289
33290for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33291do
33292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33293echo "$as_me:$LINENO: checking for $ac_func" >&5
33294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33295if eval "test \"\${$as_ac_var+set}\" = set"; then
33296 echo $ECHO_N "(cached) $ECHO_C" >&6
33297else
33298 cat >conftest.$ac_ext <<_ACEOF
33299/* confdefs.h. */
33300_ACEOF
33301cat confdefs.h >>conftest.$ac_ext
33302cat >>conftest.$ac_ext <<_ACEOF
33303/* end confdefs.h. */
ac1cb8d3
VS
33304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33306#define $ac_func innocuous_$ac_func
33307
a848cd7e
SC
33308/* System header to define __stub macros and hopefully few prototypes,
33309 which can conflict with char $ac_func (); below.
33310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33311 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33312
a848cd7e
SC
33313#ifdef __STDC__
33314# include <limits.h>
33315#else
33316# include <assert.h>
33317#endif
ac1cb8d3
VS
33318
33319#undef $ac_func
33320
a848cd7e
SC
33321/* Override any gcc2 internal prototype to avoid an error. */
33322#ifdef __cplusplus
33323extern "C"
33324{
33325#endif
33326/* We use char because int might match the return type of a gcc2
33327 builtin and then its argument prototype would still apply. */
33328char $ac_func ();
33329/* The GNU C library defines this for functions which it implements
33330 to always fail with ENOSYS. Some functions are actually named
33331 something starting with __ and the normal name is an alias. */
33332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33333choke me
33334#else
33335char (*f) () = $ac_func;
33336#endif
33337#ifdef __cplusplus
33338}
33339#endif
33340
33341int
33342main ()
33343{
33344return f != $ac_func;
33345 ;
33346 return 0;
33347}
33348_ACEOF
33349rm -f conftest.$ac_objext conftest$ac_exeext
33350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33351 (eval $ac_link) 2>conftest.er1
a848cd7e 33352 ac_status=$?
ac1cb8d3
VS
33353 grep -v '^ *+' conftest.er1 >conftest.err
33354 rm -f conftest.er1
33355 cat conftest.err >&5
a848cd7e
SC
33356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357 (exit $ac_status); } &&
0093c2fc 33358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33360 (eval $ac_try) 2>&5
33361 ac_status=$?
33362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363 (exit $ac_status); }; } &&
33364 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366 (eval $ac_try) 2>&5
33367 ac_status=$?
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; }; then
33370 eval "$as_ac_var=yes"
33371else
33372 echo "$as_me: failed program was:" >&5
33373sed 's/^/| /' conftest.$ac_ext >&5
33374
33375eval "$as_ac_var=no"
33376fi
ac1cb8d3
VS
33377rm -f conftest.err conftest.$ac_objext \
33378 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33379fi
33380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33381echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33382if test `eval echo '${'$as_ac_var'}'` = yes; then
33383 cat >>confdefs.h <<_ACEOF
33384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33385_ACEOF
33386
33387fi
33388done
33389
33390
33391 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33392echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33393 cat >conftest.$ac_ext <<_ACEOF
33394/* confdefs.h. */
33395_ACEOF
33396cat confdefs.h >>conftest.$ac_ext
33397cat >>conftest.$ac_ext <<_ACEOF
33398/* end confdefs.h. */
33399#include <wchar.h>
33400int
33401main ()
33402{
33403&_vsnwprintf;
33404 ;
33405 return 0;
33406}
33407_ACEOF
33408rm -f conftest.$ac_objext
33409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33410 (eval $ac_compile) 2>conftest.er1
a848cd7e 33411 ac_status=$?
ac1cb8d3
VS
33412 grep -v '^ *+' conftest.er1 >conftest.err
33413 rm -f conftest.er1
33414 cat conftest.err >&5
a848cd7e
SC
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); } &&
0093c2fc 33417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33419 (eval $ac_try) 2>&5
33420 ac_status=$?
33421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422 (exit $ac_status); }; } &&
33423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33425 (eval $ac_try) 2>&5
33426 ac_status=$?
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); }; }; then
33429 echo "$as_me:$LINENO: result: yes" >&5
33430echo "${ECHO_T}yes" >&6
33431 cat >>confdefs.h <<\_ACEOF
33432#define HAVE__VSNWPRINTF 1
33433_ACEOF
33434
33435else
33436 echo "$as_me: failed program was:" >&5
33437sed 's/^/| /' conftest.$ac_ext >&5
33438
33439echo "$as_me:$LINENO: result: no" >&5
33440echo "${ECHO_T}no" >&6
33441fi
ac1cb8d3 33442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33443fi
33444
33445ac_ext=c
33446ac_cpp='$CPP $CPPFLAGS'
33447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33449ac_compiler_gnu=$ac_cv_c_compiler_gnu
33450
33451
6ebeb4c7
VZ
33452if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33453
33454for ac_func in fnmatch
33455do
33456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33457echo "$as_me:$LINENO: checking for $ac_func" >&5
33458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33459if eval "test \"\${$as_ac_var+set}\" = set"; then
33460 echo $ECHO_N "(cached) $ECHO_C" >&6
33461else
33462 cat >conftest.$ac_ext <<_ACEOF
33463/* confdefs.h. */
33464_ACEOF
33465cat confdefs.h >>conftest.$ac_ext
33466cat >>conftest.$ac_ext <<_ACEOF
33467/* end confdefs.h. */
33468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33470#define $ac_func innocuous_$ac_func
33471
33472/* System header to define __stub macros and hopefully few prototypes,
33473 which can conflict with char $ac_func (); below.
33474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33475 <limits.h> exists even on freestanding compilers. */
33476
33477#ifdef __STDC__
33478# include <limits.h>
33479#else
33480# include <assert.h>
33481#endif
33482
33483#undef $ac_func
33484
33485/* Override any gcc2 internal prototype to avoid an error. */
33486#ifdef __cplusplus
33487extern "C"
33488{
33489#endif
33490/* We use char because int might match the return type of a gcc2
33491 builtin and then its argument prototype would still apply. */
33492char $ac_func ();
33493/* The GNU C library defines this for functions which it implements
33494 to always fail with ENOSYS. Some functions are actually named
33495 something starting with __ and the normal name is an alias. */
33496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33497choke me
33498#else
33499char (*f) () = $ac_func;
33500#endif
33501#ifdef __cplusplus
33502}
33503#endif
33504
33505int
33506main ()
33507{
33508return f != $ac_func;
33509 ;
33510 return 0;
33511}
33512_ACEOF
33513rm -f conftest.$ac_objext conftest$ac_exeext
33514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33515 (eval $ac_link) 2>conftest.er1
33516 ac_status=$?
33517 grep -v '^ *+' conftest.er1 >conftest.err
33518 rm -f conftest.er1
33519 cat conftest.err >&5
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); } &&
0093c2fc 33522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33524 (eval $ac_try) 2>&5
33525 ac_status=$?
33526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 (exit $ac_status); }; } &&
33528 { ac_try='test -s conftest$ac_exeext'
33529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33530 (eval $ac_try) 2>&5
33531 ac_status=$?
33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533 (exit $ac_status); }; }; then
33534 eval "$as_ac_var=yes"
33535else
33536 echo "$as_me: failed program was:" >&5
33537sed 's/^/| /' conftest.$ac_ext >&5
33538
33539eval "$as_ac_var=no"
33540fi
33541rm -f conftest.err conftest.$ac_objext \
33542 conftest$ac_exeext conftest.$ac_ext
33543fi
33544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33545echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33546if test `eval echo '${'$as_ac_var'}'` = yes; then
33547 cat >>confdefs.h <<_ACEOF
33548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33549_ACEOF
33550
33551fi
33552done
33553
33554fi
33555
33556if test "$wxUSE_FILE" = "yes"; then
33557
33558for ac_func in fsync
33559do
33560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33561echo "$as_me:$LINENO: checking for $ac_func" >&5
33562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33563if eval "test \"\${$as_ac_var+set}\" = set"; then
33564 echo $ECHO_N "(cached) $ECHO_C" >&6
33565else
33566 cat >conftest.$ac_ext <<_ACEOF
33567/* confdefs.h. */
33568_ACEOF
33569cat confdefs.h >>conftest.$ac_ext
33570cat >>conftest.$ac_ext <<_ACEOF
33571/* end confdefs.h. */
33572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33574#define $ac_func innocuous_$ac_func
33575
33576/* System header to define __stub macros and hopefully few prototypes,
33577 which can conflict with char $ac_func (); below.
33578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33579 <limits.h> exists even on freestanding compilers. */
33580
33581#ifdef __STDC__
33582# include <limits.h>
33583#else
33584# include <assert.h>
33585#endif
33586
33587#undef $ac_func
33588
33589/* Override any gcc2 internal prototype to avoid an error. */
33590#ifdef __cplusplus
33591extern "C"
33592{
33593#endif
33594/* We use char because int might match the return type of a gcc2
33595 builtin and then its argument prototype would still apply. */
33596char $ac_func ();
33597/* The GNU C library defines this for functions which it implements
33598 to always fail with ENOSYS. Some functions are actually named
33599 something starting with __ and the normal name is an alias. */
33600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33601choke me
33602#else
33603char (*f) () = $ac_func;
33604#endif
33605#ifdef __cplusplus
33606}
33607#endif
33608
33609int
33610main ()
33611{
33612return f != $ac_func;
33613 ;
33614 return 0;
33615}
33616_ACEOF
33617rm -f conftest.$ac_objext conftest$ac_exeext
33618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33619 (eval $ac_link) 2>conftest.er1
33620 ac_status=$?
33621 grep -v '^ *+' conftest.er1 >conftest.err
33622 rm -f conftest.er1
33623 cat conftest.err >&5
33624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625 (exit $ac_status); } &&
0093c2fc 33626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33628 (eval $ac_try) 2>&5
33629 ac_status=$?
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); }; } &&
33632 { ac_try='test -s conftest$ac_exeext'
33633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33634 (eval $ac_try) 2>&5
33635 ac_status=$?
33636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33637 (exit $ac_status); }; }; then
33638 eval "$as_ac_var=yes"
33639else
33640 echo "$as_me: failed program was:" >&5
33641sed 's/^/| /' conftest.$ac_ext >&5
33642
33643eval "$as_ac_var=no"
33644fi
33645rm -f conftest.err conftest.$ac_objext \
33646 conftest$ac_exeext conftest.$ac_ext
33647fi
33648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33650if test `eval echo '${'$as_ac_var'}'` = yes; then
33651 cat >>confdefs.h <<_ACEOF
33652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33653_ACEOF
33654
33655fi
33656done
33657
33658fi
a848cd7e
SC
33659
33660
33661if test "$TOOLKIT" != "MSW"; then
33662
33663
33664
33665
33666ac_ext=cc
33667ac_cpp='$CXXCPP $CPPFLAGS'
33668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33671
33672
33673
33674
33675# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33676if test "${with_libiconv_prefix+set}" = set; then
33677 withval="$with_libiconv_prefix"
33678
33679 for dir in `echo "$withval" | tr : ' '`; do
33680 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33681 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33682 done
33683
33684fi;
33685
33686 echo "$as_me:$LINENO: checking for iconv" >&5
33687echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33688if test "${am_cv_func_iconv+set}" = set; then
33689 echo $ECHO_N "(cached) $ECHO_C" >&6
33690else
33691
33692 am_cv_func_iconv="no, consider installing GNU libiconv"
33693 am_cv_lib_iconv=no
33694 cat >conftest.$ac_ext <<_ACEOF
33695/* confdefs.h. */
33696_ACEOF
33697cat confdefs.h >>conftest.$ac_ext
33698cat >>conftest.$ac_ext <<_ACEOF
33699/* end confdefs.h. */
33700#include <stdlib.h>
33701#include <iconv.h>
33702int
33703main ()
33704{
33705iconv_t cd = iconv_open("","");
33706 iconv(cd,NULL,NULL,NULL,NULL);
33707 iconv_close(cd);
33708 ;
33709 return 0;
33710}
33711_ACEOF
33712rm -f conftest.$ac_objext conftest$ac_exeext
33713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33714 (eval $ac_link) 2>conftest.er1
a848cd7e 33715 ac_status=$?
ac1cb8d3
VS
33716 grep -v '^ *+' conftest.er1 >conftest.err
33717 rm -f conftest.er1
33718 cat conftest.err >&5
a848cd7e
SC
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); } &&
0093c2fc 33721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723 (eval $ac_try) 2>&5
33724 ac_status=$?
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); }; } &&
33727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33729 (eval $ac_try) 2>&5
33730 ac_status=$?
33731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33732 (exit $ac_status); }; }; then
33733 am_cv_func_iconv=yes
33734else
33735 echo "$as_me: failed program was:" >&5
33736sed 's/^/| /' conftest.$ac_ext >&5
33737
33738fi
ac1cb8d3
VS
33739rm -f conftest.err conftest.$ac_objext \
33740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33741 if test "$am_cv_func_iconv" != yes; then
33742 am_save_LIBS="$LIBS"
33743 LIBS="$LIBS -liconv"
33744 cat >conftest.$ac_ext <<_ACEOF
33745/* confdefs.h. */
33746_ACEOF
33747cat confdefs.h >>conftest.$ac_ext
33748cat >>conftest.$ac_ext <<_ACEOF
33749/* end confdefs.h. */
33750#include <stdlib.h>
33751#include <iconv.h>
33752int
33753main ()
33754{
33755iconv_t cd = iconv_open("","");
33756 iconv(cd,NULL,NULL,NULL,NULL);
33757 iconv_close(cd);
33758 ;
33759 return 0;
33760}
33761_ACEOF
33762rm -f conftest.$ac_objext conftest$ac_exeext
33763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33764 (eval $ac_link) 2>conftest.er1
a848cd7e 33765 ac_status=$?
ac1cb8d3
VS
33766 grep -v '^ *+' conftest.er1 >conftest.err
33767 rm -f conftest.er1
33768 cat conftest.err >&5
a848cd7e
SC
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); } &&
0093c2fc 33771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33773 (eval $ac_try) 2>&5
33774 ac_status=$?
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); }; } &&
33777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33779 (eval $ac_try) 2>&5
33780 ac_status=$?
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); }; }; then
33783 am_cv_lib_iconv=yes
33784 am_cv_func_iconv=yes
33785else
33786 echo "$as_me: failed program was:" >&5
33787sed 's/^/| /' conftest.$ac_ext >&5
33788
33789fi
ac1cb8d3
VS
33790rm -f conftest.err conftest.$ac_objext \
33791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33792 LIBS="$am_save_LIBS"
33793 fi
33794
33795fi
33796echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33797echo "${ECHO_T}$am_cv_func_iconv" >&6
33798 if test "$am_cv_func_iconv" = yes; then
33799
33800cat >>confdefs.h <<\_ACEOF
33801#define HAVE_ICONV 1
33802_ACEOF
33803
33804 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33805echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33806if test "${wx_cv_func_iconv_const+set}" = set; then
33807 echo $ECHO_N "(cached) $ECHO_C" >&6
33808else
33809 cat >conftest.$ac_ext <<_ACEOF
33810/* confdefs.h. */
33811_ACEOF
33812cat confdefs.h >>conftest.$ac_ext
33813cat >>conftest.$ac_ext <<_ACEOF
33814/* end confdefs.h. */
33815
33816#include <stdlib.h>
33817#include <iconv.h>
33818extern
33819#ifdef __cplusplus
33820"C"
33821#endif
33822#if defined(__STDC__) || defined(__cplusplus)
33823size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33824#else
33825size_t iconv();
33826#endif
33827
33828int
33829main ()
33830{
33831
33832 ;
33833 return 0;
33834}
33835_ACEOF
33836rm -f conftest.$ac_objext
33837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33838 (eval $ac_compile) 2>conftest.er1
a848cd7e 33839 ac_status=$?
ac1cb8d3
VS
33840 grep -v '^ *+' conftest.er1 >conftest.err
33841 rm -f conftest.er1
33842 cat conftest.err >&5
a848cd7e
SC
33843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); } &&
0093c2fc 33845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33847 (eval $ac_try) 2>&5
33848 ac_status=$?
33849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 (exit $ac_status); }; } &&
33851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33853 (eval $ac_try) 2>&5
33854 ac_status=$?
33855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856 (exit $ac_status); }; }; then
33857 wx_cv_func_iconv_const="no"
33858else
33859 echo "$as_me: failed program was:" >&5
33860sed 's/^/| /' conftest.$ac_ext >&5
33861
33862wx_cv_func_iconv_const="yes"
33863
33864fi
ac1cb8d3 33865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33866
33867fi
33868echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33869echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33870
33871 iconv_const=
33872 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33873 iconv_const="const"
33874 fi
33875
33876
33877cat >>confdefs.h <<_ACEOF
33878#define ICONV_CONST $iconv_const
33879_ACEOF
33880
33881 fi
33882 LIBICONV=
33883 if test "$am_cv_lib_iconv" = yes; then
33884 LIBICONV="-liconv"
33885 fi
33886
33887
33888LIBS="$LIBICONV $LIBS"
33889ac_ext=c
33890ac_cpp='$CPP $CPPFLAGS'
33891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33893ac_compiler_gnu=$ac_cv_c_compiler_gnu
33894
33895
33896if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33897
33898for ac_func in sigaction
33899do
33900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33901echo "$as_me:$LINENO: checking for $ac_func" >&5
33902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33903if eval "test \"\${$as_ac_var+set}\" = set"; then
33904 echo $ECHO_N "(cached) $ECHO_C" >&6
33905else
33906 cat >conftest.$ac_ext <<_ACEOF
33907/* confdefs.h. */
33908_ACEOF
33909cat confdefs.h >>conftest.$ac_ext
33910cat >>conftest.$ac_ext <<_ACEOF
33911/* end confdefs.h. */
ac1cb8d3
VS
33912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33914#define $ac_func innocuous_$ac_func
33915
a848cd7e
SC
33916/* System header to define __stub macros and hopefully few prototypes,
33917 which can conflict with char $ac_func (); below.
33918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33919 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33920
a848cd7e
SC
33921#ifdef __STDC__
33922# include <limits.h>
33923#else
33924# include <assert.h>
33925#endif
ac1cb8d3
VS
33926
33927#undef $ac_func
33928
a848cd7e
SC
33929/* Override any gcc2 internal prototype to avoid an error. */
33930#ifdef __cplusplus
33931extern "C"
33932{
33933#endif
33934/* We use char because int might match the return type of a gcc2
33935 builtin and then its argument prototype would still apply. */
33936char $ac_func ();
33937/* The GNU C library defines this for functions which it implements
33938 to always fail with ENOSYS. Some functions are actually named
33939 something starting with __ and the normal name is an alias. */
33940#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33941choke me
33942#else
33943char (*f) () = $ac_func;
33944#endif
33945#ifdef __cplusplus
33946}
33947#endif
33948
33949int
33950main ()
33951{
33952return f != $ac_func;
33953 ;
33954 return 0;
33955}
33956_ACEOF
33957rm -f conftest.$ac_objext conftest$ac_exeext
33958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33959 (eval $ac_link) 2>conftest.er1
a848cd7e 33960 ac_status=$?
ac1cb8d3
VS
33961 grep -v '^ *+' conftest.er1 >conftest.err
33962 rm -f conftest.er1
33963 cat conftest.err >&5
a848cd7e
SC
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); } &&
0093c2fc 33966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968 (eval $ac_try) 2>&5
33969 ac_status=$?
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); }; } &&
33972 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33974 (eval $ac_try) 2>&5
33975 ac_status=$?
33976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977 (exit $ac_status); }; }; then
33978 eval "$as_ac_var=yes"
33979else
33980 echo "$as_me: failed program was:" >&5
33981sed 's/^/| /' conftest.$ac_ext >&5
33982
33983eval "$as_ac_var=no"
33984fi
ac1cb8d3
VS
33985rm -f conftest.err conftest.$ac_objext \
33986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33987fi
33988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33989echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33990if test `eval echo '${'$as_ac_var'}'` = yes; then
33991 cat >>confdefs.h <<_ACEOF
33992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33993_ACEOF
33994
33995fi
33996done
33997
33998
33999 if test "$ac_cv_func_sigaction" = "no"; then
34000 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34001echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34002 wxUSE_ON_FATAL_EXCEPTION=no
34003 fi
34004
34005 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34006
34007
34008 ac_ext=cc
34009ac_cpp='$CXXCPP $CPPFLAGS'
34010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34013
34014
34015 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34016echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34017if test "${wx_cv_type_sa_handler+set}" = set; then
34018 echo $ECHO_N "(cached) $ECHO_C" >&6
34019else
34020
34021 cat >conftest.$ac_ext <<_ACEOF
34022/* confdefs.h. */
34023_ACEOF
34024cat confdefs.h >>conftest.$ac_ext
34025cat >>conftest.$ac_ext <<_ACEOF
34026/* end confdefs.h. */
34027#include <signal.h>
34028int
34029main ()
34030{
34031
34032 extern void testSigHandler(int);
34033
34034 struct sigaction sa;
34035 sa.sa_handler = testSigHandler;
34036
34037 ;
34038 return 0;
34039}
34040_ACEOF
34041rm -f conftest.$ac_objext
34042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34043 (eval $ac_compile) 2>conftest.er1
a848cd7e 34044 ac_status=$?
ac1cb8d3
VS
34045 grep -v '^ *+' conftest.er1 >conftest.err
34046 rm -f conftest.er1
34047 cat conftest.err >&5
a848cd7e
SC
34048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049 (exit $ac_status); } &&
0093c2fc 34050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34052 (eval $ac_try) 2>&5
34053 ac_status=$?
34054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055 (exit $ac_status); }; } &&
34056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34058 (eval $ac_try) 2>&5
34059 ac_status=$?
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); }; }; then
34062
34063 wx_cv_type_sa_handler=int
34064
34065else
34066 echo "$as_me: failed program was:" >&5
34067sed 's/^/| /' conftest.$ac_ext >&5
34068
34069
34070 wx_cv_type_sa_handler=void
34071
34072fi
ac1cb8d3 34073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34074
34075fi
34076echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34077echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34078
34079 ac_ext=c
34080ac_cpp='$CPP $CPPFLAGS'
34081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34083ac_compiler_gnu=$ac_cv_c_compiler_gnu
34084
34085
34086 cat >>confdefs.h <<_ACEOF
34087#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34088_ACEOF
34089
34090 fi
34091fi
34092
eaff0f0d
VZ
34093if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34094
34095
34096 ac_ext=cc
34097ac_cpp='$CXXCPP $CPPFLAGS'
34098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34101
34102
34103 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34104echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34105if test "${wx_cv_func_backtrace+set}" = set; then
34106 echo $ECHO_N "(cached) $ECHO_C" >&6
34107else
34108
34109 cat >conftest.$ac_ext <<_ACEOF
34110/* confdefs.h. */
34111_ACEOF
34112cat confdefs.h >>conftest.$ac_ext
34113cat >>conftest.$ac_ext <<_ACEOF
34114/* end confdefs.h. */
34115#include <execinfo.h>
34116int
34117main ()
34118{
34119
34120 void *trace[1];
34121 char **messages;
34122
34123 backtrace(trace, 1);
34124 messages = backtrace_symbols(trace, 1);
34125
34126 ;
34127 return 0;
34128}
34129_ACEOF
34130rm -f conftest.$ac_objext
34131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34132 (eval $ac_compile) 2>conftest.er1
34133 ac_status=$?
34134 grep -v '^ *+' conftest.er1 >conftest.err
34135 rm -f conftest.er1
34136 cat conftest.err >&5
34137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138 (exit $ac_status); } &&
0093c2fc 34139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34141 (eval $ac_try) 2>&5
34142 ac_status=$?
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); }; } &&
34145 { ac_try='test -s conftest.$ac_objext'
34146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34147 (eval $ac_try) 2>&5
34148 ac_status=$?
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); }; }; then
34151 wx_cv_func_backtrace=yes
34152else
34153 echo "$as_me: failed program was:" >&5
34154sed 's/^/| /' conftest.$ac_ext >&5
34155
34156wx_cv_func_backtrace=no
34157
34158fi
34159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34160
34161
34162fi
34163echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34164echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34165
34166
34167 if test "$wx_cv_func_backtrace" = "no"; then
34168 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34169echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34170 wxUSE_STACKWALKER=no
34171 else
34172 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34173echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34174if test "${wx_cv_func_cxa_demangle+set}" = set; then
34175 echo $ECHO_N "(cached) $ECHO_C" >&6
34176else
34177
34178 cat >conftest.$ac_ext <<_ACEOF
34179/* confdefs.h. */
34180_ACEOF
34181cat confdefs.h >>conftest.$ac_ext
34182cat >>conftest.$ac_ext <<_ACEOF
34183/* end confdefs.h. */
34184#include <cxxabi.h>
34185int
34186main ()
34187{
34188
34189 int rc;
34190 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34191
34192 ;
34193 return 0;
34194}
34195_ACEOF
dfe0c803
JS
34196rm -f conftest.$ac_objext conftest$ac_exeext
34197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34198 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34199 ac_status=$?
34200 grep -v '^ *+' conftest.er1 >conftest.err
34201 rm -f conftest.er1
34202 cat conftest.err >&5
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); } &&
0093c2fc 34205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34207 (eval $ac_try) 2>&5
34208 ac_status=$?
34209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210 (exit $ac_status); }; } &&
dfe0c803 34211 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34213 (eval $ac_try) 2>&5
34214 ac_status=$?
34215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216 (exit $ac_status); }; }; then
34217 wx_cv_func_cxa_demangle=yes
34218else
34219 echo "$as_me: failed program was:" >&5
34220sed 's/^/| /' conftest.$ac_ext >&5
34221
34222wx_cv_func_cxa_demangle=no
34223
34224fi
dfe0c803
JS
34225rm -f conftest.err conftest.$ac_objext \
34226 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34227
34228
34229fi
34230echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34231echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34232
34233 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34234 cat >>confdefs.h <<\_ACEOF
34235#define HAVE_CXA_DEMANGLE 1
34236_ACEOF
34237
34238 fi
34239 fi
34240
34241 ac_ext=c
34242ac_cpp='$CPP $CPPFLAGS'
34243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34245ac_compiler_gnu=$ac_cv_c_compiler_gnu
34246
34247fi
34248
898beab1
DE
34249if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34250 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34251echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34252 wxUSE_STACKWALKER=no
34253fi
34254
34255
a848cd7e
SC
34256
34257
34258for ac_func in mkstemp mktemp
34259do
34260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34261echo "$as_me:$LINENO: checking for $ac_func" >&5
34262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34263if eval "test \"\${$as_ac_var+set}\" = set"; then
34264 echo $ECHO_N "(cached) $ECHO_C" >&6
34265else
34266 cat >conftest.$ac_ext <<_ACEOF
34267/* confdefs.h. */
34268_ACEOF
34269cat confdefs.h >>conftest.$ac_ext
34270cat >>conftest.$ac_ext <<_ACEOF
34271/* end confdefs.h. */
ac1cb8d3
VS
34272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34274#define $ac_func innocuous_$ac_func
34275
a848cd7e
SC
34276/* System header to define __stub macros and hopefully few prototypes,
34277 which can conflict with char $ac_func (); below.
34278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34279 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34280
a848cd7e
SC
34281#ifdef __STDC__
34282# include <limits.h>
34283#else
34284# include <assert.h>
34285#endif
ac1cb8d3
VS
34286
34287#undef $ac_func
34288
a848cd7e
SC
34289/* Override any gcc2 internal prototype to avoid an error. */
34290#ifdef __cplusplus
34291extern "C"
34292{
34293#endif
34294/* We use char because int might match the return type of a gcc2
34295 builtin and then its argument prototype would still apply. */
34296char $ac_func ();
34297/* The GNU C library defines this for functions which it implements
34298 to always fail with ENOSYS. Some functions are actually named
34299 something starting with __ and the normal name is an alias. */
34300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34301choke me
34302#else
34303char (*f) () = $ac_func;
34304#endif
34305#ifdef __cplusplus
34306}
34307#endif
34308
34309int
34310main ()
34311{
34312return f != $ac_func;
34313 ;
34314 return 0;
34315}
34316_ACEOF
34317rm -f conftest.$ac_objext conftest$ac_exeext
34318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34319 (eval $ac_link) 2>conftest.er1
a848cd7e 34320 ac_status=$?
ac1cb8d3
VS
34321 grep -v '^ *+' conftest.er1 >conftest.err
34322 rm -f conftest.er1
34323 cat conftest.err >&5
a848cd7e
SC
34324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325 (exit $ac_status); } &&
0093c2fc 34326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328 (eval $ac_try) 2>&5
34329 ac_status=$?
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); }; } &&
34332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334 (eval $ac_try) 2>&5
34335 ac_status=$?
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); }; }; then
34338 eval "$as_ac_var=yes"
34339else
34340 echo "$as_me: failed program was:" >&5
34341sed 's/^/| /' conftest.$ac_ext >&5
34342
34343eval "$as_ac_var=no"
34344fi
ac1cb8d3
VS
34345rm -f conftest.err conftest.$ac_objext \
34346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34347fi
34348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34349echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34350if test `eval echo '${'$as_ac_var'}'` = yes; then
34351 cat >>confdefs.h <<_ACEOF
34352#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34353_ACEOF
34354 break
34355fi
34356done
34357
34358
34359echo "$as_me:$LINENO: checking for statfs" >&5
34360echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34361if test "${wx_cv_func_statfs+set}" = set; then
34362 echo $ECHO_N "(cached) $ECHO_C" >&6
34363else
34364 cat >conftest.$ac_ext <<_ACEOF
34365/* confdefs.h. */
34366_ACEOF
34367cat confdefs.h >>conftest.$ac_ext
34368cat >>conftest.$ac_ext <<_ACEOF
34369/* end confdefs.h. */
34370
34371 #if defined(__BSD__)
84ae7ca4
VZ
34372 #include <sys/param.h>
34373 #include <sys/mount.h>
a848cd7e 34374 #else
84ae7ca4 34375 #include <sys/vfs.h>
a848cd7e
SC
34376 #endif
34377
34378int
34379main ()
34380{
34381
34382 long l;
34383 struct statfs fs;
34384 statfs("/", &fs);
34385 l = fs.f_bsize;
34386 l += fs.f_blocks;
34387 l += fs.f_bavail;
34388
34389 ;
34390 return 0;
34391}
34392_ACEOF
34393rm -f conftest.$ac_objext
34394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34395 (eval $ac_compile) 2>conftest.er1
a848cd7e 34396 ac_status=$?
ac1cb8d3
VS
34397 grep -v '^ *+' conftest.er1 >conftest.err
34398 rm -f conftest.er1
34399 cat conftest.err >&5
a848cd7e
SC
34400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); } &&
0093c2fc 34402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34404 (eval $ac_try) 2>&5
34405 ac_status=$?
34406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407 (exit $ac_status); }; } &&
34408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34410 (eval $ac_try) 2>&5
34411 ac_status=$?
34412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413 (exit $ac_status); }; }; then
84ae7ca4 34414 wx_cv_func_statfs=yes
a848cd7e
SC
34415else
34416 echo "$as_me: failed program was:" >&5
34417sed 's/^/| /' conftest.$ac_ext >&5
34418
84ae7ca4 34419wx_cv_func_statfs=no
a848cd7e
SC
34420
34421fi
ac1cb8d3 34422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34423
34424fi
34425echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34426echo "${ECHO_T}$wx_cv_func_statfs" >&6
34427
34428if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34429
34430
34431 ac_ext=cc
34432ac_cpp='$CXXCPP $CPPFLAGS'
34433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34436
34437 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34438echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34439if test "${wx_cv_func_statfs_decl+set}" = set; then
34440 echo $ECHO_N "(cached) $ECHO_C" >&6
34441else
0683aca6
VZ
34442 cat >conftest.$ac_ext <<_ACEOF
34443/* confdefs.h. */
34444_ACEOF
34445cat confdefs.h >>conftest.$ac_ext
34446cat >>conftest.$ac_ext <<_ACEOF
34447/* end confdefs.h. */
84ae7ca4 34448
0683aca6
VZ
34449 #if defined(__BSD__)
34450 #include <sys/param.h>
34451 #include <sys/mount.h>
34452 #else
34453 #include <sys/vfs.h>
34454 #endif
34455
34456int
34457main ()
34458{
34459
34460 struct statfs fs;
34461 statfs("", &fs);
34462
34463 ;
34464 return 0;
34465}
34466_ACEOF
34467rm -f conftest.$ac_objext
34468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34469 (eval $ac_compile) 2>conftest.er1
34470 ac_status=$?
34471 grep -v '^ *+' conftest.er1 >conftest.err
34472 rm -f conftest.er1
34473 cat conftest.err >&5
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); } &&
0093c2fc 34476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
34477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34478 (eval $ac_try) 2>&5
34479 ac_status=$?
34480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481 (exit $ac_status); }; } &&
34482 { ac_try='test -s conftest.$ac_objext'
34483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34484 (eval $ac_try) 2>&5
34485 ac_status=$?
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); }; }; then
34488 wx_cv_func_statfs_decl=yes
34489else
34490 echo "$as_me: failed program was:" >&5
34491sed 's/^/| /' conftest.$ac_ext >&5
34492
34493wx_cv_func_statfs_decl=no
34494
34495fi
34496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34497
34498fi
34499echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34500echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34501 ac_ext=c
34502ac_cpp='$CPP $CPPFLAGS'
34503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34505ac_compiler_gnu=$ac_cv_c_compiler_gnu
34506
34507
34508 if test "$wx_cv_func_statfs_decl" = "yes"; then
34509 cat >>confdefs.h <<\_ACEOF
34510#define HAVE_STATFS_DECL 1
34511_ACEOF
34512
34513 fi
34514
a848cd7e
SC
34515 wx_cv_type_statvfs_t="struct statfs"
34516 cat >>confdefs.h <<\_ACEOF
34517#define HAVE_STATFS 1
34518_ACEOF
34519
34520else
34521 echo "$as_me:$LINENO: checking for statvfs" >&5
34522echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34523if test "${wx_cv_func_statvfs+set}" = set; then
34524 echo $ECHO_N "(cached) $ECHO_C" >&6
34525else
34526 cat >conftest.$ac_ext <<_ACEOF
34527/* confdefs.h. */
34528_ACEOF
34529cat confdefs.h >>conftest.$ac_ext
34530cat >>conftest.$ac_ext <<_ACEOF
34531/* end confdefs.h. */
34532
34533 #include <stddef.h>
34534 #include <sys/statvfs.h>
34535
34536int
34537main ()
34538{
34539
34540 statvfs("/", NULL);
34541
34542 ;
34543 return 0;
34544}
34545_ACEOF
34546rm -f conftest.$ac_objext
34547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34548 (eval $ac_compile) 2>conftest.er1
a848cd7e 34549 ac_status=$?
ac1cb8d3
VS
34550 grep -v '^ *+' conftest.er1 >conftest.err
34551 rm -f conftest.er1
34552 cat conftest.err >&5
a848cd7e
SC
34553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554 (exit $ac_status); } &&
0093c2fc 34555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34557 (eval $ac_try) 2>&5
34558 ac_status=$?
34559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560 (exit $ac_status); }; } &&
34561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34563 (eval $ac_try) 2>&5
34564 ac_status=$?
34565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566 (exit $ac_status); }; }; then
34567 wx_cv_func_statvfs=yes
34568else
34569 echo "$as_me: failed program was:" >&5
34570sed 's/^/| /' conftest.$ac_ext >&5
34571
34572wx_cv_func_statvfs=no
34573
34574fi
ac1cb8d3 34575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34576
34577fi
34578echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34579echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34580
34581 if test "$wx_cv_func_statvfs" = "yes"; then
34582
34583
34584 ac_ext=cc
34585ac_cpp='$CXXCPP $CPPFLAGS'
34586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34589
34590
34591 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34592echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34593if test "${wx_cv_type_statvfs_t+set}" = set; then
34594 echo $ECHO_N "(cached) $ECHO_C" >&6
34595else
34596 cat >conftest.$ac_ext <<_ACEOF
34597/* confdefs.h. */
34598_ACEOF
34599cat confdefs.h >>conftest.$ac_ext
34600cat >>conftest.$ac_ext <<_ACEOF
34601/* end confdefs.h. */
34602
34603 #include <sys/statvfs.h>
34604
34605int
34606main ()
34607{
34608
34609 long l;
34610 statvfs_t fs;
34611 statvfs("/", &fs);
34612 l = fs.f_bsize;
34613 l += fs.f_blocks;
34614 l += fs.f_bavail;
34615
34616 ;
34617 return 0;
34618}
34619_ACEOF
34620rm -f conftest.$ac_objext
34621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34622 (eval $ac_compile) 2>conftest.er1
a848cd7e 34623 ac_status=$?
ac1cb8d3
VS
34624 grep -v '^ *+' conftest.er1 >conftest.err
34625 rm -f conftest.er1
34626 cat conftest.err >&5
a848cd7e
SC
34627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628 (exit $ac_status); } &&
0093c2fc 34629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34631 (eval $ac_try) 2>&5
34632 ac_status=$?
34633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634 (exit $ac_status); }; } &&
34635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34637 (eval $ac_try) 2>&5
34638 ac_status=$?
34639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640 (exit $ac_status); }; }; then
34641 wx_cv_type_statvfs_t=statvfs_t
34642else
34643 echo "$as_me: failed program was:" >&5
34644sed 's/^/| /' conftest.$ac_ext >&5
34645
34646
34647 cat >conftest.$ac_ext <<_ACEOF
34648/* confdefs.h. */
34649_ACEOF
34650cat confdefs.h >>conftest.$ac_ext
34651cat >>conftest.$ac_ext <<_ACEOF
34652/* end confdefs.h. */
34653
34654 #include <sys/statvfs.h>
34655
34656int
34657main ()
34658{
34659
34660 long l;
34661 struct statvfs fs;
34662 statvfs("/", &fs);
34663 l = fs.f_bsize;
34664 l += fs.f_blocks;
34665 l += fs.f_bavail;
34666
34667 ;
34668 return 0;
34669}
34670_ACEOF
34671rm -f conftest.$ac_objext
34672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34673 (eval $ac_compile) 2>conftest.er1
a848cd7e 34674 ac_status=$?
ac1cb8d3
VS
34675 grep -v '^ *+' conftest.er1 >conftest.err
34676 rm -f conftest.er1
34677 cat conftest.err >&5
a848cd7e
SC
34678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679 (exit $ac_status); } &&
0093c2fc 34680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34682 (eval $ac_try) 2>&5
34683 ac_status=$?
34684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34685 (exit $ac_status); }; } &&
34686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34688 (eval $ac_try) 2>&5
34689 ac_status=$?
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); }; }; then
34692 wx_cv_type_statvfs_t="struct statvfs"
34693else
34694 echo "$as_me: failed program was:" >&5
34695sed 's/^/| /' conftest.$ac_ext >&5
34696
34697wx_cv_type_statvfs_t="unknown"
34698
34699fi
ac1cb8d3 34700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34701
34702
34703fi
ac1cb8d3 34704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34705
34706fi
34707echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34708echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34709
34710 ac_ext=c
34711ac_cpp='$CPP $CPPFLAGS'
34712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34714ac_compiler_gnu=$ac_cv_c_compiler_gnu
34715
34716
34717 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34718 cat >>confdefs.h <<\_ACEOF
34719#define HAVE_STATVFS 1
34720_ACEOF
34721
34722 fi
34723 else
34724 wx_cv_type_statvfs_t="unknown"
34725 fi
34726fi
34727
34728if test "$wx_cv_type_statvfs_t" != "unknown"; then
34729 cat >>confdefs.h <<_ACEOF
34730#define WX_STATFS_T $wx_cv_type_statvfs_t
34731_ACEOF
34732
34733else
34734 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34735echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34736fi
34737
34738if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34739
34740
34741for ac_func in fcntl flock
34742do
34743as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34744echo "$as_me:$LINENO: checking for $ac_func" >&5
34745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34746if eval "test \"\${$as_ac_var+set}\" = set"; then
34747 echo $ECHO_N "(cached) $ECHO_C" >&6
34748else
34749 cat >conftest.$ac_ext <<_ACEOF
34750/* confdefs.h. */
34751_ACEOF
34752cat confdefs.h >>conftest.$ac_ext
34753cat >>conftest.$ac_ext <<_ACEOF
34754/* end confdefs.h. */
ac1cb8d3
VS
34755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34757#define $ac_func innocuous_$ac_func
34758
a848cd7e
SC
34759/* System header to define __stub macros and hopefully few prototypes,
34760 which can conflict with char $ac_func (); below.
34761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34762 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34763
a848cd7e
SC
34764#ifdef __STDC__
34765# include <limits.h>
34766#else
34767# include <assert.h>
34768#endif
ac1cb8d3
VS
34769
34770#undef $ac_func
34771
a848cd7e
SC
34772/* Override any gcc2 internal prototype to avoid an error. */
34773#ifdef __cplusplus
34774extern "C"
34775{
34776#endif
34777/* We use char because int might match the return type of a gcc2
34778 builtin and then its argument prototype would still apply. */
34779char $ac_func ();
34780/* The GNU C library defines this for functions which it implements
34781 to always fail with ENOSYS. Some functions are actually named
34782 something starting with __ and the normal name is an alias. */
34783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34784choke me
34785#else
34786char (*f) () = $ac_func;
34787#endif
34788#ifdef __cplusplus
34789}
34790#endif
34791
34792int
34793main ()
34794{
34795return f != $ac_func;
34796 ;
34797 return 0;
34798}
34799_ACEOF
34800rm -f conftest.$ac_objext conftest$ac_exeext
34801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34802 (eval $ac_link) 2>conftest.er1
a848cd7e 34803 ac_status=$?
ac1cb8d3
VS
34804 grep -v '^ *+' conftest.er1 >conftest.err
34805 rm -f conftest.er1
34806 cat conftest.err >&5
a848cd7e
SC
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); } &&
0093c2fc 34809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34811 (eval $ac_try) 2>&5
34812 ac_status=$?
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); }; } &&
34815 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34817 (eval $ac_try) 2>&5
34818 ac_status=$?
34819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820 (exit $ac_status); }; }; then
34821 eval "$as_ac_var=yes"
34822else
34823 echo "$as_me: failed program was:" >&5
34824sed 's/^/| /' conftest.$ac_ext >&5
34825
34826eval "$as_ac_var=no"
34827fi
ac1cb8d3
VS
34828rm -f conftest.err conftest.$ac_objext \
34829 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34830fi
34831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34833if test `eval echo '${'$as_ac_var'}'` = yes; then
34834 cat >>confdefs.h <<_ACEOF
34835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34836_ACEOF
34837 break
34838fi
34839done
34840
34841
34842 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34843 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34844echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34845 wxUSE_SNGLINST_CHECKER=no
34846 fi
34847fi
34848
34849
34850for ac_func in timegm
34851do
34852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34853echo "$as_me:$LINENO: checking for $ac_func" >&5
34854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34855if eval "test \"\${$as_ac_var+set}\" = set"; then
34856 echo $ECHO_N "(cached) $ECHO_C" >&6
34857else
34858 cat >conftest.$ac_ext <<_ACEOF
34859/* confdefs.h. */
34860_ACEOF
34861cat confdefs.h >>conftest.$ac_ext
34862cat >>conftest.$ac_ext <<_ACEOF
34863/* end confdefs.h. */
ac1cb8d3
VS
34864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34866#define $ac_func innocuous_$ac_func
34867
a848cd7e
SC
34868/* System header to define __stub macros and hopefully few prototypes,
34869 which can conflict with char $ac_func (); below.
34870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34871 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34872
a848cd7e
SC
34873#ifdef __STDC__
34874# include <limits.h>
34875#else
34876# include <assert.h>
34877#endif
ac1cb8d3
VS
34878
34879#undef $ac_func
34880
a848cd7e
SC
34881/* Override any gcc2 internal prototype to avoid an error. */
34882#ifdef __cplusplus
34883extern "C"
34884{
34885#endif
34886/* We use char because int might match the return type of a gcc2
34887 builtin and then its argument prototype would still apply. */
34888char $ac_func ();
34889/* The GNU C library defines this for functions which it implements
34890 to always fail with ENOSYS. Some functions are actually named
34891 something starting with __ and the normal name is an alias. */
34892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34893choke me
34894#else
34895char (*f) () = $ac_func;
34896#endif
34897#ifdef __cplusplus
34898}
34899#endif
34900
34901int
34902main ()
34903{
34904return f != $ac_func;
34905 ;
34906 return 0;
34907}
34908_ACEOF
34909rm -f conftest.$ac_objext conftest$ac_exeext
34910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34911 (eval $ac_link) 2>conftest.er1
a848cd7e 34912 ac_status=$?
ac1cb8d3
VS
34913 grep -v '^ *+' conftest.er1 >conftest.err
34914 rm -f conftest.er1
34915 cat conftest.err >&5
a848cd7e
SC
34916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 (exit $ac_status); } &&
0093c2fc 34918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34920 (eval $ac_try) 2>&5
34921 ac_status=$?
34922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923 (exit $ac_status); }; } &&
34924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34926 (eval $ac_try) 2>&5
34927 ac_status=$?
34928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929 (exit $ac_status); }; }; then
34930 eval "$as_ac_var=yes"
34931else
34932 echo "$as_me: failed program was:" >&5
34933sed 's/^/| /' conftest.$ac_ext >&5
34934
34935eval "$as_ac_var=no"
34936fi
ac1cb8d3
VS
34937rm -f conftest.err conftest.$ac_objext \
34938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34939fi
34940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34941echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34942if test `eval echo '${'$as_ac_var'}'` = yes; then
34943 cat >>confdefs.h <<_ACEOF
34944#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34945_ACEOF
34946
34947fi
34948done
34949
34950
34951
34952
34953for ac_func in putenv setenv
34954do
34955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34956echo "$as_me:$LINENO: checking for $ac_func" >&5
34957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34958if eval "test \"\${$as_ac_var+set}\" = set"; then
34959 echo $ECHO_N "(cached) $ECHO_C" >&6
34960else
34961 cat >conftest.$ac_ext <<_ACEOF
34962/* confdefs.h. */
34963_ACEOF
34964cat confdefs.h >>conftest.$ac_ext
34965cat >>conftest.$ac_ext <<_ACEOF
34966/* end confdefs.h. */
ac1cb8d3
VS
34967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34969#define $ac_func innocuous_$ac_func
34970
a848cd7e
SC
34971/* System header to define __stub macros and hopefully few prototypes,
34972 which can conflict with char $ac_func (); below.
34973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34974 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34975
a848cd7e
SC
34976#ifdef __STDC__
34977# include <limits.h>
34978#else
34979# include <assert.h>
34980#endif
ac1cb8d3
VS
34981
34982#undef $ac_func
34983
a848cd7e
SC
34984/* Override any gcc2 internal prototype to avoid an error. */
34985#ifdef __cplusplus
34986extern "C"
34987{
34988#endif
34989/* We use char because int might match the return type of a gcc2
34990 builtin and then its argument prototype would still apply. */
34991char $ac_func ();
34992/* The GNU C library defines this for functions which it implements
34993 to always fail with ENOSYS. Some functions are actually named
34994 something starting with __ and the normal name is an alias. */
34995#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34996choke me
34997#else
34998char (*f) () = $ac_func;
34999#endif
35000#ifdef __cplusplus
35001}
35002#endif
35003
35004int
35005main ()
35006{
35007return f != $ac_func;
35008 ;
35009 return 0;
35010}
35011_ACEOF
35012rm -f conftest.$ac_objext conftest$ac_exeext
35013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35014 (eval $ac_link) 2>conftest.er1
a848cd7e 35015 ac_status=$?
ac1cb8d3
VS
35016 grep -v '^ *+' conftest.er1 >conftest.err
35017 rm -f conftest.er1
35018 cat conftest.err >&5
a848cd7e
SC
35019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020 (exit $ac_status); } &&
0093c2fc 35021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35023 (eval $ac_try) 2>&5
35024 ac_status=$?
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); }; } &&
35027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35029 (eval $ac_try) 2>&5
35030 ac_status=$?
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); }; }; then
35033 eval "$as_ac_var=yes"
35034else
35035 echo "$as_me: failed program was:" >&5
35036sed 's/^/| /' conftest.$ac_ext >&5
35037
35038eval "$as_ac_var=no"
35039fi
ac1cb8d3
VS
35040rm -f conftest.err conftest.$ac_objext \
35041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35042fi
35043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35045if test `eval echo '${'$as_ac_var'}'` = yes; then
35046 cat >>confdefs.h <<_ACEOF
35047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35048_ACEOF
35049 break
35050fi
35051done
35052
35053
35054HAVE_SOME_SLEEP_FUNC=0
35055if test "$USE_BEOS" = 1; then
35056 cat >>confdefs.h <<\_ACEOF
35057#define HAVE_SLEEP 1
35058_ACEOF
35059
35060 HAVE_SOME_SLEEP_FUNC=1
35061fi
35062
35063if test "$USE_DARWIN" = 1; then
35064 cat >>confdefs.h <<\_ACEOF
35065#define HAVE_USLEEP 1
35066_ACEOF
35067
35068 HAVE_SOME_SLEEP_FUNC=1
35069fi
35070
35071if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35072 POSIX4_LINK=
35073
35074for ac_func in nanosleep
35075do
35076as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35077echo "$as_me:$LINENO: checking for $ac_func" >&5
35078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35079if eval "test \"\${$as_ac_var+set}\" = set"; then
35080 echo $ECHO_N "(cached) $ECHO_C" >&6
35081else
35082 cat >conftest.$ac_ext <<_ACEOF
35083/* confdefs.h. */
35084_ACEOF
35085cat confdefs.h >>conftest.$ac_ext
35086cat >>conftest.$ac_ext <<_ACEOF
35087/* end confdefs.h. */
ac1cb8d3
VS
35088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35090#define $ac_func innocuous_$ac_func
35091
a848cd7e
SC
35092/* System header to define __stub macros and hopefully few prototypes,
35093 which can conflict with char $ac_func (); below.
35094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35095 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35096
a848cd7e
SC
35097#ifdef __STDC__
35098# include <limits.h>
35099#else
35100# include <assert.h>
35101#endif
ac1cb8d3
VS
35102
35103#undef $ac_func
35104
a848cd7e
SC
35105/* Override any gcc2 internal prototype to avoid an error. */
35106#ifdef __cplusplus
35107extern "C"
35108{
35109#endif
35110/* We use char because int might match the return type of a gcc2
35111 builtin and then its argument prototype would still apply. */
35112char $ac_func ();
35113/* The GNU C library defines this for functions which it implements
35114 to always fail with ENOSYS. Some functions are actually named
35115 something starting with __ and the normal name is an alias. */
35116#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35117choke me
35118#else
35119char (*f) () = $ac_func;
35120#endif
35121#ifdef __cplusplus
35122}
35123#endif
35124
35125int
35126main ()
35127{
35128return f != $ac_func;
35129 ;
35130 return 0;
35131}
35132_ACEOF
35133rm -f conftest.$ac_objext conftest$ac_exeext
35134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35135 (eval $ac_link) 2>conftest.er1
a848cd7e 35136 ac_status=$?
ac1cb8d3
VS
35137 grep -v '^ *+' conftest.er1 >conftest.err
35138 rm -f conftest.er1
35139 cat conftest.err >&5
a848cd7e
SC
35140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35141 (exit $ac_status); } &&
0093c2fc 35142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35144 (eval $ac_try) 2>&5
35145 ac_status=$?
35146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35147 (exit $ac_status); }; } &&
35148 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35150 (eval $ac_try) 2>&5
35151 ac_status=$?
35152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153 (exit $ac_status); }; }; then
35154 eval "$as_ac_var=yes"
35155else
35156 echo "$as_me: failed program was:" >&5
35157sed 's/^/| /' conftest.$ac_ext >&5
35158
35159eval "$as_ac_var=no"
35160fi
ac1cb8d3
VS
35161rm -f conftest.err conftest.$ac_objext \
35162 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35163fi
35164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35165echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35166if test `eval echo '${'$as_ac_var'}'` = yes; then
35167 cat >>confdefs.h <<_ACEOF
35168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35169_ACEOF
35170 cat >>confdefs.h <<\_ACEOF
35171#define HAVE_NANOSLEEP 1
35172_ACEOF
35173
35174else
35175
35176 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35177echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35178if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35179 echo $ECHO_N "(cached) $ECHO_C" >&6
35180else
35181 ac_check_lib_save_LIBS=$LIBS
35182LIBS="-lposix4 $LIBS"
35183cat >conftest.$ac_ext <<_ACEOF
35184/* confdefs.h. */
35185_ACEOF
35186cat confdefs.h >>conftest.$ac_ext
35187cat >>conftest.$ac_ext <<_ACEOF
35188/* end confdefs.h. */
35189
35190/* Override any gcc2 internal prototype to avoid an error. */
35191#ifdef __cplusplus
35192extern "C"
35193#endif
35194/* We use char because int might match the return type of a gcc2
35195 builtin and then its argument prototype would still apply. */
35196char nanosleep ();
35197int
35198main ()
35199{
35200nanosleep ();
35201 ;
35202 return 0;
35203}
35204_ACEOF
35205rm -f conftest.$ac_objext conftest$ac_exeext
35206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35207 (eval $ac_link) 2>conftest.er1
a848cd7e 35208 ac_status=$?
ac1cb8d3
VS
35209 grep -v '^ *+' conftest.er1 >conftest.err
35210 rm -f conftest.er1
35211 cat conftest.err >&5
a848cd7e
SC
35212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); } &&
0093c2fc 35214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216 (eval $ac_try) 2>&5
35217 ac_status=$?
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); }; } &&
35220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35222 (eval $ac_try) 2>&5
35223 ac_status=$?
35224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35225 (exit $ac_status); }; }; then
35226 ac_cv_lib_posix4_nanosleep=yes
35227else
35228 echo "$as_me: failed program was:" >&5
35229sed 's/^/| /' conftest.$ac_ext >&5
35230
35231ac_cv_lib_posix4_nanosleep=no
35232fi
ac1cb8d3
VS
35233rm -f conftest.err conftest.$ac_objext \
35234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35235LIBS=$ac_check_lib_save_LIBS
35236fi
35237echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35238echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35239if test $ac_cv_lib_posix4_nanosleep = yes; then
35240
35241 cat >>confdefs.h <<\_ACEOF
35242#define HAVE_NANOSLEEP 1
35243_ACEOF
35244
35245 POSIX4_LINK=" -lposix4"
35246
35247else
35248
35249
35250for ac_func in usleep
35251do
35252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35253echo "$as_me:$LINENO: checking for $ac_func" >&5
35254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35255if eval "test \"\${$as_ac_var+set}\" = set"; then
35256 echo $ECHO_N "(cached) $ECHO_C" >&6
35257else
35258 cat >conftest.$ac_ext <<_ACEOF
35259/* confdefs.h. */
35260_ACEOF
35261cat confdefs.h >>conftest.$ac_ext
35262cat >>conftest.$ac_ext <<_ACEOF
35263/* end confdefs.h. */
ac1cb8d3
VS
35264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35266#define $ac_func innocuous_$ac_func
35267
a848cd7e
SC
35268/* System header to define __stub macros and hopefully few prototypes,
35269 which can conflict with char $ac_func (); below.
35270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35271 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35272
a848cd7e
SC
35273#ifdef __STDC__
35274# include <limits.h>
35275#else
35276# include <assert.h>
35277#endif
ac1cb8d3
VS
35278
35279#undef $ac_func
35280
a848cd7e
SC
35281/* Override any gcc2 internal prototype to avoid an error. */
35282#ifdef __cplusplus
35283extern "C"
35284{
35285#endif
35286/* We use char because int might match the return type of a gcc2
35287 builtin and then its argument prototype would still apply. */
35288char $ac_func ();
35289/* The GNU C library defines this for functions which it implements
35290 to always fail with ENOSYS. Some functions are actually named
35291 something starting with __ and the normal name is an alias. */
35292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35293choke me
35294#else
35295char (*f) () = $ac_func;
35296#endif
35297#ifdef __cplusplus
35298}
35299#endif
35300
35301int
35302main ()
35303{
35304return f != $ac_func;
35305 ;
35306 return 0;
35307}
35308_ACEOF
35309rm -f conftest.$ac_objext conftest$ac_exeext
35310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35311 (eval $ac_link) 2>conftest.er1
a848cd7e 35312 ac_status=$?
ac1cb8d3
VS
35313 grep -v '^ *+' conftest.er1 >conftest.err
35314 rm -f conftest.er1
35315 cat conftest.err >&5
a848cd7e
SC
35316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317 (exit $ac_status); } &&
0093c2fc 35318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320 (eval $ac_try) 2>&5
35321 ac_status=$?
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); }; } &&
35324 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35326 (eval $ac_try) 2>&5
35327 ac_status=$?
35328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329 (exit $ac_status); }; }; then
35330 eval "$as_ac_var=yes"
35331else
35332 echo "$as_me: failed program was:" >&5
35333sed 's/^/| /' conftest.$ac_ext >&5
35334
35335eval "$as_ac_var=no"
35336fi
ac1cb8d3
VS
35337rm -f conftest.err conftest.$ac_objext \
35338 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35339fi
35340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35341echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35342if test `eval echo '${'$as_ac_var'}'` = yes; then
35343 cat >>confdefs.h <<_ACEOF
35344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35345_ACEOF
35346 cat >>confdefs.h <<\_ACEOF
35347#define HAVE_USLEEP 1
35348_ACEOF
35349
35350else
35351 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35352echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35353
35354fi
35355done
35356
35357
35358
35359fi
35360
35361
35362
35363fi
35364done
35365
35366fi
35367
35368
35369
35370for ac_func in uname gethostname
35371do
35372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35373echo "$as_me:$LINENO: checking for $ac_func" >&5
35374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35375if eval "test \"\${$as_ac_var+set}\" = set"; then
35376 echo $ECHO_N "(cached) $ECHO_C" >&6
35377else
35378 cat >conftest.$ac_ext <<_ACEOF
35379/* confdefs.h. */
35380_ACEOF
35381cat confdefs.h >>conftest.$ac_ext
35382cat >>conftest.$ac_ext <<_ACEOF
35383/* end confdefs.h. */
ac1cb8d3
VS
35384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35386#define $ac_func innocuous_$ac_func
35387
a848cd7e
SC
35388/* System header to define __stub macros and hopefully few prototypes,
35389 which can conflict with char $ac_func (); below.
35390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35391 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35392
a848cd7e
SC
35393#ifdef __STDC__
35394# include <limits.h>
35395#else
35396# include <assert.h>
35397#endif
ac1cb8d3
VS
35398
35399#undef $ac_func
35400
a848cd7e
SC
35401/* Override any gcc2 internal prototype to avoid an error. */
35402#ifdef __cplusplus
35403extern "C"
35404{
35405#endif
35406/* We use char because int might match the return type of a gcc2
35407 builtin and then its argument prototype would still apply. */
35408char $ac_func ();
35409/* The GNU C library defines this for functions which it implements
35410 to always fail with ENOSYS. Some functions are actually named
35411 something starting with __ and the normal name is an alias. */
35412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35413choke me
35414#else
35415char (*f) () = $ac_func;
35416#endif
35417#ifdef __cplusplus
35418}
35419#endif
35420
35421int
35422main ()
35423{
35424return f != $ac_func;
35425 ;
35426 return 0;
35427}
35428_ACEOF
35429rm -f conftest.$ac_objext conftest$ac_exeext
35430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35431 (eval $ac_link) 2>conftest.er1
a848cd7e 35432 ac_status=$?
ac1cb8d3
VS
35433 grep -v '^ *+' conftest.er1 >conftest.err
35434 rm -f conftest.er1
35435 cat conftest.err >&5
a848cd7e
SC
35436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437 (exit $ac_status); } &&
0093c2fc 35438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35440 (eval $ac_try) 2>&5
35441 ac_status=$?
35442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443 (exit $ac_status); }; } &&
35444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35446 (eval $ac_try) 2>&5
35447 ac_status=$?
35448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449 (exit $ac_status); }; }; then
35450 eval "$as_ac_var=yes"
35451else
35452 echo "$as_me: failed program was:" >&5
35453sed 's/^/| /' conftest.$ac_ext >&5
35454
35455eval "$as_ac_var=no"
35456fi
ac1cb8d3
VS
35457rm -f conftest.err conftest.$ac_objext \
35458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35459fi
35460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35461echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35462if test `eval echo '${'$as_ac_var'}'` = yes; then
35463 cat >>confdefs.h <<_ACEOF
35464#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35465_ACEOF
35466 break
35467fi
35468done
35469
35470
35471
35472
35473ac_ext=cc
35474ac_cpp='$CXXCPP $CPPFLAGS'
35475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35478
35479
35480
35481for ac_func in strtok_r
35482do
35483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35484echo "$as_me:$LINENO: checking for $ac_func" >&5
35485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35486if eval "test \"\${$as_ac_var+set}\" = set"; then
35487 echo $ECHO_N "(cached) $ECHO_C" >&6
35488else
35489 cat >conftest.$ac_ext <<_ACEOF
35490/* confdefs.h. */
35491_ACEOF
35492cat confdefs.h >>conftest.$ac_ext
35493cat >>conftest.$ac_ext <<_ACEOF
35494/* end confdefs.h. */
ac1cb8d3
VS
35495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35497#define $ac_func innocuous_$ac_func
35498
a848cd7e
SC
35499/* System header to define __stub macros and hopefully few prototypes,
35500 which can conflict with char $ac_func (); below.
35501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35502 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35503
a848cd7e
SC
35504#ifdef __STDC__
35505# include <limits.h>
35506#else
35507# include <assert.h>
35508#endif
ac1cb8d3
VS
35509
35510#undef $ac_func
35511
a848cd7e
SC
35512/* Override any gcc2 internal prototype to avoid an error. */
35513#ifdef __cplusplus
35514extern "C"
35515{
35516#endif
35517/* We use char because int might match the return type of a gcc2
35518 builtin and then its argument prototype would still apply. */
35519char $ac_func ();
35520/* The GNU C library defines this for functions which it implements
35521 to always fail with ENOSYS. Some functions are actually named
35522 something starting with __ and the normal name is an alias. */
35523#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35524choke me
35525#else
35526char (*f) () = $ac_func;
35527#endif
35528#ifdef __cplusplus
35529}
35530#endif
35531
35532int
35533main ()
35534{
35535return f != $ac_func;
35536 ;
35537 return 0;
35538}
35539_ACEOF
35540rm -f conftest.$ac_objext conftest$ac_exeext
35541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35542 (eval $ac_link) 2>conftest.er1
a848cd7e 35543 ac_status=$?
ac1cb8d3
VS
35544 grep -v '^ *+' conftest.er1 >conftest.err
35545 rm -f conftest.er1
35546 cat conftest.err >&5
a848cd7e
SC
35547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); } &&
0093c2fc 35549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35551 (eval $ac_try) 2>&5
35552 ac_status=$?
35553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554 (exit $ac_status); }; } &&
35555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35557 (eval $ac_try) 2>&5
35558 ac_status=$?
35559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35560 (exit $ac_status); }; }; then
35561 eval "$as_ac_var=yes"
35562else
35563 echo "$as_me: failed program was:" >&5
35564sed 's/^/| /' conftest.$ac_ext >&5
35565
35566eval "$as_ac_var=no"
35567fi
ac1cb8d3
VS
35568rm -f conftest.err conftest.$ac_objext \
35569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35570fi
35571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35572echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35573if test `eval echo '${'$as_ac_var'}'` = yes; then
35574 cat >>confdefs.h <<_ACEOF
35575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35576_ACEOF
35577
35578fi
35579done
35580
35581
35582ac_ext=c
35583ac_cpp='$CPP $CPPFLAGS'
35584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35586ac_compiler_gnu=$ac_cv_c_compiler_gnu
35587
35588
35589INET_LINK=
35590
35591for ac_func in inet_addr
35592do
35593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35594echo "$as_me:$LINENO: checking for $ac_func" >&5
35595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35596if eval "test \"\${$as_ac_var+set}\" = set"; then
35597 echo $ECHO_N "(cached) $ECHO_C" >&6
35598else
35599 cat >conftest.$ac_ext <<_ACEOF
35600/* confdefs.h. */
35601_ACEOF
35602cat confdefs.h >>conftest.$ac_ext
35603cat >>conftest.$ac_ext <<_ACEOF
35604/* end confdefs.h. */
ac1cb8d3
VS
35605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35607#define $ac_func innocuous_$ac_func
35608
a848cd7e
SC
35609/* System header to define __stub macros and hopefully few prototypes,
35610 which can conflict with char $ac_func (); below.
35611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35612 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35613
a848cd7e
SC
35614#ifdef __STDC__
35615# include <limits.h>
35616#else
35617# include <assert.h>
35618#endif
ac1cb8d3
VS
35619
35620#undef $ac_func
35621
a848cd7e
SC
35622/* Override any gcc2 internal prototype to avoid an error. */
35623#ifdef __cplusplus
35624extern "C"
35625{
35626#endif
35627/* We use char because int might match the return type of a gcc2
35628 builtin and then its argument prototype would still apply. */
35629char $ac_func ();
35630/* The GNU C library defines this for functions which it implements
35631 to always fail with ENOSYS. Some functions are actually named
35632 something starting with __ and the normal name is an alias. */
35633#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35634choke me
35635#else
35636char (*f) () = $ac_func;
35637#endif
35638#ifdef __cplusplus
35639}
35640#endif
35641
35642int
35643main ()
35644{
35645return f != $ac_func;
35646 ;
35647 return 0;
35648}
35649_ACEOF
35650rm -f conftest.$ac_objext conftest$ac_exeext
35651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35652 (eval $ac_link) 2>conftest.er1
a848cd7e 35653 ac_status=$?
ac1cb8d3
VS
35654 grep -v '^ *+' conftest.er1 >conftest.err
35655 rm -f conftest.er1
35656 cat conftest.err >&5
a848cd7e
SC
35657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658 (exit $ac_status); } &&
0093c2fc 35659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661 (eval $ac_try) 2>&5
35662 ac_status=$?
35663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); }; } &&
35665 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35667 (eval $ac_try) 2>&5
35668 ac_status=$?
35669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35670 (exit $ac_status); }; }; then
35671 eval "$as_ac_var=yes"
35672else
35673 echo "$as_me: failed program was:" >&5
35674sed 's/^/| /' conftest.$ac_ext >&5
35675
35676eval "$as_ac_var=no"
35677fi
ac1cb8d3
VS
35678rm -f conftest.err conftest.$ac_objext \
35679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35680fi
35681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35682echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35683if test `eval echo '${'$as_ac_var'}'` = yes; then
35684 cat >>confdefs.h <<_ACEOF
35685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35686_ACEOF
35687 cat >>confdefs.h <<\_ACEOF
35688#define HAVE_INET_ADDR 1
35689_ACEOF
35690
35691else
35692
35693 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35694echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35695if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35696 echo $ECHO_N "(cached) $ECHO_C" >&6
35697else
35698 ac_check_lib_save_LIBS=$LIBS
35699LIBS="-lnsl $LIBS"
35700cat >conftest.$ac_ext <<_ACEOF
35701/* confdefs.h. */
35702_ACEOF
35703cat confdefs.h >>conftest.$ac_ext
35704cat >>conftest.$ac_ext <<_ACEOF
35705/* end confdefs.h. */
35706
35707/* Override any gcc2 internal prototype to avoid an error. */
35708#ifdef __cplusplus
35709extern "C"
35710#endif
35711/* We use char because int might match the return type of a gcc2
35712 builtin and then its argument prototype would still apply. */
35713char inet_addr ();
35714int
35715main ()
35716{
35717inet_addr ();
35718 ;
35719 return 0;
35720}
35721_ACEOF
35722rm -f conftest.$ac_objext conftest$ac_exeext
35723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35724 (eval $ac_link) 2>conftest.er1
a848cd7e 35725 ac_status=$?
ac1cb8d3
VS
35726 grep -v '^ *+' conftest.er1 >conftest.err
35727 rm -f conftest.er1
35728 cat conftest.err >&5
a848cd7e
SC
35729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 (exit $ac_status); } &&
0093c2fc 35731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35733 (eval $ac_try) 2>&5
35734 ac_status=$?
35735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35736 (exit $ac_status); }; } &&
35737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35739 (eval $ac_try) 2>&5
35740 ac_status=$?
35741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742 (exit $ac_status); }; }; then
35743 ac_cv_lib_nsl_inet_addr=yes
35744else
35745 echo "$as_me: failed program was:" >&5
35746sed 's/^/| /' conftest.$ac_ext >&5
35747
35748ac_cv_lib_nsl_inet_addr=no
35749fi
ac1cb8d3
VS
35750rm -f conftest.err conftest.$ac_objext \
35751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35752LIBS=$ac_check_lib_save_LIBS
35753fi
35754echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35755echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35756if test $ac_cv_lib_nsl_inet_addr = yes; then
35757 INET_LINK="nsl"
35758else
35759
35760 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35761echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35762if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35763 echo $ECHO_N "(cached) $ECHO_C" >&6
35764else
35765 ac_check_lib_save_LIBS=$LIBS
35766LIBS="-lresolv $LIBS"
35767cat >conftest.$ac_ext <<_ACEOF
35768/* confdefs.h. */
35769_ACEOF
35770cat confdefs.h >>conftest.$ac_ext
35771cat >>conftest.$ac_ext <<_ACEOF
35772/* end confdefs.h. */
35773
35774/* Override any gcc2 internal prototype to avoid an error. */
35775#ifdef __cplusplus
35776extern "C"
35777#endif
35778/* We use char because int might match the return type of a gcc2
35779 builtin and then its argument prototype would still apply. */
35780char inet_addr ();
35781int
35782main ()
35783{
35784inet_addr ();
35785 ;
35786 return 0;
35787}
35788_ACEOF
35789rm -f conftest.$ac_objext conftest$ac_exeext
35790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35791 (eval $ac_link) 2>conftest.er1
a848cd7e 35792 ac_status=$?
ac1cb8d3
VS
35793 grep -v '^ *+' conftest.er1 >conftest.err
35794 rm -f conftest.er1
35795 cat conftest.err >&5
a848cd7e
SC
35796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797 (exit $ac_status); } &&
0093c2fc 35798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35800 (eval $ac_try) 2>&5
35801 ac_status=$?
35802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803 (exit $ac_status); }; } &&
35804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35806 (eval $ac_try) 2>&5
35807 ac_status=$?
35808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809 (exit $ac_status); }; }; then
35810 ac_cv_lib_resolv_inet_addr=yes
35811else
35812 echo "$as_me: failed program was:" >&5
35813sed 's/^/| /' conftest.$ac_ext >&5
35814
35815ac_cv_lib_resolv_inet_addr=no
35816fi
ac1cb8d3
VS
35817rm -f conftest.err conftest.$ac_objext \
35818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35819LIBS=$ac_check_lib_save_LIBS
35820fi
35821echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35822echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35823if test $ac_cv_lib_resolv_inet_addr = yes; then
35824 INET_LINK="resolv"
35825else
35826
35827 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35828echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35829if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35830 echo $ECHO_N "(cached) $ECHO_C" >&6
35831else
35832 ac_check_lib_save_LIBS=$LIBS
35833LIBS="-lsocket $LIBS"
35834cat >conftest.$ac_ext <<_ACEOF
35835/* confdefs.h. */
35836_ACEOF
35837cat confdefs.h >>conftest.$ac_ext
35838cat >>conftest.$ac_ext <<_ACEOF
35839/* end confdefs.h. */
35840
35841/* Override any gcc2 internal prototype to avoid an error. */
35842#ifdef __cplusplus
35843extern "C"
35844#endif
35845/* We use char because int might match the return type of a gcc2
35846 builtin and then its argument prototype would still apply. */
35847char inet_addr ();
35848int
35849main ()
35850{
35851inet_addr ();
35852 ;
35853 return 0;
35854}
35855_ACEOF
35856rm -f conftest.$ac_objext conftest$ac_exeext
35857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35858 (eval $ac_link) 2>conftest.er1
a848cd7e 35859 ac_status=$?
ac1cb8d3
VS
35860 grep -v '^ *+' conftest.er1 >conftest.err
35861 rm -f conftest.er1
35862 cat conftest.err >&5
a848cd7e
SC
35863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864 (exit $ac_status); } &&
0093c2fc 35865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35867 (eval $ac_try) 2>&5
35868 ac_status=$?
35869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870 (exit $ac_status); }; } &&
35871 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35873 (eval $ac_try) 2>&5
35874 ac_status=$?
35875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876 (exit $ac_status); }; }; then
35877 ac_cv_lib_socket_inet_addr=yes
35878else
35879 echo "$as_me: failed program was:" >&5
35880sed 's/^/| /' conftest.$ac_ext >&5
35881
35882ac_cv_lib_socket_inet_addr=no
35883fi
ac1cb8d3
VS
35884rm -f conftest.err conftest.$ac_objext \
35885 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35886LIBS=$ac_check_lib_save_LIBS
35887fi
35888echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35889echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35890if test $ac_cv_lib_socket_inet_addr = yes; then
35891 INET_LINK="socket"
35892
35893fi
35894
35895
35896
35897fi
35898
35899
35900
35901fi
35902
35903
35904
35905fi
35906done
35907
35908
35909
35910for ac_func in inet_aton
35911do
35912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35913echo "$as_me:$LINENO: checking for $ac_func" >&5
35914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35915if eval "test \"\${$as_ac_var+set}\" = set"; then
35916 echo $ECHO_N "(cached) $ECHO_C" >&6
35917else
35918 cat >conftest.$ac_ext <<_ACEOF
35919/* confdefs.h. */
35920_ACEOF
35921cat confdefs.h >>conftest.$ac_ext
35922cat >>conftest.$ac_ext <<_ACEOF
35923/* end confdefs.h. */
ac1cb8d3
VS
35924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35926#define $ac_func innocuous_$ac_func
35927
a848cd7e
SC
35928/* System header to define __stub macros and hopefully few prototypes,
35929 which can conflict with char $ac_func (); below.
35930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35931 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35932
a848cd7e
SC
35933#ifdef __STDC__
35934# include <limits.h>
35935#else
35936# include <assert.h>
35937#endif
ac1cb8d3
VS
35938
35939#undef $ac_func
35940
a848cd7e
SC
35941/* Override any gcc2 internal prototype to avoid an error. */
35942#ifdef __cplusplus
35943extern "C"
35944{
35945#endif
35946/* We use char because int might match the return type of a gcc2
35947 builtin and then its argument prototype would still apply. */
35948char $ac_func ();
35949/* The GNU C library defines this for functions which it implements
35950 to always fail with ENOSYS. Some functions are actually named
35951 something starting with __ and the normal name is an alias. */
35952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35953choke me
35954#else
35955char (*f) () = $ac_func;
35956#endif
35957#ifdef __cplusplus
35958}
35959#endif
35960
35961int
35962main ()
35963{
35964return f != $ac_func;
35965 ;
35966 return 0;
35967}
35968_ACEOF
35969rm -f conftest.$ac_objext conftest$ac_exeext
35970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35971 (eval $ac_link) 2>conftest.er1
a848cd7e 35972 ac_status=$?
ac1cb8d3
VS
35973 grep -v '^ *+' conftest.er1 >conftest.err
35974 rm -f conftest.er1
35975 cat conftest.err >&5
a848cd7e
SC
35976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977 (exit $ac_status); } &&
0093c2fc 35978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35980 (eval $ac_try) 2>&5
35981 ac_status=$?
35982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983 (exit $ac_status); }; } &&
35984 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35986 (eval $ac_try) 2>&5
35987 ac_status=$?
35988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35989 (exit $ac_status); }; }; then
35990 eval "$as_ac_var=yes"
35991else
35992 echo "$as_me: failed program was:" >&5
35993sed 's/^/| /' conftest.$ac_ext >&5
35994
35995eval "$as_ac_var=no"
35996fi
ac1cb8d3
VS
35997rm -f conftest.err conftest.$ac_objext \
35998 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35999fi
36000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36002if test `eval echo '${'$as_ac_var'}'` = yes; then
36003 cat >>confdefs.h <<_ACEOF
36004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36005_ACEOF
36006 cat >>confdefs.h <<\_ACEOF
36007#define HAVE_INET_ATON 1
36008_ACEOF
36009
36010else
36011
36012 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36013echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36014echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36015if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36016 echo $ECHO_N "(cached) $ECHO_C" >&6
36017else
36018 ac_check_lib_save_LIBS=$LIBS
36019LIBS="-l$INET_LINK $LIBS"
36020cat >conftest.$ac_ext <<_ACEOF
36021/* confdefs.h. */
36022_ACEOF
36023cat confdefs.h >>conftest.$ac_ext
36024cat >>conftest.$ac_ext <<_ACEOF
36025/* end confdefs.h. */
36026
36027/* Override any gcc2 internal prototype to avoid an error. */
36028#ifdef __cplusplus
36029extern "C"
36030#endif
36031/* We use char because int might match the return type of a gcc2
36032 builtin and then its argument prototype would still apply. */
36033char inet_aton ();
36034int
36035main ()
36036{
36037inet_aton ();
36038 ;
36039 return 0;
36040}
36041_ACEOF
36042rm -f conftest.$ac_objext conftest$ac_exeext
36043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36044 (eval $ac_link) 2>conftest.er1
a848cd7e 36045 ac_status=$?
ac1cb8d3
VS
36046 grep -v '^ *+' conftest.er1 >conftest.err
36047 rm -f conftest.er1
36048 cat conftest.err >&5
a848cd7e
SC
36049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050 (exit $ac_status); } &&
0093c2fc 36051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36053 (eval $ac_try) 2>&5
36054 ac_status=$?
36055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056 (exit $ac_status); }; } &&
36057 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36059 (eval $ac_try) 2>&5
36060 ac_status=$?
36061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062 (exit $ac_status); }; }; then
36063 eval "$as_ac_Lib=yes"
36064else
36065 echo "$as_me: failed program was:" >&5
36066sed 's/^/| /' conftest.$ac_ext >&5
36067
36068eval "$as_ac_Lib=no"
36069fi
ac1cb8d3
VS
36070rm -f conftest.err conftest.$ac_objext \
36071 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36072LIBS=$ac_check_lib_save_LIBS
36073fi
36074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36075echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36076if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36077 cat >>confdefs.h <<\_ACEOF
36078#define HAVE_INET_ATON 1
36079_ACEOF
36080
36081fi
36082
36083
36084fi
36085done
36086
36087
36088if test "x$INET_LINK" != "x"; then
36089 cat >>confdefs.h <<\_ACEOF
36090#define HAVE_INET_ADDR 1
36091_ACEOF
36092
36093 INET_LINK=" -l$INET_LINK"
36094fi
36095
36096fi
36097
36098
36099
36100EXTRALIBS_ESD=
36101echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36102echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36103if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36104 echo $ECHO_N "(cached) $ECHO_C" >&6
36105else
36106 ac_check_lib_save_LIBS=$LIBS
36107LIBS="-lesd $LIBS"
36108cat >conftest.$ac_ext <<_ACEOF
36109/* confdefs.h. */
36110_ACEOF
36111cat confdefs.h >>conftest.$ac_ext
36112cat >>conftest.$ac_ext <<_ACEOF
36113/* end confdefs.h. */
36114
36115/* Override any gcc2 internal prototype to avoid an error. */
36116#ifdef __cplusplus
36117extern "C"
36118#endif
36119/* We use char because int might match the return type of a gcc2
36120 builtin and then its argument prototype would still apply. */
36121char esd_close ();
36122int
36123main ()
36124{
36125esd_close ();
36126 ;
36127 return 0;
36128}
36129_ACEOF
36130rm -f conftest.$ac_objext conftest$ac_exeext
36131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36132 (eval $ac_link) 2>conftest.er1
a848cd7e 36133 ac_status=$?
ac1cb8d3
VS
36134 grep -v '^ *+' conftest.er1 >conftest.err
36135 rm -f conftest.er1
36136 cat conftest.err >&5
a848cd7e
SC
36137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138 (exit $ac_status); } &&
0093c2fc 36139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36141 (eval $ac_try) 2>&5
36142 ac_status=$?
36143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36144 (exit $ac_status); }; } &&
36145 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36147 (eval $ac_try) 2>&5
36148 ac_status=$?
36149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 (exit $ac_status); }; }; then
36151 ac_cv_lib_esd_esd_close=yes
36152else
36153 echo "$as_me: failed program was:" >&5
36154sed 's/^/| /' conftest.$ac_ext >&5
36155
36156ac_cv_lib_esd_esd_close=no
36157fi
ac1cb8d3
VS
36158rm -f conftest.err conftest.$ac_objext \
36159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36160LIBS=$ac_check_lib_save_LIBS
36161fi
36162echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36163echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36164if test $ac_cv_lib_esd_esd_close = yes; then
36165
36166
36167for ac_header in esd.h
36168do
36169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36170if eval "test \"\${$as_ac_Header+set}\" = set"; then
36171 echo "$as_me:$LINENO: checking for $ac_header" >&5
36172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36173if eval "test \"\${$as_ac_Header+set}\" = set"; then
36174 echo $ECHO_N "(cached) $ECHO_C" >&6
36175fi
36176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36178else
36179 # Is the header compilable?
36180echo "$as_me:$LINENO: checking $ac_header usability" >&5
36181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36182cat >conftest.$ac_ext <<_ACEOF
36183/* confdefs.h. */
36184_ACEOF
36185cat confdefs.h >>conftest.$ac_ext
36186cat >>conftest.$ac_ext <<_ACEOF
36187/* end confdefs.h. */
36188$ac_includes_default
36189#include <$ac_header>
36190_ACEOF
36191rm -f conftest.$ac_objext
36192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36193 (eval $ac_compile) 2>conftest.er1
a848cd7e 36194 ac_status=$?
ac1cb8d3
VS
36195 grep -v '^ *+' conftest.er1 >conftest.err
36196 rm -f conftest.er1
36197 cat conftest.err >&5
a848cd7e
SC
36198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36199 (exit $ac_status); } &&
0093c2fc 36200 { ac_try='test -z "$ac_c_werror_flag" || 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_objext'
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_header_compiler=yes
36213else
36214 echo "$as_me: failed program was:" >&5
36215sed 's/^/| /' conftest.$ac_ext >&5
36216
36217ac_header_compiler=no
36218fi
ac1cb8d3 36219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36220echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36221echo "${ECHO_T}$ac_header_compiler" >&6
36222
36223# Is the header present?
36224echo "$as_me:$LINENO: checking $ac_header presence" >&5
36225echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36226cat >conftest.$ac_ext <<_ACEOF
36227/* confdefs.h. */
36228_ACEOF
36229cat confdefs.h >>conftest.$ac_ext
36230cat >>conftest.$ac_ext <<_ACEOF
36231/* end confdefs.h. */
36232#include <$ac_header>
36233_ACEOF
36234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36236 ac_status=$?
36237 grep -v '^ *+' conftest.er1 >conftest.err
36238 rm -f conftest.er1
36239 cat conftest.err >&5
36240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241 (exit $ac_status); } >/dev/null; then
36242 if test -s conftest.err; then
36243 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36245 else
36246 ac_cpp_err=
36247 fi
36248else
36249 ac_cpp_err=yes
36250fi
36251if test -z "$ac_cpp_err"; then
36252 ac_header_preproc=yes
36253else
36254 echo "$as_me: failed program was:" >&5
36255sed 's/^/| /' conftest.$ac_ext >&5
36256
36257 ac_header_preproc=no
36258fi
36259rm -f conftest.err conftest.$ac_ext
36260echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36261echo "${ECHO_T}$ac_header_preproc" >&6
36262
36263# So? What about this header?
ac1cb8d3
VS
36264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36265 yes:no: )
a848cd7e
SC
36266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36270 ac_header_preproc=yes
a848cd7e 36271 ;;
ac1cb8d3 36272 no:yes:* )
a848cd7e
SC
36273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36285 (
36286 cat <<\_ASBOX
ac1cb8d3
VS
36287## ----------------------------------------- ##
36288## Report this to wx-dev@lists.wxwidgets.org ##
36289## ----------------------------------------- ##
a848cd7e
SC
36290_ASBOX
36291 ) |
36292 sed "s/^/$as_me: WARNING: /" >&2
36293 ;;
36294esac
36295echo "$as_me:$LINENO: checking for $ac_header" >&5
36296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36297if eval "test \"\${$as_ac_Header+set}\" = set"; then
36298 echo $ECHO_N "(cached) $ECHO_C" >&6
36299else
ac1cb8d3 36300 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36301fi
36302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36304
36305fi
36306if test `eval echo '${'$as_ac_Header'}'` = yes; then
36307 cat >>confdefs.h <<_ACEOF
36308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36309_ACEOF
36310
36311 EXTRALIBS_ESD="-lesd"
36312
36313fi
36314
36315done
36316
36317
36318fi
36319
36320
36321
36322echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36323echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36324cat >conftest.$ac_ext <<_ACEOF
36325/* confdefs.h. */
36326_ACEOF
36327cat confdefs.h >>conftest.$ac_ext
36328cat >>conftest.$ac_ext <<_ACEOF
36329/* end confdefs.h. */
36330#ifdef __linux__
36331 #include <linux/cdrom.h>
36332 #else
36333 /* For Solaris */
36334 #include <sys/cdio.h>
36335 #endif
36336
36337int
36338main ()
36339{
36340struct cdrom_tocentry entry, old_entry;
36341 ;
36342 return 0;
36343}
36344_ACEOF
36345rm -f conftest.$ac_objext
36346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36347 (eval $ac_compile) 2>conftest.er1
a848cd7e 36348 ac_status=$?
ac1cb8d3
VS
36349 grep -v '^ *+' conftest.er1 >conftest.err
36350 rm -f conftest.er1
36351 cat conftest.err >&5
a848cd7e
SC
36352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353 (exit $ac_status); } &&
0093c2fc 36354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356 (eval $ac_try) 2>&5
36357 ac_status=$?
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); }; } &&
36360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362 (eval $ac_try) 2>&5
36363 ac_status=$?
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); }; }; then
36366 echo "$as_me:$LINENO: result: yes" >&5
36367echo "${ECHO_T}yes" >&6
36368 cat >>confdefs.h <<\_ACEOF
36369#define HAVE_KNOWN_CDROM_INTERFACE 1
36370_ACEOF
36371
36372else
36373 echo "$as_me: failed program was:" >&5
36374sed 's/^/| /' conftest.$ac_ext >&5
36375
36376echo "$as_me:$LINENO: result: no" >&5
36377echo "${ECHO_T}no" >&6
36378fi
ac1cb8d3 36379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36380
36381
36382cat >confcache <<\_ACEOF
36383# This file is a shell script that caches the results of configure
36384# tests run on this system so they can be shared between configure
36385# scripts and configure runs, see configure's option --config-cache.
36386# It is not useful on other systems. If it contains results you don't
36387# want to keep, you may remove or edit it.
36388#
36389# config.status only pays attention to the cache file if you give it
36390# the --recheck option to rerun configure.
36391#
36392# `ac_cv_env_foo' variables (set or unset) will be overridden when
36393# loading this file, other *unset* `ac_cv_foo' will be assigned the
36394# following values.
36395
36396_ACEOF
36397
36398# The following way of writing the cache mishandles newlines in values,
36399# but we know of no workaround that is simple, portable, and efficient.
36400# So, don't put newlines in cache variables' values.
36401# Ultrix sh set writes to stderr and can't be redirected directly,
36402# and sets the high bit in the cache file unless we assign to the vars.
36403{
36404 (set) 2>&1 |
36405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36406 *ac_space=\ *)
36407 # `set' does not quote correctly, so add quotes (double-quote
36408 # substitution turns \\\\ into \\, and sed turns \\ into \).
36409 sed -n \
ac1cb8d3
VS
36410 "s/'/'\\\\''/g;
36411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36412 ;;
36413 *)
36414 # `set' quotes correctly as required by POSIX, so do not add quotes.
36415 sed -n \
ac1cb8d3 36416 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36417 ;;
36418 esac;
36419} |
36420 sed '
36421 t clear
36422 : clear
36423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36424 t end
36425 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36426 : end' >>confcache
36427if diff $cache_file confcache >/dev/null 2>&1; then :; else
36428 if test -w $cache_file; then
36429 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36430 cat confcache >$cache_file
36431 else
36432 echo "not updating unwritable cache $cache_file"
36433 fi
36434fi
36435rm -f confcache
36436
36437
36438CPP_MT_FLAG=
36439if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36440
36441
36442 THREADS_LINK=
36443 THREADS_CFLAGS=
36444
36445 if test "$wxUSE_THREADS" = "yes" ; then
36446 if test "$USE_BEOS" = 1; then
36447 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36448echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36449 wxUSE_THREADS="no"
36450 fi
36451 fi
36452
36453 if test "$wxUSE_THREADS" = "yes" ; then
36454
36455
36456 THREAD_OPTS="-pthread"
36457 case "${host}" in
36458 *-*-solaris2* | *-*-sunos4* )
36459 if test "x$GCC" = "xyes"; then
36460 THREAD_OPTS="-pthreads $THREAD_OPTS"
36461 else
36462 THREAD_OPTS="-mt $THREAD_OPTS"
36463 fi
36464 ;;
36465 *-*-freebsd*)
36466 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36467 ;;
36468 *-*-darwin* | *-*-cygwin* )
36469 THREAD_OPTS=""
36470 ;;
36471 *-*-aix*)
36472 THREAD_OPTS="pthreads"
36473 ;;
36474 *-hp-hpux* )
00421666
MW
36475 if test "x$GCC" = "xyes"; then
36476 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36477 THREAD_OPTS=""
36478 else
0093c2fc 36479 THREAD_OPTS="-mt"
a848cd7e
SC
36480 fi
36481 ;;
36482
36483 *-*-irix* )
36484 if test "x$GCC" = "xyes"; then
36485 THREAD_OPTS=""
36486 fi
36487 ;;
36488
36489 *-*-*UnixWare*)
36490 if test "x$GCC" != "xyes"; then
36491 THREAD_OPTS="-Ethread"
36492 fi
36493 ;;
36494 esac
36495
36496 THREAD_OPTS="$THREAD_OPTS pthread none"
36497
36498 THREADS_OK=no
36499 for flag in $THREAD_OPTS; do
36500 case $flag in
36501 none)
36502 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36503echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36504 ;;
36505
36506 -*)
36507 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36508echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36509 THREADS_CFLAGS="$flag"
36510 ;;
36511
36512 *)
36513 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36514echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36515 THREADS_LINK="-l$flag"
36516 ;;
36517 esac
36518
36519 save_LIBS="$LIBS"
36520 save_CFLAGS="$CFLAGS"
36521 LIBS="$THREADS_LINK $LIBS"
36522 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36523
36524 cat >conftest.$ac_ext <<_ACEOF
36525/* confdefs.h. */
36526_ACEOF
36527cat confdefs.h >>conftest.$ac_ext
36528cat >>conftest.$ac_ext <<_ACEOF
36529/* end confdefs.h. */
36530#include <pthread.h>
36531int
36532main ()
36533{
36534pthread_create(0,0,0,0);
36535 ;
36536 return 0;
36537}
36538_ACEOF
36539rm -f conftest.$ac_objext conftest$ac_exeext
36540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36541 (eval $ac_link) 2>conftest.er1
a848cd7e 36542 ac_status=$?
ac1cb8d3
VS
36543 grep -v '^ *+' conftest.er1 >conftest.err
36544 rm -f conftest.er1
36545 cat conftest.err >&5
a848cd7e
SC
36546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); } &&
0093c2fc 36548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36550 (eval $ac_try) 2>&5
36551 ac_status=$?
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); }; } &&
36554 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36556 (eval $ac_try) 2>&5
36557 ac_status=$?
36558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559 (exit $ac_status); }; }; then
36560 THREADS_OK=yes
36561else
36562 echo "$as_me: failed program was:" >&5
36563sed 's/^/| /' conftest.$ac_ext >&5
36564
36565fi
ac1cb8d3
VS
36566rm -f conftest.err conftest.$ac_objext \
36567 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36568
36569 LIBS="$save_LIBS"
36570 CFLAGS="$save_CFLAGS"
36571
36572 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36573echo "${ECHO_T}$THREADS_OK" >&6
36574 if test "x$THREADS_OK" = "xyes"; then
36575 break;
36576 fi
36577
36578 THREADS_LINK=""
36579 THREADS_CFLAGS=""
36580 done
36581
36582 if test "x$THREADS_OK" != "xyes"; then
36583 wxUSE_THREADS=no
36584 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36585echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36586 else
36587 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36588 LIBS="$THREADS_LINK $LIBS"
36589
36590 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36591echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36592 flag=no
36593 case "${host}" in
36594 *-aix*)
36595 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36596 flag="-D_THREAD_SAFE"
36597 ;;
36598 *-freebsd*)
36599 flag="-D_THREAD_SAFE"
36600 ;;
36601 *-hp-hpux* )
36602 flag="-D_REENTRANT"
36603 if test "x$GCC" != "xyes"; then
36604 flag="$flag -D_RWSTD_MULTI_THREAD"
36605 fi
36606 ;;
36607 *solaris* | alpha*-osf*)
36608 flag="-D_REENTRANT"
36609 ;;
36610 esac
36611 echo "$as_me:$LINENO: result: ${flag}" >&5
36612echo "${ECHO_T}${flag}" >&6
36613 if test "x$flag" != xno; then
36614 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36615 fi
36616
36617 if test "x$THREADS_CFLAGS" != "x"; then
36618 CFLAGS="$CFLAGS $THREADS_CFLAGS"
36619 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
36620 fi
36621 fi
36622 fi
36623
36624 if test "$wxUSE_THREADS" = "yes" ; then
36625
36626for ac_func in thr_setconcurrency
36627do
36628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36629echo "$as_me:$LINENO: checking for $ac_func" >&5
36630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36631if eval "test \"\${$as_ac_var+set}\" = set"; then
36632 echo $ECHO_N "(cached) $ECHO_C" >&6
36633else
36634 cat >conftest.$ac_ext <<_ACEOF
36635/* confdefs.h. */
36636_ACEOF
36637cat confdefs.h >>conftest.$ac_ext
36638cat >>conftest.$ac_ext <<_ACEOF
36639/* end confdefs.h. */
ac1cb8d3
VS
36640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36642#define $ac_func innocuous_$ac_func
36643
a848cd7e
SC
36644/* System header to define __stub macros and hopefully few prototypes,
36645 which can conflict with char $ac_func (); below.
36646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36647 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36648
a848cd7e
SC
36649#ifdef __STDC__
36650# include <limits.h>
36651#else
36652# include <assert.h>
36653#endif
ac1cb8d3
VS
36654
36655#undef $ac_func
36656
a848cd7e
SC
36657/* Override any gcc2 internal prototype to avoid an error. */
36658#ifdef __cplusplus
36659extern "C"
36660{
36661#endif
36662/* We use char because int might match the return type of a gcc2
36663 builtin and then its argument prototype would still apply. */
36664char $ac_func ();
36665/* The GNU C library defines this for functions which it implements
36666 to always fail with ENOSYS. Some functions are actually named
36667 something starting with __ and the normal name is an alias. */
36668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36669choke me
36670#else
36671char (*f) () = $ac_func;
36672#endif
36673#ifdef __cplusplus
36674}
36675#endif
36676
36677int
36678main ()
36679{
36680return f != $ac_func;
36681 ;
36682 return 0;
36683}
36684_ACEOF
36685rm -f conftest.$ac_objext conftest$ac_exeext
36686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36687 (eval $ac_link) 2>conftest.er1
a848cd7e 36688 ac_status=$?
ac1cb8d3
VS
36689 grep -v '^ *+' conftest.er1 >conftest.err
36690 rm -f conftest.er1
36691 cat conftest.err >&5
a848cd7e
SC
36692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693 (exit $ac_status); } &&
0093c2fc 36694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36696 (eval $ac_try) 2>&5
36697 ac_status=$?
36698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36699 (exit $ac_status); }; } &&
36700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36702 (eval $ac_try) 2>&5
36703 ac_status=$?
36704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36705 (exit $ac_status); }; }; then
36706 eval "$as_ac_var=yes"
36707else
36708 echo "$as_me: failed program was:" >&5
36709sed 's/^/| /' conftest.$ac_ext >&5
36710
36711eval "$as_ac_var=no"
36712fi
ac1cb8d3
VS
36713rm -f conftest.err conftest.$ac_objext \
36714 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36715fi
36716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36718if test `eval echo '${'$as_ac_var'}'` = yes; then
36719 cat >>confdefs.h <<_ACEOF
36720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36721_ACEOF
36722
36723fi
36724done
36725
36726
6ebeb4c7
VZ
36727 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36728echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36729if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36730 echo $ECHO_N "(cached) $ECHO_C" >&6
36731else
36732
36733 cat >conftest.$ac_ext <<_ACEOF
36734/* confdefs.h. */
36735_ACEOF
36736cat confdefs.h >>conftest.$ac_ext
36737cat >>conftest.$ac_ext <<_ACEOF
36738/* end confdefs.h. */
36739#include <pthread.h>
36740 void ThreadCleanupFunc(void *p);
36741
36742int
36743main ()
36744{
36745
36746 void *p;
36747 pthread_cleanup_push(ThreadCleanupFunc, p);
36748 pthread_cleanup_pop(0);
36749
36750 ;
36751 return 0;
36752}
36753_ACEOF
36754rm -f conftest.$ac_objext
36755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36756 (eval $ac_compile) 2>conftest.er1
36757 ac_status=$?
36758 grep -v '^ *+' conftest.er1 >conftest.err
36759 rm -f conftest.er1
36760 cat conftest.err >&5
36761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36762 (exit $ac_status); } &&
0093c2fc 36763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36765 (eval $ac_try) 2>&5
36766 ac_status=$?
36767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768 (exit $ac_status); }; } &&
36769 { ac_try='test -s conftest.$ac_objext'
36770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36771 (eval $ac_try) 2>&5
36772 ac_status=$?
36773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36774 (exit $ac_status); }; }; then
36775
36776 wx_cv_func_pthread_cleanup=yes
36777
36778else
36779 echo "$as_me: failed program was:" >&5
36780sed 's/^/| /' conftest.$ac_ext >&5
36781
36782
36783 wx_cv_func_pthread_cleanup=no
36784
36785
36786fi
36787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36788
36789fi
36790echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36791echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36792 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36793 cat >>confdefs.h <<\_ACEOF
36794#define wxHAVE_PTHREAD_CLEANUP 1
36795_ACEOF
36796
36797 fi
36798
a848cd7e
SC
36799
36800for ac_header in sched.h
36801do
36802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36803if eval "test \"\${$as_ac_Header+set}\" = set"; then
36804 echo "$as_me:$LINENO: checking for $ac_header" >&5
36805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36806if eval "test \"\${$as_ac_Header+set}\" = set"; then
36807 echo $ECHO_N "(cached) $ECHO_C" >&6
36808fi
36809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36811else
36812 # Is the header compilable?
36813echo "$as_me:$LINENO: checking $ac_header usability" >&5
36814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36815cat >conftest.$ac_ext <<_ACEOF
36816/* confdefs.h. */
36817_ACEOF
36818cat confdefs.h >>conftest.$ac_ext
36819cat >>conftest.$ac_ext <<_ACEOF
36820/* end confdefs.h. */
36821$ac_includes_default
36822#include <$ac_header>
36823_ACEOF
36824rm -f conftest.$ac_objext
36825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36826 (eval $ac_compile) 2>conftest.er1
a848cd7e 36827 ac_status=$?
ac1cb8d3
VS
36828 grep -v '^ *+' conftest.er1 >conftest.err
36829 rm -f conftest.er1
36830 cat conftest.err >&5
a848cd7e
SC
36831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36832 (exit $ac_status); } &&
0093c2fc 36833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36835 (eval $ac_try) 2>&5
36836 ac_status=$?
36837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36838 (exit $ac_status); }; } &&
36839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36841 (eval $ac_try) 2>&5
36842 ac_status=$?
36843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36844 (exit $ac_status); }; }; then
36845 ac_header_compiler=yes
36846else
36847 echo "$as_me: failed program was:" >&5
36848sed 's/^/| /' conftest.$ac_ext >&5
36849
36850ac_header_compiler=no
36851fi
ac1cb8d3 36852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36854echo "${ECHO_T}$ac_header_compiler" >&6
36855
36856# Is the header present?
36857echo "$as_me:$LINENO: checking $ac_header presence" >&5
36858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36859cat >conftest.$ac_ext <<_ACEOF
36860/* confdefs.h. */
36861_ACEOF
36862cat confdefs.h >>conftest.$ac_ext
36863cat >>conftest.$ac_ext <<_ACEOF
36864/* end confdefs.h. */
36865#include <$ac_header>
36866_ACEOF
36867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36869 ac_status=$?
36870 grep -v '^ *+' conftest.er1 >conftest.err
36871 rm -f conftest.er1
36872 cat conftest.err >&5
36873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874 (exit $ac_status); } >/dev/null; then
36875 if test -s conftest.err; then
36876 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36878 else
36879 ac_cpp_err=
36880 fi
36881else
36882 ac_cpp_err=yes
36883fi
36884if test -z "$ac_cpp_err"; then
36885 ac_header_preproc=yes
36886else
36887 echo "$as_me: failed program was:" >&5
36888sed 's/^/| /' conftest.$ac_ext >&5
36889
36890 ac_header_preproc=no
36891fi
36892rm -f conftest.err conftest.$ac_ext
36893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36894echo "${ECHO_T}$ac_header_preproc" >&6
36895
36896# So? What about this header?
ac1cb8d3
VS
36897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36898 yes:no: )
a848cd7e
SC
36899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36903 ac_header_preproc=yes
a848cd7e 36904 ;;
ac1cb8d3 36905 no:yes:* )
a848cd7e
SC
36906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36909echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36913echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36918 (
36919 cat <<\_ASBOX
ac1cb8d3
VS
36920## ----------------------------------------- ##
36921## Report this to wx-dev@lists.wxwidgets.org ##
36922## ----------------------------------------- ##
a848cd7e
SC
36923_ASBOX
36924 ) |
36925 sed "s/^/$as_me: WARNING: /" >&2
36926 ;;
36927esac
36928echo "$as_me:$LINENO: checking for $ac_header" >&5
36929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36930if eval "test \"\${$as_ac_Header+set}\" = set"; then
36931 echo $ECHO_N "(cached) $ECHO_C" >&6
36932else
ac1cb8d3 36933 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36934fi
36935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36937
36938fi
36939if test `eval echo '${'$as_ac_Header'}'` = yes; then
36940 cat >>confdefs.h <<_ACEOF
36941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36942_ACEOF
36943
36944fi
36945
36946done
36947
36948 if test "$ac_cv_header_sched_h" = "yes"; then
36949 echo "$as_me:$LINENO: checking for sched_yield" >&5
36950echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36951if test "${ac_cv_func_sched_yield+set}" = set; then
36952 echo $ECHO_N "(cached) $ECHO_C" >&6
36953else
36954 cat >conftest.$ac_ext <<_ACEOF
36955/* confdefs.h. */
36956_ACEOF
36957cat confdefs.h >>conftest.$ac_ext
36958cat >>conftest.$ac_ext <<_ACEOF
36959/* end confdefs.h. */
ac1cb8d3
VS
36960/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36962#define sched_yield innocuous_sched_yield
36963
a848cd7e
SC
36964/* System header to define __stub macros and hopefully few prototypes,
36965 which can conflict with char sched_yield (); below.
36966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36967 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36968
a848cd7e
SC
36969#ifdef __STDC__
36970# include <limits.h>
36971#else
36972# include <assert.h>
36973#endif
ac1cb8d3
VS
36974
36975#undef sched_yield
36976
a848cd7e
SC
36977/* Override any gcc2 internal prototype to avoid an error. */
36978#ifdef __cplusplus
36979extern "C"
36980{
36981#endif
36982/* We use char because int might match the return type of a gcc2
36983 builtin and then its argument prototype would still apply. */
36984char sched_yield ();
36985/* The GNU C library defines this for functions which it implements
36986 to always fail with ENOSYS. Some functions are actually named
36987 something starting with __ and the normal name is an alias. */
36988#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36989choke me
36990#else
36991char (*f) () = sched_yield;
36992#endif
36993#ifdef __cplusplus
36994}
36995#endif
36996
36997int
36998main ()
36999{
37000return f != sched_yield;
37001 ;
37002 return 0;
37003}
37004_ACEOF
37005rm -f conftest.$ac_objext conftest$ac_exeext
37006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37007 (eval $ac_link) 2>conftest.er1
a848cd7e 37008 ac_status=$?
ac1cb8d3
VS
37009 grep -v '^ *+' conftest.er1 >conftest.err
37010 rm -f conftest.er1
37011 cat conftest.err >&5
a848cd7e
SC
37012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013 (exit $ac_status); } &&
0093c2fc 37014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37016 (eval $ac_try) 2>&5
37017 ac_status=$?
37018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019 (exit $ac_status); }; } &&
37020 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37022 (eval $ac_try) 2>&5
37023 ac_status=$?
37024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37025 (exit $ac_status); }; }; then
37026 ac_cv_func_sched_yield=yes
37027else
37028 echo "$as_me: failed program was:" >&5
37029sed 's/^/| /' conftest.$ac_ext >&5
37030
37031ac_cv_func_sched_yield=no
37032fi
ac1cb8d3
VS
37033rm -f conftest.err conftest.$ac_objext \
37034 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37035fi
37036echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37037echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37038if test $ac_cv_func_sched_yield = yes; then
37039 cat >>confdefs.h <<\_ACEOF
37040#define HAVE_SCHED_YIELD 1
37041_ACEOF
37042
37043else
37044
37045 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37046echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37047if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37048 echo $ECHO_N "(cached) $ECHO_C" >&6
37049else
37050 ac_check_lib_save_LIBS=$LIBS
37051LIBS="-lposix4 $LIBS"
37052cat >conftest.$ac_ext <<_ACEOF
37053/* confdefs.h. */
37054_ACEOF
37055cat confdefs.h >>conftest.$ac_ext
37056cat >>conftest.$ac_ext <<_ACEOF
37057/* end confdefs.h. */
37058
37059/* Override any gcc2 internal prototype to avoid an error. */
37060#ifdef __cplusplus
37061extern "C"
37062#endif
37063/* We use char because int might match the return type of a gcc2
37064 builtin and then its argument prototype would still apply. */
37065char sched_yield ();
37066int
37067main ()
37068{
37069sched_yield ();
37070 ;
37071 return 0;
37072}
37073_ACEOF
37074rm -f conftest.$ac_objext conftest$ac_exeext
37075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37076 (eval $ac_link) 2>conftest.er1
a848cd7e 37077 ac_status=$?
ac1cb8d3
VS
37078 grep -v '^ *+' conftest.er1 >conftest.err
37079 rm -f conftest.er1
37080 cat conftest.err >&5
a848cd7e
SC
37081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082 (exit $ac_status); } &&
0093c2fc 37083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37085 (eval $ac_try) 2>&5
37086 ac_status=$?
37087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37088 (exit $ac_status); }; } &&
37089 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37091 (eval $ac_try) 2>&5
37092 ac_status=$?
37093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37094 (exit $ac_status); }; }; then
37095 ac_cv_lib_posix4_sched_yield=yes
37096else
37097 echo "$as_me: failed program was:" >&5
37098sed 's/^/| /' conftest.$ac_ext >&5
37099
37100ac_cv_lib_posix4_sched_yield=no
37101fi
ac1cb8d3
VS
37102rm -f conftest.err conftest.$ac_objext \
37103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37104LIBS=$ac_check_lib_save_LIBS
37105fi
37106echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37107echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37108if test $ac_cv_lib_posix4_sched_yield = yes; then
37109 cat >>confdefs.h <<\_ACEOF
37110#define HAVE_SCHED_YIELD 1
37111_ACEOF
37112 POSIX4_LINK=" -lposix4"
37113else
37114 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37115echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37116
37117fi
37118
37119
37120
37121fi
37122
37123 fi
37124
37125 HAVE_PRIOR_FUNCS=0
37126 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37127echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37128if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37129 echo $ECHO_N "(cached) $ECHO_C" >&6
37130else
37131 cat >conftest.$ac_ext <<_ACEOF
37132/* confdefs.h. */
37133_ACEOF
37134cat confdefs.h >>conftest.$ac_ext
37135cat >>conftest.$ac_ext <<_ACEOF
37136/* end confdefs.h. */
ac1cb8d3
VS
37137/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37139#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37140
a848cd7e
SC
37141/* System header to define __stub macros and hopefully few prototypes,
37142 which can conflict with char pthread_attr_getschedpolicy (); below.
37143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37144 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37145
a848cd7e
SC
37146#ifdef __STDC__
37147# include <limits.h>
37148#else
37149# include <assert.h>
37150#endif
ac1cb8d3
VS
37151
37152#undef pthread_attr_getschedpolicy
37153
a848cd7e
SC
37154/* Override any gcc2 internal prototype to avoid an error. */
37155#ifdef __cplusplus
37156extern "C"
37157{
37158#endif
37159/* We use char because int might match the return type of a gcc2
37160 builtin and then its argument prototype would still apply. */
37161char pthread_attr_getschedpolicy ();
37162/* The GNU C library defines this for functions which it implements
37163 to always fail with ENOSYS. Some functions are actually named
37164 something starting with __ and the normal name is an alias. */
37165#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37166choke me
37167#else
37168char (*f) () = pthread_attr_getschedpolicy;
37169#endif
37170#ifdef __cplusplus
37171}
37172#endif
37173
37174int
37175main ()
37176{
37177return f != pthread_attr_getschedpolicy;
37178 ;
37179 return 0;
37180}
37181_ACEOF
37182rm -f conftest.$ac_objext conftest$ac_exeext
37183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37184 (eval $ac_link) 2>conftest.er1
a848cd7e 37185 ac_status=$?
ac1cb8d3
VS
37186 grep -v '^ *+' conftest.er1 >conftest.err
37187 rm -f conftest.er1
37188 cat conftest.err >&5
a848cd7e
SC
37189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190 (exit $ac_status); } &&
0093c2fc 37191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37193 (eval $ac_try) 2>&5
37194 ac_status=$?
37195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37196 (exit $ac_status); }; } &&
37197 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37199 (eval $ac_try) 2>&5
37200 ac_status=$?
37201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37202 (exit $ac_status); }; }; then
37203 ac_cv_func_pthread_attr_getschedpolicy=yes
37204else
37205 echo "$as_me: failed program was:" >&5
37206sed 's/^/| /' conftest.$ac_ext >&5
37207
37208ac_cv_func_pthread_attr_getschedpolicy=no
37209fi
ac1cb8d3
VS
37210rm -f conftest.err conftest.$ac_objext \
37211 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37212fi
37213echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37214echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37215if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37216 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37217echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37218if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37219 echo $ECHO_N "(cached) $ECHO_C" >&6
37220else
37221 cat >conftest.$ac_ext <<_ACEOF
37222/* confdefs.h. */
37223_ACEOF
37224cat confdefs.h >>conftest.$ac_ext
37225cat >>conftest.$ac_ext <<_ACEOF
37226/* end confdefs.h. */
ac1cb8d3
VS
37227/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37229#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37230
a848cd7e
SC
37231/* System header to define __stub macros and hopefully few prototypes,
37232 which can conflict with char pthread_attr_setschedparam (); below.
37233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37234 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37235
a848cd7e
SC
37236#ifdef __STDC__
37237# include <limits.h>
37238#else
37239# include <assert.h>
37240#endif
ac1cb8d3
VS
37241
37242#undef pthread_attr_setschedparam
37243
a848cd7e
SC
37244/* Override any gcc2 internal prototype to avoid an error. */
37245#ifdef __cplusplus
37246extern "C"
37247{
37248#endif
37249/* We use char because int might match the return type of a gcc2
37250 builtin and then its argument prototype would still apply. */
37251char pthread_attr_setschedparam ();
37252/* The GNU C library defines this for functions which it implements
37253 to always fail with ENOSYS. Some functions are actually named
37254 something starting with __ and the normal name is an alias. */
37255#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37256choke me
37257#else
37258char (*f) () = pthread_attr_setschedparam;
37259#endif
37260#ifdef __cplusplus
37261}
37262#endif
37263
37264int
37265main ()
37266{
37267return f != pthread_attr_setschedparam;
37268 ;
37269 return 0;
37270}
37271_ACEOF
37272rm -f conftest.$ac_objext conftest$ac_exeext
37273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37274 (eval $ac_link) 2>conftest.er1
a848cd7e 37275 ac_status=$?
ac1cb8d3
VS
37276 grep -v '^ *+' conftest.er1 >conftest.err
37277 rm -f conftest.er1
37278 cat conftest.err >&5
a848cd7e
SC
37279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280 (exit $ac_status); } &&
0093c2fc 37281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37283 (eval $ac_try) 2>&5
37284 ac_status=$?
37285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286 (exit $ac_status); }; } &&
37287 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37289 (eval $ac_try) 2>&5
37290 ac_status=$?
37291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37292 (exit $ac_status); }; }; then
37293 ac_cv_func_pthread_attr_setschedparam=yes
37294else
37295 echo "$as_me: failed program was:" >&5
37296sed 's/^/| /' conftest.$ac_ext >&5
37297
37298ac_cv_func_pthread_attr_setschedparam=no
37299fi
ac1cb8d3
VS
37300rm -f conftest.err conftest.$ac_objext \
37301 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37302fi
37303echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37304echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37305if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37306 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37307echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37308if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37309 echo $ECHO_N "(cached) $ECHO_C" >&6
37310else
37311 cat >conftest.$ac_ext <<_ACEOF
37312/* confdefs.h. */
37313_ACEOF
37314cat confdefs.h >>conftest.$ac_ext
37315cat >>conftest.$ac_ext <<_ACEOF
37316/* end confdefs.h. */
ac1cb8d3
VS
37317/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37319#define sched_get_priority_max innocuous_sched_get_priority_max
37320
a848cd7e
SC
37321/* System header to define __stub macros and hopefully few prototypes,
37322 which can conflict with char sched_get_priority_max (); below.
37323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37324 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37325
a848cd7e
SC
37326#ifdef __STDC__
37327# include <limits.h>
37328#else
37329# include <assert.h>
37330#endif
ac1cb8d3
VS
37331
37332#undef sched_get_priority_max
37333
a848cd7e
SC
37334/* Override any gcc2 internal prototype to avoid an error. */
37335#ifdef __cplusplus
37336extern "C"
37337{
37338#endif
37339/* We use char because int might match the return type of a gcc2
37340 builtin and then its argument prototype would still apply. */
37341char sched_get_priority_max ();
37342/* The GNU C library defines this for functions which it implements
37343 to always fail with ENOSYS. Some functions are actually named
37344 something starting with __ and the normal name is an alias. */
37345#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37346choke me
37347#else
37348char (*f) () = sched_get_priority_max;
37349#endif
37350#ifdef __cplusplus
37351}
37352#endif
37353
37354int
37355main ()
37356{
37357return f != sched_get_priority_max;
37358 ;
37359 return 0;
37360}
37361_ACEOF
37362rm -f conftest.$ac_objext conftest$ac_exeext
37363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37364 (eval $ac_link) 2>conftest.er1
a848cd7e 37365 ac_status=$?
ac1cb8d3
VS
37366 grep -v '^ *+' conftest.er1 >conftest.err
37367 rm -f conftest.er1
37368 cat conftest.err >&5
a848cd7e
SC
37369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37370 (exit $ac_status); } &&
0093c2fc 37371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37373 (eval $ac_try) 2>&5
37374 ac_status=$?
37375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37376 (exit $ac_status); }; } &&
37377 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37379 (eval $ac_try) 2>&5
37380 ac_status=$?
37381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382 (exit $ac_status); }; }; then
37383 ac_cv_func_sched_get_priority_max=yes
37384else
37385 echo "$as_me: failed program was:" >&5
37386sed 's/^/| /' conftest.$ac_ext >&5
37387
37388ac_cv_func_sched_get_priority_max=no
37389fi
ac1cb8d3
VS
37390rm -f conftest.err conftest.$ac_objext \
37391 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37392fi
37393echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37394echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37395if test $ac_cv_func_sched_get_priority_max = yes; then
37396 HAVE_PRIOR_FUNCS=1
37397else
37398 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37399echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37400if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37401 echo $ECHO_N "(cached) $ECHO_C" >&6
37402else
37403 ac_check_lib_save_LIBS=$LIBS
37404LIBS="-lposix4 $LIBS"
37405cat >conftest.$ac_ext <<_ACEOF
37406/* confdefs.h. */
37407_ACEOF
37408cat confdefs.h >>conftest.$ac_ext
37409cat >>conftest.$ac_ext <<_ACEOF
37410/* end confdefs.h. */
37411
37412/* Override any gcc2 internal prototype to avoid an error. */
37413#ifdef __cplusplus
37414extern "C"
37415#endif
37416/* We use char because int might match the return type of a gcc2
37417 builtin and then its argument prototype would still apply. */
37418char sched_get_priority_max ();
37419int
37420main ()
37421{
37422sched_get_priority_max ();
37423 ;
37424 return 0;
37425}
37426_ACEOF
37427rm -f conftest.$ac_objext conftest$ac_exeext
37428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37429 (eval $ac_link) 2>conftest.er1
a848cd7e 37430 ac_status=$?
ac1cb8d3
VS
37431 grep -v '^ *+' conftest.er1 >conftest.err
37432 rm -f conftest.er1
37433 cat conftest.err >&5
a848cd7e
SC
37434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435 (exit $ac_status); } &&
0093c2fc 37436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37438 (eval $ac_try) 2>&5
37439 ac_status=$?
37440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37441 (exit $ac_status); }; } &&
37442 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37444 (eval $ac_try) 2>&5
37445 ac_status=$?
37446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447 (exit $ac_status); }; }; then
37448 ac_cv_lib_posix4_sched_get_priority_max=yes
37449else
37450 echo "$as_me: failed program was:" >&5
37451sed 's/^/| /' conftest.$ac_ext >&5
37452
37453ac_cv_lib_posix4_sched_get_priority_max=no
37454fi
ac1cb8d3
VS
37455rm -f conftest.err conftest.$ac_objext \
37456 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37457LIBS=$ac_check_lib_save_LIBS
37458fi
37459echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37460echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37461if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37462
37463 HAVE_PRIOR_FUNCS=1
37464 POSIX4_LINK=" -lposix4"
37465
37466fi
37467
37468
37469fi
37470
37471
37472fi
37473
37474
37475fi
37476
37477
37478 if test "$HAVE_PRIOR_FUNCS" = 1; then
37479 cat >>confdefs.h <<\_ACEOF
37480#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37481_ACEOF
37482
37483 else
37484 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37485echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37486 fi
37487
37488 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37489echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37490if test "${ac_cv_func_pthread_cancel+set}" = set; then
37491 echo $ECHO_N "(cached) $ECHO_C" >&6
37492else
37493 cat >conftest.$ac_ext <<_ACEOF
37494/* confdefs.h. */
37495_ACEOF
37496cat confdefs.h >>conftest.$ac_ext
37497cat >>conftest.$ac_ext <<_ACEOF
37498/* end confdefs.h. */
ac1cb8d3
VS
37499/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37501#define pthread_cancel innocuous_pthread_cancel
37502
a848cd7e
SC
37503/* System header to define __stub macros and hopefully few prototypes,
37504 which can conflict with char pthread_cancel (); below.
37505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37506 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37507
a848cd7e
SC
37508#ifdef __STDC__
37509# include <limits.h>
37510#else
37511# include <assert.h>
37512#endif
ac1cb8d3
VS
37513
37514#undef pthread_cancel
37515
a848cd7e
SC
37516/* Override any gcc2 internal prototype to avoid an error. */
37517#ifdef __cplusplus
37518extern "C"
37519{
37520#endif
37521/* We use char because int might match the return type of a gcc2
37522 builtin and then its argument prototype would still apply. */
37523char pthread_cancel ();
37524/* The GNU C library defines this for functions which it implements
37525 to always fail with ENOSYS. Some functions are actually named
37526 something starting with __ and the normal name is an alias. */
37527#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37528choke me
37529#else
37530char (*f) () = pthread_cancel;
37531#endif
37532#ifdef __cplusplus
37533}
37534#endif
37535
37536int
37537main ()
37538{
37539return f != pthread_cancel;
37540 ;
37541 return 0;
37542}
37543_ACEOF
37544rm -f conftest.$ac_objext conftest$ac_exeext
37545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37546 (eval $ac_link) 2>conftest.er1
a848cd7e 37547 ac_status=$?
ac1cb8d3
VS
37548 grep -v '^ *+' conftest.er1 >conftest.err
37549 rm -f conftest.er1
37550 cat conftest.err >&5
a848cd7e
SC
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); } &&
0093c2fc 37553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37555 (eval $ac_try) 2>&5
37556 ac_status=$?
37557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558 (exit $ac_status); }; } &&
37559 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37561 (eval $ac_try) 2>&5
37562 ac_status=$?
37563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564 (exit $ac_status); }; }; then
37565 ac_cv_func_pthread_cancel=yes
37566else
37567 echo "$as_me: failed program was:" >&5
37568sed 's/^/| /' conftest.$ac_ext >&5
37569
37570ac_cv_func_pthread_cancel=no
37571fi
ac1cb8d3
VS
37572rm -f conftest.err conftest.$ac_objext \
37573 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37574fi
37575echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37576echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37577if test $ac_cv_func_pthread_cancel = yes; then
37578 cat >>confdefs.h <<\_ACEOF
37579#define HAVE_PTHREAD_CANCEL 1
37580_ACEOF
37581
37582else
37583 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37584echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37585fi
37586
37587
abc736fd
MW
37588 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37589echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37590if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37591 echo $ECHO_N "(cached) $ECHO_C" >&6
37592else
37593 cat >conftest.$ac_ext <<_ACEOF
37594/* confdefs.h. */
37595_ACEOF
37596cat confdefs.h >>conftest.$ac_ext
37597cat >>conftest.$ac_ext <<_ACEOF
37598/* end confdefs.h. */
37599/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37601#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37602
37603/* System header to define __stub macros and hopefully few prototypes,
37604 which can conflict with char pthread_attr_setstacksize (); below.
37605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37606 <limits.h> exists even on freestanding compilers. */
37607
37608#ifdef __STDC__
37609# include <limits.h>
37610#else
37611# include <assert.h>
37612#endif
37613
37614#undef pthread_attr_setstacksize
37615
37616/* Override any gcc2 internal prototype to avoid an error. */
37617#ifdef __cplusplus
37618extern "C"
37619{
37620#endif
37621/* We use char because int might match the return type of a gcc2
37622 builtin and then its argument prototype would still apply. */
37623char pthread_attr_setstacksize ();
37624/* The GNU C library defines this for functions which it implements
37625 to always fail with ENOSYS. Some functions are actually named
37626 something starting with __ and the normal name is an alias. */
37627#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37628choke me
37629#else
37630char (*f) () = pthread_attr_setstacksize;
37631#endif
37632#ifdef __cplusplus
37633}
37634#endif
37635
37636int
37637main ()
37638{
37639return f != pthread_attr_setstacksize;
37640 ;
37641 return 0;
37642}
37643_ACEOF
37644rm -f conftest.$ac_objext conftest$ac_exeext
37645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37646 (eval $ac_link) 2>conftest.er1
37647 ac_status=$?
37648 grep -v '^ *+' conftest.er1 >conftest.err
37649 rm -f conftest.er1
37650 cat conftest.err >&5
37651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652 (exit $ac_status); } &&
0093c2fc 37653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
37654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37655 (eval $ac_try) 2>&5
37656 ac_status=$?
37657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658 (exit $ac_status); }; } &&
37659 { ac_try='test -s conftest$ac_exeext'
37660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37661 (eval $ac_try) 2>&5
37662 ac_status=$?
37663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37664 (exit $ac_status); }; }; then
37665 ac_cv_func_pthread_attr_setstacksize=yes
37666else
37667 echo "$as_me: failed program was:" >&5
37668sed 's/^/| /' conftest.$ac_ext >&5
37669
37670ac_cv_func_pthread_attr_setstacksize=no
37671fi
37672rm -f conftest.err conftest.$ac_objext \
37673 conftest$ac_exeext conftest.$ac_ext
37674fi
37675echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37676echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37677if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37678 cat >>confdefs.h <<\_ACEOF
37679#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37680_ACEOF
37681
37682fi
37683
a848cd7e
SC
37684
37685
37686 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37687echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37688if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37689 echo $ECHO_N "(cached) $ECHO_C" >&6
37690else
37691
37692 cat >conftest.$ac_ext <<_ACEOF
37693/* confdefs.h. */
37694_ACEOF
37695cat confdefs.h >>conftest.$ac_ext
37696cat >>conftest.$ac_ext <<_ACEOF
37697/* end confdefs.h. */
37698#include <pthread.h>
37699int
37700main ()
37701{
37702
37703 pthread_mutexattr_t attr;
37704 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37705
37706 ;
37707 return 0;
37708}
37709_ACEOF
37710rm -f conftest.$ac_objext
37711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37712 (eval $ac_compile) 2>conftest.er1
a848cd7e 37713 ac_status=$?
ac1cb8d3
VS
37714 grep -v '^ *+' conftest.er1 >conftest.err
37715 rm -f conftest.er1
37716 cat conftest.err >&5
a848cd7e
SC
37717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718 (exit $ac_status); } &&
0093c2fc 37719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37721 (eval $ac_try) 2>&5
37722 ac_status=$?
37723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724 (exit $ac_status); }; } &&
37725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37727 (eval $ac_try) 2>&5
37728 ac_status=$?
37729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37730 (exit $ac_status); }; }; then
123dca7d 37731 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
37732else
37733 echo "$as_me: failed program was:" >&5
37734sed 's/^/| /' conftest.$ac_ext >&5
37735
123dca7d 37736wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
37737
37738fi
ac1cb8d3 37739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37740
37741fi
37742echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37743echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37744
37745 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37746 cat >>confdefs.h <<\_ACEOF
37747#define HAVE_PTHREAD_MUTEXATTR_T 1
37748_ACEOF
37749
123dca7d
VZ
37750
37751 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37752echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37753if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37754 echo $ECHO_N "(cached) $ECHO_C" >&6
37755else
37756
37757 cat >conftest.$ac_ext <<_ACEOF
37758/* confdefs.h. */
37759_ACEOF
37760cat confdefs.h >>conftest.$ac_ext
37761cat >>conftest.$ac_ext <<_ACEOF
37762/* end confdefs.h. */
37763#include <pthread.h>
37764int
37765main ()
37766{
37767
37768 pthread_mutexattr_t attr;
37769 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37770
37771 ;
37772 return 0;
37773}
37774_ACEOF
37775rm -f conftest.$ac_objext
37776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37777 (eval $ac_compile) 2>conftest.er1
37778 ac_status=$?
37779 grep -v '^ *+' conftest.er1 >conftest.err
37780 rm -f conftest.er1
37781 cat conftest.err >&5
37782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37783 (exit $ac_status); } &&
0093c2fc 37784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
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_objext'
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 wx_cv_func_pthread_mutexattr_settype_decl=yes
37797else
37798 echo "$as_me: failed program was:" >&5
37799sed 's/^/| /' conftest.$ac_ext >&5
37800
37801wx_cv_func_pthread_mutexattr_settype_decl=no
37802
37803fi
37804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37805
37806fi
37807echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37808echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37809 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37810 cat >>confdefs.h <<\_ACEOF
37811#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37812_ACEOF
37813
37814 fi
a848cd7e
SC
37815 else
37816 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37817echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37818if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37819 echo $ECHO_N "(cached) $ECHO_C" >&6
37820else
37821
37822 cat >conftest.$ac_ext <<_ACEOF
37823/* confdefs.h. */
37824_ACEOF
37825cat confdefs.h >>conftest.$ac_ext
37826cat >>conftest.$ac_ext <<_ACEOF
37827/* end confdefs.h. */
37828#include <pthread.h>
37829int
37830main ()
37831{
37832
37833 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37834
37835 ;
37836 return 0;
37837}
37838_ACEOF
37839rm -f conftest.$ac_objext
37840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37841 (eval $ac_compile) 2>conftest.er1
a848cd7e 37842 ac_status=$?
ac1cb8d3
VS
37843 grep -v '^ *+' conftest.er1 >conftest.err
37844 rm -f conftest.er1
37845 cat conftest.err >&5
a848cd7e
SC
37846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847 (exit $ac_status); } &&
0093c2fc 37848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37850 (eval $ac_try) 2>&5
37851 ac_status=$?
37852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37853 (exit $ac_status); }; } &&
37854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37856 (eval $ac_try) 2>&5
37857 ac_status=$?
37858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37859 (exit $ac_status); }; }; then
37860
37861 wx_cv_type_pthread_rec_mutex_init=yes
37862
37863else
37864 echo "$as_me: failed program was:" >&5
37865sed 's/^/| /' conftest.$ac_ext >&5
37866
37867
37868 wx_cv_type_pthread_rec_mutex_init=no
37869
37870
37871fi
ac1cb8d3 37872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37873
37874fi
37875echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37876echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37877 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37878 cat >>confdefs.h <<\_ACEOF
37879#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37880_ACEOF
37881
37882 else
37883 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37884echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37885 fi
37886 fi
37887 fi
37888
37889else
37890 if test "$wxUSE_THREADS" = "yes" ; then
37891 case "${host}" in
37892 *-*-mingw32* )
37893 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37894echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37895if test "${wx_cv_cflags_mthread+set}" = set; then
37896 echo $ECHO_N "(cached) $ECHO_C" >&6
37897else
37898
37899 CFLAGS_OLD="$CFLAGS"
37900 CFLAGS="$CFLAGS -mthreads"
37901 cat >conftest.$ac_ext <<_ACEOF
37902/* confdefs.h. */
37903_ACEOF
37904cat confdefs.h >>conftest.$ac_ext
37905cat >>conftest.$ac_ext <<_ACEOF
37906/* end confdefs.h. */
37907
37908int
37909main ()
37910{
37911
37912 ;
37913 return 0;
37914}
37915_ACEOF
37916rm -f conftest.$ac_objext
37917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37918 (eval $ac_compile) 2>conftest.er1
a848cd7e 37919 ac_status=$?
ac1cb8d3
VS
37920 grep -v '^ *+' conftest.er1 >conftest.err
37921 rm -f conftest.er1
37922 cat conftest.err >&5
a848cd7e
SC
37923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924 (exit $ac_status); } &&
0093c2fc 37925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37927 (eval $ac_try) 2>&5
37928 ac_status=$?
37929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930 (exit $ac_status); }; } &&
37931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37933 (eval $ac_try) 2>&5
37934 ac_status=$?
37935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936 (exit $ac_status); }; }; then
37937 wx_cv_cflags_mthread=yes
37938else
37939 echo "$as_me: failed program was:" >&5
37940sed 's/^/| /' conftest.$ac_ext >&5
37941
37942wx_cv_cflags_mthread=no
37943
37944fi
ac1cb8d3 37945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37946
37947
37948fi
37949echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37950echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37951
37952 if test "$wx_cv_cflags_mthread" = "yes"; then
37953 CXXFLAGS="$CXXFLAGS -mthreads"
37954 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37955 LDFLAGS="$LDFLAGS -mthreads"
37956 else
37957 CFLAGS="$CFLAGS_OLD"
37958 fi
37959 ;;
37960 *-pc-os2*emx )
37961 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37962 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37963 LDFLAGS="$LDFLAGS -Zmt"
37964 ;;
37965 esac
37966 fi
37967fi
37968
37969if test "$wxUSE_THREADS" = "yes"; then
37970 cat >>confdefs.h <<\_ACEOF
37971#define wxUSE_THREADS 1
37972_ACEOF
37973
37974
37975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37976else
37977 if test "$ac_cv_func_strtok_r" = "yes"; then
37978 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37979echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37980 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37981 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
37982 echo "$as_me:$LINENO: result: yes" >&5
37983echo "${ECHO_T}yes" >&6
37984 else
37985 echo "$as_me:$LINENO: result: no" >&5
37986echo "${ECHO_T}no" >&6
37987 fi
37988 fi
37989fi
37990
37991if test "$WXGTK20" = 1 ; then
37992 cat >>confdefs.h <<_ACEOF
37993#define __WXGTK20__ $WXGTK20
37994_ACEOF
37995
37996 WXGTK12=1
37997fi
37998
37999if test "$WXGTK12" = 1 ; then
38000 cat >>confdefs.h <<_ACEOF
38001#define __WXGTK12__ $WXGTK12
38002_ACEOF
38003
38004fi
38005
38006if test "$WXGTK127" = 1 ; then
38007 cat >>confdefs.h <<_ACEOF
38008#define __WXGTK127__ $WXGTK127
38009_ACEOF
38010
38011fi
38012
38013if test "$WXGPE" = 1 ; then
38014 cat >>confdefs.h <<_ACEOF
38015#define __WXGPE__ $WXGPE
38016_ACEOF
38017
38018fi
38019
38020WXDEBUG=
38021
38022if test "$wxUSE_DEBUG_INFO" = "yes" ; then
38023 WXDEBUG="-g"
38024 wxUSE_OPTIMISE=no
38025fi
38026
38027if test "$wxUSE_DEBUG_GDB" = "yes" ; then
38028 wxUSE_DEBUG_INFO=yes
18228ab4
MW
38029 if test "$GCC" = yes; then
38030 WXDEBUG="-ggdb"
38031 fi
a848cd7e
SC
38032fi
38033
38034if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
38035 cat >>confdefs.h <<\_ACEOF
38036#define WXDEBUG 1
38037_ACEOF
38038
38039 WXDEBUG_DEFINE="-D__WXDEBUG__"
38040else
38041 if test "$wxUSE_GTK" = 1 ; then
38042 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
38043 fi
38044fi
38045
38046if test "$wxUSE_MEM_TRACING" = "yes" ; then
38047 cat >>confdefs.h <<\_ACEOF
38048#define wxUSE_MEMORY_TRACING 1
38049_ACEOF
38050
38051 cat >>confdefs.h <<\_ACEOF
38052#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
38053_ACEOF
38054
38055 cat >>confdefs.h <<\_ACEOF
38056#define wxUSE_DEBUG_NEW_ALWAYS 1
38057_ACEOF
38058
38059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
38060fi
38061
38062if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 38063 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
38064fi
38065
38066PROFILE=
38067if test "$wxUSE_PROFILE" = "yes" ; then
38068 PROFILE=" -pg"
38069fi
38070
38071CODE_GEN_FLAGS=
38072CODE_GEN_FLAGS_CXX=
38073if test "$GCC" = "yes" ; then
38074 if test "$wxUSE_NO_RTTI" = "yes" ; then
38075 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
38076 fi
38077 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38078 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
38079 fi
38080 if test "$wxUSE_PERMISSIVE" = "yes" ; then
38081 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
38082 fi
38083
38084 case "${host}" in
38085 powerpc*-*-aix* )
38086 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
38087 ;;
38088 *-hppa* )
38089 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
38090 ;;
38091 esac
38092fi
38093
38094OPTIMISE=
38095if test "$wxUSE_OPTIMISE" = "no" ; then
38096 if test "$GCC" = yes ; then
38097 OPTIMISE="-O0"
38098 fi
38099else
38100 if test "$GCC" = yes ; then
38101 OPTIMISE="-O2"
38102
38103 case "${host}" in
38104 i586-*-*|i686-*-* )
38105 OPTIMISE="${OPTIMISE} "
38106 ;;
38107 esac
38108 else
38109 OPTIMISE="-O"
38110 fi
38111fi
38112
38113
dee1a63f 38114if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
a848cd7e 38115 cat >>confdefs.h <<\_ACEOF
dee1a63f 38116#define WXWIN_COMPATIBILITY_2_4 1
a848cd7e
SC
38117_ACEOF
38118
38119
dee1a63f 38120 WXWIN_COMPATIBILITY_2_6="yes"
a848cd7e
SC
38121fi
38122
dee1a63f 38123if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
a848cd7e 38124 cat >>confdefs.h <<\_ACEOF
dee1a63f 38125#define WXWIN_COMPATIBILITY_2_6 1
a848cd7e
SC
38126_ACEOF
38127
38128fi
38129
38130
38131if test "$wxUSE_GUI" = "yes"; then
881bfcd6 38132 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38133#define wxUSE_GUI 1
38134_ACEOF
38135
38136
370fd4c2 38137 fi
a848cd7e
SC
38138
38139
38140if test "$wxUSE_UNIX" = "yes"; then
38141 cat >>confdefs.h <<\_ACEOF
38142#define wxUSE_UNIX 1
38143_ACEOF
38144
38145fi
38146
38147
38148if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38149
38150 HAVE_DL_FUNCS=0
38151 HAVE_SHL_FUNCS=0
38152 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38153 if test "$USE_DARWIN" = 1; then
38154 HAVE_DL_FUNCS=1
47a7e797
MW
38155 elif test "$USE_DOS" = 1; then
38156 HAVE_DL_FUNCS=0
a848cd7e
SC
38157 else
38158
38159for ac_func in dlopen
38160do
38161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38162echo "$as_me:$LINENO: checking for $ac_func" >&5
38163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38164if eval "test \"\${$as_ac_var+set}\" = set"; then
38165 echo $ECHO_N "(cached) $ECHO_C" >&6
38166else
38167 cat >conftest.$ac_ext <<_ACEOF
38168/* confdefs.h. */
38169_ACEOF
38170cat confdefs.h >>conftest.$ac_ext
38171cat >>conftest.$ac_ext <<_ACEOF
38172/* end confdefs.h. */
ac1cb8d3
VS
38173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38175#define $ac_func innocuous_$ac_func
38176
a848cd7e
SC
38177/* System header to define __stub macros and hopefully few prototypes,
38178 which can conflict with char $ac_func (); below.
38179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38180 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38181
a848cd7e
SC
38182#ifdef __STDC__
38183# include <limits.h>
38184#else
38185# include <assert.h>
38186#endif
ac1cb8d3
VS
38187
38188#undef $ac_func
38189
a848cd7e
SC
38190/* Override any gcc2 internal prototype to avoid an error. */
38191#ifdef __cplusplus
38192extern "C"
38193{
38194#endif
38195/* We use char because int might match the return type of a gcc2
38196 builtin and then its argument prototype would still apply. */
38197char $ac_func ();
38198/* The GNU C library defines this for functions which it implements
38199 to always fail with ENOSYS. Some functions are actually named
38200 something starting with __ and the normal name is an alias. */
38201#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38202choke me
38203#else
38204char (*f) () = $ac_func;
38205#endif
38206#ifdef __cplusplus
38207}
38208#endif
38209
38210int
38211main ()
38212{
38213return f != $ac_func;
38214 ;
38215 return 0;
38216}
38217_ACEOF
38218rm -f conftest.$ac_objext conftest$ac_exeext
38219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38220 (eval $ac_link) 2>conftest.er1
a848cd7e 38221 ac_status=$?
ac1cb8d3
VS
38222 grep -v '^ *+' conftest.er1 >conftest.err
38223 rm -f conftest.er1
38224 cat conftest.err >&5
a848cd7e
SC
38225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38226 (exit $ac_status); } &&
0093c2fc 38227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38229 (eval $ac_try) 2>&5
38230 ac_status=$?
38231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38232 (exit $ac_status); }; } &&
38233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38235 (eval $ac_try) 2>&5
38236 ac_status=$?
38237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238 (exit $ac_status); }; }; then
38239 eval "$as_ac_var=yes"
38240else
38241 echo "$as_me: failed program was:" >&5
38242sed 's/^/| /' conftest.$ac_ext >&5
38243
38244eval "$as_ac_var=no"
38245fi
ac1cb8d3
VS
38246rm -f conftest.err conftest.$ac_objext \
38247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38248fi
38249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38250echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38251if test `eval echo '${'$as_ac_var'}'` = yes; then
38252 cat >>confdefs.h <<_ACEOF
38253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38254_ACEOF
38255
38256 cat >>confdefs.h <<\_ACEOF
38257#define HAVE_DLOPEN 1
38258_ACEOF
38259
38260 HAVE_DL_FUNCS=1
38261
38262else
38263
38264 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38265echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
38266if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38267 echo $ECHO_N "(cached) $ECHO_C" >&6
38268else
38269 ac_check_lib_save_LIBS=$LIBS
38270LIBS="-ldl $LIBS"
38271cat >conftest.$ac_ext <<_ACEOF
38272/* confdefs.h. */
38273_ACEOF
38274cat confdefs.h >>conftest.$ac_ext
38275cat >>conftest.$ac_ext <<_ACEOF
38276/* end confdefs.h. */
38277
38278/* Override any gcc2 internal prototype to avoid an error. */
38279#ifdef __cplusplus
38280extern "C"
38281#endif
38282/* We use char because int might match the return type of a gcc2
38283 builtin and then its argument prototype would still apply. */
38284char dlopen ();
38285int
38286main ()
38287{
38288dlopen ();
38289 ;
38290 return 0;
38291}
38292_ACEOF
38293rm -f conftest.$ac_objext conftest$ac_exeext
38294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38295 (eval $ac_link) 2>conftest.er1
a848cd7e 38296 ac_status=$?
ac1cb8d3
VS
38297 grep -v '^ *+' conftest.er1 >conftest.err
38298 rm -f conftest.er1
38299 cat conftest.err >&5
a848cd7e
SC
38300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301 (exit $ac_status); } &&
0093c2fc 38302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38304 (eval $ac_try) 2>&5
38305 ac_status=$?
38306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38307 (exit $ac_status); }; } &&
38308 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38310 (eval $ac_try) 2>&5
38311 ac_status=$?
38312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38313 (exit $ac_status); }; }; then
38314 ac_cv_lib_dl_dlopen=yes
38315else
38316 echo "$as_me: failed program was:" >&5
38317sed 's/^/| /' conftest.$ac_ext >&5
38318
38319ac_cv_lib_dl_dlopen=no
38320fi
ac1cb8d3
VS
38321rm -f conftest.err conftest.$ac_objext \
38322 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38323LIBS=$ac_check_lib_save_LIBS
38324fi
38325echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38326echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
38327if test $ac_cv_lib_dl_dlopen = yes; then
38328
38329 cat >>confdefs.h <<\_ACEOF
38330#define HAVE_DLOPEN 1
38331_ACEOF
38332
38333 HAVE_DL_FUNCS=1
38334 DL_LINK=" -ldl$DL_LINK"
38335
38336else
38337
38338
38339for ac_func in shl_load
38340do
38341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38342echo "$as_me:$LINENO: checking for $ac_func" >&5
38343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38344if eval "test \"\${$as_ac_var+set}\" = set"; then
38345 echo $ECHO_N "(cached) $ECHO_C" >&6
38346else
38347 cat >conftest.$ac_ext <<_ACEOF
38348/* confdefs.h. */
38349_ACEOF
38350cat confdefs.h >>conftest.$ac_ext
38351cat >>conftest.$ac_ext <<_ACEOF
38352/* end confdefs.h. */
ac1cb8d3
VS
38353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38355#define $ac_func innocuous_$ac_func
38356
a848cd7e
SC
38357/* System header to define __stub macros and hopefully few prototypes,
38358 which can conflict with char $ac_func (); below.
38359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38360 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38361
a848cd7e
SC
38362#ifdef __STDC__
38363# include <limits.h>
38364#else
38365# include <assert.h>
38366#endif
ac1cb8d3
VS
38367
38368#undef $ac_func
38369
a848cd7e
SC
38370/* Override any gcc2 internal prototype to avoid an error. */
38371#ifdef __cplusplus
38372extern "C"
38373{
38374#endif
38375/* We use char because int might match the return type of a gcc2
38376 builtin and then its argument prototype would still apply. */
38377char $ac_func ();
38378/* The GNU C library defines this for functions which it implements
38379 to always fail with ENOSYS. Some functions are actually named
38380 something starting with __ and the normal name is an alias. */
38381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38382choke me
38383#else
38384char (*f) () = $ac_func;
38385#endif
38386#ifdef __cplusplus
38387}
38388#endif
38389
38390int
38391main ()
38392{
38393return f != $ac_func;
38394 ;
38395 return 0;
38396}
38397_ACEOF
38398rm -f conftest.$ac_objext conftest$ac_exeext
38399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38400 (eval $ac_link) 2>conftest.er1
a848cd7e 38401 ac_status=$?
ac1cb8d3
VS
38402 grep -v '^ *+' conftest.er1 >conftest.err
38403 rm -f conftest.er1
38404 cat conftest.err >&5
a848cd7e
SC
38405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406 (exit $ac_status); } &&
0093c2fc 38407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38409 (eval $ac_try) 2>&5
38410 ac_status=$?
38411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412 (exit $ac_status); }; } &&
38413 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38415 (eval $ac_try) 2>&5
38416 ac_status=$?
38417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418 (exit $ac_status); }; }; then
38419 eval "$as_ac_var=yes"
38420else
38421 echo "$as_me: failed program was:" >&5
38422sed 's/^/| /' conftest.$ac_ext >&5
38423
38424eval "$as_ac_var=no"
38425fi
ac1cb8d3
VS
38426rm -f conftest.err conftest.$ac_objext \
38427 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38428fi
38429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38430echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38431if test `eval echo '${'$as_ac_var'}'` = yes; then
38432 cat >>confdefs.h <<_ACEOF
38433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38434_ACEOF
38435
38436 cat >>confdefs.h <<\_ACEOF
38437#define HAVE_SHL_LOAD 1
38438_ACEOF
38439
38440 HAVE_SHL_FUNCS=1
38441
38442else
38443
38444 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
38445echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
38446if test "${ac_cv_lib_shl_load_dld+set}" = set; then
38447 echo $ECHO_N "(cached) $ECHO_C" >&6
38448else
38449 ac_check_lib_save_LIBS=$LIBS
38450LIBS="-lshl_load $LIBS"
38451cat >conftest.$ac_ext <<_ACEOF
38452/* confdefs.h. */
38453_ACEOF
38454cat confdefs.h >>conftest.$ac_ext
38455cat >>conftest.$ac_ext <<_ACEOF
38456/* end confdefs.h. */
38457
38458/* Override any gcc2 internal prototype to avoid an error. */
38459#ifdef __cplusplus
38460extern "C"
38461#endif
38462/* We use char because int might match the return type of a gcc2
38463 builtin and then its argument prototype would still apply. */
38464char dld ();
38465int
38466main ()
38467{
38468dld ();
38469 ;
38470 return 0;
38471}
38472_ACEOF
38473rm -f conftest.$ac_objext conftest$ac_exeext
38474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38475 (eval $ac_link) 2>conftest.er1
a848cd7e 38476 ac_status=$?
ac1cb8d3
VS
38477 grep -v '^ *+' conftest.er1 >conftest.err
38478 rm -f conftest.er1
38479 cat conftest.err >&5
a848cd7e
SC
38480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481 (exit $ac_status); } &&
0093c2fc 38482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38484 (eval $ac_try) 2>&5
38485 ac_status=$?
38486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487 (exit $ac_status); }; } &&
38488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38490 (eval $ac_try) 2>&5
38491 ac_status=$?
38492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493 (exit $ac_status); }; }; then
38494 ac_cv_lib_shl_load_dld=yes
38495else
38496 echo "$as_me: failed program was:" >&5
38497sed 's/^/| /' conftest.$ac_ext >&5
38498
38499ac_cv_lib_shl_load_dld=no
38500fi
ac1cb8d3
VS
38501rm -f conftest.err conftest.$ac_objext \
38502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38503LIBS=$ac_check_lib_save_LIBS
38504fi
38505echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
38506echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
38507if test $ac_cv_lib_shl_load_dld = yes; then
38508
38509 HAVE_SHL_FUNCS=1
38510 DL_LINK=" -ldld$DL_LINK"
38511
38512fi
38513
38514
38515fi
38516done
38517
38518
38519fi
38520
38521
38522fi
38523done
38524
38525
38526 if test "$HAVE_DL_FUNCS" = 1; then
38527
38528for ac_func in dlerror
38529do
38530as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38531echo "$as_me:$LINENO: checking for $ac_func" >&5
38532echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38533if eval "test \"\${$as_ac_var+set}\" = set"; then
38534 echo $ECHO_N "(cached) $ECHO_C" >&6
38535else
38536 cat >conftest.$ac_ext <<_ACEOF
38537/* confdefs.h. */
38538_ACEOF
38539cat confdefs.h >>conftest.$ac_ext
38540cat >>conftest.$ac_ext <<_ACEOF
38541/* end confdefs.h. */
ac1cb8d3
VS
38542/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38544#define $ac_func innocuous_$ac_func
38545
a848cd7e
SC
38546/* System header to define __stub macros and hopefully few prototypes,
38547 which can conflict with char $ac_func (); below.
38548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38549 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38550
a848cd7e
SC
38551#ifdef __STDC__
38552# include <limits.h>
38553#else
38554# include <assert.h>
38555#endif
ac1cb8d3
VS
38556
38557#undef $ac_func
38558
a848cd7e
SC
38559/* Override any gcc2 internal prototype to avoid an error. */
38560#ifdef __cplusplus
38561extern "C"
38562{
38563#endif
38564/* We use char because int might match the return type of a gcc2
38565 builtin and then its argument prototype would still apply. */
38566char $ac_func ();
38567/* The GNU C library defines this for functions which it implements
38568 to always fail with ENOSYS. Some functions are actually named
38569 something starting with __ and the normal name is an alias. */
38570#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38571choke me
38572#else
38573char (*f) () = $ac_func;
38574#endif
38575#ifdef __cplusplus
38576}
38577#endif
38578
38579int
38580main ()
38581{
38582return f != $ac_func;
38583 ;
38584 return 0;
38585}
38586_ACEOF
38587rm -f conftest.$ac_objext conftest$ac_exeext
38588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38589 (eval $ac_link) 2>conftest.er1
a848cd7e 38590 ac_status=$?
ac1cb8d3
VS
38591 grep -v '^ *+' conftest.er1 >conftest.err
38592 rm -f conftest.er1
38593 cat conftest.err >&5
a848cd7e
SC
38594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595 (exit $ac_status); } &&
0093c2fc 38596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38598 (eval $ac_try) 2>&5
38599 ac_status=$?
38600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601 (exit $ac_status); }; } &&
38602 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38604 (eval $ac_try) 2>&5
38605 ac_status=$?
38606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38607 (exit $ac_status); }; }; then
38608 eval "$as_ac_var=yes"
38609else
38610 echo "$as_me: failed program was:" >&5
38611sed 's/^/| /' conftest.$ac_ext >&5
38612
38613eval "$as_ac_var=no"
38614fi
ac1cb8d3
VS
38615rm -f conftest.err conftest.$ac_objext \
38616 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38617fi
38618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38620if test `eval echo '${'$as_ac_var'}'` = yes; then
38621 cat >>confdefs.h <<_ACEOF
38622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38623_ACEOF
38624 cat >>confdefs.h <<\_ACEOF
38625#define HAVE_DLERROR 1
38626_ACEOF
38627
38628else
38629
38630 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
38631echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
38632if test "${ac_cv_lib_dl_dlerror+set}" = set; then
38633 echo $ECHO_N "(cached) $ECHO_C" >&6
38634else
38635 ac_check_lib_save_LIBS=$LIBS
38636LIBS="-ldl $LIBS"
38637cat >conftest.$ac_ext <<_ACEOF
38638/* confdefs.h. */
38639_ACEOF
38640cat confdefs.h >>conftest.$ac_ext
38641cat >>conftest.$ac_ext <<_ACEOF
38642/* end confdefs.h. */
38643
38644/* Override any gcc2 internal prototype to avoid an error. */
38645#ifdef __cplusplus
38646extern "C"
38647#endif
38648/* We use char because int might match the return type of a gcc2
38649 builtin and then its argument prototype would still apply. */
38650char dlerror ();
38651int
38652main ()
38653{
38654dlerror ();
38655 ;
38656 return 0;
38657}
38658_ACEOF
38659rm -f conftest.$ac_objext conftest$ac_exeext
38660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38661 (eval $ac_link) 2>conftest.er1
a848cd7e 38662 ac_status=$?
ac1cb8d3
VS
38663 grep -v '^ *+' conftest.er1 >conftest.err
38664 rm -f conftest.er1
38665 cat conftest.err >&5
a848cd7e
SC
38666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38667 (exit $ac_status); } &&
0093c2fc 38668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38670 (eval $ac_try) 2>&5
38671 ac_status=$?
38672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673 (exit $ac_status); }; } &&
38674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38676 (eval $ac_try) 2>&5
38677 ac_status=$?
38678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679 (exit $ac_status); }; }; then
38680 ac_cv_lib_dl_dlerror=yes
38681else
38682 echo "$as_me: failed program was:" >&5
38683sed 's/^/| /' conftest.$ac_ext >&5
38684
38685ac_cv_lib_dl_dlerror=no
38686fi
ac1cb8d3
VS
38687rm -f conftest.err conftest.$ac_objext \
38688 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38689LIBS=$ac_check_lib_save_LIBS
38690fi
38691echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
38692echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
38693if test $ac_cv_lib_dl_dlerror = yes; then
38694 cat >>confdefs.h <<\_ACEOF
38695#define HAVE_DLERROR 1
38696_ACEOF
38697
38698fi
38699
38700
38701
38702fi
38703done
38704
38705 fi
38706 fi
38707
38708 if test "$HAVE_DL_FUNCS" = 0; then
38709 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 38710 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
38711 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
38712echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
38713 wxUSE_DYNAMIC_LOADER=no
38714 wxUSE_DYNLIB_CLASS=no
38715 else
38716 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
38717echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
38718 fi
38719 fi
38720 fi
38721 fi
38722fi
38723
38724if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38725 cat >>confdefs.h <<\_ACEOF
38726#define wxUSE_DYNAMIC_LOADER 1
38727_ACEOF
38728
38729fi
38730if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38731 cat >>confdefs.h <<\_ACEOF
38732#define wxUSE_DYNLIB_CLASS 1
38733_ACEOF
38734
38735fi
38736
38737
38738
38739if test "$wxUSE_PLUGINS" = "yes" ; then
38740 if test "$wxUSE_SHARED" = "no" ; then
38741 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38742echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38743 wxUSE_PLUGINS=no
38744 fi
38745 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38746 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38747echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38748 wxUSE_PLUGINS=no
38749 fi
38750 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38751 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38752echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38753 wxUSE_PLUGINS=no
38754 fi
38755 if test "$wxUSE_PLUGINS" = "yes" ; then
38756 cat >>confdefs.h <<\_ACEOF
38757#define wxUSE_PLUGINS 1
38758_ACEOF
38759
38760 fi
38761fi
38762
38763
38764if test "$wxUSE_STL" = "yes"; then
38765 cat >>confdefs.h <<\_ACEOF
38766#define wxUSE_STL 1
38767_ACEOF
38768
38769fi
38770
38771if test "$wxUSE_APPLE_IEEE" = "yes"; then
38772 cat >>confdefs.h <<\_ACEOF
38773#define wxUSE_APPLE_IEEE 1
38774_ACEOF
38775
38776fi
38777
38778if test "$wxUSE_TIMER" = "yes"; then
38779 cat >>confdefs.h <<\_ACEOF
38780#define wxUSE_TIMER 1
38781_ACEOF
38782
38783fi
38784
9c112555 38785if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38786 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38787echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38788if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38789 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38790else
d12aef51
VZ
38791
38792 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38793/* confdefs.h. */
38794_ACEOF
38795cat confdefs.h >>conftest.$ac_ext
38796cat >>conftest.$ac_ext <<_ACEOF
38797/* end confdefs.h. */
d12aef51
VZ
38798
38799 #include <sys/soundcard.h>
38800
38801int
38802main ()
38803{
38804
38805 ioctl(0, SNDCTL_DSP_SYNC, 0);
38806
38807 ;
38808 return 0;
38809}
a848cd7e 38810_ACEOF
d12aef51
VZ
38811rm -f conftest.$ac_objext conftest$ac_exeext
38812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38813 (eval $ac_link) 2>conftest.er1
a848cd7e 38814 ac_status=$?
ac1cb8d3
VS
38815 grep -v '^ *+' conftest.er1 >conftest.err
38816 rm -f conftest.er1
38817 cat conftest.err >&5
a848cd7e
SC
38818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38819 (exit $ac_status); } &&
0093c2fc 38820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38822 (eval $ac_try) 2>&5
38823 ac_status=$?
38824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38825 (exit $ac_status); }; } &&
d12aef51 38826 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38828 (eval $ac_try) 2>&5
38829 ac_status=$?
38830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38831 (exit $ac_status); }; }; then
d12aef51 38832 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38833else
38834 echo "$as_me: failed program was:" >&5
38835sed 's/^/| /' conftest.$ac_ext >&5
38836
a848cd7e 38837
d12aef51
VZ
38838 saveLibs="$LIBS"
38839 LIBS="$saveLibs -lossaudio"
38840 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38841/* confdefs.h. */
38842_ACEOF
38843cat confdefs.h >>conftest.$ac_ext
38844cat >>conftest.$ac_ext <<_ACEOF
38845/* end confdefs.h. */
d12aef51
VZ
38846
38847 #include <sys/soundcard.h>
38848
38849int
38850main ()
38851{
38852
38853 ioctl(0, SNDCTL_DSP_SYNC, 0);
38854
38855 ;
38856 return 0;
38857}
a848cd7e 38858_ACEOF
d12aef51
VZ
38859rm -f conftest.$ac_objext conftest$ac_exeext
38860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38861 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38862 ac_status=$?
38863 grep -v '^ *+' conftest.er1 >conftest.err
38864 rm -f conftest.er1
38865 cat conftest.err >&5
38866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 38867 (exit $ac_status); } &&
0093c2fc 38868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
38869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38870 (eval $ac_try) 2>&5
38871 ac_status=$?
38872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38873 (exit $ac_status); }; } &&
38874 { ac_try='test -s conftest$ac_exeext'
38875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38876 (eval $ac_try) 2>&5
38877 ac_status=$?
38878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879 (exit $ac_status); }; }; then
38880 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38881else
38882 echo "$as_me: failed program was:" >&5
38883sed 's/^/| /' conftest.$ac_ext >&5
38884
a848cd7e 38885
d12aef51
VZ
38886 LIBS="$saveLibs"
38887 ac_cv_header_sys_soundcard=no
38888
38889
a848cd7e 38890fi
d12aef51
VZ
38891rm -f conftest.err conftest.$ac_objext \
38892 conftest$ac_exeext conftest.$ac_ext
38893
a848cd7e
SC
38894
38895fi
d12aef51
VZ
38896rm -f conftest.err conftest.$ac_objext \
38897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38898
38899fi
d12aef51
VZ
38900echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38901echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38902
d12aef51
VZ
38903 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38904 cat >>confdefs.h <<\_ACEOF
38905#define HAVE_SYS_SOUNDCARD_H 1
38906_ACEOF
a848cd7e 38907
d12aef51
VZ
38908 else
38909 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38910 fi
9c112555
MW
38911fi
38912WITH_PLUGIN_SDL=0
38913if test "$wxUSE_SOUND" = "yes"; then
38914 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38915 if test "$wxUSE_LIBSDL" != "no"; then
38916
38917# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38918if test "${with_sdl_prefix+set}" = set; then
38919 withval="$with_sdl_prefix"
38920 sdl_prefix="$withval"
38921else
38922 sdl_prefix=""
38923fi;
38924
38925# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38926if test "${with_sdl_exec_prefix+set}" = set; then
38927 withval="$with_sdl_exec_prefix"
38928 sdl_exec_prefix="$withval"
38929else
38930 sdl_exec_prefix=""
38931fi;
38932# Check whether --enable-sdltest or --disable-sdltest was given.
38933if test "${enable_sdltest+set}" = set; then
38934 enableval="$enable_sdltest"
38935
38936else
38937 enable_sdltest=yes
38938fi;
38939
38940 if test x$sdl_exec_prefix != x ; then
38941 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38942 if test x${SDL_CONFIG+set} != xset ; then
38943 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38944 fi
38945 fi
38946 if test x$sdl_prefix != x ; then
38947 sdl_args="$sdl_args --prefix=$sdl_prefix"
38948 if test x${SDL_CONFIG+set} != xset ; then
38949 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38950 fi
38951 fi
38952
38953
38954 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38955 # Extract the first word of "sdl-config", so it can be a program name with args.
38956set dummy sdl-config; ac_word=$2
38957echo "$as_me:$LINENO: checking for $ac_word" >&5
38958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38959if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38960 echo $ECHO_N "(cached) $ECHO_C" >&6
38961else
38962 case $SDL_CONFIG in
38963 [\\/]* | ?:[\\/]*)
38964 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38965 ;;
38966 *)
38967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38968for as_dir in $PATH
38969do
38970 IFS=$as_save_IFS
38971 test -z "$as_dir" && as_dir=.
38972 for ac_exec_ext in '' $ac_executable_extensions; do
38973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38974 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38976 break 2
38977 fi
38978done
38979done
38980
38981 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38982 ;;
38983esac
38984fi
38985SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38986
38987if test -n "$SDL_CONFIG"; then
38988 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38989echo "${ECHO_T}$SDL_CONFIG" >&6
38990else
38991 echo "$as_me:$LINENO: result: no" >&5
38992echo "${ECHO_T}no" >&6
38993fi
38994
38995 min_sdl_version=1.2.0
38996 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38997echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38998 no_sdl=""
38999 if test "$SDL_CONFIG" = "no" ; then
39000 no_sdl=yes
39001 else
39002 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
39003 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
39004
39005 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
39006 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
39007 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
39008 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
39009 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
39010 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
39011 if test "x$enable_sdltest" = "xyes" ; then
39012 ac_save_CFLAGS="$CFLAGS"
94acd38e 39013 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
39014 ac_save_LIBS="$LIBS"
39015 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 39016 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
39017 LIBS="$LIBS $SDL_LIBS"
39018 rm -f conf.sdltest
39019 if test "$cross_compiling" = yes; then
39020 echo $ac_n "cross compiling; assumed OK... $ac_c"
39021else
39022 cat >conftest.$ac_ext <<_ACEOF
39023/* confdefs.h. */
39024_ACEOF
39025cat confdefs.h >>conftest.$ac_ext
39026cat >>conftest.$ac_ext <<_ACEOF
39027/* end confdefs.h. */
39028
39029#include <stdio.h>
39030#include <stdlib.h>
39031#include <string.h>
39032#include "SDL.h"
39033
39034char*
39035my_strdup (char *str)
39036{
39037 char *new_str;
39038
39039 if (str)
39040 {
39041 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
39042 strcpy (new_str, str);
39043 }
39044 else
39045 new_str = NULL;
39046
39047 return new_str;
39048}
39049
39050int main (int argc, char *argv[])
39051{
39052 int major, minor, micro;
39053 char *tmp_version;
39054
39055 /* This hangs on some systems (?)
39056 system ("touch conf.sdltest");
39057 */
39058 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
39059
39060 /* HP/UX 9 (%@#!) writes to sscanf strings */
39061 tmp_version = my_strdup("$min_sdl_version");
39062 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
39063 printf("%s, bad version string\n", "$min_sdl_version");
39064 exit(1);
39065 }
39066
39067 if (($sdl_major_version > major) ||
39068 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
39069 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
39070 {
39071 return 0;
39072 }
39073 else
39074 {
39075 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
39076 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
39077 printf("*** best to upgrade to the required version.\n");
39078 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
39079 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
39080 printf("*** config.cache before re-running configure\n");
39081 return 1;
39082 }
39083}
39084
39085
39086_ACEOF
39087rm -f conftest$ac_exeext
39088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39089 (eval $ac_link) 2>&5
39090 ac_status=$?
39091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39094 (eval $ac_try) 2>&5
39095 ac_status=$?
39096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39097 (exit $ac_status); }; }; then
39098 :
39099else
39100 echo "$as_me: program exited with status $ac_status" >&5
39101echo "$as_me: failed program was:" >&5
39102sed 's/^/| /' conftest.$ac_ext >&5
39103
39104( exit $ac_status )
39105no_sdl=yes
39106fi
ac1cb8d3 39107rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39108fi
39109 CFLAGS="$ac_save_CFLAGS"
94acd38e 39110 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39111 LIBS="$ac_save_LIBS"
39112 fi
39113 fi
39114 if test "x$no_sdl" = x ; then
39115 echo "$as_me:$LINENO: result: yes" >&5
39116echo "${ECHO_T}yes" >&6
39117
39118 EXTRALIBS_SDL="$SDL_LIBS"
39119 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39120 cat >>confdefs.h <<\_ACEOF
39121#define wxUSE_LIBSDL 1
39122_ACEOF
39123
39124
39125 else
39126 echo "$as_me:$LINENO: result: no" >&5
39127echo "${ECHO_T}no" >&6
39128 if test "$SDL_CONFIG" = "no" ; then
39129 echo "*** The sdl-config script installed by SDL could not be found"
39130 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
39131 echo "*** your path, or set the SDL_CONFIG environment variable to the"
39132 echo "*** full path to sdl-config."
39133 else
39134 if test -f conf.sdltest ; then
39135 :
39136 else
39137 echo "*** Could not run SDL test program, checking why..."
39138 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 39139 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
39140 LIBS="$LIBS $SDL_LIBS"
39141 cat >conftest.$ac_ext <<_ACEOF
39142/* confdefs.h. */
39143_ACEOF
39144cat confdefs.h >>conftest.$ac_ext
39145cat >>conftest.$ac_ext <<_ACEOF
39146/* end confdefs.h. */
39147
39148#include <stdio.h>
39149#include "SDL.h"
39150
39151int main(int argc, char *argv[])
39152{ return 0; }
39153#undef main
39154#define main K_and_R_C_main
39155
39156int
39157main ()
39158{
39159 return 0;
39160 ;
39161 return 0;
39162}
39163_ACEOF
39164rm -f conftest.$ac_objext conftest$ac_exeext
39165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39166 (eval $ac_link) 2>conftest.er1
a848cd7e 39167 ac_status=$?
ac1cb8d3
VS
39168 grep -v '^ *+' conftest.er1 >conftest.err
39169 rm -f conftest.er1
39170 cat conftest.err >&5
a848cd7e
SC
39171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172 (exit $ac_status); } &&
0093c2fc 39173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39175 (eval $ac_try) 2>&5
39176 ac_status=$?
39177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178 (exit $ac_status); }; } &&
39179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39181 (eval $ac_try) 2>&5
39182 ac_status=$?
39183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39184 (exit $ac_status); }; }; then
39185 echo "*** The test program compiled, but did not run. This usually means"
39186 echo "*** that the run-time linker is not finding SDL or finding the wrong"
39187 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
39188 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
39189 echo "*** to the installed location Also, make sure you have run ldconfig if that"
39190 echo "*** is required on your system"
39191 echo "***"
39192 echo "*** If you have an old version installed, it is best to remove it, although"
39193 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
39194else
39195 echo "$as_me: failed program was:" >&5
39196sed 's/^/| /' conftest.$ac_ext >&5
39197
39198 echo "*** The test program failed to compile or link. See the file config.log for the"
39199 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
39200 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
39201 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
39202fi
ac1cb8d3
VS
39203rm -f conftest.err conftest.$ac_objext \
39204 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39205 CFLAGS="$ac_save_CFLAGS"
94acd38e 39206 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39207 LIBS="$ac_save_LIBS"
39208 fi
39209 fi
39210 SDL_CFLAGS=""
39211 SDL_LIBS=""
39212 wxUSE_LIBSDL="no"
39213 fi
39214
39215
39216 rm -f conf.sdltest
39217
39218 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
39219 WITH_PLUGIN_SDL=1
39220 fi
39221 fi
39222 fi
39223
39224 cat >>confdefs.h <<\_ACEOF
39225#define wxUSE_SOUND 1
39226_ACEOF
39227
39228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
39229fi
39230
d1c38808
VZ
39231if test "$WXGTK20" = 1; then
39232 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39233 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
39234
39235
39236 succeeded=no
39237
39238 if test -z "$PKG_CONFIG"; then
39239 # Extract the first word of "pkg-config", so it can be a program name with args.
39240set dummy pkg-config; ac_word=$2
39241echo "$as_me:$LINENO: checking for $ac_word" >&5
39242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39243if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39244 echo $ECHO_N "(cached) $ECHO_C" >&6
39245else
39246 case $PKG_CONFIG in
39247 [\\/]* | ?:[\\/]*)
39248 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39249 ;;
39250 *)
39251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39252for as_dir in $PATH
39253do
39254 IFS=$as_save_IFS
39255 test -z "$as_dir" && as_dir=.
39256 for ac_exec_ext in '' $ac_executable_extensions; do
39257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39258 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39260 break 2
39261 fi
39262done
39263done
39264
39265 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39266 ;;
39267esac
39268fi
39269PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39270
39271if test -n "$PKG_CONFIG"; then
39272 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39273echo "${ECHO_T}$PKG_CONFIG" >&6
39274else
39275 echo "$as_me:$LINENO: result: no" >&5
39276echo "${ECHO_T}no" >&6
39277fi
39278
39279 fi
39280
39281 if test "$PKG_CONFIG" = "no" ; then
39282 echo "*** The pkg-config script could not be found. Make sure it is"
39283 echo "*** in your path, or set the PKG_CONFIG environment variable"
39284 echo "*** to the full path to pkg-config."
39285 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39286 else
39287 PKG_CONFIG_MIN_VERSION=0.9.0
39288 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
39289 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
39290echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 39291
ffa762ff 39292 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
39293 echo "$as_me:$LINENO: result: yes" >&5
39294echo "${ECHO_T}yes" >&6
39295 succeeded=yes
39296
39297 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
39298echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 39299 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39300 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
39301echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
39302
39303 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
39304echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 39305 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39306 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
39307echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
39308 else
39309 LIBGNOMEPRINTUI_CFLAGS=""
39310 LIBGNOMEPRINTUI_LIBS=""
39311 ## If we have a custom action on failure, don't print errors, but
39312 ## do set a variable so people can do so.
ffa762ff 39313 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39314
39315 fi
39316
39317
39318
39319 else
39320 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39321 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39322 fi
39323 fi
39324
39325 if test $succeeded = yes; then
39326
d1c38808
VZ
39327 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
39328 cat >>confdefs.h <<\_ACEOF
39329#define wxUSE_LIBGNOMEPRINT 1
39330_ACEOF
39331
39332
39333 else
39334
39335 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
39336echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
39337 wxUSE_LIBGNOMEPRINT="no"
39338
39339
39340 fi
39341
39342 fi
39343 fi
39344fi
39345
39346
a848cd7e
SC
39347if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
39348 cat >>confdefs.h <<\_ACEOF
39349#define wxUSE_CMDLINE_PARSER 1
39350_ACEOF
39351
39352fi
39353
39354if test "$wxUSE_STOPWATCH" = "yes"; then
39355 cat >>confdefs.h <<\_ACEOF
39356#define wxUSE_STOPWATCH 1
39357_ACEOF
39358
39359fi
39360
39361if test "$wxUSE_DATETIME" = "yes"; then
39362 cat >>confdefs.h <<\_ACEOF
39363#define wxUSE_DATETIME 1
39364_ACEOF
39365
39366fi
39367
39368if test "$wxUSE_FILE" = "yes"; then
39369 cat >>confdefs.h <<\_ACEOF
39370#define wxUSE_FILE 1
39371_ACEOF
39372
39373fi
39374
39375if test "$wxUSE_FFILE" = "yes"; then
39376 cat >>confdefs.h <<\_ACEOF
39377#define wxUSE_FFILE 1
39378_ACEOF
39379
39380fi
39381
39382if test "$wxUSE_FILESYSTEM" = "yes"; then
39383 cat >>confdefs.h <<\_ACEOF
39384#define wxUSE_FILESYSTEM 1
39385_ACEOF
39386
39387fi
39388
39389if test "$wxUSE_FS_ZIP" = "yes"; then
39390 cat >>confdefs.h <<\_ACEOF
39391#define wxUSE_FS_ZIP 1
39392_ACEOF
39393
39394fi
39395
9e8e867f 39396if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 39397 cat >>confdefs.h <<\_ACEOF
9e8e867f 39398#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
39399_ACEOF
39400
39401fi
39402
39403if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 39404 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
39405 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
39406echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
39407 elif test "$wxUSE_ZLIB" = "no"; then
39408 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
39409echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
39410 else
39411 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39412#define wxUSE_ZIPSTREAM 1
39413_ACEOF
39414
81f90336 39415 fi
a848cd7e
SC
39416fi
39417
a848cd7e 39418if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
39419 if test "$USE_UNIX" != 1; then
39420 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
39421echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
39422 wxUSE_ON_FATAL_EXCEPTION=no
39423 else
39424 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39425#define wxUSE_ON_FATAL_EXCEPTION 1
39426_ACEOF
39427
18228ab4 39428 fi
a848cd7e
SC
39429fi
39430
eaff0f0d
VZ
39431if test "$wxUSE_STACKWALKER" = "yes"; then
39432 cat >>confdefs.h <<\_ACEOF
39433#define wxUSE_STACKWALKER 1
39434_ACEOF
39435
39436fi
39437
36b6448c 39438if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
39439 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
39440 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
39441echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
39442 wxUSE_DEBUGREPORT=no
39443 else
39444 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
39445#define wxUSE_DEBUGREPORT 1
39446_ACEOF
39447
21dfc162
MW
39448 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
39450 fi
dfe0c803 39451 fi
36b6448c
VZ
39452fi
39453
a848cd7e
SC
39454if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39455 cat >>confdefs.h <<\_ACEOF
39456#define wxUSE_SNGLINST_CHECKER 1
39457_ACEOF
39458
39459fi
39460
39461if test "$wxUSE_BUSYINFO" = "yes"; then
39462 cat >>confdefs.h <<\_ACEOF
39463#define wxUSE_BUSYINFO 1
39464_ACEOF
39465
39466fi
39467
39468if test "$wxUSE_STD_IOSTREAM" = "yes"; then
39469 cat >>confdefs.h <<\_ACEOF
39470#define wxUSE_STD_IOSTREAM 1
39471_ACEOF
39472
39473fi
39474
59746b65
MW
39475if test "$wxUSE_STD_STRING" = "yes"; then
39476 cat >>confdefs.h <<\_ACEOF
39477#define wxUSE_STD_STRING 1
39478_ACEOF
39479
39480fi
39481
07158944
VZ
39482if test "$wxUSE_STDPATHS" = "yes"; then
39483 cat >>confdefs.h <<\_ACEOF
39484#define wxUSE_STDPATHS 1
39485_ACEOF
39486
39487fi
39488
a848cd7e
SC
39489if test "$wxUSE_TEXTBUFFER" = "yes"; then
39490 cat >>confdefs.h <<\_ACEOF
39491#define wxUSE_TEXTBUFFER 1
39492_ACEOF
39493
39494fi
39495
39496if test "$wxUSE_TEXTFILE" = "yes"; then
39497 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
39498 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
39499echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
39500 else
39501 cat >>confdefs.h <<\_ACEOF
39502#define wxUSE_TEXTFILE 1
39503_ACEOF
39504
39505 fi
39506fi
39507
39508if test "$wxUSE_CONFIG" = "yes" ; then
39509 if test "$wxUSE_TEXTFILE" != "yes"; then
39510 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
39511echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
39512 else
39513 cat >>confdefs.h <<\_ACEOF
39514#define wxUSE_CONFIG 1
89be85c2
VS
39515_ACEOF
39516
39517 cat >>confdefs.h <<\_ACEOF
39518#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
39519_ACEOF
39520
39521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
39522 fi
39523fi
39524
39525if test "$wxUSE_INTL" = "yes" ; then
39526 if test "$wxUSE_FILE" != "yes"; then
39527 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
39528echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
39529 else
39530 cat >>confdefs.h <<\_ACEOF
39531#define wxUSE_INTL 1
39532_ACEOF
39533
39534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
39535 GUIDIST="$GUIDIST INTL_DIST"
39536 fi
39537fi
39538
39539if test "$wxUSE_LOG" = "yes"; then
39540 cat >>confdefs.h <<\_ACEOF
39541#define wxUSE_LOG 1
39542_ACEOF
39543
39544
39545 if test "$wxUSE_LOGGUI" = "yes"; then
39546 cat >>confdefs.h <<\_ACEOF
39547#define wxUSE_LOGGUI 1
39548_ACEOF
39549
39550 fi
39551
39552 if test "$wxUSE_LOGWINDOW" = "yes"; then
39553 cat >>confdefs.h <<\_ACEOF
39554#define wxUSE_LOGWINDOW 1
39555_ACEOF
39556
39557 fi
39558
39559 if test "$wxUSE_LOGDIALOG" = "yes"; then
39560 cat >>confdefs.h <<\_ACEOF
39561#define wxUSE_LOG_DIALOG 1
39562_ACEOF
39563
39564 fi
0b78747f
MW
39565
39566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
39567fi
39568
39569if test "$wxUSE_LONGLONG" = "yes"; then
39570 cat >>confdefs.h <<\_ACEOF
39571#define wxUSE_LONGLONG 1
39572_ACEOF
39573
39574fi
39575
39576if test "$wxUSE_GEOMETRY" = "yes"; then
39577 cat >>confdefs.h <<\_ACEOF
39578#define wxUSE_GEOMETRY 1
39579_ACEOF
39580
39581fi
39582
a848cd7e
SC
39583if test "$wxUSE_STREAMS" = "yes" ; then
39584 cat >>confdefs.h <<\_ACEOF
39585#define wxUSE_STREAMS 1
39586_ACEOF
39587
39588fi
39589
39590
39591if test "$wxUSE_DATETIME" = "yes"; then
39592
39593for ac_func in strptime
39594do
39595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39596echo "$as_me:$LINENO: checking for $ac_func" >&5
39597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39598if eval "test \"\${$as_ac_var+set}\" = set"; then
39599 echo $ECHO_N "(cached) $ECHO_C" >&6
39600else
39601 cat >conftest.$ac_ext <<_ACEOF
39602/* confdefs.h. */
39603_ACEOF
39604cat confdefs.h >>conftest.$ac_ext
39605cat >>conftest.$ac_ext <<_ACEOF
39606/* end confdefs.h. */
ac1cb8d3
VS
39607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39609#define $ac_func innocuous_$ac_func
39610
a848cd7e
SC
39611/* System header to define __stub macros and hopefully few prototypes,
39612 which can conflict with char $ac_func (); below.
39613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39614 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39615
a848cd7e
SC
39616#ifdef __STDC__
39617# include <limits.h>
39618#else
39619# include <assert.h>
39620#endif
ac1cb8d3
VS
39621
39622#undef $ac_func
39623
a848cd7e
SC
39624/* Override any gcc2 internal prototype to avoid an error. */
39625#ifdef __cplusplus
39626extern "C"
39627{
39628#endif
39629/* We use char because int might match the return type of a gcc2
39630 builtin and then its argument prototype would still apply. */
39631char $ac_func ();
39632/* The GNU C library defines this for functions which it implements
39633 to always fail with ENOSYS. Some functions are actually named
39634 something starting with __ and the normal name is an alias. */
39635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39636choke me
39637#else
39638char (*f) () = $ac_func;
39639#endif
39640#ifdef __cplusplus
39641}
39642#endif
39643
39644int
39645main ()
39646{
39647return f != $ac_func;
39648 ;
39649 return 0;
39650}
39651_ACEOF
39652rm -f conftest.$ac_objext conftest$ac_exeext
39653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39654 (eval $ac_link) 2>conftest.er1
a848cd7e 39655 ac_status=$?
ac1cb8d3
VS
39656 grep -v '^ *+' conftest.er1 >conftest.err
39657 rm -f conftest.er1
39658 cat conftest.err >&5
a848cd7e
SC
39659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660 (exit $ac_status); } &&
0093c2fc 39661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39663 (eval $ac_try) 2>&5
39664 ac_status=$?
39665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666 (exit $ac_status); }; } &&
39667 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39669 (eval $ac_try) 2>&5
39670 ac_status=$?
39671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39672 (exit $ac_status); }; }; then
39673 eval "$as_ac_var=yes"
39674else
39675 echo "$as_me: failed program was:" >&5
39676sed 's/^/| /' conftest.$ac_ext >&5
39677
39678eval "$as_ac_var=no"
39679fi
ac1cb8d3
VS
39680rm -f conftest.err conftest.$ac_objext \
39681 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39682fi
39683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39684echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39685if test `eval echo '${'$as_ac_var'}'` = yes; then
39686 cat >>confdefs.h <<_ACEOF
39687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39688_ACEOF
39689
39690fi
39691done
39692
f536f005
VZ
39693 if test "$ac_cv_func_strptime" = "yes"; then
39694 echo "$as_me:$LINENO: checking for strptime declaration" >&5
39695echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
39696if test "${wx_cv_func_strptime_decl+set}" = set; then
39697 echo $ECHO_N "(cached) $ECHO_C" >&6
39698else
39699
39700
39701
39702 ac_ext=cc
39703ac_cpp='$CXXCPP $CPPFLAGS'
39704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39707
39708 cat >conftest.$ac_ext <<_ACEOF
39709/* confdefs.h. */
39710_ACEOF
39711cat confdefs.h >>conftest.$ac_ext
39712cat >>conftest.$ac_ext <<_ACEOF
39713/* end confdefs.h. */
39714
39715 #include <time.h>
39716
39717int
39718main ()
39719{
39720
39721 struct tm t;
39722 strptime("foo", "bar", &t);
39723
39724 ;
39725 return 0;
39726}
39727_ACEOF
39728rm -f conftest.$ac_objext
39729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39730 (eval $ac_compile) 2>conftest.er1
39731 ac_status=$?
39732 grep -v '^ *+' conftest.er1 >conftest.err
39733 rm -f conftest.er1
39734 cat conftest.err >&5
39735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736 (exit $ac_status); } &&
0093c2fc 39737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
39738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39739 (eval $ac_try) 2>&5
39740 ac_status=$?
39741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39742 (exit $ac_status); }; } &&
39743 { ac_try='test -s conftest.$ac_objext'
39744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39745 (eval $ac_try) 2>&5
39746 ac_status=$?
39747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39748 (exit $ac_status); }; }; then
39749 wx_cv_func_strptime_decl=yes
39750else
39751 echo "$as_me: failed program was:" >&5
39752sed 's/^/| /' conftest.$ac_ext >&5
39753
39754wx_cv_func_strptime_decl=no
39755
39756fi
39757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39758 ac_ext=c
39759ac_cpp='$CPP $CPPFLAGS'
39760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39762ac_compiler_gnu=$ac_cv_c_compiler_gnu
39763
39764
39765
39766fi
39767echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
39768echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
39769 fi
39770 if test "$wx_cv_func_strptime_decl" = "yes"; then
39771 cat >>confdefs.h <<\_ACEOF
39772#define HAVE_STRPTIME_DECL 1
39773_ACEOF
39774
39775 fi
a848cd7e
SC
39776
39777 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
39778echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
39779if test "${wx_cv_var_timezone+set}" = set; then
39780 echo $ECHO_N "(cached) $ECHO_C" >&6
39781else
39782
39783 cat >conftest.$ac_ext <<_ACEOF
39784/* confdefs.h. */
39785_ACEOF
39786cat confdefs.h >>conftest.$ac_ext
39787cat >>conftest.$ac_ext <<_ACEOF
39788/* end confdefs.h. */
39789
39790 #include <time.h>
39791
39792int
39793main ()
39794{
39795
39796 int tz;
39797 tz = timezone;
39798
39799 ;
39800 return 0;
39801}
39802_ACEOF
39803rm -f conftest.$ac_objext
39804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39805 (eval $ac_compile) 2>conftest.er1
a848cd7e 39806 ac_status=$?
ac1cb8d3
VS
39807 grep -v '^ *+' conftest.er1 >conftest.err
39808 rm -f conftest.er1
39809 cat conftest.err >&5
a848cd7e
SC
39810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39811 (exit $ac_status); } &&
0093c2fc 39812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39814 (eval $ac_try) 2>&5
39815 ac_status=$?
39816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817 (exit $ac_status); }; } &&
39818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39820 (eval $ac_try) 2>&5
39821 ac_status=$?
39822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39823 (exit $ac_status); }; }; then
39824
39825 wx_cv_var_timezone=timezone
39826
39827else
39828 echo "$as_me: failed program was:" >&5
39829sed 's/^/| /' conftest.$ac_ext >&5
39830
39831
39832 cat >conftest.$ac_ext <<_ACEOF
39833/* confdefs.h. */
39834_ACEOF
39835cat confdefs.h >>conftest.$ac_ext
39836cat >>conftest.$ac_ext <<_ACEOF
39837/* end confdefs.h. */
39838
39839 #include <time.h>
39840
39841int
39842main ()
39843{
39844
39845 int tz;
39846 tz = _timezone;
39847
39848 ;
39849 return 0;
39850}
39851_ACEOF
39852rm -f conftest.$ac_objext
39853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39854 (eval $ac_compile) 2>conftest.er1
a848cd7e 39855 ac_status=$?
ac1cb8d3
VS
39856 grep -v '^ *+' conftest.er1 >conftest.err
39857 rm -f conftest.er1
39858 cat conftest.err >&5
a848cd7e
SC
39859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39860 (exit $ac_status); } &&
0093c2fc 39861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39863 (eval $ac_try) 2>&5
39864 ac_status=$?
39865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39866 (exit $ac_status); }; } &&
39867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39869 (eval $ac_try) 2>&5
39870 ac_status=$?
39871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39872 (exit $ac_status); }; }; then
39873
39874 wx_cv_var_timezone=_timezone
39875
39876else
39877 echo "$as_me: failed program was:" >&5
39878sed 's/^/| /' conftest.$ac_ext >&5
39879
39880
39881 cat >conftest.$ac_ext <<_ACEOF
39882/* confdefs.h. */
39883_ACEOF
39884cat confdefs.h >>conftest.$ac_ext
39885cat >>conftest.$ac_ext <<_ACEOF
39886/* end confdefs.h. */
39887
39888 #include <time.h>
39889
39890int
39891main ()
39892{
39893
39894 int tz;
39895 tz = __timezone;
39896
39897 ;
39898 return 0;
39899}
39900_ACEOF
39901rm -f conftest.$ac_objext
39902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39903 (eval $ac_compile) 2>conftest.er1
a848cd7e 39904 ac_status=$?
ac1cb8d3
VS
39905 grep -v '^ *+' conftest.er1 >conftest.err
39906 rm -f conftest.er1
39907 cat conftest.err >&5
a848cd7e
SC
39908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39909 (exit $ac_status); } &&
0093c2fc 39910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39912 (eval $ac_try) 2>&5
39913 ac_status=$?
39914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39915 (exit $ac_status); }; } &&
39916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39918 (eval $ac_try) 2>&5
39919 ac_status=$?
39920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39921 (exit $ac_status); }; }; then
39922
39923 wx_cv_var_timezone=__timezone
39924
39925else
39926 echo "$as_me: failed program was:" >&5
39927sed 's/^/| /' conftest.$ac_ext >&5
39928
39929
39930 if test "$USE_DOS" = 0 ; then
39931 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39932echo "$as_me: WARNING: no timezone variable" >&2;}
39933 fi
39934
39935
39936fi
ac1cb8d3 39937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39938
39939
39940fi
ac1cb8d3 39941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39942
39943
39944fi
ac1cb8d3 39945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39946
39947
39948fi
39949echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39950echo "${ECHO_T}$wx_cv_var_timezone" >&6
39951
39952 if test "x$wx_cv_var_timezone" != x ; then
39953 cat >>confdefs.h <<_ACEOF
39954#define WX_TIMEZONE $wx_cv_var_timezone
39955_ACEOF
39956
39957 fi
39958
39959
39960for ac_func in localtime
39961do
39962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39963echo "$as_me:$LINENO: checking for $ac_func" >&5
39964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39965if eval "test \"\${$as_ac_var+set}\" = set"; then
39966 echo $ECHO_N "(cached) $ECHO_C" >&6
39967else
39968 cat >conftest.$ac_ext <<_ACEOF
39969/* confdefs.h. */
39970_ACEOF
39971cat confdefs.h >>conftest.$ac_ext
39972cat >>conftest.$ac_ext <<_ACEOF
39973/* end confdefs.h. */
ac1cb8d3
VS
39974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39976#define $ac_func innocuous_$ac_func
39977
a848cd7e
SC
39978/* System header to define __stub macros and hopefully few prototypes,
39979 which can conflict with char $ac_func (); below.
39980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39981 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39982
a848cd7e
SC
39983#ifdef __STDC__
39984# include <limits.h>
39985#else
39986# include <assert.h>
39987#endif
ac1cb8d3
VS
39988
39989#undef $ac_func
39990
a848cd7e
SC
39991/* Override any gcc2 internal prototype to avoid an error. */
39992#ifdef __cplusplus
39993extern "C"
39994{
39995#endif
39996/* We use char because int might match the return type of a gcc2
39997 builtin and then its argument prototype would still apply. */
39998char $ac_func ();
39999/* The GNU C library defines this for functions which it implements
40000 to always fail with ENOSYS. Some functions are actually named
40001 something starting with __ and the normal name is an alias. */
40002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40003choke me
40004#else
40005char (*f) () = $ac_func;
40006#endif
40007#ifdef __cplusplus
40008}
40009#endif
40010
40011int
40012main ()
40013{
40014return f != $ac_func;
40015 ;
40016 return 0;
40017}
40018_ACEOF
40019rm -f conftest.$ac_objext conftest$ac_exeext
40020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40021 (eval $ac_link) 2>conftest.er1
a848cd7e 40022 ac_status=$?
ac1cb8d3
VS
40023 grep -v '^ *+' conftest.er1 >conftest.err
40024 rm -f conftest.er1
40025 cat conftest.err >&5
a848cd7e
SC
40026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40027 (exit $ac_status); } &&
0093c2fc 40028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40030 (eval $ac_try) 2>&5
40031 ac_status=$?
40032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40033 (exit $ac_status); }; } &&
40034 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036 (eval $ac_try) 2>&5
40037 ac_status=$?
40038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039 (exit $ac_status); }; }; then
40040 eval "$as_ac_var=yes"
40041else
40042 echo "$as_me: failed program was:" >&5
40043sed 's/^/| /' conftest.$ac_ext >&5
40044
40045eval "$as_ac_var=no"
40046fi
ac1cb8d3
VS
40047rm -f conftest.err conftest.$ac_objext \
40048 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40049fi
40050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40052if test `eval echo '${'$as_ac_var'}'` = yes; then
40053 cat >>confdefs.h <<_ACEOF
40054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40055_ACEOF
40056
40057fi
40058done
40059
40060
40061 if test "$ac_cv_func_localtime" = "yes"; then
40062 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
40063echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
40064if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
40065 echo $ECHO_N "(cached) $ECHO_C" >&6
40066else
40067
40068 cat >conftest.$ac_ext <<_ACEOF
40069/* confdefs.h. */
40070_ACEOF
40071cat confdefs.h >>conftest.$ac_ext
40072cat >>conftest.$ac_ext <<_ACEOF
40073/* end confdefs.h. */
40074
40075 #include <time.h>
40076
40077int
40078main ()
40079{
40080
40081 struct tm tm;
40082 tm.tm_gmtoff++;
40083
40084 ;
40085 return 0;
40086}
40087_ACEOF
40088rm -f conftest.$ac_objext
40089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40090 (eval $ac_compile) 2>conftest.er1
a848cd7e 40091 ac_status=$?
ac1cb8d3
VS
40092 grep -v '^ *+' conftest.er1 >conftest.err
40093 rm -f conftest.er1
40094 cat conftest.err >&5
a848cd7e
SC
40095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096 (exit $ac_status); } &&
0093c2fc 40097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40099 (eval $ac_try) 2>&5
40100 ac_status=$?
40101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40102 (exit $ac_status); }; } &&
40103 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40105 (eval $ac_try) 2>&5
40106 ac_status=$?
40107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40108 (exit $ac_status); }; }; then
40109
40110 wx_cv_struct_tm_has_gmtoff=yes
40111
40112else
40113 echo "$as_me: failed program was:" >&5
40114sed 's/^/| /' conftest.$ac_ext >&5
40115
40116wx_cv_struct_tm_has_gmtoff=no
40117
40118fi
ac1cb8d3 40119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40120
40121fi
40122echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
40123echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
40124 fi
40125
40126 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
40127 cat >>confdefs.h <<\_ACEOF
40128#define WX_GMTOFF_IN_TM 1
40129_ACEOF
40130
40131 fi
40132
40133
40134
40135for ac_func in gettimeofday ftime
40136do
40137as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40138echo "$as_me:$LINENO: checking for $ac_func" >&5
40139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40140if eval "test \"\${$as_ac_var+set}\" = set"; then
40141 echo $ECHO_N "(cached) $ECHO_C" >&6
40142else
40143 cat >conftest.$ac_ext <<_ACEOF
40144/* confdefs.h. */
40145_ACEOF
40146cat confdefs.h >>conftest.$ac_ext
40147cat >>conftest.$ac_ext <<_ACEOF
40148/* end confdefs.h. */
ac1cb8d3
VS
40149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40151#define $ac_func innocuous_$ac_func
40152
a848cd7e
SC
40153/* System header to define __stub macros and hopefully few prototypes,
40154 which can conflict with char $ac_func (); below.
40155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40156 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40157
a848cd7e
SC
40158#ifdef __STDC__
40159# include <limits.h>
40160#else
40161# include <assert.h>
40162#endif
ac1cb8d3
VS
40163
40164#undef $ac_func
40165
a848cd7e
SC
40166/* Override any gcc2 internal prototype to avoid an error. */
40167#ifdef __cplusplus
40168extern "C"
40169{
40170#endif
40171/* We use char because int might match the return type of a gcc2
40172 builtin and then its argument prototype would still apply. */
40173char $ac_func ();
40174/* The GNU C library defines this for functions which it implements
40175 to always fail with ENOSYS. Some functions are actually named
40176 something starting with __ and the normal name is an alias. */
40177#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40178choke me
40179#else
40180char (*f) () = $ac_func;
40181#endif
40182#ifdef __cplusplus
40183}
40184#endif
40185
40186int
40187main ()
40188{
40189return f != $ac_func;
40190 ;
40191 return 0;
40192}
40193_ACEOF
40194rm -f conftest.$ac_objext conftest$ac_exeext
40195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40196 (eval $ac_link) 2>conftest.er1
a848cd7e 40197 ac_status=$?
ac1cb8d3
VS
40198 grep -v '^ *+' conftest.er1 >conftest.err
40199 rm -f conftest.er1
40200 cat conftest.err >&5
a848cd7e
SC
40201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202 (exit $ac_status); } &&
0093c2fc 40203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40205 (eval $ac_try) 2>&5
40206 ac_status=$?
40207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40208 (exit $ac_status); }; } &&
40209 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40211 (eval $ac_try) 2>&5
40212 ac_status=$?
40213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40214 (exit $ac_status); }; }; then
40215 eval "$as_ac_var=yes"
40216else
40217 echo "$as_me: failed program was:" >&5
40218sed 's/^/| /' conftest.$ac_ext >&5
40219
40220eval "$as_ac_var=no"
40221fi
ac1cb8d3
VS
40222rm -f conftest.err conftest.$ac_objext \
40223 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40224fi
40225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40226echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40227if test `eval echo '${'$as_ac_var'}'` = yes; then
40228 cat >>confdefs.h <<_ACEOF
40229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40230_ACEOF
40231 break
40232fi
40233done
40234
40235
40236 if test "$ac_cv_func_gettimeofday" = "yes"; then
40237 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
40238echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
40239if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
40240 echo $ECHO_N "(cached) $ECHO_C" >&6
40241else
40242
40243
40244
40245 ac_ext=cc
40246ac_cpp='$CXXCPP $CPPFLAGS'
40247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40250
40251
40252 cat >conftest.$ac_ext <<_ACEOF
40253/* confdefs.h. */
40254_ACEOF
40255cat confdefs.h >>conftest.$ac_ext
40256cat >>conftest.$ac_ext <<_ACEOF
40257/* end confdefs.h. */
40258
40259 #include <sys/time.h>
40260 #include <unistd.h>
40261
40262int
40263main ()
40264{
40265
40266 struct timeval tv;
40267 gettimeofday(&tv, NULL);
40268
40269 ;
40270 return 0;
40271}
40272_ACEOF
40273rm -f conftest.$ac_objext
40274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40275 (eval $ac_compile) 2>conftest.er1
a848cd7e 40276 ac_status=$?
ac1cb8d3
VS
40277 grep -v '^ *+' conftest.er1 >conftest.err
40278 rm -f conftest.er1
40279 cat conftest.err >&5
a848cd7e
SC
40280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281 (exit $ac_status); } &&
0093c2fc 40282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40284 (eval $ac_try) 2>&5
40285 ac_status=$?
40286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40287 (exit $ac_status); }; } &&
40288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40290 (eval $ac_try) 2>&5
40291 ac_status=$?
40292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40293 (exit $ac_status); }; }; then
40294 wx_cv_func_gettimeofday_has_2_args=yes
40295else
40296 echo "$as_me: failed program was:" >&5
40297sed 's/^/| /' conftest.$ac_ext >&5
40298
40299cat >conftest.$ac_ext <<_ACEOF
40300/* confdefs.h. */
40301_ACEOF
40302cat confdefs.h >>conftest.$ac_ext
40303cat >>conftest.$ac_ext <<_ACEOF
40304/* end confdefs.h. */
40305
40306 #include <sys/time.h>
40307 #include <unistd.h>
40308
40309int
40310main ()
40311{
40312
40313 struct timeval tv;
40314 gettimeofday(&tv);
40315
40316 ;
40317 return 0;
40318}
40319_ACEOF
40320rm -f conftest.$ac_objext
40321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40322 (eval $ac_compile) 2>conftest.er1
a848cd7e 40323 ac_status=$?
ac1cb8d3
VS
40324 grep -v '^ *+' conftest.er1 >conftest.err
40325 rm -f conftest.er1
40326 cat conftest.err >&5
a848cd7e
SC
40327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40328 (exit $ac_status); } &&
0093c2fc 40329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40331 (eval $ac_try) 2>&5
40332 ac_status=$?
40333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40334 (exit $ac_status); }; } &&
40335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40337 (eval $ac_try) 2>&5
40338 ac_status=$?
40339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340 (exit $ac_status); }; }; then
40341 wx_cv_func_gettimeofday_has_2_args=no
40342else
40343 echo "$as_me: failed program was:" >&5
40344sed 's/^/| /' conftest.$ac_ext >&5
40345
40346
40347 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
40348echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
40349 wx_cv_func_gettimeofday_has_2_args=unknown
40350
40351
40352fi
ac1cb8d3 40353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40354
40355fi
ac1cb8d3 40356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40357 ac_ext=c
40358ac_cpp='$CPP $CPPFLAGS'
40359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40361ac_compiler_gnu=$ac_cv_c_compiler_gnu
40362
40363
40364fi
40365echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
40366echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
40367
40368 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
40369 cat >>confdefs.h <<\_ACEOF
40370#define WX_GETTIMEOFDAY_NO_TZ 1
40371_ACEOF
40372
40373 fi
40374 fi
40375
40376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
40377fi
40378
40379
40380if test "$wxUSE_SOCKETS" = "yes"; then
40381 if test "$wxUSE_MGL" = "1"; then
40382 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
40383echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
40384 wxUSE_SOCKETS="no"
40385 fi
40386fi
40387
40388if test "$wxUSE_SOCKETS" = "yes"; then
40389 if test "$TOOLKIT" != "MSW"; then
40390 echo "$as_me:$LINENO: checking for socket" >&5
40391echo $ECHO_N "checking for socket... $ECHO_C" >&6
40392if test "${ac_cv_func_socket+set}" = set; then
40393 echo $ECHO_N "(cached) $ECHO_C" >&6
40394else
40395 cat >conftest.$ac_ext <<_ACEOF
40396/* confdefs.h. */
40397_ACEOF
40398cat confdefs.h >>conftest.$ac_ext
40399cat >>conftest.$ac_ext <<_ACEOF
40400/* end confdefs.h. */
ac1cb8d3
VS
40401/* Define socket to an innocuous variant, in case <limits.h> declares socket.
40402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40403#define socket innocuous_socket
40404
a848cd7e
SC
40405/* System header to define __stub macros and hopefully few prototypes,
40406 which can conflict with char socket (); below.
40407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40408 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40409
a848cd7e
SC
40410#ifdef __STDC__
40411# include <limits.h>
40412#else
40413# include <assert.h>
40414#endif
ac1cb8d3
VS
40415
40416#undef socket
40417
a848cd7e
SC
40418/* Override any gcc2 internal prototype to avoid an error. */
40419#ifdef __cplusplus
40420extern "C"
40421{
40422#endif
40423/* We use char because int might match the return type of a gcc2
40424 builtin and then its argument prototype would still apply. */
40425char socket ();
40426/* The GNU C library defines this for functions which it implements
40427 to always fail with ENOSYS. Some functions are actually named
40428 something starting with __ and the normal name is an alias. */
40429#if defined (__stub_socket) || defined (__stub___socket)
40430choke me
40431#else
40432char (*f) () = socket;
40433#endif
40434#ifdef __cplusplus
40435}
40436#endif
40437
40438int
40439main ()
40440{
40441return f != socket;
40442 ;
40443 return 0;
40444}
40445_ACEOF
40446rm -f conftest.$ac_objext conftest$ac_exeext
40447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40448 (eval $ac_link) 2>conftest.er1
a848cd7e 40449 ac_status=$?
ac1cb8d3
VS
40450 grep -v '^ *+' conftest.er1 >conftest.err
40451 rm -f conftest.er1
40452 cat conftest.err >&5
a848cd7e
SC
40453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40454 (exit $ac_status); } &&
0093c2fc 40455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40457 (eval $ac_try) 2>&5
40458 ac_status=$?
40459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40460 (exit $ac_status); }; } &&
40461 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40463 (eval $ac_try) 2>&5
40464 ac_status=$?
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); }; }; then
40467 ac_cv_func_socket=yes
40468else
40469 echo "$as_me: failed program was:" >&5
40470sed 's/^/| /' conftest.$ac_ext >&5
40471
40472ac_cv_func_socket=no
40473fi
ac1cb8d3
VS
40474rm -f conftest.err conftest.$ac_objext \
40475 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40476fi
40477echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
40478echo "${ECHO_T}$ac_cv_func_socket" >&6
40479if test $ac_cv_func_socket = yes; then
40480 :
40481else
40482
40483 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
40484echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
40485if test "${ac_cv_lib_socket_socket+set}" = set; then
40486 echo $ECHO_N "(cached) $ECHO_C" >&6
40487else
40488 ac_check_lib_save_LIBS=$LIBS
40489LIBS="-lsocket $LIBS"
40490cat >conftest.$ac_ext <<_ACEOF
40491/* confdefs.h. */
40492_ACEOF
40493cat confdefs.h >>conftest.$ac_ext
40494cat >>conftest.$ac_ext <<_ACEOF
40495/* end confdefs.h. */
40496
40497/* Override any gcc2 internal prototype to avoid an error. */
40498#ifdef __cplusplus
40499extern "C"
40500#endif
40501/* We use char because int might match the return type of a gcc2
40502 builtin and then its argument prototype would still apply. */
40503char socket ();
40504int
40505main ()
40506{
40507socket ();
40508 ;
40509 return 0;
40510}
40511_ACEOF
40512rm -f conftest.$ac_objext conftest$ac_exeext
40513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40514 (eval $ac_link) 2>conftest.er1
a848cd7e 40515 ac_status=$?
ac1cb8d3
VS
40516 grep -v '^ *+' conftest.er1 >conftest.err
40517 rm -f conftest.er1
40518 cat conftest.err >&5
a848cd7e
SC
40519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40520 (exit $ac_status); } &&
0093c2fc 40521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40523 (eval $ac_try) 2>&5
40524 ac_status=$?
40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526 (exit $ac_status); }; } &&
40527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40529 (eval $ac_try) 2>&5
40530 ac_status=$?
40531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40532 (exit $ac_status); }; }; then
40533 ac_cv_lib_socket_socket=yes
40534else
40535 echo "$as_me: failed program was:" >&5
40536sed 's/^/| /' conftest.$ac_ext >&5
40537
40538ac_cv_lib_socket_socket=no
40539fi
ac1cb8d3
VS
40540rm -f conftest.err conftest.$ac_objext \
40541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40542LIBS=$ac_check_lib_save_LIBS
40543fi
40544echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
40545echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
40546if test $ac_cv_lib_socket_socket = yes; then
40547 if test "$INET_LINK" != " -lsocket"; then
40548 INET_LINK="$INET_LINK -lsocket"
40549 fi
40550else
40551
40552 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
40553echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
40554 wxUSE_SOCKETS=no
40555
40556
40557fi
40558
40559
40560
40561fi
40562
40563 fi
40564fi
40565
40566if test "$wxUSE_SOCKETS" = "yes" ; then
40567 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
40568 ac_ext=cc
40569ac_cpp='$CXXCPP $CPPFLAGS'
40570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40573
40574 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
40575echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
40576if test "${wx_cv_type_getsockname3+set}" = set; then
40577 echo $ECHO_N "(cached) $ECHO_C" >&6
40578else
40579
40580 cat >conftest.$ac_ext <<_ACEOF
40581/* confdefs.h. */
40582_ACEOF
40583cat confdefs.h >>conftest.$ac_ext
40584cat >>conftest.$ac_ext <<_ACEOF
40585/* end confdefs.h. */
40586
40587 #include <sys/types.h>
40588 #include <sys/socket.h>
40589
40590int
40591main ()
40592{
40593
40594 socklen_t len;
40595 getsockname(0, 0, &len);
40596
40597 ;
40598 return 0;
40599}
40600_ACEOF
40601rm -f conftest.$ac_objext
40602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40603 (eval $ac_compile) 2>conftest.er1
a848cd7e 40604 ac_status=$?
ac1cb8d3
VS
40605 grep -v '^ *+' conftest.er1 >conftest.err
40606 rm -f conftest.er1
40607 cat conftest.err >&5
a848cd7e
SC
40608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40609 (exit $ac_status); } &&
0093c2fc 40610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40612 (eval $ac_try) 2>&5
40613 ac_status=$?
40614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40615 (exit $ac_status); }; } &&
40616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40618 (eval $ac_try) 2>&5
40619 ac_status=$?
40620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40621 (exit $ac_status); }; }; then
40622 wx_cv_type_getsockname3=socklen_t
40623else
40624 echo "$as_me: failed program was:" >&5
40625sed 's/^/| /' conftest.$ac_ext >&5
40626
40627
6459a506 40628 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 40629 if test "$GCC" = yes ; then
6459a506 40630 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
40631 fi
40632
40633 cat >conftest.$ac_ext <<_ACEOF
40634/* confdefs.h. */
40635_ACEOF
40636cat confdefs.h >>conftest.$ac_ext
40637cat >>conftest.$ac_ext <<_ACEOF
40638/* end confdefs.h. */
40639
40640 #include <sys/types.h>
40641 #include <sys/socket.h>
40642
40643int
40644main ()
40645{
40646
40647 size_t len;
40648 getsockname(0, 0, &len);
40649
40650 ;
40651 return 0;
40652}
40653_ACEOF
40654rm -f conftest.$ac_objext
40655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40656 (eval $ac_compile) 2>conftest.er1
a848cd7e 40657 ac_status=$?
ac1cb8d3
VS
40658 grep -v '^ *+' conftest.er1 >conftest.err
40659 rm -f conftest.er1
40660 cat conftest.err >&5
a848cd7e
SC
40661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40662 (exit $ac_status); } &&
0093c2fc 40663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40665 (eval $ac_try) 2>&5
40666 ac_status=$?
40667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40668 (exit $ac_status); }; } &&
40669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40671 (eval $ac_try) 2>&5
40672 ac_status=$?
40673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40674 (exit $ac_status); }; }; then
40675 wx_cv_type_getsockname3=size_t
40676else
40677 echo "$as_me: failed program was:" >&5
40678sed 's/^/| /' conftest.$ac_ext >&5
40679
40680cat >conftest.$ac_ext <<_ACEOF
40681/* confdefs.h. */
40682_ACEOF
40683cat confdefs.h >>conftest.$ac_ext
40684cat >>conftest.$ac_ext <<_ACEOF
40685/* end confdefs.h. */
40686
40687 #include <sys/types.h>
40688 #include <sys/socket.h>
40689
40690int
40691main ()
40692{
40693
40694 int len;
40695 getsockname(0, 0, &len);
40696
40697 ;
40698 return 0;
40699}
40700_ACEOF
40701rm -f conftest.$ac_objext
40702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40703 (eval $ac_compile) 2>conftest.er1
a848cd7e 40704 ac_status=$?
ac1cb8d3
VS
40705 grep -v '^ *+' conftest.er1 >conftest.err
40706 rm -f conftest.er1
40707 cat conftest.err >&5
a848cd7e
SC
40708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709 (exit $ac_status); } &&
0093c2fc 40710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40712 (eval $ac_try) 2>&5
40713 ac_status=$?
40714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40715 (exit $ac_status); }; } &&
40716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40718 (eval $ac_try) 2>&5
40719 ac_status=$?
40720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40721 (exit $ac_status); }; }; then
40722 wx_cv_type_getsockname3=int
40723else
40724 echo "$as_me: failed program was:" >&5
40725sed 's/^/| /' conftest.$ac_ext >&5
40726
40727wx_cv_type_getsockname3=unknown
40728
40729fi
ac1cb8d3 40730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40731
40732fi
ac1cb8d3 40733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40734
6459a506 40735 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40736
40737
40738fi
ac1cb8d3 40739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40740
40741fi
40742echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
40743echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
40744
40745 if test "$wx_cv_type_getsockname3" = "unknown"; then
40746 wxUSE_SOCKETS=no
40747 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40748echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40749 else
40750 cat >>confdefs.h <<_ACEOF
9e03e02d 40751#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
40752_ACEOF
40753
40754 fi
40755 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
40756echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
40757if test "${wx_cv_type_getsockopt5+set}" = set; then
40758 echo $ECHO_N "(cached) $ECHO_C" >&6
40759else
40760
40761 cat >conftest.$ac_ext <<_ACEOF
40762/* confdefs.h. */
40763_ACEOF
40764cat confdefs.h >>conftest.$ac_ext
40765cat >>conftest.$ac_ext <<_ACEOF
40766/* end confdefs.h. */
40767
40768 #include <sys/types.h>
40769 #include <sys/socket.h>
40770
40771int
40772main ()
40773{
40774
40775 socklen_t len;
40776 getsockopt(0, 0, 0, 0, &len);
40777
40778 ;
40779 return 0;
40780}
40781_ACEOF
40782rm -f conftest.$ac_objext
40783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40784 (eval $ac_compile) 2>conftest.er1
40785 ac_status=$?
40786 grep -v '^ *+' conftest.er1 >conftest.err
40787 rm -f conftest.er1
40788 cat conftest.err >&5
40789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40790 (exit $ac_status); } &&
0093c2fc 40791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40793 (eval $ac_try) 2>&5
40794 ac_status=$?
40795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796 (exit $ac_status); }; } &&
40797 { ac_try='test -s conftest.$ac_objext'
40798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40799 (eval $ac_try) 2>&5
40800 ac_status=$?
40801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802 (exit $ac_status); }; }; then
40803 wx_cv_type_getsockopt5=socklen_t
40804else
40805 echo "$as_me: failed program was:" >&5
40806sed 's/^/| /' conftest.$ac_ext >&5
40807
40808
6459a506 40809 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 40810 if test "$GCC" = yes ; then
6459a506 40811 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
40812 fi
40813
40814 cat >conftest.$ac_ext <<_ACEOF
40815/* confdefs.h. */
40816_ACEOF
40817cat confdefs.h >>conftest.$ac_ext
40818cat >>conftest.$ac_ext <<_ACEOF
40819/* end confdefs.h. */
40820
40821 #include <sys/types.h>
40822 #include <sys/socket.h>
40823
40824int
40825main ()
40826{
40827
40828 size_t len;
40829 getsockopt(0, 0, 0, 0, &len);
40830
40831 ;
40832 return 0;
40833}
40834_ACEOF
40835rm -f conftest.$ac_objext
40836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40837 (eval $ac_compile) 2>conftest.er1
40838 ac_status=$?
40839 grep -v '^ *+' conftest.er1 >conftest.err
40840 rm -f conftest.er1
40841 cat conftest.err >&5
40842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843 (exit $ac_status); } &&
0093c2fc 40844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40846 (eval $ac_try) 2>&5
40847 ac_status=$?
40848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40849 (exit $ac_status); }; } &&
40850 { ac_try='test -s conftest.$ac_objext'
40851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40852 (eval $ac_try) 2>&5
40853 ac_status=$?
40854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40855 (exit $ac_status); }; }; then
40856 wx_cv_type_getsockopt5=size_t
40857else
40858 echo "$as_me: failed program was:" >&5
40859sed 's/^/| /' conftest.$ac_ext >&5
40860
40861cat >conftest.$ac_ext <<_ACEOF
40862/* confdefs.h. */
40863_ACEOF
40864cat confdefs.h >>conftest.$ac_ext
40865cat >>conftest.$ac_ext <<_ACEOF
40866/* end confdefs.h. */
40867
40868 #include <sys/types.h>
40869 #include <sys/socket.h>
40870
40871int
40872main ()
40873{
40874
40875 int len;
40876 getsockopt(0, 0, 0, 0, &len);
40877
40878 ;
40879 return 0;
40880}
40881_ACEOF
40882rm -f conftest.$ac_objext
40883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40884 (eval $ac_compile) 2>conftest.er1
40885 ac_status=$?
40886 grep -v '^ *+' conftest.er1 >conftest.err
40887 rm -f conftest.er1
40888 cat conftest.err >&5
40889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890 (exit $ac_status); } &&
0093c2fc 40891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40893 (eval $ac_try) 2>&5
40894 ac_status=$?
40895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896 (exit $ac_status); }; } &&
40897 { ac_try='test -s conftest.$ac_objext'
40898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40899 (eval $ac_try) 2>&5
40900 ac_status=$?
40901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40902 (exit $ac_status); }; }; then
40903 wx_cv_type_getsockopt5=int
40904else
40905 echo "$as_me: failed program was:" >&5
40906sed 's/^/| /' conftest.$ac_ext >&5
40907
40908wx_cv_type_getsockopt5=unknown
40909
40910fi
40911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40912
40913fi
40914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40915
6459a506 40916 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
40917
40918
40919fi
40920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40921
40922fi
40923echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40924echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40925
40926 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40927 wxUSE_SOCKETS=no
40928 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40929echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40930 else
40931 cat >>confdefs.h <<_ACEOF
40932#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40933_ACEOF
40934
40935 fi
4d4ff94c
VZ
40936 ac_ext=c
40937ac_cpp='$CPP $CPPFLAGS'
40938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40940ac_compiler_gnu=$ac_cv_c_compiler_gnu
40941
a848cd7e
SC
40942 fi
40943fi
40944
40945if test "$wxUSE_SOCKETS" = "yes" ; then
40946 cat >>confdefs.h <<\_ACEOF
40947#define wxUSE_SOCKETS 1
40948_ACEOF
40949
40950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40951fi
40952
40953if test "$wxUSE_PROTOCOL" = "yes"; then
40954 if test "$wxUSE_SOCKETS" != "yes"; then
40955 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40956echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40957 wxUSE_PROTOCOL=no
40958 fi
40959fi
40960
40961if test "$wxUSE_PROTOCOL" = "yes"; then
40962 cat >>confdefs.h <<\_ACEOF
40963#define wxUSE_PROTOCOL 1
40964_ACEOF
40965
40966
40967 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40968 cat >>confdefs.h <<\_ACEOF
40969#define wxUSE_PROTOCOL_HTTP 1
40970_ACEOF
40971
40972 fi
40973 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40974 cat >>confdefs.h <<\_ACEOF
40975#define wxUSE_PROTOCOL_FTP 1
40976_ACEOF
40977
40978 fi
40979 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40980 cat >>confdefs.h <<\_ACEOF
40981#define wxUSE_PROTOCOL_FILE 1
40982_ACEOF
40983
40984 fi
40985else
40986 if test "$wxUSE_FS_INET" = "yes"; then
40987 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40988echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40989 wxUSE_FS_INET="no"
40990 fi
40991fi
40992
40993if test "$wxUSE_URL" = "yes"; then
40994 if test "$wxUSE_PROTOCOL" != "yes"; then
40995 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40996echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40997 wxUSE_URL=no
40998 fi
40999 if test "$wxUSE_URL" = "yes"; then
41000 cat >>confdefs.h <<\_ACEOF
41001#define wxUSE_URL 1
41002_ACEOF
41003
41004 fi
41005fi
41006
41007if test "$wxUSE_FS_INET" = "yes"; then
41008 cat >>confdefs.h <<\_ACEOF
41009#define wxUSE_FS_INET 1
41010_ACEOF
41011
41012fi
41013
41014
ee45c548
MW
41015if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
41016 wxUSE_JOYSTICK=no
41017
41018 if test "$TOOLKIT" = "MSW"; then
41019 wxUSE_JOYSTICK=yes
41020
41021 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
41022 if test "$USE_DARWIN" = 1; then
41023 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
41024echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
41025 ac_ext=cc
41026ac_cpp='$CXXCPP $CPPFLAGS'
41027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41030
41031 cat >conftest.$ac_ext <<_ACEOF
41032/* confdefs.h. */
41033_ACEOF
41034cat confdefs.h >>conftest.$ac_ext
41035cat >>conftest.$ac_ext <<_ACEOF
41036/* end confdefs.h. */
41037 #include <IOKit/hid/IOHIDLib.h>
41038int
41039main ()
41040{
41041 IOHIDQueueInterface *qi = NULL;
41042 IOHIDCallbackFunction cb = NULL;
41043 qi->setEventCallout(NULL, cb, NULL, NULL);
41044 ;
41045 return 0;
41046}
41047_ACEOF
41048rm -f conftest.$ac_objext
41049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41050 (eval $ac_compile) 2>conftest.er1
41051 ac_status=$?
41052 grep -v '^ *+' conftest.er1 >conftest.err
41053 rm -f conftest.er1
41054 cat conftest.err >&5
41055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056 (exit $ac_status); } &&
0093c2fc 41057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
41058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41059 (eval $ac_try) 2>&5
41060 ac_status=$?
41061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41062 (exit $ac_status); }; } &&
41063 { ac_try='test -s conftest.$ac_objext'
41064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41065 (eval $ac_try) 2>&5
41066 ac_status=$?
41067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068 (exit $ac_status); }; }; then
41069 wxUSE_JOYSTICK=yes
a848cd7e 41070
ee45c548
MW
41071else
41072 echo "$as_me: failed program was:" >&5
41073sed 's/^/| /' conftest.$ac_ext >&5
41074
41075fi
41076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41077 ac_ext=c
41078ac_cpp='$CPP $CPPFLAGS'
41079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41081ac_compiler_gnu=$ac_cv_c_compiler_gnu
41082
41083 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
41084echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
41085 fi
41086
41087 else
a848cd7e
SC
41088
41089for ac_header in linux/joystick.h
41090do
41091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41092if eval "test \"\${$as_ac_Header+set}\" = set"; then
41093 echo "$as_me:$LINENO: checking for $ac_header" >&5
41094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41095if eval "test \"\${$as_ac_Header+set}\" = set"; then
41096 echo $ECHO_N "(cached) $ECHO_C" >&6
41097fi
41098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41100else
41101 # Is the header compilable?
41102echo "$as_me:$LINENO: checking $ac_header usability" >&5
41103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41104cat >conftest.$ac_ext <<_ACEOF
41105/* confdefs.h. */
41106_ACEOF
41107cat confdefs.h >>conftest.$ac_ext
41108cat >>conftest.$ac_ext <<_ACEOF
41109/* end confdefs.h. */
41110$ac_includes_default
41111#include <$ac_header>
41112_ACEOF
41113rm -f conftest.$ac_objext
41114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41115 (eval $ac_compile) 2>conftest.er1
a848cd7e 41116 ac_status=$?
ac1cb8d3
VS
41117 grep -v '^ *+' conftest.er1 >conftest.err
41118 rm -f conftest.er1
41119 cat conftest.err >&5
a848cd7e
SC
41120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41121 (exit $ac_status); } &&
0093c2fc 41122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41124 (eval $ac_try) 2>&5
41125 ac_status=$?
41126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127 (exit $ac_status); }; } &&
41128 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41130 (eval $ac_try) 2>&5
41131 ac_status=$?
41132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41133 (exit $ac_status); }; }; then
41134 ac_header_compiler=yes
41135else
41136 echo "$as_me: failed program was:" >&5
41137sed 's/^/| /' conftest.$ac_ext >&5
41138
41139ac_header_compiler=no
41140fi
ac1cb8d3 41141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41142echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41143echo "${ECHO_T}$ac_header_compiler" >&6
41144
41145# Is the header present?
41146echo "$as_me:$LINENO: checking $ac_header presence" >&5
41147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41148cat >conftest.$ac_ext <<_ACEOF
41149/* confdefs.h. */
41150_ACEOF
41151cat confdefs.h >>conftest.$ac_ext
41152cat >>conftest.$ac_ext <<_ACEOF
41153/* end confdefs.h. */
41154#include <$ac_header>
41155_ACEOF
41156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41158 ac_status=$?
41159 grep -v '^ *+' conftest.er1 >conftest.err
41160 rm -f conftest.er1
41161 cat conftest.err >&5
41162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41163 (exit $ac_status); } >/dev/null; then
41164 if test -s conftest.err; then
41165 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41167 else
41168 ac_cpp_err=
41169 fi
41170else
41171 ac_cpp_err=yes
41172fi
41173if test -z "$ac_cpp_err"; then
41174 ac_header_preproc=yes
41175else
41176 echo "$as_me: failed program was:" >&5
41177sed 's/^/| /' conftest.$ac_ext >&5
41178
41179 ac_header_preproc=no
41180fi
41181rm -f conftest.err conftest.$ac_ext
41182echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41183echo "${ECHO_T}$ac_header_preproc" >&6
41184
41185# So? What about this header?
ac1cb8d3
VS
41186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41187 yes:no: )
a848cd7e
SC
41188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41191echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41192 ac_header_preproc=yes
a848cd7e 41193 ;;
ac1cb8d3 41194 no:yes:* )
a848cd7e
SC
41195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41200echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41202echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41204echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41206echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41207 (
41208 cat <<\_ASBOX
ac1cb8d3
VS
41209## ----------------------------------------- ##
41210## Report this to wx-dev@lists.wxwidgets.org ##
41211## ----------------------------------------- ##
a848cd7e
SC
41212_ASBOX
41213 ) |
41214 sed "s/^/$as_me: WARNING: /" >&2
41215 ;;
41216esac
41217echo "$as_me:$LINENO: checking for $ac_header" >&5
41218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41219if eval "test \"\${$as_ac_Header+set}\" = set"; then
41220 echo $ECHO_N "(cached) $ECHO_C" >&6
41221else
ac1cb8d3 41222 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41223fi
41224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41226
41227fi
41228if test `eval echo '${'$as_ac_Header'}'` = yes; then
41229 cat >>confdefs.h <<_ACEOF
41230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41231_ACEOF
ee45c548 41232 wxUSE_JOYSTICK=yes
a848cd7e
SC
41233fi
41234
41235done
41236
ee45c548 41237 fi
4cb1d3da 41238
ee45c548
MW
41239 if test "$wxUSE_JOYSTICK" = "yes"; then
41240 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41241#define wxUSE_JOYSTICK 1
41242_ACEOF
41243
ee45c548
MW
41244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
41245 else
41246 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
41247echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
41248 fi
41249fi
41250
41251
41252
41253if test "$wxUSE_FONTMAP" = "yes" ; then
41254 cat >>confdefs.h <<\_ACEOF
41255#define wxUSE_FONTMAP 1
41256_ACEOF
41257
41258fi
41259
41260if test "$wxUSE_UNICODE" = "yes" ; then
41261 cat >>confdefs.h <<\_ACEOF
41262#define wxUSE_UNICODE 1
41263_ACEOF
41264
41265
41266 if test "$USE_WIN32" != 1; then
41267 wxUSE_UNICODE_MSLU=no
41268 fi
41269
41270 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
41271 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
41272echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
41273if test "${ac_cv_lib_unicows_main+set}" = set; then
41274 echo $ECHO_N "(cached) $ECHO_C" >&6
41275else
41276 ac_check_lib_save_LIBS=$LIBS
41277LIBS="-lunicows $LIBS"
41278cat >conftest.$ac_ext <<_ACEOF
41279/* confdefs.h. */
41280_ACEOF
41281cat confdefs.h >>conftest.$ac_ext
41282cat >>conftest.$ac_ext <<_ACEOF
41283/* end confdefs.h. */
41284
41285
41286int
41287main ()
41288{
41289main ();
41290 ;
41291 return 0;
41292}
41293_ACEOF
41294rm -f conftest.$ac_objext conftest$ac_exeext
41295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41296 (eval $ac_link) 2>conftest.er1
a848cd7e 41297 ac_status=$?
ac1cb8d3
VS
41298 grep -v '^ *+' conftest.er1 >conftest.err
41299 rm -f conftest.er1
41300 cat conftest.err >&5
a848cd7e
SC
41301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41302 (exit $ac_status); } &&
0093c2fc 41303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41305 (eval $ac_try) 2>&5
41306 ac_status=$?
41307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41308 (exit $ac_status); }; } &&
41309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41311 (eval $ac_try) 2>&5
41312 ac_status=$?
41313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41314 (exit $ac_status); }; }; then
41315 ac_cv_lib_unicows_main=yes
41316else
41317 echo "$as_me: failed program was:" >&5
41318sed 's/^/| /' conftest.$ac_ext >&5
41319
41320ac_cv_lib_unicows_main=no
41321fi
ac1cb8d3
VS
41322rm -f conftest.err conftest.$ac_objext \
41323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41324LIBS=$ac_check_lib_save_LIBS
41325fi
41326echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
41327echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
41328if test $ac_cv_lib_unicows_main = yes; then
41329
41330 cat >>confdefs.h <<\_ACEOF
41331#define wxUSE_UNICODE_MSLU 1
41332_ACEOF
41333
41334
41335else
41336
41337 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41338 Applications will only run on Windows NT/2000/XP!" >&5
41339echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41340 Applications will only run on Windows NT/2000/XP!" >&2;}
41341 wxUSE_UNICODE_MSLU=no
41342
41343fi
41344
41345 fi
41346fi
41347
41348if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
41349 cat >>confdefs.h <<\_ACEOF
41350#define wxUSE_EXPERIMENTAL_PRINTF 1
41351_ACEOF
41352
41353fi
41354
41355
41356if test "$wxUSE_POSTSCRIPT" = "yes" ; then
41357 cat >>confdefs.h <<\_ACEOF
41358#define wxUSE_POSTSCRIPT 1
41359_ACEOF
41360
41361fi
41362
41363cat >>confdefs.h <<\_ACEOF
41364#define wxUSE_AFM_FOR_POSTSCRIPT 1
41365_ACEOF
41366
41367
41368cat >>confdefs.h <<\_ACEOF
41369#define wxUSE_NORMALIZED_PS_FONTS 1
41370_ACEOF
41371
41372
41373
41374if test "$wxUSE_CONSTRAINTS" = "yes"; then
41375 cat >>confdefs.h <<\_ACEOF
41376#define wxUSE_CONSTRAINTS 1
41377_ACEOF
41378
41379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
41380fi
41381
8a7b1113
VZ
41382if test "$wxUSE_MDI" = "yes"; then
41383 cat >>confdefs.h <<\_ACEOF
41384#define wxUSE_MDI 1
41385_ACEOF
41386
41387
41388 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41389 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41390#define wxUSE_MDI_ARCHITECTURE 1
41391_ACEOF
41392
8a7b1113
VZ
41393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
41394 fi
a848cd7e
SC
41395fi
41396
41397if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
41398 cat >>confdefs.h <<\_ACEOF
41399#define wxUSE_DOC_VIEW_ARCHITECTURE 1
41400_ACEOF
41401
41402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
41403 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
41405 fi
41406fi
41407
41408if test "$wxUSE_HELP" = "yes"; then
41409 cat >>confdefs.h <<\_ACEOF
41410#define wxUSE_HELP 1
41411_ACEOF
41412
41413 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
41414
41415 if test "$wxUSE_MSW" = 1; then
41416 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
41417 cat >>confdefs.h <<\_ACEOF
41418#define wxUSE_MS_HTML_HELP 1
41419_ACEOF
41420
41421 fi
41422 fi
41423
41424 if test "$wxUSE_WXHTML_HELP" = "yes"; then
41425 if test "$wxUSE_HTML" = "yes"; then
41426 cat >>confdefs.h <<\_ACEOF
41427#define wxUSE_WXHTML_HELP 1
41428_ACEOF
41429
41430 else
41431 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
41432echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
41433 wxUSE_WXHTML_HELP=no
41434 fi
41435 fi
41436fi
41437
41438if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41439 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41440 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
41441echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
41442 else
41443 cat >>confdefs.h <<\_ACEOF
41444#define wxUSE_PRINTING_ARCHITECTURE 1
41445_ACEOF
41446
41447 fi
41448 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
41449fi
41450
41451if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
41452 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
41453echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
41454 { (exit 1); exit 1; }; }
41455fi
41456
41457
efdf6afe
VZ
41458if test "$wxUSE_METAFILE" = "yes"; then
41459 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
41460 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
41461echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
41462 wxUSE_METAFILE=no
41463 fi
41464fi
41465
41466
a848cd7e
SC
41467if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
41468 -o "$wxUSE_CLIPBOARD" = "yes" \
41469 -o "$wxUSE_OLE" = "yes" \
41470 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
41471
41472for ac_header in ole2.h
41473do
41474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41475if eval "test \"\${$as_ac_Header+set}\" = set"; then
41476 echo "$as_me:$LINENO: checking for $ac_header" >&5
41477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41478if eval "test \"\${$as_ac_Header+set}\" = set"; then
41479 echo $ECHO_N "(cached) $ECHO_C" >&6
41480fi
41481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41483else
41484 # Is the header compilable?
41485echo "$as_me:$LINENO: checking $ac_header usability" >&5
41486echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41487cat >conftest.$ac_ext <<_ACEOF
41488/* confdefs.h. */
41489_ACEOF
41490cat confdefs.h >>conftest.$ac_ext
41491cat >>conftest.$ac_ext <<_ACEOF
41492/* end confdefs.h. */
41493$ac_includes_default
41494#include <$ac_header>
41495_ACEOF
41496rm -f conftest.$ac_objext
41497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41498 (eval $ac_compile) 2>conftest.er1
a848cd7e 41499 ac_status=$?
ac1cb8d3
VS
41500 grep -v '^ *+' conftest.er1 >conftest.err
41501 rm -f conftest.er1
41502 cat conftest.err >&5
a848cd7e
SC
41503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504 (exit $ac_status); } &&
0093c2fc 41505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41507 (eval $ac_try) 2>&5
41508 ac_status=$?
41509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510 (exit $ac_status); }; } &&
41511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41513 (eval $ac_try) 2>&5
41514 ac_status=$?
41515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516 (exit $ac_status); }; }; then
41517 ac_header_compiler=yes
41518else
41519 echo "$as_me: failed program was:" >&5
41520sed 's/^/| /' conftest.$ac_ext >&5
41521
41522ac_header_compiler=no
41523fi
ac1cb8d3 41524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41525echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41526echo "${ECHO_T}$ac_header_compiler" >&6
41527
41528# Is the header present?
41529echo "$as_me:$LINENO: checking $ac_header presence" >&5
41530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41531cat >conftest.$ac_ext <<_ACEOF
41532/* confdefs.h. */
41533_ACEOF
41534cat confdefs.h >>conftest.$ac_ext
41535cat >>conftest.$ac_ext <<_ACEOF
41536/* end confdefs.h. */
41537#include <$ac_header>
41538_ACEOF
41539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41541 ac_status=$?
41542 grep -v '^ *+' conftest.er1 >conftest.err
41543 rm -f conftest.er1
41544 cat conftest.err >&5
41545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41546 (exit $ac_status); } >/dev/null; then
41547 if test -s conftest.err; then
41548 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41550 else
41551 ac_cpp_err=
41552 fi
41553else
41554 ac_cpp_err=yes
41555fi
41556if test -z "$ac_cpp_err"; then
41557 ac_header_preproc=yes
41558else
41559 echo "$as_me: failed program was:" >&5
41560sed 's/^/| /' conftest.$ac_ext >&5
41561
41562 ac_header_preproc=no
41563fi
41564rm -f conftest.err conftest.$ac_ext
41565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41566echo "${ECHO_T}$ac_header_preproc" >&6
41567
41568# So? What about this header?
ac1cb8d3
VS
41569case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41570 yes:no: )
a848cd7e
SC
41571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41575 ac_header_preproc=yes
a848cd7e 41576 ;;
ac1cb8d3 41577 no:yes:* )
a848cd7e
SC
41578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41590 (
41591 cat <<\_ASBOX
ac1cb8d3
VS
41592## ----------------------------------------- ##
41593## Report this to wx-dev@lists.wxwidgets.org ##
41594## ----------------------------------------- ##
a848cd7e
SC
41595_ASBOX
41596 ) |
41597 sed "s/^/$as_me: WARNING: /" >&2
41598 ;;
41599esac
41600echo "$as_me:$LINENO: checking for $ac_header" >&5
41601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41602if eval "test \"\${$as_ac_Header+set}\" = set"; then
41603 echo $ECHO_N "(cached) $ECHO_C" >&6
41604else
ac1cb8d3 41605 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41606fi
41607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41609
41610fi
41611if test `eval echo '${'$as_ac_Header'}'` = yes; then
41612 cat >>confdefs.h <<_ACEOF
41613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41614_ACEOF
41615
41616fi
41617
41618done
41619
41620
41621 if test "$ac_cv_header_ole2_h" = "yes" ; then
41622 if test "$GCC" = yes ; then
41623
41624
41625 ac_ext=cc
41626ac_cpp='$CXXCPP $CPPFLAGS'
41627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41630
41631
41632 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
41633echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
41634 cat >conftest.$ac_ext <<_ACEOF
41635/* confdefs.h. */
41636_ACEOF
41637cat confdefs.h >>conftest.$ac_ext
41638cat >>conftest.$ac_ext <<_ACEOF
41639/* end confdefs.h. */
41640#include <windows.h>
41641 #include <ole2.h>
41642int
41643main ()
41644{
41645
41646 ;
41647 return 0;
41648}
41649_ACEOF
41650rm -f conftest.$ac_objext
41651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41652 (eval $ac_compile) 2>conftest.er1
a848cd7e 41653 ac_status=$?
ac1cb8d3
VS
41654 grep -v '^ *+' conftest.er1 >conftest.err
41655 rm -f conftest.er1
41656 cat conftest.err >&5
a848cd7e
SC
41657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41658 (exit $ac_status); } &&
0093c2fc 41659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41661 (eval $ac_try) 2>&5
41662 ac_status=$?
41663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41664 (exit $ac_status); }; } &&
41665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41667 (eval $ac_try) 2>&5
41668 ac_status=$?
41669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41670 (exit $ac_status); }; }; then
41671 echo "$as_me:$LINENO: result: no" >&5
41672echo "${ECHO_T}no" >&6
41673else
41674 echo "$as_me: failed program was:" >&5
41675sed 's/^/| /' conftest.$ac_ext >&5
41676
41677echo "$as_me:$LINENO: result: yes" >&5
41678echo "${ECHO_T}yes" >&6
41679 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
41680fi
ac1cb8d3 41681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41682 ac_ext=c
41683ac_cpp='$CPP $CPPFLAGS'
41684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41686ac_compiler_gnu=$ac_cv_c_compiler_gnu
41687
a848cd7e
SC
41688 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
41689 if test "$wxUSE_OLE" = "yes" ; then
41690 cat >>confdefs.h <<\_ACEOF
41691#define wxUSE_OLE 1
41692_ACEOF
41693
0b78747f 41694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
41695 fi
41696 fi
41697
41698 if test "$wxUSE_DATAOBJ" = "yes" ; then
41699 cat >>confdefs.h <<\_ACEOF
41700#define wxUSE_DATAOBJ 1
41701_ACEOF
41702
41703 fi
41704 else
41705 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
41706echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
41707
41708 wxUSE_CLIPBOARD=no
41709 wxUSE_DRAG_AND_DROP=no
41710 wxUSE_DATAOBJ=no
41711 wxUSE_OLE=no
41712 fi
41713
41714 if test "$wxUSE_METAFILE" = "yes"; then
41715 cat >>confdefs.h <<\_ACEOF
41716#define wxUSE_METAFILE 1
41717_ACEOF
41718
41719
41720 cat >>confdefs.h <<\_ACEOF
41721#define wxUSE_ENH_METAFILE 1
41722_ACEOF
41723
41724 fi
41725fi
41726
41727if test "$wxUSE_IPC" = "yes"; then
0b78747f 41728 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
41729 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
41730echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 41731 wxUSE_IPC=no
a848cd7e
SC
41732 fi
41733
0b78747f
MW
41734 if test "$wxUSE_IPC" = "yes"; then
41735 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41736#define wxUSE_IPC 1
41737_ACEOF
41738
0b78747f
MW
41739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
41740 fi
a848cd7e
SC
41741fi
41742
eb730a0c 41743if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
41744 if test "$wxUSE_MGL" = 1; then
41745 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
41746echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
41747 wxUSE_DATAOBJ=no
41748 else
41749 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
41750#define wxUSE_DATAOBJ 1
41751_ACEOF
41752
2113bc77 41753 fi
eb730a0c
JS
41754else
41755 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
41756echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
41757 wxUSE_CLIPBOARD=no
41758 wxUSE_DRAG_AND_DROP=no
41759fi
41760
a848cd7e
SC
41761if test "$wxUSE_CLIPBOARD" = "yes"; then
41762 if test "$wxUSE_MGL" = 1; then
41763 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
41764echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
41765 wxUSE_CLIPBOARD=no
41766 fi
41767
41768 if test "$wxUSE_CLIPBOARD" = "yes"; then
41769 cat >>confdefs.h <<\_ACEOF
41770#define wxUSE_CLIPBOARD 1
41771_ACEOF
41772
a848cd7e
SC
41773 fi
41774fi
41775
41776if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
41777 if test "$wxUSE_GTK" = 1; then
41778 if test "$WXGTK12" != 1; then
41779 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
41780echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
41781 wxUSE_DRAG_AND_DROP=no
41782 fi
41783 fi
41784
41785 if test "$wxUSE_MOTIF" = 1; then
41786 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
41787echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
41788 wxUSE_DRAG_AND_DROP=no
41789 fi
41790
41791 if test "$wxUSE_X11" = 1; then
41792 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
41793echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
41794 wxUSE_DRAG_AND_DROP=no
41795 fi
41796
41797 if test "$wxUSE_MGL" = 1; then
41798 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
41799echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
41800 wxUSE_DRAG_AND_DROP=no
41801 fi
41802
41803 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
41804 cat >>confdefs.h <<\_ACEOF
41805#define wxUSE_DRAG_AND_DROP 1
41806_ACEOF
41807
41808 fi
41809
41810fi
41811
41812if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41813 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41814fi
41815
41816if test "$wxUSE_SPLINES" = "yes" ; then
41817 cat >>confdefs.h <<\_ACEOF
41818#define wxUSE_SPLINES 1
41819_ACEOF
41820
41821fi
41822
fbe2ca43
SN
41823if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41824 cat >>confdefs.h <<\_ACEOF
41825#define wxUSE_MOUSEWHEEL 1
41826_ACEOF
41827
41828fi
41829
a848cd7e
SC
41830
41831USES_CONTROLS=0
41832if test "$wxUSE_CONTROLS" = "yes"; then
41833 USES_CONTROLS=1
41834fi
41835
41836if test "$wxUSE_ACCEL" = "yes"; then
41837 cat >>confdefs.h <<\_ACEOF
41838#define wxUSE_ACCEL 1
41839_ACEOF
41840
41841 USES_CONTROLS=1
41842fi
41843
41844if test "$wxUSE_BUTTON" = "yes"; then
41845 cat >>confdefs.h <<\_ACEOF
41846#define wxUSE_BUTTON 1
41847_ACEOF
41848
41849 USES_CONTROLS=1
41850fi
41851
41852if test "$wxUSE_BMPBUTTON" = "yes"; then
41853 cat >>confdefs.h <<\_ACEOF
41854#define wxUSE_BMPBUTTON 1
41855_ACEOF
41856
41857 USES_CONTROLS=1
41858fi
41859
41860if test "$wxUSE_CALCTRL" = "yes"; then
41861 cat >>confdefs.h <<\_ACEOF
41862#define wxUSE_CALENDARCTRL 1
41863_ACEOF
41864
41865 USES_CONTROLS=1
41866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41867fi
41868
41869if test "$wxUSE_CARET" = "yes"; then
41870 cat >>confdefs.h <<\_ACEOF
41871#define wxUSE_CARET 1
41872_ACEOF
41873
41874 USES_CONTROLS=1
41875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41876fi
41877
41878if test "$wxUSE_COMBOBOX" = "yes"; then
41879 cat >>confdefs.h <<\_ACEOF
41880#define wxUSE_COMBOBOX 1
41881_ACEOF
41882
41883 USES_CONTROLS=1
41884fi
41885
41886if test "$wxUSE_CHOICE" = "yes"; then
41887 cat >>confdefs.h <<\_ACEOF
41888#define wxUSE_CHOICE 1
41889_ACEOF
41890
41891 USES_CONTROLS=1
41892fi
41893
92bbdbcd
WS
41894if test "$wxUSE_CHOICEBOOK" = "yes"; then
41895 cat >>confdefs.h <<\_ACEOF
41896#define wxUSE_CHOICEBOOK 1
41897_ACEOF
41898
41899 USES_CONTROLS=1
41900fi
41901
a848cd7e
SC
41902if test "$wxUSE_CHECKBOX" = "yes"; then
41903 cat >>confdefs.h <<\_ACEOF
41904#define wxUSE_CHECKBOX 1
41905_ACEOF
41906
41907 USES_CONTROLS=1
41908fi
41909
41910if test "$wxUSE_CHECKLST" = "yes"; then
41911 cat >>confdefs.h <<\_ACEOF
41912#define wxUSE_CHECKLISTBOX 1
41913_ACEOF
41914
41915 USES_CONTROLS=1
41916 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41917fi
41918
da98e9be
VZ
41919if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41920 cat >>confdefs.h <<\_ACEOF
41921#define wxUSE_DATEPICKCTRL 1
41922_ACEOF
41923
41924 USES_CONTROLS=1
41925fi
41926
a848cd7e
SC
41927if test "$wxUSE_DISPLAY" = "yes"; then
41928 cat >>confdefs.h <<\_ACEOF
41929#define wxUSE_DISPLAY 1
41930_ACEOF
41931
0b78747f 41932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41933fi
41934
41935if test "$wxUSE_GAUGE" = "yes"; then
41936 cat >>confdefs.h <<\_ACEOF
41937#define wxUSE_GAUGE 1
41938_ACEOF
41939
41940 USES_CONTROLS=1
41941fi
41942
41943if test "$wxUSE_GRID" = "yes"; then
41944 cat >>confdefs.h <<\_ACEOF
41945#define wxUSE_GRID 1
41946_ACEOF
41947
41948 USES_CONTROLS=1
41949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41950fi
41951
41952if test "$wxUSE_IMAGLIST" = "yes"; then
41953 cat >>confdefs.h <<\_ACEOF
41954#define wxUSE_IMAGLIST 1
41955_ACEOF
41956
41957fi
41958
41959if test "$wxUSE_LISTBOOK" = "yes"; then
41960 cat >>confdefs.h <<\_ACEOF
41961#define wxUSE_LISTBOOK 1
41962_ACEOF
41963
41964 USES_CONTROLS=1
41965fi
41966
41967if test "$wxUSE_LISTBOX" = "yes"; then
41968 cat >>confdefs.h <<\_ACEOF
41969#define wxUSE_LISTBOX 1
41970_ACEOF
41971
41972 USES_CONTROLS=1
0b78747f 41973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
41974fi
41975
41976if test "$wxUSE_LISTCTRL" = "yes"; then
41977 if test "$wxUSE_IMAGLIST" = "yes"; then
41978 cat >>confdefs.h <<\_ACEOF
41979#define wxUSE_LISTCTRL 1
41980_ACEOF
41981
41982 USES_CONTROLS=1
41983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41984 else
41985 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41986echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41987 fi
41988fi
41989
41990if test "$wxUSE_NOTEBOOK" = "yes"; then
41991 cat >>confdefs.h <<\_ACEOF
41992#define wxUSE_NOTEBOOK 1
41993_ACEOF
41994
41995 USES_CONTROLS=1
41996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41997fi
41998
41999
42000if test "$wxUSE_RADIOBOX" = "yes"; then
42001 cat >>confdefs.h <<\_ACEOF
42002#define wxUSE_RADIOBOX 1
42003_ACEOF
42004
42005 USES_CONTROLS=1
42006fi
42007
42008if test "$wxUSE_RADIOBTN" = "yes"; then
42009 cat >>confdefs.h <<\_ACEOF
42010#define wxUSE_RADIOBTN 1
42011_ACEOF
42012
42013 USES_CONTROLS=1
42014fi
42015
42016if test "$wxUSE_SASH" = "yes"; then
42017 cat >>confdefs.h <<\_ACEOF
42018#define wxUSE_SASH 1
42019_ACEOF
42020
42021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
42022fi
42023
42024if test "$wxUSE_SCROLLBAR" = "yes"; then
42025 cat >>confdefs.h <<\_ACEOF
42026#define wxUSE_SCROLLBAR 1
42027_ACEOF
42028
42029 USES_CONTROLS=1
42030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
42031fi
42032
42033if test "$wxUSE_SLIDER" = "yes"; then
42034 cat >>confdefs.h <<\_ACEOF
42035#define wxUSE_SLIDER 1
42036_ACEOF
42037
42038 USES_CONTROLS=1
42039fi
42040
42041if test "$wxUSE_SPINBTN" = "yes"; then
42042 cat >>confdefs.h <<\_ACEOF
42043#define wxUSE_SPINBTN 1
42044_ACEOF
42045
42046 USES_CONTROLS=1
42047fi
42048
42049if test "$wxUSE_SPINCTRL" = "yes"; then
42050 cat >>confdefs.h <<\_ACEOF
42051#define wxUSE_SPINCTRL 1
42052_ACEOF
42053
42054 USES_CONTROLS=1
42055fi
42056
42057if test "$wxUSE_SPLITTER" = "yes"; then
42058 cat >>confdefs.h <<\_ACEOF
42059#define wxUSE_SPLITTER 1
42060_ACEOF
42061
42062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
42063fi
42064
42065if test "$wxUSE_STATBMP" = "yes"; then
42066 cat >>confdefs.h <<\_ACEOF
42067#define wxUSE_STATBMP 1
42068_ACEOF
42069
42070 USES_CONTROLS=1
42071fi
42072
42073if test "$wxUSE_STATBOX" = "yes"; then
42074 cat >>confdefs.h <<\_ACEOF
42075#define wxUSE_STATBOX 1
42076_ACEOF
42077
42078 USES_CONTROLS=1
42079fi
42080
42081if test "$wxUSE_STATTEXT" = "yes"; then
42082 cat >>confdefs.h <<\_ACEOF
42083#define wxUSE_STATTEXT 1
42084_ACEOF
42085
42086 USES_CONTROLS=1
42087fi
42088
42089if test "$wxUSE_STATLINE" = "yes"; then
42090 cat >>confdefs.h <<\_ACEOF
42091#define wxUSE_STATLINE 1
42092_ACEOF
42093
42094 USES_CONTROLS=1
42095fi
42096
42097if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
42098 cat >>confdefs.h <<\_ACEOF
42099#define wxUSE_NATIVE_STATUSBAR 1
42100_ACEOF
42101
a848cd7e
SC
42102 cat >>confdefs.h <<\_ACEOF
42103#define wxUSE_STATUSBAR 1
42104_ACEOF
42105
42106 USES_CONTROLS=1
42107
42108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
42109fi
42110
42111if test "$wxUSE_TABDIALOG" = "yes"; then
42112 cat >>confdefs.h <<\_ACEOF
42113#define wxUSE_TAB_DIALOG 1
42114_ACEOF
42115
a848cd7e
SC
42116fi
42117
42118if test "$wxUSE_TEXTCTRL" = "yes"; then
42119 cat >>confdefs.h <<\_ACEOF
42120#define wxUSE_TEXTCTRL 1
42121_ACEOF
42122
42123 USES_CONTROLS=1
42124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
42125fi
42126
42127if test "$wxUSE_TOGGLEBTN" = "yes"; then
42128 if test "$wxUSE_COCOA" = 1 ; then
42129 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
42130echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
42131 wxUSE_TOGGLEBTN=no
42132 fi
42133 if test "$wxUSE_UNIVERSAL" = "yes"; then
42134 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
42135echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
42136 wxUSE_TOGGLEBTN=no
42137 fi
42138
42139 if test "$wxUSE_TOGGLEBTN" = "yes"; then
42140 cat >>confdefs.h <<\_ACEOF
42141#define wxUSE_TOGGLEBTN 1
42142_ACEOF
42143
42144 USES_CONTROLS=1
42145 fi
42146fi
42147
42148if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
42149 cat >>confdefs.h <<\_ACEOF
42150#define wxUSE_TOOLBAR_SIMPLE 1
42151_ACEOF
42152
42153 wxUSE_TOOLBAR="yes"
42154 USES_CONTROLS=1
42155fi
42156
42157if test "$wxUSE_TOOLBAR" = "yes"; then
42158 cat >>confdefs.h <<\_ACEOF
42159#define wxUSE_TOOLBAR 1
42160_ACEOF
42161
42162 USES_CONTROLS=1
42163
42164 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
42165 wxUSE_TOOLBAR_NATIVE="yes"
42166 fi
42167
42168 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
42169 cat >>confdefs.h <<\_ACEOF
42170#define wxUSE_TOOLBAR_NATIVE 1
42171_ACEOF
42172
42173 USES_CONTROLS=1
42174 fi
42175
42176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
42177fi
42178
42179if test "$wxUSE_TOOLTIPS" = "yes"; then
42180 if test "$wxUSE_MOTIF" = 1; then
42181 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
42182echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
42183 else
42184 if test "$wxUSE_UNIVERSAL" = "yes"; then
42185 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
42186echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
42187 else
42188 cat >>confdefs.h <<\_ACEOF
42189#define wxUSE_TOOLTIPS 1
42190_ACEOF
42191
42192 fi
42193 fi
42194fi
42195
0093c2fc
VZ
42196if test "$wxUSE_TREEBOOK" = "yes"; then
42197 cat >>confdefs.h <<\_ACEOF
42198#define wxUSE_TREEBOOK 1
42199_ACEOF
42200
42201 USES_CONTROLS=1
42202fi
42203
a848cd7e
SC
42204if test "$wxUSE_TREECTRL" = "yes"; then
42205 if test "$wxUSE_IMAGLIST" = "yes"; then
42206 cat >>confdefs.h <<\_ACEOF
42207#define wxUSE_TREECTRL 1
42208_ACEOF
42209
42210 USES_CONTROLS=1
42211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
42212 else
42213 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
42214echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
42215 fi
42216fi
42217
42218if test "$wxUSE_POPUPWIN" = "yes"; then
42219 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42220 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
42221echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
42222 else
42223 if test "$wxUSE_PM" = 1; then
42224 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
42225echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
42226 else
42227 cat >>confdefs.h <<\_ACEOF
42228#define wxUSE_POPUPWIN 1
42229_ACEOF
42230
0b78747f 42231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
42232
42233 USES_CONTROLS=1
42234 fi
42235 fi
42236fi
42237
0dcd06dd 42238if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
42239 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42240 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
42241echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
42242 else
42243 cat >>confdefs.h <<\_ACEOF
42244#define wxUSE_DIALUP_MANAGER 1
42245_ACEOF
42246
42247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
42248 fi
42249fi
42250
a848cd7e
SC
42251if test "$wxUSE_TIPWINDOW" = "yes"; then
42252 if test "$wxUSE_PM" = 1; then
42253 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
42254echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
42255 else
42256 cat >>confdefs.h <<\_ACEOF
42257#define wxUSE_TIPWINDOW 1
42258_ACEOF
42259
42260 fi
42261fi
42262
42263if test "$USES_CONTROLS" = 1; then
42264 cat >>confdefs.h <<\_ACEOF
42265#define wxUSE_CONTROLS 1
42266_ACEOF
42267
42268fi
42269
42270
42271if test "$wxUSE_ACCESSIBILITY" = "yes"; then
42272 cat >>confdefs.h <<\_ACEOF
42273#define wxUSE_ACCESSIBILITY 1
42274_ACEOF
42275
42276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
42277fi
42278
38b4a946
VZ
42279if test "$wxUSE_DC_CACHEING" = "yes"; then
42280 cat >>confdefs.h <<\_ACEOF
42281#define wxUSE_DC_CACHEING 1
42282_ACEOF
42283
42284fi
42285
a848cd7e
SC
42286if test "$wxUSE_DRAGIMAGE" = "yes"; then
42287 cat >>confdefs.h <<\_ACEOF
42288#define wxUSE_DRAGIMAGE 1
42289_ACEOF
42290
42291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
42292fi
42293
42294if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
42295 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42296 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
42297echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
42298 else
42299 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42300#define wxUSE_EXCEPTIONS 1
42301_ACEOF
42302
07bea8f0
VS
42303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
42304 fi
a848cd7e
SC
42305fi
42306
42307USE_HTML=0
42308if test "$wxUSE_HTML" = "yes"; then
42309 cat >>confdefs.h <<\_ACEOF
42310#define wxUSE_HTML 1
42311_ACEOF
42312
42313 USE_HTML=1
42314 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
42315 if test "$wxUSE_MAC" = 1; then
42316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
42317 fi
a848cd7e 42318fi
646b6ec1 42319if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 42320 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
42321 old_CPPFLAGS="$CPPFLAGS"
42322 CPPFLAGS="$CPPFLAGS -x objective-c++"
42323 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
42324echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
42325if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
42326 echo $ECHO_N "(cached) $ECHO_C" >&6
42327else
42328 cat >conftest.$ac_ext <<_ACEOF
42329/* confdefs.h. */
42330_ACEOF
42331cat confdefs.h >>conftest.$ac_ext
42332cat >>conftest.$ac_ext <<_ACEOF
42333/* end confdefs.h. */
42334#include <Carbon/Carbon.h>
42335
42336#include <WebKit/HIWebView.h>
42337_ACEOF
42338rm -f conftest.$ac_objext
42339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42340 (eval $ac_compile) 2>conftest.er1
42341 ac_status=$?
42342 grep -v '^ *+' conftest.er1 >conftest.err
42343 rm -f conftest.er1
42344 cat conftest.err >&5
42345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42346 (exit $ac_status); } &&
0093c2fc 42347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
42348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42349 (eval $ac_try) 2>&5
42350 ac_status=$?
42351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42352 (exit $ac_status); }; } &&
42353 { ac_try='test -s conftest.$ac_objext'
42354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42355 (eval $ac_try) 2>&5
42356 ac_status=$?
42357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42358 (exit $ac_status); }; }; then
42359 ac_cv_header_WebKit_HIWebView_h=yes
42360else
42361 echo "$as_me: failed program was:" >&5
42362sed 's/^/| /' conftest.$ac_ext >&5
42363
42364ac_cv_header_WebKit_HIWebView_h=no
42365fi
42366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42367fi
42368echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
42369echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
42370if test $ac_cv_header_WebKit_HIWebView_h = yes; then
42371
42372 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
42373#define wxUSE_WEBKIT 1
42374_ACEOF
42375
07bea8f0
VS
42376 WEBKIT_LINK="-framework WebKit"
42377
42378else
42379
42380 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
42381echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
42382 wxUSE_WEBKIT=no
42383
646b6ec1
VS
42384fi
42385
07bea8f0
VS
42386
42387 CPPFLAGS="$old_CPPFLAGS"
42388 elif test "$wxUSE_COCOA" = 1; then
42389 cat >>confdefs.h <<\_ACEOF
42390#define wxUSE_WEBKIT 1
42391_ACEOF
42392
42393 else
42394 wxUSE_WEBKIT=no
42395 fi
42396fi
42397
9a8f0513
VS
42398USE_XRC=0
42399if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
42400 if test "$wxUSE_XML" != "yes"; then
42401 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
42402echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
42403 wxUSE_XRC=no
42404 else
42405 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
42406#define wxUSE_XRC 1
42407_ACEOF
42408
d2ebf0b7
VS
42409 USE_XRC=1
42410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
42411 fi
9a8f0513 42412fi
07bea8f0 42413
a848cd7e
SC
42414if test "$wxUSE_MENUS" = "yes"; then
42415 cat >>confdefs.h <<\_ACEOF
42416#define wxUSE_MENUS 1
42417_ACEOF
42418
42419 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
42420fi
42421
42422if test "$wxUSE_METAFILE" = "yes"; then
42423 cat >>confdefs.h <<\_ACEOF
42424#define wxUSE_METAFILE 1
42425_ACEOF
42426
42427fi
42428
42429if test "$wxUSE_MIMETYPE" = "yes"; then
42430 cat >>confdefs.h <<\_ACEOF
42431#define wxUSE_MIMETYPE 1
42432_ACEOF
42433
42434fi
42435
42436if test "$wxUSE_MINIFRAME" = "yes"; then
42437 cat >>confdefs.h <<\_ACEOF
42438#define wxUSE_MINIFRAME 1
42439_ACEOF
42440
42441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
42442fi
42443
42444if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
42445 cat >>confdefs.h <<\_ACEOF
42446#define wxUSE_SYSTEM_OPTIONS 1
42447_ACEOF
42448
42449 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 42450 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
42451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
42452 fi
42453fi
42454
42455
42456if test "$wxUSE_VALIDATORS" = "yes"; then
42457 cat >>confdefs.h <<\_ACEOF
42458#define wxUSE_VALIDATORS 1
42459_ACEOF
42460
42461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
42462fi
42463
42464if test "$wxUSE_PALETTE" = "yes" ; then
42465 cat >>confdefs.h <<\_ACEOF
42466#define wxUSE_PALETTE 1
42467_ACEOF
42468
42469fi
42470
42471if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
42472 LIBS=" -lunicows $LIBS"
42473fi
42474
42475
42476if test "$wxUSE_IMAGE" = "yes" ; then
42477 cat >>confdefs.h <<\_ACEOF
42478#define wxUSE_IMAGE 1
42479_ACEOF
42480
42481
42482 if test "$wxUSE_GIF" = "yes" ; then
42483 cat >>confdefs.h <<\_ACEOF
42484#define wxUSE_GIF 1
42485_ACEOF
42486
42487 fi
42488
42489 if test "$wxUSE_PCX" = "yes" ; then
42490 cat >>confdefs.h <<\_ACEOF
42491#define wxUSE_PCX 1
42492_ACEOF
42493
42494 fi
42495
42496 if test "$wxUSE_IFF" = "yes" ; then
42497 cat >>confdefs.h <<\_ACEOF
42498#define wxUSE_IFF 1
42499_ACEOF
42500
42501 fi
42502
42503 if test "$wxUSE_PNM" = "yes" ; then
42504 cat >>confdefs.h <<\_ACEOF
42505#define wxUSE_PNM 1
42506_ACEOF
42507
42508 fi
42509
42510 if test "$wxUSE_XPM" = "yes" ; then
42511 cat >>confdefs.h <<\_ACEOF
42512#define wxUSE_XPM 1
42513_ACEOF
42514
42515 fi
42516
42517 if test "$wxUSE_ICO_CUR" = "yes" ; then
42518 cat >>confdefs.h <<\_ACEOF
42519#define wxUSE_ICO_CUR 1
42520_ACEOF
42521
42522 fi
42523fi
42524
42525
42526if test "$wxUSE_CHOICEDLG" = "yes"; then
42527 cat >>confdefs.h <<\_ACEOF
42528#define wxUSE_CHOICEDLG 1
42529_ACEOF
42530
42531fi
42532
42533if test "$wxUSE_COLOURDLG" = "yes"; then
42534 cat >>confdefs.h <<\_ACEOF
42535#define wxUSE_COLOURDLG 1
42536_ACEOF
42537
42538fi
42539
42540if test "$wxUSE_FILEDLG" = "yes"; then
42541 cat >>confdefs.h <<\_ACEOF
42542#define wxUSE_FILEDLG 1
42543_ACEOF
42544
42545fi
42546
42547if test "$wxUSE_FINDREPLDLG" = "yes"; then
42548 cat >>confdefs.h <<\_ACEOF
42549#define wxUSE_FINDREPLDLG 1
42550_ACEOF
42551
42552fi
42553
42554if test "$wxUSE_FONTDLG" = "yes"; then
42555 cat >>confdefs.h <<\_ACEOF
42556#define wxUSE_FONTDLG 1
42557_ACEOF
42558
42559fi
42560
42561if test "$wxUSE_DIRDLG" = "yes"; then
42562 if test "$wxUSE_TREECTRL" != "yes"; then
42563 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
42564echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
42565 else
42566 cat >>confdefs.h <<\_ACEOF
42567#define wxUSE_DIRDLG 1
42568_ACEOF
42569
42570 fi
42571fi
42572
42573if test "$wxUSE_MSGDLG" = "yes"; then
42574 cat >>confdefs.h <<\_ACEOF
42575#define wxUSE_MSGDLG 1
42576_ACEOF
42577
42578fi
42579
42580if test "$wxUSE_NUMBERDLG" = "yes"; then
42581 cat >>confdefs.h <<\_ACEOF
42582#define wxUSE_NUMBERDLG 1
42583_ACEOF
42584
42585fi
42586
42587if test "$wxUSE_PROGRESSDLG" = "yes"; then
42588 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42589 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
42590echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
42591 else
42592 cat >>confdefs.h <<\_ACEOF
42593#define wxUSE_PROGRESSDLG 1
42594_ACEOF
42595
42596 fi
42597fi
42598
42599if test "$wxUSE_SPLASH" = "yes"; then
42600 cat >>confdefs.h <<\_ACEOF
42601#define wxUSE_SPLASH 1
42602_ACEOF
42603
2057db16 42604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
42605fi
42606
42607if test "$wxUSE_STARTUP_TIPS" = "yes"; then
42608 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42609 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
42610echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
42611 else
42612 cat >>confdefs.h <<\_ACEOF
42613#define wxUSE_STARTUP_TIPS 1
42614_ACEOF
42615
42616 fi
42617fi
42618
42619if test "$wxUSE_TEXTDLG" = "yes"; then
42620 cat >>confdefs.h <<\_ACEOF
42621#define wxUSE_TEXTDLG 1
42622_ACEOF
42623
42624fi
42625
42626if test "$wxUSE_WIZARDDLG" = "yes"; then
42627 cat >>confdefs.h <<\_ACEOF
42628#define wxUSE_WIZARDDLG 1
42629_ACEOF
42630
42631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
42632fi
42633
42634
ce756cb0 42635if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
42636 if test "$wxUSE_GTK" = 1; then
42637 wxUSE_GSTREAMER="yes"
42638
ce756cb0 42639
dae87f93 42640 succeeded=no
ce756cb0 42641
dae87f93
RN
42642 if test -z "$PKG_CONFIG"; then
42643 # Extract the first word of "pkg-config", so it can be a program name with args.
42644set dummy pkg-config; ac_word=$2
42645echo "$as_me:$LINENO: checking for $ac_word" >&5
42646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42647if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42648 echo $ECHO_N "(cached) $ECHO_C" >&6
42649else
42650 case $PKG_CONFIG in
42651 [\\/]* | ?:[\\/]*)
42652 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42653 ;;
42654 *)
42655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42656for as_dir in $PATH
42657do
42658 IFS=$as_save_IFS
42659 test -z "$as_dir" && as_dir=.
42660 for ac_exec_ext in '' $ac_executable_extensions; do
42661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42662 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42664 break 2
42665 fi
42666done
42667done
42668
42669 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
42670 ;;
42671esac
42672fi
42673PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42674
42675if test -n "$PKG_CONFIG"; then
42676 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42677echo "${ECHO_T}$PKG_CONFIG" >&6
42678else
42679 echo "$as_me:$LINENO: result: no" >&5
42680echo "${ECHO_T}no" >&6
42681fi
42682
42683 fi
42684
42685 if test "$PKG_CONFIG" = "no" ; then
42686 echo "*** The pkg-config script could not be found. Make sure it is"
42687 echo "*** in your path, or set the PKG_CONFIG environment variable"
42688 echo "*** to the full path to pkg-config."
42689 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
42690 else
42691 PKG_CONFIG_MIN_VERSION=0.9.0
42692 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
42693 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
42694echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
42695
42696 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
42697 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42698echo "${ECHO_T}yes" >&6
dae87f93 42699 succeeded=yes
ce756cb0 42700
dae87f93
RN
42701 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
42702echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
42703 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
42704 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
42705echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
42706
42707 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
42708echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
42709 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
42710 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
42711echo "${ECHO_T}$GSTREAMER_LIBS" >&6
42712 else
42713 GSTREAMER_CFLAGS=""
42714 GSTREAMER_LIBS=""
42715 ## If we have a custom action on failure, don't print errors, but
42716 ## do set a variable so people can do so.
42717 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 42718
dae87f93
RN
42719 fi
42720
42721
42722
42723 else
42724 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
42725 echo "*** See http://www.freedesktop.org/software/pkgconfig"
42726 fi
42727 fi
42728
42729 if test $succeeded = yes; then
42730
42731 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
42732 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 42733
ce756cb0 42734 else
dae87f93
RN
42735
42736 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
42737echo "$as_me: WARNING: GStreamer installation not found" >&2;}
42738 wxUSE_GSTREAMER="no"
42739
42740 fi
42741
42742
42743
42744
42745
42746 if test "x$GST_INSPECT" == "x"; then
42747 # Extract the first word of "gst-inspect", so it can be a program name with args.
42748set dummy gst-inspect; ac_word=$2
42749echo "$as_me:$LINENO: checking for $ac_word" >&5
42750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42751if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
42752 echo $ECHO_N "(cached) $ECHO_C" >&6
42753else
42754 if test -n "$GST_INSPECT"; then
42755 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
42756else
42757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42758for as_dir in $PATH
42759do
42760 IFS=$as_save_IFS
42761 test -z "$as_dir" && as_dir=.
42762 for ac_exec_ext in '' $ac_executable_extensions; do
42763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42764 ac_cv_prog_GST_INSPECT="gst-inspect"
42765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42766 break 2
ce756cb0 42767 fi
dae87f93
RN
42768done
42769done
42770
42771fi
42772fi
42773GST_INSPECT=$ac_cv_prog_GST_INSPECT
42774if test -n "$GST_INSPECT"; then
42775 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
42776echo "${ECHO_T}$GST_INSPECT" >&6
42777else
42778 echo "$as_me:$LINENO: result: no" >&5
42779echo "${ECHO_T}no" >&6
42780fi
42781
42782 fi
42783
42784 if test "x$GST_INSPECT" != "x"; then
42785 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
42786echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
42787 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
42788 echo "$as_me:$LINENO: result: found." >&5
42789echo "${ECHO_T}found." >&6
ce756cb0 42790
ce756cb0 42791 else
dae87f93
RN
42792 echo "$as_me:$LINENO: result: not found." >&5
42793echo "${ECHO_T}not found." >&6
42794
42795 wxUSE_GSTREAMER="no"
42796 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
42797echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
42798
42799 fi
42800 fi
42801
42802
42803 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
42804echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
42805if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
42806 echo $ECHO_N "(cached) $ECHO_C" >&6
42807else
42808 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
42809/* confdefs.h. */
42810_ACEOF
42811cat confdefs.h >>conftest.$ac_ext
42812cat >>conftest.$ac_ext <<_ACEOF
42813/* end confdefs.h. */
dae87f93 42814#include <gst/gst.h>
ce756cb0 42815
dae87f93 42816#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
42817_ACEOF
42818rm -f conftest.$ac_objext
42819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42820 (eval $ac_compile) 2>conftest.er1
42821 ac_status=$?
42822 grep -v '^ *+' conftest.er1 >conftest.err
42823 rm -f conftest.er1
42824 cat conftest.err >&5
42825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42826 (exit $ac_status); } &&
0093c2fc 42827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
42828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42829 (eval $ac_try) 2>&5
42830 ac_status=$?
42831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42832 (exit $ac_status); }; } &&
42833 { ac_try='test -s conftest.$ac_objext'
42834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42835 (eval $ac_try) 2>&5
42836 ac_status=$?
42837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42838 (exit $ac_status); }; }; then
dae87f93 42839 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
42840else
42841 echo "$as_me: failed program was:" >&5
42842sed 's/^/| /' conftest.$ac_ext >&5
42843
dae87f93 42844ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
42845fi
42846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
42847fi
42848echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42849echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42850if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42851 :
42852else
ce756cb0 42853
dae87f93
RN
42854 wxUSE_GSTREAMER="no"
42855 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42856echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42857
dae87f93 42858fi
ce756cb0 42859
dae87f93
RN
42860
42861
42862 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42863echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42864
0ad5d837
VZ
42865 ac_find_libraries=
42866 for ac_dir in $SEARCH_LIB;
ce756cb0 42867 do
3eca31dc 42868 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42869 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42870 ac_find_libraries=$ac_dir
42871 break 2
42872 fi
42873 done
42874 done
42875
ce756cb0 42876
dae87f93
RN
42877 if test "$ac_find_libraries" = "" ; then
42878 echo "$as_me:$LINENO: result: no" >&5
42879echo "${ECHO_T}no" >&6
42880 wxUSE_GSTREAMER="no"
42881 else
42882 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42883echo "${ECHO_T}yes" >&6
dae87f93 42884 fi
ce756cb0 42885
dae87f93
RN
42886 if test "$wxUSE_GSTREAMER" = "yes"; then
42887 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42888#define wxUSE_GSTREAMER 1
42889_ACEOF
42890
dae87f93
RN
42891 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42892echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42893 fi
42894 fi
42895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42896 cat >>confdefs.h <<\_ACEOF
42897#define wxUSE_MEDIACTRL 1
42898_ACEOF
42899
42900fi
42901
42902
a848cd7e
SC
42903if test "$cross_compiling" = "yes"; then
42904 OSINFO="\"$host\""
42905else
42906 OSINFO=`uname -s -r -m`
42907 OSINFO="\"$OSINFO\""
42908fi
42909
42910cat >>confdefs.h <<_ACEOF
42911#define WXWIN_OS_DESCRIPTION $OSINFO
42912_ACEOF
42913
42914
42915
42916if test "x$prefix" != "xNONE"; then
42917 wxPREFIX=$prefix
42918else
42919 wxPREFIX=$ac_default_prefix
42920fi
42921
42922cat >>confdefs.h <<_ACEOF
42923#define wxINSTALL_PREFIX "$wxPREFIX"
42924_ACEOF
42925
42926
a848cd7e
SC
42927
42928
42929CORE_BASE_LIBS="net base"
42930CORE_GUI_LIBS="adv core"
42931
42932if test "$wxUSE_XML" = "yes" ; then
42933 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42934fi
42935if test "$wxUSE_ODBC" != "no" ; then
42936 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42937 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42938fi
42939if test "$wxUSE_HTML" = "yes" ; then
42940 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42941fi
61639efb
VZ
42942if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42943 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42944fi
9a8f0513
VS
42945if test "$wxUSE_XRC" = "yes" ; then
42946 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42947fi
a848cd7e
SC
42948
42949if test "$wxUSE_GUI" != "yes"; then
42950 CORE_GUI_LIBS=""
42951fi
42952
42953
42954
42955
42956
42957
42958
42959
42960if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 42961 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
42962 if test "$USE_DARWIN" = 1; then
42963 LDFLAGS="$LDFLAGS -framework QuickTime"
42964 else
42965 LDFLAGS="$LDFLAGS -lQuickTimeLib"
42966 fi
07bea8f0 42967 fi
5dcf30a0 42968 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
42969 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42970 else
42971 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 42972 fi
a848cd7e
SC
42973fi
42974if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 42975 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
42976 if test "$wxUSE_MEDIACTRL" = "yes"; then
42977 LDFLAGS="$LDFLAGS -framework QuickTime"
42978 fi
a848cd7e 42979fi
19b27e78
MW
42980if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42981 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42982fi
a848cd7e
SC
42983
42984
42985LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42986
42987have_cos=0
42988have_floor=0
42989
42990for ac_func in cos
42991do
42992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42993echo "$as_me:$LINENO: checking for $ac_func" >&5
42994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42995if eval "test \"\${$as_ac_var+set}\" = set"; then
42996 echo $ECHO_N "(cached) $ECHO_C" >&6
42997else
42998 cat >conftest.$ac_ext <<_ACEOF
42999/* confdefs.h. */
43000_ACEOF
43001cat confdefs.h >>conftest.$ac_ext
43002cat >>conftest.$ac_ext <<_ACEOF
43003/* end confdefs.h. */
ac1cb8d3
VS
43004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43006#define $ac_func innocuous_$ac_func
43007
a848cd7e
SC
43008/* System header to define __stub macros and hopefully few prototypes,
43009 which can conflict with char $ac_func (); below.
43010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43011 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43012
a848cd7e
SC
43013#ifdef __STDC__
43014# include <limits.h>
43015#else
43016# include <assert.h>
43017#endif
ac1cb8d3
VS
43018
43019#undef $ac_func
43020
a848cd7e
SC
43021/* Override any gcc2 internal prototype to avoid an error. */
43022#ifdef __cplusplus
43023extern "C"
43024{
43025#endif
43026/* We use char because int might match the return type of a gcc2
43027 builtin and then its argument prototype would still apply. */
43028char $ac_func ();
43029/* The GNU C library defines this for functions which it implements
43030 to always fail with ENOSYS. Some functions are actually named
43031 something starting with __ and the normal name is an alias. */
43032#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43033choke me
43034#else
43035char (*f) () = $ac_func;
43036#endif
43037#ifdef __cplusplus
43038}
43039#endif
43040
43041int
43042main ()
43043{
43044return f != $ac_func;
43045 ;
43046 return 0;
43047}
43048_ACEOF
43049rm -f conftest.$ac_objext conftest$ac_exeext
43050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43051 (eval $ac_link) 2>conftest.er1
a848cd7e 43052 ac_status=$?
ac1cb8d3
VS
43053 grep -v '^ *+' conftest.er1 >conftest.err
43054 rm -f conftest.er1
43055 cat conftest.err >&5
a848cd7e
SC
43056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43057 (exit $ac_status); } &&
0093c2fc 43058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43060 (eval $ac_try) 2>&5
43061 ac_status=$?
43062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43063 (exit $ac_status); }; } &&
43064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43066 (eval $ac_try) 2>&5
43067 ac_status=$?
43068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43069 (exit $ac_status); }; }; then
43070 eval "$as_ac_var=yes"
43071else
43072 echo "$as_me: failed program was:" >&5
43073sed 's/^/| /' conftest.$ac_ext >&5
43074
43075eval "$as_ac_var=no"
43076fi
ac1cb8d3
VS
43077rm -f conftest.err conftest.$ac_objext \
43078 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43079fi
43080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43081echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43082if test `eval echo '${'$as_ac_var'}'` = yes; then
43083 cat >>confdefs.h <<_ACEOF
43084#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43085_ACEOF
43086 have_cos=1
43087fi
43088done
43089
43090
43091for ac_func in floor
43092do
43093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43094echo "$as_me:$LINENO: checking for $ac_func" >&5
43095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43096if eval "test \"\${$as_ac_var+set}\" = set"; then
43097 echo $ECHO_N "(cached) $ECHO_C" >&6
43098else
43099 cat >conftest.$ac_ext <<_ACEOF
43100/* confdefs.h. */
43101_ACEOF
43102cat confdefs.h >>conftest.$ac_ext
43103cat >>conftest.$ac_ext <<_ACEOF
43104/* end confdefs.h. */
ac1cb8d3
VS
43105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43107#define $ac_func innocuous_$ac_func
43108
a848cd7e
SC
43109/* System header to define __stub macros and hopefully few prototypes,
43110 which can conflict with char $ac_func (); below.
43111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43112 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43113
a848cd7e
SC
43114#ifdef __STDC__
43115# include <limits.h>
43116#else
43117# include <assert.h>
43118#endif
ac1cb8d3
VS
43119
43120#undef $ac_func
43121
a848cd7e
SC
43122/* Override any gcc2 internal prototype to avoid an error. */
43123#ifdef __cplusplus
43124extern "C"
43125{
43126#endif
43127/* We use char because int might match the return type of a gcc2
43128 builtin and then its argument prototype would still apply. */
43129char $ac_func ();
43130/* The GNU C library defines this for functions which it implements
43131 to always fail with ENOSYS. Some functions are actually named
43132 something starting with __ and the normal name is an alias. */
43133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43134choke me
43135#else
43136char (*f) () = $ac_func;
43137#endif
43138#ifdef __cplusplus
43139}
43140#endif
43141
43142int
43143main ()
43144{
43145return f != $ac_func;
43146 ;
43147 return 0;
43148}
43149_ACEOF
43150rm -f conftest.$ac_objext conftest$ac_exeext
43151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43152 (eval $ac_link) 2>conftest.er1
a848cd7e 43153 ac_status=$?
ac1cb8d3
VS
43154 grep -v '^ *+' conftest.er1 >conftest.err
43155 rm -f conftest.er1
43156 cat conftest.err >&5
a848cd7e
SC
43157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43158 (exit $ac_status); } &&
0093c2fc 43159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43161 (eval $ac_try) 2>&5
43162 ac_status=$?
43163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43164 (exit $ac_status); }; } &&
43165 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43167 (eval $ac_try) 2>&5
43168 ac_status=$?
43169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43170 (exit $ac_status); }; }; then
43171 eval "$as_ac_var=yes"
43172else
43173 echo "$as_me: failed program was:" >&5
43174sed 's/^/| /' conftest.$ac_ext >&5
43175
43176eval "$as_ac_var=no"
43177fi
ac1cb8d3
VS
43178rm -f conftest.err conftest.$ac_objext \
43179 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43180fi
43181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43183if test `eval echo '${'$as_ac_var'}'` = yes; then
43184 cat >>confdefs.h <<_ACEOF
43185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43186_ACEOF
43187 have_floor=1
43188fi
43189done
43190
43191echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
43192echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
43193if test "$have_cos" = 1 -a "$have_floor" = 1; then
43194 echo "$as_me:$LINENO: result: yes" >&5
43195echo "${ECHO_T}yes" >&6
43196else
43197 echo "$as_me:$LINENO: result: no" >&5
43198echo "${ECHO_T}no" >&6
43199 LIBS="$LIBS -lm"
43200 # use different functions to avoid configure caching
43201 have_sin=0
43202 have_ceil=0
43203
43204for ac_func in sin
43205do
43206as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43207echo "$as_me:$LINENO: checking for $ac_func" >&5
43208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43209if eval "test \"\${$as_ac_var+set}\" = set"; then
43210 echo $ECHO_N "(cached) $ECHO_C" >&6
43211else
43212 cat >conftest.$ac_ext <<_ACEOF
43213/* confdefs.h. */
43214_ACEOF
43215cat confdefs.h >>conftest.$ac_ext
43216cat >>conftest.$ac_ext <<_ACEOF
43217/* end confdefs.h. */
ac1cb8d3
VS
43218/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43220#define $ac_func innocuous_$ac_func
43221
a848cd7e
SC
43222/* System header to define __stub macros and hopefully few prototypes,
43223 which can conflict with char $ac_func (); below.
43224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43225 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43226
a848cd7e
SC
43227#ifdef __STDC__
43228# include <limits.h>
43229#else
43230# include <assert.h>
43231#endif
ac1cb8d3
VS
43232
43233#undef $ac_func
43234
a848cd7e
SC
43235/* Override any gcc2 internal prototype to avoid an error. */
43236#ifdef __cplusplus
43237extern "C"
43238{
43239#endif
43240/* We use char because int might match the return type of a gcc2
43241 builtin and then its argument prototype would still apply. */
43242char $ac_func ();
43243/* The GNU C library defines this for functions which it implements
43244 to always fail with ENOSYS. Some functions are actually named
43245 something starting with __ and the normal name is an alias. */
43246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43247choke me
43248#else
43249char (*f) () = $ac_func;
43250#endif
43251#ifdef __cplusplus
43252}
43253#endif
43254
43255int
43256main ()
43257{
43258return f != $ac_func;
43259 ;
43260 return 0;
43261}
43262_ACEOF
43263rm -f conftest.$ac_objext conftest$ac_exeext
43264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43265 (eval $ac_link) 2>conftest.er1
a848cd7e 43266 ac_status=$?
ac1cb8d3
VS
43267 grep -v '^ *+' conftest.er1 >conftest.err
43268 rm -f conftest.er1
43269 cat conftest.err >&5
a848cd7e
SC
43270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43271 (exit $ac_status); } &&
0093c2fc 43272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43274 (eval $ac_try) 2>&5
43275 ac_status=$?
43276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43277 (exit $ac_status); }; } &&
43278 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43280 (eval $ac_try) 2>&5
43281 ac_status=$?
43282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43283 (exit $ac_status); }; }; then
43284 eval "$as_ac_var=yes"
43285else
43286 echo "$as_me: failed program was:" >&5
43287sed 's/^/| /' conftest.$ac_ext >&5
43288
43289eval "$as_ac_var=no"
43290fi
ac1cb8d3
VS
43291rm -f conftest.err conftest.$ac_objext \
43292 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43293fi
43294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43295echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43296if test `eval echo '${'$as_ac_var'}'` = yes; then
43297 cat >>confdefs.h <<_ACEOF
43298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43299_ACEOF
43300 have_sin=1
43301fi
43302done
43303
43304
43305for ac_func in ceil
43306do
43307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43308echo "$as_me:$LINENO: checking for $ac_func" >&5
43309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43310if eval "test \"\${$as_ac_var+set}\" = set"; then
43311 echo $ECHO_N "(cached) $ECHO_C" >&6
43312else
43313 cat >conftest.$ac_ext <<_ACEOF
43314/* confdefs.h. */
43315_ACEOF
43316cat confdefs.h >>conftest.$ac_ext
43317cat >>conftest.$ac_ext <<_ACEOF
43318/* end confdefs.h. */
ac1cb8d3
VS
43319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43321#define $ac_func innocuous_$ac_func
43322
a848cd7e
SC
43323/* System header to define __stub macros and hopefully few prototypes,
43324 which can conflict with char $ac_func (); below.
43325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43326 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43327
a848cd7e
SC
43328#ifdef __STDC__
43329# include <limits.h>
43330#else
43331# include <assert.h>
43332#endif
ac1cb8d3
VS
43333
43334#undef $ac_func
43335
a848cd7e
SC
43336/* Override any gcc2 internal prototype to avoid an error. */
43337#ifdef __cplusplus
43338extern "C"
43339{
43340#endif
43341/* We use char because int might match the return type of a gcc2
43342 builtin and then its argument prototype would still apply. */
43343char $ac_func ();
43344/* The GNU C library defines this for functions which it implements
43345 to always fail with ENOSYS. Some functions are actually named
43346 something starting with __ and the normal name is an alias. */
43347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43348choke me
43349#else
43350char (*f) () = $ac_func;
43351#endif
43352#ifdef __cplusplus
43353}
43354#endif
43355
43356int
43357main ()
43358{
43359return f != $ac_func;
43360 ;
43361 return 0;
43362}
43363_ACEOF
43364rm -f conftest.$ac_objext conftest$ac_exeext
43365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43366 (eval $ac_link) 2>conftest.er1
a848cd7e 43367 ac_status=$?
ac1cb8d3
VS
43368 grep -v '^ *+' conftest.er1 >conftest.err
43369 rm -f conftest.er1
43370 cat conftest.err >&5
a848cd7e
SC
43371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43372 (exit $ac_status); } &&
0093c2fc 43373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43375 (eval $ac_try) 2>&5
43376 ac_status=$?
43377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43378 (exit $ac_status); }; } &&
43379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43381 (eval $ac_try) 2>&5
43382 ac_status=$?
43383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43384 (exit $ac_status); }; }; then
43385 eval "$as_ac_var=yes"
43386else
43387 echo "$as_me: failed program was:" >&5
43388sed 's/^/| /' conftest.$ac_ext >&5
43389
43390eval "$as_ac_var=no"
43391fi
ac1cb8d3
VS
43392rm -f conftest.err conftest.$ac_objext \
43393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43394fi
43395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43397if test `eval echo '${'$as_ac_var'}'` = yes; then
43398 cat >>confdefs.h <<_ACEOF
43399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43400_ACEOF
43401 have_ceil=1
43402fi
43403done
43404
43405 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
43406echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
43407 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
43408 echo "$as_me:$LINENO: result: yes" >&5
43409echo "${ECHO_T}yes" >&6
43410 else
43411 echo "$as_me:$LINENO: result: no" >&5
43412echo "${ECHO_T}no" >&6
43413 # not sure we should warn the user, crash, etc.
43414 fi
43415fi
43416
43417if test "$wxUSE_GUI" = "yes"; then
43418
43419
8bce5cda
MW
43420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
43421 dynamic erase event exec font image minimal mobile \
43422 mobile/wxedit mobile/styles propsize render \
43423 richedit rotate shaped vscroll widgets"
a848cd7e
SC
43424
43425 if test "$wxUSE_MONOLITHIC" != "yes"; then
43426 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
43427 fi
0b78747f 43428 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
43429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
43430 if test "$wxUSE_UNIVERSAL" != "yes"; then
43431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
43432 fi
43433 fi
43434 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
43435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 43436 fi
a848cd7e
SC
43437else
43438 SAMPLES_SUBDIRS="console"
43439fi
43440
43441
ceec2216 43442INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
43443-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
43444
48f625bc 43445if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
43446 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
43447elif test "$GCC" = yes ; then
43448 CWARNINGS="-Wall -Wundef"
43449fi
43450
48f625bc 43451if test "x$INTELCXX" = "xyes" ; then
7f47faf4 43452 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
43453elif test "$GXX" = yes ; then
43454 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 43455fi
a848cd7e
SC
43456
43457EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
43458
0c3c69fc 43459CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 43460CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 43461CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 43462
95986553
DE
43463if test "x$MWCC" = "xyes"; then
43464
43465 CC="$CC -cwd source -I-"
43466 CXX="$CXX -cwd source -I-"
43467fi
43468
a848cd7e 43469
0c3c69fc 43470LIBS=`echo $LIBS`
a848cd7e
SC
43471EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
43472EXTRALIBS_XML="$EXPAT_LINK"
43473EXTRALIBS_HTML="$MSPACK_LINK"
43474EXTRALIBS_ODBC="$ODBC_LINK"
43475if test "$wxUSE_GUI" = "yes"; then
2e350179 43476 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
43477fi
43478if test "$wxUSE_OPENGL" = "yes"; then
43479 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
43480fi
43481
43482LDFLAGS="$LDFLAGS $PROFILE"
43483
43484if test "$wxUSE_GTK" = 1; then
43485 WXCONFIG_INCLUDE=
43486else
43487 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
43488fi
43489
43490WXCONFIG_EXTRALIBS="$LIBS"
43491
43492if test "$wxUSE_REGEX" = "builtin" ; then
74802184 43493 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
43494fi
43495if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 43496 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
43497fi
43498if test "$wxUSE_ODBC" = "builtin" ; then
74802184 43499 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
43500fi
43501if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 43502 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
43503fi
43504if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 43505 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
43506fi
43507if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 43508 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
43509fi
43510if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 43511 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
43512fi
43513
43514for i in $wxconfig_3rdparty ; do
74802184 43515 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
43516done
43517
43518
43519if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
43520 WXUNIV=1
43521else
43522 WXUNIV=0
43523fi
43524
43525
43526
43527
43528
43529
43530
43531
43532
43533if test $wxUSE_MONOLITHIC = "yes" ; then
43534 MONOLITHIC=1
43535else
43536 MONOLITHIC=0
43537fi
43538
43539if test $wxUSE_PLUGINS = "yes" ; then
43540 USE_PLUGINS=1
43541else
43542 USE_PLUGINS=0
43543fi
43544
43545if test $wxUSE_ODBC != "no" ; then
43546 USE_ODBC=1
43547else
43548 USE_ODBC=0
43549fi
43550
16358932
VZ
43551if test "$wxUSE_DEBUGREPORT" = "yes" ; then
43552 USE_QA=1
43553else
43554 USE_QA=0
43555fi
43556
a848cd7e
SC
43557if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
43558 OFFICIAL_BUILD=1
43559else
43560 OFFICIAL_BUILD=0
43561fi
43562
43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
43574
43575
43576
43577
43578
43579
43580
ceec2216 43581
d1c38808 43582
a848cd7e
SC
43583
43584
43585TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
43586
43587
43588
43589
43590
43591
43592
43593
4d4ff94c
VZ
43594case "$TOOLKIT" in
43595 GTK)
43596 TOOLKIT_USER="GTK+"
43597 if test "$WXGTK20" = 1; then
43598 TOOLKIT_USER="$TOOLKIT_USER 2"
43599 fi
9a8f0513 43600 ;;
4d4ff94c
VZ
43601
43602 *)
43603 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 43604 ;;
4d4ff94c 43605esac
a848cd7e 43606
fb00f58d
JS
43607if test "$wxUSE_WINE" = "yes"; then
43608 BAKEFILE_FORCE_PLATFORM=win32
43609fi
43610
9a8f0513 43611
1e9e8aba
DE
43612
43613
a848cd7e
SC
43614 if test "x$BAKEFILE_HOST" = "x"; then
43615 BAKEFILE_HOST="${host}"
43616 fi
43617
43618 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
43619
43620 if test -n "$ac_tool_prefix"; then
43621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
43622set dummy ${ac_tool_prefix}ranlib; ac_word=$2
43623echo "$as_me:$LINENO: checking for $ac_word" >&5
43624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43625if test "${ac_cv_prog_RANLIB+set}" = set; then
43626 echo $ECHO_N "(cached) $ECHO_C" >&6
43627else
43628 if test -n "$RANLIB"; then
43629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43630else
43631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43632for as_dir in $PATH
43633do
43634 IFS=$as_save_IFS
43635 test -z "$as_dir" && as_dir=.
43636 for ac_exec_ext in '' $ac_executable_extensions; do
43637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
43639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43640 break 2
43641 fi
43642done
43643done
43644
43645fi
43646fi
43647RANLIB=$ac_cv_prog_RANLIB
43648if test -n "$RANLIB"; then
43649 echo "$as_me:$LINENO: result: $RANLIB" >&5
43650echo "${ECHO_T}$RANLIB" >&6
43651else
43652 echo "$as_me:$LINENO: result: no" >&5
43653echo "${ECHO_T}no" >&6
43654fi
43655
43656fi
43657if test -z "$ac_cv_prog_RANLIB"; then
43658 ac_ct_RANLIB=$RANLIB
43659 # Extract the first word of "ranlib", so it can be a program name with args.
43660set dummy ranlib; ac_word=$2
43661echo "$as_me:$LINENO: checking for $ac_word" >&5
43662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43663if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
43664 echo $ECHO_N "(cached) $ECHO_C" >&6
43665else
43666 if test -n "$ac_ct_RANLIB"; then
43667 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
43668else
43669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43670for as_dir in $PATH
43671do
43672 IFS=$as_save_IFS
43673 test -z "$as_dir" && as_dir=.
43674 for ac_exec_ext in '' $ac_executable_extensions; do
43675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43676 ac_cv_prog_ac_ct_RANLIB="ranlib"
43677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43678 break 2
43679 fi
43680done
43681done
43682
43683 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
43684fi
43685fi
43686ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43687if test -n "$ac_ct_RANLIB"; then
43688 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43689echo "${ECHO_T}$ac_ct_RANLIB" >&6
43690else
43691 echo "$as_me:$LINENO: result: no" >&5
43692echo "${ECHO_T}no" >&6
43693fi
43694
43695 RANLIB=$ac_ct_RANLIB
43696else
43697 RANLIB="$ac_cv_prog_RANLIB"
43698fi
43699
43700 # Find a good install program. We prefer a C program (faster),
43701# so one script is as good as another. But avoid the broken or
43702# incompatible versions:
43703# SysV /etc/install, /usr/sbin/install
43704# SunOS /usr/etc/install
43705# IRIX /sbin/install
43706# AIX /bin/install
43707# AmigaOS /C/install, which installs bootblocks on floppy discs
43708# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
43709# AFS /usr/afsws/bin/install, which mishandles nonexistent args
43710# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 43711# OS/2's system install, which has a completely different semantic
a848cd7e
SC
43712# ./install, which can be erroneously created by make from ./install.sh.
43713echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
43714echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
43715if test -z "$INSTALL"; then
43716if test "${ac_cv_path_install+set}" = set; then
43717 echo $ECHO_N "(cached) $ECHO_C" >&6
43718else
43719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43720for as_dir in $PATH
43721do
43722 IFS=$as_save_IFS
43723 test -z "$as_dir" && as_dir=.
43724 # Account for people who put trailing slashes in PATH elements.
43725case $as_dir/ in
43726 ./ | .// | /cC/* | \
43727 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 43728 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
43729 /usr/ucb/* ) ;;
43730 *)
43731 # OSF1 and SCO ODT 3.0 have their own names for install.
43732 # Don't use installbsd from OSF since it installs stuff as root
43733 # by default.
43734 for ac_prog in ginstall scoinst install; do
43735 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
43736 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
43737 if test $ac_prog = install &&
43738 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43739 # AIX install. It has an incompatible calling convention.
43740 :
43741 elif test $ac_prog = install &&
43742 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43743 # program-specific install script used by HP pwplus--don't use.
43744 :
43745 else
43746 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
43747 break 3
43748 fi
43749 fi
a848cd7e
SC
43750 done
43751 done
43752 ;;
43753esac
43754done
43755
43756
43757fi
43758 if test "${ac_cv_path_install+set}" = set; then
43759 INSTALL=$ac_cv_path_install
43760 else
43761 # As a last resort, use the slow shell script. We don't cache a
43762 # path for INSTALL within a source directory, because that will
43763 # break other packages using the cache if that directory is
43764 # removed, or if the path is relative.
43765 INSTALL=$ac_install_sh
43766 fi
43767fi
43768echo "$as_me:$LINENO: result: $INSTALL" >&5
43769echo "${ECHO_T}$INSTALL" >&6
43770
43771# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
43772# It thinks the first close brace ends the variable substitution.
43773test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
43774
43775test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
43776
43777test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
43778
43779 echo "$as_me:$LINENO: checking whether ln -s works" >&5
43780echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
43781LN_S=$as_ln_s
43782if test "$LN_S" = "ln -s"; then
43783 echo "$as_me:$LINENO: result: yes" >&5
43784echo "${ECHO_T}yes" >&6
43785else
43786 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43787echo "${ECHO_T}no, using $LN_S" >&6
43788fi
43789
43790
43791 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43792echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43793set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43794if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43795 echo $ECHO_N "(cached) $ECHO_C" >&6
43796else
43797 cat >conftest.make <<\_ACEOF
43798all:
43799 @echo 'ac_maketemp="$(MAKE)"'
43800_ACEOF
43801# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43802eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43803if test -n "$ac_maketemp"; then
43804 eval ac_cv_prog_make_${ac_make}_set=yes
43805else
43806 eval ac_cv_prog_make_${ac_make}_set=no
43807fi
43808rm -f conftest.make
43809fi
43810if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43811 echo "$as_me:$LINENO: result: yes" >&5
43812echo "${ECHO_T}yes" >&6
43813 SET_MAKE=
43814else
43815 echo "$as_me:$LINENO: result: no" >&5
43816echo "${ECHO_T}no" >&6
43817 SET_MAKE="MAKE=${MAKE-make}"
43818fi
43819
43820
43821
43822 if test -n "$ac_tool_prefix"; then
43823 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43824set dummy ${ac_tool_prefix}ar; ac_word=$2
43825echo "$as_me:$LINENO: checking for $ac_word" >&5
43826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43827if test "${ac_cv_prog_AR+set}" = set; then
43828 echo $ECHO_N "(cached) $ECHO_C" >&6
43829else
43830 if test -n "$AR"; then
43831 ac_cv_prog_AR="$AR" # Let the user override the test.
43832else
43833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43834for as_dir in $PATH
43835do
43836 IFS=$as_save_IFS
43837 test -z "$as_dir" && as_dir=.
43838 for ac_exec_ext in '' $ac_executable_extensions; do
43839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43840 ac_cv_prog_AR="${ac_tool_prefix}ar"
43841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43842 break 2
43843 fi
43844done
43845done
43846
43847fi
43848fi
43849AR=$ac_cv_prog_AR
43850if test -n "$AR"; then
43851 echo "$as_me:$LINENO: result: $AR" >&5
43852echo "${ECHO_T}$AR" >&6
43853else
43854 echo "$as_me:$LINENO: result: no" >&5
43855echo "${ECHO_T}no" >&6
43856fi
43857
43858fi
43859if test -z "$ac_cv_prog_AR"; then
43860 ac_ct_AR=$AR
43861 # Extract the first word of "ar", so it can be a program name with args.
43862set dummy ar; ac_word=$2
43863echo "$as_me:$LINENO: checking for $ac_word" >&5
43864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43865if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43866 echo $ECHO_N "(cached) $ECHO_C" >&6
43867else
43868 if test -n "$ac_ct_AR"; then
43869 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43870else
43871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43872for as_dir in $PATH
43873do
43874 IFS=$as_save_IFS
43875 test -z "$as_dir" && as_dir=.
43876 for ac_exec_ext in '' $ac_executable_extensions; do
43877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43878 ac_cv_prog_ac_ct_AR="ar"
43879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43880 break 2
43881 fi
43882done
43883done
43884
43885 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43886fi
43887fi
43888ac_ct_AR=$ac_cv_prog_ac_ct_AR
43889if test -n "$ac_ct_AR"; then
43890 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43891echo "${ECHO_T}$ac_ct_AR" >&6
43892else
43893 echo "$as_me:$LINENO: result: no" >&5
43894echo "${ECHO_T}no" >&6
43895fi
43896
43897 AR=$ac_ct_AR
43898else
43899 AR="$ac_cv_prog_AR"
43900fi
43901
43902 if test -n "$ac_tool_prefix"; then
43903 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43904set dummy ${ac_tool_prefix}strip; ac_word=$2
43905echo "$as_me:$LINENO: checking for $ac_word" >&5
43906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43907if test "${ac_cv_prog_STRIP+set}" = set; then
43908 echo $ECHO_N "(cached) $ECHO_C" >&6
43909else
43910 if test -n "$STRIP"; then
43911 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43912else
43913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43914for as_dir in $PATH
43915do
43916 IFS=$as_save_IFS
43917 test -z "$as_dir" && as_dir=.
43918 for ac_exec_ext in '' $ac_executable_extensions; do
43919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43920 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43922 break 2
43923 fi
43924done
43925done
43926
43927fi
43928fi
43929STRIP=$ac_cv_prog_STRIP
43930if test -n "$STRIP"; then
43931 echo "$as_me:$LINENO: result: $STRIP" >&5
43932echo "${ECHO_T}$STRIP" >&6
43933else
43934 echo "$as_me:$LINENO: result: no" >&5
43935echo "${ECHO_T}no" >&6
43936fi
43937
43938fi
43939if test -z "$ac_cv_prog_STRIP"; then
43940 ac_ct_STRIP=$STRIP
43941 # Extract the first word of "strip", so it can be a program name with args.
43942set dummy strip; ac_word=$2
43943echo "$as_me:$LINENO: checking for $ac_word" >&5
43944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43945if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43946 echo $ECHO_N "(cached) $ECHO_C" >&6
43947else
43948 if test -n "$ac_ct_STRIP"; then
43949 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43950else
43951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43952for as_dir in $PATH
43953do
43954 IFS=$as_save_IFS
43955 test -z "$as_dir" && as_dir=.
43956 for ac_exec_ext in '' $ac_executable_extensions; do
43957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43958 ac_cv_prog_ac_ct_STRIP="strip"
43959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43960 break 2
43961 fi
43962done
43963done
43964
43965 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43966fi
43967fi
43968ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43969if test -n "$ac_ct_STRIP"; then
43970 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43971echo "${ECHO_T}$ac_ct_STRIP" >&6
43972else
43973 echo "$as_me:$LINENO: result: no" >&5
43974echo "${ECHO_T}no" >&6
43975fi
43976
43977 STRIP=$ac_ct_STRIP
43978else
43979 STRIP="$ac_cv_prog_STRIP"
43980fi
43981
43982 if test -n "$ac_tool_prefix"; then
43983 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43984set dummy ${ac_tool_prefix}nm; ac_word=$2
43985echo "$as_me:$LINENO: checking for $ac_word" >&5
43986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43987if test "${ac_cv_prog_NM+set}" = set; then
43988 echo $ECHO_N "(cached) $ECHO_C" >&6
43989else
43990 if test -n "$NM"; then
43991 ac_cv_prog_NM="$NM" # Let the user override the test.
43992else
43993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43994for as_dir in $PATH
43995do
43996 IFS=$as_save_IFS
43997 test -z "$as_dir" && as_dir=.
43998 for ac_exec_ext in '' $ac_executable_extensions; do
43999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44000 ac_cv_prog_NM="${ac_tool_prefix}nm"
44001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44002 break 2
44003 fi
44004done
44005done
44006
44007fi
44008fi
44009NM=$ac_cv_prog_NM
44010if test -n "$NM"; then
44011 echo "$as_me:$LINENO: result: $NM" >&5
44012echo "${ECHO_T}$NM" >&6
44013else
44014 echo "$as_me:$LINENO: result: no" >&5
44015echo "${ECHO_T}no" >&6
44016fi
44017
44018fi
44019if test -z "$ac_cv_prog_NM"; then
44020 ac_ct_NM=$NM
44021 # Extract the first word of "nm", so it can be a program name with args.
44022set dummy nm; ac_word=$2
44023echo "$as_me:$LINENO: checking for $ac_word" >&5
44024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44025if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
44026 echo $ECHO_N "(cached) $ECHO_C" >&6
44027else
44028 if test -n "$ac_ct_NM"; then
44029 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
44030else
44031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44032for as_dir in $PATH
44033do
44034 IFS=$as_save_IFS
44035 test -z "$as_dir" && as_dir=.
44036 for ac_exec_ext in '' $ac_executable_extensions; do
44037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44038 ac_cv_prog_ac_ct_NM="nm"
44039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44040 break 2
44041 fi
44042done
44043done
44044
44045 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
44046fi
44047fi
44048ac_ct_NM=$ac_cv_prog_ac_ct_NM
44049if test -n "$ac_ct_NM"; then
44050 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
44051echo "${ECHO_T}$ac_ct_NM" >&6
44052else
44053 echo "$as_me:$LINENO: result: no" >&5
44054echo "${ECHO_T}no" >&6
44055fi
44056
44057 NM=$ac_ct_NM
44058else
44059 NM="$ac_cv_prog_NM"
44060fi
44061
44062
44063 case ${BAKEFILE_HOST} in
44064 *-hp-hpux* )
1e9e8aba 44065 INSTALL_DIR="mkdir -p"
a848cd7e
SC
44066 ;;
44067 *) INSTALL_DIR="$INSTALL -d"
44068 ;;
44069 esac
44070
44071
44072 LDFLAGS_GUI=
44073 case ${BAKEFILE_HOST} in
44074 *-*-cygwin* | *-*-mingw32* )
44075 LDFLAGS_GUI="-mwindows"
44076 esac
44077
44078
44079 fi
44080
44081 echo "$as_me:$LINENO: checking if make is GNU make" >&5
44082echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
44083if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
44084 echo $ECHO_N "(cached) $ECHO_C" >&6
44085else
44086
44087 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
44088 egrep -s GNU > /dev/null); then
44089 bakefile_cv_prog_makeisgnu="yes"
44090 else
44091 bakefile_cv_prog_makeisgnu="no"
44092 fi
44093
44094fi
44095echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
44096echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
44097
44098 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
44099 IF_GNU_MAKE=""
44100 else
44101 IF_GNU_MAKE="#"
44102 fi
44103
44104
44105
44106 PLATFORM_UNIX=0
44107 PLATFORM_WIN32=0
44108 PLATFORM_MSDOS=0
44109 PLATFORM_MAC=0
1e9e8aba 44110 PLATFORM_MACOS=0
a848cd7e
SC
44111 PLATFORM_MACOSX=0
44112 PLATFORM_OS2=0
1e9e8aba 44113 PLATFORM_BEOS=0
a848cd7e
SC
44114
44115 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
44116 case "${BAKEFILE_HOST}" in
810b94f0 44117 *-*-mingw32* )
a848cd7e
SC
44118 PLATFORM_WIN32=1
44119 ;;
44120 *-pc-msdosdjgpp )
44121 PLATFORM_MSDOS=1
44122 ;;
44123 *-pc-os2_emx | *-pc-os2-emx )
44124 PLATFORM_OS2=1
44125 ;;
47bd5406 44126 *-*-darwin* )
a848cd7e
SC
44127 PLATFORM_MAC=1
44128 PLATFORM_MACOSX=1
44129 ;;
1e9e8aba
DE
44130 *-*-beos* )
44131 PLATFORM_BEOS=1
44132 ;;
44133 powerpc-apple-macos* )
44134 PLATFORM_MAC=1
44135 PLATFORM_MACOS=1
44136 ;;
a848cd7e
SC
44137 * )
44138 PLATFORM_UNIX=1
44139 ;;
44140 esac
44141 else
44142 case "$BAKEFILE_FORCE_PLATFORM" in
44143 win32 )
44144 PLATFORM_WIN32=1
44145 ;;
44146 msdos )
44147 PLATFORM_MSDOS=1
44148 ;;
44149 os2 )
44150 PLATFORM_OS2=1
44151 ;;
44152 darwin )
44153 PLATFORM_MAC=1
44154 PLATFORM_MACOSX=1
44155 ;;
44156 unix )
44157 PLATFORM_UNIX=1
44158 ;;
1e9e8aba
DE
44159 beos )
44160 PLATFORM_BEOS=1
44161 ;;
a848cd7e
SC
44162 * )
44163 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
44164echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
44165 { (exit 1); exit 1; }; }
44166 ;;
44167 esac
44168 fi
44169
44170
44171
44172
44173
44174
44175
44176
44177
1e9e8aba
DE
44178
44179
a848cd7e
SC
44180 # Check whether --enable-omf or --disable-omf was given.
44181if test "${enable_omf+set}" = set; then
44182 enableval="$enable_omf"
44183 bk_os2_use_omf="$enableval"
44184fi;
44185
44186 case "${BAKEFILE_HOST}" in
44187 *-*-darwin* )
47bd5406
VZ
44188 if test "x$GCC" = "xyes"; then
44189 CFLAGS="$CFLAGS -fno-common"
44190 CXXFLAGS="$CXXFLAGS -fno-common"
44191 fi
44192 if test "x$XLCC" = "xyes"; then
44193 CFLAGS="$CFLAGS -qnocommon"
44194 CXXFLAGS="$CXXFLAGS -qnocommon"
44195 fi
a848cd7e
SC
44196 ;;
44197
44198 *-pc-os2_emx | *-pc-os2-emx )
44199 if test "x$bk_os2_use_omf" = "xyes" ; then
44200 AR=emxomfar
44201 RANLIB=:
44202 LDFLAGS="-Zomf $LDFLAGS"
44203 CFLAGS="-Zomf $CFLAGS"
44204 CXXFLAGS="-Zomf $CXXFLAGS"
44205 OS2_LIBEXT="lib"
44206 else
44207 OS2_LIBEXT="a"
44208 fi
44209 ;;
1e9e8aba
DE
44210
44211 i*86-*-beos* )
44212 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
44213 ;;
a848cd7e
SC
44214 esac
44215
44216
44217 SO_SUFFIX="so"
44218 SO_SUFFIX_MODULE="so"
44219 EXEEXT=""
44220 LIBPREFIX="lib"
44221 LIBEXT=".a"
44222 DLLPREFIX="lib"
44223 DLLPREFIX_MODULE=""
44224 DLLIMP_SUFFIX=""
810b94f0 44225 dlldir="$libdir"
a848cd7e
SC
44226
44227 case "${BAKEFILE_HOST}" in
44228 *-hp-hpux* )
44229 SO_SUFFIX="sl"
44230 SO_SUFFIX_MODULE="sl"
44231 ;;
44232 *-*-aix* )
44233 SO_SUFFIX="a"
44234 SO_SUFFIX_MODULE="a"
44235 ;;
810b94f0
MW
44236 *-*-cygwin* )
44237 SO_SUFFIX="dll"
44238 SO_SUFFIX_MODULE="dll"
44239 DLLIMP_SUFFIX="dll.a"
44240 EXEEXT=".exe"
44241 DLLPREFIX="cyg"
44242 dlldir="$bindir"
44243 ;;
44244 *-*-mingw32* )
a848cd7e
SC
44245 SO_SUFFIX="dll"
44246 SO_SUFFIX_MODULE="dll"
44247 DLLIMP_SUFFIX="dll.a"
44248 EXEEXT=".exe"
44249 DLLPREFIX=""
810b94f0 44250 dlldir="$bindir"
a848cd7e
SC
44251 ;;
44252 *-pc-msdosdjgpp )
44253 EXEEXT=".exe"
44254 DLLPREFIX=""
810b94f0 44255 dlldir="$bindir"
a848cd7e
SC
44256 ;;
44257 *-pc-os2_emx | *-pc-os2-emx )
44258 SO_SUFFIX="dll"
44259 SO_SUFFIX_MODULE="dll"
44260 DLLIMP_SUFFIX=$OS2_LIBEXT
44261 EXEEXT=".exe"
44262 DLLPREFIX=""
44263 LIBPREFIX=""
44264 LIBEXT=".$OS2_LIBEXT"
810b94f0 44265 dlldir="$bindir"
a848cd7e 44266 ;;
47bd5406 44267 *-*-darwin* )
a848cd7e
SC
44268 SO_SUFFIX="dylib"
44269 SO_SUFFIX_MODULE="bundle"
44270 ;;
44271 esac
44272
44273 if test "x$DLLIMP_SUFFIX" = "x" ; then
44274 DLLIMP_SUFFIX="$SO_SUFFIX"
44275 fi
44276
44277
44278
44279
44280
44281
44282
44283
44284
44285
44286
810b94f0 44287
1e9e8aba
DE
44288 PIC_FLAG=""
44289 if test "x$GCC" = "xyes"; then
a848cd7e
SC
44290 PIC_FLAG="-fPIC"
44291 fi
44292
1e9e8aba
DE
44293 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
44294 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 44295 WINDOWS_IMPLIB=0
1e9e8aba 44296
a848cd7e
SC
44297 case "${BAKEFILE_HOST}" in
44298 *-hp-hpux* )
1e9e8aba 44299 if test "x$GCC" != "xyes"; then
a848cd7e
SC
44300 LDFLAGS="$LDFLAGS -L/usr/lib"
44301
44302 SHARED_LD_CC="${CC} -b -o"
44303 SHARED_LD_CXX="${CXX} -b -o"
44304 PIC_FLAG="+Z"
44305 fi
44306 ;;
44307
44308 *-*-linux* )
44309 if test "x$GCC" != "xyes"; then
44310 echo "$as_me:$LINENO: checking for Intel compiler" >&5
44311echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
44312if test "${bakefile_cv_prog_icc+set}" = set; then
44313 echo $ECHO_N "(cached) $ECHO_C" >&6
44314else
44315
44316 cat >conftest.$ac_ext <<_ACEOF
44317/* confdefs.h. */
44318_ACEOF
44319cat confdefs.h >>conftest.$ac_ext
44320cat >>conftest.$ac_ext <<_ACEOF
44321/* end confdefs.h. */
44322
44323int
44324main ()
44325{
44326
44327 #ifndef __INTEL_COMPILER
44328 #error Not icc
44329 #endif
44330
44331 ;
44332 return 0;
44333}
44334_ACEOF
44335rm -f conftest.$ac_objext
44336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44337 (eval $ac_compile) 2>conftest.er1
a848cd7e 44338 ac_status=$?
ac1cb8d3
VS
44339 grep -v '^ *+' conftest.er1 >conftest.err
44340 rm -f conftest.er1
44341 cat conftest.err >&5
a848cd7e
SC
44342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44343 (exit $ac_status); } &&
0093c2fc 44344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44346 (eval $ac_try) 2>&5
44347 ac_status=$?
44348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44349 (exit $ac_status); }; } &&
44350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44352 (eval $ac_try) 2>&5
44353 ac_status=$?
44354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44355 (exit $ac_status); }; }; then
44356 bakefile_cv_prog_icc=yes
44357else
44358 echo "$as_me: failed program was:" >&5
44359sed 's/^/| /' conftest.$ac_ext >&5
44360
44361bakefile_cv_prog_icc=no
44362
44363fi
ac1cb8d3 44364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44365
44366fi
44367echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
44368echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
44369 if test "$bakefile_cv_prog_icc" = "yes"; then
44370 PIC_FLAG="-KPIC"
44371 fi
44372 fi
44373 ;;
44374
44375 *-*-solaris2* )
44376 if test "x$GCC" != xyes ; then
44377 SHARED_LD_CC="${CC} -G -o"
44378 SHARED_LD_CXX="${CXX} -G -o"
44379 PIC_FLAG="-KPIC"
44380 fi
44381 ;;
44382
44383 *-*-darwin* )
44384
473276a9
VS
44385D='$'
44386cat <<EOF >shared-ld-sh
a848cd7e
SC
44387#!/bin/sh
44388#-----------------------------------------------------------------------------
44389#-- Name: distrib/mac/shared-ld-sh
44390#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
44391#-- Author: Gilles Depeyrot
44392#-- Copyright: (c) 2002 Gilles Depeyrot
44393#-- Licence: any use permitted
44394#-----------------------------------------------------------------------------
44395
44396verbose=0
44397args=""
44398objects=""
44399linking_flag="-dynamiclib"
810b94f0 44400ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 44401
473276a9
VS
44402while test ${D}# -gt 0; do
44403 case ${D}1 in
a848cd7e
SC
44404
44405 -v)
44406 verbose=1
44407 ;;
44408
44409 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
44410 # collect these options and values
473276a9 44411 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
44412 shift
44413 ;;
44414
810b94f0
MW
44415 -s|-Wl,*)
44416 # collect these load args
44417 ldargs="${D}{ldargs} ${D}1"
2113bc77 44418 ;;
810b94f0
MW
44419
44420 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 44421 # collect these options
473276a9 44422 args="${D}{args} ${D}1"
a848cd7e
SC
44423 ;;
44424
44425 -dynamiclib|-bundle)
473276a9 44426 linking_flag="${D}1"
a848cd7e
SC
44427 ;;
44428
44429 -*)
473276a9 44430 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
44431 exit 1
44432 ;;
44433
44434 *.o | *.a | *.dylib)
44435 # collect object files
473276a9 44436 objects="${D}{objects} ${D}1"
a848cd7e
SC
44437 ;;
44438
44439 *)
473276a9 44440 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
44441 exit 1
44442 ;;
44443
44444 esac
44445 shift
44446done
44447
810b94f0
MW
44448status=0
44449
a848cd7e
SC
44450#
44451# Link one module containing all the others
44452#
473276a9 44453if test ${D}{verbose} = 1; then
810b94f0 44454 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 44455fi
810b94f0 44456c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 44457status=${D}?
a848cd7e
SC
44458
44459#
810b94f0
MW
44460# Link the shared library from the single module created, but only if the
44461# previous command didn't fail:
a848cd7e 44462#
810b94f0
MW
44463if test ${D}{status} = 0; then
44464 if test ${D}{verbose} = 1; then
44465 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
44466 fi
44467 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
44468 status=${D}?
a848cd7e
SC
44469fi
44470
44471#
44472# Remove intermediate module
44473#
473276a9 44474rm -f master.${D}${D}.o
a848cd7e 44475
810b94f0 44476exit ${D}status
a848cd7e 44477EOF
473276a9 44478
583d6b4b
VZ
44479 chmod +x shared-ld-sh
44480
44481 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
44482 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
44483
44484
44485 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
44486echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
44487if test "${bakefile_cv_gcc31+set}" = set; then
44488 echo $ECHO_N "(cached) $ECHO_C" >&6
44489else
44490
44491 cat >conftest.$ac_ext <<_ACEOF
44492/* confdefs.h. */
44493_ACEOF
44494cat confdefs.h >>conftest.$ac_ext
44495cat >>conftest.$ac_ext <<_ACEOF
44496/* end confdefs.h. */
44497
44498int
44499main ()
44500{
44501
44502 #if (__GNUC__ < 3) || \
44503 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
44504 #error old gcc
44505 #endif
a848cd7e 44506
583d6b4b
VZ
44507 ;
44508 return 0;
44509}
44510_ACEOF
44511rm -f conftest.$ac_objext
44512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44513 (eval $ac_compile) 2>conftest.er1
44514 ac_status=$?
44515 grep -v '^ *+' conftest.er1 >conftest.err
44516 rm -f conftest.er1
44517 cat conftest.err >&5
44518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44519 (exit $ac_status); } &&
44520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44522 (eval $ac_try) 2>&5
44523 ac_status=$?
44524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44525 (exit $ac_status); }; } &&
44526 { ac_try='test -s conftest.$ac_objext'
44527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44528 (eval $ac_try) 2>&5
44529 ac_status=$?
44530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44531 (exit $ac_status); }; }; then
44532
44533 bakefile_cv_gcc31=yes
44534
44535else
44536 echo "$as_me: failed program was:" >&5
44537sed 's/^/| /' conftest.$ac_ext >&5
44538
44539
44540 bakefile_cv_gcc31=no
44541
44542
44543fi
44544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44545
44546fi
44547echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
44548echo "${ECHO_T}$bakefile_cv_gcc31" >&6
44549 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 44550 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 44551 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
44552 else
44553 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 44554 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
44555 fi
44556
47bd5406
VZ
44557 if test "x$GCC" == "xyes"; then
44558 PIC_FLAG="-dynamic -fPIC"
44559 fi
44560 if test "x$XLCC" = "xyes"; then
44561 PIC_FLAG="-dynamic -DPIC"
44562 fi
a848cd7e
SC
44563 ;;
44564
44565 *-*-aix* )
f6b50c59 44566 if test "x$GCC" = "xyes"; then
583d6b4b 44567 PIC_FLAG=""
f6b50c59 44568
583d6b4b
VZ
44569 case "${BAKEFILE_HOST}" in
44570 *-*-aix5* )
44571 LD_EXPFULL="-Wl,-bexpfull"
44572 ;;
44573 esac
f6b50c59 44574
583d6b4b
VZ
44575 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
44576 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
44577 else
44578 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
44579set dummy makeC++SharedLib; ac_word=$2
44580echo "$as_me:$LINENO: checking for $ac_word" >&5
44581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44582if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
44583 echo $ECHO_N "(cached) $ECHO_C" >&6
44584else
44585 if test -n "$AIX_CXX_LD"; then
44586 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
44587else
44588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44589for as_dir in $PATH
44590do
44591 IFS=$as_save_IFS
44592 test -z "$as_dir" && as_dir=.
44593 for ac_exec_ext in '' $ac_executable_extensions; do
44594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44595 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
44596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44597 break 2
44598 fi
44599done
44600done
44601
44602 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
44603fi
44604fi
44605AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
44606if test -n "$AIX_CXX_LD"; then
44607 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
44608echo "${ECHO_T}$AIX_CXX_LD" >&6
44609else
44610 echo "$as_me:$LINENO: result: no" >&5
44611echo "${ECHO_T}no" >&6
44612fi
44613
f6b50c59 44614 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
44615 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
44616 fi
44617 ;;
44618
44619 *-*-beos* )
1e9e8aba
DE
44620 SHARED_LD_CC="${LD} -nostart -o"
44621 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
44622 ;;
44623
44624 *-*-irix* )
44625 if test "x$GCC" != "xyes"; then
44626 PIC_FLAG="-KPIC"
44627 fi
44628 ;;
44629
44630 *-*-cygwin* | *-*-mingw32* )
44631 PIC_FLAG=""
1e9e8aba
DE
44632 SHARED_LD_CC="\$(CC) -shared -o"
44633 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 44634 WINDOWS_IMPLIB=1
a848cd7e
SC
44635 ;;
44636
44637 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
44638 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44639 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 44640 PIC_FLAG=""
473276a9
VS
44641
44642D='$'
44643cat <<EOF >dllar.sh
44644#!/bin/sh
44645#
44646# dllar - a tool to build both a .dll and an .a file
44647# from a set of object (.o) files for EMX/OS2.
44648#
44649# Written by Andrew Zabolotny, bit@freya.etu.ru
44650# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
44651#
44652# This script will accept a set of files on the command line.
44653# All the public symbols from the .o files will be exported into
44654# a .DEF file, then linker will be run (through gcc) against them to
44655# build a shared library consisting of all given .o files. All libraries
44656# (.a) will be first decompressed into component .o files then act as
44657# described above. You can optionally give a description (-d "description")
44658# which will be put into .DLL. To see the list of accepted options (as well
44659# as command-line format) simply run this program without options. The .DLL
44660# is built to be imported by name (there is no guarantee that new versions
44661# of the library you build will have same ordinals for same symbols).
44662#
44663# dllar is free software; you can redistribute it and/or modify
44664# it under the terms of the GNU General Public License as published by
44665# the Free Software Foundation; either version 2, or (at your option)
44666# any later version.
44667#
44668# dllar is distributed in the hope that it will be useful,
44669# but WITHOUT ANY WARRANTY; without even the implied warranty of
44670# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44671# GNU General Public License for more details.
44672#
44673# You should have received a copy of the GNU General Public License
44674# along with dllar; see the file COPYING. If not, write to the Free
44675# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
44676# 02111-1307, USA.
44677
44678# To successfuly run this program you will need:
44679# - Current drive should have LFN support (HPFS, ext2, network, etc)
44680# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
44681# - gcc
44682# (used to build the .dll)
44683# - emxexp
44684# (used to create .def file from .o files)
44685# - emximp
44686# (used to create .a file from .def file)
44687# - GNU text utilites (cat, sort, uniq)
44688# used to process emxexp output
44689# - GNU file utilities (mv, rm)
44690# - GNU sed
44691# - lxlite (optional, see flag below)
44692# (used for general .dll cleanup)
44693#
44694
44695flag_USE_LXLITE=1;
44696
44697#
44698# helper functions
44699# basnam, variant of basename, which does _not_ remove the path, _iff_
44700# second argument (suffix to remove) is given
44701basnam(){
44702 case ${D}# in
44703 1)
1e9e8aba 44704 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
44705 ;;
44706 2)
44707 echo ${D}1 | sed 's/'${D}2'${D}//'
44708 ;;
44709 *)
44710 echo "error in basnam ${D}*"
44711 exit 8
44712 ;;
44713 esac
44714}
44715
44716# Cleanup temporary files and output
44717CleanUp() {
44718 cd ${D}curDir
44719 for i in ${D}inputFiles ; do
44720 case ${D}i in
44721 *!)
44722 rm -rf \`basnam ${D}i !\`
44723 ;;
44724 *)
44725 ;;
44726 esac
44727 done
44728
44729 # Kill result in case of failure as there is just to many stupid make/nmake
44730 # things out there which doesn't do this.
1e9e8aba 44731 if [ ${D}# -eq 0 ]; then
473276a9
VS
44732 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
44733 fi
44734}
44735
44736# Print usage and exit script with rc=1.
44737PrintHelp() {
b1d22ded
DE
44738 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
44739 echo ' [-name-mangler-script script.sh]'
44740 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
44741 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
44742 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 44743 echo ' [*.o] [*.a]'
473276a9
VS
44744 echo '*> "output_file" should have no extension.'
44745 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
44746 echo ' The import library name is derived from this and is set to "name".a,'
44747 echo ' unless overridden by -import'
44748 echo '*> "importlib_name" should have no extension.'
44749 echo ' If it has the .o, or .a extension, it is automatically removed.'
44750 echo ' This name is used as the import library name and may be longer and'
44751 echo ' more descriptive than the DLL name which has to follow the old '
44752 echo ' 8.3 convention of FAT.'
b1d22ded
DE
44753 echo '*> "script.sh may be given to override the output_file name by a'
44754 echo ' different name. It is mainly useful if the regular make process'
44755 echo ' of some package does not take into account OS/2 restriction of'
44756 echo ' DLL name lengths. It takes the importlib name as input and is'
44757 echo ' supposed to procude a shorter name as output. The script should'
44758 echo ' expect to get importlib_name without extension and should produce'
44759 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
44760 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
44761 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
44762 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
44763 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
44764 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
44765 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
44766 echo ' If the last character of a symbol is "*", all symbols beginning'
44767 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 44768 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 44769 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 44770 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 44771 echo ' C runtime DLLs.'
b1d22ded 44772 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
44773 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
44774 echo ' unchanged to GCC at the end of command line.'
44775 echo '*> If you create a DLL from a library and you do not specify -o,'
44776 echo ' the basename for DLL and import library will be set to library name,'
44777 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
44778 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
44779 echo ' library will be renamed into gcc_s.a.'
44780 echo '--------'
44781 echo 'Example:'
44782 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
44783 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
44784 CleanUp
44785 exit 1
44786}
44787
44788# Execute a command.
44789# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
44790# @Uses Whatever CleanUp() uses.
44791doCommand() {
44792 echo "${D}*"
44793 eval ${D}*
44794 rcCmd=${D}?
44795
1e9e8aba 44796 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
44797 echo "command failed, exit code="${D}rcCmd
44798 CleanUp
44799 exit ${D}rcCmd
44800 fi
44801}
44802
44803# main routine
44804# setup globals
44805cmdLine=${D}*
44806outFile=""
44807outimpFile=""
44808inputFiles=""
b1d22ded 44809renameScript=""
473276a9
VS
44810description=""
44811CC=gcc.exe
44812CFLAGS="-s -Zcrtdll"
44813EXTRA_CFLAGS=""
44814EXPORT_BY_ORDINALS=0
44815exclude_symbols=""
44816library_flags=""
44817curDir=\`pwd\`
44818curDirS=curDir
44819case ${D}curDirS in
44820*/)
44821 ;;
44822*)
44823 curDirS=${D}{curDirS}"/"
44824 ;;
44825esac
44826# Parse commandline
44827libsToLink=0
b1d22ded 44828omfLinking=0
1e9e8aba 44829while [ ${D}1 ]; do
473276a9
VS
44830 case ${D}1 in
44831 -ord*)
44832 EXPORT_BY_ORDINALS=1;
44833 ;;
44834 -o*)
44835 shift
44836 outFile=${D}1
44837 ;;
44838 -i*)
44839 shift
44840 outimpFile=${D}1
44841 ;;
b1d22ded
DE
44842 -name-mangler-script)
44843 shift
44844 renameScript=${D}1
44845 ;;
473276a9
VS
44846 -d*)
44847 shift
44848 description=${D}1
44849 ;;
44850 -f*)
44851 shift
44852 CFLAGS=${D}1
44853 ;;
44854 -c*)
44855 shift
44856 CC=${D}1
44857 ;;
44858 -h*)
44859 PrintHelp
44860 ;;
44861 -ex*)
44862 shift
44863 exclude_symbols=${D}{exclude_symbols}${D}1" "
44864 ;;
44865 -libf*)
44866 shift
44867 library_flags=${D}{library_flags}${D}1" "
44868 ;;
44869 -nocrt*)
44870 CFLAGS="-s"
44871 ;;
44872 -nolxl*)
44873 flag_USE_LXLITE=0
44874 ;;
44875 -* | /*)
44876 case ${D}1 in
44877 -L* | -l*)
44878 libsToLink=1
44879 ;;
b1d22ded
DE
44880 -Zomf)
44881 omfLinking=1
44882 ;;
473276a9
VS
44883 *)
44884 ;;
44885 esac
44886 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44887 ;;
b1d22ded
DE
44888 *.dll)
44889 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44890 if [ ${D}omfLinking -eq 1 ]; then
44891 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44892 else
44893 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44894 fi
44895 ;;
473276a9
VS
44896 *)
44897 found=0;
1e9e8aba 44898 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44899 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44900 else
44901 for file in ${D}1 ; do
1e9e8aba 44902 if [ -f ${D}file ]; then
473276a9
VS
44903 inputFiles="${D}{inputFiles} ${D}file"
44904 found=1
44905 fi
44906 done
1e9e8aba 44907 if [ ${D}found -eq 0 ]; then
473276a9
VS
44908 echo "ERROR: No file(s) found: "${D}1
44909 exit 8
44910 fi
44911 fi
44912 ;;
44913 esac
44914 shift
44915done # iterate cmdline words
44916
44917#
1e9e8aba 44918if [ -z "${D}inputFiles" ]; then
473276a9
VS
44919 echo "dllar: no input files"
44920 PrintHelp
44921fi
44922
44923# Now extract all .o files from .a files
44924newInputFiles=""
44925for file in ${D}inputFiles ; do
44926 case ${D}file in
44927 *.a | *.lib)
44928 case ${D}file in
44929 *.a)
44930 suffix=".a"
44931 AR="ar"
44932 ;;
44933 *.lib)
44934 suffix=".lib"
44935 AR="emxomfar"
44936 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44937 ;;
44938 *)
44939 ;;
44940 esac
44941 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44942 mkdir ${D}dirname
1e9e8aba 44943 if [ ${D}? -ne 0 ]; then
473276a9
VS
44944 echo "Failed to create subdirectory ./${D}dirname"
44945 CleanUp
44946 exit 8;
44947 fi
44948 # Append '!' to indicate archive
44949 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44950 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44951 cd ${D}curDir
44952 found=0;
44953 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 44954 if [ -f ${D}subfile ]; then
473276a9 44955 found=1
1e9e8aba 44956 if [ -s ${D}subfile ]; then
473276a9
VS
44957 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44958 newInputFiles="${D}newInputFiles ${D}subfile"
44959 fi
44960 fi
44961 done
1e9e8aba
DE
44962 if [ ${D}found -eq 0 ]; then
44963 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
44964 fi
44965 ;;
44966 *)
44967 newInputFiles="${D}{newInputFiles} ${D}file"
44968 ;;
44969 esac
44970done
44971inputFiles="${D}newInputFiles"
44972
44973# Output filename(s).
44974do_backup=0;
1e9e8aba 44975if [ -z ${D}outFile ]; then
473276a9
VS
44976 do_backup=1;
44977 set outFile ${D}inputFiles; outFile=${D}2
44978fi
44979
44980# If it is an archive, remove the '!' and the '_%' suffixes
44981case ${D}outFile in
44982*_%!)
44983 outFile=\`basnam ${D}outFile _%!\`
44984 ;;
44985*)
44986 ;;
44987esac
44988case ${D}outFile in
44989*.dll)
44990 outFile=\`basnam ${D}outFile .dll\`
44991 ;;
44992*.DLL)
44993 outFile=\`basnam ${D}outFile .DLL\`
44994 ;;
44995*.o)
44996 outFile=\`basnam ${D}outFile .o\`
44997 ;;
44998*.obj)
44999 outFile=\`basnam ${D}outFile .obj\`
45000 ;;
45001*.a)
45002 outFile=\`basnam ${D}outFile .a\`
45003 ;;
45004*.lib)
45005 outFile=\`basnam ${D}outFile .lib\`
45006 ;;
45007*)
45008 ;;
45009esac
45010case ${D}outimpFile in
45011*.a)
45012 outimpFile=\`basnam ${D}outimpFile .a\`
45013 ;;
45014*.lib)
45015 outimpFile=\`basnam ${D}outimpFile .lib\`
45016 ;;
45017*)
45018 ;;
45019esac
1e9e8aba 45020if [ -z ${D}outimpFile ]; then
473276a9
VS
45021 outimpFile=${D}outFile
45022fi
45023defFile="${D}{outFile}.def"
45024arcFile="${D}{outimpFile}.a"
45025arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
45026
45027#create ${D}dllFile as something matching 8.3 restrictions,
45028if [ -z ${D}renameScript ] ; then
45029 dllFile="${D}outFile"
45030else
45031 dllFile=\`${D}renameScript ${D}outimpFile\`
45032fi
473276a9 45033
1e9e8aba
DE
45034if [ ${D}do_backup -ne 0 ] ; then
45035 if [ -f ${D}arcFile ] ; then
473276a9
VS
45036 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
45037 fi
1e9e8aba 45038 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
45039 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
45040 fi
45041fi
45042
45043# Extract public symbols from all the object files.
45044tmpdefFile=${D}{defFile}_%
45045rm -f ${D}tmpdefFile
45046for file in ${D}inputFiles ; do
45047 case ${D}file in
45048 *!)
45049 ;;
45050 *)
45051 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
45052 ;;
45053 esac
45054done
45055
45056# Create the def file.
45057rm -f ${D}defFile
45058echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
45059dllFile="${D}{dllFile}.dll"
45060if [ ! -z ${D}description ]; then
1e9e8aba 45061 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
45062fi
45063echo "EXPORTS" >> ${D}defFile
45064
45065doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
45066grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
45067
45068# Checks if the export is ok or not.
45069for word in ${D}exclude_symbols; do
45070 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
45071 mv ${D}{tmpdefFile}% ${D}tmpdefFile
45072done
45073
45074
1e9e8aba
DE
45075if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
45076 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
45077 sed '
45078 N
45079 : loop
1e9e8aba 45080 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
45081 t loop
45082 ' > ${D}{tmpdefFile}%
45083 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
45084else
45085 rm -f ${D}{tmpdefFile}%
45086fi
45087cat ${D}tmpdefFile >> ${D}defFile
45088rm -f ${D}tmpdefFile
45089
45090# Do linking, create implib, and apply lxlite.
45091gccCmdl="";
45092for file in ${D}inputFiles ; do
45093 case ${D}file in
45094 *!)
45095 ;;
45096 *)
45097 gccCmdl="${D}gccCmdl ${D}file"
45098 ;;
45099 esac
45100done
45101doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
45102touch "${D}{outFile}.dll"
45103
45104doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 45105if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 45106 add_flags="";
1e9e8aba 45107 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
45108 add_flags="-ynd"
45109 fi
45110 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
45111fi
45112doCommand "emxomf -s -l ${D}arcFile"
45113
45114# Successful exit.
45115CleanUp 1
45116exit 0
45117EOF
45118
45119 chmod +x dllar.sh
a848cd7e
SC
45120 ;;
45121
1e9e8aba 45122 powerpc-apple-macos* | \
0ad5d837 45123 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
45124 *-*-sunos4* | \
45125 *-*-osf* | \
45126 *-*-dgux5* | \
47a7e797
MW
45127 *-*-sysv5* | \
45128 *-pc-msdosdjgpp )
a848cd7e
SC
45129 ;;
45130
45131 *)
45132 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
45133echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
45134 { (exit 1); exit 1; }; }
45135 esac
45136
2057db16
VS
45137 if test "x$PIC_FLAG" != "x" ; then
45138 PIC_FLAG="$PIC_FLAG -DPIC"
45139 fi
45140
a848cd7e
SC
45141 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
45142 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
45143 fi
45144 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
45145 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
45146 fi
45147
45148
45149
45150
45151
45152
45153
45154
810b94f0 45155
a848cd7e
SC
45156 USE_SOVERSION=0
45157 USE_SOVERLINUX=0
45158 USE_SOVERSOLARIS=0
810b94f0 45159 USE_SOVERCYGWIN=0
a848cd7e
SC
45160 USE_SOSYMLINKS=0
45161 USE_MACVERSION=0
45162 SONAME_FLAG=
45163
45164 case "${BAKEFILE_HOST}" in
0ad5d837 45165 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
45166 SONAME_FLAG="-Wl,-soname,"
45167 USE_SOVERSION=1
45168 USE_SOVERLINUX=1
45169 USE_SOSYMLINKS=1
45170 ;;
45171
a848cd7e
SC
45172 *-*-solaris2* )
45173 SONAME_FLAG="-h "
45174 USE_SOVERSION=1
45175 USE_SOVERSOLARIS=1
45176 USE_SOSYMLINKS=1
45177 ;;
45178
45179 *-*-darwin* )
45180 USE_MACVERSION=1
45181 USE_SOVERSION=1
45182 USE_SOSYMLINKS=1
45183 ;;
810b94f0
MW
45184
45185 *-*-cygwin* )
45186 USE_SOVERSION=1
45187 USE_SOVERCYGWIN=1
45188 ;;
a848cd7e
SC
45189 esac
45190
45191
45192
45193
45194
45195
45196
45197
45198
810b94f0 45199
a848cd7e
SC
45200 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
45201echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 45202 DEPS_TRACKING=1
a848cd7e
SC
45203
45204 if test "x$GCC" = "xyes"; then
45205 DEPSMODE=gcc
a848cd7e 45206 case "${BAKEFILE_HOST}" in
47bd5406 45207 *-*-darwin* )
0ad5d837 45208 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
45209 ;;
45210 * )
0ad5d837 45211 DEPSFLAG="-MMD"
a848cd7e
SC
45212 ;;
45213 esac
45214 echo "$as_me:$LINENO: result: gcc" >&5
45215echo "${ECHO_T}gcc" >&6
b1d22ded 45216 elif test "x$MWCC" = "xyes"; then
81f90336 45217 DEPSMODE=mwcc
0ad5d837 45218 DEPSFLAG="-MM"
b1d22ded
DE
45219 echo "$as_me:$LINENO: result: mwcc" >&5
45220echo "${ECHO_T}mwcc" >&6
a9e5b1f0 45221 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
45222 DEPSMODE=unixcc
45223 DEPSFLAG="-xM1"
45224 echo "$as_me:$LINENO: result: Sun cc" >&5
45225echo "${ECHO_T}Sun cc" >&6
45226 elif test "x$SGICC" = "xyes"; then
45227 DEPSMODE=unixcc
45228 DEPSFLAG="-M"
45229 echo "$as_me:$LINENO: result: SGI cc" >&5
45230echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
45231 elif test "x$HPCC" = "xyes"; then
45232 DEPSMODE=unixcc
45233 DEPSFLAG="+make"
45234 echo "$as_me:$LINENO: result: HP cc" >&5
45235echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
45236 elif test "x$COMPAQCC" = "xyes"; then
45237 DEPSMODE=gcc
45238 DEPSFLAG="-MD"
45239 echo "$as_me:$LINENO: result: Compaq cc" >&5
45240echo "${ECHO_T}Compaq cc" >&6
a848cd7e 45241 else
3006edc0 45242 DEPS_TRACKING=0
a848cd7e
SC
45243 echo "$as_me:$LINENO: result: none" >&5
45244echo "${ECHO_T}none" >&6
45245 fi
45246
45247 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
45248
45249D='$'
45250cat <<EOF >bk-deps
a848cd7e
SC
45251#!/bin/sh
45252
45253# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45254# script. It is used to track C/C++ files dependencies in portable way.
45255#
45256# Permission is given to use this file in any way.
45257
473276a9 45258DEPSMODE=${DEPSMODE}
a848cd7e 45259DEPSDIR=.deps
0ad5d837 45260DEPSFLAG="${DEPSFLAG}"
a848cd7e 45261
473276a9 45262mkdir -p ${D}DEPSDIR
a848cd7e 45263
473276a9 45264if test ${D}DEPSMODE = gcc ; then
0ad5d837 45265 ${D}* ${D}{DEPSFLAG}
473276a9
VS
45266 status=${D}?
45267 if test ${D}{status} != 0 ; then
45268 exit ${D}{status}
a848cd7e
SC
45269 fi
45270 # move created file to the location we want it in:
473276a9
VS
45271 while test ${D}# -gt 0; do
45272 case "${D}1" in
a848cd7e
SC
45273 -o )
45274 shift
473276a9 45275 objfile=${D}1
a848cd7e
SC
45276 ;;
45277 -* )
45278 ;;
45279 * )
473276a9 45280 srcfile=${D}1
a848cd7e
SC
45281 ;;
45282 esac
45283 shift
45284 done
1e9e8aba
DE
45285 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
45286 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
45287 if test -f ${D}depfile ; then
45288 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45289 rm -f ${D}depfile
a848cd7e 45290 else
a1aa0349 45291 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 45292 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
45293 if test ! -f ${D}depfile ; then
45294 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
45295 depfile="${D}objfile.d"
45296 fi
473276a9
VS
45297 if test -f ${D}depfile ; then
45298 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45299 rm -f ${D}depfile
a848cd7e
SC
45300 fi
45301 fi
45302 exit 0
81f90336 45303elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 45304 ${D}* || exit ${D}?
81f90336
MW
45305 # Run mwcc again with -MM and redirect into the dep file we want
45306 # NOTE: We can't use shift here because we need ${D}* to be valid
45307 prevarg=
45308 for arg in ${D}* ; do
45309 if test "${D}prevarg" = "-o"; then
45310 objfile=${D}arg
45311 else
45312 case "${D}arg" in
45313 -* )
45314 ;;
45315 * )
45316 srcfile=${D}arg
45317 ;;
45318 esac
45319 fi
45320 prevarg="${D}arg"
45321 done
0ad5d837 45322 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 45323 exit 0
0ad5d837 45324elif test ${D}DEPSMODE = unixcc; then
f6b50c59 45325 ${D}* || exit ${D}?
a9e5b1f0
MW
45326 # Run compiler again with deps flag and redirect into the dep file.
45327 # It doesn't work if the '-o FILE' option is used, but without it the
45328 # dependency file will contain the wrong name for the object. So it is
45329 # removed from the command line, and the dep file is fixed with sed.
45330 cmd=""
45331 while test ${D}# -gt 0; do
45332 case "${D}1" in
45333 -o )
45334 shift
45335 objfile=${D}1
45336 ;;
45337 * )
45338 eval arg${D}#=\\${D}1
45339 cmd="${D}cmd \\${D}arg${D}#"
45340 ;;
45341 esac
45342 shift
45343 done
0ad5d837 45344 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 45345 exit 0
a848cd7e 45346else
473276a9
VS
45347 ${D}*
45348 exit ${D}?
a848cd7e
SC
45349fi
45350EOF
473276a9 45351
a848cd7e
SC
45352 chmod +x bk-deps
45353 fi
45354
45355
45356
45357
45358 RESCOMP=
45359 SETFILE=
45360
45361 case ${BAKEFILE_HOST} in
45362 *-*-cygwin* | *-*-mingw32* )
45363 if test "$build" != "$host" ; then
45364 RESCOMP=$host_alias-windres
45365 else
45366 # Extract the first word of "windres", so it can be a program name with args.
45367set dummy windres; ac_word=$2
45368echo "$as_me:$LINENO: checking for $ac_word" >&5
45369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45370if test "${ac_cv_prog_RESCOMP+set}" = set; then
45371 echo $ECHO_N "(cached) $ECHO_C" >&6
45372else
45373 if test -n "$RESCOMP"; then
45374 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45375else
45376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45377for as_dir in $PATH
45378do
45379 IFS=$as_save_IFS
45380 test -z "$as_dir" && as_dir=.
45381 for ac_exec_ext in '' $ac_executable_extensions; do
45382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45383 ac_cv_prog_RESCOMP="windres"
45384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45385 break 2
45386 fi
45387done
45388done
45389
45390 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
45391fi
45392fi
45393RESCOMP=$ac_cv_prog_RESCOMP
45394if test -n "$RESCOMP"; then
45395 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45396echo "${ECHO_T}$RESCOMP" >&6
45397else
45398 echo "$as_me:$LINENO: result: no" >&5
45399echo "${ECHO_T}no" >&6
45400fi
45401
45402 fi
45403 ;;
45404
1e9e8aba 45405 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
45406 # Extract the first word of "Rez", so it can be a program name with args.
45407set dummy Rez; ac_word=$2
45408echo "$as_me:$LINENO: checking for $ac_word" >&5
45409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45410if test "${ac_cv_prog_RESCOMP+set}" = set; then
45411 echo $ECHO_N "(cached) $ECHO_C" >&6
45412else
45413 if test -n "$RESCOMP"; then
45414 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45415else
45416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45417for as_dir in $PATH
45418do
45419 IFS=$as_save_IFS
45420 test -z "$as_dir" && as_dir=.
45421 for ac_exec_ext in '' $ac_executable_extensions; do
45422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45423 ac_cv_prog_RESCOMP="Rez"
45424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45425 break 2
45426 fi
45427done
45428done
45429
45430 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
45431fi
45432fi
45433RESCOMP=$ac_cv_prog_RESCOMP
45434if test -n "$RESCOMP"; then
45435 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45436echo "${ECHO_T}$RESCOMP" >&6
45437else
45438 echo "$as_me:$LINENO: result: no" >&5
45439echo "${ECHO_T}no" >&6
45440fi
45441
45442 # Extract the first word of "SetFile", so it can be a program name with args.
45443set dummy SetFile; ac_word=$2
45444echo "$as_me:$LINENO: checking for $ac_word" >&5
45445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45446if test "${ac_cv_prog_SETFILE+set}" = set; then
45447 echo $ECHO_N "(cached) $ECHO_C" >&6
45448else
45449 if test -n "$SETFILE"; then
45450 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
45451else
45452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45453for as_dir in $PATH
45454do
45455 IFS=$as_save_IFS
45456 test -z "$as_dir" && as_dir=.
45457 for ac_exec_ext in '' $ac_executable_extensions; do
45458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45459 ac_cv_prog_SETFILE="SetFile"
45460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45461 break 2
45462 fi
45463done
45464done
45465
45466 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
45467fi
45468fi
45469SETFILE=$ac_cv_prog_SETFILE
45470if test -n "$SETFILE"; then
45471 echo "$as_me:$LINENO: result: $SETFILE" >&5
45472echo "${ECHO_T}$SETFILE" >&6
45473else
45474 echo "$as_me:$LINENO: result: no" >&5
45475echo "${ECHO_T}no" >&6
45476fi
45477
45478 ;;
45479 esac
45480
45481
45482
45483
45484
c9469659 45485 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 45486
dcc1b6ad 45487
c9469659 45488BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 45489
646b6ec1 45490
74b84332 45491
a848cd7e
SC
45492 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
45493if test "${enable_precomp_headers+set}" = set; then
45494 enableval="$enable_precomp_headers"
45495 bk_use_pch="$enableval"
45496fi;
45497
45498 GCC_PCH=0
45499
45500 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
45501 if test "x$GCC" = "xyes"; then
45502 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
45503echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
45504 cat >conftest.$ac_ext <<_ACEOF
45505/* confdefs.h. */
45506_ACEOF
45507cat confdefs.h >>conftest.$ac_ext
45508cat >>conftest.$ac_ext <<_ACEOF
45509/* end confdefs.h. */
45510
45511int
45512main ()
45513{
45514
45515 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
45516 #error "no pch support"
45517 #endif
45518 #if (__GNUC__ < 3)
45519 #error "no pch support"
45520 #endif
45521 #if (__GNUC__ == 3) && \
45522 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
45523 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
45524 #error "no pch support"
45525 #endif
45526
45527 ;
45528 return 0;
45529}
45530_ACEOF
45531rm -f conftest.$ac_objext
45532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45533 (eval $ac_compile) 2>conftest.er1
a848cd7e 45534 ac_status=$?
ac1cb8d3
VS
45535 grep -v '^ *+' conftest.er1 >conftest.err
45536 rm -f conftest.er1
45537 cat conftest.err >&5
a848cd7e
SC
45538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45539 (exit $ac_status); } &&
0093c2fc 45540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45542 (eval $ac_try) 2>&5
45543 ac_status=$?
45544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45545 (exit $ac_status); }; } &&
45546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45548 (eval $ac_try) 2>&5
45549 ac_status=$?
45550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45551 (exit $ac_status); }; }; then
45552
45553 echo "$as_me:$LINENO: result: yes" >&5
45554echo "${ECHO_T}yes" >&6
a848cd7e
SC
45555 GCC_PCH=1
45556
45557else
45558 echo "$as_me: failed program was:" >&5
45559sed 's/^/| /' conftest.$ac_ext >&5
45560
45561
45562 echo "$as_me:$LINENO: result: no" >&5
45563echo "${ECHO_T}no" >&6
45564
45565fi
ac1cb8d3 45566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45567 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
45568
45569D='$'
45570cat <<EOF >bk-make-pch
a848cd7e
SC
45571#!/bin/sh
45572
45573# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45574# script. It is used to generated precompiled headers.
45575#
45576# Permission is given to use this file in any way.
45577
1e9e8aba
DE
45578outfile="${D}{1}"
45579header="${D}{2}"
a848cd7e
SC
45580shift
45581shift
45582
45583compiler=
45584headerfile=
1e9e8aba
DE
45585while test ${D}{#} -gt 0; do
45586 case "${D}{1}" in
a848cd7e 45587 -I* )
1e9e8aba
DE
45588 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
45589 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
45590 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
45591 fi
45592 ;;
45593 esac
1e9e8aba 45594 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
45595 shift
45596done
45597
1e9e8aba
DE
45598if test "x${D}{headerfile}" = "x" ; then
45599 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 45600else
1e9e8aba
DE
45601 if test -f ${D}{outfile} ; then
45602 rm -f ${D}{outfile}
a848cd7e 45603 else
1e9e8aba 45604 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 45605 fi
1e9e8aba 45606 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
45607 mkdir -p .deps
45608 # can do this because gcc is >= 3.4:
1e9e8aba
DE
45609 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
45610 exit ${D}{?}
a848cd7e
SC
45611fi
45612EOF
1e9e8aba 45613
a848cd7e
SC
45614 chmod +x bk-make-pch
45615 fi
45616 fi
45617 fi
45618
45619
45620
a848cd7e
SC
45621 COND_BUILD_DEBUG="#"
45622 if test "x$BUILD" = "xdebug" ; then
45623 COND_BUILD_DEBUG=""
45624 fi
45625
45626 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
45627 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
45628 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
45629 fi
45630
45631 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
45632 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
45633 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
45634 fi
45635
45636 COND_BUILD_DEBUG_UNICODE_0="#"
45637 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
45638 COND_BUILD_DEBUG_UNICODE_0=""
45639 fi
45640
45641 COND_BUILD_DEBUG_UNICODE_1="#"
45642 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
45643 COND_BUILD_DEBUG_UNICODE_1=""
45644 fi
45645
45646 COND_BUILD_RELEASE="#"
45647 if test "x$BUILD" = "xrelease" ; then
45648 COND_BUILD_RELEASE=""
45649 fi
45650
45651 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
45652 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
45653 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
45654 fi
45655
45656 COND_BUILD_RELEASE_UNICODE_0="#"
45657 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
45658 COND_BUILD_RELEASE_UNICODE_0=""
45659 fi
45660
45661 COND_BUILD_RELEASE_UNICODE_1="#"
45662 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
45663 COND_BUILD_RELEASE_UNICODE_1=""
45664 fi
45665
45666 COND_DEBUG_FLAG_1="#"
45667 if test "x$DEBUG_FLAG" = "x1" ; then
45668 COND_DEBUG_FLAG_1=""
45669 fi
45670
45671 COND_DEBUG_INFO_0="#"
45672 if test "x$DEBUG_INFO" = "x0" ; then
45673 COND_DEBUG_INFO_0=""
45674 fi
45675
45676 COND_DEBUG_INFO_1="#"
45677 if test "x$DEBUG_INFO" = "x1" ; then
45678 COND_DEBUG_INFO_1=""
45679 fi
45680
45681 COND_DEPS_TRACKING_0="#"
45682 if test "x$DEPS_TRACKING" = "x0" ; then
45683 COND_DEPS_TRACKING_0=""
45684 fi
45685
45686 COND_DEPS_TRACKING_1="#"
45687 if test "x$DEPS_TRACKING" = "x1" ; then
45688 COND_DEPS_TRACKING_1=""
45689 fi
45690
45691 COND_GCC_PCH_1="#"
45692 if test "x$GCC_PCH" = "x1" ; then
45693 COND_GCC_PCH_1=""
45694 fi
45695
45696 COND_MONOLITHIC_0="#"
45697 if test "x$MONOLITHIC" = "x0" ; then
45698 COND_MONOLITHIC_0=""
45699 fi
45700
45701 COND_MONOLITHIC_0_SHARED_0="#"
45702 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
45703 COND_MONOLITHIC_0_SHARED_0=""
45704 fi
45705
45706 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
45707 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
45708 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
45709 fi
45710
90970d69
DE
45711 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
45712 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45713 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
45714 fi
45715
a848cd7e
SC
45716 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
45717 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45718 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
45719 fi
45720
6671c68b
VZ
45721 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
45722 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45723 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
45724 fi
45725
a848cd7e
SC
45726 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
45727 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
45728 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
45729 fi
45730
ceec2216
RL
45731 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
45732 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45733 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
45734 fi
45735
a848cd7e
SC
45736 COND_MONOLITHIC_0_SHARED_1="#"
45737 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
45738 COND_MONOLITHIC_0_SHARED_1=""
45739 fi
45740
45741 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
45742 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
45743 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
45744 fi
45745
90970d69
DE
45746 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
45747 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45748 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
45749 fi
45750
a848cd7e
SC
45751 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
45752 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45753 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
45754 fi
45755
6671c68b
VZ
45756 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
45757 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45758 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
45759 fi
45760
a848cd7e
SC
45761 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
45762 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
45763 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
45764 fi
45765
ceec2216
RL
45766 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
45767 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45768 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
45769 fi
45770
a848cd7e
SC
45771 COND_MONOLITHIC_0_USE_ODBC_1="#"
45772 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
45773 COND_MONOLITHIC_0_USE_ODBC_1=""
45774 fi
45775
45776 COND_MONOLITHIC_1="#"
45777 if test "x$MONOLITHIC" = "x1" ; then
45778 COND_MONOLITHIC_1=""
45779 fi
45780
45781 COND_MONOLITHIC_1_SHARED_0="#"
45782 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
45783 COND_MONOLITHIC_1_SHARED_0=""
45784 fi
45785
45786 COND_MONOLITHIC_1_SHARED_1="#"
45787 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
45788 COND_MONOLITHIC_1_SHARED_1=""
45789 fi
45790
45791 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
45792 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
45793 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
45794 fi
45795
45796 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
45797 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
45798 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
45799 fi
45800
eb730a0c
JS
45801 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
45802 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45803 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
45804 fi
45805
a848cd7e
SC
45806 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
45807 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45808 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
45809 fi
45810
45811 COND_PLATFORM_MACOSX_1="#"
45812 if test "x$PLATFORM_MACOSX" = "x1" ; then
45813 COND_PLATFORM_MACOSX_1=""
45814 fi
45815
a30f955f
VS
45816 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
45817 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
45818 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
45819 fi
45820
a848cd7e
SC
45821 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
45822 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
45823 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
45824 fi
45825
45826 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
45827 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
45828 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
45829 fi
45830
45831 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45832 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45833 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45834 fi
45835
fc480dc1
DE
45836 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45837 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45838 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45839 fi
45840
1e9e8aba
DE
45841 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45842 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45843 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45844 fi
45845
ebee3cd0
VS
45846 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45847 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45848 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45849 fi
45850
45851 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45852 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45853 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45854 fi
45855
a848cd7e
SC
45856 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45857 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45858 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45859 fi
45860
45861 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45862 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45863 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45864 fi
45865
b48a2016
DE
45866 COND_PLATFORM_MACOS_1="#"
45867 if test "x$PLATFORM_MACOS" = "x1" ; then
45868 COND_PLATFORM_MACOS_1=""
45869 fi
45870
083508af
MW
45871 COND_PLATFORM_MAC_1="#"
45872 if test "x$PLATFORM_MAC" = "x1" ; then
45873 COND_PLATFORM_MAC_1=""
45874 fi
45875
83d8eb47
MW
45876 COND_PLATFORM_MSDOS_1="#"
45877 if test "x$PLATFORM_MSDOS" = "x1" ; then
45878 COND_PLATFORM_MSDOS_1=""
45879 fi
45880
a848cd7e
SC
45881 COND_PLATFORM_OS2_1="#"
45882 if test "x$PLATFORM_OS2" = "x1" ; then
45883 COND_PLATFORM_OS2_1=""
45884 fi
45885
45886 COND_PLATFORM_UNIX_0="#"
45887 if test "x$PLATFORM_UNIX" = "x0" ; then
45888 COND_PLATFORM_UNIX_0=""
45889 fi
45890
45891 COND_PLATFORM_UNIX_1="#"
45892 if test "x$PLATFORM_UNIX" = "x1" ; then
45893 COND_PLATFORM_UNIX_1=""
45894 fi
45895
45896 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45897 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45898 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45899 fi
45900
45901 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45902 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45903 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45904 fi
45905
45906 COND_PLATFORM_WIN32_0="#"
45907 if test "x$PLATFORM_WIN32" = "x0" ; then
45908 COND_PLATFORM_WIN32_0=""
45909 fi
45910
45911 COND_PLATFORM_WIN32_1="#"
45912 if test "x$PLATFORM_WIN32" = "x1" ; then
45913 COND_PLATFORM_WIN32_1=""
45914 fi
45915
45916 COND_SHARED_0="#"
45917 if test "x$SHARED" = "x0" ; then
45918 COND_SHARED_0=""
45919 fi
45920
083508af
MW
45921 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45922 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45923 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45924 fi
45925
45926 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45927 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45928 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45929 fi
45930
45931 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45932 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45933 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45934 fi
45935
a848cd7e
SC
45936 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45937 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45938 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45939 fi
45940
45941 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45942 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45943 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45944 fi
45945
45946 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45947 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45948 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45949 fi
45950
45951 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45952 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45953 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45954 fi
45955
083508af
MW
45956 COND_SHARED_0_USE_XRC_1="#"
45957 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45958 COND_SHARED_0_USE_XRC_1=""
45959 fi
45960
a848cd7e
SC
45961 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45962 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45963 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45964 fi
45965
45966 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45967 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45968 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45969 fi
45970
45971 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45972 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45973 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45974 fi
45975
45976 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45977 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45978 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45979 fi
45980
45981 COND_SHARED_1="#"
45982 if test "x$SHARED" = "x1" ; then
45983 COND_SHARED_1=""
45984 fi
45985
45986 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45987 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45988 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45989 fi
45990
083508af
MW
45991 COND_SHARED_1_USE_XRC_1="#"
45992 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45993 COND_SHARED_1_USE_XRC_1=""
45994 fi
45995
a30f955f
VS
45996 COND_TOOLKIT_="#"
45997 if test "x$TOOLKIT" = "x" ; then
45998 COND_TOOLKIT_=""
45999 fi
46000
a848cd7e
SC
46001 COND_TOOLKIT_COCOA="#"
46002 if test "x$TOOLKIT" = "xCOCOA" ; then
46003 COND_TOOLKIT_COCOA=""
46004 fi
46005
a49baeab
DE
46006 COND_TOOLKIT_COCOA_USE_GUI_1="#"
46007 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
46008 COND_TOOLKIT_COCOA_USE_GUI_1=""
46009 fi
46010
a848cd7e
SC
46011 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
46012 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46013 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
46014 fi
46015
46016 COND_TOOLKIT_GTK="#"
46017 if test "x$TOOLKIT" = "xGTK" ; then
46018 COND_TOOLKIT_GTK=""
46019 fi
46020
46021 COND_TOOLKIT_GTK_USE_GUI_1="#"
46022 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
46023 COND_TOOLKIT_GTK_USE_GUI_1=""
46024 fi
46025
46026 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
46027 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46028 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
46029 fi
46030
46031 COND_TOOLKIT_MAC="#"
46032 if test "x$TOOLKIT" = "xMAC" ; then
46033 COND_TOOLKIT_MAC=""
46034 fi
46035
46036 COND_TOOLKIT_MAC_USE_GUI_1="#"
46037 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
46038 COND_TOOLKIT_MAC_USE_GUI_1=""
46039 fi
46040
46041 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
46042 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46043 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
46044 fi
46045
46046 COND_TOOLKIT_MGL="#"
46047 if test "x$TOOLKIT" = "xMGL" ; then
46048 COND_TOOLKIT_MGL=""
46049 fi
46050
46051 COND_TOOLKIT_MGL_USE_GUI_1="#"
46052 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
46053 COND_TOOLKIT_MGL_USE_GUI_1=""
46054 fi
46055
46056 COND_TOOLKIT_MOTIF="#"
46057 if test "x$TOOLKIT" = "xMOTIF" ; then
46058 COND_TOOLKIT_MOTIF=""
46059 fi
46060
46061 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
46062 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
46063 COND_TOOLKIT_MOTIF_USE_GUI_1=""
46064 fi
46065
46066 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
46067 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46068 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
46069 fi
46070
46071 COND_TOOLKIT_MSW="#"
46072 if test "x$TOOLKIT" = "xMSW" ; then
46073 COND_TOOLKIT_MSW=""
46074 fi
46075
46076 COND_TOOLKIT_MSW_USE_GUI_1="#"
46077 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
46078 COND_TOOLKIT_MSW_USE_GUI_1=""
46079 fi
46080
46081 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
46082 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46083 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
46084 fi
46085
0ee4059d
DE
46086 COND_TOOLKIT_MSW_WXUNIV_0="#"
46087 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
46088 COND_TOOLKIT_MSW_WXUNIV_0=""
46089 fi
46090
a848cd7e
SC
46091 COND_TOOLKIT_PM="#"
46092 if test "x$TOOLKIT" = "xPM" ; then
46093 COND_TOOLKIT_PM=""
46094 fi
46095
46096 COND_TOOLKIT_PM_USE_GUI_1="#"
46097 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
46098 COND_TOOLKIT_PM_USE_GUI_1=""
46099 fi
46100
46101 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
46102 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46103 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
46104 fi
46105
3fd9c298
DE
46106 COND_TOOLKIT_WINCE="#"
46107 if test "x$TOOLKIT" = "xWINCE" ; then
46108 COND_TOOLKIT_WINCE=""
46109 fi
46110
46111 COND_TOOLKIT_WINCE_USE_GUI_1="#"
46112 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
46113 COND_TOOLKIT_WINCE_USE_GUI_1=""
46114 fi
46115
46116 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
46117 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46118 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
46119 fi
46120
0ee4059d
DE
46121 COND_TOOLKIT_WINCE_WXUNIV_0="#"
46122 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
46123 COND_TOOLKIT_WINCE_WXUNIV_0=""
46124 fi
46125
a848cd7e
SC
46126 COND_TOOLKIT_X11="#"
46127 if test "x$TOOLKIT" = "xX11" ; then
46128 COND_TOOLKIT_X11=""
46129 fi
46130
46131 COND_TOOLKIT_X11_USE_GUI_1="#"
46132 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
46133 COND_TOOLKIT_X11_USE_GUI_1=""
46134 fi
46135
46136 COND_UNICODE_1="#"
46137 if test "x$UNICODE" = "x1" ; then
46138 COND_UNICODE_1=""
46139 fi
46140
46141 COND_USE_EXCEPTIONS_0="#"
46142 if test "x$USE_EXCEPTIONS" = "x0" ; then
46143 COND_USE_EXCEPTIONS_0=""
46144 fi
46145
46146 COND_USE_EXCEPTIONS_1="#"
46147 if test "x$USE_EXCEPTIONS" = "x1" ; then
46148 COND_USE_EXCEPTIONS_1=""
46149 fi
46150
46151 COND_USE_GUI_0="#"
46152 if test "x$USE_GUI" = "x0" ; then
46153 COND_USE_GUI_0=""
46154 fi
46155
46156 COND_USE_GUI_1="#"
46157 if test "x$USE_GUI" = "x1" ; then
46158 COND_USE_GUI_1=""
46159 fi
46160
46161 COND_USE_GUI_1_WXUNIV_0="#"
46162 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46163 COND_USE_GUI_1_WXUNIV_0=""
46164 fi
46165
46166 COND_USE_GUI_1_WXUNIV_1="#"
46167 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
46168 COND_USE_GUI_1_WXUNIV_1=""
46169 fi
46170
46171 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
46172 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46173 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
46174 fi
46175
46176 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
46177 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46178 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
46179 fi
46180
46181 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
46182 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46183 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
46184 fi
46185
083508af
MW
46186 COND_USE_ODBC_1="#"
46187 if test "x$USE_ODBC" = "x1" ; then
46188 COND_USE_ODBC_1=""
46189 fi
46190
46191 COND_USE_OPENGL_1="#"
46192 if test "x$USE_OPENGL" = "x1" ; then
46193 COND_USE_OPENGL_1=""
46194 fi
46195
a848cd7e
SC
46196 COND_USE_PLUGINS_0="#"
46197 if test "x$USE_PLUGINS" = "x0" ; then
46198 COND_USE_PLUGINS_0=""
46199 fi
46200
0b78747f
MW
46201 COND_USE_RTTI_0="#"
46202 if test "x$USE_RTTI" = "x0" ; then
46203 COND_USE_RTTI_0=""
46204 fi
46205
46206 COND_USE_RTTI_1="#"
46207 if test "x$USE_RTTI" = "x1" ; then
46208 COND_USE_RTTI_1=""
46209 fi
46210
a848cd7e
SC
46211 COND_USE_SOSYMLINKS_1="#"
46212 if test "x$USE_SOSYMLINKS" = "x1" ; then
46213 COND_USE_SOSYMLINKS_1=""
46214 fi
46215
eb730a0c
JS
46216 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
46217 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
46218 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
46219 fi
46220
a848cd7e
SC
46221 COND_USE_SOVERLINUX_1="#"
46222 if test "x$USE_SOVERLINUX" = "x1" ; then
46223 COND_USE_SOVERLINUX_1=""
46224 fi
46225
46226 COND_USE_SOVERSION_0="#"
46227 if test "x$USE_SOVERSION" = "x0" ; then
46228 COND_USE_SOVERSION_0=""
46229 fi
46230
46231 COND_USE_SOVERSOLARIS_1="#"
46232 if test "x$USE_SOVERSOLARIS" = "x1" ; then
46233 COND_USE_SOVERSOLARIS_1=""
46234 fi
46235
0b78747f
MW
46236 COND_USE_THREADS_0="#"
46237 if test "x$USE_THREADS" = "x0" ; then
46238 COND_USE_THREADS_0=""
46239 fi
46240
46241 COND_USE_THREADS_1="#"
46242 if test "x$USE_THREADS" = "x1" ; then
46243 COND_USE_THREADS_1=""
46244 fi
46245
a13a7f89
RL
46246 COND_USE_XRC_1="#"
46247 if test "x$USE_XRC" = "x1" ; then
46248 COND_USE_XRC_1=""
46249 fi
46250
eb730a0c
JS
46251 COND_WINDOWS_IMPLIB_1="#"
46252 if test "x$WINDOWS_IMPLIB" = "x1" ; then
46253 COND_WINDOWS_IMPLIB_1=""
46254 fi
46255
a848cd7e
SC
46256 COND_WITH_PLUGIN_SDL_1="#"
46257 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
46258 COND_WITH_PLUGIN_SDL_1=""
46259 fi
46260
1e6eb025
VZ
46261 COND_WXUNIV_0="#"
46262 if test "x$WXUNIV" = "x0" ; then
46263 COND_WXUNIV_0=""
46264 fi
46265
a848cd7e
SC
46266 COND_WXUNIV_1="#"
46267 if test "x$WXUNIV" = "x1" ; then
46268 COND_WXUNIV_1=""
46269 fi
46270
46271 COND_WXUSE_EXPAT_BUILTIN="#"
46272 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
46273 COND_WXUSE_EXPAT_BUILTIN=""
46274 fi
46275
46276 COND_WXUSE_LIBJPEG_BUILTIN="#"
46277 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46278 COND_WXUSE_LIBJPEG_BUILTIN=""
46279 fi
46280
46281 COND_WXUSE_LIBPNG_BUILTIN="#"
46282 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46283 COND_WXUSE_LIBPNG_BUILTIN=""
46284 fi
46285
46286 COND_WXUSE_LIBTIFF_BUILTIN="#"
46287 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46288 COND_WXUSE_LIBTIFF_BUILTIN=""
46289 fi
46290
46291 COND_WXUSE_ODBC_BUILTIN="#"
46292 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
46293 COND_WXUSE_ODBC_BUILTIN=""
46294 fi
46295
46296 COND_WXUSE_REGEX_BUILTIN="#"
46297 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
46298 COND_WXUSE_REGEX_BUILTIN=""
46299 fi
46300
46301 COND_WXUSE_ZLIB_BUILTIN="#"
46302 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
46303 COND_WXUSE_ZLIB_BUILTIN=""
46304 fi
46305
46306
46307
810b94f0
MW
46308 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
46309 { { 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
46310echo "$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;}
46311 { (exit 1); exit 1; }; }
46312 fi
46313
2057db16
VS
46314 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
46315 { { 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
46316echo "$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;}
46317 { (exit 1); exit 1; }; }
46318 fi
46319
a848cd7e 46320
ceec2216
RL
46321if test "$wxUSE_SHARED" = "yes"; then
46322
46323 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
46324 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
46325
5b674b9d
DE
46326 case "${host}" in
46327 *-pc-os2_emx | *-pc-os2-emx )
46328 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46329 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46330 cp -p ${srcdir}/src/os2/dllnames.sh .
46331 cp -p ${srcdir}/src/os2/dllar.sh .
46332 ;;
46333 esac
ceec2216
RL
46334else
46335
46336 EXE_LINKER="$CXX -o"
46337
46338fi
69120ee4
VZ
46339if test "$wxUSE_OMF" = "yes"; then
46340 case "${host}" in
46341 *-pc-os2_emx | *-pc-os2-emx )
46342 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
46343 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46344 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46345 ;;
46346 esac
46347fi
a848cd7e 46348
c08ebc62 46349if test $GCC_PCH = 1 ; then
254e8e29 46350 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 46351fi
a848cd7e 46352
2eef8513 46353CPPFLAGS="$CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
46354
46355SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
46356
46357
46358
46359
46360
46361
46362
46363
46364
46365
46366
46367
46368
46369
46370
46371
46372
46373
46374
46375
46376
46377
46378
46379
46380
46381
46382
46383
46384
46385
46386
46387
46388
46389
46390
46391
46392
46393
46394
46395
46396
46397
a848cd7e
SC
46398
46399
46400
46401
46402
46403
46404
46405
46406
46407
46408
46409
46410
46411
46412
46413
46414
46415
ddd14b14 46416
a848cd7e
SC
46417
46418
46419echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46420echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46421set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46422if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46423 echo $ECHO_N "(cached) $ECHO_C" >&6
46424else
46425 cat >conftest.make <<\_ACEOF
46426all:
46427 @echo 'ac_maketemp="$(MAKE)"'
46428_ACEOF
46429# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46430eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46431if test -n "$ac_maketemp"; then
46432 eval ac_cv_prog_make_${ac_make}_set=yes
46433else
46434 eval ac_cv_prog_make_${ac_make}_set=no
46435fi
46436rm -f conftest.make
46437fi
46438if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46439 echo "$as_me:$LINENO: result: yes" >&5
46440echo "${ECHO_T}yes" >&6
46441 SET_MAKE=
46442else
46443 echo "$as_me:$LINENO: result: no" >&5
46444echo "${ECHO_T}no" >&6
46445 SET_MAKE="MAKE=${MAKE-make}"
46446fi
46447
46448
a848cd7e 46449
ceec2216
RL
46450 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
46451
a848cd7e 46452
ceec2216 46453 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 46454
a848cd7e 46455
ceec2216 46456 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 46457
ceec2216
RL
46458
46459 ac_config_files="$ac_config_files version-script Makefile"
46460
46461
46462 ac_config_commands="$ac_config_commands wx-config
46463 "
a848cd7e
SC
46464
46465
9103d280 46466
1c14217d 46467if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
46468if test "$wxUSE_GUI" = "yes"; then
46469 SUBDIRS="samples demos utils contrib"
46470else SUBDIRS="samples utils"
46471fi
46472
46473
46474
46475# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
46476if test "${with_cppunit_prefix+set}" = set; then
46477 withval="$with_cppunit_prefix"
46478 cppunit_config_prefix="$withval"
46479else
46480 cppunit_config_prefix=""
46481fi;
46482
46483# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
46484if test "${with_cppunit_exec_prefix+set}" = set; then
46485 withval="$with_cppunit_exec_prefix"
46486 cppunit_config_exec_prefix="$withval"
46487else
46488 cppunit_config_exec_prefix=""
46489fi;
46490
46491 if test x$cppunit_config_exec_prefix != x ; then
46492 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
46493 if test x${CPPUNIT_CONFIG+set} != xset ; then
46494 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
46495 fi
46496 fi
46497 if test x$cppunit_config_prefix != x ; then
46498 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
46499 if test x${CPPUNIT_CONFIG+set} != xset ; then
46500 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
46501 fi
46502 fi
46503
46504 # Extract the first word of "cppunit-config", so it can be a program name with args.
46505set dummy cppunit-config; ac_word=$2
46506echo "$as_me:$LINENO: checking for $ac_word" >&5
46507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46508if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
46509 echo $ECHO_N "(cached) $ECHO_C" >&6
46510else
46511 case $CPPUNIT_CONFIG in
46512 [\\/]* | ?:[\\/]*)
46513 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
46514 ;;
46515 *)
46516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46517for as_dir in $PATH
46518do
46519 IFS=$as_save_IFS
46520 test -z "$as_dir" && as_dir=.
46521 for ac_exec_ext in '' $ac_executable_extensions; do
46522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46523 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46525 break 2
46526 fi
46527done
46528done
46529
46530 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
46531 ;;
46532esac
46533fi
46534CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
46535
46536if test -n "$CPPUNIT_CONFIG"; then
46537 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
46538echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
46539else
46540 echo "$as_me:$LINENO: result: no" >&5
46541echo "${ECHO_T}no" >&6
46542fi
46543
46544 cppunit_version_min=1.8.0
46545
46546 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
46547echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
46548 no_cppunit=""
46549 if test "$CPPUNIT_CONFIG" = "no" ; then
46550 no_cppunit=yes
46551 else
46552 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
46553 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
46554 cppunit_version=`$CPPUNIT_CONFIG --version`
46555
46556 cppunit_major_version=`echo $cppunit_version | \
46557 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46558 cppunit_minor_version=`echo $cppunit_version | \
46559 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46560 cppunit_micro_version=`echo $cppunit_version | \
46561 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46562
46563 cppunit_major_min=`echo $cppunit_version_min | \
46564 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46565 cppunit_minor_min=`echo $cppunit_version_min | \
46566 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46567 cppunit_micro_min=`echo $cppunit_version_min | \
46568 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46569
46570 cppunit_version_proper=`expr \
46571 $cppunit_major_version \> $cppunit_major_min \| \
46572 $cppunit_major_version \= $cppunit_major_min \& \
46573 $cppunit_minor_version \> $cppunit_minor_min \| \
46574 $cppunit_major_version \= $cppunit_major_min \& \
46575 $cppunit_minor_version \= $cppunit_minor_min \& \
46576 $cppunit_micro_version \>= $cppunit_micro_min `
46577
46578 if test "$cppunit_version_proper" = "1" ; then
46579 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
46580echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
46581 else
46582 echo "$as_me:$LINENO: result: no" >&5
46583echo "${ECHO_T}no" >&6
46584 no_cppunit=yes
46585 fi
46586 fi
46587
46588 if test "x$no_cppunit" = x ; then
c2218763 46589 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
46590 else
46591 CPPUNIT_CFLAGS=""
46592 CPPUNIT_LIBS=""
c2218763 46593 :
a848cd7e
SC
46594 fi
46595
46596
46597
46598
46599
46600for subdir in `echo $SUBDIRS`; do
46601 if test -d ${srcdir}/${subdir} ; then
46602 if test "$wxUSE_GUI" = "yes"; then
46603 if test ${subdir} = "samples"; then
46604 makefiles="samples/Makefile.in $makefiles"
46605 for sample in `echo $SAMPLES_SUBDIRS`; do
46606 if test -d $srcdir/samples/$sample; then
46607 makefiles="samples/$sample/Makefile.in $makefiles"
46608 fi
46609 done
9c112555
MW
46610 else
46611 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
46612 eval "disabled=\$$disabled_var"
46613 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
46614 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
46615 fi
46616 else if test ${subdir} = "samples"; then
46617 makefiles="samples/Makefile.in samples/console/Makefile.in"
46618 elif test ${subdir} = "utils"; then
6537ccf8
VS
46619 makefiles=""
46620 for util in HelpGen tex2rtf ; do
46621 if test -d $srcdir/utils/$util ; then
46622 makefiles="utils/$util/Makefile.in \
46623 utils/$util/src/Makefile.in \
46624 $makefiles"
46625 fi
46626 done
a848cd7e
SC
46627 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
46628 fi
46629 fi
46630
46631 for mkin in $makefiles ; do
46632 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
46633 ac_config_files="$ac_config_files $mk"
46634
46635 done
46636 fi
46637done
1c14217d 46638fi
a848cd7e
SC
46639cat >confcache <<\_ACEOF
46640# This file is a shell script that caches the results of configure
46641# tests run on this system so they can be shared between configure
46642# scripts and configure runs, see configure's option --config-cache.
46643# It is not useful on other systems. If it contains results you don't
46644# want to keep, you may remove or edit it.
46645#
46646# config.status only pays attention to the cache file if you give it
46647# the --recheck option to rerun configure.
46648#
46649# `ac_cv_env_foo' variables (set or unset) will be overridden when
46650# loading this file, other *unset* `ac_cv_foo' will be assigned the
46651# following values.
46652
46653_ACEOF
46654
46655# The following way of writing the cache mishandles newlines in values,
46656# but we know of no workaround that is simple, portable, and efficient.
46657# So, don't put newlines in cache variables' values.
46658# Ultrix sh set writes to stderr and can't be redirected directly,
46659# and sets the high bit in the cache file unless we assign to the vars.
46660{
46661 (set) 2>&1 |
46662 case `(ac_space=' '; set | grep ac_space) 2>&1` in
46663 *ac_space=\ *)
46664 # `set' does not quote correctly, so add quotes (double-quote
46665 # substitution turns \\\\ into \\, and sed turns \\ into \).
46666 sed -n \
ac1cb8d3
VS
46667 "s/'/'\\\\''/g;
46668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
46669 ;;
46670 *)
46671 # `set' quotes correctly as required by POSIX, so do not add quotes.
46672 sed -n \
ac1cb8d3 46673 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
46674 ;;
46675 esac;
46676} |
46677 sed '
46678 t clear
46679 : clear
46680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46681 t end
46682 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46683 : end' >>confcache
46684if diff $cache_file confcache >/dev/null 2>&1; then :; else
46685 if test -w $cache_file; then
46686 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46687 cat confcache >$cache_file
46688 else
46689 echo "not updating unwritable cache $cache_file"
46690 fi
46691fi
46692rm -f confcache
46693
46694test "x$prefix" = xNONE && prefix=$ac_default_prefix
46695# Let make expand exec_prefix.
46696test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46697
46698# VPATH may cause trouble with some makes, so we remove $(srcdir),
46699# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46700# trailing colons and then remove the whole line if VPATH becomes empty
46701# (actually we leave an empty line to preserve line numbers).
46702if test "x$srcdir" = x.; then
ac1cb8d3 46703 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
46704s/:*\$(srcdir):*/:/;
46705s/:*\${srcdir}:*/:/;
46706s/:*@srcdir@:*/:/;
ac1cb8d3 46707s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 46708s/:*$//;
ac1cb8d3 46709s/^[^=]*=[ ]*$//;
a848cd7e
SC
46710}'
46711fi
46712
46713DEFS=-DHAVE_CONFIG_H
46714
46715ac_libobjs=
46716ac_ltlibobjs=
46717for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46718 # 1. Remove the extension, and $U if already installed.
46719 ac_i=`echo "$ac_i" |
ac1cb8d3 46720 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
46721 # 2. Add them.
46722 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46723 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46724done
46725LIBOBJS=$ac_libobjs
46726
46727LTLIBOBJS=$ac_ltlibobjs
46728
46729
46730
46731: ${CONFIG_STATUS=./config.status}
46732ac_clean_files_save=$ac_clean_files
46733ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46734{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46735echo "$as_me: creating $CONFIG_STATUS" >&6;}
46736cat >$CONFIG_STATUS <<_ACEOF
46737#! $SHELL
46738# Generated by $as_me.
46739# Run this file to recreate the current configuration.
46740# Compiler output produced by configure, useful for debugging
46741# configure, is in config.log if it exists.
46742
46743debug=false
46744ac_cs_recheck=false
46745ac_cs_silent=false
46746SHELL=\${CONFIG_SHELL-$SHELL}
46747_ACEOF
46748
46749cat >>$CONFIG_STATUS <<\_ACEOF
46750## --------------------- ##
46751## M4sh Initialization. ##
46752## --------------------- ##
46753
46754# Be Bourne compatible
46755if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46756 emulate sh
46757 NULLCMD=:
46758 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46759 # is contrary to our usage. Disable this feature.
46760 alias -g '${1+"$@"}'='"$@"'
46761elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46762 set -o posix
46763fi
ac1cb8d3 46764DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
46765
46766# Support unset when possible.
ac1cb8d3 46767if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
46768 as_unset=unset
46769else
46770 as_unset=false
46771fi
46772
46773
46774# Work around bugs in pre-3.0 UWIN ksh.
46775$as_unset ENV MAIL MAILPATH
46776PS1='$ '
46777PS2='> '
46778PS4='+ '
46779
46780# NLS nuisances.
46781for as_var in \
46782 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46783 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46784 LC_TELEPHONE LC_TIME
46785do
ac1cb8d3 46786 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
46787 eval $as_var=C; export $as_var
46788 else
46789 $as_unset $as_var
46790 fi
46791done
46792
46793# Required to use basename.
46794if expr a : '\(a\)' >/dev/null 2>&1; then
46795 as_expr=expr
46796else
46797 as_expr=false
46798fi
46799
46800if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46801 as_basename=basename
46802else
46803 as_basename=false
46804fi
46805
46806
46807# Name of the executable.
46808as_me=`$as_basename "$0" ||
46809$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46810 X"$0" : 'X\(//\)$' \| \
46811 X"$0" : 'X\(/\)$' \| \
46812 . : '\(.\)' 2>/dev/null ||
46813echo X/"$0" |
46814 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46815 /^X\/\(\/\/\)$/{ s//\1/; q; }
46816 /^X\/\(\/\).*/{ s//\1/; q; }
46817 s/.*/./; q'`
46818
46819
46820# PATH needs CR, and LINENO needs CR and PATH.
46821# Avoid depending upon Character Ranges.
46822as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46823as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46824as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46825as_cr_digits='0123456789'
46826as_cr_alnum=$as_cr_Letters$as_cr_digits
46827
46828# The user is always right.
46829if test "${PATH_SEPARATOR+set}" != set; then
46830 echo "#! /bin/sh" >conf$$.sh
46831 echo "exit 0" >>conf$$.sh
46832 chmod +x conf$$.sh
46833 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46834 PATH_SEPARATOR=';'
46835 else
46836 PATH_SEPARATOR=:
46837 fi
46838 rm -f conf$$.sh
46839fi
46840
46841
46842 as_lineno_1=$LINENO
46843 as_lineno_2=$LINENO
46844 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46845 test "x$as_lineno_1" != "x$as_lineno_2" &&
46846 test "x$as_lineno_3" = "x$as_lineno_2" || {
46847 # Find who we are. Look in the path if we contain no path at all
46848 # relative or not.
46849 case $0 in
46850 *[\\/]* ) as_myself=$0 ;;
46851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46852for as_dir in $PATH
46853do
46854 IFS=$as_save_IFS
46855 test -z "$as_dir" && as_dir=.
46856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46857done
46858
46859 ;;
46860 esac
46861 # We did not find ourselves, most probably we were run as `sh COMMAND'
46862 # in which case we are not to be found in the path.
46863 if test "x$as_myself" = x; then
46864 as_myself=$0
46865 fi
46866 if test ! -f "$as_myself"; then
46867 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46868echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46869 { (exit 1); exit 1; }; }
46870 fi
46871 case $CONFIG_SHELL in
46872 '')
46873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46874for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46875do
46876 IFS=$as_save_IFS
46877 test -z "$as_dir" && as_dir=.
46878 for as_base in sh bash ksh sh5; do
46879 case $as_dir in
46880 /*)
46881 if ("$as_dir/$as_base" -c '
46882 as_lineno_1=$LINENO
46883 as_lineno_2=$LINENO
46884 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46885 test "x$as_lineno_1" != "x$as_lineno_2" &&
46886 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46887 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46888 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46889 CONFIG_SHELL=$as_dir/$as_base
46890 export CONFIG_SHELL
46891 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46892 fi;;
46893 esac
46894 done
46895done
46896;;
46897 esac
46898
46899 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46900 # uniformly replaced by the line number. The first 'sed' inserts a
46901 # line-number line before each line; the second 'sed' does the real
46902 # work. The second script uses 'N' to pair each line-number line
46903 # with the numbered line, and appends trailing '-' during
46904 # substitution so that $LINENO is not a special case at line end.
46905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46906 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46907 sed '=' <$as_myself |
46908 sed '
46909 N
46910 s,$,-,
46911 : loop
46912 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46913 t loop
46914 s,-$,,
46915 s,^['$as_cr_digits']*\n,,
46916 ' >$as_me.lineno &&
46917 chmod +x $as_me.lineno ||
46918 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46919echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46920 { (exit 1); exit 1; }; }
46921
46922 # Don't try to exec as it changes $[0], causing all sort of problems
46923 # (the dirname of $[0] is not the place where we might find the
46924 # original and so on. Autoconf is especially sensible to this).
46925 . ./$as_me.lineno
46926 # Exit status is that of the last command.
46927 exit
46928}
46929
46930
46931case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46932 *c*,-n*) ECHO_N= ECHO_C='
46933' ECHO_T=' ' ;;
46934 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46935 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46936esac
46937
46938if expr a : '\(a\)' >/dev/null 2>&1; then
46939 as_expr=expr
46940else
46941 as_expr=false
46942fi
46943
46944rm -f conf$$ conf$$.exe conf$$.file
46945echo >conf$$.file
46946if ln -s conf$$.file conf$$ 2>/dev/null; then
46947 # We could just check for DJGPP; but this test a) works b) is more generic
46948 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46949 if test -f conf$$.exe; then
46950 # Don't use ln at all; we don't have any links
46951 as_ln_s='cp -p'
46952 else
46953 as_ln_s='ln -s'
46954 fi
46955elif ln conf$$.file conf$$ 2>/dev/null; then
46956 as_ln_s=ln
46957else
46958 as_ln_s='cp -p'
46959fi
46960rm -f conf$$ conf$$.exe conf$$.file
46961
46962if mkdir -p . 2>/dev/null; then
46963 as_mkdir_p=:
46964else
ac1cb8d3 46965 test -d ./-p && rmdir ./-p
a848cd7e
SC
46966 as_mkdir_p=false
46967fi
46968
46969as_executable_p="test -f"
46970
46971# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 46972as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46973
46974# Sed expression to map a string onto a valid variable name.
ac1cb8d3 46975as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46976
46977
46978# IFS
46979# We need space, tab and new line, in precisely that order.
46980as_nl='
46981'
46982IFS=" $as_nl"
46983
46984# CDPATH.
46985$as_unset CDPATH
46986
46987exec 6>&1
46988
46989# Open the log real soon, to keep \$[0] and so on meaningful, and to
46990# report actual input values of CONFIG_FILES etc. instead of their
46991# values after options handling. Logging --version etc. is OK.
46992exec 5>>config.log
46993{
46994 echo
46995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46996## Running $as_me. ##
46997_ASBOX
46998} >&5
46999cat >&5 <<_CSEOF
47000
dd8df4fc 47001This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 47002generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
47003
47004 CONFIG_FILES = $CONFIG_FILES
47005 CONFIG_HEADERS = $CONFIG_HEADERS
47006 CONFIG_LINKS = $CONFIG_LINKS
47007 CONFIG_COMMANDS = $CONFIG_COMMANDS
47008 $ $0 $@
47009
47010_CSEOF
47011echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
47012echo >&5
47013_ACEOF
47014
47015# Files that config.status was made for.
47016if test -n "$ac_config_files"; then
47017 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
47018fi
47019
47020if test -n "$ac_config_headers"; then
47021 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
47022fi
47023
47024if test -n "$ac_config_links"; then
47025 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
47026fi
47027
47028if test -n "$ac_config_commands"; then
47029 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
47030fi
47031
47032cat >>$CONFIG_STATUS <<\_ACEOF
47033
47034ac_cs_usage="\
47035\`$as_me' instantiates files from templates according to the
47036current configuration.
47037
47038Usage: $0 [OPTIONS] [FILE]...
47039
47040 -h, --help print this help, then exit
47041 -V, --version print version number, then exit
47042 -q, --quiet do not print progress messages
47043 -d, --debug don't remove temporary files
47044 --recheck update $as_me by reconfiguring in the same conditions
47045 --file=FILE[:TEMPLATE]
ac1cb8d3 47046 instantiate the configuration file FILE
a848cd7e 47047 --header=FILE[:TEMPLATE]
ac1cb8d3 47048 instantiate the configuration header FILE
a848cd7e
SC
47049
47050Configuration files:
47051$config_files
47052
47053Configuration headers:
47054$config_headers
47055
47056Configuration commands:
47057$config_commands
47058
47059Report bugs to <bug-autoconf@gnu.org>."
47060_ACEOF
47061
47062cat >>$CONFIG_STATUS <<_ACEOF
47063ac_cs_version="\\
dd8df4fc 47064wxWidgets config.status 2.7.0
ac1cb8d3 47065configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
47066 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
47067
ac1cb8d3 47068Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
47069This config.status script is free software; the Free Software Foundation
47070gives unlimited permission to copy, distribute and modify it."
47071srcdir=$srcdir
47072INSTALL="$INSTALL"
47073_ACEOF
47074
47075cat >>$CONFIG_STATUS <<\_ACEOF
47076# If no file are specified by the user, then we need to provide default
47077# value. By we need to know if files were specified by the user.
47078ac_need_defaults=:
47079while test $# != 0
47080do
47081 case $1 in
47082 --*=*)
47083 ac_option=`expr "x$1" : 'x\([^=]*\)='`
47084 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
47085 ac_shift=:
47086 ;;
47087 -*)
47088 ac_option=$1
47089 ac_optarg=$2
47090 ac_shift=shift
47091 ;;
47092 *) # This is not an option, so the user has probably given explicit
47093 # arguments.
47094 ac_option=$1
47095 ac_need_defaults=false;;
47096 esac
47097
47098 case $ac_option in
47099 # Handling of the options.
47100_ACEOF
47101cat >>$CONFIG_STATUS <<\_ACEOF
47102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47103 ac_cs_recheck=: ;;
47104 --version | --vers* | -V )
47105 echo "$ac_cs_version"; exit 0 ;;
47106 --he | --h)
47107 # Conflict between --help and --header
47108 { { echo "$as_me:$LINENO: error: ambiguous option: $1
47109Try \`$0 --help' for more information." >&5
47110echo "$as_me: error: ambiguous option: $1
47111Try \`$0 --help' for more information." >&2;}
47112 { (exit 1); exit 1; }; };;
47113 --help | --hel | -h )
47114 echo "$ac_cs_usage"; exit 0 ;;
47115 --debug | --d* | -d )
47116 debug=: ;;
47117 --file | --fil | --fi | --f )
47118 $ac_shift
47119 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
47120 ac_need_defaults=false;;
47121 --header | --heade | --head | --hea )
47122 $ac_shift
47123 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
47124 ac_need_defaults=false;;
47125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47127 ac_cs_silent=: ;;
47128
47129 # This is an error.
47130 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
47131Try \`$0 --help' for more information." >&5
47132echo "$as_me: error: unrecognized option: $1
47133Try \`$0 --help' for more information." >&2;}
47134 { (exit 1); exit 1; }; } ;;
47135
47136 *) ac_config_targets="$ac_config_targets $1" ;;
47137
47138 esac
47139 shift
47140done
47141
47142ac_configure_extra_args=
47143
47144if $ac_cs_silent; then
47145 exec 6>/dev/null
47146 ac_configure_extra_args="$ac_configure_extra_args --silent"
47147fi
47148
47149_ACEOF
47150cat >>$CONFIG_STATUS <<_ACEOF
47151if \$ac_cs_recheck; then
47152 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
47153 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47154fi
47155
47156_ACEOF
47157
47158cat >>$CONFIG_STATUS <<_ACEOF
47159#
47160# INIT-COMMANDS section.
47161#
47162
ceec2216
RL
47163 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47164 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47165 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47166 LN_S="${LN_S}"
a848cd7e
SC
47167
47168
47169_ACEOF
47170
47171
47172
47173cat >>$CONFIG_STATUS <<\_ACEOF
47174for ac_config_target in $ac_config_targets
47175do
47176 case "$ac_config_target" in
47177 # Handling of arguments.
ceec2216
RL
47178 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
47179 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
47180 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
47181 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47182 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
47183 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
47184 "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
47185 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47186echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47187 { (exit 1); exit 1; }; };;
47188 esac
47189done
47190
47191# If the user did not use the arguments to specify the items to instantiate,
47192# then the envvar interface is used. Set only those that are not.
47193# We use the long form for the default assignment because of an extremely
47194# bizarre bug on SunOS 4.1.3.
47195if $ac_need_defaults; then
47196 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47197 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47198 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47199fi
47200
47201# Have a temporary directory for convenience. Make it in the build tree
47202# simply because there is no reason to put it here, and in addition,
47203# creating and moving files from /tmp can sometimes cause problems.
47204# Create a temporary directory, and hook for its removal unless debugging.
47205$debug ||
47206{
47207 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
47208 trap '{ (exit 1); exit 1; }' 1 2 13 15
47209}
47210
47211# Create a (secure) tmp directory for tmp files.
47212
47213{
47214 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
47215 test -n "$tmp" && test -d "$tmp"
47216} ||
47217{
47218 tmp=./confstat$$-$RANDOM
47219 (umask 077 && mkdir $tmp)
47220} ||
47221{
47222 echo "$me: cannot create a temporary directory in ." >&2
47223 { (exit 1); exit 1; }
47224}
47225
47226_ACEOF
47227
47228cat >>$CONFIG_STATUS <<_ACEOF
47229
47230#
47231# CONFIG_FILES section.
47232#
47233
47234# No need to generate the scripts if there are no CONFIG_FILES.
47235# This happens for instance when ./config.status config.h
47236if test -n "\$CONFIG_FILES"; then
47237 # Protect against being on the right side of a sed subst in config.status.
47238 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
47239 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
47240s,@SHELL@,$SHELL,;t t
47241s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
47242s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
47243s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
47244s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
47245s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
47246s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
47247s,@exec_prefix@,$exec_prefix,;t t
47248s,@prefix@,$prefix,;t t
47249s,@program_transform_name@,$program_transform_name,;t t
47250s,@bindir@,$bindir,;t t
47251s,@sbindir@,$sbindir,;t t
47252s,@libexecdir@,$libexecdir,;t t
47253s,@datadir@,$datadir,;t t
47254s,@sysconfdir@,$sysconfdir,;t t
47255s,@sharedstatedir@,$sharedstatedir,;t t
47256s,@localstatedir@,$localstatedir,;t t
47257s,@libdir@,$libdir,;t t
47258s,@includedir@,$includedir,;t t
47259s,@oldincludedir@,$oldincludedir,;t t
47260s,@infodir@,$infodir,;t t
47261s,@mandir@,$mandir,;t t
47262s,@build_alias@,$build_alias,;t t
47263s,@host_alias@,$host_alias,;t t
47264s,@target_alias@,$target_alias,;t t
47265s,@DEFS@,$DEFS,;t t
47266s,@ECHO_C@,$ECHO_C,;t t
47267s,@ECHO_N@,$ECHO_N,;t t
47268s,@ECHO_T@,$ECHO_T,;t t
47269s,@LIBS@,$LIBS,;t t
47270s,@build@,$build,;t t
47271s,@build_cpu@,$build_cpu,;t t
47272s,@build_vendor@,$build_vendor,;t t
47273s,@build_os@,$build_os,;t t
47274s,@host@,$host,;t t
47275s,@host_cpu@,$host_cpu,;t t
47276s,@host_vendor@,$host_vendor,;t t
47277s,@host_os@,$host_os,;t t
47278s,@target@,$target,;t t
47279s,@target_cpu@,$target_cpu,;t t
47280s,@target_vendor@,$target_vendor,;t t
47281s,@target_os@,$target_os,;t t
47282s,@CC@,$CC,;t t
47283s,@CFLAGS@,$CFLAGS,;t t
47284s,@LDFLAGS@,$LDFLAGS,;t t
47285s,@CPPFLAGS@,$CPPFLAGS,;t t
47286s,@ac_ct_CC@,$ac_ct_CC,;t t
47287s,@EXEEXT@,$EXEEXT,;t t
47288s,@OBJEXT@,$OBJEXT,;t t
47289s,@CPP@,$CPP,;t t
47290s,@EGREP@,$EGREP,;t t
47291s,@CXX@,$CXX,;t t
47292s,@CXXFLAGS@,$CXXFLAGS,;t t
47293s,@ac_ct_CXX@,$ac_ct_CXX,;t t
47294s,@RANLIB@,$RANLIB,;t t
47295s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
47296s,@AR@,$AR,;t t
8c80d384 47297s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
47298s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
47299s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
47300s,@INSTALL_DATA@,$INSTALL_DATA,;t t
47301s,@STRIP@,$STRIP,;t t
8c80d384
DE
47302s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
47303s,@RESCOMP@,$RESCOMP,;t t
47304s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
47305s,@DLLTOOL@,$DLLTOOL,;t t
47306s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
47307s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
47308s,@LN_S@,$LN_S,;t t
bcaab0f9
MW
47309s,@LNDIR@,$LNDIR,;t t
47310s,@CP_PR@,$CP_PR,;t t
a848cd7e
SC
47311s,@CXXCPP@,$CXXCPP,;t t
47312s,@subdirs@,$subdirs,;t t
47313s,@PKG_CONFIG@,$PKG_CONFIG,;t t
47314s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
47315s,@GTK_LIBS@,$GTK_LIBS,;t t
47316s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
47317s,@X_CFLAGS@,$X_CFLAGS,;t t
47318s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
47319s,@X_LIBS@,$X_LIBS,;t t
47320s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
47321s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
47322s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
47323s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
47324s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
47325s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
47326s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
47327s,@DEREZ@,$DEREZ,;t t
47328s,@SETFILE@,$SETFILE,;t t
47329s,@LIBICONV@,$LIBICONV,;t t
47330s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
47331s,@SDL_CONFIG@,$SDL_CONFIG,;t t
47332s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
47333s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
47334s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
47335s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
47336s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
47337s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
47338s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
47339s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
47340s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
47341s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
47342s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
47343s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
47344s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
47345s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
47346s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
47347s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
47348s,@VENDOR@,$VENDOR,;t t
47349s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
47350s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
47351s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
47352s,@WXUNIV@,$WXUNIV,;t t
47353s,@MONOLITHIC@,$MONOLITHIC,;t t
47354s,@USE_PLUGINS@,$USE_PLUGINS,;t t
47355s,@EXTRALIBS@,$EXTRALIBS,;t t
47356s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
47357s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
47358s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
47359s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
47360s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
47361s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
47362s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 47363s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
47364s,@UNICODE@,$UNICODE,;t t
47365s,@BUILD@,$BUILD,;t t
47366s,@DEBUG_INFO@,$DEBUG_INFO,;t t
47367s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
47368s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
47369s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
47370s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
47371s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
47372s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
47373s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
47374s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
47375s,@SET_MAKE@,$SET_MAKE,;t t
47376s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
47377s,@NM@,$NM,;t t
47378s,@ac_ct_NM@,$ac_ct_NM,;t t
47379s,@INSTALL_DIR@,$INSTALL_DIR,;t t
47380s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
47381s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
47382s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
47383s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
47384s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 47385s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
47386s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
47387s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 47388s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
47389s,@SO_SUFFIX@,$SO_SUFFIX,;t t
47390s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
47391s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
47392s,@LIBPREFIX@,$LIBPREFIX,;t t
47393s,@LIBEXT@,$LIBEXT,;t t
47394s,@DLLPREFIX@,$DLLPREFIX,;t t
47395s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 47396s,@dlldir@,$dlldir,;t t
a848cd7e
SC
47397s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
47398s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
47399s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
47400s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
47401s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
47402s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 47403s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
47404s,@USE_SOVERSION@,$USE_SOVERSION,;t t
47405s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
47406s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 47407s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
47408s,@USE_MACVERSION@,$USE_MACVERSION,;t t
47409s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
47410s,@SONAME_FLAG@,$SONAME_FLAG,;t t
47411s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
47412s,@GCC_PCH@,$GCC_PCH,;t t
47413s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
47414s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
47415s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
47416s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
47417s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
47418s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
47419s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
47420s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
47421s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
47422s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
47423s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
47424s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
47425s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
47426s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
47427s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
47428s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
47429s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
47430s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 47431s,@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 47432s,@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 47433s,@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 47434s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 47435s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47436s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
47437s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 47438s,@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 47439s,@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 47440s,@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 47441s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 47442s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
47443s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
47444s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
47445s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
47446s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
47447s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
47448s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 47449s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
47450s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
47451s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 47452s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
47453s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
47454s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
47455s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 47456s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 47457s,@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
47458s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
47459s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
47460s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
47461s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 47462s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 47463s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 47464s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
47465s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
47466s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
47467s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
47468s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
47469s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
47470s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
47471s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
47472s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
47473s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
47474s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
47475s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
47476s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
47477s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47478s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47479s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 47480s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47481s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
47482s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
47483s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
47484s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
47485s,@COND_SHARED_1@,$COND_SHARED_1,;t t
47486s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 47487s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 47488s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 47489s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 47490s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
47491s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
47492s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
47493s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
47494s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
47495s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
47496s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
47497s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
47498s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
47499s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
47500s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
47501s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
47502s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
47503s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
47504s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
47505s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47506s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
47507s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
47508s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
47509s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
47510s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
47511s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
47512s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47513s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
47514s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
47515s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
47516s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
47517s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
47518s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
47519s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
47520s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
47521s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
47522s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
47523s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47524s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47525s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
47526s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
47527s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 47528s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
47529s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
47530s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 47531s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 47532s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
47533s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
47534s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
47535s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
47536s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
47537s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 47538s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 47539s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 47540s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 47541s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
47542s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
47543s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
47544s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
47545s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
47546s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
47547s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
47548s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
47549s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 47550s,@SHARED@,$SHARED,;t t
a848cd7e
SC
47551s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
47552s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
47553s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
47554s,@USE_GUI@,$USE_GUI,;t t
47555s,@AFMINSTALL@,$AFMINSTALL,;t t
47556s,@WIN32INSTALL@,$WIN32INSTALL,;t t
47557s,@TOOLKIT@,$TOOLKIT,;t t
47558s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 47559s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 47560s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
47561s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
47562s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 47563s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
47564s,@WIDGET_SET@,$WIDGET_SET,;t t
47565s,@WX_RELEASE@,$WX_RELEASE,;t t
47566s,@WX_VERSION@,$WX_VERSION,;t t
47567s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
47568s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
47569s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 47570s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
47571s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
47572s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
47573s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
47574s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 47575s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
47576s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
47577s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 47578s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 47579s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
47580s,@DISTDIR@,$DISTDIR,;t t
47581s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
47582s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
47583s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
47584s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
47585s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
47586s,@RESFLAGS@,$RESFLAGS,;t t
47587s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
47588s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
47589s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
47590s,@LIBWXMACRES@,$LIBWXMACRES,;t t
47591s,@MACRESCOMP@,$MACRESCOMP,;t t
47592s,@MACSETFILE@,$MACSETFILE,;t t
47593s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
47594s,@GCC@,$GCC,;t t
a848cd7e
SC
47595s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
47596s,@LIBOBJS@,$LIBOBJS,;t t
47597s,@LTLIBOBJS@,$LTLIBOBJS,;t t
47598CEOF
47599
47600_ACEOF
47601
47602 cat >>$CONFIG_STATUS <<\_ACEOF
47603 # Split the substitutions into bite-sized pieces for seds with
47604 # small command number limits, like on Digital OSF/1 and HP-UX.
47605 ac_max_sed_lines=48
47606 ac_sed_frag=1 # Number of current file.
47607 ac_beg=1 # First line for current file.
47608 ac_end=$ac_max_sed_lines # Line after last line for current file.
47609 ac_more_lines=:
47610 ac_sed_cmds=
47611 while $ac_more_lines; do
47612 if test $ac_beg -gt 1; then
47613 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47614 else
47615 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47616 fi
47617 if test ! -s $tmp/subs.frag; then
47618 ac_more_lines=false
47619 else
47620 # The purpose of the label and of the branching condition is to
47621 # speed up the sed processing (if there are no `@' at all, there
47622 # is no need to browse any of the substitutions).
47623 # These are the two extra sed commands mentioned above.
47624 (echo ':t
47625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
47626 if test -z "$ac_sed_cmds"; then
ac1cb8d3 47627 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 47628 else
ac1cb8d3 47629 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
47630 fi
47631 ac_sed_frag=`expr $ac_sed_frag + 1`
47632 ac_beg=$ac_end
47633 ac_end=`expr $ac_end + $ac_max_sed_lines`
47634 fi
47635 done
47636 if test -z "$ac_sed_cmds"; then
47637 ac_sed_cmds=cat
47638 fi
47639fi # test -n "$CONFIG_FILES"
47640
47641_ACEOF
47642cat >>$CONFIG_STATUS <<\_ACEOF
47643for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
47644 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47645 case $ac_file in
47646 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47647 cat >$tmp/stdin
47648 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47649 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47650 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47651 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47652 * ) ac_file_in=$ac_file.in ;;
47653 esac
47654
47655 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
47656 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47657$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47658 X"$ac_file" : 'X\(//\)[^/]' \| \
47659 X"$ac_file" : 'X\(//\)$' \| \
47660 X"$ac_file" : 'X\(/\)' \| \
47661 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47662echo X"$ac_file" |
47663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47665 /^X\(\/\/\)$/{ s//\1/; q; }
47666 /^X\(\/\).*/{ s//\1/; q; }
47667 s/.*/./; q'`
47668 { if $as_mkdir_p; then
47669 mkdir -p "$ac_dir"
47670 else
47671 as_dir="$ac_dir"
47672 as_dirs=
47673 while test ! -d "$as_dir"; do
47674 as_dirs="$as_dir $as_dirs"
47675 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47676$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47677 X"$as_dir" : 'X\(//\)[^/]' \| \
47678 X"$as_dir" : 'X\(//\)$' \| \
47679 X"$as_dir" : 'X\(/\)' \| \
47680 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47681echo X"$as_dir" |
47682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47684 /^X\(\/\/\)$/{ s//\1/; q; }
47685 /^X\(\/\).*/{ s//\1/; q; }
47686 s/.*/./; q'`
47687 done
47688 test ! -n "$as_dirs" || mkdir $as_dirs
47689 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47690echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47691 { (exit 1); exit 1; }; }; }
47692
47693 ac_builddir=.
47694
47695if test "$ac_dir" != .; then
47696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47697 # A "../" for each directory in $ac_dir_suffix.
47698 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47699else
47700 ac_dir_suffix= ac_top_builddir=
47701fi
47702
47703case $srcdir in
47704 .) # No --srcdir option. We are building in place.
47705 ac_srcdir=.
47706 if test -z "$ac_top_builddir"; then
47707 ac_top_srcdir=.
47708 else
47709 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47710 fi ;;
47711 [\\/]* | ?:[\\/]* ) # Absolute path.
47712 ac_srcdir=$srcdir$ac_dir_suffix;
47713 ac_top_srcdir=$srcdir ;;
47714 *) # Relative path.
47715 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47716 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47717esac
ac1cb8d3
VS
47718
47719# Do not use `cd foo && pwd` to compute absolute paths, because
47720# the directories may not exist.
47721case `pwd` in
47722.) ac_abs_builddir="$ac_dir";;
47723*)
47724 case "$ac_dir" in
47725 .) ac_abs_builddir=`pwd`;;
47726 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47727 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47728 esac;;
47729esac
47730case $ac_abs_builddir in
47731.) ac_abs_top_builddir=${ac_top_builddir}.;;
47732*)
47733 case ${ac_top_builddir}. in
47734 .) ac_abs_top_builddir=$ac_abs_builddir;;
47735 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47736 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47737 esac;;
47738esac
47739case $ac_abs_builddir in
47740.) ac_abs_srcdir=$ac_srcdir;;
47741*)
47742 case $ac_srcdir in
47743 .) ac_abs_srcdir=$ac_abs_builddir;;
47744 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47745 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47746 esac;;
47747esac
47748case $ac_abs_builddir in
47749.) ac_abs_top_srcdir=$ac_top_srcdir;;
47750*)
47751 case $ac_top_srcdir in
47752 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47753 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47754 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47755 esac;;
47756esac
a848cd7e
SC
47757
47758
47759 case $INSTALL in
47760 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47761 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47762 esac
47763
a848cd7e
SC
47764 # Let's still pretend it is `configure' which instantiates (i.e., don't
47765 # use $as_me), people would be surprised to read:
47766 # /* config.h. Generated by config.status. */
47767 if test x"$ac_file" = x-; then
47768 configure_input=
47769 else
47770 configure_input="$ac_file. "
47771 fi
47772 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 47773 sed 's,.*/,,'` by configure."
a848cd7e
SC
47774
47775 # First look for the input files in the build tree, otherwise in the
47776 # src tree.
47777 ac_file_inputs=`IFS=:
47778 for f in $ac_file_in; do
47779 case $f in
47780 -) echo $tmp/stdin ;;
47781 [\\/$]*)
ac1cb8d3
VS
47782 # Absolute (can't be DOS-style, as IFS=:)
47783 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47784echo "$as_me: error: cannot find input file: $f" >&2;}
47785 { (exit 1); exit 1; }; }
ac1cb8d3 47786 echo "$f";;
a848cd7e 47787 *) # Relative
ac1cb8d3
VS
47788 if test -f "$f"; then
47789 # Build tree
47790 echo "$f"
47791 elif test -f "$srcdir/$f"; then
47792 # Source tree
47793 echo "$srcdir/$f"
47794 else
47795 # /dev/null tree
47796 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47797echo "$as_me: error: cannot find input file: $f" >&2;}
47798 { (exit 1); exit 1; }; }
ac1cb8d3 47799 fi;;
a848cd7e
SC
47800 esac
47801 done` || { (exit 1); exit 1; }
0093c2fc
VZ
47802
47803 if test x"$ac_file" != x-; then
47804 { echo "$as_me:$LINENO: creating $ac_file" >&5
47805echo "$as_me: creating $ac_file" >&6;}
47806 rm -f "$ac_file"
47807 fi
a848cd7e
SC
47808_ACEOF
47809cat >>$CONFIG_STATUS <<_ACEOF
47810 sed "$ac_vpsub
47811$extrasub
47812_ACEOF
47813cat >>$CONFIG_STATUS <<\_ACEOF
47814:t
47815/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47816s,@configure_input@,$configure_input,;t t
47817s,@srcdir@,$ac_srcdir,;t t
47818s,@abs_srcdir@,$ac_abs_srcdir,;t t
47819s,@top_srcdir@,$ac_top_srcdir,;t t
47820s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47821s,@builddir@,$ac_builddir,;t t
47822s,@abs_builddir@,$ac_abs_builddir,;t t
47823s,@top_builddir@,$ac_top_builddir,;t t
47824s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47825s,@INSTALL@,$ac_INSTALL,;t t
47826" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47827 rm -f $tmp/stdin
47828 if test x"$ac_file" != x-; then
47829 mv $tmp/out $ac_file
47830 else
47831 cat $tmp/out
47832 rm -f $tmp/out
47833 fi
47834
ceec2216
RL
47835 # Run the commands associated with the file.
47836 case $ac_file in
47837 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
47838 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
47839 esac
a848cd7e
SC
47840done
47841_ACEOF
47842cat >>$CONFIG_STATUS <<\_ACEOF
47843
47844#
47845# CONFIG_HEADER section.
47846#
47847
47848# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47849# NAME is the cpp macro being defined and VALUE is the value it is being given.
47850#
47851# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47852ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47853ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47854ac_dC=' '
47855ac_dD=',;t'
47856# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47857ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47858ac_uB='$,\1#\2define\3'
47859ac_uC=' '
47860ac_uD=',;t'
47861
47862for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47863 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47864 case $ac_file in
47865 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47866 cat >$tmp/stdin
47867 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47868 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47869 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47870 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47871 * ) ac_file_in=$ac_file.in ;;
47872 esac
47873
47874 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47875echo "$as_me: creating $ac_file" >&6;}
47876
47877 # First look for the input files in the build tree, otherwise in the
47878 # src tree.
47879 ac_file_inputs=`IFS=:
47880 for f in $ac_file_in; do
47881 case $f in
47882 -) echo $tmp/stdin ;;
47883 [\\/$]*)
ac1cb8d3
VS
47884 # Absolute (can't be DOS-style, as IFS=:)
47885 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47886echo "$as_me: error: cannot find input file: $f" >&2;}
47887 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47888 # Do quote $f, to prevent DOS paths from being IFS'd.
47889 echo "$f";;
a848cd7e 47890 *) # Relative
ac1cb8d3
VS
47891 if test -f "$f"; then
47892 # Build tree
47893 echo "$f"
47894 elif test -f "$srcdir/$f"; then
47895 # Source tree
47896 echo "$srcdir/$f"
47897 else
47898 # /dev/null tree
47899 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47900echo "$as_me: error: cannot find input file: $f" >&2;}
47901 { (exit 1); exit 1; }; }
ac1cb8d3 47902 fi;;
a848cd7e
SC
47903 esac
47904 done` || { (exit 1); exit 1; }
47905 # Remove the trailing spaces.
ac1cb8d3 47906 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47907
47908_ACEOF
47909
47910# Transform confdefs.h into two sed scripts, `conftest.defines' and
47911# `conftest.undefs', that substitutes the proper values into
47912# config.h.in to produce config.h. The first handles `#define'
47913# templates, and the second `#undef' templates.
47914# And first: Protect against being on the right side of a sed subst in
47915# config.status. Protect against being in an unquoted here document
47916# in config.status.
47917rm -f conftest.defines conftest.undefs
47918# Using a here document instead of a string reduces the quoting nightmare.
47919# Putting comments in sed scripts is not portable.
47920#
47921# `end' is used to avoid that the second main sed command (meant for
47922# 0-ary CPP macros) applies to n-ary macro definitions.
47923# See the Autoconf documentation for `clear'.
47924cat >confdef2sed.sed <<\_ACEOF
47925s/[\\&,]/\\&/g
47926s,[\\$`],\\&,g
47927t clear
47928: clear
ac1cb8d3 47929s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47930t end
ac1cb8d3 47931s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47932: end
47933_ACEOF
47934# If some macros were called several times there might be several times
47935# the same #defines, which is useless. Nevertheless, we may not want to
47936# sort them, since we want the *last* AC-DEFINE to be honored.
47937uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47938sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47939rm -f confdef2sed.sed
47940
47941# This sed command replaces #undef with comments. This is necessary, for
47942# example, in the case of _POSIX_SOURCE, which is predefined and required
47943# on some systems where configure will not decide to define it.
47944cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47945s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47946_ACEOF
47947
47948# Break up conftest.defines because some shells have a limit on the size
47949# of here documents, and old seds have small limits too (100 cmds).
47950echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47951echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
47952echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47953echo ' :' >>$CONFIG_STATUS
47954rm -f conftest.tail
47955while grep . conftest.defines >/dev/null
47956do
47957 # Write a limited-size here document to $tmp/defines.sed.
47958 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47959 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 47960 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
47961 # Work around the forget-to-reset-the-flag bug.
47962 echo 't clr' >>$CONFIG_STATUS
47963 echo ': clr' >>$CONFIG_STATUS
47964 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47965 echo 'CEOF
47966 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47967 rm -f $tmp/in
47968 mv $tmp/out $tmp/in
47969' >>$CONFIG_STATUS
47970 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47971 rm -f conftest.defines
47972 mv conftest.tail conftest.defines
47973done
47974rm -f conftest.defines
47975echo ' fi # grep' >>$CONFIG_STATUS
47976echo >>$CONFIG_STATUS
47977
47978# Break up conftest.undefs because some shells have a limit on the size
47979# of here documents, and old seds have small limits too (100 cmds).
47980echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47981rm -f conftest.tail
47982while grep . conftest.undefs >/dev/null
47983do
47984 # Write a limited-size here document to $tmp/undefs.sed.
47985 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47986 # Speed up: don't consider the non `#undef'
ac1cb8d3 47987 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
47988 # Work around the forget-to-reset-the-flag bug.
47989 echo 't clr' >>$CONFIG_STATUS
47990 echo ': clr' >>$CONFIG_STATUS
47991 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47992 echo 'CEOF
47993 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47994 rm -f $tmp/in
47995 mv $tmp/out $tmp/in
47996' >>$CONFIG_STATUS
47997 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47998 rm -f conftest.undefs
47999 mv conftest.tail conftest.undefs
48000done
48001rm -f conftest.undefs
48002
48003cat >>$CONFIG_STATUS <<\_ACEOF
48004 # Let's still pretend it is `configure' which instantiates (i.e., don't
48005 # use $as_me), people would be surprised to read:
48006 # /* config.h. Generated by config.status. */
48007 if test x"$ac_file" = x-; then
48008 echo "/* Generated by configure. */" >$tmp/config.h
48009 else
48010 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
48011 fi
48012 cat $tmp/in >>$tmp/config.h
48013 rm -f $tmp/in
48014 if test x"$ac_file" != x-; then
48015 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
48016 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48017echo "$as_me: $ac_file is unchanged" >&6;}
48018 else
48019 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
48020$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48021 X"$ac_file" : 'X\(//\)[^/]' \| \
48022 X"$ac_file" : 'X\(//\)$' \| \
48023 X"$ac_file" : 'X\(/\)' \| \
48024 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48025echo X"$ac_file" |
48026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48028 /^X\(\/\/\)$/{ s//\1/; q; }
48029 /^X\(\/\).*/{ s//\1/; q; }
48030 s/.*/./; q'`
48031 { if $as_mkdir_p; then
48032 mkdir -p "$ac_dir"
48033 else
48034 as_dir="$ac_dir"
48035 as_dirs=
48036 while test ! -d "$as_dir"; do
48037 as_dirs="$as_dir $as_dirs"
48038 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48039$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48040 X"$as_dir" : 'X\(//\)[^/]' \| \
48041 X"$as_dir" : 'X\(//\)$' \| \
48042 X"$as_dir" : 'X\(/\)' \| \
48043 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48044echo X"$as_dir" |
48045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48047 /^X\(\/\/\)$/{ s//\1/; q; }
48048 /^X\(\/\).*/{ s//\1/; q; }
48049 s/.*/./; q'`
48050 done
48051 test ! -n "$as_dirs" || mkdir $as_dirs
48052 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48053echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48054 { (exit 1); exit 1; }; }; }
48055
48056 rm -f $ac_file
48057 mv $tmp/config.h $ac_file
48058 fi
48059 else
48060 cat $tmp/config.h
48061 rm -f $tmp/config.h
48062 fi
48063done
48064_ACEOF
48065cat >>$CONFIG_STATUS <<\_ACEOF
48066
48067#
48068# CONFIG_COMMANDS section.
48069#
48070for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
48071 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
48072 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
48073 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
48074$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48075 X"$ac_dest" : 'X\(//\)[^/]' \| \
48076 X"$ac_dest" : 'X\(//\)$' \| \
48077 X"$ac_dest" : 'X\(/\)' \| \
48078 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48079echo X"$ac_dest" |
48080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48082 /^X\(\/\/\)$/{ s//\1/; q; }
48083 /^X\(\/\).*/{ s//\1/; q; }
48084 s/.*/./; q'`
ac1cb8d3
VS
48085 { if $as_mkdir_p; then
48086 mkdir -p "$ac_dir"
48087 else
48088 as_dir="$ac_dir"
48089 as_dirs=
48090 while test ! -d "$as_dir"; do
48091 as_dirs="$as_dir $as_dirs"
48092 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48094 X"$as_dir" : 'X\(//\)[^/]' \| \
48095 X"$as_dir" : 'X\(//\)$' \| \
48096 X"$as_dir" : 'X\(/\)' \| \
48097 . : '\(.\)' 2>/dev/null ||
48098echo X"$as_dir" |
48099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48101 /^X\(\/\/\)$/{ s//\1/; q; }
48102 /^X\(\/\).*/{ s//\1/; q; }
48103 s/.*/./; q'`
48104 done
48105 test ! -n "$as_dirs" || mkdir $as_dirs
48106 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48107echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48108 { (exit 1); exit 1; }; }; }
48109
a848cd7e
SC
48110 ac_builddir=.
48111
48112if test "$ac_dir" != .; then
48113 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48114 # A "../" for each directory in $ac_dir_suffix.
48115 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48116else
48117 ac_dir_suffix= ac_top_builddir=
48118fi
48119
48120case $srcdir in
48121 .) # No --srcdir option. We are building in place.
48122 ac_srcdir=.
48123 if test -z "$ac_top_builddir"; then
48124 ac_top_srcdir=.
48125 else
48126 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48127 fi ;;
48128 [\\/]* | ?:[\\/]* ) # Absolute path.
48129 ac_srcdir=$srcdir$ac_dir_suffix;
48130 ac_top_srcdir=$srcdir ;;
48131 *) # Relative path.
48132 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48133 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48134esac
ac1cb8d3
VS
48135
48136# Do not use `cd foo && pwd` to compute absolute paths, because
48137# the directories may not exist.
48138case `pwd` in
48139.) ac_abs_builddir="$ac_dir";;
48140*)
48141 case "$ac_dir" in
48142 .) ac_abs_builddir=`pwd`;;
48143 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48144 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48145 esac;;
48146esac
48147case $ac_abs_builddir in
48148.) ac_abs_top_builddir=${ac_top_builddir}.;;
48149*)
48150 case ${ac_top_builddir}. in
48151 .) ac_abs_top_builddir=$ac_abs_builddir;;
48152 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48153 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48154 esac;;
48155esac
48156case $ac_abs_builddir in
48157.) ac_abs_srcdir=$ac_srcdir;;
48158*)
48159 case $ac_srcdir in
48160 .) ac_abs_srcdir=$ac_abs_builddir;;
48161 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48162 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48163 esac;;
48164esac
48165case $ac_abs_builddir in
48166.) ac_abs_top_srcdir=$ac_top_srcdir;;
48167*)
48168 case $ac_top_srcdir in
48169 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48170 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48171 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48172 esac;;
48173esac
a848cd7e
SC
48174
48175
48176 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
48177echo "$as_me: executing $ac_dest commands" >&6;}
48178 case $ac_dest in
ceec2216
RL
48179 wx-config ) rm -f wx-config
48180 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
48181 ;;
a848cd7e
SC
48182 esac
48183done
48184_ACEOF
48185
48186cat >>$CONFIG_STATUS <<\_ACEOF
48187
48188{ (exit 0); exit 0; }
48189_ACEOF
48190chmod +x $CONFIG_STATUS
48191ac_clean_files=$ac_clean_files_save
48192
48193
48194# configure is writing to config.log, and then calls config.status.
48195# config.status does its own redirection, appending to config.log.
48196# Unfortunately, on DOS this fails, as config.log is still kept open
48197# by configure, so config.status won't be able to write to it; its
48198# output is simply discarded. So we exec the FD to /dev/null,
48199# effectively closing config.log, so it can be properly (re)opened and
48200# appended to by config.status. When coming back to configure, we
48201# need to make the FD available again.
48202if test "$no_create" != yes; then
48203 ac_cs_success=:
48204 ac_config_status_args=
48205 test "$silent" = yes &&
48206 ac_config_status_args="$ac_config_status_args --quiet"
48207 exec 5>/dev/null
48208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48209 exec 5>>config.log
48210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48211 # would make configure fail if this is the last instruction.
48212 $ac_cs_success || { (exit 1); exit 1; }
48213fi
48214
48215#
48216# CONFIG_SUBDIRS section.
48217#
48218if test "$no_recursion" != yes; then
48219
48220 # Remove --cache-file and --srcdir arguments so they do not pile up.
48221 ac_sub_configure_args=
48222 ac_prev=
48223 for ac_arg in $ac_configure_args; do
48224 if test -n "$ac_prev"; then
48225 ac_prev=
48226 continue
48227 fi
48228 case $ac_arg in
48229 -cache-file | --cache-file | --cache-fil | --cache-fi \
48230 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48231 ac_prev=cache_file ;;
48232 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48233 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48234 | --c=*)
48235 ;;
48236 --config-cache | -C)
48237 ;;
48238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48239 ac_prev=srcdir ;;
48240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48241 ;;
48242 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48243 ac_prev=prefix ;;
48244 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48245 ;;
48246 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
48247 esac
48248 done
48249
48250 # Always prepend --prefix to ensure using the same prefix
48251 # in subdir configurations.
48252 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
48253
48254 ac_popdir=`pwd`
48255 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48256
48257 # Do not complain, so a configure script can configure whichever
48258 # parts of a large source tree are present.
48259 test -d $srcdir/$ac_dir || continue
48260
48261 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
48262echo "$as_me: configuring in $ac_dir" >&6;}
48263 { if $as_mkdir_p; then
48264 mkdir -p "$ac_dir"
48265 else
48266 as_dir="$ac_dir"
48267 as_dirs=
48268 while test ! -d "$as_dir"; do
48269 as_dirs="$as_dir $as_dirs"
48270 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48271$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48272 X"$as_dir" : 'X\(//\)[^/]' \| \
48273 X"$as_dir" : 'X\(//\)$' \| \
48274 X"$as_dir" : 'X\(/\)' \| \
48275 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48276echo X"$as_dir" |
48277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48279 /^X\(\/\/\)$/{ s//\1/; q; }
48280 /^X\(\/\).*/{ s//\1/; q; }
48281 s/.*/./; q'`
48282 done
48283 test ! -n "$as_dirs" || mkdir $as_dirs
48284 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48285echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48286 { (exit 1); exit 1; }; }; }
48287
48288 ac_builddir=.
48289
48290if test "$ac_dir" != .; then
48291 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48292 # A "../" for each directory in $ac_dir_suffix.
48293 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48294else
48295 ac_dir_suffix= ac_top_builddir=
48296fi
48297
48298case $srcdir in
48299 .) # No --srcdir option. We are building in place.
48300 ac_srcdir=.
48301 if test -z "$ac_top_builddir"; then
48302 ac_top_srcdir=.
48303 else
48304 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48305 fi ;;
48306 [\\/]* | ?:[\\/]* ) # Absolute path.
48307 ac_srcdir=$srcdir$ac_dir_suffix;
48308 ac_top_srcdir=$srcdir ;;
48309 *) # Relative path.
48310 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48311 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48312esac
ac1cb8d3
VS
48313
48314# Do not use `cd foo && pwd` to compute absolute paths, because
48315# the directories may not exist.
48316case `pwd` in
48317.) ac_abs_builddir="$ac_dir";;
48318*)
48319 case "$ac_dir" in
48320 .) ac_abs_builddir=`pwd`;;
48321 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48322 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48323 esac;;
48324esac
48325case $ac_abs_builddir in
48326.) ac_abs_top_builddir=${ac_top_builddir}.;;
48327*)
48328 case ${ac_top_builddir}. in
48329 .) ac_abs_top_builddir=$ac_abs_builddir;;
48330 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48331 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48332 esac;;
48333esac
48334case $ac_abs_builddir in
48335.) ac_abs_srcdir=$ac_srcdir;;
48336*)
48337 case $ac_srcdir in
48338 .) ac_abs_srcdir=$ac_abs_builddir;;
48339 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48340 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48341 esac;;
48342esac
48343case $ac_abs_builddir in
48344.) ac_abs_top_srcdir=$ac_top_srcdir;;
48345*)
48346 case $ac_top_srcdir in
48347 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48348 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48349 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48350 esac;;
48351esac
a848cd7e
SC
48352
48353
48354 cd $ac_dir
48355
48356 # Check for guested configure; otherwise get Cygnus style configure.
48357 if test -f $ac_srcdir/configure.gnu; then
48358 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
48359 elif test -f $ac_srcdir/configure; then
48360 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
48361 elif test -f $ac_srcdir/configure.in; then
48362 ac_sub_configure=$ac_configure
48363 else
48364 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48365echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48366 ac_sub_configure=
48367 fi
48368
48369 # The recursion is here.
48370 if test -n "$ac_sub_configure"; then
48371 # Make the cache file name correct relative to the subdirectory.
48372 case $cache_file in
48373 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48374 *) # Relative path.
ac1cb8d3 48375 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
48376 esac
48377
48378 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48379echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48380 # The eval makes quoting arguments work.
48381 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
48382 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
48383 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
48384echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48385 { (exit 1); exit 1; }; }
48386 fi
48387
0093c2fc 48388 cd "$ac_popdir"
a848cd7e
SC
48389 done
48390fi
48391
48392
48393echo
77ffb593 48394echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 48395echo ""
4d4ff94c 48396echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 48397echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 48398
77ffb593
JS
48399echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
48400echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
48401echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 48402
77ffb593 48403echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
48404echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
48405echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 48406
77ffb593 48407echo " Which libraries should wxWidgets use?"
a848cd7e
SC
48408echo " jpeg ${wxUSE_LIBJPEG-none}"
48409echo " png ${wxUSE_LIBPNG-none}"
48410echo " regex ${wxUSE_REGEX}"
48411echo " tiff ${wxUSE_LIBTIFF-none}"
48412if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
48413echo " xpm ${wxUSE_LIBXPM-none}"
48414fi
48415echo " zlib ${wxUSE_ZLIB}"
48416echo " odbc ${wxUSE_ODBC}"
48417echo " expat ${wxUSE_EXPAT}"
48418echo " libmspack ${wxUSE_LIBMSPACK}"
48419echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 48420echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
48421
48422echo ""
48423