]> git.saurik.com Git - wxWidgets.git/blame - configure
Committing in .
[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"
0ee4059d 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 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
14649
2113bc77 14650if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14651 CXXFLAGS="$CXXFLAGS -qunique"
14652fi
14653
4d7ec9f1
DE
14654case "${host}" in
14655 powerpc-*-darwin* )
14656 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14657echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14658 cat >conftest.$ac_ext <<_ACEOF
14659/* confdefs.h. */
14660_ACEOF
14661cat confdefs.h >>conftest.$ac_ext
14662cat >>conftest.$ac_ext <<_ACEOF
14663/* end confdefs.h. */
14664
14665int
14666main ()
14667{
14668#ifndef __POWERPC__
14669 choke me for lack of PowerPC
14670#endif
14671
14672 ;
14673 return 0;
14674}
14675_ACEOF
14676rm -f conftest.$ac_objext
14677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
0093c2fc 14685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687 (eval $ac_try) 2>&5
14688 ac_status=$?
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; } &&
14691 { ac_try='test -s conftest.$ac_objext'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 echo "$as_me:$LINENO: result: yes" >&5
14698echo "${ECHO_T}yes" >&6
14699else
14700 echo "$as_me: failed program was:" >&5
14701sed 's/^/| /' conftest.$ac_ext >&5
14702
14703echo "$as_me:$LINENO: result: no" >&5
14704echo "${ECHO_T}no" >&6
14705 cat >>confdefs.h <<\_ACEOF
14706#define __POWERPC__ 1
14707_ACEOF
14708
14709
14710fi
14711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14712 ;;
14713esac
14714
14715case "${host}" in
14716 *-*-darwin* )
4d7ec9f1
DE
14717 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14718echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14719 cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
14724/* end confdefs.h. */
14725#include <CoreFoundation/CFBase.h>
14726
14727int
14728main ()
14729{
14730
14731 ;
14732 return 0;
14733}
14734_ACEOF
14735rm -f conftest.$ac_objext
14736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737 (eval $ac_compile) 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
0093c2fc 14744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; } &&
14750 { ac_try='test -s conftest.$ac_objext'
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14756 echo "$as_me:$LINENO: result: yes" >&5
14757echo "${ECHO_T}yes" >&6
14758else
14759 echo "$as_me: failed program was:" >&5
14760sed 's/^/| /' conftest.$ac_ext >&5
14761
14762echo "$as_me:$LINENO: result: no" >&5
14763echo "${ECHO_T}no" >&6
14764 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14765echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14766 cat >conftest.$ac_ext <<_ACEOF
14767/* confdefs.h. */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h. */
14772#define __CF_USE_FRAMEWORK_INCLUDES__
14773#include <CoreFoundation/CFBase.h>
14774
14775int
14776main ()
14777{
14778
14779 ;
14780 return 0;
14781}
14782_ACEOF
14783rm -f conftest.$ac_objext
14784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785 (eval $ac_compile) 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
0093c2fc 14792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; } &&
14798 { ac_try='test -s conftest.$ac_objext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 echo "$as_me:$LINENO: result: yes" >&5
14805echo "${ECHO_T}yes" >&6
14806 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14807else
14808 echo "$as_me: failed program was:" >&5
14809sed 's/^/| /' conftest.$ac_ext >&5
14810
14811{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14812See \`config.log' for more details." >&5
14813echo "$as_me: error: no. CoreFoundation not available.
14814See \`config.log' for more details." >&2;}
14815 { (exit 1); exit 1; }; }
14816
14817fi
14818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14819
14820
14821fi
14822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823 ;;
14824esac
14825
a848cd7e
SC
14826case "${host}" in
14827 *-pc-os2_emx | *-pc-os2-emx )
14828 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14829 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14830echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14831if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14833else
14834 ac_check_lib_save_LIBS=$LIBS
14835LIBS="-lcExt $LIBS"
14836cat >conftest.$ac_ext <<_ACEOF
14837/* confdefs.h. */
14838_ACEOF
14839cat confdefs.h >>conftest.$ac_ext
14840cat >>conftest.$ac_ext <<_ACEOF
14841/* end confdefs.h. */
14842
14843/* Override any gcc2 internal prototype to avoid an error. */
14844#ifdef __cplusplus
14845extern "C"
14846#endif
14847/* We use char because int might match the return type of a gcc2
14848 builtin and then its argument prototype would still apply. */
14849char drand48 ();
14850int
14851main ()
14852{
14853drand48 ();
14854 ;
14855 return 0;
14856}
14857_ACEOF
14858rm -f conftest.$ac_objext conftest$ac_exeext
14859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14860 (eval $ac_link) 2>conftest.er1
a848cd7e 14861 ac_status=$?
ac1cb8d3
VS
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
a848cd7e
SC
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
0093c2fc 14867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_cv_lib_cExt_drand48=yes
14880else
14881 echo "$as_me: failed program was:" >&5
14882sed 's/^/| /' conftest.$ac_ext >&5
14883
14884ac_cv_lib_cExt_drand48=no
14885fi
ac1cb8d3
VS
14886rm -f conftest.err conftest.$ac_objext \
14887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14888LIBS=$ac_check_lib_save_LIBS
14889fi
14890echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14891echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14892if test $ac_cv_lib_cExt_drand48 = yes; then
14893 LIBS="$LIBS -lcExt"
14894fi
14895
14896 else
14897 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14898 fi
69120ee4
VZ
14899 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14900echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14901if test "${wx_cv_gccversion+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903else
14904
391a765e
VS
14905 if test "$cross_compiling" = yes; then
14906 wx_cv_gccversion="EMX2"
14907
14908else
14909 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14910/* confdefs.h. */
14911_ACEOF
14912cat confdefs.h >>conftest.$ac_ext
14913cat >>conftest.$ac_ext <<_ACEOF
14914/* end confdefs.h. */
14915
391a765e 14916 #include <stdio.h>
a848cd7e 14917
391a765e
VS
14918 int main()
14919 {
14920 FILE *f=fopen("conftestval", "w");
14921 if (!f) exit(1);
14922 fprintf(f,
a848cd7e 14923 #if (__GNUC__ < 3)
391a765e
VS
14924 "EMX2"
14925 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14926 "EMX3"
14927 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14928 "Innotek5"
14929 #else
14930 "Innotek6"
a848cd7e 14931 #endif
391a765e
VS
14932 );
14933 exit(0);
14934 }
a848cd7e 14935
a848cd7e 14936_ACEOF
391a765e
VS
14937rm -f conftest$ac_exeext
14938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14939 (eval $ac_link) 2>&5
ac1cb8d3
VS
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
391a765e 14948 wx_cv_gccversion=`cat conftestval`
a848cd7e 14949else
391a765e
VS
14950 echo "$as_me: program exited with status $ac_status" >&5
14951echo "$as_me: failed program was:" >&5
a848cd7e
SC
14952sed 's/^/| /' conftest.$ac_ext >&5
14953
391a765e
VS
14954( exit $ac_status )
14955wx_cv_gccversion="EMX2"
a848cd7e 14956fi
391a765e 14957rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 14958fi
a848cd7e
SC
14959
14960fi
14961echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14962echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 14963 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
14964 LIBS="$LIBS -lstdcpp"
14965 LDFLAGS="$LDFLAGS -Zsysv-signals"
14966 else
391a765e 14967 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 14968 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
14969 LDFLAGS="$LDFLAGS -Zsysv-signals"
14970 else
14971 LIBS="$LIBS -lstdc++"
14972 fi
14973 fi
94acd38e
DE
14974 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14975 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14976echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14977 wxUSE_OMF=yes
2da0c077 14978 enable_omf=yes
a848cd7e
SC
14979 fi
14980 ;;
14981 *)
14982
14983
14984
14985 ac_ext=cc
14986ac_cpp='$CXXCPP $CPPFLAGS'
14987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14990
14991
95986553 14992 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
14993echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
14994if test "${ac_cv_string_strcasecmp+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996else
14997
14998 cat >conftest.$ac_ext <<_ACEOF
14999/* confdefs.h. */
15000_ACEOF
15001cat confdefs.h >>conftest.$ac_ext
15002cat >>conftest.$ac_ext <<_ACEOF
15003/* end confdefs.h. */
15004
15005 #include <string.h>
15006
15007int
15008main ()
15009{
15010
15011 strcasecmp("foo", "bar");
15012
15013 ;
15014 return 0;
15015}
15016_ACEOF
15017rm -f conftest.$ac_objext conftest$ac_exeext
15018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15019 (eval $ac_link) 2>conftest.er1
a848cd7e 15020 ac_status=$?
ac1cb8d3
VS
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
a848cd7e
SC
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
0093c2fc 15026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_cv_string_strcasecmp=yes
15039else
15040 echo "$as_me: failed program was:" >&5
15041sed 's/^/| /' conftest.$ac_ext >&5
15042
15043ac_cv_string_strcasecmp=no
15044
15045fi
ac1cb8d3
VS
15046rm -f conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15048
15049fi
15050echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15051echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15052
15053 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15054 cat >>confdefs.h <<\_ACEOF
15055#define HAVE_STRCASECMP_IN_STRING_H 1
15056_ACEOF
15057
15058 else
15059 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15060echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15061if test "${ac_cv_strings_strcasecmp+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15063else
15064
15065 cat >conftest.$ac_ext <<_ACEOF
15066/* confdefs.h. */
15067_ACEOF
15068cat confdefs.h >>conftest.$ac_ext
15069cat >>conftest.$ac_ext <<_ACEOF
15070/* end confdefs.h. */
15071
15072 #include <strings.h>
15073
15074int
15075main ()
15076{
15077
15078 strcasecmp("foo", "bar");
15079
15080 ;
15081 return 0;
15082}
15083_ACEOF
15084rm -f conftest.$ac_objext conftest$ac_exeext
15085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15086 (eval $ac_link) 2>conftest.er1
a848cd7e 15087 ac_status=$?
ac1cb8d3
VS
15088 grep -v '^ *+' conftest.er1 >conftest.err
15089 rm -f conftest.er1
15090 cat conftest.err >&5
a848cd7e
SC
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
0093c2fc 15093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } &&
15099 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_strings_strcasecmp=yes
15106else
15107 echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110ac_cv_strings_strcasecmp=no
15111
15112fi
ac1cb8d3
VS
15113rm -f conftest.err conftest.$ac_objext \
15114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15115
15116fi
15117echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15118echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15119
0c3c69fc 15120 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15121 cat >>confdefs.h <<\_ACEOF
15122#define HAVE_STRCASECMP_IN_STRINGS_H 1
15123_ACEOF
15124
15125 else
15126 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15127echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15128 { (exit 1); exit 1; }; }
15129 fi
15130 fi
15131
15132 ac_ext=c
15133ac_cpp='$CPP $CPPFLAGS'
15134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136ac_compiler_gnu=$ac_cv_c_compiler_gnu
15137
15138 ;;
15139esac
15140
15141
15142echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15143echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15144if test "${ac_cv_header_stdc+set}" = set; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15146else
15147 cat >conftest.$ac_ext <<_ACEOF
15148/* confdefs.h. */
15149_ACEOF
15150cat confdefs.h >>conftest.$ac_ext
15151cat >>conftest.$ac_ext <<_ACEOF
15152/* end confdefs.h. */
15153#include <stdlib.h>
15154#include <stdarg.h>
15155#include <string.h>
15156#include <float.h>
15157
15158int
15159main ()
15160{
15161
15162 ;
15163 return 0;
15164}
15165_ACEOF
15166rm -f conftest.$ac_objext
15167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15168 (eval $ac_compile) 2>conftest.er1
a848cd7e 15169 ac_status=$?
ac1cb8d3
VS
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
a848cd7e
SC
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
0093c2fc 15175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_cv_header_stdc=yes
15188else
15189 echo "$as_me: failed program was:" >&5
15190sed 's/^/| /' conftest.$ac_ext >&5
15191
15192ac_cv_header_stdc=no
15193fi
ac1cb8d3 15194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15195
15196if test $ac_cv_header_stdc = yes; then
15197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15198 cat >conftest.$ac_ext <<_ACEOF
15199/* confdefs.h. */
15200_ACEOF
15201cat confdefs.h >>conftest.$ac_ext
15202cat >>conftest.$ac_ext <<_ACEOF
15203/* end confdefs.h. */
15204#include <string.h>
15205
15206_ACEOF
15207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15208 $EGREP "memchr" >/dev/null 2>&1; then
15209 :
15210else
15211 ac_cv_header_stdc=no
15212fi
15213rm -f conftest*
15214
15215fi
15216
15217if test $ac_cv_header_stdc = yes; then
15218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15219 cat >conftest.$ac_ext <<_ACEOF
15220/* confdefs.h. */
15221_ACEOF
15222cat confdefs.h >>conftest.$ac_ext
15223cat >>conftest.$ac_ext <<_ACEOF
15224/* end confdefs.h. */
15225#include <stdlib.h>
15226
15227_ACEOF
15228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15229 $EGREP "free" >/dev/null 2>&1; then
15230 :
15231else
15232 ac_cv_header_stdc=no
15233fi
15234rm -f conftest*
15235
15236fi
15237
15238if test $ac_cv_header_stdc = yes; then
15239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15240 if test "$cross_compiling" = yes; then
15241 :
15242else
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 <ctype.h>
15250#if ((' ' & 0x0FF) == 0x020)
15251# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15252# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15253#else
15254# define ISLOWER(c) \
ac1cb8d3
VS
15255 (('a' <= (c) && (c) <= 'i') \
15256 || ('j' <= (c) && (c) <= 'r') \
15257 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15258# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15259#endif
15260
15261#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15262int
15263main ()
15264{
15265 int i;
15266 for (i = 0; i < 256; i++)
15267 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15268 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15269 exit(2);
15270 exit (0);
15271}
15272_ACEOF
15273rm -f conftest$ac_exeext
15274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15275 (eval $ac_link) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 :
15285else
15286 echo "$as_me: program exited with status $ac_status" >&5
15287echo "$as_me: failed program was:" >&5
15288sed 's/^/| /' conftest.$ac_ext >&5
15289
15290( exit $ac_status )
15291ac_cv_header_stdc=no
15292fi
ac1cb8d3 15293rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15294fi
15295fi
15296fi
15297echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15298echo "${ECHO_T}$ac_cv_header_stdc" >&6
15299if test $ac_cv_header_stdc = yes; then
15300
15301cat >>confdefs.h <<\_ACEOF
15302#define STDC_HEADERS 1
15303_ACEOF
15304
15305fi
15306
15307# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15318 inttypes.h stdint.h unistd.h
a848cd7e
SC
15319do
15320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15321echo "$as_me:$LINENO: checking for $ac_header" >&5
15322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15323if eval "test \"\${$as_ac_Header+set}\" = set"; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325else
15326 cat >conftest.$ac_ext <<_ACEOF
15327/* confdefs.h. */
15328_ACEOF
15329cat confdefs.h >>conftest.$ac_ext
15330cat >>conftest.$ac_ext <<_ACEOF
15331/* end confdefs.h. */
15332$ac_includes_default
15333
15334#include <$ac_header>
15335_ACEOF
15336rm -f conftest.$ac_objext
15337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15338 (eval $ac_compile) 2>conftest.er1
a848cd7e 15339 ac_status=$?
ac1cb8d3
VS
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
a848cd7e
SC
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
0093c2fc 15345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 eval "$as_ac_Header=yes"
15358else
15359 echo "$as_me: failed program was:" >&5
15360sed 's/^/| /' conftest.$ac_ext >&5
15361
15362eval "$as_ac_Header=no"
15363fi
ac1cb8d3 15364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15365fi
15366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15368if test `eval echo '${'$as_ac_Header'}'` = yes; then
15369 cat >>confdefs.h <<_ACEOF
15370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15371_ACEOF
15372
15373fi
15374
15375done
15376
15377
15378
15379for ac_header in stdlib.h
15380do
15381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15382if eval "test \"\${$as_ac_Header+set}\" = set"; then
15383 echo "$as_me:$LINENO: checking for $ac_header" >&5
15384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15385if eval "test \"\${$as_ac_Header+set}\" = set"; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387fi
15388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15390else
15391 # Is the header compilable?
15392echo "$as_me:$LINENO: checking $ac_header usability" >&5
15393echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15394cat >conftest.$ac_ext <<_ACEOF
15395/* confdefs.h. */
15396_ACEOF
15397cat confdefs.h >>conftest.$ac_ext
15398cat >>conftest.$ac_ext <<_ACEOF
15399/* end confdefs.h. */
15400$ac_includes_default
15401#include <$ac_header>
15402_ACEOF
15403rm -f conftest.$ac_objext
15404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15405 (eval $ac_compile) 2>conftest.er1
a848cd7e 15406 ac_status=$?
ac1cb8d3
VS
15407 grep -v '^ *+' conftest.er1 >conftest.err
15408 rm -f conftest.er1
15409 cat conftest.err >&5
a848cd7e
SC
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
0093c2fc 15412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; } &&
15418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 ac_header_compiler=yes
15425else
15426 echo "$as_me: failed program was:" >&5
15427sed 's/^/| /' conftest.$ac_ext >&5
15428
15429ac_header_compiler=no
15430fi
ac1cb8d3 15431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15432echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15433echo "${ECHO_T}$ac_header_compiler" >&6
15434
15435# Is the header present?
15436echo "$as_me:$LINENO: checking $ac_header presence" >&5
15437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15438cat >conftest.$ac_ext <<_ACEOF
15439/* confdefs.h. */
15440_ACEOF
15441cat confdefs.h >>conftest.$ac_ext
15442cat >>conftest.$ac_ext <<_ACEOF
15443/* end confdefs.h. */
15444#include <$ac_header>
15445_ACEOF
15446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } >/dev/null; then
15454 if test -s conftest.err; then
15455 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15457 else
15458 ac_cpp_err=
15459 fi
15460else
15461 ac_cpp_err=yes
15462fi
15463if test -z "$ac_cpp_err"; then
15464 ac_header_preproc=yes
15465else
15466 echo "$as_me: failed program was:" >&5
15467sed 's/^/| /' conftest.$ac_ext >&5
15468
15469 ac_header_preproc=no
15470fi
15471rm -f conftest.err conftest.$ac_ext
15472echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15473echo "${ECHO_T}$ac_header_preproc" >&6
15474
15475# So? What about this header?
ac1cb8d3
VS
15476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15477 yes:no: )
a848cd7e
SC
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15479echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15481echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15482 ac_header_preproc=yes
a848cd7e 15483 ;;
ac1cb8d3 15484 no:yes:* )
a848cd7e
SC
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15486echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15488echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15490echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15492echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15496echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15497 (
15498 cat <<\_ASBOX
ac1cb8d3
VS
15499## ----------------------------------------- ##
15500## Report this to wx-dev@lists.wxwidgets.org ##
15501## ----------------------------------------- ##
a848cd7e
SC
15502_ASBOX
15503 ) |
15504 sed "s/^/$as_me: WARNING: /" >&2
15505 ;;
15506esac
15507echo "$as_me:$LINENO: checking for $ac_header" >&5
15508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15509if eval "test \"\${$as_ac_Header+set}\" = set"; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15511else
ac1cb8d3 15512 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15513fi
15514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15516
15517fi
15518if test `eval echo '${'$as_ac_Header'}'` = yes; then
15519 cat >>confdefs.h <<_ACEOF
15520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15521_ACEOF
15522
15523fi
15524
15525done
15526
15527
15528for ac_header in malloc.h
15529do
15530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15531if eval "test \"\${$as_ac_Header+set}\" = set"; then
15532 echo "$as_me:$LINENO: checking for $ac_header" >&5
15533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15534if eval "test \"\${$as_ac_Header+set}\" = set"; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536fi
15537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15539else
15540 # Is the header compilable?
15541echo "$as_me:$LINENO: checking $ac_header usability" >&5
15542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15543cat >conftest.$ac_ext <<_ACEOF
15544/* confdefs.h. */
15545_ACEOF
15546cat confdefs.h >>conftest.$ac_ext
15547cat >>conftest.$ac_ext <<_ACEOF
15548/* end confdefs.h. */
15549$ac_includes_default
15550#include <$ac_header>
15551_ACEOF
15552rm -f conftest.$ac_objext
15553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15554 (eval $ac_compile) 2>conftest.er1
a848cd7e 15555 ac_status=$?
ac1cb8d3
VS
15556 grep -v '^ *+' conftest.er1 >conftest.err
15557 rm -f conftest.er1
15558 cat conftest.err >&5
a848cd7e
SC
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
0093c2fc 15561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_header_compiler=yes
15574else
15575 echo "$as_me: failed program was:" >&5
15576sed 's/^/| /' conftest.$ac_ext >&5
15577
15578ac_header_compiler=no
15579fi
ac1cb8d3 15580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15582echo "${ECHO_T}$ac_header_compiler" >&6
15583
15584# Is the header present?
15585echo "$as_me:$LINENO: checking $ac_header presence" >&5
15586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15587cat >conftest.$ac_ext <<_ACEOF
15588/* confdefs.h. */
15589_ACEOF
15590cat confdefs.h >>conftest.$ac_ext
15591cat >>conftest.$ac_ext <<_ACEOF
15592/* end confdefs.h. */
15593#include <$ac_header>
15594_ACEOF
15595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15597 ac_status=$?
15598 grep -v '^ *+' conftest.er1 >conftest.err
15599 rm -f conftest.er1
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } >/dev/null; then
15603 if test -s conftest.err; then
15604 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15606 else
15607 ac_cpp_err=
15608 fi
15609else
15610 ac_cpp_err=yes
15611fi
15612if test -z "$ac_cpp_err"; then
15613 ac_header_preproc=yes
15614else
15615 echo "$as_me: failed program was:" >&5
15616sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 ac_header_preproc=no
15619fi
15620rm -f conftest.err conftest.$ac_ext
15621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15622echo "${ECHO_T}$ac_header_preproc" >&6
15623
15624# So? What about this header?
ac1cb8d3
VS
15625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15626 yes:no: )
a848cd7e
SC
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15631 ac_header_preproc=yes
a848cd7e 15632 ;;
ac1cb8d3 15633 no:yes:* )
a848cd7e
SC
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15646 (
15647 cat <<\_ASBOX
ac1cb8d3
VS
15648## ----------------------------------------- ##
15649## Report this to wx-dev@lists.wxwidgets.org ##
15650## ----------------------------------------- ##
a848cd7e
SC
15651_ASBOX
15652 ) |
15653 sed "s/^/$as_me: WARNING: /" >&2
15654 ;;
15655esac
15656echo "$as_me:$LINENO: checking for $ac_header" >&5
15657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15658if eval "test \"\${$as_ac_Header+set}\" = set"; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15660else
ac1cb8d3 15661 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15662fi
15663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15665
15666fi
15667if test `eval echo '${'$as_ac_Header'}'` = yes; then
15668 cat >>confdefs.h <<_ACEOF
15669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15670_ACEOF
15671
15672fi
15673
15674done
15675
15676
15677for ac_header in unistd.h
15678do
15679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15680if eval "test \"\${$as_ac_Header+set}\" = set"; then
15681 echo "$as_me:$LINENO: checking for $ac_header" >&5
15682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15683if eval "test \"\${$as_ac_Header+set}\" = set"; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15685fi
15686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15688else
15689 # Is the header compilable?
15690echo "$as_me:$LINENO: checking $ac_header usability" >&5
15691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15692cat >conftest.$ac_ext <<_ACEOF
15693/* confdefs.h. */
15694_ACEOF
15695cat confdefs.h >>conftest.$ac_ext
15696cat >>conftest.$ac_ext <<_ACEOF
15697/* end confdefs.h. */
15698$ac_includes_default
15699#include <$ac_header>
15700_ACEOF
15701rm -f conftest.$ac_objext
15702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15703 (eval $ac_compile) 2>conftest.er1
a848cd7e 15704 ac_status=$?
ac1cb8d3
VS
15705 grep -v '^ *+' conftest.er1 >conftest.err
15706 rm -f conftest.er1
15707 cat conftest.err >&5
a848cd7e
SC
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } &&
0093c2fc 15710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_header_compiler=yes
15723else
15724 echo "$as_me: failed program was:" >&5
15725sed 's/^/| /' conftest.$ac_ext >&5
15726
15727ac_header_compiler=no
15728fi
ac1cb8d3 15729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15731echo "${ECHO_T}$ac_header_compiler" >&6
15732
15733# Is the header present?
15734echo "$as_me:$LINENO: checking $ac_header presence" >&5
15735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15736cat >conftest.$ac_ext <<_ACEOF
15737/* confdefs.h. */
15738_ACEOF
15739cat confdefs.h >>conftest.$ac_ext
15740cat >>conftest.$ac_ext <<_ACEOF
15741/* end confdefs.h. */
15742#include <$ac_header>
15743_ACEOF
15744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15746 ac_status=$?
15747 grep -v '^ *+' conftest.er1 >conftest.err
15748 rm -f conftest.er1
15749 cat conftest.err >&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } >/dev/null; then
15752 if test -s conftest.err; then
15753 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15755 else
15756 ac_cpp_err=
15757 fi
15758else
15759 ac_cpp_err=yes
15760fi
15761if test -z "$ac_cpp_err"; then
15762 ac_header_preproc=yes
15763else
15764 echo "$as_me: failed program was:" >&5
15765sed 's/^/| /' conftest.$ac_ext >&5
15766
15767 ac_header_preproc=no
15768fi
15769rm -f conftest.err conftest.$ac_ext
15770echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15771echo "${ECHO_T}$ac_header_preproc" >&6
15772
15773# So? What about this header?
ac1cb8d3
VS
15774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15775 yes:no: )
a848cd7e
SC
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15780 ac_header_preproc=yes
a848cd7e 15781 ;;
ac1cb8d3 15782 no:yes:* )
a848cd7e
SC
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15786echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15790echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15795 (
15796 cat <<\_ASBOX
ac1cb8d3
VS
15797## ----------------------------------------- ##
15798## Report this to wx-dev@lists.wxwidgets.org ##
15799## ----------------------------------------- ##
a848cd7e
SC
15800_ASBOX
15801 ) |
15802 sed "s/^/$as_me: WARNING: /" >&2
15803 ;;
15804esac
15805echo "$as_me:$LINENO: checking for $ac_header" >&5
15806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15807if eval "test \"\${$as_ac_Header+set}\" = set"; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15809else
ac1cb8d3 15810 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15811fi
15812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15814
15815fi
15816if test `eval echo '${'$as_ac_Header'}'` = yes; then
15817 cat >>confdefs.h <<_ACEOF
15818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15819_ACEOF
15820
15821fi
15822
15823done
15824
15825
15826for ac_header in wchar.h
15827do
15828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15829if eval "test \"\${$as_ac_Header+set}\" = set"; then
15830 echo "$as_me:$LINENO: checking for $ac_header" >&5
15831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15832if eval "test \"\${$as_ac_Header+set}\" = set"; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15834fi
15835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15837else
15838 # Is the header compilable?
15839echo "$as_me:$LINENO: checking $ac_header usability" >&5
15840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15841cat >conftest.$ac_ext <<_ACEOF
15842/* confdefs.h. */
15843_ACEOF
15844cat confdefs.h >>conftest.$ac_ext
15845cat >>conftest.$ac_ext <<_ACEOF
15846/* end confdefs.h. */
15847$ac_includes_default
15848#include <$ac_header>
15849_ACEOF
15850rm -f conftest.$ac_objext
15851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15852 (eval $ac_compile) 2>conftest.er1
a848cd7e 15853 ac_status=$?
ac1cb8d3
VS
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
a848cd7e
SC
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
0093c2fc 15859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; } &&
15865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; }; then
15871 ac_header_compiler=yes
15872else
15873 echo "$as_me: failed program was:" >&5
15874sed 's/^/| /' conftest.$ac_ext >&5
15875
15876ac_header_compiler=no
15877fi
ac1cb8d3 15878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15880echo "${ECHO_T}$ac_header_compiler" >&6
15881
15882# Is the header present?
15883echo "$as_me:$LINENO: checking $ac_header presence" >&5
15884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15885cat >conftest.$ac_ext <<_ACEOF
15886/* confdefs.h. */
15887_ACEOF
15888cat confdefs.h >>conftest.$ac_ext
15889cat >>conftest.$ac_ext <<_ACEOF
15890/* end confdefs.h. */
15891#include <$ac_header>
15892_ACEOF
15893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } >/dev/null; then
15901 if test -s conftest.err; then
15902 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15904 else
15905 ac_cpp_err=
15906 fi
15907else
15908 ac_cpp_err=yes
15909fi
15910if test -z "$ac_cpp_err"; then
15911 ac_header_preproc=yes
15912else
15913 echo "$as_me: failed program was:" >&5
15914sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 ac_header_preproc=no
15917fi
15918rm -f conftest.err conftest.$ac_ext
15919echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15920echo "${ECHO_T}$ac_header_preproc" >&6
15921
15922# So? What about this header?
ac1cb8d3
VS
15923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15924 yes:no: )
a848cd7e
SC
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15926echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15928echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15929 ac_header_preproc=yes
a848cd7e 15930 ;;
ac1cb8d3 15931 no:yes:* )
a848cd7e
SC
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15933echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15935echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15937echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15939echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15943echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15944 (
15945 cat <<\_ASBOX
ac1cb8d3
VS
15946## ----------------------------------------- ##
15947## Report this to wx-dev@lists.wxwidgets.org ##
15948## ----------------------------------------- ##
a848cd7e
SC
15949_ASBOX
15950 ) |
15951 sed "s/^/$as_me: WARNING: /" >&2
15952 ;;
15953esac
15954echo "$as_me:$LINENO: checking for $ac_header" >&5
15955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15956if eval "test \"\${$as_ac_Header+set}\" = set"; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958else
ac1cb8d3 15959 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15960fi
15961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15962echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15963
15964fi
15965if test `eval echo '${'$as_ac_Header'}'` = yes; then
15966 cat >>confdefs.h <<_ACEOF
15967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15968_ACEOF
15969
15970fi
15971
15972done
15973
15974
15975if test "$ac_cv_header_wchar_h" != "yes"; then
15976
15977for ac_header in wcstr.h
15978do
15979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15980if eval "test \"\${$as_ac_Header+set}\" = set"; then
15981 echo "$as_me:$LINENO: checking for $ac_header" >&5
15982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15983if eval "test \"\${$as_ac_Header+set}\" = set"; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15985fi
15986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15988else
15989 # Is the header compilable?
15990echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15992cat >conftest.$ac_ext <<_ACEOF
15993/* confdefs.h. */
15994_ACEOF
15995cat confdefs.h >>conftest.$ac_ext
15996cat >>conftest.$ac_ext <<_ACEOF
15997/* end confdefs.h. */
15998$ac_includes_default
15999#include <$ac_header>
16000_ACEOF
16001rm -f conftest.$ac_objext
16002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16003 (eval $ac_compile) 2>conftest.er1
a848cd7e 16004 ac_status=$?
ac1cb8d3
VS
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
a848cd7e
SC
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
0093c2fc 16010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 ac_header_compiler=yes
16023else
16024 echo "$as_me: failed program was:" >&5
16025sed 's/^/| /' conftest.$ac_ext >&5
16026
16027ac_header_compiler=no
16028fi
ac1cb8d3 16029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16030echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16031echo "${ECHO_T}$ac_header_compiler" >&6
16032
16033# Is the header present?
16034echo "$as_me:$LINENO: checking $ac_header presence" >&5
16035echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16036cat >conftest.$ac_ext <<_ACEOF
16037/* confdefs.h. */
16038_ACEOF
16039cat confdefs.h >>conftest.$ac_ext
16040cat >>conftest.$ac_ext <<_ACEOF
16041/* end confdefs.h. */
16042#include <$ac_header>
16043_ACEOF
16044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16046 ac_status=$?
16047 grep -v '^ *+' conftest.er1 >conftest.err
16048 rm -f conftest.er1
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } >/dev/null; then
16052 if test -s conftest.err; then
16053 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16055 else
16056 ac_cpp_err=
16057 fi
16058else
16059 ac_cpp_err=yes
16060fi
16061if test -z "$ac_cpp_err"; then
16062 ac_header_preproc=yes
16063else
16064 echo "$as_me: failed program was:" >&5
16065sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ac_header_preproc=no
16068fi
16069rm -f conftest.err conftest.$ac_ext
16070echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16071echo "${ECHO_T}$ac_header_preproc" >&6
16072
16073# So? What about this header?
ac1cb8d3
VS
16074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16075 yes:no: )
a848cd7e
SC
16076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16077echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16079echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16080 ac_header_preproc=yes
a848cd7e 16081 ;;
ac1cb8d3 16082 no:yes:* )
a848cd7e
SC
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16084echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16086echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16088echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16090echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16092echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16094echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16095 (
16096 cat <<\_ASBOX
ac1cb8d3
VS
16097## ----------------------------------------- ##
16098## Report this to wx-dev@lists.wxwidgets.org ##
16099## ----------------------------------------- ##
a848cd7e
SC
16100_ASBOX
16101 ) |
16102 sed "s/^/$as_me: WARNING: /" >&2
16103 ;;
16104esac
16105echo "$as_me:$LINENO: checking for $ac_header" >&5
16106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16107if eval "test \"\${$as_ac_Header+set}\" = set"; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109else
ac1cb8d3 16110 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16111fi
16112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16114
16115fi
16116if test `eval echo '${'$as_ac_Header'}'` = yes; then
16117 cat >>confdefs.h <<_ACEOF
16118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16119_ACEOF
16120
16121fi
16122
16123done
16124
16125fi
16126
16127
16128for ac_header in fnmatch.h
16129do
16130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16131if eval "test \"\${$as_ac_Header+set}\" = set"; then
16132 echo "$as_me:$LINENO: checking for $ac_header" >&5
16133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16134if eval "test \"\${$as_ac_Header+set}\" = set"; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136fi
16137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16139else
16140 # Is the header compilable?
16141echo "$as_me:$LINENO: checking $ac_header usability" >&5
16142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16143cat >conftest.$ac_ext <<_ACEOF
16144/* confdefs.h. */
16145_ACEOF
16146cat confdefs.h >>conftest.$ac_ext
16147cat >>conftest.$ac_ext <<_ACEOF
16148/* end confdefs.h. */
16149$ac_includes_default
16150#include <$ac_header>
16151_ACEOF
16152rm -f conftest.$ac_objext
16153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16154 (eval $ac_compile) 2>conftest.er1
a848cd7e 16155 ac_status=$?
ac1cb8d3
VS
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
a848cd7e
SC
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } &&
0093c2fc 16161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; } &&
16167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16173 ac_header_compiler=yes
16174else
16175 echo "$as_me: failed program was:" >&5
16176sed 's/^/| /' conftest.$ac_ext >&5
16177
16178ac_header_compiler=no
16179fi
ac1cb8d3 16180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16182echo "${ECHO_T}$ac_header_compiler" >&6
16183
16184# Is the header present?
16185echo "$as_me:$LINENO: checking $ac_header presence" >&5
16186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16187cat >conftest.$ac_ext <<_ACEOF
16188/* confdefs.h. */
16189_ACEOF
16190cat confdefs.h >>conftest.$ac_ext
16191cat >>conftest.$ac_ext <<_ACEOF
16192/* end confdefs.h. */
16193#include <$ac_header>
16194_ACEOF
16195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } >/dev/null; then
16203 if test -s conftest.err; then
16204 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16206 else
16207 ac_cpp_err=
16208 fi
16209else
16210 ac_cpp_err=yes
16211fi
16212if test -z "$ac_cpp_err"; then
16213 ac_header_preproc=yes
16214else
16215 echo "$as_me: failed program was:" >&5
16216sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 ac_header_preproc=no
16219fi
16220rm -f conftest.err conftest.$ac_ext
16221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16222echo "${ECHO_T}$ac_header_preproc" >&6
16223
16224# So? What about this header?
ac1cb8d3
VS
16225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16226 yes:no: )
a848cd7e
SC
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16231 ac_header_preproc=yes
a848cd7e 16232 ;;
ac1cb8d3 16233 no:yes:* )
a848cd7e
SC
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16246 (
16247 cat <<\_ASBOX
ac1cb8d3
VS
16248## ----------------------------------------- ##
16249## Report this to wx-dev@lists.wxwidgets.org ##
16250## ----------------------------------------- ##
a848cd7e
SC
16251_ASBOX
16252 ) |
16253 sed "s/^/$as_me: WARNING: /" >&2
16254 ;;
16255esac
16256echo "$as_me:$LINENO: checking for $ac_header" >&5
16257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16258if eval "test \"\${$as_ac_Header+set}\" = set"; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260else
ac1cb8d3 16261 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16262fi
16263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16265
16266fi
16267if test `eval echo '${'$as_ac_Header'}'` = yes; then
16268 cat >>confdefs.h <<_ACEOF
16269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16270_ACEOF
16271
16272fi
16273
16274done
16275
16276
a848cd7e
SC
16277
16278for ac_header in langinfo.h
16279do
16280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16281if eval "test \"\${$as_ac_Header+set}\" = set"; then
16282 echo "$as_me:$LINENO: checking for $ac_header" >&5
16283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16284if eval "test \"\${$as_ac_Header+set}\" = set"; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16286fi
16287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16289else
16290 # Is the header compilable?
16291echo "$as_me:$LINENO: checking $ac_header usability" >&5
16292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16293cat >conftest.$ac_ext <<_ACEOF
16294/* confdefs.h. */
16295_ACEOF
16296cat confdefs.h >>conftest.$ac_ext
16297cat >>conftest.$ac_ext <<_ACEOF
16298/* end confdefs.h. */
16299$ac_includes_default
16300#include <$ac_header>
16301_ACEOF
16302rm -f conftest.$ac_objext
16303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16304 (eval $ac_compile) 2>conftest.er1
a848cd7e 16305 ac_status=$?
ac1cb8d3
VS
16306 grep -v '^ *+' conftest.er1 >conftest.err
16307 rm -f conftest.er1
16308 cat conftest.err >&5
a848cd7e
SC
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } &&
0093c2fc 16311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 ac_header_compiler=yes
16324else
16325 echo "$as_me: failed program was:" >&5
16326sed 's/^/| /' conftest.$ac_ext >&5
16327
16328ac_header_compiler=no
16329fi
ac1cb8d3 16330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16332echo "${ECHO_T}$ac_header_compiler" >&6
16333
16334# Is the header present?
16335echo "$as_me:$LINENO: checking $ac_header presence" >&5
16336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16337cat >conftest.$ac_ext <<_ACEOF
16338/* confdefs.h. */
16339_ACEOF
16340cat confdefs.h >>conftest.$ac_ext
16341cat >>conftest.$ac_ext <<_ACEOF
16342/* end confdefs.h. */
16343#include <$ac_header>
16344_ACEOF
16345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16347 ac_status=$?
16348 grep -v '^ *+' conftest.er1 >conftest.err
16349 rm -f conftest.er1
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } >/dev/null; then
16353 if test -s conftest.err; then
16354 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16356 else
16357 ac_cpp_err=
16358 fi
16359else
16360 ac_cpp_err=yes
16361fi
16362if test -z "$ac_cpp_err"; then
16363 ac_header_preproc=yes
16364else
16365 echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
16367
16368 ac_header_preproc=no
16369fi
16370rm -f conftest.err conftest.$ac_ext
16371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16372echo "${ECHO_T}$ac_header_preproc" >&6
16373
16374# So? What about this header?
ac1cb8d3
VS
16375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16376 yes:no: )
a848cd7e
SC
16377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16380echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16381 ac_header_preproc=yes
a848cd7e 16382 ;;
ac1cb8d3 16383 no:yes:* )
a848cd7e
SC
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16385echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16387echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16389echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16391echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16395echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16396 (
16397 cat <<\_ASBOX
ac1cb8d3
VS
16398## ----------------------------------------- ##
16399## Report this to wx-dev@lists.wxwidgets.org ##
16400## ----------------------------------------- ##
a848cd7e
SC
16401_ASBOX
16402 ) |
16403 sed "s/^/$as_me: WARNING: /" >&2
16404 ;;
16405esac
16406echo "$as_me:$LINENO: checking for $ac_header" >&5
16407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16408if eval "test \"\${$as_ac_Header+set}\" = set"; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410else
ac1cb8d3 16411 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16412fi
16413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16415
16416fi
16417if test `eval echo '${'$as_ac_Header'}'` = yes; then
16418 cat >>confdefs.h <<_ACEOF
16419#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16420_ACEOF
16421
16422fi
16423
16424done
16425
16426
16427case "${host}" in
16428 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16429 if test $ac_cv_header_langinfo_h = "yes" \
16430 -a \( "$wx_cv_gccversion" = "EMX2" \
16431 -o "$wx_cv_gccversion" = "EMX3" \
16432 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16433 LIBS="$LIBS -lintl"
16434 fi
16435 ;;
16436esac
16437
a848cd7e
SC
16438
16439echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16440echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16441if test "${ac_cv_c_const+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16443else
16444 cat >conftest.$ac_ext <<_ACEOF
16445/* confdefs.h. */
16446_ACEOF
16447cat confdefs.h >>conftest.$ac_ext
16448cat >>conftest.$ac_ext <<_ACEOF
16449/* end confdefs.h. */
16450
16451int
16452main ()
16453{
16454/* FIXME: Include the comments suggested by Paul. */
16455#ifndef __cplusplus
16456 /* Ultrix mips cc rejects this. */
16457 typedef int charset[2];
16458 const charset x;
16459 /* SunOS 4.1.1 cc rejects this. */
16460 char const *const *ccp;
16461 char **p;
16462 /* NEC SVR4.0.2 mips cc rejects this. */
16463 struct point {int x, y;};
16464 static struct point const zero = {0,0};
16465 /* AIX XL C 1.02.0.0 rejects this.
16466 It does not let you subtract one const X* pointer from another in
16467 an arm of an if-expression whose if-part is not a constant
16468 expression */
16469 const char *g = "string";
16470 ccp = &g + (g ? g-g : 0);
16471 /* HPUX 7.0 cc rejects these. */
16472 ++ccp;
16473 p = (char**) ccp;
16474 ccp = (char const *const *) p;
16475 { /* SCO 3.2v4 cc rejects this. */
16476 char *t;
16477 char const *s = 0 ? (char *) 0 : (char const *) 0;
16478
16479 *t++ = 0;
16480 }
16481 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16482 int x[] = {25, 17};
16483 const int *foo = &x[0];
16484 ++foo;
16485 }
16486 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16487 typedef const int *iptr;
16488 iptr p = 0;
16489 ++p;
16490 }
16491 { /* AIX XL C 1.02.0.0 rejects this saying
16492 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16493 struct s { int j; const int *ap[3]; };
16494 struct s *b; b->j = 5;
16495 }
16496 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16497 const int foo = 10;
16498 }
16499#endif
16500
16501 ;
16502 return 0;
16503}
16504_ACEOF
16505rm -f conftest.$ac_objext
16506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16507 (eval $ac_compile) 2>conftest.er1
a848cd7e 16508 ac_status=$?
ac1cb8d3
VS
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -f conftest.er1
16511 cat conftest.err >&5
a848cd7e
SC
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
0093c2fc 16514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } &&
16520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_cv_c_const=yes
16527else
16528 echo "$as_me: failed program was:" >&5
16529sed 's/^/| /' conftest.$ac_ext >&5
16530
16531ac_cv_c_const=no
16532fi
ac1cb8d3 16533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16534fi
16535echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16536echo "${ECHO_T}$ac_cv_c_const" >&6
16537if test $ac_cv_c_const = no; then
16538
16539cat >>confdefs.h <<\_ACEOF
16540#define const
16541_ACEOF
16542
16543fi
16544
16545echo "$as_me:$LINENO: checking for inline" >&5
16546echo $ECHO_N "checking for inline... $ECHO_C" >&6
16547if test "${ac_cv_c_inline+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16549else
16550 ac_cv_c_inline=no
16551for ac_kw in inline __inline__ __inline; do
16552 cat >conftest.$ac_ext <<_ACEOF
16553/* confdefs.h. */
16554_ACEOF
16555cat confdefs.h >>conftest.$ac_ext
16556cat >>conftest.$ac_ext <<_ACEOF
16557/* end confdefs.h. */
16558#ifndef __cplusplus
16559typedef int foo_t;
16560static $ac_kw foo_t static_foo () {return 0; }
16561$ac_kw foo_t foo () {return 0; }
16562#endif
16563
16564_ACEOF
16565rm -f conftest.$ac_objext
16566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16567 (eval $ac_compile) 2>conftest.er1
a848cd7e 16568 ac_status=$?
ac1cb8d3
VS
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
a848cd7e
SC
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
0093c2fc 16574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_c_inline=$ac_kw; break
16587else
16588 echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
16591fi
ac1cb8d3 16592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16593done
16594
16595fi
16596echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16597echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16598
16599
a848cd7e
SC
16600case $ac_cv_c_inline in
16601 inline | yes) ;;
ac1cb8d3
VS
16602 *)
16603 case $ac_cv_c_inline in
16604 no) ac_val=;;
16605 *) ac_val=$ac_cv_c_inline;;
16606 esac
16607 cat >>confdefs.h <<_ACEOF
16608#ifndef __cplusplus
16609#define inline $ac_val
16610#endif
de59c161 16611_ACEOF
ac1cb8d3 16612 ;;
a848cd7e
SC
16613esac
16614
16615
16616echo "$as_me:$LINENO: checking for char" >&5
16617echo $ECHO_N "checking for char... $ECHO_C" >&6
16618if test "${ac_cv_type_char+set}" = set; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620else
16621 cat >conftest.$ac_ext <<_ACEOF
16622/* confdefs.h. */
16623_ACEOF
16624cat confdefs.h >>conftest.$ac_ext
16625cat >>conftest.$ac_ext <<_ACEOF
16626/* end confdefs.h. */
16627$ac_includes_default
16628int
16629main ()
16630{
16631if ((char *) 0)
16632 return 0;
16633if (sizeof (char))
16634 return 0;
16635 ;
16636 return 0;
16637}
16638_ACEOF
16639rm -f conftest.$ac_objext
16640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16641 (eval $ac_compile) 2>conftest.er1
a848cd7e 16642 ac_status=$?
ac1cb8d3
VS
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
a848cd7e
SC
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
0093c2fc 16648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 ac_cv_type_char=yes
16661else
16662 echo "$as_me: failed program was:" >&5
16663sed 's/^/| /' conftest.$ac_ext >&5
16664
16665ac_cv_type_char=no
16666fi
ac1cb8d3 16667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16668fi
16669echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16670echo "${ECHO_T}$ac_cv_type_char" >&6
16671
16672echo "$as_me:$LINENO: checking size of char" >&5
16673echo $ECHO_N "checking size of char... $ECHO_C" >&6
16674if test "${ac_cv_sizeof_char+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16676else
16677 if test "$ac_cv_type_char" = yes; then
16678 # The cast to unsigned long works around a bug in the HP C Compiler
16679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16681 # This bug is HP SR number 8606223364.
16682 if test "$cross_compiling" = yes; then
16683 # Depending upon the size, compute the lo and hi bounds.
16684cat >conftest.$ac_ext <<_ACEOF
16685/* confdefs.h. */
16686_ACEOF
16687cat confdefs.h >>conftest.$ac_ext
16688cat >>conftest.$ac_ext <<_ACEOF
16689/* end confdefs.h. */
16690$ac_includes_default
16691int
16692main ()
16693{
16694static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16695test_array [0] = 0
16696
16697 ;
16698 return 0;
16699}
16700_ACEOF
16701rm -f conftest.$ac_objext
16702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16703 (eval $ac_compile) 2>conftest.er1
a848cd7e 16704 ac_status=$?
ac1cb8d3
VS
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
a848cd7e
SC
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
0093c2fc 16710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722 ac_lo=0 ac_mid=0
16723 while :; do
16724 cat >conftest.$ac_ext <<_ACEOF
16725/* confdefs.h. */
16726_ACEOF
16727cat confdefs.h >>conftest.$ac_ext
16728cat >>conftest.$ac_ext <<_ACEOF
16729/* end confdefs.h. */
16730$ac_includes_default
16731int
16732main ()
16733{
16734static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16735test_array [0] = 0
16736
16737 ;
16738 return 0;
16739}
16740_ACEOF
16741rm -f conftest.$ac_objext
16742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16743 (eval $ac_compile) 2>conftest.er1
a848cd7e 16744 ac_status=$?
ac1cb8d3
VS
16745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
a848cd7e
SC
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
0093c2fc 16750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_hi=$ac_mid; break
16763else
16764 echo "$as_me: failed program was:" >&5
16765sed 's/^/| /' conftest.$ac_ext >&5
16766
16767ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16768 if test $ac_lo -le $ac_mid; then
16769 ac_lo= ac_hi=
16770 break
16771 fi
16772 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16773fi
ac1cb8d3 16774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16775 done
16776else
16777 echo "$as_me: failed program was:" >&5
16778sed 's/^/| /' conftest.$ac_ext >&5
16779
16780cat >conftest.$ac_ext <<_ACEOF
16781/* confdefs.h. */
16782_ACEOF
16783cat confdefs.h >>conftest.$ac_ext
16784cat >>conftest.$ac_ext <<_ACEOF
16785/* end confdefs.h. */
16786$ac_includes_default
16787int
16788main ()
16789{
16790static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16791test_array [0] = 0
16792
16793 ;
16794 return 0;
16795}
16796_ACEOF
16797rm -f conftest.$ac_objext
16798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16799 (eval $ac_compile) 2>conftest.er1
a848cd7e 16800 ac_status=$?
ac1cb8d3
VS
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
a848cd7e
SC
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
0093c2fc 16806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_hi=-1 ac_mid=-1
16819 while :; do
16820 cat >conftest.$ac_ext <<_ACEOF
16821/* confdefs.h. */
16822_ACEOF
16823cat confdefs.h >>conftest.$ac_ext
16824cat >>conftest.$ac_ext <<_ACEOF
16825/* end confdefs.h. */
16826$ac_includes_default
16827int
16828main ()
16829{
16830static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16831test_array [0] = 0
16832
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837rm -f conftest.$ac_objext
16838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16839 (eval $ac_compile) 2>conftest.er1
a848cd7e 16840 ac_status=$?
ac1cb8d3
VS
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
a848cd7e
SC
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
0093c2fc 16846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_lo=$ac_mid; break
16859else
16860 echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
16863ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16864 if test $ac_mid -le $ac_hi; then
16865 ac_lo= ac_hi=
16866 break
16867 fi
16868 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16869fi
ac1cb8d3 16870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16871 done
16872else
16873 echo "$as_me: failed program was:" >&5
16874sed 's/^/| /' conftest.$ac_ext >&5
16875
16876ac_lo= ac_hi=
16877fi
ac1cb8d3 16878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16879fi
ac1cb8d3 16880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16881# Binary search between lo and hi bounds.
16882while test "x$ac_lo" != "x$ac_hi"; do
16883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16884 cat >conftest.$ac_ext <<_ACEOF
16885/* confdefs.h. */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
16890$ac_includes_default
16891int
16892main ()
16893{
16894static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16895test_array [0] = 0
16896
16897 ;
16898 return 0;
16899}
16900_ACEOF
16901rm -f conftest.$ac_objext
16902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16903 (eval $ac_compile) 2>conftest.er1
a848cd7e 16904 ac_status=$?
ac1cb8d3
VS
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
a848cd7e
SC
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
0093c2fc 16910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_hi=$ac_mid
16923else
16924 echo "$as_me: failed program was:" >&5
16925sed 's/^/| /' conftest.$ac_ext >&5
16926
16927ac_lo=`expr '(' $ac_mid ')' + 1`
16928fi
ac1cb8d3 16929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16930done
16931case $ac_lo in
16932?*) ac_cv_sizeof_char=$ac_lo;;
16933'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16934See \`config.log' for more details." >&5
16935echo "$as_me: error: cannot compute sizeof (char), 77
16936See \`config.log' for more details." >&2;}
16937 { (exit 1); exit 1; }; } ;;
16938esac
16939else
16940 if test "$cross_compiling" = yes; then
0093c2fc
VZ
16941 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16942echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16943 { (exit 1); exit 1; }; }
16944else
16945 cat >conftest.$ac_ext <<_ACEOF
16946/* confdefs.h. */
16947_ACEOF
16948cat confdefs.h >>conftest.$ac_ext
16949cat >>conftest.$ac_ext <<_ACEOF
16950/* end confdefs.h. */
16951$ac_includes_default
16952long longval () { return (long) (sizeof (char)); }
16953unsigned long ulongval () { return (long) (sizeof (char)); }
16954#include <stdio.h>
16955#include <stdlib.h>
16956int
16957main ()
16958{
16959
16960 FILE *f = fopen ("conftest.val", "w");
16961 if (! f)
16962 exit (1);
16963 if (((long) (sizeof (char))) < 0)
16964 {
16965 long i = longval ();
16966 if (i != ((long) (sizeof (char))))
16967 exit (1);
16968 fprintf (f, "%ld\n", i);
16969 }
16970 else
16971 {
16972 unsigned long i = ulongval ();
16973 if (i != ((long) (sizeof (char))))
16974 exit (1);
16975 fprintf (f, "%lu\n", i);
16976 }
16977 exit (ferror (f) || fclose (f) != 0);
16978
16979 ;
16980 return 0;
16981}
16982_ACEOF
16983rm -f conftest$ac_exeext
16984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985 (eval $ac_link) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_sizeof_char=`cat conftest.val`
16995else
16996 echo "$as_me: program exited with status $ac_status" >&5
16997echo "$as_me: failed program was:" >&5
16998sed 's/^/| /' conftest.$ac_ext >&5
16999
17000( exit $ac_status )
17001{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17002See \`config.log' for more details." >&5
17003echo "$as_me: error: cannot compute sizeof (char), 77
17004See \`config.log' for more details." >&2;}
17005 { (exit 1); exit 1; }; }
17006fi
ac1cb8d3 17007rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17008fi
17009fi
17010rm -f conftest.val
17011else
17012 ac_cv_sizeof_char=0
17013fi
17014fi
17015echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17016echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17017cat >>confdefs.h <<_ACEOF
17018#define SIZEOF_CHAR $ac_cv_sizeof_char
17019_ACEOF
17020
17021
17022echo "$as_me:$LINENO: checking for short" >&5
17023echo $ECHO_N "checking for short... $ECHO_C" >&6
17024if test "${ac_cv_type_short+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17026else
17027 cat >conftest.$ac_ext <<_ACEOF
17028/* confdefs.h. */
17029_ACEOF
17030cat confdefs.h >>conftest.$ac_ext
17031cat >>conftest.$ac_ext <<_ACEOF
17032/* end confdefs.h. */
17033$ac_includes_default
17034int
17035main ()
17036{
17037if ((short *) 0)
17038 return 0;
17039if (sizeof (short))
17040 return 0;
17041 ;
17042 return 0;
17043}
17044_ACEOF
17045rm -f conftest.$ac_objext
17046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17047 (eval $ac_compile) 2>conftest.er1
a848cd7e 17048 ac_status=$?
ac1cb8d3
VS
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
a848cd7e
SC
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
0093c2fc 17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_type_short=yes
17067else
17068 echo "$as_me: failed program was:" >&5
17069sed 's/^/| /' conftest.$ac_ext >&5
17070
17071ac_cv_type_short=no
17072fi
ac1cb8d3 17073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17074fi
17075echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17076echo "${ECHO_T}$ac_cv_type_short" >&6
17077
17078echo "$as_me:$LINENO: checking size of short" >&5
17079echo $ECHO_N "checking size of short... $ECHO_C" >&6
17080if test "${ac_cv_sizeof_short+set}" = set; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17082else
17083 if test "$ac_cv_type_short" = yes; then
17084 # The cast to unsigned long works around a bug in the HP C Compiler
17085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17087 # This bug is HP SR number 8606223364.
17088 if test "$cross_compiling" = yes; then
17089 # Depending upon the size, compute the lo and hi bounds.
17090cat >conftest.$ac_ext <<_ACEOF
17091/* confdefs.h. */
17092_ACEOF
17093cat confdefs.h >>conftest.$ac_ext
17094cat >>conftest.$ac_ext <<_ACEOF
17095/* end confdefs.h. */
17096$ac_includes_default
17097int
17098main ()
17099{
17100static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17101test_array [0] = 0
17102
17103 ;
17104 return 0;
17105}
17106_ACEOF
17107rm -f conftest.$ac_objext
17108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17109 (eval $ac_compile) 2>conftest.er1
a848cd7e 17110 ac_status=$?
ac1cb8d3
VS
17111 grep -v '^ *+' conftest.er1 >conftest.err
17112 rm -f conftest.er1
17113 cat conftest.err >&5
a848cd7e
SC
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
0093c2fc 17116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; } &&
17122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_lo=0 ac_mid=0
17129 while :; do
17130 cat >conftest.$ac_ext <<_ACEOF
17131/* confdefs.h. */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
17136$ac_includes_default
17137int
17138main ()
17139{
17140static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17141test_array [0] = 0
17142
17143 ;
17144 return 0;
17145}
17146_ACEOF
17147rm -f conftest.$ac_objext
17148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17149 (eval $ac_compile) 2>conftest.er1
a848cd7e 17150 ac_status=$?
ac1cb8d3
VS
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
a848cd7e
SC
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
0093c2fc 17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_hi=$ac_mid; break
17169else
17170 echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17174 if test $ac_lo -le $ac_mid; then
17175 ac_lo= ac_hi=
17176 break
17177 fi
17178 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17179fi
ac1cb8d3 17180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17181 done
17182else
17183 echo "$as_me: failed program was:" >&5
17184sed 's/^/| /' conftest.$ac_ext >&5
17185
17186cat >conftest.$ac_ext <<_ACEOF
17187/* confdefs.h. */
17188_ACEOF
17189cat confdefs.h >>conftest.$ac_ext
17190cat >>conftest.$ac_ext <<_ACEOF
17191/* end confdefs.h. */
17192$ac_includes_default
17193int
17194main ()
17195{
17196static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17197test_array [0] = 0
17198
17199 ;
17200 return 0;
17201}
17202_ACEOF
17203rm -f conftest.$ac_objext
17204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17205 (eval $ac_compile) 2>conftest.er1
a848cd7e 17206 ac_status=$?
ac1cb8d3
VS
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
a848cd7e
SC
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
0093c2fc 17212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; } &&
17218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_hi=-1 ac_mid=-1
17225 while :; do
17226 cat >conftest.$ac_ext <<_ACEOF
17227/* confdefs.h. */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
17232$ac_includes_default
17233int
17234main ()
17235{
17236static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17237test_array [0] = 0
17238
17239 ;
17240 return 0;
17241}
17242_ACEOF
17243rm -f conftest.$ac_objext
17244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17245 (eval $ac_compile) 2>conftest.er1
a848cd7e 17246 ac_status=$?
ac1cb8d3
VS
17247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
a848cd7e
SC
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
0093c2fc 17252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_lo=$ac_mid; break
17265else
17266 echo "$as_me: failed program was:" >&5
17267sed 's/^/| /' conftest.$ac_ext >&5
17268
17269ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17270 if test $ac_mid -le $ac_hi; then
17271 ac_lo= ac_hi=
17272 break
17273 fi
17274 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17275fi
ac1cb8d3 17276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17277 done
17278else
17279 echo "$as_me: failed program was:" >&5
17280sed 's/^/| /' conftest.$ac_ext >&5
17281
17282ac_lo= ac_hi=
17283fi
ac1cb8d3 17284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17285fi
ac1cb8d3 17286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17287# Binary search between lo and hi bounds.
17288while test "x$ac_lo" != "x$ac_hi"; do
17289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17290 cat >conftest.$ac_ext <<_ACEOF
17291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
17296$ac_includes_default
17297int
17298main ()
17299{
17300static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17301test_array [0] = 0
17302
17303 ;
17304 return 0;
17305}
17306_ACEOF
17307rm -f conftest.$ac_objext
17308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17309 (eval $ac_compile) 2>conftest.er1
a848cd7e 17310 ac_status=$?
ac1cb8d3
VS
17311 grep -v '^ *+' conftest.er1 >conftest.err
17312 rm -f conftest.er1
17313 cat conftest.err >&5
a848cd7e
SC
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
0093c2fc 17316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 ac_hi=$ac_mid
17329else
17330 echo "$as_me: failed program was:" >&5
17331sed 's/^/| /' conftest.$ac_ext >&5
17332
17333ac_lo=`expr '(' $ac_mid ')' + 1`
17334fi
ac1cb8d3 17335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17336done
17337case $ac_lo in
17338?*) ac_cv_sizeof_short=$ac_lo;;
17339'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17340See \`config.log' for more details." >&5
17341echo "$as_me: error: cannot compute sizeof (short), 77
17342See \`config.log' for more details." >&2;}
17343 { (exit 1); exit 1; }; } ;;
17344esac
17345else
17346 if test "$cross_compiling" = yes; then
0093c2fc
VZ
17347 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17348echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17349 { (exit 1); exit 1; }; }
17350else
17351 cat >conftest.$ac_ext <<_ACEOF
17352/* confdefs.h. */
17353_ACEOF
17354cat confdefs.h >>conftest.$ac_ext
17355cat >>conftest.$ac_ext <<_ACEOF
17356/* end confdefs.h. */
17357$ac_includes_default
17358long longval () { return (long) (sizeof (short)); }
17359unsigned long ulongval () { return (long) (sizeof (short)); }
17360#include <stdio.h>
17361#include <stdlib.h>
17362int
17363main ()
17364{
17365
17366 FILE *f = fopen ("conftest.val", "w");
17367 if (! f)
17368 exit (1);
17369 if (((long) (sizeof (short))) < 0)
17370 {
17371 long i = longval ();
17372 if (i != ((long) (sizeof (short))))
17373 exit (1);
17374 fprintf (f, "%ld\n", i);
17375 }
17376 else
17377 {
17378 unsigned long i = ulongval ();
17379 if (i != ((long) (sizeof (short))))
17380 exit (1);
17381 fprintf (f, "%lu\n", i);
17382 }
17383 exit (ferror (f) || fclose (f) != 0);
17384
17385 ;
17386 return 0;
17387}
17388_ACEOF
17389rm -f conftest$ac_exeext
17390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17391 (eval $ac_link) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_cv_sizeof_short=`cat conftest.val`
17401else
17402 echo "$as_me: program exited with status $ac_status" >&5
17403echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
17406( exit $ac_status )
17407{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17408See \`config.log' for more details." >&5
17409echo "$as_me: error: cannot compute sizeof (short), 77
17410See \`config.log' for more details." >&2;}
17411 { (exit 1); exit 1; }; }
17412fi
ac1cb8d3 17413rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17414fi
17415fi
17416rm -f conftest.val
17417else
17418 ac_cv_sizeof_short=0
17419fi
17420fi
17421echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17422echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17423cat >>confdefs.h <<_ACEOF
17424#define SIZEOF_SHORT $ac_cv_sizeof_short
17425_ACEOF
17426
17427
17428echo "$as_me:$LINENO: checking for void *" >&5
17429echo $ECHO_N "checking for void *... $ECHO_C" >&6
17430if test "${ac_cv_type_void_p+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17432else
17433 cat >conftest.$ac_ext <<_ACEOF
17434/* confdefs.h. */
17435_ACEOF
17436cat confdefs.h >>conftest.$ac_ext
17437cat >>conftest.$ac_ext <<_ACEOF
17438/* end confdefs.h. */
17439$ac_includes_default
17440int
17441main ()
17442{
17443if ((void * *) 0)
17444 return 0;
17445if (sizeof (void *))
17446 return 0;
17447 ;
17448 return 0;
17449}
17450_ACEOF
17451rm -f conftest.$ac_objext
17452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17453 (eval $ac_compile) 2>conftest.er1
a848cd7e 17454 ac_status=$?
ac1cb8d3
VS
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
a848cd7e
SC
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
0093c2fc 17460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 ac_cv_type_void_p=yes
17473else
17474 echo "$as_me: failed program was:" >&5
17475sed 's/^/| /' conftest.$ac_ext >&5
17476
17477ac_cv_type_void_p=no
17478fi
ac1cb8d3 17479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17480fi
17481echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17482echo "${ECHO_T}$ac_cv_type_void_p" >&6
17483
17484echo "$as_me:$LINENO: checking size of void *" >&5
17485echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17486if test "${ac_cv_sizeof_void_p+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488else
17489 if test "$ac_cv_type_void_p" = yes; then
17490 # The cast to unsigned long works around a bug in the HP C Compiler
17491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17493 # This bug is HP SR number 8606223364.
17494 if test "$cross_compiling" = yes; then
17495 # Depending upon the size, compute the lo and hi bounds.
17496cat >conftest.$ac_ext <<_ACEOF
17497/* confdefs.h. */
17498_ACEOF
17499cat confdefs.h >>conftest.$ac_ext
17500cat >>conftest.$ac_ext <<_ACEOF
17501/* end confdefs.h. */
17502$ac_includes_default
17503int
17504main ()
17505{
17506static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17507test_array [0] = 0
17508
17509 ;
17510 return 0;
17511}
17512_ACEOF
17513rm -f conftest.$ac_objext
17514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17515 (eval $ac_compile) 2>conftest.er1
a848cd7e 17516 ac_status=$?
ac1cb8d3
VS
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
a848cd7e
SC
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
0093c2fc 17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17534 ac_lo=0 ac_mid=0
17535 while :; do
17536 cat >conftest.$ac_ext <<_ACEOF
17537/* confdefs.h. */
17538_ACEOF
17539cat confdefs.h >>conftest.$ac_ext
17540cat >>conftest.$ac_ext <<_ACEOF
17541/* end confdefs.h. */
17542$ac_includes_default
17543int
17544main ()
17545{
17546static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17547test_array [0] = 0
17548
17549 ;
17550 return 0;
17551}
17552_ACEOF
17553rm -f conftest.$ac_objext
17554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17555 (eval $ac_compile) 2>conftest.er1
a848cd7e 17556 ac_status=$?
ac1cb8d3
VS
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
a848cd7e
SC
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } &&
0093c2fc 17562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; } &&
17568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 ac_hi=$ac_mid; break
17575else
17576 echo "$as_me: failed program was:" >&5
17577sed 's/^/| /' conftest.$ac_ext >&5
17578
17579ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17580 if test $ac_lo -le $ac_mid; then
17581 ac_lo= ac_hi=
17582 break
17583 fi
17584 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17585fi
ac1cb8d3 17586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17587 done
17588else
17589 echo "$as_me: failed program was:" >&5
17590sed 's/^/| /' conftest.$ac_ext >&5
17591
17592cat >conftest.$ac_ext <<_ACEOF
17593/* confdefs.h. */
17594_ACEOF
17595cat confdefs.h >>conftest.$ac_ext
17596cat >>conftest.$ac_ext <<_ACEOF
17597/* end confdefs.h. */
17598$ac_includes_default
17599int
17600main ()
17601{
17602static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17603test_array [0] = 0
17604
17605 ;
17606 return 0;
17607}
17608_ACEOF
17609rm -f conftest.$ac_objext
17610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17611 (eval $ac_compile) 2>conftest.er1
a848cd7e 17612 ac_status=$?
ac1cb8d3
VS
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
a848cd7e
SC
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
0093c2fc 17618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_hi=-1 ac_mid=-1
17631 while :; do
17632 cat >conftest.$ac_ext <<_ACEOF
17633/* confdefs.h. */
17634_ACEOF
17635cat confdefs.h >>conftest.$ac_ext
17636cat >>conftest.$ac_ext <<_ACEOF
17637/* end confdefs.h. */
17638$ac_includes_default
17639int
17640main ()
17641{
17642static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17643test_array [0] = 0
17644
17645 ;
17646 return 0;
17647}
17648_ACEOF
17649rm -f conftest.$ac_objext
17650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17651 (eval $ac_compile) 2>conftest.er1
a848cd7e 17652 ac_status=$?
ac1cb8d3
VS
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
a848cd7e
SC
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
0093c2fc 17658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 ac_lo=$ac_mid; break
17671else
17672 echo "$as_me: failed program was:" >&5
17673sed 's/^/| /' conftest.$ac_ext >&5
17674
17675ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17676 if test $ac_mid -le $ac_hi; then
17677 ac_lo= ac_hi=
17678 break
17679 fi
17680 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17681fi
ac1cb8d3 17682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17683 done
17684else
17685 echo "$as_me: failed program was:" >&5
17686sed 's/^/| /' conftest.$ac_ext >&5
17687
17688ac_lo= ac_hi=
17689fi
ac1cb8d3 17690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17691fi
ac1cb8d3 17692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17693# Binary search between lo and hi bounds.
17694while test "x$ac_lo" != "x$ac_hi"; do
17695 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17696 cat >conftest.$ac_ext <<_ACEOF
17697/* confdefs.h. */
17698_ACEOF
17699cat confdefs.h >>conftest.$ac_ext
17700cat >>conftest.$ac_ext <<_ACEOF
17701/* end confdefs.h. */
17702$ac_includes_default
17703int
17704main ()
17705{
17706static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17707test_array [0] = 0
17708
17709 ;
17710 return 0;
17711}
17712_ACEOF
17713rm -f conftest.$ac_objext
17714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17715 (eval $ac_compile) 2>conftest.er1
a848cd7e 17716 ac_status=$?
ac1cb8d3
VS
17717 grep -v '^ *+' conftest.er1 >conftest.err
17718 rm -f conftest.er1
17719 cat conftest.err >&5
a848cd7e
SC
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
0093c2fc 17722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 ac_hi=$ac_mid
17735else
17736 echo "$as_me: failed program was:" >&5
17737sed 's/^/| /' conftest.$ac_ext >&5
17738
17739ac_lo=`expr '(' $ac_mid ')' + 1`
17740fi
ac1cb8d3 17741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17742done
17743case $ac_lo in
17744?*) ac_cv_sizeof_void_p=$ac_lo;;
17745'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17746See \`config.log' for more details." >&5
17747echo "$as_me: error: cannot compute sizeof (void *), 77
17748See \`config.log' for more details." >&2;}
17749 { (exit 1); exit 1; }; } ;;
17750esac
17751else
17752 if test "$cross_compiling" = yes; then
0093c2fc
VZ
17753 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17754echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17755 { (exit 1); exit 1; }; }
17756else
17757 cat >conftest.$ac_ext <<_ACEOF
17758/* confdefs.h. */
17759_ACEOF
17760cat confdefs.h >>conftest.$ac_ext
17761cat >>conftest.$ac_ext <<_ACEOF
17762/* end confdefs.h. */
17763$ac_includes_default
17764long longval () { return (long) (sizeof (void *)); }
17765unsigned long ulongval () { return (long) (sizeof (void *)); }
17766#include <stdio.h>
17767#include <stdlib.h>
17768int
17769main ()
17770{
17771
17772 FILE *f = fopen ("conftest.val", "w");
17773 if (! f)
17774 exit (1);
17775 if (((long) (sizeof (void *))) < 0)
17776 {
17777 long i = longval ();
17778 if (i != ((long) (sizeof (void *))))
17779 exit (1);
17780 fprintf (f, "%ld\n", i);
17781 }
17782 else
17783 {
17784 unsigned long i = ulongval ();
17785 if (i != ((long) (sizeof (void *))))
17786 exit (1);
17787 fprintf (f, "%lu\n", i);
17788 }
17789 exit (ferror (f) || fclose (f) != 0);
17790
17791 ;
17792 return 0;
17793}
17794_ACEOF
17795rm -f conftest$ac_exeext
17796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17797 (eval $ac_link) 2>&5
17798 ac_status=$?
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_cv_sizeof_void_p=`cat conftest.val`
17807else
17808 echo "$as_me: program exited with status $ac_status" >&5
17809echo "$as_me: failed program was:" >&5
17810sed 's/^/| /' conftest.$ac_ext >&5
17811
17812( exit $ac_status )
17813{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17814See \`config.log' for more details." >&5
17815echo "$as_me: error: cannot compute sizeof (void *), 77
17816See \`config.log' for more details." >&2;}
17817 { (exit 1); exit 1; }; }
17818fi
ac1cb8d3 17819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17820fi
17821fi
17822rm -f conftest.val
17823else
17824 ac_cv_sizeof_void_p=0
17825fi
17826fi
17827echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17828echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17829cat >>confdefs.h <<_ACEOF
17830#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17831_ACEOF
17832
17833
17834echo "$as_me:$LINENO: checking for int" >&5
17835echo $ECHO_N "checking for int... $ECHO_C" >&6
17836if test "${ac_cv_type_int+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17838else
17839 cat >conftest.$ac_ext <<_ACEOF
17840/* confdefs.h. */
17841_ACEOF
17842cat confdefs.h >>conftest.$ac_ext
17843cat >>conftest.$ac_ext <<_ACEOF
17844/* end confdefs.h. */
17845$ac_includes_default
17846int
17847main ()
17848{
17849if ((int *) 0)
17850 return 0;
17851if (sizeof (int))
17852 return 0;
17853 ;
17854 return 0;
17855}
17856_ACEOF
17857rm -f conftest.$ac_objext
17858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17859 (eval $ac_compile) 2>conftest.er1
a848cd7e 17860 ac_status=$?
ac1cb8d3
VS
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
a848cd7e
SC
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
0093c2fc 17866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_type_int=yes
17879else
17880 echo "$as_me: failed program was:" >&5
17881sed 's/^/| /' conftest.$ac_ext >&5
17882
17883ac_cv_type_int=no
17884fi
ac1cb8d3 17885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17886fi
17887echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17888echo "${ECHO_T}$ac_cv_type_int" >&6
17889
17890echo "$as_me:$LINENO: checking size of int" >&5
17891echo $ECHO_N "checking size of int... $ECHO_C" >&6
17892if test "${ac_cv_sizeof_int+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894else
17895 if test "$ac_cv_type_int" = yes; then
17896 # The cast to unsigned long works around a bug in the HP C Compiler
17897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17899 # This bug is HP SR number 8606223364.
17900 if test "$cross_compiling" = yes; then
17901 # Depending upon the size, compute the lo and hi bounds.
17902cat >conftest.$ac_ext <<_ACEOF
17903/* confdefs.h. */
17904_ACEOF
17905cat confdefs.h >>conftest.$ac_ext
17906cat >>conftest.$ac_ext <<_ACEOF
17907/* end confdefs.h. */
17908$ac_includes_default
17909int
17910main ()
17911{
17912static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17913test_array [0] = 0
17914
17915 ;
17916 return 0;
17917}
17918_ACEOF
17919rm -f conftest.$ac_objext
17920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17921 (eval $ac_compile) 2>conftest.er1
a848cd7e 17922 ac_status=$?
ac1cb8d3
VS
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
a848cd7e
SC
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
0093c2fc 17928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_lo=0 ac_mid=0
17941 while :; do
17942 cat >conftest.$ac_ext <<_ACEOF
17943/* confdefs.h. */
17944_ACEOF
17945cat confdefs.h >>conftest.$ac_ext
17946cat >>conftest.$ac_ext <<_ACEOF
17947/* end confdefs.h. */
17948$ac_includes_default
17949int
17950main ()
17951{
17952static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17953test_array [0] = 0
17954
17955 ;
17956 return 0;
17957}
17958_ACEOF
17959rm -f conftest.$ac_objext
17960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17961 (eval $ac_compile) 2>conftest.er1
a848cd7e 17962 ac_status=$?
ac1cb8d3
VS
17963 grep -v '^ *+' conftest.er1 >conftest.err
17964 rm -f conftest.er1
17965 cat conftest.err >&5
a848cd7e
SC
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
0093c2fc 17968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17980 ac_hi=$ac_mid; break
17981else
17982 echo "$as_me: failed program was:" >&5
17983sed 's/^/| /' conftest.$ac_ext >&5
17984
17985ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17986 if test $ac_lo -le $ac_mid; then
17987 ac_lo= ac_hi=
17988 break
17989 fi
17990 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17991fi
ac1cb8d3 17992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17993 done
17994else
17995 echo "$as_me: failed program was:" >&5
17996sed 's/^/| /' conftest.$ac_ext >&5
17997
17998cat >conftest.$ac_ext <<_ACEOF
17999/* confdefs.h. */
18000_ACEOF
18001cat confdefs.h >>conftest.$ac_ext
18002cat >>conftest.$ac_ext <<_ACEOF
18003/* end confdefs.h. */
18004$ac_includes_default
18005int
18006main ()
18007{
18008static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18009test_array [0] = 0
18010
18011 ;
18012 return 0;
18013}
18014_ACEOF
18015rm -f conftest.$ac_objext
18016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18017 (eval $ac_compile) 2>conftest.er1
a848cd7e 18018 ac_status=$?
ac1cb8d3
VS
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
a848cd7e
SC
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
0093c2fc 18024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_hi=-1 ac_mid=-1
18037 while :; do
18038 cat >conftest.$ac_ext <<_ACEOF
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044$ac_includes_default
18045int
18046main ()
18047{
18048static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18049test_array [0] = 0
18050
18051 ;
18052 return 0;
18053}
18054_ACEOF
18055rm -f conftest.$ac_objext
18056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18057 (eval $ac_compile) 2>conftest.er1
a848cd7e 18058 ac_status=$?
ac1cb8d3
VS
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
a848cd7e
SC
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } &&
0093c2fc 18064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } &&
18070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076 ac_lo=$ac_mid; break
18077else
18078 echo "$as_me: failed program was:" >&5
18079sed 's/^/| /' conftest.$ac_ext >&5
18080
18081ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18082 if test $ac_mid -le $ac_hi; then
18083 ac_lo= ac_hi=
18084 break
18085 fi
18086 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18087fi
ac1cb8d3 18088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18089 done
18090else
18091 echo "$as_me: failed program was:" >&5
18092sed 's/^/| /' conftest.$ac_ext >&5
18093
18094ac_lo= ac_hi=
18095fi
ac1cb8d3 18096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18097fi
ac1cb8d3 18098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18099# Binary search between lo and hi bounds.
18100while test "x$ac_lo" != "x$ac_hi"; do
18101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18102 cat >conftest.$ac_ext <<_ACEOF
18103/* confdefs.h. */
18104_ACEOF
18105cat confdefs.h >>conftest.$ac_ext
18106cat >>conftest.$ac_ext <<_ACEOF
18107/* end confdefs.h. */
18108$ac_includes_default
18109int
18110main ()
18111{
18112static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18113test_array [0] = 0
18114
18115 ;
18116 return 0;
18117}
18118_ACEOF
18119rm -f conftest.$ac_objext
18120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18121 (eval $ac_compile) 2>conftest.er1
a848cd7e 18122 ac_status=$?
ac1cb8d3
VS
18123 grep -v '^ *+' conftest.er1 >conftest.err
18124 rm -f conftest.er1
18125 cat conftest.err >&5
a848cd7e
SC
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } &&
0093c2fc 18128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; } &&
18134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 ac_hi=$ac_mid
18141else
18142 echo "$as_me: failed program was:" >&5
18143sed 's/^/| /' conftest.$ac_ext >&5
18144
18145ac_lo=`expr '(' $ac_mid ')' + 1`
18146fi
ac1cb8d3 18147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18148done
18149case $ac_lo in
18150?*) ac_cv_sizeof_int=$ac_lo;;
18151'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18152See \`config.log' for more details." >&5
18153echo "$as_me: error: cannot compute sizeof (int), 77
18154See \`config.log' for more details." >&2;}
18155 { (exit 1); exit 1; }; } ;;
18156esac
18157else
18158 if test "$cross_compiling" = yes; then
0093c2fc
VZ
18159 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18160echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18161 { (exit 1); exit 1; }; }
18162else
18163 cat >conftest.$ac_ext <<_ACEOF
18164/* confdefs.h. */
18165_ACEOF
18166cat confdefs.h >>conftest.$ac_ext
18167cat >>conftest.$ac_ext <<_ACEOF
18168/* end confdefs.h. */
18169$ac_includes_default
18170long longval () { return (long) (sizeof (int)); }
18171unsigned long ulongval () { return (long) (sizeof (int)); }
18172#include <stdio.h>
18173#include <stdlib.h>
18174int
18175main ()
18176{
18177
18178 FILE *f = fopen ("conftest.val", "w");
18179 if (! f)
18180 exit (1);
18181 if (((long) (sizeof (int))) < 0)
18182 {
18183 long i = longval ();
18184 if (i != ((long) (sizeof (int))))
18185 exit (1);
18186 fprintf (f, "%ld\n", i);
18187 }
18188 else
18189 {
18190 unsigned long i = ulongval ();
18191 if (i != ((long) (sizeof (int))))
18192 exit (1);
18193 fprintf (f, "%lu\n", i);
18194 }
18195 exit (ferror (f) || fclose (f) != 0);
18196
18197 ;
18198 return 0;
18199}
18200_ACEOF
18201rm -f conftest$ac_exeext
18202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203 (eval $ac_link) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18212 ac_cv_sizeof_int=`cat conftest.val`
18213else
18214 echo "$as_me: program exited with status $ac_status" >&5
18215echo "$as_me: failed program was:" >&5
18216sed 's/^/| /' conftest.$ac_ext >&5
18217
18218( exit $ac_status )
18219{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18220See \`config.log' for more details." >&5
18221echo "$as_me: error: cannot compute sizeof (int), 77
18222See \`config.log' for more details." >&2;}
18223 { (exit 1); exit 1; }; }
18224fi
ac1cb8d3 18225rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18226fi
18227fi
18228rm -f conftest.val
18229else
18230 ac_cv_sizeof_int=0
18231fi
18232fi
18233echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18234echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18235cat >>confdefs.h <<_ACEOF
18236#define SIZEOF_INT $ac_cv_sizeof_int
18237_ACEOF
18238
18239
18240echo "$as_me:$LINENO: checking for long" >&5
18241echo $ECHO_N "checking for long... $ECHO_C" >&6
18242if test "${ac_cv_type_long+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18244else
18245 cat >conftest.$ac_ext <<_ACEOF
18246/* confdefs.h. */
18247_ACEOF
18248cat confdefs.h >>conftest.$ac_ext
18249cat >>conftest.$ac_ext <<_ACEOF
18250/* end confdefs.h. */
18251$ac_includes_default
18252int
18253main ()
18254{
18255if ((long *) 0)
18256 return 0;
18257if (sizeof (long))
18258 return 0;
18259 ;
18260 return 0;
18261}
18262_ACEOF
18263rm -f conftest.$ac_objext
18264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18265 (eval $ac_compile) 2>conftest.er1
a848cd7e 18266 ac_status=$?
ac1cb8d3
VS
18267 grep -v '^ *+' conftest.er1 >conftest.err
18268 rm -f conftest.er1
18269 cat conftest.err >&5
a848cd7e
SC
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } &&
0093c2fc 18272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; } &&
18278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 ac_cv_type_long=yes
18285else
18286 echo "$as_me: failed program was:" >&5
18287sed 's/^/| /' conftest.$ac_ext >&5
18288
18289ac_cv_type_long=no
18290fi
ac1cb8d3 18291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18292fi
18293echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18294echo "${ECHO_T}$ac_cv_type_long" >&6
18295
18296echo "$as_me:$LINENO: checking size of long" >&5
18297echo $ECHO_N "checking size of long... $ECHO_C" >&6
18298if test "${ac_cv_sizeof_long+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300else
18301 if test "$ac_cv_type_long" = yes; then
18302 # The cast to unsigned long works around a bug in the HP C Compiler
18303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18305 # This bug is HP SR number 8606223364.
18306 if test "$cross_compiling" = yes; then
18307 # Depending upon the size, compute the lo and hi bounds.
18308cat >conftest.$ac_ext <<_ACEOF
18309/* confdefs.h. */
18310_ACEOF
18311cat confdefs.h >>conftest.$ac_ext
18312cat >>conftest.$ac_ext <<_ACEOF
18313/* end confdefs.h. */
18314$ac_includes_default
18315int
18316main ()
18317{
18318static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18319test_array [0] = 0
18320
18321 ;
18322 return 0;
18323}
18324_ACEOF
18325rm -f conftest.$ac_objext
18326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18327 (eval $ac_compile) 2>conftest.er1
a848cd7e 18328 ac_status=$?
ac1cb8d3
VS
18329 grep -v '^ *+' conftest.er1 >conftest.err
18330 rm -f conftest.er1
18331 cat conftest.err >&5
a848cd7e
SC
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
0093c2fc 18334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
18346 ac_lo=0 ac_mid=0
18347 while :; do
18348 cat >conftest.$ac_ext <<_ACEOF
18349/* confdefs.h. */
18350_ACEOF
18351cat confdefs.h >>conftest.$ac_ext
18352cat >>conftest.$ac_ext <<_ACEOF
18353/* end confdefs.h. */
18354$ac_includes_default
18355int
18356main ()
18357{
18358static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18359test_array [0] = 0
18360
18361 ;
18362 return 0;
18363}
18364_ACEOF
18365rm -f conftest.$ac_objext
18366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18367 (eval $ac_compile) 2>conftest.er1
a848cd7e 18368 ac_status=$?
ac1cb8d3
VS
18369 grep -v '^ *+' conftest.er1 >conftest.err
18370 rm -f conftest.er1
18371 cat conftest.err >&5
a848cd7e
SC
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
0093c2fc 18374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; } &&
18380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 ac_hi=$ac_mid; break
18387else
18388 echo "$as_me: failed program was:" >&5
18389sed 's/^/| /' conftest.$ac_ext >&5
18390
18391ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18392 if test $ac_lo -le $ac_mid; then
18393 ac_lo= ac_hi=
18394 break
18395 fi
18396 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18397fi
ac1cb8d3 18398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18399 done
18400else
18401 echo "$as_me: failed program was:" >&5
18402sed 's/^/| /' conftest.$ac_ext >&5
18403
18404cat >conftest.$ac_ext <<_ACEOF
18405/* confdefs.h. */
18406_ACEOF
18407cat confdefs.h >>conftest.$ac_ext
18408cat >>conftest.$ac_ext <<_ACEOF
18409/* end confdefs.h. */
18410$ac_includes_default
18411int
18412main ()
18413{
18414static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18415test_array [0] = 0
18416
18417 ;
18418 return 0;
18419}
18420_ACEOF
18421rm -f conftest.$ac_objext
18422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18423 (eval $ac_compile) 2>conftest.er1
a848cd7e 18424 ac_status=$?
ac1cb8d3
VS
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
a848cd7e
SC
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
0093c2fc 18430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_hi=-1 ac_mid=-1
18443 while :; do
18444 cat >conftest.$ac_ext <<_ACEOF
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450$ac_includes_default
18451int
18452main ()
18453{
18454static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18455test_array [0] = 0
18456
18457 ;
18458 return 0;
18459}
18460_ACEOF
18461rm -f conftest.$ac_objext
18462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18463 (eval $ac_compile) 2>conftest.er1
a848cd7e 18464 ac_status=$?
ac1cb8d3
VS
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
a848cd7e
SC
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
0093c2fc 18470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; } &&
18476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; }; then
18482 ac_lo=$ac_mid; break
18483else
18484 echo "$as_me: failed program was:" >&5
18485sed 's/^/| /' conftest.$ac_ext >&5
18486
18487ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18488 if test $ac_mid -le $ac_hi; then
18489 ac_lo= ac_hi=
18490 break
18491 fi
18492 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18493fi
ac1cb8d3 18494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18495 done
18496else
18497 echo "$as_me: failed program was:" >&5
18498sed 's/^/| /' conftest.$ac_ext >&5
18499
18500ac_lo= ac_hi=
18501fi
ac1cb8d3 18502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18503fi
ac1cb8d3 18504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18505# Binary search between lo and hi bounds.
18506while test "x$ac_lo" != "x$ac_hi"; do
18507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18508 cat >conftest.$ac_ext <<_ACEOF
18509/* confdefs.h. */
18510_ACEOF
18511cat confdefs.h >>conftest.$ac_ext
18512cat >>conftest.$ac_ext <<_ACEOF
18513/* end confdefs.h. */
18514$ac_includes_default
18515int
18516main ()
18517{
18518static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18519test_array [0] = 0
18520
18521 ;
18522 return 0;
18523}
18524_ACEOF
18525rm -f conftest.$ac_objext
18526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18527 (eval $ac_compile) 2>conftest.er1
a848cd7e 18528 ac_status=$?
ac1cb8d3
VS
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
a848cd7e
SC
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
0093c2fc 18534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; } &&
18540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_hi=$ac_mid
18547else
18548 echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
18551ac_lo=`expr '(' $ac_mid ')' + 1`
18552fi
ac1cb8d3 18553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18554done
18555case $ac_lo in
18556?*) ac_cv_sizeof_long=$ac_lo;;
18557'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18558See \`config.log' for more details." >&5
18559echo "$as_me: error: cannot compute sizeof (long), 77
18560See \`config.log' for more details." >&2;}
18561 { (exit 1); exit 1; }; } ;;
18562esac
18563else
18564 if test "$cross_compiling" = yes; then
0093c2fc
VZ
18565 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18566echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18567 { (exit 1); exit 1; }; }
18568else
18569 cat >conftest.$ac_ext <<_ACEOF
18570/* confdefs.h. */
18571_ACEOF
18572cat confdefs.h >>conftest.$ac_ext
18573cat >>conftest.$ac_ext <<_ACEOF
18574/* end confdefs.h. */
18575$ac_includes_default
18576long longval () { return (long) (sizeof (long)); }
18577unsigned long ulongval () { return (long) (sizeof (long)); }
18578#include <stdio.h>
18579#include <stdlib.h>
18580int
18581main ()
18582{
18583
18584 FILE *f = fopen ("conftest.val", "w");
18585 if (! f)
18586 exit (1);
18587 if (((long) (sizeof (long))) < 0)
18588 {
18589 long i = longval ();
18590 if (i != ((long) (sizeof (long))))
18591 exit (1);
18592 fprintf (f, "%ld\n", i);
18593 }
18594 else
18595 {
18596 unsigned long i = ulongval ();
18597 if (i != ((long) (sizeof (long))))
18598 exit (1);
18599 fprintf (f, "%lu\n", i);
18600 }
18601 exit (ferror (f) || fclose (f) != 0);
18602
18603 ;
18604 return 0;
18605}
18606_ACEOF
18607rm -f conftest$ac_exeext
18608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609 (eval $ac_link) 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_sizeof_long=`cat conftest.val`
18619else
18620 echo "$as_me: program exited with status $ac_status" >&5
18621echo "$as_me: failed program was:" >&5
18622sed 's/^/| /' conftest.$ac_ext >&5
18623
18624( exit $ac_status )
18625{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18626See \`config.log' for more details." >&5
18627echo "$as_me: error: cannot compute sizeof (long), 77
18628See \`config.log' for more details." >&2;}
18629 { (exit 1); exit 1; }; }
18630fi
ac1cb8d3 18631rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18632fi
18633fi
18634rm -f conftest.val
18635else
18636 ac_cv_sizeof_long=0
18637fi
18638fi
18639echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18640echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18641cat >>confdefs.h <<_ACEOF
18642#define SIZEOF_LONG $ac_cv_sizeof_long
18643_ACEOF
18644
18645
18646echo "$as_me:$LINENO: checking for size_t" >&5
18647echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18648if test "${ac_cv_type_size_t+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18650else
18651 cat >conftest.$ac_ext <<_ACEOF
18652/* confdefs.h. */
18653_ACEOF
18654cat confdefs.h >>conftest.$ac_ext
18655cat >>conftest.$ac_ext <<_ACEOF
18656/* end confdefs.h. */
18657$ac_includes_default
18658int
18659main ()
18660{
18661if ((size_t *) 0)
18662 return 0;
18663if (sizeof (size_t))
18664 return 0;
18665 ;
18666 return 0;
18667}
18668_ACEOF
18669rm -f conftest.$ac_objext
18670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18671 (eval $ac_compile) 2>conftest.er1
a848cd7e 18672 ac_status=$?
ac1cb8d3
VS
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
a848cd7e
SC
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
0093c2fc 18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; } &&
18684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 ac_cv_type_size_t=yes
18691else
18692 echo "$as_me: failed program was:" >&5
18693sed 's/^/| /' conftest.$ac_ext >&5
18694
18695ac_cv_type_size_t=no
18696fi
ac1cb8d3 18697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18698fi
18699echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18700echo "${ECHO_T}$ac_cv_type_size_t" >&6
18701
18702echo "$as_me:$LINENO: checking size of size_t" >&5
18703echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18704if test "${ac_cv_sizeof_size_t+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706else
18707 if test "$ac_cv_type_size_t" = yes; then
18708 # The cast to unsigned long works around a bug in the HP C Compiler
18709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18711 # This bug is HP SR number 8606223364.
18712 if test "$cross_compiling" = yes; then
18713 # Depending upon the size, compute the lo and hi bounds.
18714cat >conftest.$ac_ext <<_ACEOF
18715/* confdefs.h. */
18716_ACEOF
18717cat confdefs.h >>conftest.$ac_ext
18718cat >>conftest.$ac_ext <<_ACEOF
18719/* end confdefs.h. */
18720$ac_includes_default
18721int
18722main ()
18723{
18724static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18725test_array [0] = 0
18726
18727 ;
18728 return 0;
18729}
18730_ACEOF
18731rm -f conftest.$ac_objext
18732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18733 (eval $ac_compile) 2>conftest.er1
a848cd7e 18734 ac_status=$?
ac1cb8d3
VS
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
a848cd7e
SC
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
0093c2fc 18740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; } &&
18746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_lo=0 ac_mid=0
18753 while :; do
18754 cat >conftest.$ac_ext <<_ACEOF
18755/* confdefs.h. */
18756_ACEOF
18757cat confdefs.h >>conftest.$ac_ext
18758cat >>conftest.$ac_ext <<_ACEOF
18759/* end confdefs.h. */
18760$ac_includes_default
18761int
18762main ()
18763{
18764static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18765test_array [0] = 0
18766
18767 ;
18768 return 0;
18769}
18770_ACEOF
18771rm -f conftest.$ac_objext
18772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18773 (eval $ac_compile) 2>conftest.er1
a848cd7e 18774 ac_status=$?
ac1cb8d3
VS
18775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -f conftest.er1
18777 cat conftest.err >&5
a848cd7e
SC
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
0093c2fc 18780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; }; then
18792 ac_hi=$ac_mid; break
18793else
18794 echo "$as_me: failed program was:" >&5
18795sed 's/^/| /' conftest.$ac_ext >&5
18796
18797ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18798 if test $ac_lo -le $ac_mid; then
18799 ac_lo= ac_hi=
18800 break
18801 fi
18802 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18803fi
ac1cb8d3 18804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18805 done
18806else
18807 echo "$as_me: failed program was:" >&5
18808sed 's/^/| /' conftest.$ac_ext >&5
18809
18810cat >conftest.$ac_ext <<_ACEOF
18811/* confdefs.h. */
18812_ACEOF
18813cat confdefs.h >>conftest.$ac_ext
18814cat >>conftest.$ac_ext <<_ACEOF
18815/* end confdefs.h. */
18816$ac_includes_default
18817int
18818main ()
18819{
18820static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18821test_array [0] = 0
18822
18823 ;
18824 return 0;
18825}
18826_ACEOF
18827rm -f conftest.$ac_objext
18828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18829 (eval $ac_compile) 2>conftest.er1
a848cd7e 18830 ac_status=$?
ac1cb8d3
VS
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
a848cd7e
SC
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
0093c2fc 18836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; } &&
18842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; }; then
18848 ac_hi=-1 ac_mid=-1
18849 while :; do
18850 cat >conftest.$ac_ext <<_ACEOF
18851/* confdefs.h. */
18852_ACEOF
18853cat confdefs.h >>conftest.$ac_ext
18854cat >>conftest.$ac_ext <<_ACEOF
18855/* end confdefs.h. */
18856$ac_includes_default
18857int
18858main ()
18859{
18860static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18861test_array [0] = 0
18862
18863 ;
18864 return 0;
18865}
18866_ACEOF
18867rm -f conftest.$ac_objext
18868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18869 (eval $ac_compile) 2>conftest.er1
a848cd7e 18870 ac_status=$?
ac1cb8d3
VS
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
a848cd7e
SC
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
0093c2fc 18876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_lo=$ac_mid; break
18889else
18890 echo "$as_me: failed program was:" >&5
18891sed 's/^/| /' conftest.$ac_ext >&5
18892
18893ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18894 if test $ac_mid -le $ac_hi; then
18895 ac_lo= ac_hi=
18896 break
18897 fi
18898 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18899fi
ac1cb8d3 18900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18901 done
18902else
18903 echo "$as_me: failed program was:" >&5
18904sed 's/^/| /' conftest.$ac_ext >&5
18905
18906ac_lo= ac_hi=
18907fi
ac1cb8d3 18908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18909fi
ac1cb8d3 18910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18911# Binary search between lo and hi bounds.
18912while test "x$ac_lo" != "x$ac_hi"; do
18913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18914 cat >conftest.$ac_ext <<_ACEOF
18915/* confdefs.h. */
18916_ACEOF
18917cat confdefs.h >>conftest.$ac_ext
18918cat >>conftest.$ac_ext <<_ACEOF
18919/* end confdefs.h. */
18920$ac_includes_default
18921int
18922main ()
18923{
18924static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18925test_array [0] = 0
18926
18927 ;
18928 return 0;
18929}
18930_ACEOF
18931rm -f conftest.$ac_objext
18932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18933 (eval $ac_compile) 2>conftest.er1
a848cd7e 18934 ac_status=$?
ac1cb8d3
VS
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
a848cd7e
SC
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
0093c2fc 18940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; } &&
18946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; }; then
18952 ac_hi=$ac_mid
18953else
18954 echo "$as_me: failed program was:" >&5
18955sed 's/^/| /' conftest.$ac_ext >&5
18956
18957ac_lo=`expr '(' $ac_mid ')' + 1`
18958fi
ac1cb8d3 18959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18960done
18961case $ac_lo in
18962?*) ac_cv_sizeof_size_t=$ac_lo;;
18963'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18964See \`config.log' for more details." >&5
18965echo "$as_me: error: cannot compute sizeof (size_t), 77
18966See \`config.log' for more details." >&2;}
18967 { (exit 1); exit 1; }; } ;;
18968esac
18969else
18970 if test "$cross_compiling" = yes; then
0093c2fc
VZ
18971 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18972echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18973 { (exit 1); exit 1; }; }
18974else
18975 cat >conftest.$ac_ext <<_ACEOF
18976/* confdefs.h. */
18977_ACEOF
18978cat confdefs.h >>conftest.$ac_ext
18979cat >>conftest.$ac_ext <<_ACEOF
18980/* end confdefs.h. */
18981$ac_includes_default
18982long longval () { return (long) (sizeof (size_t)); }
18983unsigned long ulongval () { return (long) (sizeof (size_t)); }
18984#include <stdio.h>
18985#include <stdlib.h>
18986int
18987main ()
18988{
18989
18990 FILE *f = fopen ("conftest.val", "w");
18991 if (! f)
18992 exit (1);
18993 if (((long) (sizeof (size_t))) < 0)
18994 {
18995 long i = longval ();
18996 if (i != ((long) (sizeof (size_t))))
18997 exit (1);
18998 fprintf (f, "%ld\n", i);
18999 }
19000 else
19001 {
19002 unsigned long i = ulongval ();
19003 if (i != ((long) (sizeof (size_t))))
19004 exit (1);
19005 fprintf (f, "%lu\n", i);
19006 }
19007 exit (ferror (f) || fclose (f) != 0);
19008
19009 ;
19010 return 0;
19011}
19012_ACEOF
19013rm -f conftest$ac_exeext
19014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19015 (eval $ac_link) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_cv_sizeof_size_t=`cat conftest.val`
19025else
19026 echo "$as_me: program exited with status $ac_status" >&5
19027echo "$as_me: failed program was:" >&5
19028sed 's/^/| /' conftest.$ac_ext >&5
19029
19030( exit $ac_status )
19031{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19032See \`config.log' for more details." >&5
19033echo "$as_me: error: cannot compute sizeof (size_t), 77
19034See \`config.log' for more details." >&2;}
19035 { (exit 1); exit 1; }; }
19036fi
ac1cb8d3 19037rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19038fi
19039fi
19040rm -f conftest.val
19041else
19042 ac_cv_sizeof_size_t=0
19043fi
19044fi
19045echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19046echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19047cat >>confdefs.h <<_ACEOF
19048#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19049_ACEOF
19050
19051
19052
19053case "${host}" in
19054 arm-*-linux* )
19055 echo "$as_me:$LINENO: checking for long long" >&5
19056echo $ECHO_N "checking for long long... $ECHO_C" >&6
19057if test "${ac_cv_type_long_long+set}" = set; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19059else
19060 cat >conftest.$ac_ext <<_ACEOF
19061/* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
19065/* end confdefs.h. */
19066$ac_includes_default
19067int
19068main ()
19069{
19070if ((long long *) 0)
19071 return 0;
19072if (sizeof (long long))
19073 return 0;
19074 ;
19075 return 0;
19076}
19077_ACEOF
19078rm -f conftest.$ac_objext
19079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19080 (eval $ac_compile) 2>conftest.er1
a848cd7e 19081 ac_status=$?
ac1cb8d3
VS
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
a848cd7e
SC
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
0093c2fc 19087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_type_long_long=yes
19100else
19101 echo "$as_me: failed program was:" >&5
19102sed 's/^/| /' conftest.$ac_ext >&5
19103
19104ac_cv_type_long_long=no
19105fi
ac1cb8d3 19106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19107fi
19108echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19109echo "${ECHO_T}$ac_cv_type_long_long" >&6
19110
19111echo "$as_me:$LINENO: checking size of long long" >&5
19112echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19113if test "${ac_cv_sizeof_long_long+set}" = set; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19115else
19116 if test "$ac_cv_type_long_long" = yes; then
19117 # The cast to unsigned long works around a bug in the HP C Compiler
19118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19120 # This bug is HP SR number 8606223364.
19121 if test "$cross_compiling" = yes; then
19122 # Depending upon the size, compute the lo and hi bounds.
19123cat >conftest.$ac_ext <<_ACEOF
19124/* confdefs.h. */
19125_ACEOF
19126cat confdefs.h >>conftest.$ac_ext
19127cat >>conftest.$ac_ext <<_ACEOF
19128/* end confdefs.h. */
19129$ac_includes_default
19130int
19131main ()
19132{
19133static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19134test_array [0] = 0
19135
19136 ;
19137 return 0;
19138}
19139_ACEOF
19140rm -f conftest.$ac_objext
19141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19142 (eval $ac_compile) 2>conftest.er1
a848cd7e 19143 ac_status=$?
ac1cb8d3
VS
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
a848cd7e
SC
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } &&
0093c2fc 19149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_lo=0 ac_mid=0
19162 while :; do
19163 cat >conftest.$ac_ext <<_ACEOF
19164/* confdefs.h. */
19165_ACEOF
19166cat confdefs.h >>conftest.$ac_ext
19167cat >>conftest.$ac_ext <<_ACEOF
19168/* end confdefs.h. */
19169$ac_includes_default
19170int
19171main ()
19172{
19173static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19174test_array [0] = 0
19175
19176 ;
19177 return 0;
19178}
19179_ACEOF
19180rm -f conftest.$ac_objext
19181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19182 (eval $ac_compile) 2>conftest.er1
a848cd7e 19183 ac_status=$?
ac1cb8d3
VS
19184 grep -v '^ *+' conftest.er1 >conftest.err
19185 rm -f conftest.er1
19186 cat conftest.err >&5
a848cd7e
SC
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
0093c2fc 19189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; } &&
19195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_hi=$ac_mid; break
19202else
19203 echo "$as_me: failed program was:" >&5
19204sed 's/^/| /' conftest.$ac_ext >&5
19205
19206ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19207 if test $ac_lo -le $ac_mid; then
19208 ac_lo= ac_hi=
19209 break
19210 fi
19211 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19212fi
ac1cb8d3 19213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19214 done
19215else
19216 echo "$as_me: failed program was:" >&5
19217sed 's/^/| /' conftest.$ac_ext >&5
19218
19219cat >conftest.$ac_ext <<_ACEOF
19220/* confdefs.h. */
19221_ACEOF
19222cat confdefs.h >>conftest.$ac_ext
19223cat >>conftest.$ac_ext <<_ACEOF
19224/* end confdefs.h. */
19225$ac_includes_default
19226int
19227main ()
19228{
19229static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19230test_array [0] = 0
19231
19232 ;
19233 return 0;
19234}
19235_ACEOF
19236rm -f conftest.$ac_objext
19237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19238 (eval $ac_compile) 2>conftest.er1
a848cd7e 19239 ac_status=$?
ac1cb8d3
VS
19240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
a848cd7e
SC
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
0093c2fc 19245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 ac_hi=-1 ac_mid=-1
19258 while :; do
19259 cat >conftest.$ac_ext <<_ACEOF
19260/* confdefs.h. */
19261_ACEOF
19262cat confdefs.h >>conftest.$ac_ext
19263cat >>conftest.$ac_ext <<_ACEOF
19264/* end confdefs.h. */
19265$ac_includes_default
19266int
19267main ()
19268{
19269static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19270test_array [0] = 0
19271
19272 ;
19273 return 0;
19274}
19275_ACEOF
19276rm -f conftest.$ac_objext
19277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19278 (eval $ac_compile) 2>conftest.er1
a848cd7e 19279 ac_status=$?
ac1cb8d3
VS
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
a848cd7e
SC
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
0093c2fc 19285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 ac_lo=$ac_mid; break
19298else
19299 echo "$as_me: failed program was:" >&5
19300sed 's/^/| /' conftest.$ac_ext >&5
19301
19302ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19303 if test $ac_mid -le $ac_hi; then
19304 ac_lo= ac_hi=
19305 break
19306 fi
19307 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19308fi
ac1cb8d3 19309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19310 done
19311else
19312 echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315ac_lo= ac_hi=
19316fi
ac1cb8d3 19317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19318fi
ac1cb8d3 19319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19320# Binary search between lo and hi bounds.
19321while test "x$ac_lo" != "x$ac_hi"; do
19322 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19323 cat >conftest.$ac_ext <<_ACEOF
19324/* confdefs.h. */
19325_ACEOF
19326cat confdefs.h >>conftest.$ac_ext
19327cat >>conftest.$ac_ext <<_ACEOF
19328/* end confdefs.h. */
19329$ac_includes_default
19330int
19331main ()
19332{
19333static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19334test_array [0] = 0
19335
19336 ;
19337 return 0;
19338}
19339_ACEOF
19340rm -f conftest.$ac_objext
19341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19342 (eval $ac_compile) 2>conftest.er1
a848cd7e 19343 ac_status=$?
ac1cb8d3
VS
19344 grep -v '^ *+' conftest.er1 >conftest.err
19345 rm -f conftest.er1
19346 cat conftest.err >&5
a848cd7e
SC
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } &&
0093c2fc 19349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 ac_hi=$ac_mid
19362else
19363 echo "$as_me: failed program was:" >&5
19364sed 's/^/| /' conftest.$ac_ext >&5
19365
19366ac_lo=`expr '(' $ac_mid ')' + 1`
19367fi
ac1cb8d3 19368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19369done
19370case $ac_lo in
19371?*) ac_cv_sizeof_long_long=$ac_lo;;
19372'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19373See \`config.log' for more details." >&5
19374echo "$as_me: error: cannot compute sizeof (long long), 77
19375See \`config.log' for more details." >&2;}
19376 { (exit 1); exit 1; }; } ;;
19377esac
19378else
19379 if test "$cross_compiling" = yes; then
0093c2fc
VZ
19380 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19381echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19382 { (exit 1); exit 1; }; }
19383else
19384 cat >conftest.$ac_ext <<_ACEOF
19385/* confdefs.h. */
19386_ACEOF
19387cat confdefs.h >>conftest.$ac_ext
19388cat >>conftest.$ac_ext <<_ACEOF
19389/* end confdefs.h. */
19390$ac_includes_default
19391long longval () { return (long) (sizeof (long long)); }
19392unsigned long ulongval () { return (long) (sizeof (long long)); }
19393#include <stdio.h>
19394#include <stdlib.h>
19395int
19396main ()
19397{
19398
19399 FILE *f = fopen ("conftest.val", "w");
19400 if (! f)
19401 exit (1);
19402 if (((long) (sizeof (long long))) < 0)
19403 {
19404 long i = longval ();
19405 if (i != ((long) (sizeof (long long))))
19406 exit (1);
19407 fprintf (f, "%ld\n", i);
19408 }
19409 else
19410 {
19411 unsigned long i = ulongval ();
19412 if (i != ((long) (sizeof (long long))))
19413 exit (1);
19414 fprintf (f, "%lu\n", i);
19415 }
19416 exit (ferror (f) || fclose (f) != 0);
19417
19418 ;
19419 return 0;
19420}
19421_ACEOF
19422rm -f conftest$ac_exeext
19423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19424 (eval $ac_link) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 ac_cv_sizeof_long_long=`cat conftest.val`
19434else
19435 echo "$as_me: program exited with status $ac_status" >&5
19436echo "$as_me: failed program was:" >&5
19437sed 's/^/| /' conftest.$ac_ext >&5
19438
19439( exit $ac_status )
19440{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19441See \`config.log' for more details." >&5
19442echo "$as_me: error: cannot compute sizeof (long long), 77
19443See \`config.log' for more details." >&2;}
19444 { (exit 1); exit 1; }; }
19445fi
ac1cb8d3 19446rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19447fi
19448fi
19449rm -f conftest.val
19450else
19451 ac_cv_sizeof_long_long=0
19452fi
19453fi
19454echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19455echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19456cat >>confdefs.h <<_ACEOF
19457#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19458_ACEOF
19459
19460
19461 ;;
19462 *-hp-hpux* )
19463 echo "$as_me:$LINENO: checking for long long" >&5
19464echo $ECHO_N "checking for long long... $ECHO_C" >&6
19465if test "${ac_cv_type_long_long+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467else
19468 cat >conftest.$ac_ext <<_ACEOF
19469/* confdefs.h. */
19470_ACEOF
19471cat confdefs.h >>conftest.$ac_ext
19472cat >>conftest.$ac_ext <<_ACEOF
19473/* end confdefs.h. */
19474$ac_includes_default
19475int
19476main ()
19477{
19478if ((long long *) 0)
19479 return 0;
19480if (sizeof (long long))
19481 return 0;
19482 ;
19483 return 0;
19484}
19485_ACEOF
19486rm -f conftest.$ac_objext
19487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19488 (eval $ac_compile) 2>conftest.er1
a848cd7e 19489 ac_status=$?
ac1cb8d3
VS
19490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
a848cd7e
SC
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
0093c2fc 19495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497 (eval $ac_try) 2>&5
19498 ac_status=$?
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; } &&
19501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19504 ac_status=$?
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; }; then
19507 ac_cv_type_long_long=yes
19508else
19509 echo "$as_me: failed program was:" >&5
19510sed 's/^/| /' conftest.$ac_ext >&5
19511
19512ac_cv_type_long_long=no
19513fi
ac1cb8d3 19514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19515fi
19516echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19517echo "${ECHO_T}$ac_cv_type_long_long" >&6
19518
19519echo "$as_me:$LINENO: checking size of long long" >&5
19520echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19521if test "${ac_cv_sizeof_long_long+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19523else
19524 if test "$ac_cv_type_long_long" = yes; then
19525 # The cast to unsigned long works around a bug in the HP C Compiler
19526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19528 # This bug is HP SR number 8606223364.
19529 if test "$cross_compiling" = yes; then
19530 # Depending upon the size, compute the lo and hi bounds.
19531cat >conftest.$ac_ext <<_ACEOF
19532/* confdefs.h. */
19533_ACEOF
19534cat confdefs.h >>conftest.$ac_ext
19535cat >>conftest.$ac_ext <<_ACEOF
19536/* end confdefs.h. */
19537$ac_includes_default
19538int
19539main ()
19540{
19541static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19542test_array [0] = 0
19543
19544 ;
19545 return 0;
19546}
19547_ACEOF
19548rm -f conftest.$ac_objext
19549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19550 (eval $ac_compile) 2>conftest.er1
a848cd7e 19551 ac_status=$?
ac1cb8d3
VS
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
a848cd7e
SC
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
0093c2fc 19557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19569 ac_lo=0 ac_mid=0
19570 while :; do
19571 cat >conftest.$ac_ext <<_ACEOF
19572/* confdefs.h. */
19573_ACEOF
19574cat confdefs.h >>conftest.$ac_ext
19575cat >>conftest.$ac_ext <<_ACEOF
19576/* end confdefs.h. */
19577$ac_includes_default
19578int
19579main ()
19580{
19581static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19582test_array [0] = 0
19583
19584 ;
19585 return 0;
19586}
19587_ACEOF
19588rm -f conftest.$ac_objext
19589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19590 (eval $ac_compile) 2>conftest.er1
a848cd7e 19591 ac_status=$?
ac1cb8d3
VS
19592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
a848cd7e
SC
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
0093c2fc 19597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 ac_hi=$ac_mid; break
19610else
19611 echo "$as_me: failed program was:" >&5
19612sed 's/^/| /' conftest.$ac_ext >&5
19613
19614ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19615 if test $ac_lo -le $ac_mid; then
19616 ac_lo= ac_hi=
19617 break
19618 fi
19619 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19620fi
ac1cb8d3 19621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19622 done
19623else
19624 echo "$as_me: failed program was:" >&5
19625sed 's/^/| /' conftest.$ac_ext >&5
19626
19627cat >conftest.$ac_ext <<_ACEOF
19628/* confdefs.h. */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h. */
19633$ac_includes_default
19634int
19635main ()
19636{
19637static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19638test_array [0] = 0
19639
19640 ;
19641 return 0;
19642}
19643_ACEOF
19644rm -f conftest.$ac_objext
19645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19646 (eval $ac_compile) 2>conftest.er1
a848cd7e 19647 ac_status=$?
ac1cb8d3
VS
19648 grep -v '^ *+' conftest.er1 >conftest.err
19649 rm -f conftest.er1
19650 cat conftest.err >&5
a848cd7e
SC
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); } &&
0093c2fc 19653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } &&
19659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 ac_hi=-1 ac_mid=-1
19666 while :; do
19667 cat >conftest.$ac_ext <<_ACEOF
19668/* confdefs.h. */
19669_ACEOF
19670cat confdefs.h >>conftest.$ac_ext
19671cat >>conftest.$ac_ext <<_ACEOF
19672/* end confdefs.h. */
19673$ac_includes_default
19674int
19675main ()
19676{
19677static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19678test_array [0] = 0
19679
19680 ;
19681 return 0;
19682}
19683_ACEOF
19684rm -f conftest.$ac_objext
19685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19686 (eval $ac_compile) 2>conftest.er1
a848cd7e 19687 ac_status=$?
ac1cb8d3
VS
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
a848cd7e
SC
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
0093c2fc 19693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19696 ac_status=$?
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_lo=$ac_mid; break
19706else
19707 echo "$as_me: failed program was:" >&5
19708sed 's/^/| /' conftest.$ac_ext >&5
19709
19710ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19711 if test $ac_mid -le $ac_hi; then
19712 ac_lo= ac_hi=
19713 break
19714 fi
19715 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19716fi
ac1cb8d3 19717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19718 done
19719else
19720 echo "$as_me: failed program was:" >&5
19721sed 's/^/| /' conftest.$ac_ext >&5
19722
19723ac_lo= ac_hi=
19724fi
ac1cb8d3 19725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19726fi
ac1cb8d3 19727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19728# Binary search between lo and hi bounds.
19729while test "x$ac_lo" != "x$ac_hi"; do
19730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19731 cat >conftest.$ac_ext <<_ACEOF
19732/* confdefs.h. */
19733_ACEOF
19734cat confdefs.h >>conftest.$ac_ext
19735cat >>conftest.$ac_ext <<_ACEOF
19736/* end confdefs.h. */
19737$ac_includes_default
19738int
19739main ()
19740{
19741static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19742test_array [0] = 0
19743
19744 ;
19745 return 0;
19746}
19747_ACEOF
19748rm -f conftest.$ac_objext
19749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19750 (eval $ac_compile) 2>conftest.er1
a848cd7e 19751 ac_status=$?
ac1cb8d3
VS
19752 grep -v '^ *+' conftest.er1 >conftest.err
19753 rm -f conftest.er1
19754 cat conftest.err >&5
a848cd7e
SC
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } &&
0093c2fc 19757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759 (eval $ac_try) 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; } &&
19763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; }; then
19769 ac_hi=$ac_mid
19770else
19771 echo "$as_me: failed program was:" >&5
19772sed 's/^/| /' conftest.$ac_ext >&5
19773
19774ac_lo=`expr '(' $ac_mid ')' + 1`
19775fi
ac1cb8d3 19776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19777done
19778case $ac_lo in
19779?*) ac_cv_sizeof_long_long=$ac_lo;;
19780'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19781See \`config.log' for more details." >&5
19782echo "$as_me: error: cannot compute sizeof (long long), 77
19783See \`config.log' for more details." >&2;}
19784 { (exit 1); exit 1; }; } ;;
19785esac
19786else
19787 if test "$cross_compiling" = yes; then
0093c2fc
VZ
19788 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19789echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19790 { (exit 1); exit 1; }; }
19791else
19792 cat >conftest.$ac_ext <<_ACEOF
19793/* confdefs.h. */
19794_ACEOF
19795cat confdefs.h >>conftest.$ac_ext
19796cat >>conftest.$ac_ext <<_ACEOF
19797/* end confdefs.h. */
19798$ac_includes_default
19799long longval () { return (long) (sizeof (long long)); }
19800unsigned long ulongval () { return (long) (sizeof (long long)); }
19801#include <stdio.h>
19802#include <stdlib.h>
19803int
19804main ()
19805{
19806
19807 FILE *f = fopen ("conftest.val", "w");
19808 if (! f)
19809 exit (1);
19810 if (((long) (sizeof (long long))) < 0)
19811 {
19812 long i = longval ();
19813 if (i != ((long) (sizeof (long long))))
19814 exit (1);
19815 fprintf (f, "%ld\n", i);
19816 }
19817 else
19818 {
19819 unsigned long i = ulongval ();
19820 if (i != ((long) (sizeof (long long))))
19821 exit (1);
19822 fprintf (f, "%lu\n", i);
19823 }
19824 exit (ferror (f) || fclose (f) != 0);
19825
19826 ;
19827 return 0;
19828}
19829_ACEOF
19830rm -f conftest$ac_exeext
19831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19832 (eval $ac_link) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
19841 ac_cv_sizeof_long_long=`cat conftest.val`
19842else
19843 echo "$as_me: program exited with status $ac_status" >&5
19844echo "$as_me: failed program was:" >&5
19845sed 's/^/| /' conftest.$ac_ext >&5
19846
19847( exit $ac_status )
19848{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19849See \`config.log' for more details." >&5
19850echo "$as_me: error: cannot compute sizeof (long long), 77
19851See \`config.log' for more details." >&2;}
19852 { (exit 1); exit 1; }; }
19853fi
ac1cb8d3 19854rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19855fi
19856fi
19857rm -f conftest.val
19858else
19859 ac_cv_sizeof_long_long=0
19860fi
19861fi
19862echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19863echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19864cat >>confdefs.h <<_ACEOF
19865#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19866_ACEOF
19867
19868
19869 if test "$ac_cv_sizeof_long_long" != "0"; then
19870 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19871 fi
19872 ;;
19873 * )
19874 echo "$as_me:$LINENO: checking for long long" >&5
19875echo $ECHO_N "checking for long long... $ECHO_C" >&6
19876if test "${ac_cv_type_long_long+set}" = set; then
19877 echo $ECHO_N "(cached) $ECHO_C" >&6
19878else
19879 cat >conftest.$ac_ext <<_ACEOF
19880/* confdefs.h. */
19881_ACEOF
19882cat confdefs.h >>conftest.$ac_ext
19883cat >>conftest.$ac_ext <<_ACEOF
19884/* end confdefs.h. */
19885$ac_includes_default
19886int
19887main ()
19888{
19889if ((long long *) 0)
19890 return 0;
19891if (sizeof (long long))
19892 return 0;
19893 ;
19894 return 0;
19895}
19896_ACEOF
19897rm -f conftest.$ac_objext
19898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19899 (eval $ac_compile) 2>conftest.er1
a848cd7e 19900 ac_status=$?
ac1cb8d3
VS
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
a848cd7e
SC
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
0093c2fc 19906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; } &&
19912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
19918 ac_cv_type_long_long=yes
19919else
19920 echo "$as_me: failed program was:" >&5
19921sed 's/^/| /' conftest.$ac_ext >&5
19922
19923ac_cv_type_long_long=no
19924fi
ac1cb8d3 19925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19926fi
19927echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19928echo "${ECHO_T}$ac_cv_type_long_long" >&6
19929
19930echo "$as_me:$LINENO: checking size of long long" >&5
19931echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19932if test "${ac_cv_sizeof_long_long+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19934else
19935 if test "$ac_cv_type_long_long" = yes; then
19936 # The cast to unsigned long works around a bug in the HP C Compiler
19937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19939 # This bug is HP SR number 8606223364.
19940 if test "$cross_compiling" = yes; then
19941 # Depending upon the size, compute the lo and hi bounds.
19942cat >conftest.$ac_ext <<_ACEOF
19943/* confdefs.h. */
19944_ACEOF
19945cat confdefs.h >>conftest.$ac_ext
19946cat >>conftest.$ac_ext <<_ACEOF
19947/* end confdefs.h. */
19948$ac_includes_default
19949int
19950main ()
19951{
19952static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19953test_array [0] = 0
19954
19955 ;
19956 return 0;
19957}
19958_ACEOF
19959rm -f conftest.$ac_objext
19960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19961 (eval $ac_compile) 2>conftest.er1
a848cd7e 19962 ac_status=$?
ac1cb8d3
VS
19963 grep -v '^ *+' conftest.er1 >conftest.err
19964 rm -f conftest.er1
19965 cat conftest.err >&5
a848cd7e
SC
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); } &&
0093c2fc 19968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970 (eval $ac_try) 2>&5
19971 ac_status=$?
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; } &&
19974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19980 ac_lo=0 ac_mid=0
19981 while :; do
19982 cat >conftest.$ac_ext <<_ACEOF
19983/* confdefs.h. */
19984_ACEOF
19985cat confdefs.h >>conftest.$ac_ext
19986cat >>conftest.$ac_ext <<_ACEOF
19987/* end confdefs.h. */
19988$ac_includes_default
19989int
19990main ()
19991{
19992static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19993test_array [0] = 0
19994
19995 ;
19996 return 0;
19997}
19998_ACEOF
19999rm -f conftest.$ac_objext
20000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20001 (eval $ac_compile) 2>conftest.er1
a848cd7e 20002 ac_status=$?
ac1cb8d3
VS
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
a848cd7e
SC
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
0093c2fc 20008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_hi=$ac_mid; break
20021else
20022 echo "$as_me: failed program was:" >&5
20023sed 's/^/| /' conftest.$ac_ext >&5
20024
20025ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20026 if test $ac_lo -le $ac_mid; then
20027 ac_lo= ac_hi=
20028 break
20029 fi
20030 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20031fi
ac1cb8d3 20032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20033 done
20034else
20035 echo "$as_me: failed program was:" >&5
20036sed 's/^/| /' conftest.$ac_ext >&5
20037
20038cat >conftest.$ac_ext <<_ACEOF
20039/* confdefs.h. */
20040_ACEOF
20041cat confdefs.h >>conftest.$ac_ext
20042cat >>conftest.$ac_ext <<_ACEOF
20043/* end confdefs.h. */
20044$ac_includes_default
20045int
20046main ()
20047{
20048static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20049test_array [0] = 0
20050
20051 ;
20052 return 0;
20053}
20054_ACEOF
20055rm -f conftest.$ac_objext
20056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20057 (eval $ac_compile) 2>conftest.er1
a848cd7e 20058 ac_status=$?
ac1cb8d3
VS
20059 grep -v '^ *+' conftest.er1 >conftest.err
20060 rm -f conftest.er1
20061 cat conftest.err >&5
a848cd7e
SC
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } &&
0093c2fc 20064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20067 ac_status=$?
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; } &&
20070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; }; then
20076 ac_hi=-1 ac_mid=-1
20077 while :; do
20078 cat >conftest.$ac_ext <<_ACEOF
20079/* confdefs.h. */
20080_ACEOF
20081cat confdefs.h >>conftest.$ac_ext
20082cat >>conftest.$ac_ext <<_ACEOF
20083/* end confdefs.h. */
20084$ac_includes_default
20085int
20086main ()
20087{
20088static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20089test_array [0] = 0
20090
20091 ;
20092 return 0;
20093}
20094_ACEOF
20095rm -f conftest.$ac_objext
20096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20097 (eval $ac_compile) 2>conftest.er1
a848cd7e 20098 ac_status=$?
ac1cb8d3
VS
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
a848cd7e
SC
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
0093c2fc 20104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 ac_lo=$ac_mid; break
20117else
20118 echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20122 if test $ac_mid -le $ac_hi; then
20123 ac_lo= ac_hi=
20124 break
20125 fi
20126 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20127fi
ac1cb8d3 20128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20129 done
20130else
20131 echo "$as_me: failed program was:" >&5
20132sed 's/^/| /' conftest.$ac_ext >&5
20133
20134ac_lo= ac_hi=
20135fi
ac1cb8d3 20136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20137fi
ac1cb8d3 20138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20139# Binary search between lo and hi bounds.
20140while test "x$ac_lo" != "x$ac_hi"; do
20141 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20142 cat >conftest.$ac_ext <<_ACEOF
20143/* confdefs.h. */
20144_ACEOF
20145cat confdefs.h >>conftest.$ac_ext
20146cat >>conftest.$ac_ext <<_ACEOF
20147/* end confdefs.h. */
20148$ac_includes_default
20149int
20150main ()
20151{
20152static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20153test_array [0] = 0
20154
20155 ;
20156 return 0;
20157}
20158_ACEOF
20159rm -f conftest.$ac_objext
20160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20161 (eval $ac_compile) 2>conftest.er1
a848cd7e 20162 ac_status=$?
ac1cb8d3
VS
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
a848cd7e
SC
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } &&
0093c2fc 20168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; } &&
20174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176 (eval $ac_try) 2>&5
20177 ac_status=$?
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; }; then
20180 ac_hi=$ac_mid
20181else
20182 echo "$as_me: failed program was:" >&5
20183sed 's/^/| /' conftest.$ac_ext >&5
20184
20185ac_lo=`expr '(' $ac_mid ')' + 1`
20186fi
ac1cb8d3 20187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20188done
20189case $ac_lo in
20190?*) ac_cv_sizeof_long_long=$ac_lo;;
20191'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20192See \`config.log' for more details." >&5
20193echo "$as_me: error: cannot compute sizeof (long long), 77
20194See \`config.log' for more details." >&2;}
20195 { (exit 1); exit 1; }; } ;;
20196esac
20197else
20198 if test "$cross_compiling" = yes; then
0093c2fc
VZ
20199 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20200echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20201 { (exit 1); exit 1; }; }
20202else
20203 cat >conftest.$ac_ext <<_ACEOF
20204/* confdefs.h. */
20205_ACEOF
20206cat confdefs.h >>conftest.$ac_ext
20207cat >>conftest.$ac_ext <<_ACEOF
20208/* end confdefs.h. */
20209$ac_includes_default
20210long longval () { return (long) (sizeof (long long)); }
20211unsigned long ulongval () { return (long) (sizeof (long long)); }
20212#include <stdio.h>
20213#include <stdlib.h>
20214int
20215main ()
20216{
20217
20218 FILE *f = fopen ("conftest.val", "w");
20219 if (! f)
20220 exit (1);
20221 if (((long) (sizeof (long long))) < 0)
20222 {
20223 long i = longval ();
20224 if (i != ((long) (sizeof (long long))))
20225 exit (1);
20226 fprintf (f, "%ld\n", i);
20227 }
20228 else
20229 {
20230 unsigned long i = ulongval ();
20231 if (i != ((long) (sizeof (long long))))
20232 exit (1);
20233 fprintf (f, "%lu\n", i);
20234 }
20235 exit (ferror (f) || fclose (f) != 0);
20236
20237 ;
20238 return 0;
20239}
20240_ACEOF
20241rm -f conftest$ac_exeext
20242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20243 (eval $ac_link) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_sizeof_long_long=`cat conftest.val`
20253else
20254 echo "$as_me: program exited with status $ac_status" >&5
20255echo "$as_me: failed program was:" >&5
20256sed 's/^/| /' conftest.$ac_ext >&5
20257
20258( exit $ac_status )
20259{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20260See \`config.log' for more details." >&5
20261echo "$as_me: error: cannot compute sizeof (long long), 77
20262See \`config.log' for more details." >&2;}
20263 { (exit 1); exit 1; }; }
20264fi
ac1cb8d3 20265rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20266fi
20267fi
20268rm -f conftest.val
20269else
20270 ac_cv_sizeof_long_long=0
20271fi
20272fi
20273echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20274echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20275cat >>confdefs.h <<_ACEOF
20276#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20277_ACEOF
20278
20279
20280esac
20281
238ecede
MW
20282echo "$as_me:$LINENO: checking for wchar_t" >&5
20283echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20284if test "${ac_cv_type_wchar_t+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20286else
20287 cat >conftest.$ac_ext <<_ACEOF
20288/* confdefs.h. */
20289_ACEOF
20290cat confdefs.h >>conftest.$ac_ext
20291cat >>conftest.$ac_ext <<_ACEOF
20292/* end confdefs.h. */
20293
83d8eb47
MW
20294 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20295 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20296 # error "fake wchar_t"
20297 #endif
20298 #ifdef HAVE_WCHAR_H
20299 # ifdef __CYGWIN__
20300 # include <stddef.h>
20301 # endif
20302 # include <wchar.h>
20303 #endif
20304 #ifdef HAVE_STDLIB_H
20305 # include <stdlib.h>
20306 #endif
20307 #include <stdio.h>
20308
20309
20310
20311int
20312main ()
20313{
20314if ((wchar_t *) 0)
20315 return 0;
20316if (sizeof (wchar_t))
20317 return 0;
20318 ;
20319 return 0;
20320}
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20324 (eval $ac_compile) 2>conftest.er1
20325 ac_status=$?
20326 grep -v '^ *+' conftest.er1 >conftest.err
20327 rm -f conftest.er1
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } &&
0093c2fc 20331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; } &&
20337 { ac_try='test -s conftest.$ac_objext'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
20343 ac_cv_type_wchar_t=yes
20344else
20345 echo "$as_me: failed program was:" >&5
20346sed 's/^/| /' conftest.$ac_ext >&5
20347
20348ac_cv_type_wchar_t=no
20349fi
20350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20351fi
20352echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20353echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20354
a848cd7e
SC
20355echo "$as_me:$LINENO: checking size of wchar_t" >&5
20356echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20357if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20359else
238ecede
MW
20360 if test "$ac_cv_type_wchar_t" = yes; then
20361 # The cast to unsigned long works around a bug in the HP C Compiler
20362 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20363 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20364 # This bug is HP SR number 8606223364.
20365 if test "$cross_compiling" = yes; then
20366 # Depending upon the size, compute the lo and hi bounds.
20367cat >conftest.$ac_ext <<_ACEOF
20368/* confdefs.h. */
20369_ACEOF
20370cat confdefs.h >>conftest.$ac_ext
20371cat >>conftest.$ac_ext <<_ACEOF
20372/* end confdefs.h. */
20373
83d8eb47
MW
20374 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20375 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20376 # error "fake wchar_t"
20377 #endif
20378 #ifdef HAVE_WCHAR_H
20379 # ifdef __CYGWIN__
20380 # include <stddef.h>
20381 # endif
20382 # include <wchar.h>
20383 #endif
20384 #ifdef HAVE_STDLIB_H
20385 # include <stdlib.h>
20386 #endif
20387 #include <stdio.h>
20388
20389
20390
20391int
20392main ()
20393{
20394static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20395test_array [0] = 0
20396
20397 ;
20398 return 0;
20399}
20400_ACEOF
20401rm -f conftest.$ac_objext
20402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
0093c2fc 20410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest.$ac_objext'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
20422 ac_lo=0 ac_mid=0
20423 while :; do
20424 cat >conftest.$ac_ext <<_ACEOF
20425/* confdefs.h. */
20426_ACEOF
20427cat confdefs.h >>conftest.$ac_ext
20428cat >>conftest.$ac_ext <<_ACEOF
20429/* end confdefs.h. */
20430
83d8eb47
MW
20431 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20432 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20433 # error "fake wchar_t"
20434 #endif
20435 #ifdef HAVE_WCHAR_H
20436 # ifdef __CYGWIN__
20437 # include <stddef.h>
20438 # endif
20439 # include <wchar.h>
20440 #endif
20441 #ifdef HAVE_STDLIB_H
20442 # include <stdlib.h>
20443 #endif
20444 #include <stdio.h>
20445
20446
20447
20448int
20449main ()
20450{
20451static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20452test_array [0] = 0
20453
20454 ;
20455 return 0;
20456}
20457_ACEOF
20458rm -f conftest.$ac_objext
20459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20460 (eval $ac_compile) 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
0093c2fc 20467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20470 ac_status=$?
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; } &&
20473 { ac_try='test -s conftest.$ac_objext'
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; }; then
20479 ac_hi=$ac_mid; break
20480else
20481 echo "$as_me: failed program was:" >&5
20482sed 's/^/| /' conftest.$ac_ext >&5
20483
20484ac_lo=`expr $ac_mid + 1`
20485 if test $ac_lo -le $ac_mid; then
20486 ac_lo= ac_hi=
20487 break
20488 fi
20489 ac_mid=`expr 2 '*' $ac_mid + 1`
20490fi
20491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20492 done
20493else
20494 echo "$as_me: failed program was:" >&5
20495sed 's/^/| /' conftest.$ac_ext >&5
20496
20497cat >conftest.$ac_ext <<_ACEOF
20498/* confdefs.h. */
20499_ACEOF
20500cat confdefs.h >>conftest.$ac_ext
20501cat >>conftest.$ac_ext <<_ACEOF
20502/* end confdefs.h. */
20503
83d8eb47
MW
20504 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20505 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20506 # error "fake wchar_t"
20507 #endif
20508 #ifdef HAVE_WCHAR_H
20509 # ifdef __CYGWIN__
20510 # include <stddef.h>
20511 # endif
20512 # include <wchar.h>
20513 #endif
20514 #ifdef HAVE_STDLIB_H
20515 # include <stdlib.h>
20516 #endif
20517 #include <stdio.h>
20518
20519
20520
20521int
20522main ()
20523{
20524static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20525test_array [0] = 0
20526
20527 ;
20528 return 0;
20529}
20530_ACEOF
20531rm -f conftest.$ac_objext
20532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20533 (eval $ac_compile) 2>conftest.er1
20534 ac_status=$?
20535 grep -v '^ *+' conftest.er1 >conftest.err
20536 rm -f conftest.er1
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } &&
0093c2fc 20540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; } &&
20546 { ac_try='test -s conftest.$ac_objext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20549 ac_status=$?
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 ac_hi=-1 ac_mid=-1
20553 while :; do
20554 cat >conftest.$ac_ext <<_ACEOF
20555/* confdefs.h. */
20556_ACEOF
20557cat confdefs.h >>conftest.$ac_ext
20558cat >>conftest.$ac_ext <<_ACEOF
20559/* end confdefs.h. */
20560
83d8eb47
MW
20561 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20562 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20563 # error "fake wchar_t"
20564 #endif
20565 #ifdef HAVE_WCHAR_H
20566 # ifdef __CYGWIN__
20567 # include <stddef.h>
20568 # endif
20569 # include <wchar.h>
20570 #endif
20571 #ifdef HAVE_STDLIB_H
20572 # include <stdlib.h>
20573 #endif
20574 #include <stdio.h>
20575
20576
20577
20578int
20579main ()
20580{
20581static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20582test_array [0] = 0
20583
20584 ;
20585 return 0;
20586}
20587_ACEOF
20588rm -f conftest.$ac_objext
20589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20590 (eval $ac_compile) 2>conftest.er1
20591 ac_status=$?
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
0093c2fc 20597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; } &&
20603 { ac_try='test -s conftest.$ac_objext'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; }; then
20609 ac_lo=$ac_mid; break
20610else
20611 echo "$as_me: failed program was:" >&5
20612sed 's/^/| /' conftest.$ac_ext >&5
20613
20614ac_hi=`expr '(' $ac_mid ')' - 1`
20615 if test $ac_mid -le $ac_hi; then
20616 ac_lo= ac_hi=
20617 break
20618 fi
20619 ac_mid=`expr 2 '*' $ac_mid`
20620fi
20621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20622 done
20623else
20624 echo "$as_me: failed program was:" >&5
20625sed 's/^/| /' conftest.$ac_ext >&5
20626
20627ac_lo= ac_hi=
20628fi
20629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630fi
20631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20632# Binary search between lo and hi bounds.
20633while test "x$ac_lo" != "x$ac_hi"; do
20634 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20635 cat >conftest.$ac_ext <<_ACEOF
20636/* confdefs.h. */
20637_ACEOF
20638cat confdefs.h >>conftest.$ac_ext
20639cat >>conftest.$ac_ext <<_ACEOF
20640/* end confdefs.h. */
20641
83d8eb47
MW
20642 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20643 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20644 # error "fake wchar_t"
20645 #endif
20646 #ifdef HAVE_WCHAR_H
20647 # ifdef __CYGWIN__
20648 # include <stddef.h>
20649 # endif
20650 # include <wchar.h>
20651 #endif
20652 #ifdef HAVE_STDLIB_H
20653 # include <stdlib.h>
20654 #endif
20655 #include <stdio.h>
a848cd7e 20656
a848cd7e 20657
a848cd7e 20658
238ecede
MW
20659int
20660main ()
20661{
20662static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20663test_array [0] = 0
a848cd7e 20664
238ecede
MW
20665 ;
20666 return 0;
20667}
20668_ACEOF
20669rm -f conftest.$ac_objext
20670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20671 (eval $ac_compile) 2>conftest.er1
20672 ac_status=$?
20673 grep -v '^ *+' conftest.er1 >conftest.err
20674 rm -f conftest.er1
20675 cat conftest.err >&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } &&
0093c2fc 20678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20681 ac_status=$?
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; } &&
20684 { ac_try='test -s conftest.$ac_objext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_hi=$ac_mid
20691else
20692 echo "$as_me: failed program was:" >&5
20693sed 's/^/| /' conftest.$ac_ext >&5
20694
20695ac_lo=`expr '(' $ac_mid ')' + 1`
20696fi
20697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20698done
20699case $ac_lo in
20700?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20701'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20702See \`config.log' for more details." >&5
20703echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20704See \`config.log' for more details." >&2;}
20705 { (exit 1); exit 1; }; } ;;
20706esac
20707else
20708 if test "$cross_compiling" = yes; then
0093c2fc
VZ
20709 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20710echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20711 { (exit 1); exit 1; }; }
a848cd7e
SC
20712else
20713 cat >conftest.$ac_ext <<_ACEOF
20714/* confdefs.h. */
20715_ACEOF
20716cat confdefs.h >>conftest.$ac_ext
20717cat >>conftest.$ac_ext <<_ACEOF
20718/* end confdefs.h. */
20719
83d8eb47
MW
20720 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20721 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20722 # error "fake wchar_t"
20723 #endif
20724 #ifdef HAVE_WCHAR_H
20725 # ifdef __CYGWIN__
20726 # include <stddef.h>
20727 # endif
20728 # include <wchar.h>
20729 #endif
20730 #ifdef HAVE_STDLIB_H
20731 # include <stdlib.h>
20732 #endif
20733 #include <stdio.h>
20734
20735
20736
20737long longval () { return (long) (sizeof (wchar_t)); }
20738unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20739#include <stdio.h>
20740#include <stdlib.h>
20741int
20742main ()
20743{
a848cd7e 20744
238ecede
MW
20745 FILE *f = fopen ("conftest.val", "w");
20746 if (! f)
20747 exit (1);
20748 if (((long) (sizeof (wchar_t))) < 0)
20749 {
20750 long i = longval ();
20751 if (i != ((long) (sizeof (wchar_t))))
20752 exit (1);
20753 fprintf (f, "%ld\n", i);
20754 }
20755 else
20756 {
20757 unsigned long i = ulongval ();
20758 if (i != ((long) (sizeof (wchar_t))))
20759 exit (1);
20760 fprintf (f, "%lu\n", i);
20761 }
20762 exit (ferror (f) || fclose (f) != 0);
20763
20764 ;
20765 return 0;
20766}
a848cd7e
SC
20767_ACEOF
20768rm -f conftest$ac_exeext
20769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20770 (eval $ac_link) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
238ecede 20779 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20780else
20781 echo "$as_me: program exited with status $ac_status" >&5
20782echo "$as_me: failed program was:" >&5
20783sed 's/^/| /' conftest.$ac_ext >&5
20784
20785( exit $ac_status )
238ecede
MW
20786{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20787See \`config.log' for more details." >&5
20788echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20789See \`config.log' for more details." >&2;}
20790 { (exit 1); exit 1; }; }
a848cd7e 20791fi
ac1cb8d3 20792rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20793fi
a848cd7e 20794fi
238ecede
MW
20795rm -f conftest.val
20796else
20797 ac_cv_sizeof_wchar_t=0
20798fi
20799fi
20800echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20801echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20802cat >>confdefs.h <<_ACEOF
238ecede 20803#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20804_ACEOF
20805
20806
47a7e797
MW
20807if test "$ac_cv_sizeof_wchar_t" != "0"; then
20808 wxUSE_WCHAR_T=yes
20809else
20810 wxUSE_WCHAR_T=no
20811fi
238ecede 20812
ba3d13e1
VZ
20813echo "$as_me:$LINENO: checking for va_copy" >&5
20814echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20815if test "${wx_cv_func_va_copy+set}" = set; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20817else
20818
20819 cat >conftest.$ac_ext <<_ACEOF
20820
20821 #include <stdarg.h>
20822 void foo(char *f, ...)
20823 {
20824 va_list ap1, ap2;
20825 va_start(ap1, f);
20826 va_copy(ap2, ap1);
20827 va_end(ap2);
20828 va_end(ap1);
20829 }
5886b072
VZ
20830 int main()
20831 {
b902e639
VZ
20832 foo("hi", 17);
20833 return 0;
5886b072 20834 }
ba3d13e1
VZ
20835_ACEOF
20836rm -f conftest.$ac_objext conftest$ac_exeext
20837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20838 (eval $ac_link) 2>conftest.er1
20839 ac_status=$?
20840 grep -v '^ *+' conftest.er1 >conftest.err
20841 rm -f conftest.er1
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
0093c2fc 20845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; } &&
20851 { ac_try='test -s conftest$ac_exeext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 wx_cv_func_va_copy=yes
20858else
20859 echo "$as_me: failed program was:" >&5
20860sed 's/^/| /' conftest.$ac_ext >&5
20861
20862wx_cv_func_va_copy=no
20863
20864fi
20865rm -f conftest.err conftest.$ac_objext \
20866 conftest$ac_exeext conftest.$ac_ext
20867
20868
20869fi
20870echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20871echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20872
20873if test $wx_cv_func_va_copy = "yes"; then
20874 cat >>confdefs.h <<\_ACEOF
20875#define HAVE_VA_COPY 1
20876_ACEOF
20877
20878else
20879 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20880echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20881if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20882 echo $ECHO_N "(cached) $ECHO_C" >&6
20883else
20884
20885 if test "$cross_compiling" = yes; then
20886 wx_cv_type_va_list_lvalue=yes
20887
20888else
20889 cat >conftest.$ac_ext <<_ACEOF
20890
20891 #include <stdarg.h>
20892 int foo(char *f, ...)
20893 {
20894 va_list ap1, ap2;
20895 va_start(ap1, f);
20896 ap2 = ap1;
20897 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20898 return 1;
20899 va_end(ap2);
20900 va_end(ap1);
20901 return 0;
20902 }
20903 int main()
20904 {
20905 return foo("hi", 17);
20906 }
20907_ACEOF
20908rm -f conftest$ac_exeext
20909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20910 (eval $ac_link) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 wx_cv_type_va_list_lvalue=yes
20920else
20921 echo "$as_me: program exited with status $ac_status" >&5
20922echo "$as_me: failed program was:" >&5
20923sed 's/^/| /' conftest.$ac_ext >&5
20924
20925( exit $ac_status )
20926wx_cv_type_va_list_lvalue=no
20927fi
20928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20929fi
20930
20931
20932fi
20933echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20934echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20935
20936 if test $wx_cv_type_va_list_lvalue != "yes"; then
20937 cat >>confdefs.h <<\_ACEOF
20938#define VA_LIST_IS_ARRAY 1
20939_ACEOF
20940
20941 fi
20942fi
20943
a848cd7e
SC
20944# Check whether --enable-largefile or --disable-largefile was given.
20945if test "${enable_largefile+set}" = set; then
20946 enableval="$enable_largefile"
20947
20948fi;
20949if test "$enable_largefile" != no; then
20950 wx_largefile=no
20951
20952 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20953echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20954if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20956else
20957
20958 cat >conftest.$ac_ext <<_ACEOF
20959/* confdefs.h. */
20960_ACEOF
20961cat confdefs.h >>conftest.$ac_ext
20962cat >>conftest.$ac_ext <<_ACEOF
20963/* end confdefs.h. */
20964#define _FILE_OFFSET_BITS 64
20965 #include <sys/types.h>
20966int
20967main ()
20968{
20969typedef struct {
20970 unsigned int field: sizeof(off_t) == 8;
20971} wxlf;
20972
20973 ;
20974 return 0;
20975}
20976_ACEOF
20977rm -f conftest.$ac_objext
20978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20979 (eval $ac_compile) 2>conftest.er1
a848cd7e 20980 ac_status=$?
ac1cb8d3
VS
20981 grep -v '^ *+' conftest.er1 >conftest.err
20982 rm -f conftest.er1
20983 cat conftest.err >&5
a848cd7e
SC
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } &&
0093c2fc 20986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988 (eval $ac_try) 2>&5
20989 ac_status=$?
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; } &&
20992 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994 (eval $ac_try) 2>&5
20995 ac_status=$?
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; }; then
20998 ac_cv_sys_file_offset_bits=64
20999else
21000 echo "$as_me: failed program was:" >&5
21001sed 's/^/| /' conftest.$ac_ext >&5
21002
21003ac_cv_sys_file_offset_bits=no
21004fi
ac1cb8d3 21005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21006
21007
21008fi
21009echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21010echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21011
21012 if test "$ac_cv_sys_file_offset_bits" != no; then
21013 wx_largefile=yes
21014 cat >>confdefs.h <<_ACEOF
21015#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21016_ACEOF
21017
21018 fi
21019
21020 if test "x$wx_largefile" != "xyes"; then
21021
21022 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21023echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21024if test "${ac_cv_sys_large_files+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21026else
21027
21028 cat >conftest.$ac_ext <<_ACEOF
21029/* confdefs.h. */
21030_ACEOF
21031cat confdefs.h >>conftest.$ac_ext
21032cat >>conftest.$ac_ext <<_ACEOF
21033/* end confdefs.h. */
21034#define _LARGE_FILES 1
21035 #include <sys/types.h>
21036int
21037main ()
21038{
21039typedef struct {
21040 unsigned int field: sizeof(off_t) == 8;
21041} wxlf;
21042
21043 ;
21044 return 0;
21045}
21046_ACEOF
21047rm -f conftest.$ac_objext
21048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21049 (eval $ac_compile) 2>conftest.er1
a848cd7e 21050 ac_status=$?
ac1cb8d3
VS
21051 grep -v '^ *+' conftest.er1 >conftest.err
21052 rm -f conftest.er1
21053 cat conftest.err >&5
a848cd7e
SC
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } &&
0093c2fc 21056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; } &&
21062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; }; then
21068 ac_cv_sys_large_files=1
21069else
21070 echo "$as_me: failed program was:" >&5
21071sed 's/^/| /' conftest.$ac_ext >&5
21072
21073ac_cv_sys_large_files=no
21074fi
ac1cb8d3 21075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21076
21077
21078fi
21079echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21080echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21081
21082 if test "$ac_cv_sys_large_files" != no; then
21083 wx_largefile=yes
21084 cat >>confdefs.h <<_ACEOF
21085#define _LARGE_FILES $ac_cv_sys_large_files
21086_ACEOF
21087
21088 fi
21089
21090 fi
21091
21092 echo "$as_me:$LINENO: checking if large file support is available" >&5
21093echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21094 if test "x$wx_largefile" = "xyes"; then
21095 cat >>confdefs.h <<\_ACEOF
21096#define HAVE_LARGEFILE_SUPPORT 1
21097_ACEOF
21098
21099 fi
21100 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21101echo "${ECHO_T}$wx_largefile" >&6
21102fi
21103
5b674b9d
DE
21104
21105if test "x$wx_largefile" = "xyes"; then
21106 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
21107 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21108
21109 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21110 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21111echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21112if test "${wx_cv_STDC_EXT_required+set}" = set; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21114else
21115
21116
21117
21118 ac_ext=cc
21119ac_cpp='$CXXCPP $CPPFLAGS'
21120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21123
21124 cat >conftest.$ac_ext <<_ACEOF
21125/* confdefs.h. */
21126_ACEOF
21127cat confdefs.h >>conftest.$ac_ext
21128cat >>conftest.$ac_ext <<_ACEOF
21129/* end confdefs.h. */
21130
21131int
21132main ()
21133{
21134
21135 #ifndef __STDC_EXT__
21136 choke me
21137 #endif
21138
21139 ;
21140 return 0;
21141}
21142_ACEOF
21143rm -f conftest.$ac_objext
21144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21145 (eval $ac_compile) 2>conftest.er1
21146 ac_status=$?
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } &&
0093c2fc 21152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21155 ac_status=$?
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; } &&
21158 { ac_try='test -s conftest.$ac_objext'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; }; then
21164 wx_cv_STDC_EXT_required=no
21165else
21166 echo "$as_me: failed program was:" >&5
21167sed 's/^/| /' conftest.$ac_ext >&5
21168
21169wx_cv_STDC_EXT_required=yes
21170
21171fi
21172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21173 ac_ext=c
21174ac_cpp='$CPP $CPPFLAGS'
21175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21177ac_compiler_gnu=$ac_cv_c_compiler_gnu
21178
21179
21180
21181fi
21182echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21183echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21184 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
21185 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
21186 fi
21187 fi
5b674b9d
DE
21188 else
21189 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
21190 fi
21191 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21192echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21193if test "${ac_cv_sys_largefile_source+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21195else
21196 while :; do
21197 ac_cv_sys_largefile_source=no
21198 cat >conftest.$ac_ext <<_ACEOF
21199/* confdefs.h. */
21200_ACEOF
21201cat confdefs.h >>conftest.$ac_ext
21202cat >>conftest.$ac_ext <<_ACEOF
21203/* end confdefs.h. */
21204#include <stdio.h>
21205int
21206main ()
21207{
21208return !fseeko;
21209 ;
21210 return 0;
21211}
21212_ACEOF
21213rm -f conftest.$ac_objext
21214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21215 (eval $ac_compile) 2>conftest.er1
21216 ac_status=$?
21217 grep -v '^ *+' conftest.er1 >conftest.err
21218 rm -f conftest.er1
21219 cat conftest.err >&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } &&
0093c2fc 21222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest.$ac_objext'
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 break
21235else
21236 echo "$as_me: failed program was:" >&5
21237sed 's/^/| /' conftest.$ac_ext >&5
21238
21239fi
21240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21241 cat >conftest.$ac_ext <<_ACEOF
21242/* confdefs.h. */
21243_ACEOF
21244cat confdefs.h >>conftest.$ac_ext
21245cat >>conftest.$ac_ext <<_ACEOF
21246/* end confdefs.h. */
21247#define _LARGEFILE_SOURCE 1
21248#include <stdio.h>
21249int
21250main ()
21251{
21252return !fseeko;
21253 ;
21254 return 0;
21255}
21256_ACEOF
21257rm -f conftest.$ac_objext
21258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21259 (eval $ac_compile) 2>conftest.er1
21260 ac_status=$?
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
0093c2fc 21266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 ac_cv_sys_largefile_source=1; break
21279else
21280 echo "$as_me: failed program was:" >&5
21281sed 's/^/| /' conftest.$ac_ext >&5
21282
21283fi
21284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21285 break
21286done
21287fi
21288echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21289echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21290if test "$ac_cv_sys_largefile_source" != no; then
21291
21292cat >>confdefs.h <<_ACEOF
21293#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21294_ACEOF
21295
21296fi
21297rm -f conftest*
21298
21299# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21300# in glibc 2.1.3, but that breaks too many other things.
21301# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21302echo "$as_me:$LINENO: checking for fseeko" >&5
21303echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21304if test "${ac_cv_func_fseeko+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21306else
21307 cat >conftest.$ac_ext <<_ACEOF
21308/* confdefs.h. */
21309_ACEOF
21310cat confdefs.h >>conftest.$ac_ext
21311cat >>conftest.$ac_ext <<_ACEOF
21312/* end confdefs.h. */
21313#include <stdio.h>
21314int
21315main ()
21316{
21317return fseeko && fseeko (stdin, 0, 0);
21318 ;
21319 return 0;
21320}
21321_ACEOF
21322rm -f conftest.$ac_objext conftest$ac_exeext
21323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21324 (eval $ac_link) 2>conftest.er1
21325 ac_status=$?
21326 grep -v '^ *+' conftest.er1 >conftest.err
21327 rm -f conftest.er1
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
0093c2fc 21331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; } &&
21337 { ac_try='test -s conftest$ac_exeext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ac_cv_func_fseeko=yes
21344else
21345 echo "$as_me: failed program was:" >&5
21346sed 's/^/| /' conftest.$ac_ext >&5
21347
21348ac_cv_func_fseeko=no
21349fi
21350rm -f conftest.err conftest.$ac_objext \
21351 conftest$ac_exeext conftest.$ac_ext
21352fi
21353echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21354echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21355if test $ac_cv_func_fseeko = yes; then
21356
21357cat >>confdefs.h <<\_ACEOF
21358#define HAVE_FSEEKO 1
21359_ACEOF
21360
21361fi
21362
5b674b9d
DE
21363 if test "$ac_cv_sys_largefile_source" != no; then
21364 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
21365 fi
21366 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
21367fi
21368
21369echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21370echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21371if test "${ac_cv_c_bigendian+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21373else
21374 ac_cv_c_bigendian=unknown
21375# See if sys/param.h defines the BYTE_ORDER macro.
21376cat >conftest.$ac_ext <<_ACEOF
21377/* confdefs.h. */
21378_ACEOF
21379cat confdefs.h >>conftest.$ac_ext
21380cat >>conftest.$ac_ext <<_ACEOF
21381/* end confdefs.h. */
21382#include <sys/types.h>
21383#include <sys/param.h>
21384int
21385main ()
21386{
21387
21388#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21389 bogus endian macros
21390#endif
21391 ;
21392 return 0;
21393}
21394_ACEOF
21395rm -f conftest.$ac_objext
21396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21397 (eval $ac_compile) 2>conftest.er1
a848cd7e 21398 ac_status=$?
ac1cb8d3
VS
21399 grep -v '^ *+' conftest.er1 >conftest.err
21400 rm -f conftest.er1
21401 cat conftest.err >&5
a848cd7e
SC
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } &&
0093c2fc 21404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406 (eval $ac_try) 2>&5
21407 ac_status=$?
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); }; } &&
21410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21413 ac_status=$?
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; }; then
21416 # It does; now see whether it defined to BIG_ENDIAN or not.
21417cat >conftest.$ac_ext <<_ACEOF
21418/* confdefs.h. */
21419_ACEOF
21420cat confdefs.h >>conftest.$ac_ext
21421cat >>conftest.$ac_ext <<_ACEOF
21422/* end confdefs.h. */
21423#include <sys/types.h>
21424#include <sys/param.h>
21425int
21426main ()
21427{
21428
21429#if BYTE_ORDER != BIG_ENDIAN
21430 not big endian
21431#endif
21432 ;
21433 return 0;
21434}
21435_ACEOF
21436rm -f conftest.$ac_objext
21437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21438 (eval $ac_compile) 2>conftest.er1
a848cd7e 21439 ac_status=$?
ac1cb8d3
VS
21440 grep -v '^ *+' conftest.er1 >conftest.err
21441 rm -f conftest.er1
21442 cat conftest.err >&5
a848cd7e
SC
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } &&
0093c2fc 21445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; } &&
21451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21454 ac_status=$?
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; }; then
21457 ac_cv_c_bigendian=yes
21458else
21459 echo "$as_me: failed program was:" >&5
21460sed 's/^/| /' conftest.$ac_ext >&5
21461
21462ac_cv_c_bigendian=no
21463fi
ac1cb8d3 21464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21465else
21466 echo "$as_me: failed program was:" >&5
21467sed 's/^/| /' conftest.$ac_ext >&5
21468
21469fi
ac1cb8d3 21470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21471if test $ac_cv_c_bigendian = unknown; then
21472if test "$cross_compiling" = yes; then
21473 ac_cv_c_bigendian=unknown
21474else
21475 cat >conftest.$ac_ext <<_ACEOF
21476/* confdefs.h. */
21477_ACEOF
21478cat confdefs.h >>conftest.$ac_ext
21479cat >>conftest.$ac_ext <<_ACEOF
21480/* end confdefs.h. */
21481main () {
21482 /* Are we little or big endian? From Harbison&Steele. */
21483 union
21484 {
21485 long l;
21486 char c[sizeof (long)];
21487 } u;
21488 u.l = 1;
21489 exit (u.c[sizeof (long) - 1] == 1);
21490}
21491_ACEOF
21492rm -f conftest$ac_exeext
21493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21494 (eval $ac_link) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; }; then
21503 ac_cv_c_bigendian=no
21504else
21505 echo "$as_me: program exited with status $ac_status" >&5
21506echo "$as_me: failed program was:" >&5
21507sed 's/^/| /' conftest.$ac_ext >&5
21508
21509( exit $ac_status )
21510ac_cv_c_bigendian=yes
21511fi
ac1cb8d3 21512rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21513fi
21514fi
21515fi
21516echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21517echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21518if test $ac_cv_c_bigendian = unknown; then
21519 { 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
21520echo "$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;}
21521fi
21522if test $ac_cv_c_bigendian = yes; then
21523 cat >>confdefs.h <<\_ACEOF
21524#define WORDS_BIGENDIAN 1
21525_ACEOF
21526
21527fi
21528
21529
21530ac_ext=cc
21531ac_cpp='$CXXCPP $CPPFLAGS'
21532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21535echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21536echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21537if test -z "$CXXCPP"; then
21538 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21540else
21541 # Double quotes because CXXCPP needs to be expanded
21542 for CXXCPP in "$CXX -E" "/lib/cpp"
21543 do
21544 ac_preproc_ok=false
21545for ac_cxx_preproc_warn_flag in '' yes
21546do
21547 # Use a header file that comes with gcc, so configuring glibc
21548 # with a fresh cross-compiler works.
21549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21550 # <limits.h> exists even on freestanding compilers.
21551 # On the NeXT, cc -E runs the code through the compiler's parser,
21552 # not just through cpp. "Syntax error" is here to catch this case.
21553 cat >conftest.$ac_ext <<_ACEOF
21554/* confdefs.h. */
21555_ACEOF
21556cat confdefs.h >>conftest.$ac_ext
21557cat >>conftest.$ac_ext <<_ACEOF
21558/* end confdefs.h. */
21559#ifdef __STDC__
21560# include <limits.h>
21561#else
21562# include <assert.h>
21563#endif
ac1cb8d3 21564 Syntax error
a848cd7e
SC
21565_ACEOF
21566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21568 ac_status=$?
21569 grep -v '^ *+' conftest.er1 >conftest.err
21570 rm -f conftest.er1
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } >/dev/null; then
21574 if test -s conftest.err; then
21575 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21576 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21577 else
21578 ac_cpp_err=
21579 fi
21580else
21581 ac_cpp_err=yes
21582fi
21583if test -z "$ac_cpp_err"; then
21584 :
21585else
21586 echo "$as_me: failed program was:" >&5
21587sed 's/^/| /' conftest.$ac_ext >&5
21588
21589 # Broken: fails on valid input.
21590continue
21591fi
21592rm -f conftest.err conftest.$ac_ext
21593
21594 # OK, works on sane cases. Now check whether non-existent headers
21595 # can be detected and how.
21596 cat >conftest.$ac_ext <<_ACEOF
21597/* confdefs.h. */
21598_ACEOF
21599cat confdefs.h >>conftest.$ac_ext
21600cat >>conftest.$ac_ext <<_ACEOF
21601/* end confdefs.h. */
21602#include <ac_nonexistent.h>
21603_ACEOF
21604if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21606 ac_status=$?
21607 grep -v '^ *+' conftest.er1 >conftest.err
21608 rm -f conftest.er1
21609 cat conftest.err >&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); } >/dev/null; then
21612 if test -s conftest.err; then
21613 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21614 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21615 else
21616 ac_cpp_err=
21617 fi
21618else
21619 ac_cpp_err=yes
21620fi
21621if test -z "$ac_cpp_err"; then
21622 # Broken: success on invalid input.
21623continue
21624else
21625 echo "$as_me: failed program was:" >&5
21626sed 's/^/| /' conftest.$ac_ext >&5
21627
21628 # Passes both tests.
21629ac_preproc_ok=:
21630break
21631fi
21632rm -f conftest.err conftest.$ac_ext
21633
21634done
21635# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21636rm -f conftest.err conftest.$ac_ext
21637if $ac_preproc_ok; then
21638 break
21639fi
21640
21641 done
21642 ac_cv_prog_CXXCPP=$CXXCPP
21643
21644fi
21645 CXXCPP=$ac_cv_prog_CXXCPP
21646else
21647 ac_cv_prog_CXXCPP=$CXXCPP
21648fi
21649echo "$as_me:$LINENO: result: $CXXCPP" >&5
21650echo "${ECHO_T}$CXXCPP" >&6
21651ac_preproc_ok=false
21652for ac_cxx_preproc_warn_flag in '' yes
21653do
21654 # Use a header file that comes with gcc, so configuring glibc
21655 # with a fresh cross-compiler works.
21656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21657 # <limits.h> exists even on freestanding compilers.
21658 # On the NeXT, cc -E runs the code through the compiler's parser,
21659 # not just through cpp. "Syntax error" is here to catch this case.
21660 cat >conftest.$ac_ext <<_ACEOF
21661/* confdefs.h. */
21662_ACEOF
21663cat confdefs.h >>conftest.$ac_ext
21664cat >>conftest.$ac_ext <<_ACEOF
21665/* end confdefs.h. */
21666#ifdef __STDC__
21667# include <limits.h>
21668#else
21669# include <assert.h>
21670#endif
ac1cb8d3 21671 Syntax error
a848cd7e
SC
21672_ACEOF
21673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21675 ac_status=$?
21676 grep -v '^ *+' conftest.er1 >conftest.err
21677 rm -f conftest.er1
21678 cat conftest.err >&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } >/dev/null; then
21681 if test -s conftest.err; then
21682 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21683 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21684 else
21685 ac_cpp_err=
21686 fi
21687else
21688 ac_cpp_err=yes
21689fi
21690if test -z "$ac_cpp_err"; then
21691 :
21692else
21693 echo "$as_me: failed program was:" >&5
21694sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 # Broken: fails on valid input.
21697continue
21698fi
21699rm -f conftest.err conftest.$ac_ext
21700
21701 # OK, works on sane cases. Now check whether non-existent headers
21702 # can be detected and how.
21703 cat >conftest.$ac_ext <<_ACEOF
21704/* confdefs.h. */
21705_ACEOF
21706cat confdefs.h >>conftest.$ac_ext
21707cat >>conftest.$ac_ext <<_ACEOF
21708/* end confdefs.h. */
21709#include <ac_nonexistent.h>
21710_ACEOF
21711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21713 ac_status=$?
21714 grep -v '^ *+' conftest.er1 >conftest.err
21715 rm -f conftest.er1
21716 cat conftest.err >&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } >/dev/null; then
21719 if test -s conftest.err; then
21720 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21721 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21722 else
21723 ac_cpp_err=
21724 fi
21725else
21726 ac_cpp_err=yes
21727fi
21728if test -z "$ac_cpp_err"; then
21729 # Broken: success on invalid input.
21730continue
21731else
21732 echo "$as_me: failed program was:" >&5
21733sed 's/^/| /' conftest.$ac_ext >&5
21734
21735 # Passes both tests.
21736ac_preproc_ok=:
21737break
21738fi
21739rm -f conftest.err conftest.$ac_ext
21740
21741done
21742# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21743rm -f conftest.err conftest.$ac_ext
21744if $ac_preproc_ok; then
21745 :
21746else
21747 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21748See \`config.log' for more details." >&5
21749echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21750See \`config.log' for more details." >&2;}
21751 { (exit 1); exit 1; }; }
21752fi
21753
21754ac_ext=cc
21755ac_cpp='$CXXCPP $CPPFLAGS'
21756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21759
21760
21761
21762
21763
21764 ac_ext=cc
21765ac_cpp='$CXXCPP $CPPFLAGS'
21766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21769
21770
21771
21772for ac_header in iostream
21773do
21774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21775if eval "test \"\${$as_ac_Header+set}\" = set"; then
21776 echo "$as_me:$LINENO: checking for $ac_header" >&5
21777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21778if eval "test \"\${$as_ac_Header+set}\" = set"; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21780fi
21781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21783else
21784 # Is the header compilable?
21785echo "$as_me:$LINENO: checking $ac_header usability" >&5
21786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21787cat >conftest.$ac_ext <<_ACEOF
21788/* confdefs.h. */
21789_ACEOF
21790cat confdefs.h >>conftest.$ac_ext
21791cat >>conftest.$ac_ext <<_ACEOF
21792/* end confdefs.h. */
21793$ac_includes_default
21794#include <$ac_header>
21795_ACEOF
21796rm -f conftest.$ac_objext
21797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21798 (eval $ac_compile) 2>conftest.er1
a848cd7e 21799 ac_status=$?
ac1cb8d3
VS
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
a848cd7e
SC
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } &&
0093c2fc 21805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; } &&
21811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817 ac_header_compiler=yes
21818else
21819 echo "$as_me: failed program was:" >&5
21820sed 's/^/| /' conftest.$ac_ext >&5
21821
21822ac_header_compiler=no
21823fi
ac1cb8d3 21824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21826echo "${ECHO_T}$ac_header_compiler" >&6
21827
21828# Is the header present?
21829echo "$as_me:$LINENO: checking $ac_header presence" >&5
21830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21831cat >conftest.$ac_ext <<_ACEOF
21832/* confdefs.h. */
21833_ACEOF
21834cat confdefs.h >>conftest.$ac_ext
21835cat >>conftest.$ac_ext <<_ACEOF
21836/* end confdefs.h. */
21837#include <$ac_header>
21838_ACEOF
21839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21841 ac_status=$?
21842 grep -v '^ *+' conftest.er1 >conftest.err
21843 rm -f conftest.er1
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } >/dev/null; then
21847 if test -s conftest.err; then
21848 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21850 else
21851 ac_cpp_err=
21852 fi
21853else
21854 ac_cpp_err=yes
21855fi
21856if test -z "$ac_cpp_err"; then
21857 ac_header_preproc=yes
21858else
21859 echo "$as_me: failed program was:" >&5
21860sed 's/^/| /' conftest.$ac_ext >&5
21861
21862 ac_header_preproc=no
21863fi
21864rm -f conftest.err conftest.$ac_ext
21865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21866echo "${ECHO_T}$ac_header_preproc" >&6
21867
21868# So? What about this header?
ac1cb8d3
VS
21869case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21870 yes:no: )
a848cd7e
SC
21871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21875 ac_header_preproc=yes
a848cd7e 21876 ;;
ac1cb8d3 21877 no:yes:* )
a848cd7e
SC
21878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21890 (
21891 cat <<\_ASBOX
ac1cb8d3
VS
21892## ----------------------------------------- ##
21893## Report this to wx-dev@lists.wxwidgets.org ##
21894## ----------------------------------------- ##
a848cd7e
SC
21895_ASBOX
21896 ) |
21897 sed "s/^/$as_me: WARNING: /" >&2
21898 ;;
21899esac
21900echo "$as_me:$LINENO: checking for $ac_header" >&5
21901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21902if eval "test \"\${$as_ac_Header+set}\" = set"; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21904else
ac1cb8d3 21905 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21906fi
21907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21909
21910fi
21911if test `eval echo '${'$as_ac_Header'}'` = yes; then
21912 cat >>confdefs.h <<_ACEOF
21913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21914_ACEOF
21915
21916fi
21917
21918done
21919
21920
21921 if test "$ac_cv_header_iostream" = "yes" ; then
21922 :
21923 else
21924 cat >>confdefs.h <<\_ACEOF
21925#define wxUSE_IOSTREAMH 1
21926_ACEOF
21927
21928 fi
21929
21930 ac_ext=c
21931ac_cpp='$CPP $CPPFLAGS'
21932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21934ac_compiler_gnu=$ac_cv_c_compiler_gnu
21935
21936
21937
21938
21939 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21940echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21941if test "${wx_cv_cpp_bool+set}" = set; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21943else
21944
21945
21946
21947 ac_ext=cc
21948ac_cpp='$CXXCPP $CPPFLAGS'
21949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21952
21953
21954 cat >conftest.$ac_ext <<_ACEOF
21955/* confdefs.h. */
21956_ACEOF
21957cat confdefs.h >>conftest.$ac_ext
21958cat >>conftest.$ac_ext <<_ACEOF
21959/* end confdefs.h. */
21960
21961
21962int
21963main ()
21964{
21965
21966 bool b = true;
21967
21968 return 0;
21969
21970 ;
21971 return 0;
21972}
21973_ACEOF
21974rm -f conftest.$ac_objext
21975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21976 (eval $ac_compile) 2>conftest.er1
a848cd7e 21977 ac_status=$?
ac1cb8d3
VS
21978 grep -v '^ *+' conftest.er1 >conftest.err
21979 rm -f conftest.er1
21980 cat conftest.err >&5
a848cd7e
SC
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } &&
0093c2fc 21983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21986 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; } &&
21989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995
21996 wx_cv_cpp_bool=yes
21997
21998else
21999 echo "$as_me: failed program was:" >&5
22000sed 's/^/| /' conftest.$ac_ext >&5
22001
22002
22003 wx_cv_cpp_bool=no
22004
22005
22006fi
ac1cb8d3 22007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22008
22009 ac_ext=c
22010ac_cpp='$CPP $CPPFLAGS'
22011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013ac_compiler_gnu=$ac_cv_c_compiler_gnu
22014
22015
22016fi
22017echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22018echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22019
22020 if test "$wx_cv_cpp_bool" = "yes"; then
22021 cat >>confdefs.h <<\_ACEOF
22022#define HAVE_BOOL 1
22023_ACEOF
22024
22025 fi
22026
22027
22028
22029 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22030echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22031if test "${wx_cv_explicit+set}" = set; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22033else
22034
22035
22036
22037 ac_ext=cc
22038ac_cpp='$CXXCPP $CPPFLAGS'
22039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22042
22043
22044 cat >conftest.$ac_ext <<_ACEOF
22045/* confdefs.h. */
22046_ACEOF
22047cat confdefs.h >>conftest.$ac_ext
22048cat >>conftest.$ac_ext <<_ACEOF
22049/* end confdefs.h. */
22050
22051 class Foo { public: explicit Foo(int) {} };
22052
22053int
22054main ()
22055{
22056
22057 return 0;
22058
22059 ;
22060 return 0;
22061}
22062_ACEOF
22063rm -f conftest.$ac_objext
22064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22065 (eval $ac_compile) 2>conftest.er1
a848cd7e 22066 ac_status=$?
ac1cb8d3
VS
22067 grep -v '^ *+' conftest.er1 >conftest.err
22068 rm -f conftest.er1
22069 cat conftest.err >&5
a848cd7e
SC
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } &&
0093c2fc 22072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074 (eval $ac_try) 2>&5
22075 ac_status=$?
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); }; } &&
22078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22081 ac_status=$?
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; }; then
22084
22085 cat >conftest.$ac_ext <<_ACEOF
22086/* confdefs.h. */
22087_ACEOF
22088cat confdefs.h >>conftest.$ac_ext
22089cat >>conftest.$ac_ext <<_ACEOF
22090/* end confdefs.h. */
22091
22092 class Foo { public: explicit Foo(int) {} };
22093 static void TakeFoo(const Foo& foo) { }
22094
22095int
22096main ()
22097{
22098
22099 TakeFoo(17);
22100 return 0;
22101
22102 ;
22103 return 0;
22104}
22105_ACEOF
22106rm -f conftest.$ac_objext
22107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22108 (eval $ac_compile) 2>conftest.er1
a848cd7e 22109 ac_status=$?
ac1cb8d3
VS
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
a848cd7e
SC
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } &&
0093c2fc 22115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 wx_cv_explicit=no
22128else
22129 echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132wx_cv_explicit=yes
22133
22134fi
ac1cb8d3 22135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22136
22137else
22138 echo "$as_me: failed program was:" >&5
22139sed 's/^/| /' conftest.$ac_ext >&5
22140
22141wx_cv_explicit=no
22142
22143fi
ac1cb8d3 22144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22145
22146 ac_ext=c
22147ac_cpp='$CPP $CPPFLAGS'
22148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22150ac_compiler_gnu=$ac_cv_c_compiler_gnu
22151
22152
22153fi
22154echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22155echo "${ECHO_T}$wx_cv_explicit" >&6
22156
22157 if test "$wx_cv_explicit" = "yes"; then
22158 cat >>confdefs.h <<\_ACEOF
22159#define HAVE_EXPLICIT 1
22160_ACEOF
22161
22162 fi
22163
22164
22165echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22166echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22167if test "${ac_cv_cxx_const_cast+set}" = set; then
22168 echo $ECHO_N "(cached) $ECHO_C" >&6
22169else
22170
22171
22172 ac_ext=cc
22173ac_cpp='$CXXCPP $CPPFLAGS'
22174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22177
22178 cat >conftest.$ac_ext <<_ACEOF
22179/* confdefs.h. */
22180_ACEOF
22181cat confdefs.h >>conftest.$ac_ext
22182cat >>conftest.$ac_ext <<_ACEOF
22183/* end confdefs.h. */
22184
22185int
22186main ()
22187{
22188int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22189 ;
22190 return 0;
22191}
22192_ACEOF
22193rm -f conftest.$ac_objext
22194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22195 (eval $ac_compile) 2>conftest.er1
a848cd7e 22196 ac_status=$?
ac1cb8d3
VS
22197 grep -v '^ *+' conftest.er1 >conftest.err
22198 rm -f conftest.er1
22199 cat conftest.err >&5
a848cd7e
SC
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } &&
0093c2fc 22202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204 (eval $ac_try) 2>&5
22205 ac_status=$?
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; } &&
22208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; }; then
22214 ac_cv_cxx_const_cast=yes
22215else
22216 echo "$as_me: failed program was:" >&5
22217sed 's/^/| /' conftest.$ac_ext >&5
22218
22219ac_cv_cxx_const_cast=no
22220fi
ac1cb8d3 22221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22222 ac_ext=c
22223ac_cpp='$CPP $CPPFLAGS'
22224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226ac_compiler_gnu=$ac_cv_c_compiler_gnu
22227
22228
22229fi
22230echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22231echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22232if test "$ac_cv_cxx_const_cast" = yes; then
22233
22234cat >>confdefs.h <<\_ACEOF
22235#define HAVE_CONST_CAST
22236_ACEOF
22237
22238fi
22239
7714864e
RL
22240echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22241echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22242if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22244else
22245
22246
22247 ac_ext=cc
22248ac_cpp='$CXXCPP $CPPFLAGS'
22249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22252
22253 cat >conftest.$ac_ext <<_ACEOF
22254/* confdefs.h. */
22255_ACEOF
22256cat confdefs.h >>conftest.$ac_ext
22257cat >>conftest.$ac_ext <<_ACEOF
22258/* end confdefs.h. */
22259#include <typeinfo>
22260class Base { public : Base () {} virtual void f () = 0;};
22261class Derived : public Base { public : Derived () {} virtual void f () {} };
22262class Unrelated { public : Unrelated () {} };
22263int g (Unrelated&) { return 0; }
22264int
22265main ()
22266{
22267
22268Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22269 ;
22270 return 0;
22271}
22272_ACEOF
22273rm -f conftest.$ac_objext
22274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22275 (eval $ac_compile) 2>conftest.er1
22276 ac_status=$?
22277 grep -v '^ *+' conftest.er1 >conftest.err
22278 rm -f conftest.er1
22279 cat conftest.err >&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } &&
0093c2fc 22282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22285 ac_status=$?
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; } &&
22288 { ac_try='test -s conftest.$ac_objext'
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; }; then
22294 ac_cv_cxx_reinterpret_cast=yes
22295else
22296 echo "$as_me: failed program was:" >&5
22297sed 's/^/| /' conftest.$ac_ext >&5
22298
22299ac_cv_cxx_reinterpret_cast=no
22300fi
22301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22302 ac_ext=c
22303ac_cpp='$CPP $CPPFLAGS'
22304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22306ac_compiler_gnu=$ac_cv_c_compiler_gnu
22307
22308
22309fi
22310echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22311echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22312if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22313
22314cat >>confdefs.h <<\_ACEOF
22315#define HAVE_REINTERPRET_CAST
22316_ACEOF
22317
22318fi
22319
a848cd7e
SC
22320echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22321echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22322if test "${ac_cv_cxx_static_cast+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22324else
22325
22326
22327 ac_ext=cc
22328ac_cpp='$CXXCPP $CPPFLAGS'
22329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22332
22333 cat >conftest.$ac_ext <<_ACEOF
22334/* confdefs.h. */
22335_ACEOF
22336cat confdefs.h >>conftest.$ac_ext
22337cat >>conftest.$ac_ext <<_ACEOF
22338/* end confdefs.h. */
22339#include <typeinfo>
22340class Base { public : Base () {} virtual void f () = 0; };
22341class Derived : public Base { public : Derived () {} virtual void f () {} };
22342int g (Derived&) { return 0; }
22343int
22344main ()
22345{
22346
22347Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22348 ;
22349 return 0;
22350}
22351_ACEOF
22352rm -f conftest.$ac_objext
22353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22354 (eval $ac_compile) 2>conftest.er1
a848cd7e 22355 ac_status=$?
ac1cb8d3
VS
22356 grep -v '^ *+' conftest.er1 >conftest.err
22357 rm -f conftest.er1
22358 cat conftest.err >&5
a848cd7e
SC
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } &&
0093c2fc 22361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; } &&
22367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369 (eval $ac_try) 2>&5
22370 ac_status=$?
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); }; }; then
22373 ac_cv_cxx_static_cast=yes
22374else
22375 echo "$as_me: failed program was:" >&5
22376sed 's/^/| /' conftest.$ac_ext >&5
22377
22378ac_cv_cxx_static_cast=no
22379fi
ac1cb8d3 22380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22381 ac_ext=c
22382ac_cpp='$CPP $CPPFLAGS'
22383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22385ac_compiler_gnu=$ac_cv_c_compiler_gnu
22386
22387
22388fi
22389echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22390echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22391if test "$ac_cv_cxx_static_cast" = yes; then
22392
22393cat >>confdefs.h <<\_ACEOF
22394#define HAVE_STATIC_CAST
22395_ACEOF
22396
22397fi
22398
22399
3c28b7cb
MW
22400if test "x$SUNCXX" = xyes; then
22401 CXXFLAGS="$CXXFLAGS -features=tmplife"
22402fi
22403
9122d155
VZ
22404if test "x$SUNCC" = xyes; then
22405 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
22406fi
22407
0ad5d837
VZ
22408if test "x$SGICC" = "xyes"; then
22409 CFLAGS="$CFLAGS -woff 3970"
22410fi
22411if test "x$SGICXX" = "xyes"; then
22412 CXXFLAGS="$CXXFLAGS -woff 3970"
22413fi
22414
2eef8513
VZ
22415if test "x$HPCC" = "xyes"; then
22416 CFLAGS="$CFLAGS +W 2011,2450"
22417fi
22418if test "x$HPCXX" = "xyes"; then
22419 CXXFLAGS="$CXXFLAGS +W 2340"
22420fi
22421
22422if test "x$COMPAQCXX" = "xyes"; then
22423 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22424fi
22425
f56c22b4 22426if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22427 ac_ext=cc
22428ac_cpp='$CXXCPP $CPPFLAGS'
22429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22432
22433
f56c22b4
MW
22434 if test "$wxUSE_UNICODE" = "yes"; then
22435 std_string="std::wstring"
22436 char_type="wchar_t"
22437 else
22438 std_string="std::string"
22439 char_type="char"
22440 fi
22441
22442 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22443echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22444 cat >conftest.$ac_ext <<_ACEOF
22445/* confdefs.h. */
22446_ACEOF
22447cat confdefs.h >>conftest.$ac_ext
22448cat >>conftest.$ac_ext <<_ACEOF
22449/* end confdefs.h. */
22450#include <string>
a848cd7e
SC
22451int
22452main ()
22453{
f56c22b4 22454$std_string foo;
a848cd7e
SC
22455 ;
22456 return 0;
22457}
22458_ACEOF
22459rm -f conftest.$ac_objext
22460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22461 (eval $ac_compile) 2>conftest.er1
a848cd7e 22462 ac_status=$?
ac1cb8d3
VS
22463 grep -v '^ *+' conftest.er1 >conftest.err
22464 rm -f conftest.er1
22465 cat conftest.err >&5
a848cd7e
SC
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } &&
0093c2fc 22468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; } &&
22474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22477 ac_status=$?
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; }; then
22480 echo "$as_me:$LINENO: result: yes" >&5
22481echo "${ECHO_T}yes" >&6
0a08f02a
MB
22482 cat >>confdefs.h <<\_ACEOF
22483#define HAVE_STD_WSTRING 1
22484_ACEOF
22485
a848cd7e
SC
22486else
22487 echo "$as_me: failed program was:" >&5
22488sed 's/^/| /' conftest.$ac_ext >&5
22489
22490echo "$as_me:$LINENO: result: no" >&5
22491echo "${ECHO_T}no" >&6
f56c22b4
MW
22492 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22493echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22494 cat >conftest.$ac_ext <<_ACEOF
22495/* confdefs.h. */
22496_ACEOF
22497cat confdefs.h >>conftest.$ac_ext
22498cat >>conftest.$ac_ext <<_ACEOF
22499/* end confdefs.h. */
22500
22501 #ifdef HAVE_WCHAR_H
22502 # ifdef __CYGWIN__
22503 # include <stddef.h>
22504 # endif
22505 # include <wchar.h>
22506 #endif
22507 #ifdef HAVE_STDLIB_H
22508 # include <stdlib.h>
22509 #endif
22510 #include <stdio.h>
22511 #include <string>
22512
22513int
22514main ()
22515{
f56c22b4
MW
22516std::basic_string<$char_type> foo;
22517 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22518 ;
22519 return 0;
22520}
22521_ACEOF
22522rm -f conftest.$ac_objext
22523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22524 (eval $ac_compile) 2>conftest.er1
22525 ac_status=$?
22526 grep -v '^ *+' conftest.er1 >conftest.err
22527 rm -f conftest.er1
22528 cat conftest.err >&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } &&
0093c2fc 22531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; } &&
22537 { ac_try='test -s conftest.$ac_objext'
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }; then
22543 echo "$as_me:$LINENO: result: yes" >&5
22544echo "${ECHO_T}yes" >&6
22545else
22546 echo "$as_me: failed program was:" >&5
22547sed 's/^/| /' conftest.$ac_ext >&5
22548
22549echo "$as_me:$LINENO: result: no" >&5
22550echo "${ECHO_T}no" >&6
f56c22b4 22551 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22552 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22553echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22554 { (exit 1); exit 1; }; }
22555 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22556 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22557echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22558 { (exit 1); exit 1; }; }
f56c22b4
MW
22559 else
22560 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22561echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22562 wxUSE_STD_STRING=no
22563 fi
22564
0a08f02a 22565
a848cd7e 22566fi
ac1cb8d3 22567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22568
0a08f02a
MB
22569fi
22570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22571
22572 ac_ext=c
22573ac_cpp='$CPP $CPPFLAGS'
22574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22576ac_compiler_gnu=$ac_cv_c_compiler_gnu
22577
22578fi
22579
22580if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22581 ac_ext=cc
22582ac_cpp='$CXXCPP $CPPFLAGS'
22583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22586
22587
22588 echo "$as_me:$LINENO: checking for std::istream" >&5
22589echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22590if test "${ac_cv_type_std__istream+set}" = set; then
22591 echo $ECHO_N "(cached) $ECHO_C" >&6
22592else
22593 cat >conftest.$ac_ext <<_ACEOF
22594/* confdefs.h. */
22595_ACEOF
22596cat confdefs.h >>conftest.$ac_ext
22597cat >>conftest.$ac_ext <<_ACEOF
22598/* end confdefs.h. */
22599#include <iostream>
22600
22601int
22602main ()
22603{
22604if ((std::istream *) 0)
22605 return 0;
22606if (sizeof (std::istream))
22607 return 0;
22608 ;
22609 return 0;
22610}
22611_ACEOF
22612rm -f conftest.$ac_objext
22613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22614 (eval $ac_compile) 2>conftest.er1
22615 ac_status=$?
22616 grep -v '^ *+' conftest.er1 >conftest.err
22617 rm -f conftest.er1
22618 cat conftest.err >&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } &&
0093c2fc 22621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; } &&
22627 { ac_try='test -s conftest.$ac_objext'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; }; then
22633 ac_cv_type_std__istream=yes
22634else
22635 echo "$as_me: failed program was:" >&5
22636sed 's/^/| /' conftest.$ac_ext >&5
22637
22638ac_cv_type_std__istream=no
22639fi
22640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22641fi
22642echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22643echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22644if test $ac_cv_type_std__istream = yes; then
22645
22646cat >>confdefs.h <<_ACEOF
22647#define HAVE_STD__ISTREAM 1
22648_ACEOF
22649
22650
22651else
22652 wxUSE_STD_IOSTREAM=no
22653fi
22654echo "$as_me:$LINENO: checking for std::ostream" >&5
22655echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22656if test "${ac_cv_type_std__ostream+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22658else
22659 cat >conftest.$ac_ext <<_ACEOF
22660/* confdefs.h. */
22661_ACEOF
22662cat confdefs.h >>conftest.$ac_ext
22663cat >>conftest.$ac_ext <<_ACEOF
22664/* end confdefs.h. */
22665#include <iostream>
22666
22667int
22668main ()
22669{
22670if ((std::ostream *) 0)
22671 return 0;
22672if (sizeof (std::ostream))
22673 return 0;
22674 ;
22675 return 0;
22676}
22677_ACEOF
22678rm -f conftest.$ac_objext
22679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22680 (eval $ac_compile) 2>conftest.er1
22681 ac_status=$?
22682 grep -v '^ *+' conftest.er1 >conftest.err
22683 rm -f conftest.er1
22684 cat conftest.err >&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } &&
0093c2fc 22687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22690 ac_status=$?
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; } &&
22693 { ac_try='test -s conftest.$ac_objext'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22696 ac_status=$?
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; }; then
22699 ac_cv_type_std__ostream=yes
22700else
22701 echo "$as_me: failed program was:" >&5
22702sed 's/^/| /' conftest.$ac_ext >&5
22703
22704ac_cv_type_std__ostream=no
22705fi
22706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22707fi
22708echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22709echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22710if test $ac_cv_type_std__ostream = yes; then
22711
22712cat >>confdefs.h <<_ACEOF
22713#define HAVE_STD__OSTREAM 1
22714_ACEOF
22715
22716
22717else
22718 wxUSE_STD_IOSTREAM=no
22719fi
22720
22721
22722 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22723 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22724 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22725echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22726 { (exit 1); exit 1; }; }
22727 else
22728 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22729echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22730 fi
f56c22b4
MW
22731 fi
22732
22733 ac_ext=c
22734ac_cpp='$CPP $CPPFLAGS'
22735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22737ac_compiler_gnu=$ac_cv_c_compiler_gnu
22738
22739fi
22740
22741if test "$wxUSE_STL" = "yes"; then
22742 ac_ext=cc
22743ac_cpp='$CXXCPP $CPPFLAGS'
22744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22747
22748
22749 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22750echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22751 cat >conftest.$ac_ext <<_ACEOF
22752/* confdefs.h. */
22753_ACEOF
22754cat confdefs.h >>conftest.$ac_ext
22755cat >>conftest.$ac_ext <<_ACEOF
22756/* end confdefs.h. */
22757#include <string>
0a08f02a
MB
22758 #include <functional>
22759 #include <algorithm>
22760 #include <vector>
22761 #include <list>
a848cd7e
SC
22762int
22763main ()
22764{
0a08f02a
MB
22765std::vector<int> moo;
22766 std::list<int> foo;
22767 std::vector<int>::iterator it =
22768 std::find_if(moo.begin(), moo.end(),
22769 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22770 ;
22771 return 0;
22772}
22773_ACEOF
22774rm -f conftest.$ac_objext
22775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22776 (eval $ac_compile) 2>conftest.er1
a848cd7e 22777 ac_status=$?
ac1cb8d3
VS
22778 grep -v '^ *+' conftest.er1 >conftest.err
22779 rm -f conftest.er1
22780 cat conftest.err >&5
a848cd7e
SC
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } &&
0093c2fc 22783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785 (eval $ac_try) 2>&5
22786 ac_status=$?
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); }; } &&
22789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791 (eval $ac_try) 2>&5
22792 ac_status=$?
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; }; then
22795 echo "$as_me:$LINENO: result: yes" >&5
22796echo "${ECHO_T}yes" >&6
a848cd7e
SC
22797else
22798 echo "$as_me: failed program was:" >&5
22799sed 's/^/| /' conftest.$ac_ext >&5
22800
22801echo "$as_me:$LINENO: result: no" >&5
22802echo "${ECHO_T}no" >&6
0a08f02a
MB
22803 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22804echo "$as_me: error: Basic STL functionality missing" >&2;}
22805 { (exit 1); exit 1; }; }
a848cd7e 22806fi
ac1cb8d3 22807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22808
22809 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22810echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22811 cat >conftest.$ac_ext <<_ACEOF
22812/* confdefs.h. */
22813_ACEOF
22814cat confdefs.h >>conftest.$ac_ext
22815cat >>conftest.$ac_ext <<_ACEOF
22816/* end confdefs.h. */
22817#include <string>
22818int
22819main ()
22820{
22821std::string foo, bar;
22822 foo.compare(bar);
22823 foo.compare(1, 1, bar);
22824 foo.compare(1, 1, bar, 1, 1);
22825 foo.compare("");
22826 foo.compare(1, 1, "");
22827 foo.compare(1, 1, "", 2);
22828 ;
22829 return 0;
22830}
22831_ACEOF
22832rm -f conftest.$ac_objext
22833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22834 (eval $ac_compile) 2>conftest.er1
a848cd7e 22835 ac_status=$?
ac1cb8d3
VS
22836 grep -v '^ *+' conftest.er1 >conftest.err
22837 rm -f conftest.er1
22838 cat conftest.err >&5
a848cd7e
SC
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); } &&
0093c2fc 22841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; } &&
22847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
22853 echo "$as_me:$LINENO: result: yes" >&5
22854echo "${ECHO_T}yes" >&6
22855 cat >>confdefs.h <<\_ACEOF
22856#define HAVE_STD_STRING_COMPARE 1
22857_ACEOF
22858
22859else
22860 echo "$as_me: failed program was:" >&5
22861sed 's/^/| /' conftest.$ac_ext >&5
22862
22863echo "$as_me:$LINENO: result: no" >&5
22864echo "${ECHO_T}no" >&6
22865fi
ac1cb8d3 22866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22867
22868 if test "${ac_cv_header_hash_map+set}" = set; then
22869 echo "$as_me:$LINENO: checking for hash_map" >&5
22870echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22871if test "${ac_cv_header_hash_map+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22873fi
22874echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22875echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22876else
22877 # Is the header compilable?
22878echo "$as_me:$LINENO: checking hash_map usability" >&5
22879echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22880cat >conftest.$ac_ext <<_ACEOF
22881/* confdefs.h. */
22882_ACEOF
22883cat confdefs.h >>conftest.$ac_ext
22884cat >>conftest.$ac_ext <<_ACEOF
22885/* end confdefs.h. */
22886$ac_includes_default
22887#include <hash_map>
22888_ACEOF
22889rm -f conftest.$ac_objext
22890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22891 (eval $ac_compile) 2>conftest.er1
bdcade0a 22892 ac_status=$?
ac1cb8d3
VS
22893 grep -v '^ *+' conftest.er1 >conftest.err
22894 rm -f conftest.er1
22895 cat conftest.err >&5
bdcade0a
MB
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); } &&
0093c2fc 22898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900 (eval $ac_try) 2>&5
22901 ac_status=$?
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }; } &&
22904 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }; then
22910 ac_header_compiler=yes
22911else
22912 echo "$as_me: failed program was:" >&5
22913sed 's/^/| /' conftest.$ac_ext >&5
22914
22915ac_header_compiler=no
22916fi
ac1cb8d3 22917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22918echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22919echo "${ECHO_T}$ac_header_compiler" >&6
22920
22921# Is the header present?
22922echo "$as_me:$LINENO: checking hash_map presence" >&5
22923echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
22924cat >conftest.$ac_ext <<_ACEOF
22925/* confdefs.h. */
22926_ACEOF
22927cat confdefs.h >>conftest.$ac_ext
22928cat >>conftest.$ac_ext <<_ACEOF
22929/* end confdefs.h. */
22930#include <hash_map>
22931_ACEOF
22932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22934 ac_status=$?
22935 grep -v '^ *+' conftest.er1 >conftest.err
22936 rm -f conftest.er1
22937 cat conftest.err >&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } >/dev/null; then
22940 if test -s conftest.err; then
22941 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22942 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22943 else
22944 ac_cpp_err=
22945 fi
22946else
22947 ac_cpp_err=yes
22948fi
22949if test -z "$ac_cpp_err"; then
22950 ac_header_preproc=yes
22951else
22952 echo "$as_me: failed program was:" >&5
22953sed 's/^/| /' conftest.$ac_ext >&5
22954
22955 ac_header_preproc=no
22956fi
22957rm -f conftest.err conftest.$ac_ext
22958echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22959echo "${ECHO_T}$ac_header_preproc" >&6
22960
22961# So? What about this header?
ac1cb8d3
VS
22962case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22963 yes:no: )
bdcade0a
MB
22964 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22965echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22966 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22967echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22968 ac_header_preproc=yes
bdcade0a 22969 ;;
ac1cb8d3 22970 no:yes:* )
bdcade0a
MB
22971 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22972echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22973 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22974echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22975 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22976echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22977 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22978echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22979 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22980echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22981 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22982echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22983 (
22984 cat <<\_ASBOX
ac1cb8d3
VS
22985## ----------------------------------------- ##
22986## Report this to wx-dev@lists.wxwidgets.org ##
22987## ----------------------------------------- ##
bdcade0a
MB
22988_ASBOX
22989 ) |
22990 sed "s/^/$as_me: WARNING: /" >&2
22991 ;;
22992esac
22993echo "$as_me:$LINENO: checking for hash_map" >&5
22994echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22995if test "${ac_cv_header_hash_map+set}" = set; then
22996 echo $ECHO_N "(cached) $ECHO_C" >&6
22997else
22998 ac_cv_header_hash_map=$ac_header_preproc
22999fi
23000echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23001echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23002
23003fi
23004if test $ac_cv_header_hash_map = yes; then
23005 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23006echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23007 cat >conftest.$ac_ext <<_ACEOF
23008/* confdefs.h. */
23009_ACEOF
23010cat confdefs.h >>conftest.$ac_ext
23011cat >>conftest.$ac_ext <<_ACEOF
23012/* end confdefs.h. */
23013#include <hash_map>
23014 #include <hash_set>
23015int
23016main ()
23017{
23018std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23019 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23020 ;
23021 return 0;
23022}
23023_ACEOF
23024rm -f conftest.$ac_objext
23025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23026 (eval $ac_compile) 2>conftest.er1
bdcade0a 23027 ac_status=$?
ac1cb8d3
VS
23028 grep -v '^ *+' conftest.er1 >conftest.err
23029 rm -f conftest.er1
23030 cat conftest.err >&5
bdcade0a
MB
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } &&
0093c2fc 23033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035 (eval $ac_try) 2>&5
23036 ac_status=$?
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); }; } &&
23039 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041 (eval $ac_try) 2>&5
23042 ac_status=$?
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); }; }; then
23045 echo "$as_me:$LINENO: result: yes" >&5
23046echo "${ECHO_T}yes" >&6
23047 cat >>confdefs.h <<\_ACEOF
23048#define HAVE_HASH_MAP 1
23049_ACEOF
23050
23051 cat >>confdefs.h <<\_ACEOF
23052#define HAVE_STD_HASH_MAP 1
23053_ACEOF
23054
23055else
23056 echo "$as_me: failed program was:" >&5
23057sed 's/^/| /' conftest.$ac_ext >&5
23058
23059echo "$as_me:$LINENO: result: no" >&5
23060echo "${ECHO_T}no" >&6
23061fi
ac1cb8d3 23062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23063
23064fi
23065
23066
23067
23068 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23069 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23070echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23071if test "${ac_cv_header_ext_hash_map+set}" = set; then
23072 echo $ECHO_N "(cached) $ECHO_C" >&6
23073fi
23074echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23075echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23076else
23077 # Is the header compilable?
23078echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23079echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23080cat >conftest.$ac_ext <<_ACEOF
23081/* confdefs.h. */
23082_ACEOF
23083cat confdefs.h >>conftest.$ac_ext
23084cat >>conftest.$ac_ext <<_ACEOF
23085/* end confdefs.h. */
23086$ac_includes_default
23087#include <ext/hash_map>
23088_ACEOF
23089rm -f conftest.$ac_objext
23090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23091 (eval $ac_compile) 2>conftest.er1
bdcade0a 23092 ac_status=$?
ac1cb8d3
VS
23093 grep -v '^ *+' conftest.er1 >conftest.err
23094 rm -f conftest.er1
23095 cat conftest.err >&5
bdcade0a
MB
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } &&
0093c2fc 23098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); }; } &&
23104 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106 (eval $ac_try) 2>&5
23107 ac_status=$?
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); }; }; then
23110 ac_header_compiler=yes
23111else
23112 echo "$as_me: failed program was:" >&5
23113sed 's/^/| /' conftest.$ac_ext >&5
23114
23115ac_header_compiler=no
23116fi
ac1cb8d3 23117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23119echo "${ECHO_T}$ac_header_compiler" >&6
23120
23121# Is the header present?
23122echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23123echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23124cat >conftest.$ac_ext <<_ACEOF
23125/* confdefs.h. */
23126_ACEOF
23127cat confdefs.h >>conftest.$ac_ext
23128cat >>conftest.$ac_ext <<_ACEOF
23129/* end confdefs.h. */
23130#include <ext/hash_map>
23131_ACEOF
23132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23134 ac_status=$?
23135 grep -v '^ *+' conftest.er1 >conftest.err
23136 rm -f conftest.er1
23137 cat conftest.err >&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } >/dev/null; then
23140 if test -s conftest.err; then
23141 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23142 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23143 else
23144 ac_cpp_err=
23145 fi
23146else
23147 ac_cpp_err=yes
23148fi
23149if test -z "$ac_cpp_err"; then
23150 ac_header_preproc=yes
23151else
23152 echo "$as_me: failed program was:" >&5
23153sed 's/^/| /' conftest.$ac_ext >&5
23154
23155 ac_header_preproc=no
23156fi
23157rm -f conftest.err conftest.$ac_ext
23158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23159echo "${ECHO_T}$ac_header_preproc" >&6
23160
23161# So? What about this header?
ac1cb8d3
VS
23162case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23163 yes:no: )
bdcade0a
MB
23164 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23165echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23166 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23167echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23168 ac_header_preproc=yes
bdcade0a 23169 ;;
ac1cb8d3 23170 no:yes:* )
bdcade0a
MB
23171 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23172echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23173 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23174echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23175 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23176echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23177 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23178echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23179 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23180echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23181 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23182echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23183 (
23184 cat <<\_ASBOX
ac1cb8d3
VS
23185## ----------------------------------------- ##
23186## Report this to wx-dev@lists.wxwidgets.org ##
23187## ----------------------------------------- ##
bdcade0a
MB
23188_ASBOX
23189 ) |
23190 sed "s/^/$as_me: WARNING: /" >&2
23191 ;;
23192esac
23193echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23194echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23195if test "${ac_cv_header_ext_hash_map+set}" = set; then
23196 echo $ECHO_N "(cached) $ECHO_C" >&6
23197else
23198 ac_cv_header_ext_hash_map=$ac_header_preproc
23199fi
23200echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23201echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23202
23203fi
23204if test $ac_cv_header_ext_hash_map = yes; then
23205 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23206echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23207 cat >conftest.$ac_ext <<_ACEOF
23208/* confdefs.h. */
23209_ACEOF
23210cat confdefs.h >>conftest.$ac_ext
23211cat >>conftest.$ac_ext <<_ACEOF
23212/* end confdefs.h. */
23213#include <ext/hash_map>
23214 #include <ext/hash_set>
23215int
23216main ()
23217{
23218__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23219 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23220 ;
23221 return 0;
23222}
23223_ACEOF
23224rm -f conftest.$ac_objext
23225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23226 (eval $ac_compile) 2>conftest.er1
bdcade0a 23227 ac_status=$?
ac1cb8d3
VS
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
bdcade0a
MB
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } &&
0093c2fc 23233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235 (eval $ac_try) 2>&5
23236 ac_status=$?
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); }; } &&
23239 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23241 (eval $ac_try) 2>&5
23242 ac_status=$?
23243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); }; }; then
23245 echo "$as_me:$LINENO: result: yes" >&5
23246echo "${ECHO_T}yes" >&6
23247 cat >>confdefs.h <<\_ACEOF
23248#define HAVE_EXT_HASH_MAP 1
23249_ACEOF
23250
23251 cat >>confdefs.h <<\_ACEOF
23252#define HAVE_GNU_CXX_HASH_MAP 1
23253_ACEOF
23254
23255else
23256 echo "$as_me: failed program was:" >&5
23257sed 's/^/| /' conftest.$ac_ext >&5
23258
23259echo "$as_me:$LINENO: result: no" >&5
23260echo "${ECHO_T}no" >&6
23261fi
ac1cb8d3 23262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23263
23264fi
23265
23266
a848cd7e
SC
23267
23268 ac_ext=c
23269ac_cpp='$CPP $CPPFLAGS'
23270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23272ac_compiler_gnu=$ac_cv_c_compiler_gnu
23273
23274fi
23275
23276
23277SEARCH_INCLUDE="\
23278 /usr/local/include \
23279 \
23280 /usr/Motif-2.1/include \
23281 /usr/Motif-1.2/include \
23282 /usr/include/Motif1.2 \
a848cd7e
SC
23283 \
23284 /usr/dt/include \
23285 /usr/openwin/include \
23286 \
23287 /usr/include/Xm \
23288 \
23289 /usr/X11R6/include \
23290 /usr/X11R6.4/include \
23291 /usr/X11R5/include \
23292 /usr/X11R4/include \
23293 \
23294 /usr/include/X11R6 \
23295 /usr/include/X11R5 \
23296 /usr/include/X11R4 \
23297 \
23298 /usr/local/X11R6/include \
23299 /usr/local/X11R5/include \
23300 /usr/local/X11R4/include \
23301 \
23302 /usr/local/include/X11R6 \
23303 /usr/local/include/X11R5 \
23304 /usr/local/include/X11R4 \
23305 \
23306 /usr/X11/include \
23307 /usr/include/X11 \
23308 /usr/local/X11/include \
23309 /usr/local/include/X11 \
23310 \
a848cd7e 23311 /usr/XFree86/include/X11 \
e051b34e
MW
23312 /usr/pkg/include \
23313 \
a848cd7e
SC
23314 /usr/openwin/share/include"
23315
6f9cf1e6 23316echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23317echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23318
23319case "${host}" in
23320 *-*-irix6* )
23321 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23323else
23324
c687b303
VZ
23325 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23326 for e in a so sl dylib dll.a; do
23327 libc="$d/libc.$e"
23328 if test -f $libc; then
23329 save_LIBS="$LIBS"
23330 LIBS="$libc"
23331 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23332int main() { return 0; }
23333_ACEOF
23334rm -f conftest.$ac_objext conftest$ac_exeext
23335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23336 (eval $ac_link) 2>conftest.er1
23337 ac_status=$?
23338 grep -v '^ *+' conftest.er1 >conftest.err
23339 rm -f conftest.er1
23340 cat conftest.err >&5
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } &&
0093c2fc 23343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23346 ac_status=$?
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; } &&
23349 { ac_try='test -s conftest$ac_exeext'
23350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23351 (eval $ac_try) 2>&5
23352 ac_status=$?
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); }; }; then
23355 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23356else
23357 echo "$as_me: failed program was:" >&5
23358sed 's/^/| /' conftest.$ac_ext >&5
23359
23360fi
23361rm -f conftest.err conftest.$ac_objext \
23362 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23363 LIBS="$save_LIBS"
23364 if test "x$wx_cv_std_libpath" != "x"; then
23365 break 2
23366 fi
23367 fi
23368 done
23369 done
23370 if test "x$wx_cv_std_libpath" = "x"; then
23371 wx_cv_std_libpath="lib"
0ad5d837 23372 fi
0ad5d837
VZ
23373
23374
23375fi
6f9cf1e6
MW
23376
23377 ;;
23378
23379 *-*-solaris2* )
23380 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23381 wx_cv_std_libpath="lib/64"
23382 else
23383 wx_cv_std_libpath="lib"
23384 fi
23385 ;;
23386
23387 *-*-linux* )
23388 if test "$ac_cv_sizeof_void_p" = 8 -a \
23389 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23390 wx_cv_std_libpath="lib64"
23391 else
23392 wx_cv_std_libpath="lib"
23393 fi
c687b303
VZ
23394 ;;
23395
23396 *)
23397 wx_cv_std_libpath="lib";
23398 ;;
23399esac
0ad5d837 23400
6f9cf1e6
MW
23401echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23402echo "${ECHO_T}$wx_cv_std_libpath" >&6
23403
23404SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23405
3eca31dc
MW
23406if test "$build" != "$host" -a "$GCC" = yes; then
23407 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23408 cross_root=`dirname $cross_root`
23409 cross_root=`dirname $cross_root`
23410
23411 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23412 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23413
23414 if test -z "$PKG_CONFIG_PATH"; then
23415 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23416 export PKG_CONFIG_PATH
23417 fi
23418
23419 if test -z "$x_includes" -o "$x_includes" = NONE; then
23420
23421ac_find_includes=
23422for ac_dir in $SEARCH_INCLUDE /usr/include;
23423 do
23424 if test -f "$ac_dir/X11/Intrinsic.h"; then
23425 ac_find_includes=$ac_dir
23426 break
23427 fi
23428 done
23429
23430 x_includes=$ac_find_includes
23431 fi
23432 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23433
0ad5d837
VZ
23434 ac_find_libraries=
23435 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23436 do
23437 for ac_extension in a so sl dylib dll.a; do
23438 if test -f "$ac_dir/libXt.$ac_extension"; then
23439 ac_find_libraries=$ac_dir
23440 break 2
23441 fi
23442 done
23443 done
23444
23445 x_libraries=$ac_find_libraries
23446 fi
23447 fi
23448fi
23449
a848cd7e
SC
23450
23451cat >confcache <<\_ACEOF
23452# This file is a shell script that caches the results of configure
23453# tests run on this system so they can be shared between configure
23454# scripts and configure runs, see configure's option --config-cache.
23455# It is not useful on other systems. If it contains results you don't
23456# want to keep, you may remove or edit it.
23457#
23458# config.status only pays attention to the cache file if you give it
23459# the --recheck option to rerun configure.
23460#
23461# `ac_cv_env_foo' variables (set or unset) will be overridden when
23462# loading this file, other *unset* `ac_cv_foo' will be assigned the
23463# following values.
23464
23465_ACEOF
23466
23467# The following way of writing the cache mishandles newlines in values,
23468# but we know of no workaround that is simple, portable, and efficient.
23469# So, don't put newlines in cache variables' values.
23470# Ultrix sh set writes to stderr and can't be redirected directly,
23471# and sets the high bit in the cache file unless we assign to the vars.
23472{
23473 (set) 2>&1 |
23474 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23475 *ac_space=\ *)
23476 # `set' does not quote correctly, so add quotes (double-quote
23477 # substitution turns \\\\ into \\, and sed turns \\ into \).
23478 sed -n \
ac1cb8d3
VS
23479 "s/'/'\\\\''/g;
23480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23481 ;;
23482 *)
23483 # `set' quotes correctly as required by POSIX, so do not add quotes.
23484 sed -n \
ac1cb8d3 23485 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23486 ;;
23487 esac;
23488} |
23489 sed '
23490 t clear
23491 : clear
23492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23493 t end
23494 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23495 : end' >>confcache
23496if diff $cache_file confcache >/dev/null 2>&1; then :; else
23497 if test -w $cache_file; then
23498 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23499 cat confcache >$cache_file
23500 else
23501 echo "not updating unwritable cache $cache_file"
23502 fi
23503fi
23504rm -f confcache
23505
23506if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23507 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23508echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23509if test "${wx_cv_lib_glibc21+set}" = set; then
23510 echo $ECHO_N "(cached) $ECHO_C" >&6
23511else
23512
23513 cat >conftest.$ac_ext <<_ACEOF
23514/* confdefs.h. */
23515_ACEOF
23516cat confdefs.h >>conftest.$ac_ext
23517cat >>conftest.$ac_ext <<_ACEOF
23518/* end confdefs.h. */
23519#include <features.h>
23520int
23521main ()
23522{
23523
23524 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23525 not glibc 2.1
a848cd7e
SC
23526 #endif
23527
23528 ;
23529 return 0;
23530}
23531_ACEOF
23532rm -f conftest.$ac_objext
23533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23534 (eval $ac_compile) 2>conftest.er1
a848cd7e 23535 ac_status=$?
ac1cb8d3
VS
23536 grep -v '^ *+' conftest.er1 >conftest.err
23537 rm -f conftest.er1
23538 cat conftest.err >&5
a848cd7e
SC
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } &&
0093c2fc 23541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23543 (eval $ac_try) 2>&5
23544 ac_status=$?
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); }; } &&
23547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23549 (eval $ac_try) 2>&5
23550 ac_status=$?
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); }; }; then
23553
23554 wx_cv_lib_glibc21=yes
23555
23556else
23557 echo "$as_me: failed program was:" >&5
23558sed 's/^/| /' conftest.$ac_ext >&5
23559
23560
23561 wx_cv_lib_glibc21=no
23562
23563
23564fi
ac1cb8d3 23565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23566
23567fi
23568echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23569echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23570 if test "$wx_cv_lib_glibc21" = "yes"; then
23571 cat >>confdefs.h <<\_ACEOF
23572#define wxHAVE_GLIBC2 1
23573_ACEOF
23574
23575 fi
23576fi
23577
23578if test "x$wx_cv_lib_glibc21" = "xyes"; then
23579 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23580 cat >>confdefs.h <<\_ACEOF
23581#define _GNU_SOURCE 1
23582_ACEOF
23583
23584 fi
23585fi
23586
23587
23588
23589if test "$wxUSE_REGEX" != "no"; then
23590 cat >>confdefs.h <<\_ACEOF
23591#define wxUSE_REGEX 1
23592_ACEOF
23593
23594
23595 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23596 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23597echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23598 wxUSE_REGEX=builtin
23599 fi
23600
23601 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23602 if test "${ac_cv_header_regex_h+set}" = set; then
23603 echo "$as_me:$LINENO: checking for regex.h" >&5
23604echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23605if test "${ac_cv_header_regex_h+set}" = set; then
23606 echo $ECHO_N "(cached) $ECHO_C" >&6
23607fi
23608echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23609echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23610else
23611 # Is the header compilable?
23612echo "$as_me:$LINENO: checking regex.h usability" >&5
23613echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23614cat >conftest.$ac_ext <<_ACEOF
23615/* confdefs.h. */
23616_ACEOF
23617cat confdefs.h >>conftest.$ac_ext
23618cat >>conftest.$ac_ext <<_ACEOF
23619/* end confdefs.h. */
23620$ac_includes_default
23621#include <regex.h>
23622_ACEOF
23623rm -f conftest.$ac_objext
23624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23625 (eval $ac_compile) 2>conftest.er1
a848cd7e 23626 ac_status=$?
ac1cb8d3
VS
23627 grep -v '^ *+' conftest.er1 >conftest.err
23628 rm -f conftest.er1
23629 cat conftest.err >&5
a848cd7e
SC
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); } &&
0093c2fc 23632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634 (eval $ac_try) 2>&5
23635 ac_status=$?
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); }; } &&
23638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640 (eval $ac_try) 2>&5
23641 ac_status=$?
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); }; }; then
23644 ac_header_compiler=yes
23645else
23646 echo "$as_me: failed program was:" >&5
23647sed 's/^/| /' conftest.$ac_ext >&5
23648
23649ac_header_compiler=no
23650fi
ac1cb8d3 23651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23652echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23653echo "${ECHO_T}$ac_header_compiler" >&6
23654
23655# Is the header present?
23656echo "$as_me:$LINENO: checking regex.h presence" >&5
23657echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23658cat >conftest.$ac_ext <<_ACEOF
23659/* confdefs.h. */
23660_ACEOF
23661cat confdefs.h >>conftest.$ac_ext
23662cat >>conftest.$ac_ext <<_ACEOF
23663/* end confdefs.h. */
23664#include <regex.h>
23665_ACEOF
23666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23668 ac_status=$?
23669 grep -v '^ *+' conftest.er1 >conftest.err
23670 rm -f conftest.er1
23671 cat conftest.err >&5
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); } >/dev/null; then
23674 if test -s conftest.err; then
23675 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23677 else
23678 ac_cpp_err=
23679 fi
23680else
23681 ac_cpp_err=yes
23682fi
23683if test -z "$ac_cpp_err"; then
23684 ac_header_preproc=yes
23685else
23686 echo "$as_me: failed program was:" >&5
23687sed 's/^/| /' conftest.$ac_ext >&5
23688
23689 ac_header_preproc=no
23690fi
23691rm -f conftest.err conftest.$ac_ext
23692echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23693echo "${ECHO_T}$ac_header_preproc" >&6
23694
23695# So? What about this header?
ac1cb8d3
VS
23696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23697 yes:no: )
a848cd7e
SC
23698 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23699echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23700 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23701echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23702 ac_header_preproc=yes
a848cd7e 23703 ;;
ac1cb8d3 23704 no:yes:* )
a848cd7e
SC
23705 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23706echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23707 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23708echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23709 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23710echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23711 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23712echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23713 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23714echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23715 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23716echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23717 (
23718 cat <<\_ASBOX
ac1cb8d3
VS
23719## ----------------------------------------- ##
23720## Report this to wx-dev@lists.wxwidgets.org ##
23721## ----------------------------------------- ##
a848cd7e
SC
23722_ASBOX
23723 ) |
23724 sed "s/^/$as_me: WARNING: /" >&2
23725 ;;
23726esac
23727echo "$as_me:$LINENO: checking for regex.h" >&5
23728echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23729if test "${ac_cv_header_regex_h+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23731else
23732 ac_cv_header_regex_h=$ac_header_preproc
23733fi
23734echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23735echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23736
23737fi
23738if test $ac_cv_header_regex_h = yes; then
23739
23740for ac_func in regcomp
23741do
23742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23743echo "$as_me:$LINENO: checking for $ac_func" >&5
23744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23745if eval "test \"\${$as_ac_var+set}\" = set"; then
23746 echo $ECHO_N "(cached) $ECHO_C" >&6
23747else
23748 cat >conftest.$ac_ext <<_ACEOF
23749/* confdefs.h. */
23750_ACEOF
23751cat confdefs.h >>conftest.$ac_ext
23752cat >>conftest.$ac_ext <<_ACEOF
23753/* end confdefs.h. */
ac1cb8d3
VS
23754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23756#define $ac_func innocuous_$ac_func
23757
a848cd7e
SC
23758/* System header to define __stub macros and hopefully few prototypes,
23759 which can conflict with char $ac_func (); below.
23760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23761 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23762
a848cd7e
SC
23763#ifdef __STDC__
23764# include <limits.h>
23765#else
23766# include <assert.h>
23767#endif
ac1cb8d3
VS
23768
23769#undef $ac_func
23770
a848cd7e
SC
23771/* Override any gcc2 internal prototype to avoid an error. */
23772#ifdef __cplusplus
23773extern "C"
23774{
23775#endif
23776/* We use char because int might match the return type of a gcc2
23777 builtin and then its argument prototype would still apply. */
23778char $ac_func ();
23779/* The GNU C library defines this for functions which it implements
23780 to always fail with ENOSYS. Some functions are actually named
23781 something starting with __ and the normal name is an alias. */
23782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23783choke me
23784#else
23785char (*f) () = $ac_func;
23786#endif
23787#ifdef __cplusplus
23788}
23789#endif
23790
23791int
23792main ()
23793{
23794return f != $ac_func;
23795 ;
23796 return 0;
23797}
23798_ACEOF
23799rm -f conftest.$ac_objext conftest$ac_exeext
23800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23801 (eval $ac_link) 2>conftest.er1
a848cd7e 23802 ac_status=$?
ac1cb8d3
VS
23803 grep -v '^ *+' conftest.er1 >conftest.err
23804 rm -f conftest.er1
23805 cat conftest.err >&5
a848cd7e
SC
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } &&
0093c2fc 23808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810 (eval $ac_try) 2>&5
23811 ac_status=$?
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); }; } &&
23814 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816 (eval $ac_try) 2>&5
23817 ac_status=$?
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); }; }; then
23820 eval "$as_ac_var=yes"
23821else
23822 echo "$as_me: failed program was:" >&5
23823sed 's/^/| /' conftest.$ac_ext >&5
23824
23825eval "$as_ac_var=no"
23826fi
ac1cb8d3
VS
23827rm -f conftest.err conftest.$ac_objext \
23828 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23829fi
23830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23832if test `eval echo '${'$as_ac_var'}'` = yes; then
23833 cat >>confdefs.h <<_ACEOF
23834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23835_ACEOF
23836
23837fi
23838done
23839
23840fi
23841
23842
23843
23844 if test "x$ac_cv_func_regcomp" != "xyes"; then
23845 if test "$wxUSE_REGEX" = "sys" ; then
23846 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23847echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23848 { (exit 1); exit 1; }; }
23849 else
23850 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23851echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23852 wxUSE_REGEX=builtin
23853 fi
23854 else
23855 wxUSE_REGEX=sys
23856 cat >>confdefs.h <<\_ACEOF
23857#define WX_NO_REGEX_ADVANCED 1
23858_ACEOF
23859
23860 fi
23861 fi
23862fi
23863
23864
23865ZLIB_LINK=
23866if test "$wxUSE_ZLIB" != "no" ; then
23867 cat >>confdefs.h <<\_ACEOF
23868#define wxUSE_ZLIB 1
23869_ACEOF
23870
23871
23872 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23873 if test "$USE_DARWIN" = 1; then
23874 system_zlib_h_ok="yes"
23875 else
23876 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23877echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23878if test "${ac_cv_header_zlib_h+set}" = set; then
23879 echo $ECHO_N "(cached) $ECHO_C" >&6
23880else
23881 if test "$cross_compiling" = yes; then
23882 unset ac_cv_header_zlib_h
23883
23884else
23885 cat >conftest.$ac_ext <<_ACEOF
23886/* confdefs.h. */
23887_ACEOF
23888cat confdefs.h >>conftest.$ac_ext
23889cat >>conftest.$ac_ext <<_ACEOF
23890/* end confdefs.h. */
23891
23892 #include <zlib.h>
23893 #include <stdio.h>
23894
23895 int main()
23896 {
23897 FILE *f=fopen("conftestval", "w");
23898 if (!f) exit(1);
23899 fprintf(f, "%s",
23900 ZLIB_VERSION[0] == '1' &&
23901 (ZLIB_VERSION[2] > '1' ||
23902 (ZLIB_VERSION[2] == '1' &&
23903 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23904 exit(0);
23905 }
23906
23907_ACEOF
23908rm -f conftest$ac_exeext
23909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23910 (eval $ac_link) 2>&5
23911 ac_status=$?
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
23919 ac_cv_header_zlib_h=`cat conftestval`
23920else
23921 echo "$as_me: program exited with status $ac_status" >&5
23922echo "$as_me: failed program was:" >&5
23923sed 's/^/| /' conftest.$ac_ext >&5
23924
23925( exit $ac_status )
23926ac_cv_header_zlib_h=no
23927fi
ac1cb8d3 23928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23929fi
23930
23931fi
23932echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23933echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23934 if test "${ac_cv_header_zlib_h+set}" = set; then
23935 echo "$as_me:$LINENO: checking for zlib.h" >&5
23936echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23937if test "${ac_cv_header_zlib_h+set}" = set; then
23938 echo $ECHO_N "(cached) $ECHO_C" >&6
23939fi
23940echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23941echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23942else
23943 # Is the header compilable?
23944echo "$as_me:$LINENO: checking zlib.h usability" >&5
23945echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23946cat >conftest.$ac_ext <<_ACEOF
23947/* confdefs.h. */
23948_ACEOF
23949cat confdefs.h >>conftest.$ac_ext
23950cat >>conftest.$ac_ext <<_ACEOF
23951/* end confdefs.h. */
23952$ac_includes_default
23953#include <zlib.h>
23954_ACEOF
23955rm -f conftest.$ac_objext
23956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23957 (eval $ac_compile) 2>conftest.er1
a848cd7e 23958 ac_status=$?
ac1cb8d3
VS
23959 grep -v '^ *+' conftest.er1 >conftest.err
23960 rm -f conftest.er1
23961 cat conftest.err >&5
a848cd7e
SC
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } &&
0093c2fc 23964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23967 ac_status=$?
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; } &&
23970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23973 ac_status=$?
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; }; then
23976 ac_header_compiler=yes
23977else
23978 echo "$as_me: failed program was:" >&5
23979sed 's/^/| /' conftest.$ac_ext >&5
23980
23981ac_header_compiler=no
23982fi
ac1cb8d3 23983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23984echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23985echo "${ECHO_T}$ac_header_compiler" >&6
23986
23987# Is the header present?
23988echo "$as_me:$LINENO: checking zlib.h presence" >&5
23989echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23990cat >conftest.$ac_ext <<_ACEOF
23991/* confdefs.h. */
23992_ACEOF
23993cat confdefs.h >>conftest.$ac_ext
23994cat >>conftest.$ac_ext <<_ACEOF
23995/* end confdefs.h. */
23996#include <zlib.h>
23997_ACEOF
23998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24000 ac_status=$?
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } >/dev/null; then
24006 if test -s conftest.err; then
24007 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24009 else
24010 ac_cpp_err=
24011 fi
24012else
24013 ac_cpp_err=yes
24014fi
24015if test -z "$ac_cpp_err"; then
24016 ac_header_preproc=yes
24017else
24018 echo "$as_me: failed program was:" >&5
24019sed 's/^/| /' conftest.$ac_ext >&5
24020
24021 ac_header_preproc=no
24022fi
24023rm -f conftest.err conftest.$ac_ext
24024echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24025echo "${ECHO_T}$ac_header_preproc" >&6
24026
24027# So? What about this header?
ac1cb8d3
VS
24028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24029 yes:no: )
a848cd7e
SC
24030 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24031echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24032 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24033echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24034 ac_header_preproc=yes
a848cd7e 24035 ;;
ac1cb8d3 24036 no:yes:* )
a848cd7e
SC
24037 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24038echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24039 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24040echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24041 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24042echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24043 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24044echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24045 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24046echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24047 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24048echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24049 (
24050 cat <<\_ASBOX
ac1cb8d3
VS
24051## ----------------------------------------- ##
24052## Report this to wx-dev@lists.wxwidgets.org ##
24053## ----------------------------------------- ##
a848cd7e
SC
24054_ASBOX
24055 ) |
24056 sed "s/^/$as_me: WARNING: /" >&2
24057 ;;
24058esac
24059echo "$as_me:$LINENO: checking for zlib.h" >&5
24060echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24061if test "${ac_cv_header_zlib_h+set}" = set; then
24062 echo $ECHO_N "(cached) $ECHO_C" >&6
24063else
24064 ac_cv_header_zlib_h=$ac_header_preproc
24065fi
24066echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24067echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24068
24069fi
24070
24071
24072
24073 system_zlib_h_ok=$ac_cv_header_zlib_h
24074 fi
24075
24076 if test "$system_zlib_h_ok" = "yes"; then
24077 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24078echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24079if test "${ac_cv_lib_z_deflate+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24081else
24082 ac_check_lib_save_LIBS=$LIBS
24083LIBS="-lz $LIBS"
24084cat >conftest.$ac_ext <<_ACEOF
24085/* confdefs.h. */
24086_ACEOF
24087cat confdefs.h >>conftest.$ac_ext
24088cat >>conftest.$ac_ext <<_ACEOF
24089/* end confdefs.h. */
24090
24091/* Override any gcc2 internal prototype to avoid an error. */
24092#ifdef __cplusplus
24093extern "C"
24094#endif
24095/* We use char because int might match the return type of a gcc2
24096 builtin and then its argument prototype would still apply. */
24097char deflate ();
24098int
24099main ()
24100{
24101deflate ();
24102 ;
24103 return 0;
24104}
24105_ACEOF
24106rm -f conftest.$ac_objext conftest$ac_exeext
24107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24108 (eval $ac_link) 2>conftest.er1
a848cd7e 24109 ac_status=$?
ac1cb8d3
VS
24110 grep -v '^ *+' conftest.er1 >conftest.err
24111 rm -f conftest.er1
24112 cat conftest.err >&5
a848cd7e
SC
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } &&
0093c2fc 24115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24117 (eval $ac_try) 2>&5
24118 ac_status=$?
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); }; } &&
24121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123 (eval $ac_try) 2>&5
24124 ac_status=$?
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); }; }; then
24127 ac_cv_lib_z_deflate=yes
24128else
24129 echo "$as_me: failed program was:" >&5
24130sed 's/^/| /' conftest.$ac_ext >&5
24131
24132ac_cv_lib_z_deflate=no
24133fi
ac1cb8d3
VS
24134rm -f conftest.err conftest.$ac_objext \
24135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24136LIBS=$ac_check_lib_save_LIBS
24137fi
24138echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24139echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24140if test $ac_cv_lib_z_deflate = yes; then
24141 ZLIB_LINK=" -lz"
24142fi
24143
24144 fi
24145
24146 if test "x$ZLIB_LINK" = "x" ; then
24147 if test "$wxUSE_ZLIB" = "sys" ; then
24148 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24149echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24150 { (exit 1); exit 1; }; }
24151 else
24152 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24153echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24154 wxUSE_ZLIB=builtin
24155 fi
24156 else
24157 wxUSE_ZLIB=sys
24158 fi
24159 fi
24160fi
24161
24162
24163PNG_LINK=
24164if test "$wxUSE_LIBPNG" != "no" ; then
24165 cat >>confdefs.h <<\_ACEOF
24166#define wxUSE_LIBPNG 1
24167_ACEOF
24168
24169
24170 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24171 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24172echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24173 wxUSE_LIBPNG=sys
24174 fi
24175
24176 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24177 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24178echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24179 wxUSE_LIBPNG=builtin
24180 fi
24181
24182 if test "$wxUSE_MGL" != 1 ; then
24183 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24184 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24185echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24186if test "${ac_cv_header_png_h+set}" = set; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24188else
24189 if test "$cross_compiling" = yes; then
24190 unset ac_cv_header_png_h
24191
24192else
24193 cat >conftest.$ac_ext <<_ACEOF
24194/* confdefs.h. */
24195_ACEOF
24196cat confdefs.h >>conftest.$ac_ext
24197cat >>conftest.$ac_ext <<_ACEOF
24198/* end confdefs.h. */
24199
24200 #include <png.h>
24201 #include <stdio.h>
24202
24203 int main()
24204 {
24205 FILE *f=fopen("conftestval", "w");
24206 if (!f) exit(1);
24207 fprintf(f, "%s",
24208 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24209 exit(0);
24210 }
24211
24212_ACEOF
24213rm -f conftest$ac_exeext
24214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24215 (eval $ac_link) 2>&5
24216 ac_status=$?
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24220 (eval $ac_try) 2>&5
24221 ac_status=$?
24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223 (exit $ac_status); }; }; then
24224 ac_cv_header_png_h=`cat conftestval`
24225else
24226 echo "$as_me: program exited with status $ac_status" >&5
24227echo "$as_me: failed program was:" >&5
24228sed 's/^/| /' conftest.$ac_ext >&5
24229
24230( exit $ac_status )
24231ac_cv_header_png_h=no
24232fi
ac1cb8d3 24233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24234fi
24235
24236fi
24237echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24238echo "${ECHO_T}$ac_cv_header_png_h" >&6
24239 if test "${ac_cv_header_png_h+set}" = set; then
24240 echo "$as_me:$LINENO: checking for png.h" >&5
24241echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24242if test "${ac_cv_header_png_h+set}" = set; then
24243 echo $ECHO_N "(cached) $ECHO_C" >&6
24244fi
24245echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24246echo "${ECHO_T}$ac_cv_header_png_h" >&6
24247else
24248 # Is the header compilable?
24249echo "$as_me:$LINENO: checking png.h usability" >&5
24250echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24251cat >conftest.$ac_ext <<_ACEOF
24252/* confdefs.h. */
24253_ACEOF
24254cat confdefs.h >>conftest.$ac_ext
24255cat >>conftest.$ac_ext <<_ACEOF
24256/* end confdefs.h. */
24257$ac_includes_default
24258#include <png.h>
24259_ACEOF
24260rm -f conftest.$ac_objext
24261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24262 (eval $ac_compile) 2>conftest.er1
a848cd7e 24263 ac_status=$?
ac1cb8d3
VS
24264 grep -v '^ *+' conftest.er1 >conftest.err
24265 rm -f conftest.er1
24266 cat conftest.err >&5
a848cd7e
SC
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } &&
0093c2fc 24269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24271 (eval $ac_try) 2>&5
24272 ac_status=$?
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); }; } &&
24275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24277 (eval $ac_try) 2>&5
24278 ac_status=$?
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); }; }; then
24281 ac_header_compiler=yes
24282else
24283 echo "$as_me: failed program was:" >&5
24284sed 's/^/| /' conftest.$ac_ext >&5
24285
24286ac_header_compiler=no
24287fi
ac1cb8d3 24288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24290echo "${ECHO_T}$ac_header_compiler" >&6
24291
24292# Is the header present?
24293echo "$as_me:$LINENO: checking png.h presence" >&5
24294echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24295cat >conftest.$ac_ext <<_ACEOF
24296/* confdefs.h. */
24297_ACEOF
24298cat confdefs.h >>conftest.$ac_ext
24299cat >>conftest.$ac_ext <<_ACEOF
24300/* end confdefs.h. */
24301#include <png.h>
24302_ACEOF
24303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24305 ac_status=$?
24306 grep -v '^ *+' conftest.er1 >conftest.err
24307 rm -f conftest.er1
24308 cat conftest.err >&5
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } >/dev/null; then
24311 if test -s conftest.err; then
24312 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24314 else
24315 ac_cpp_err=
24316 fi
24317else
24318 ac_cpp_err=yes
24319fi
24320if test -z "$ac_cpp_err"; then
24321 ac_header_preproc=yes
24322else
24323 echo "$as_me: failed program was:" >&5
24324sed 's/^/| /' conftest.$ac_ext >&5
24325
24326 ac_header_preproc=no
24327fi
24328rm -f conftest.err conftest.$ac_ext
24329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24330echo "${ECHO_T}$ac_header_preproc" >&6
24331
24332# So? What about this header?
ac1cb8d3
VS
24333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24334 yes:no: )
a848cd7e
SC
24335 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24336echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24337 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24338echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24339 ac_header_preproc=yes
a848cd7e 24340 ;;
ac1cb8d3 24341 no:yes:* )
a848cd7e
SC
24342 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24343echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24344 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24345echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24346 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24347echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24348 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24349echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24350 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24351echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24352 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24353echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24354 (
24355 cat <<\_ASBOX
ac1cb8d3
VS
24356## ----------------------------------------- ##
24357## Report this to wx-dev@lists.wxwidgets.org ##
24358## ----------------------------------------- ##
a848cd7e
SC
24359_ASBOX
24360 ) |
24361 sed "s/^/$as_me: WARNING: /" >&2
24362 ;;
24363esac
24364echo "$as_me:$LINENO: checking for png.h" >&5
24365echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24366if test "${ac_cv_header_png_h+set}" = set; then
24367 echo $ECHO_N "(cached) $ECHO_C" >&6
24368else
24369 ac_cv_header_png_h=$ac_header_preproc
24370fi
24371echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24372echo "${ECHO_T}$ac_cv_header_png_h" >&6
24373
24374fi
24375
24376
24377
24378 if test "$ac_cv_header_png_h" = "yes"; then
24379 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24380echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24381if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24382 echo $ECHO_N "(cached) $ECHO_C" >&6
24383else
24384 ac_check_lib_save_LIBS=$LIBS
24385LIBS="-lpng -lz -lm $LIBS"
24386cat >conftest.$ac_ext <<_ACEOF
24387/* confdefs.h. */
24388_ACEOF
24389cat confdefs.h >>conftest.$ac_ext
24390cat >>conftest.$ac_ext <<_ACEOF
24391/* end confdefs.h. */
24392
24393/* Override any gcc2 internal prototype to avoid an error. */
24394#ifdef __cplusplus
24395extern "C"
24396#endif
24397/* We use char because int might match the return type of a gcc2
24398 builtin and then its argument prototype would still apply. */
24399char png_check_sig ();
24400int
24401main ()
24402{
24403png_check_sig ();
24404 ;
24405 return 0;
24406}
24407_ACEOF
24408rm -f conftest.$ac_objext conftest$ac_exeext
24409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24410 (eval $ac_link) 2>conftest.er1
a848cd7e 24411 ac_status=$?
ac1cb8d3
VS
24412 grep -v '^ *+' conftest.er1 >conftest.err
24413 rm -f conftest.er1
24414 cat conftest.err >&5
a848cd7e
SC
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } &&
0093c2fc 24417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24419 (eval $ac_try) 2>&5
24420 ac_status=$?
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); }; } &&
24423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24425 (eval $ac_try) 2>&5
24426 ac_status=$?
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); }; }; then
24429 ac_cv_lib_png_png_check_sig=yes
24430else
24431 echo "$as_me: failed program was:" >&5
24432sed 's/^/| /' conftest.$ac_ext >&5
24433
24434ac_cv_lib_png_png_check_sig=no
24435fi
ac1cb8d3
VS
24436rm -f conftest.err conftest.$ac_objext \
24437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24438LIBS=$ac_check_lib_save_LIBS
24439fi
24440echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24441echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24442if test $ac_cv_lib_png_png_check_sig = yes; then
24443 PNG_LINK=" -lpng -lz"
24444fi
24445
24446 fi
24447
24448 if test "x$PNG_LINK" = "x" ; then
24449 if test "$wxUSE_LIBPNG" = "sys" ; then
24450 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24451echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24452 { (exit 1); exit 1; }; }
24453 else
24454 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24455echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24456 wxUSE_LIBPNG=builtin
24457 fi
24458 else
24459 wxUSE_LIBPNG=sys
24460 fi
24461 fi
24462 fi
24463
24464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24465fi
24466
24467
24468JPEG_LINK=
24469if test "$wxUSE_LIBJPEG" != "no" ; then
24470 cat >>confdefs.h <<\_ACEOF
24471#define wxUSE_LIBJPEG 1
24472_ACEOF
24473
24474
24475 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24476 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24477echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24478 wxUSE_LIBJPEG=sys
24479 fi
24480
24481 if test "$wxUSE_MGL" != 1 ; then
24482 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24483 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24484echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24485 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24486 echo $ECHO_N "(cached) $ECHO_C" >&6
24487else
24488 cat >conftest.$ac_ext <<_ACEOF
24489/* confdefs.h. */
24490_ACEOF
24491cat confdefs.h >>conftest.$ac_ext
24492cat >>conftest.$ac_ext <<_ACEOF
24493/* end confdefs.h. */
24494
24495 #undef HAVE_STDLIB_H
24496 #include <stdio.h>
24497 #include <jpeglib.h>
24498
24499int
24500main ()
24501{
24502
24503
24504 ;
24505 return 0;
24506}
24507_ACEOF
24508rm -f conftest.$ac_objext
24509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24510 (eval $ac_compile) 2>conftest.er1
a848cd7e 24511 ac_status=$?
ac1cb8d3
VS
24512 grep -v '^ *+' conftest.er1 >conftest.err
24513 rm -f conftest.er1
24514 cat conftest.err >&5
a848cd7e
SC
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } &&
0093c2fc 24517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519 (eval $ac_try) 2>&5
24520 ac_status=$?
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); }; } &&
24523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525 (eval $ac_try) 2>&5
24526 ac_status=$?
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); }; }; then
24529 ac_cv_header_jpeglib_h=yes
24530else
24531 echo "$as_me: failed program was:" >&5
24532sed 's/^/| /' conftest.$ac_ext >&5
24533
24534ac_cv_header_jpeglib_h=no
24535
24536fi
ac1cb8d3 24537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24538
24539fi
24540
24541 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24542echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24543
24544 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24545 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24546echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24547if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24549else
24550 ac_check_lib_save_LIBS=$LIBS
24551LIBS="-ljpeg $LIBS"
24552cat >conftest.$ac_ext <<_ACEOF
24553/* confdefs.h. */
24554_ACEOF
24555cat confdefs.h >>conftest.$ac_ext
24556cat >>conftest.$ac_ext <<_ACEOF
24557/* end confdefs.h. */
24558
24559/* Override any gcc2 internal prototype to avoid an error. */
24560#ifdef __cplusplus
24561extern "C"
24562#endif
24563/* We use char because int might match the return type of a gcc2
24564 builtin and then its argument prototype would still apply. */
24565char jpeg_read_header ();
24566int
24567main ()
24568{
24569jpeg_read_header ();
24570 ;
24571 return 0;
24572}
24573_ACEOF
24574rm -f conftest.$ac_objext conftest$ac_exeext
24575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24576 (eval $ac_link) 2>conftest.er1
a848cd7e 24577 ac_status=$?
ac1cb8d3
VS
24578 grep -v '^ *+' conftest.er1 >conftest.err
24579 rm -f conftest.er1
24580 cat conftest.err >&5
a848cd7e
SC
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } &&
0093c2fc 24583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); }; } &&
24589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; }; then
24595 ac_cv_lib_jpeg_jpeg_read_header=yes
24596else
24597 echo "$as_me: failed program was:" >&5
24598sed 's/^/| /' conftest.$ac_ext >&5
24599
24600ac_cv_lib_jpeg_jpeg_read_header=no
24601fi
ac1cb8d3
VS
24602rm -f conftest.err conftest.$ac_objext \
24603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24604LIBS=$ac_check_lib_save_LIBS
24605fi
24606echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24607echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24608if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24609 JPEG_LINK=" -ljpeg"
24610fi
24611
24612 fi
24613
24614 if test "x$JPEG_LINK" = "x" ; then
24615 if test "$wxUSE_LIBJPEG" = "sys" ; then
24616 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24617echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24618 { (exit 1); exit 1; }; }
24619 else
24620 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24621echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24622 wxUSE_LIBJPEG=builtin
24623 fi
24624 else
24625 wxUSE_LIBJPEG=sys
24626 fi
24627 fi
24628 fi
24629fi
24630
24631
24632TIFF_LINK=
24633TIFF_PREREQ_LINKS=-lm
24634if test "$wxUSE_LIBTIFF" != "no" ; then
24635 cat >>confdefs.h <<\_ACEOF
24636#define wxUSE_LIBTIFF 1
24637_ACEOF
24638
24639
24640 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24641 if test "$wxUSE_LIBJPEG" = "sys"; then
24642 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24643 fi
24644 if test "$wxUSE_ZLIB" = "sys"; then
24645 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24646 fi
24647 if test "${ac_cv_header_tiffio_h+set}" = set; then
24648 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24649echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24650if test "${ac_cv_header_tiffio_h+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24652fi
24653echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24654echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24655else
24656 # Is the header compilable?
24657echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24658echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24659cat >conftest.$ac_ext <<_ACEOF
24660/* confdefs.h. */
24661_ACEOF
24662cat confdefs.h >>conftest.$ac_ext
24663cat >>conftest.$ac_ext <<_ACEOF
24664/* end confdefs.h. */
24665$ac_includes_default
24666#include <tiffio.h>
24667_ACEOF
24668rm -f conftest.$ac_objext
24669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24670 (eval $ac_compile) 2>conftest.er1
a848cd7e 24671 ac_status=$?
ac1cb8d3
VS
24672 grep -v '^ *+' conftest.er1 >conftest.err
24673 rm -f conftest.er1
24674 cat conftest.err >&5
a848cd7e
SC
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } &&
0093c2fc 24677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24679 (eval $ac_try) 2>&5
24680 ac_status=$?
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); }; } &&
24683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24685 (eval $ac_try) 2>&5
24686 ac_status=$?
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; }; then
24689 ac_header_compiler=yes
24690else
24691 echo "$as_me: failed program was:" >&5
24692sed 's/^/| /' conftest.$ac_ext >&5
24693
24694ac_header_compiler=no
24695fi
ac1cb8d3 24696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24698echo "${ECHO_T}$ac_header_compiler" >&6
24699
24700# Is the header present?
24701echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24702echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24703cat >conftest.$ac_ext <<_ACEOF
24704/* confdefs.h. */
24705_ACEOF
24706cat confdefs.h >>conftest.$ac_ext
24707cat >>conftest.$ac_ext <<_ACEOF
24708/* end confdefs.h. */
24709#include <tiffio.h>
24710_ACEOF
24711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24713 ac_status=$?
24714 grep -v '^ *+' conftest.er1 >conftest.err
24715 rm -f conftest.er1
24716 cat conftest.err >&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); } >/dev/null; then
24719 if test -s conftest.err; then
24720 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24722 else
24723 ac_cpp_err=
24724 fi
24725else
24726 ac_cpp_err=yes
24727fi
24728if test -z "$ac_cpp_err"; then
24729 ac_header_preproc=yes
24730else
24731 echo "$as_me: failed program was:" >&5
24732sed 's/^/| /' conftest.$ac_ext >&5
24733
24734 ac_header_preproc=no
24735fi
24736rm -f conftest.err conftest.$ac_ext
24737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24738echo "${ECHO_T}$ac_header_preproc" >&6
24739
24740# So? What about this header?
ac1cb8d3
VS
24741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24742 yes:no: )
a848cd7e
SC
24743 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24744echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24745 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24746echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24747 ac_header_preproc=yes
a848cd7e 24748 ;;
ac1cb8d3 24749 no:yes:* )
a848cd7e
SC
24750 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24751echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24752 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24753echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24754 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24755echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24756 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24757echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24758 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24759echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24760 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24761echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24762 (
24763 cat <<\_ASBOX
ac1cb8d3
VS
24764## ----------------------------------------- ##
24765## Report this to wx-dev@lists.wxwidgets.org ##
24766## ----------------------------------------- ##
a848cd7e
SC
24767_ASBOX
24768 ) |
24769 sed "s/^/$as_me: WARNING: /" >&2
24770 ;;
24771esac
24772echo "$as_me:$LINENO: checking for tiffio.h" >&5
24773echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24774if test "${ac_cv_header_tiffio_h+set}" = set; then
24775 echo $ECHO_N "(cached) $ECHO_C" >&6
24776else
24777 ac_cv_header_tiffio_h=$ac_header_preproc
24778fi
24779echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24780echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24781
24782fi
24783if test $ac_cv_header_tiffio_h = yes; then
24784
24785 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24786echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24787if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24788 echo $ECHO_N "(cached) $ECHO_C" >&6
24789else
24790 ac_check_lib_save_LIBS=$LIBS
24791LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24792cat >conftest.$ac_ext <<_ACEOF
24793/* confdefs.h. */
24794_ACEOF
24795cat confdefs.h >>conftest.$ac_ext
24796cat >>conftest.$ac_ext <<_ACEOF
24797/* end confdefs.h. */
24798
24799/* Override any gcc2 internal prototype to avoid an error. */
24800#ifdef __cplusplus
24801extern "C"
24802#endif
24803/* We use char because int might match the return type of a gcc2
24804 builtin and then its argument prototype would still apply. */
24805char TIFFError ();
24806int
24807main ()
24808{
24809TIFFError ();
24810 ;
24811 return 0;
24812}
24813_ACEOF
24814rm -f conftest.$ac_objext conftest$ac_exeext
24815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24816 (eval $ac_link) 2>conftest.er1
a848cd7e 24817 ac_status=$?
ac1cb8d3
VS
24818 grep -v '^ *+' conftest.er1 >conftest.err
24819 rm -f conftest.er1
24820 cat conftest.err >&5
a848cd7e
SC
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); } &&
0093c2fc 24823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24825 (eval $ac_try) 2>&5
24826 ac_status=$?
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); }; } &&
24829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24831 (eval $ac_try) 2>&5
24832 ac_status=$?
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); }; }; then
24835 ac_cv_lib_tiff_TIFFError=yes
24836else
24837 echo "$as_me: failed program was:" >&5
24838sed 's/^/| /' conftest.$ac_ext >&5
24839
24840ac_cv_lib_tiff_TIFFError=no
24841fi
ac1cb8d3
VS
24842rm -f conftest.err conftest.$ac_objext \
24843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24844LIBS=$ac_check_lib_save_LIBS
24845fi
24846echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24847echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24848if test $ac_cv_lib_tiff_TIFFError = yes; then
24849 TIFF_LINK=" -ltiff"
24850fi
24851
24852
24853
24854fi
24855
24856
24857
24858 if test "x$TIFF_LINK" = "x" ; then
24859 if test "$wxUSE_LIBTIFF" = "sys" ; then
24860 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24861echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24862 { (exit 1); exit 1; }; }
24863 else
24864 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24865echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24866 wxUSE_LIBTIFF=builtin
24867 fi
24868 else
24869 wxUSE_LIBTIFF=sys
24870 fi
24871 fi
24872fi
24873
24874
47a7e797
MW
24875if test "$wxUSE_WCHAR_T" != "yes"; then
24876 if test "$wxUSE_EXPAT" != "no"; then
24877 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24878echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24879 wxUSE_EXPAT=no
24880 fi
24881 if test "$wxUSE_XML" != "no"; then
24882 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24883echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24884 wxUSE_XML=no
24885 fi
24886fi
24887
a848cd7e
SC
24888if test "$wxUSE_EXPAT" != "no"; then
24889 wxUSE_XML=yes
24890 cat >>confdefs.h <<\_ACEOF
24891#define wxUSE_EXPAT 1
24892_ACEOF
24893
24894 cat >>confdefs.h <<\_ACEOF
24895#define wxUSE_XML 1
24896_ACEOF
24897
24898
24899 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24900 if test "${ac_cv_header_expat_h+set}" = set; then
24901 echo "$as_me:$LINENO: checking for expat.h" >&5
24902echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24903if test "${ac_cv_header_expat_h+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24905fi
24906echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24907echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24908else
24909 # Is the header compilable?
24910echo "$as_me:$LINENO: checking expat.h usability" >&5
24911echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24912cat >conftest.$ac_ext <<_ACEOF
24913/* confdefs.h. */
24914_ACEOF
24915cat confdefs.h >>conftest.$ac_ext
24916cat >>conftest.$ac_ext <<_ACEOF
24917/* end confdefs.h. */
24918$ac_includes_default
24919#include <expat.h>
24920_ACEOF
24921rm -f conftest.$ac_objext
24922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24923 (eval $ac_compile) 2>conftest.er1
a848cd7e 24924 ac_status=$?
ac1cb8d3
VS
24925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
a848cd7e
SC
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
0093c2fc 24930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932 (eval $ac_try) 2>&5
24933 ac_status=$?
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); }; } &&
24936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938 (eval $ac_try) 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; }; then
24942 ac_header_compiler=yes
24943else
24944 echo "$as_me: failed program was:" >&5
24945sed 's/^/| /' conftest.$ac_ext >&5
24946
24947ac_header_compiler=no
24948fi
ac1cb8d3 24949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24951echo "${ECHO_T}$ac_header_compiler" >&6
24952
24953# Is the header present?
24954echo "$as_me:$LINENO: checking expat.h presence" >&5
24955echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
24956cat >conftest.$ac_ext <<_ACEOF
24957/* confdefs.h. */
24958_ACEOF
24959cat confdefs.h >>conftest.$ac_ext
24960cat >>conftest.$ac_ext <<_ACEOF
24961/* end confdefs.h. */
24962#include <expat.h>
24963_ACEOF
24964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24966 ac_status=$?
24967 grep -v '^ *+' conftest.er1 >conftest.err
24968 rm -f conftest.er1
24969 cat conftest.err >&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } >/dev/null; then
24972 if test -s conftest.err; then
24973 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24975 else
24976 ac_cpp_err=
24977 fi
24978else
24979 ac_cpp_err=yes
24980fi
24981if test -z "$ac_cpp_err"; then
24982 ac_header_preproc=yes
24983else
24984 echo "$as_me: failed program was:" >&5
24985sed 's/^/| /' conftest.$ac_ext >&5
24986
24987 ac_header_preproc=no
24988fi
24989rm -f conftest.err conftest.$ac_ext
24990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24991echo "${ECHO_T}$ac_header_preproc" >&6
24992
24993# So? What about this header?
ac1cb8d3
VS
24994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24995 yes:no: )
a848cd7e
SC
24996 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
24997echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24998 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
24999echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25000 ac_header_preproc=yes
a848cd7e 25001 ;;
ac1cb8d3 25002 no:yes:* )
a848cd7e
SC
25003 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25004echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25005 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25006echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25007 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25008echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25009 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25010echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25011 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25012echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25013 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25014echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25015 (
25016 cat <<\_ASBOX
ac1cb8d3
VS
25017## ----------------------------------------- ##
25018## Report this to wx-dev@lists.wxwidgets.org ##
25019## ----------------------------------------- ##
a848cd7e
SC
25020_ASBOX
25021 ) |
25022 sed "s/^/$as_me: WARNING: /" >&2
25023 ;;
25024esac
25025echo "$as_me:$LINENO: checking for expat.h" >&5
25026echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25027if test "${ac_cv_header_expat_h+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25029else
25030 ac_cv_header_expat_h=$ac_header_preproc
25031fi
25032echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25033echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25034
25035fi
25036if test $ac_cv_header_expat_h = yes; then
25037 found_expat_h=1
25038fi
25039
25040
25041 if test "x$found_expat_h" = "x1"; then
25042 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25043echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25044if test "${wx_cv_expat_is_not_broken+set}" = set; then
25045 echo $ECHO_N "(cached) $ECHO_C" >&6
25046else
25047
25048
25049
25050 ac_ext=cc
25051ac_cpp='$CXXCPP $CPPFLAGS'
25052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25055
25056 cat >conftest.$ac_ext <<_ACEOF
25057/* confdefs.h. */
25058_ACEOF
25059cat confdefs.h >>conftest.$ac_ext
25060cat >>conftest.$ac_ext <<_ACEOF
25061/* end confdefs.h. */
25062#include <expat.h>
25063int
25064main ()
25065{
25066
25067 ;
25068 return 0;
25069}
25070_ACEOF
25071rm -f conftest.$ac_objext
25072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25073 (eval $ac_compile) 2>conftest.er1
a848cd7e 25074 ac_status=$?
ac1cb8d3
VS
25075 grep -v '^ *+' conftest.er1 >conftest.err
25076 rm -f conftest.er1
25077 cat conftest.err >&5
a848cd7e
SC
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); } &&
0093c2fc 25080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); }; } &&
25086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25088 (eval $ac_try) 2>&5
25089 ac_status=$?
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); }; }; then
25092 wx_cv_expat_is_not_broken=yes
25093else
25094 echo "$as_me: failed program was:" >&5
25095sed 's/^/| /' conftest.$ac_ext >&5
25096
25097wx_cv_expat_is_not_broken=no
25098
25099fi
ac1cb8d3 25100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25101 ac_ext=c
25102ac_cpp='$CPP $CPPFLAGS'
25103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25105ac_compiler_gnu=$ac_cv_c_compiler_gnu
25106
25107
25108
25109fi
25110echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25111echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25112 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25113 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25114echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25115if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25116 echo $ECHO_N "(cached) $ECHO_C" >&6
25117else
25118 ac_check_lib_save_LIBS=$LIBS
25119LIBS="-lexpat $LIBS"
25120cat >conftest.$ac_ext <<_ACEOF
25121/* confdefs.h. */
25122_ACEOF
25123cat confdefs.h >>conftest.$ac_ext
25124cat >>conftest.$ac_ext <<_ACEOF
25125/* end confdefs.h. */
25126
25127/* Override any gcc2 internal prototype to avoid an error. */
25128#ifdef __cplusplus
25129extern "C"
25130#endif
25131/* We use char because int might match the return type of a gcc2
25132 builtin and then its argument prototype would still apply. */
25133char XML_ParserCreate ();
25134int
25135main ()
25136{
25137XML_ParserCreate ();
25138 ;
25139 return 0;
25140}
25141_ACEOF
25142rm -f conftest.$ac_objext conftest$ac_exeext
25143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25144 (eval $ac_link) 2>conftest.er1
a848cd7e 25145 ac_status=$?
ac1cb8d3
VS
25146 grep -v '^ *+' conftest.er1 >conftest.err
25147 rm -f conftest.er1
25148 cat conftest.err >&5
a848cd7e
SC
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); } &&
0093c2fc 25151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25153 (eval $ac_try) 2>&5
25154 ac_status=$?
25155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); }; } &&
25157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25160 ac_status=$?
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
25163 ac_cv_lib_expat_XML_ParserCreate=yes
25164else
25165 echo "$as_me: failed program was:" >&5
25166sed 's/^/| /' conftest.$ac_ext >&5
25167
25168ac_cv_lib_expat_XML_ParserCreate=no
25169fi
ac1cb8d3
VS
25170rm -f conftest.err conftest.$ac_objext \
25171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25172LIBS=$ac_check_lib_save_LIBS
25173fi
25174echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25175echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25176if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25177 EXPAT_LINK=" -lexpat"
25178fi
25179
25180 fi
25181 fi
25182 if test "x$EXPAT_LINK" = "x" ; then
25183 if test "$wxUSE_EXPAT" = "sys" ; then
25184 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25185echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25186 { (exit 1); exit 1; }; }
25187 else
25188 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25189echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25190 wxUSE_EXPAT=builtin
25191 fi
25192 else
25193 wxUSE_EXPAT=sys
25194 fi
25195 fi
25196 if test "$wxUSE_EXPAT" = "builtin" ; then
25197
25198
25199subdirs="$subdirs src/expat"
25200
25201 fi
25202fi
25203
25204
25205
25206if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25207 if test "${ac_cv_header_mspack_h+set}" = set; then
25208 echo "$as_me:$LINENO: checking for mspack.h" >&5
25209echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25210if test "${ac_cv_header_mspack_h+set}" = set; then
25211 echo $ECHO_N "(cached) $ECHO_C" >&6
25212fi
25213echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25214echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25215else
25216 # Is the header compilable?
25217echo "$as_me:$LINENO: checking mspack.h usability" >&5
25218echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25219cat >conftest.$ac_ext <<_ACEOF
25220/* confdefs.h. */
25221_ACEOF
25222cat confdefs.h >>conftest.$ac_ext
25223cat >>conftest.$ac_ext <<_ACEOF
25224/* end confdefs.h. */
25225$ac_includes_default
25226#include <mspack.h>
25227_ACEOF
25228rm -f conftest.$ac_objext
25229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25230 (eval $ac_compile) 2>conftest.er1
a848cd7e 25231 ac_status=$?
ac1cb8d3
VS
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
a848cd7e
SC
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
0093c2fc 25237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25239 (eval $ac_try) 2>&5
25240 ac_status=$?
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; } &&
25243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245 (eval $ac_try) 2>&5
25246 ac_status=$?
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); }; }; then
25249 ac_header_compiler=yes
25250else
25251 echo "$as_me: failed program was:" >&5
25252sed 's/^/| /' conftest.$ac_ext >&5
25253
25254ac_header_compiler=no
25255fi
ac1cb8d3 25256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25258echo "${ECHO_T}$ac_header_compiler" >&6
25259
25260# Is the header present?
25261echo "$as_me:$LINENO: checking mspack.h presence" >&5
25262echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25263cat >conftest.$ac_ext <<_ACEOF
25264/* confdefs.h. */
25265_ACEOF
25266cat confdefs.h >>conftest.$ac_ext
25267cat >>conftest.$ac_ext <<_ACEOF
25268/* end confdefs.h. */
25269#include <mspack.h>
25270_ACEOF
25271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25273 ac_status=$?
25274 grep -v '^ *+' conftest.er1 >conftest.err
25275 rm -f conftest.er1
25276 cat conftest.err >&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } >/dev/null; then
25279 if test -s conftest.err; then
25280 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25282 else
25283 ac_cpp_err=
25284 fi
25285else
25286 ac_cpp_err=yes
25287fi
25288if test -z "$ac_cpp_err"; then
25289 ac_header_preproc=yes
25290else
25291 echo "$as_me: failed program was:" >&5
25292sed 's/^/| /' conftest.$ac_ext >&5
25293
25294 ac_header_preproc=no
25295fi
25296rm -f conftest.err conftest.$ac_ext
25297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25298echo "${ECHO_T}$ac_header_preproc" >&6
25299
25300# So? What about this header?
ac1cb8d3
VS
25301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25302 yes:no: )
a848cd7e
SC
25303 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25304echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25305 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25306echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25307 ac_header_preproc=yes
a848cd7e 25308 ;;
ac1cb8d3 25309 no:yes:* )
a848cd7e
SC
25310 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25311echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25312 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25313echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25314 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25315echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25316 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25317echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25318 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25319echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25320 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25321echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25322 (
25323 cat <<\_ASBOX
ac1cb8d3
VS
25324## ----------------------------------------- ##
25325## Report this to wx-dev@lists.wxwidgets.org ##
25326## ----------------------------------------- ##
a848cd7e
SC
25327_ASBOX
25328 ) |
25329 sed "s/^/$as_me: WARNING: /" >&2
25330 ;;
25331esac
25332echo "$as_me:$LINENO: checking for mspack.h" >&5
25333echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25334if test "${ac_cv_header_mspack_h+set}" = set; then
25335 echo $ECHO_N "(cached) $ECHO_C" >&6
25336else
25337 ac_cv_header_mspack_h=$ac_header_preproc
25338fi
25339echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25340echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25341
25342fi
25343if test $ac_cv_header_mspack_h = yes; then
25344 found_mspack_h=1
25345fi
25346
25347
25348 if test "x$found_mspack_h" = "x1"; then
25349 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25350echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25351if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25352 echo $ECHO_N "(cached) $ECHO_C" >&6
25353else
25354 ac_check_lib_save_LIBS=$LIBS
25355LIBS="-lmspack $LIBS"
25356cat >conftest.$ac_ext <<_ACEOF
25357/* confdefs.h. */
25358_ACEOF
25359cat confdefs.h >>conftest.$ac_ext
25360cat >>conftest.$ac_ext <<_ACEOF
25361/* end confdefs.h. */
25362
25363/* Override any gcc2 internal prototype to avoid an error. */
25364#ifdef __cplusplus
25365extern "C"
25366#endif
25367/* We use char because int might match the return type of a gcc2
25368 builtin and then its argument prototype would still apply. */
25369char mspack_create_chm_decompressor ();
25370int
25371main ()
25372{
25373mspack_create_chm_decompressor ();
25374 ;
25375 return 0;
25376}
25377_ACEOF
25378rm -f conftest.$ac_objext conftest$ac_exeext
25379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25380 (eval $ac_link) 2>conftest.er1
a848cd7e 25381 ac_status=$?
ac1cb8d3
VS
25382 grep -v '^ *+' conftest.er1 >conftest.err
25383 rm -f conftest.er1
25384 cat conftest.err >&5
a848cd7e
SC
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); } &&
0093c2fc 25387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25389 (eval $ac_try) 2>&5
25390 ac_status=$?
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); }; } &&
25393 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25395 (eval $ac_try) 2>&5
25396 ac_status=$?
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); }; }; then
25399 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25400else
25401 echo "$as_me: failed program was:" >&5
25402sed 's/^/| /' conftest.$ac_ext >&5
25403
25404ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25405fi
ac1cb8d3
VS
25406rm -f conftest.err conftest.$ac_objext \
25407 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25408LIBS=$ac_check_lib_save_LIBS
25409fi
25410echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25411echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25412if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25413 MSPACK_LINK=" -lmspack"
25414fi
25415
25416 fi
25417 if test "x$MSPACK_LINK" = "x" ; then
25418 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25419 fi
25420fi
25421
25422if test "$wxUSE_LIBMSPACK" != "no"; then
25423 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25424#define wxUSE_LIBMSPACK 1
25425_ACEOF
25426
a848cd7e
SC
25427fi
25428
25429
25430
25431AFMINSTALL=
25432WIN32INSTALL=
25433
25434TOOLKIT=
25435TOOLKIT_INCLUDE=
25436WIDGET_SET=
25437
25438if test "$USE_WIN32" = 1 ; then
25439
25440for ac_header in w32api.h
25441do
25442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25443if eval "test \"\${$as_ac_Header+set}\" = set"; then
25444 echo "$as_me:$LINENO: checking for $ac_header" >&5
25445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25446if eval "test \"\${$as_ac_Header+set}\" = set"; then
25447 echo $ECHO_N "(cached) $ECHO_C" >&6
25448fi
25449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25451else
25452 # Is the header compilable?
25453echo "$as_me:$LINENO: checking $ac_header usability" >&5
25454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25455cat >conftest.$ac_ext <<_ACEOF
25456/* confdefs.h. */
25457_ACEOF
25458cat confdefs.h >>conftest.$ac_ext
25459cat >>conftest.$ac_ext <<_ACEOF
25460/* end confdefs.h. */
25461$ac_includes_default
25462#include <$ac_header>
25463_ACEOF
25464rm -f conftest.$ac_objext
25465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25466 (eval $ac_compile) 2>conftest.er1
a848cd7e 25467 ac_status=$?
ac1cb8d3
VS
25468 grep -v '^ *+' conftest.er1 >conftest.err
25469 rm -f conftest.er1
25470 cat conftest.err >&5
a848cd7e
SC
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); } &&
0093c2fc 25473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475 (eval $ac_try) 2>&5
25476 ac_status=$?
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; } &&
25479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; }; then
25485 ac_header_compiler=yes
25486else
25487 echo "$as_me: failed program was:" >&5
25488sed 's/^/| /' conftest.$ac_ext >&5
25489
25490ac_header_compiler=no
25491fi
ac1cb8d3 25492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25494echo "${ECHO_T}$ac_header_compiler" >&6
25495
25496# Is the header present?
25497echo "$as_me:$LINENO: checking $ac_header presence" >&5
25498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25499cat >conftest.$ac_ext <<_ACEOF
25500/* confdefs.h. */
25501_ACEOF
25502cat confdefs.h >>conftest.$ac_ext
25503cat >>conftest.$ac_ext <<_ACEOF
25504/* end confdefs.h. */
25505#include <$ac_header>
25506_ACEOF
25507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25509 ac_status=$?
25510 grep -v '^ *+' conftest.er1 >conftest.err
25511 rm -f conftest.er1
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } >/dev/null; then
25515 if test -s conftest.err; then
25516 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25518 else
25519 ac_cpp_err=
25520 fi
25521else
25522 ac_cpp_err=yes
25523fi
25524if test -z "$ac_cpp_err"; then
25525 ac_header_preproc=yes
25526else
25527 echo "$as_me: failed program was:" >&5
25528sed 's/^/| /' conftest.$ac_ext >&5
25529
25530 ac_header_preproc=no
25531fi
25532rm -f conftest.err conftest.$ac_ext
25533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25534echo "${ECHO_T}$ac_header_preproc" >&6
25535
25536# So? What about this header?
ac1cb8d3
VS
25537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25538 yes:no: )
a848cd7e
SC
25539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25543 ac_header_preproc=yes
a848cd7e 25544 ;;
ac1cb8d3 25545 no:yes:* )
a848cd7e
SC
25546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25558 (
25559 cat <<\_ASBOX
ac1cb8d3
VS
25560## ----------------------------------------- ##
25561## Report this to wx-dev@lists.wxwidgets.org ##
25562## ----------------------------------------- ##
a848cd7e
SC
25563_ASBOX
25564 ) |
25565 sed "s/^/$as_me: WARNING: /" >&2
25566 ;;
25567esac
25568echo "$as_me:$LINENO: checking for $ac_header" >&5
25569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25570if eval "test \"\${$as_ac_Header+set}\" = set"; then
25571 echo $ECHO_N "(cached) $ECHO_C" >&6
25572else
ac1cb8d3 25573 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25574fi
25575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25577
25578fi
25579if test `eval echo '${'$as_ac_Header'}'` = yes; then
25580 cat >>confdefs.h <<_ACEOF
25581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25582_ACEOF
25583
25584fi
25585
25586done
25587
25588 if test "${ac_cv_header_windows_h+set}" = set; then
25589 echo "$as_me:$LINENO: checking for windows.h" >&5
25590echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25591if test "${ac_cv_header_windows_h+set}" = set; then
25592 echo $ECHO_N "(cached) $ECHO_C" >&6
25593fi
25594echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25595echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25596else
25597 # Is the header compilable?
25598echo "$as_me:$LINENO: checking windows.h usability" >&5
25599echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25600cat >conftest.$ac_ext <<_ACEOF
25601/* confdefs.h. */
25602_ACEOF
25603cat confdefs.h >>conftest.$ac_ext
25604cat >>conftest.$ac_ext <<_ACEOF
25605/* end confdefs.h. */
25606$ac_includes_default
25607#include <windows.h>
25608_ACEOF
25609rm -f conftest.$ac_objext
25610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25611 (eval $ac_compile) 2>conftest.er1
a848cd7e 25612 ac_status=$?
ac1cb8d3
VS
25613 grep -v '^ *+' conftest.er1 >conftest.err
25614 rm -f conftest.er1
25615 cat conftest.err >&5
a848cd7e
SC
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } &&
0093c2fc 25618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620 (eval $ac_try) 2>&5
25621 ac_status=$?
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); }; } &&
25624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626 (eval $ac_try) 2>&5
25627 ac_status=$?
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); }; }; then
25630 ac_header_compiler=yes
25631else
25632 echo "$as_me: failed program was:" >&5
25633sed 's/^/| /' conftest.$ac_ext >&5
25634
25635ac_header_compiler=no
25636fi
ac1cb8d3 25637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25639echo "${ECHO_T}$ac_header_compiler" >&6
25640
25641# Is the header present?
25642echo "$as_me:$LINENO: checking windows.h presence" >&5
25643echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25644cat >conftest.$ac_ext <<_ACEOF
25645/* confdefs.h. */
25646_ACEOF
25647cat confdefs.h >>conftest.$ac_ext
25648cat >>conftest.$ac_ext <<_ACEOF
25649/* end confdefs.h. */
25650#include <windows.h>
25651_ACEOF
25652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25654 ac_status=$?
25655 grep -v '^ *+' conftest.er1 >conftest.err
25656 rm -f conftest.er1
25657 cat conftest.err >&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } >/dev/null; then
25660 if test -s conftest.err; then
25661 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25663 else
25664 ac_cpp_err=
25665 fi
25666else
25667 ac_cpp_err=yes
25668fi
25669if test -z "$ac_cpp_err"; then
25670 ac_header_preproc=yes
25671else
25672 echo "$as_me: failed program was:" >&5
25673sed 's/^/| /' conftest.$ac_ext >&5
25674
25675 ac_header_preproc=no
25676fi
25677rm -f conftest.err conftest.$ac_ext
25678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25679echo "${ECHO_T}$ac_header_preproc" >&6
25680
25681# So? What about this header?
ac1cb8d3
VS
25682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25683 yes:no: )
a848cd7e
SC
25684 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25685echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25686 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25687echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25688 ac_header_preproc=yes
a848cd7e 25689 ;;
ac1cb8d3 25690 no:yes:* )
a848cd7e
SC
25691 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25692echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25693 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25694echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25695 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25696echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25697 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25698echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25699 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25700echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25701 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25702echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25703 (
25704 cat <<\_ASBOX
ac1cb8d3
VS
25705## ----------------------------------------- ##
25706## Report this to wx-dev@lists.wxwidgets.org ##
25707## ----------------------------------------- ##
a848cd7e
SC
25708_ASBOX
25709 ) |
25710 sed "s/^/$as_me: WARNING: /" >&2
25711 ;;
25712esac
25713echo "$as_me:$LINENO: checking for windows.h" >&5
25714echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25715if test "${ac_cv_header_windows_h+set}" = set; then
25716 echo $ECHO_N "(cached) $ECHO_C" >&6
25717else
25718 ac_cv_header_windows_h=$ac_header_preproc
25719fi
25720echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25721echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25722
25723fi
25724if test $ac_cv_header_windows_h = yes; then
25725 :
25726else
25727
25728 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25729echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25730 { (exit 1); exit 1; }; }
25731
25732fi
25733
25734
25735
25736 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25737
25738 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25739 LIBS="$LIBS -loleacc"
25740 fi
25741
25742 case "${host}" in
25743 *-*-cygwin* )
25744 LIBS="$LIBS -lkernel32 -luser32"
25745 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
25746 esac
25747
25748 if test "$wxUSE_ODBC" = "sys" ; then
25749 wxUSE_ODBC = "yes"
25750 fi
25751 if test "$wxUSE_ODBC" = "yes" ; then
25752 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25753 cat >>confdefs.h <<\_ACEOF
25754#define wxUSE_ODBC 1
25755_ACEOF
25756
25757 fi
25758
25759 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25760 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25761
25762 WIN32INSTALL=win32install
25763fi
25764
25765if test "$wxUSE_GUI" = "yes"; then
25766 USE_GUI=1
25767
25768 GUI_TK_LIBRARY=
25769
25770 WXGTK12=
25771 WXGTK127=
25772 WXGTK20=
25773 WXGPE=
25774
207bc66c
RN
25775 if test "$wxUSE_COCOA" = 1 ; then
25776 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25777 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25778echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25779 wxUSE_PRINTING_ARCHITECTURE=no
25780 fi
25781 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25782 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25783echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25784 wxUSE_DRAG_AND_DROP=no
25785 fi
25786 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25787 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25788echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25789 wxUSE_DRAGIMAGE=no
25790 fi
25791 fi
25792
a848cd7e
SC
25793 if test "$wxUSE_MSW" = 1 ; then
25794 TOOLKIT=MSW
25795 GUIDIST=MSW_DIST
25796
ceec2216 25797 case "${host}" in
a848cd7e
SC
25798 *-*-mingw32* )
25799 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25800 esac
25801 fi
25802
25803 if test "$wxUSE_GTK" = 1; then
25804 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25805echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25806
25807 gtk_version_cached=1
25808 if test "${wx_cv_lib_gtk+set}" = set; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25810else
25811
25812 gtk_version_cached=0
25813 echo "$as_me:$LINENO: result: " >&5
25814echo "${ECHO_T}" >&6
25815
25816 GTK_MODULES=
25817 if test "$wxUSE_THREADS" = "yes"; then
25818 GTK_MODULES=gthread
25819 fi
25820
f597b41c 25821 wx_cv_lib_gtk=
5001df0d
MW
25822 if test "x$wxGTK_VERSION" != "x1"
25823 then
25824 case "${host}" in
25825 *-*-solaris2* )
25826 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25827 enable_gtktest=no
25828 fi
25829 esac
25830
a848cd7e
SC
25831 # Check whether --enable-gtktest or --disable-gtktest was given.
25832if test "${enable_gtktest+set}" = set; then
25833 enableval="$enable_gtktest"
25834
25835else
25836 enable_gtktest=yes
25837fi;
25838
25839 pkg_config_args=gtk+-2.0
25840 for module in . $GTK_MODULES
25841 do
25842 case "$module" in
25843 gthread)
25844 pkg_config_args="$pkg_config_args gthread-2.0"
25845 ;;
25846 esac
25847 done
25848
25849 no_gtk=""
25850
25851 # Extract the first word of "pkg-config", so it can be a program name with args.
25852set dummy pkg-config; ac_word=$2
25853echo "$as_me:$LINENO: checking for $ac_word" >&5
25854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25855if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25856 echo $ECHO_N "(cached) $ECHO_C" >&6
25857else
25858 case $PKG_CONFIG in
25859 [\\/]* | ?:[\\/]*)
25860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25861 ;;
25862 *)
25863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25864for as_dir in $PATH
25865do
25866 IFS=$as_save_IFS
25867 test -z "$as_dir" && as_dir=.
25868 for ac_exec_ext in '' $ac_executable_extensions; do
25869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25872 break 2
25873 fi
25874done
25875done
25876
25877 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25878 ;;
25879esac
25880fi
25881PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25882
25883if test -n "$PKG_CONFIG"; then
25884 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25885echo "${ECHO_T}$PKG_CONFIG" >&6
25886else
25887 echo "$as_me:$LINENO: result: no" >&5
25888echo "${ECHO_T}no" >&6
25889fi
25890
25891
25892 if test x$PKG_CONFIG != xno ; then
25893 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25894 :
25895 else
c2218763 25896 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25897 no_gtk=yes
25898 PKG_CONFIG=no
25899 fi
25900 else
25901 no_gtk=yes
25902 fi
25903
25904 min_gtk_version=2.0.0
25905 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25906echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25907
25908 if test x$PKG_CONFIG != xno ; then
25909 ## don't try to run the test against uninstalled libtool libs
25910 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25911 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25912 enable_gtktest=no
25913 fi
25914
25915 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25916 :
25917 else
25918 no_gtk=yes
25919 fi
25920 fi
25921
25922 if test x"$no_gtk" = x ; then
25923 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25924 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25925 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25926 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25927 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25929 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25930 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25931 if test "x$enable_gtktest" = "xyes" ; then
25932 ac_save_CFLAGS="$CFLAGS"
25933 ac_save_LIBS="$LIBS"
25934 CFLAGS="$CFLAGS $GTK_CFLAGS"
25935 LIBS="$GTK_LIBS $LIBS"
25936 rm -f conf.gtktest
25937 if test "$cross_compiling" = yes; then
25938 echo $ac_n "cross compiling; assumed OK... $ac_c"
25939else
25940 cat >conftest.$ac_ext <<_ACEOF
25941/* confdefs.h. */
25942_ACEOF
25943cat confdefs.h >>conftest.$ac_ext
25944cat >>conftest.$ac_ext <<_ACEOF
25945/* end confdefs.h. */
25946
25947#include <gtk/gtk.h>
25948#include <stdio.h>
25949#include <stdlib.h>
25950
25951int
25952main ()
25953{
25954 int major, minor, micro;
25955 char *tmp_version;
25956
25957 system ("touch conf.gtktest");
25958
25959 /* HP/UX 9 (%@#!) writes to sscanf strings */
25960 tmp_version = g_strdup("$min_gtk_version");
25961 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25962 printf("%s, bad version string\n", "$min_gtk_version");
25963 exit(1);
25964 }
25965
25966 if ((gtk_major_version != $gtk_config_major_version) ||
25967 (gtk_minor_version != $gtk_config_minor_version) ||
25968 (gtk_micro_version != $gtk_config_micro_version))
25969 {
25970 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25971 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25972 gtk_major_version, gtk_minor_version, gtk_micro_version);
25973 printf ("*** was found! If pkg-config was correct, then it is best\n");
25974 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25975 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25976 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25977 printf("*** required on your system.\n");
25978 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25979 printf("*** to point to the correct configuration files\n");
25980 }
25981 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25982 (gtk_minor_version != GTK_MINOR_VERSION) ||
25983 (gtk_micro_version != GTK_MICRO_VERSION))
25984 {
25985 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25986 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25987 printf("*** library (version %d.%d.%d)\n",
25988 gtk_major_version, gtk_minor_version, gtk_micro_version);
25989 }
25990 else
25991 {
25992 if ((gtk_major_version > major) ||
25993 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25994 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25995 {
25996 return 0;
25997 }
25998 else
25999 {
26000 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26001 gtk_major_version, gtk_minor_version, gtk_micro_version);
26002 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26003 major, minor, micro);
26004 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26005 printf("***\n");
26006 printf("*** If you have already installed a sufficiently new version, this error\n");
26007 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26008 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26009 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26010 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26011 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26012 printf("*** so that the correct libraries are found at run-time))\n");
26013 }
26014 }
26015 return 1;
26016}
26017
26018_ACEOF
26019rm -f conftest$ac_exeext
26020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26021 (eval $ac_link) 2>&5
26022 ac_status=$?
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026 (eval $ac_try) 2>&5
26027 ac_status=$?
26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); }; }; then
26030 :
26031else
26032 echo "$as_me: program exited with status $ac_status" >&5
26033echo "$as_me: failed program was:" >&5
26034sed 's/^/| /' conftest.$ac_ext >&5
26035
26036( exit $ac_status )
26037no_gtk=yes
26038fi
ac1cb8d3 26039rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26040fi
26041 CFLAGS="$ac_save_CFLAGS"
26042 LIBS="$ac_save_LIBS"
26043 fi
26044 fi
26045 if test "x$no_gtk" = x ; then
26046 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26047echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26048 wx_cv_lib_gtk=2.0
26049 else
26050 echo "$as_me:$LINENO: result: no" >&5
26051echo "${ECHO_T}no" >&6
26052 if test "$PKG_CONFIG" = "no" ; then
26053 echo "*** A new enough version of pkg-config was not found."
26054 echo "*** See http://pkgconfig.sourceforge.net"
26055 else
26056 if test -f conf.gtktest ; then
26057 :
26058 else
26059 echo "*** Could not run GTK+ test program, checking why..."
26060 ac_save_CFLAGS="$CFLAGS"
26061 ac_save_LIBS="$LIBS"
26062 CFLAGS="$CFLAGS $GTK_CFLAGS"
26063 LIBS="$LIBS $GTK_LIBS"
26064 cat >conftest.$ac_ext <<_ACEOF
26065/* confdefs.h. */
26066_ACEOF
26067cat confdefs.h >>conftest.$ac_ext
26068cat >>conftest.$ac_ext <<_ACEOF
26069/* end confdefs.h. */
26070
26071#include <gtk/gtk.h>
26072#include <stdio.h>
26073
26074int
26075main ()
26076{
26077 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26078 ;
26079 return 0;
26080}
26081_ACEOF
26082rm -f conftest.$ac_objext conftest$ac_exeext
26083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26084 (eval $ac_link) 2>conftest.er1
a848cd7e 26085 ac_status=$?
ac1cb8d3
VS
26086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
a848cd7e
SC
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
0093c2fc 26091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093 (eval $ac_try) 2>&5
26094 ac_status=$?
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); }; } &&
26097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26100 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; }; then
26103 echo "*** The test program compiled, but did not run. This usually means"
26104 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26105 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26106 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26107 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26108 echo "*** is required on your system"
26109 echo "***"
26110 echo "*** If you have an old version installed, it is best to remove it, although"
26111 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26112else
26113 echo "$as_me: failed program was:" >&5
26114sed 's/^/| /' conftest.$ac_ext >&5
26115
26116 echo "*** The test program failed to compile or link. See the file config.log for the"
26117 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26118fi
ac1cb8d3
VS
26119rm -f conftest.err conftest.$ac_objext \
26120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26121 CFLAGS="$ac_save_CFLAGS"
26122 LIBS="$ac_save_LIBS"
26123 fi
26124 fi
26125 GTK_CFLAGS=""
26126 GTK_LIBS=""
26127 :
26128 fi
26129
26130
26131 rm -f conf.gtktest
26132
5001df0d
MW
26133
26134 case "${host}" in
26135 *-*-solaris2* )
26136 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26137 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26138 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26139 fi
26140 if test "$wxUSE_SHARED" != "yes"; then
26141 GTK_LIBS="$GTK_LIBS -lX11"
26142 fi
26143 esac
f597b41c
MW
26144 fi
26145
f34ca037
MW
26146 if test -z "$wx_cv_lib_gtk"; then
26147 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26148
26149# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26150if test "${with_gtk_prefix+set}" = set; then
26151 withval="$with_gtk_prefix"
26152 gtk_config_prefix="$withval"
26153else
26154 gtk_config_prefix=""
26155fi;
26156
26157# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26158if test "${with_gtk_exec_prefix+set}" = set; then
26159 withval="$with_gtk_exec_prefix"
26160 gtk_config_exec_prefix="$withval"
26161else
26162 gtk_config_exec_prefix=""
26163fi;
26164# Check whether --enable-gtktest or --disable-gtktest was given.
26165if test "${enable_gtktest+set}" = set; then
26166 enableval="$enable_gtktest"
26167
26168else
26169 enable_gtktest=yes
26170fi;
26171
26172 for module in . $GTK_MODULES
26173 do
26174 case "$module" in
26175 gthread)
26176 gtk_config_args="$gtk_config_args gthread"
26177 ;;
26178 esac
26179 done
26180
26181 if test x$gtk_config_exec_prefix != x ; then
26182 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26183 if test x${GTK_CONFIG+set} != xset ; then
26184 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26185 fi
26186 fi
26187 if test x$gtk_config_prefix != x ; then
26188 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26189 if test x${GTK_CONFIG+set} != xset ; then
26190 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26191 fi
26192 fi
26193
26194 # Extract the first word of "gtk-config", so it can be a program name with args.
26195set dummy gtk-config; ac_word=$2
26196echo "$as_me:$LINENO: checking for $ac_word" >&5
26197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26198if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26199 echo $ECHO_N "(cached) $ECHO_C" >&6
26200else
26201 case $GTK_CONFIG in
26202 [\\/]* | ?:[\\/]*)
26203 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26204 ;;
26205 *)
26206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26207for as_dir in $PATH
26208do
26209 IFS=$as_save_IFS
26210 test -z "$as_dir" && as_dir=.
26211 for ac_exec_ext in '' $ac_executable_extensions; do
26212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26213 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26215 break 2
26216 fi
26217done
26218done
26219
26220 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26221 ;;
26222esac
26223fi
26224GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26225
26226if test -n "$GTK_CONFIG"; then
26227 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26228echo "${ECHO_T}$GTK_CONFIG" >&6
26229else
26230 echo "$as_me:$LINENO: result: no" >&5
26231echo "${ECHO_T}no" >&6
26232fi
26233
26234 min_gtk_version=1.2.7
26235 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26236echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26237 no_gtk=""
26238 if test "$GTK_CONFIG" = "no" ; then
26239 no_gtk=yes
26240 else
26241 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26242 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26243 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26245 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26247 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26248 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26249 if test "x$enable_gtktest" = "xyes" ; then
26250 ac_save_CFLAGS="$CFLAGS"
26251 ac_save_LIBS="$LIBS"
26252 CFLAGS="$CFLAGS $GTK_CFLAGS"
26253 LIBS="$GTK_LIBS $LIBS"
26254 rm -f conf.gtktest
26255 if test "$cross_compiling" = yes; then
26256 echo $ac_n "cross compiling; assumed OK... $ac_c"
26257else
26258 cat >conftest.$ac_ext <<_ACEOF
26259/* confdefs.h. */
26260_ACEOF
26261cat confdefs.h >>conftest.$ac_ext
26262cat >>conftest.$ac_ext <<_ACEOF
26263/* end confdefs.h. */
26264
26265#include <gtk/gtk.h>
26266#include <stdio.h>
26267#include <stdlib.h>
26268
26269int
26270main ()
26271{
26272 int major, minor, micro;
26273 char *tmp_version;
26274
26275 system ("touch conf.gtktest");
26276
26277 /* HP/UX 9 (%@#!) writes to sscanf strings */
26278 tmp_version = g_strdup("$min_gtk_version");
26279 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26280 printf("%s, bad version string\n", "$min_gtk_version");
26281 exit(1);
26282 }
26283
26284 if ((gtk_major_version != $gtk_config_major_version) ||
26285 (gtk_minor_version != $gtk_config_minor_version) ||
26286 (gtk_micro_version != $gtk_config_micro_version))
26287 {
26288 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26289 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26290 gtk_major_version, gtk_minor_version, gtk_micro_version);
26291 printf ("*** was found! If gtk-config was correct, then it is best\n");
26292 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26293 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26294 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26295 printf("*** required on your system.\n");
26296 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26297 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26298 printf("*** before re-running configure\n");
26299 }
26300#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26301 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26302 (gtk_minor_version != GTK_MINOR_VERSION) ||
26303 (gtk_micro_version != GTK_MICRO_VERSION))
26304 {
26305 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26306 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26307 printf("*** library (version %d.%d.%d)\n",
26308 gtk_major_version, gtk_minor_version, gtk_micro_version);
26309 }
26310#endif /* defined (GTK_MAJOR_VERSION) ... */
26311 else
26312 {
26313 if ((gtk_major_version > major) ||
26314 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26315 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26316 {
26317 return 0;
26318 }
26319 else
26320 {
26321 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26322 gtk_major_version, gtk_minor_version, gtk_micro_version);
26323 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26324 major, minor, micro);
26325 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26326 printf("***\n");
26327 printf("*** If you have already installed a sufficiently new version, this error\n");
26328 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26329 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26330 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26331 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26332 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26333 printf("*** so that the correct libraries are found at run-time))\n");
26334 }
26335 }
26336 return 1;
26337}
26338
26339_ACEOF
26340rm -f conftest$ac_exeext
26341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26342 (eval $ac_link) 2>&5
26343 ac_status=$?
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); }; }; then
26351 :
26352else
26353 echo "$as_me: program exited with status $ac_status" >&5
26354echo "$as_me: failed program was:" >&5
26355sed 's/^/| /' conftest.$ac_ext >&5
26356
26357( exit $ac_status )
26358no_gtk=yes
26359fi
ac1cb8d3 26360rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26361fi
26362 CFLAGS="$ac_save_CFLAGS"
26363 LIBS="$ac_save_LIBS"
26364 fi
26365 fi
26366 if test "x$no_gtk" = x ; then
26367 echo "$as_me:$LINENO: result: yes" >&5
26368echo "${ECHO_T}yes" >&6
26369 wx_cv_lib_gtk=1.2.7
26370 else
26371 echo "$as_me:$LINENO: result: no" >&5
26372echo "${ECHO_T}no" >&6
26373 if test "$GTK_CONFIG" = "no" ; then
26374 echo "*** The gtk-config script installed by GTK could not be found"
26375 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26376 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26377 echo "*** full path to gtk-config."
26378 else
26379 if test -f conf.gtktest ; then
26380 :
26381 else
26382 echo "*** Could not run GTK test program, checking why..."
26383 CFLAGS="$CFLAGS $GTK_CFLAGS"
26384 LIBS="$LIBS $GTK_LIBS"
26385 cat >conftest.$ac_ext <<_ACEOF
26386/* confdefs.h. */
26387_ACEOF
26388cat confdefs.h >>conftest.$ac_ext
26389cat >>conftest.$ac_ext <<_ACEOF
26390/* end confdefs.h. */
26391
26392#include <gtk/gtk.h>
26393#include <stdio.h>
26394
26395int
26396main ()
26397{
26398 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26399 ;
26400 return 0;
26401}
26402_ACEOF
26403rm -f conftest.$ac_objext conftest$ac_exeext
26404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26405 (eval $ac_link) 2>conftest.er1
a848cd7e 26406 ac_status=$?
ac1cb8d3
VS
26407 grep -v '^ *+' conftest.er1 >conftest.err
26408 rm -f conftest.er1
26409 cat conftest.err >&5
a848cd7e
SC
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); } &&
0093c2fc 26412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26415 ac_status=$?
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; } &&
26418 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420 (eval $ac_try) 2>&5
26421 ac_status=$?
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); }; }; then
26424 echo "*** The test program compiled, but did not run. This usually means"
26425 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26426 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26427 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26428 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26429 echo "*** is required on your system"
26430 echo "***"
26431 echo "*** If you have an old version installed, it is best to remove it, although"
26432 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26433 echo "***"
26434 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26435 echo "*** came with the system with the command"
26436 echo "***"
26437 echo "*** rpm --erase --nodeps gtk gtk-devel"
26438else
26439 echo "$as_me: failed program was:" >&5
26440sed 's/^/| /' conftest.$ac_ext >&5
26441
26442 echo "*** The test program failed to compile or link. See the file config.log for the"
26443 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26444 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26445 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26446fi
ac1cb8d3
VS
26447rm -f conftest.err conftest.$ac_objext \
26448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26449 CFLAGS="$ac_save_CFLAGS"
26450 LIBS="$ac_save_LIBS"
26451 fi
26452 fi
26453 GTK_CFLAGS=""
26454 GTK_LIBS=""
26455 :
26456 fi
26457
26458
26459 rm -f conf.gtktest
26460
26461
f34ca037 26462 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26463
26464# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26465if test "${with_gtk_prefix+set}" = set; then
26466 withval="$with_gtk_prefix"
26467 gtk_config_prefix="$withval"
26468else
26469 gtk_config_prefix=""
26470fi;
26471
26472# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26473if test "${with_gtk_exec_prefix+set}" = set; then
26474 withval="$with_gtk_exec_prefix"
26475 gtk_config_exec_prefix="$withval"
26476else
26477 gtk_config_exec_prefix=""
26478fi;
26479# Check whether --enable-gtktest or --disable-gtktest was given.
26480if test "${enable_gtktest+set}" = set; then
26481 enableval="$enable_gtktest"
26482
26483else
26484 enable_gtktest=yes
26485fi;
26486
26487 for module in . $GTK_MODULES
26488 do
26489 case "$module" in
26490 gthread)
26491 gtk_config_args="$gtk_config_args gthread"
26492 ;;
26493 esac
26494 done
26495
26496 if test x$gtk_config_exec_prefix != x ; then
26497 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26498 if test x${GTK_CONFIG+set} != xset ; then
26499 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26500 fi
26501 fi
26502 if test x$gtk_config_prefix != x ; then
26503 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26504 if test x${GTK_CONFIG+set} != xset ; then
26505 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26506 fi
26507 fi
26508
26509 # Extract the first word of "gtk-config", so it can be a program name with args.
26510set dummy gtk-config; ac_word=$2
26511echo "$as_me:$LINENO: checking for $ac_word" >&5
26512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26513if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26514 echo $ECHO_N "(cached) $ECHO_C" >&6
26515else
26516 case $GTK_CONFIG in
26517 [\\/]* | ?:[\\/]*)
26518 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26519 ;;
26520 *)
26521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26522for as_dir in $PATH
26523do
26524 IFS=$as_save_IFS
26525 test -z "$as_dir" && as_dir=.
26526 for ac_exec_ext in '' $ac_executable_extensions; do
26527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26528 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26530 break 2
26531 fi
26532done
26533done
26534
26535 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26536 ;;
26537esac
26538fi
26539GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26540
26541if test -n "$GTK_CONFIG"; then
26542 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26543echo "${ECHO_T}$GTK_CONFIG" >&6
26544else
26545 echo "$as_me:$LINENO: result: no" >&5
26546echo "${ECHO_T}no" >&6
26547fi
26548
26549 min_gtk_version=1.2.3
26550 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26551echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26552 no_gtk=""
26553 if test "$GTK_CONFIG" = "no" ; then
26554 no_gtk=yes
26555 else
26556 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26557 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26558 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26559 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26560 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26561 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26562 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26563 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26564 if test "x$enable_gtktest" = "xyes" ; then
26565 ac_save_CFLAGS="$CFLAGS"
26566 ac_save_LIBS="$LIBS"
26567 CFLAGS="$CFLAGS $GTK_CFLAGS"
26568 LIBS="$GTK_LIBS $LIBS"
26569 rm -f conf.gtktest
26570 if test "$cross_compiling" = yes; then
26571 echo $ac_n "cross compiling; assumed OK... $ac_c"
26572else
26573 cat >conftest.$ac_ext <<_ACEOF
26574/* confdefs.h. */
26575_ACEOF
26576cat confdefs.h >>conftest.$ac_ext
26577cat >>conftest.$ac_ext <<_ACEOF
26578/* end confdefs.h. */
26579
26580#include <gtk/gtk.h>
26581#include <stdio.h>
26582#include <stdlib.h>
26583
26584int
26585main ()
26586{
26587 int major, minor, micro;
26588 char *tmp_version;
26589
26590 system ("touch conf.gtktest");
26591
26592 /* HP/UX 9 (%@#!) writes to sscanf strings */
26593 tmp_version = g_strdup("$min_gtk_version");
26594 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26595 printf("%s, bad version string\n", "$min_gtk_version");
26596 exit(1);
26597 }
26598
26599 if ((gtk_major_version != $gtk_config_major_version) ||
26600 (gtk_minor_version != $gtk_config_minor_version) ||
26601 (gtk_micro_version != $gtk_config_micro_version))
26602 {
26603 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26604 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26605 gtk_major_version, gtk_minor_version, gtk_micro_version);
26606 printf ("*** was found! If gtk-config was correct, then it is best\n");
26607 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26608 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26609 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26610 printf("*** required on your system.\n");
26611 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26612 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26613 printf("*** before re-running configure\n");
26614 }
26615#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26616 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26617 (gtk_minor_version != GTK_MINOR_VERSION) ||
26618 (gtk_micro_version != GTK_MICRO_VERSION))
26619 {
26620 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26621 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26622 printf("*** library (version %d.%d.%d)\n",
26623 gtk_major_version, gtk_minor_version, gtk_micro_version);
26624 }
26625#endif /* defined (GTK_MAJOR_VERSION) ... */
26626 else
26627 {
26628 if ((gtk_major_version > major) ||
26629 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26630 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26631 {
26632 return 0;
26633 }
26634 else
26635 {
26636 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26637 gtk_major_version, gtk_minor_version, gtk_micro_version);
26638 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26639 major, minor, micro);
26640 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26641 printf("***\n");
26642 printf("*** If you have already installed a sufficiently new version, this error\n");
26643 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26644 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26645 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26646 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26647 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26648 printf("*** so that the correct libraries are found at run-time))\n");
26649 }
26650 }
26651 return 1;
26652}
26653
26654_ACEOF
26655rm -f conftest$ac_exeext
26656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26657 (eval $ac_link) 2>&5
26658 ac_status=$?
26659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; }; then
26666 :
26667else
26668 echo "$as_me: program exited with status $ac_status" >&5
26669echo "$as_me: failed program was:" >&5
26670sed 's/^/| /' conftest.$ac_ext >&5
26671
26672( exit $ac_status )
26673no_gtk=yes
26674fi
ac1cb8d3 26675rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26676fi
26677 CFLAGS="$ac_save_CFLAGS"
26678 LIBS="$ac_save_LIBS"
26679 fi
26680 fi
26681 if test "x$no_gtk" = x ; then
26682 echo "$as_me:$LINENO: result: yes" >&5
26683echo "${ECHO_T}yes" >&6
26684 wx_cv_lib_gtk=1.2.3
26685 else
26686 echo "$as_me:$LINENO: result: no" >&5
26687echo "${ECHO_T}no" >&6
26688 if test "$GTK_CONFIG" = "no" ; then
26689 echo "*** The gtk-config script installed by GTK could not be found"
26690 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26691 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26692 echo "*** full path to gtk-config."
26693 else
26694 if test -f conf.gtktest ; then
26695 :
26696 else
26697 echo "*** Could not run GTK test program, checking why..."
26698 CFLAGS="$CFLAGS $GTK_CFLAGS"
26699 LIBS="$LIBS $GTK_LIBS"
26700 cat >conftest.$ac_ext <<_ACEOF
26701/* confdefs.h. */
26702_ACEOF
26703cat confdefs.h >>conftest.$ac_ext
26704cat >>conftest.$ac_ext <<_ACEOF
26705/* end confdefs.h. */
26706
26707#include <gtk/gtk.h>
26708#include <stdio.h>
26709
26710int
26711main ()
26712{
26713 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26714 ;
26715 return 0;
26716}
26717_ACEOF
26718rm -f conftest.$ac_objext conftest$ac_exeext
26719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26720 (eval $ac_link) 2>conftest.er1
a848cd7e 26721 ac_status=$?
ac1cb8d3
VS
26722 grep -v '^ *+' conftest.er1 >conftest.err
26723 rm -f conftest.er1
26724 cat conftest.err >&5
a848cd7e
SC
26725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); } &&
0093c2fc 26727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); }; } &&
26733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; }; then
26739 echo "*** The test program compiled, but did not run. This usually means"
26740 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26741 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26742 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26743 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26744 echo "*** is required on your system"
26745 echo "***"
26746 echo "*** If you have an old version installed, it is best to remove it, although"
26747 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26748 echo "***"
26749 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26750 echo "*** came with the system with the command"
26751 echo "***"
26752 echo "*** rpm --erase --nodeps gtk gtk-devel"
26753else
26754 echo "$as_me: failed program was:" >&5
26755sed 's/^/| /' conftest.$ac_ext >&5
26756
26757 echo "*** The test program failed to compile or link. See the file config.log for the"
26758 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26759 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26760 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26761fi
ac1cb8d3
VS
26762rm -f conftest.err conftest.$ac_objext \
26763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26764 CFLAGS="$ac_save_CFLAGS"
26765 LIBS="$ac_save_LIBS"
26766 fi
26767 fi
26768 GTK_CFLAGS=""
26769 GTK_LIBS=""
26770 :
26771 fi
26772
26773
26774 rm -f conf.gtktest
26775
f34ca037 26776 fi
a848cd7e
SC
26777 fi
26778 fi
26779
26780 if test -z "$wx_cv_lib_gtk"; then
26781 wx_cv_lib_gtk=none
26782 else
26783 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26784 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26785 fi
26786
26787
26788fi
26789
26790
26791 if test "$gtk_version_cached" = 1; then
26792 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26793echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26794 fi
26795
26796 case "$wx_cv_lib_gtk" in
26797 2.0) WXGTK20=1
26798 TOOLKIT_VERSION=2
26799 ;;
26800 1.2.7) WXGTK127=1
26801 WXGTK12=1
26802 ;;
26803 1.2.3) WXGTK12=1
26804 ;;
26805 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26806The development files for GTK+ were not found. For GTK+ 2, please
26807ensure that pkg-config is in the path and that gtk+-2.0.pc is
26808installed. For GTK+ 1.2 please check that gtk-config is in the path,
26809and that the version is 1.2.3 or above. Also check that the
26810libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26811--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26812 " >&5
26813echo "$as_me: error:
f597b41c
MW
26814The development files for GTK+ were not found. For GTK+ 2, please
26815ensure that pkg-config is in the path and that gtk+-2.0.pc is
26816installed. For GTK+ 1.2 please check that gtk-config is in the path,
26817and that the version is 1.2.3 or above. Also check that the
26818libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26819--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26820 " >&2;}
26821 { (exit 1); exit 1; }; }
26822 ;;
26823 esac
26824
26825 if test "$WXGTK20" = 1; then
304205f1
VS
26826 save_CFLAGS="$CFLAGS"
26827 save_LIBS="$LIBS"
9d271838 26828 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26829 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26830
d12aef51
VZ
26831 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26832echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26833 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26834/* confdefs.h. */
26835_ACEOF
26836cat confdefs.h >>conftest.$ac_ext
26837cat >>conftest.$ac_ext <<_ACEOF
26838/* end confdefs.h. */
304205f1 26839
d12aef51 26840 #include <gtk/gtk.h>
304205f1 26841
d12aef51
VZ
26842int
26843main ()
26844{
304205f1 26845
d12aef51 26846 void *f = gtk_icon_size_lookup;
abc736fd
MW
26847
26848 ;
26849 return 0;
26850}
26851_ACEOF
26852rm -f conftest.$ac_objext
26853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26854 (eval $ac_compile) 2>conftest.er1
26855 ac_status=$?
26856 grep -v '^ *+' conftest.er1 >conftest.err
26857 rm -f conftest.er1
26858 cat conftest.err >&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); } &&
0093c2fc 26861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
26862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26863 (eval $ac_try) 2>&5
26864 ac_status=$?
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); }; } &&
26867 { ac_try='test -s conftest.$ac_objext'
26868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26869 (eval $ac_try) 2>&5
26870 ac_status=$?
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); }; }; then
26873
26874 echo "$as_me:$LINENO: result: no" >&5
26875echo "${ECHO_T}no" >&6
26876
26877else
26878 echo "$as_me: failed program was:" >&5
26879sed 's/^/| /' conftest.$ac_ext >&5
26880
26881
26882 cat >>confdefs.h <<\_ACEOF
26883#define NEED_GTK_ICON_SIZE_LOOKUP 1
26884_ACEOF
26885
26886 echo "$as_me:$LINENO: result: yes" >&5
26887echo "${ECHO_T}yes" >&6
26888
26889fi
26890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26891
9755e73b
VS
26892 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26893echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26894 cat >conftest.$ac_ext <<_ACEOF
26895/* confdefs.h. */
26896_ACEOF
26897cat confdefs.h >>conftest.$ac_ext
26898cat >>conftest.$ac_ext <<_ACEOF
26899/* end confdefs.h. */
26900
26901 #include <gtk/gtk.h>
26902
26903int
26904main ()
26905{
26906
26907 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26908 Not GTK+ 2.4
9755e73b
VS
26909 #endif
26910
26911 ;
26912 return 0;
26913}
26914_ACEOF
26915rm -f conftest.$ac_objext
26916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26917 (eval $ac_compile) 2>conftest.er1
26918 ac_status=$?
26919 grep -v '^ *+' conftest.er1 >conftest.err
26920 rm -f conftest.er1
26921 cat conftest.err >&5
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); } &&
0093c2fc 26924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
26925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926 (eval $ac_try) 2>&5
26927 ac_status=$?
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); }; } &&
26930 { ac_try='test -s conftest.$ac_objext'
26931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26932 (eval $ac_try) 2>&5
26933 ac_status=$?
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); }; }; then
26936
26937 cat >>confdefs.h <<\_ACEOF
26938#define __WXGTK24__ 1
26939_ACEOF
26940
26941 echo "$as_me:$LINENO: result: yes" >&5
26942echo "${ECHO_T}yes" >&6
26943
26944else
26945 echo "$as_me: failed program was:" >&5
26946sed 's/^/| /' conftest.$ac_ext >&5
26947
26948
26949 echo "$as_me:$LINENO: result: no" >&5
26950echo "${ECHO_T}no" >&6
26951
26952fi
26953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26954
304205f1
VS
26955 CFLAGS="$save_CFLAGS"
26956 LIBS="$save_LIBS"
a848cd7e
SC
26957 else
26958 if test "$wxUSE_UNICODE" = "yes"; then
26959 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26960echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26961 wxUSE_UNICODE=no
26962 fi
26963 fi
26964
26965 if test "$USE_DARWIN" != 1; then
26966
26967for ac_func in poll
26968do
26969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26970echo "$as_me:$LINENO: checking for $ac_func" >&5
26971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26972if eval "test \"\${$as_ac_var+set}\" = set"; then
26973 echo $ECHO_N "(cached) $ECHO_C" >&6
26974else
26975 cat >conftest.$ac_ext <<_ACEOF
26976/* confdefs.h. */
26977_ACEOF
26978cat confdefs.h >>conftest.$ac_ext
26979cat >>conftest.$ac_ext <<_ACEOF
26980/* end confdefs.h. */
ac1cb8d3
VS
26981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26983#define $ac_func innocuous_$ac_func
26984
a848cd7e
SC
26985/* System header to define __stub macros and hopefully few prototypes,
26986 which can conflict with char $ac_func (); below.
26987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26988 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26989
a848cd7e
SC
26990#ifdef __STDC__
26991# include <limits.h>
26992#else
26993# include <assert.h>
26994#endif
ac1cb8d3
VS
26995
26996#undef $ac_func
26997
a848cd7e
SC
26998/* Override any gcc2 internal prototype to avoid an error. */
26999#ifdef __cplusplus
27000extern "C"
27001{
27002#endif
27003/* We use char because int might match the return type of a gcc2
27004 builtin and then its argument prototype would still apply. */
27005char $ac_func ();
27006/* The GNU C library defines this for functions which it implements
27007 to always fail with ENOSYS. Some functions are actually named
27008 something starting with __ and the normal name is an alias. */
27009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27010choke me
27011#else
27012char (*f) () = $ac_func;
27013#endif
27014#ifdef __cplusplus
27015}
27016#endif
27017
27018int
27019main ()
27020{
27021return f != $ac_func;
27022 ;
27023 return 0;
27024}
27025_ACEOF
27026rm -f conftest.$ac_objext conftest$ac_exeext
27027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27028 (eval $ac_link) 2>conftest.er1
a848cd7e 27029 ac_status=$?
ac1cb8d3
VS
27030 grep -v '^ *+' conftest.er1 >conftest.err
27031 rm -f conftest.er1
27032 cat conftest.err >&5
a848cd7e
SC
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } &&
0093c2fc 27035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27037 (eval $ac_try) 2>&5
27038 ac_status=$?
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; } &&
27041 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043 (eval $ac_try) 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; }; then
27047 eval "$as_ac_var=yes"
27048else
27049 echo "$as_me: failed program was:" >&5
27050sed 's/^/| /' conftest.$ac_ext >&5
27051
27052eval "$as_ac_var=no"
27053fi
ac1cb8d3
VS
27054rm -f conftest.err conftest.$ac_objext \
27055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27056fi
27057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27059if test `eval echo '${'$as_ac_var'}'` = yes; then
27060 cat >>confdefs.h <<_ACEOF
27061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27062_ACEOF
27063
27064fi
27065done
27066
27067 fi
27068
27069 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27070 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27071
27072 AFMINSTALL=afminstall
27073 TOOLKIT=GTK
27074 GUIDIST=GTK_DIST
27075
27076 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27077echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27078if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27080else
27081 ac_check_lib_save_LIBS=$LIBS
27082LIBS="-lgdk $LIBS"
27083cat >conftest.$ac_ext <<_ACEOF
27084/* confdefs.h. */
27085_ACEOF
27086cat confdefs.h >>conftest.$ac_ext
27087cat >>conftest.$ac_ext <<_ACEOF
27088/* end confdefs.h. */
27089
27090/* Override any gcc2 internal prototype to avoid an error. */
27091#ifdef __cplusplus
27092extern "C"
27093#endif
27094/* We use char because int might match the return type of a gcc2
27095 builtin and then its argument prototype would still apply. */
27096char gdk_im_open ();
27097int
27098main ()
27099{
27100gdk_im_open ();
27101 ;
27102 return 0;
27103}
27104_ACEOF
27105rm -f conftest.$ac_objext conftest$ac_exeext
27106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27107 (eval $ac_link) 2>conftest.er1
a848cd7e 27108 ac_status=$?
ac1cb8d3
VS
27109 grep -v '^ *+' conftest.er1 >conftest.err
27110 rm -f conftest.er1
27111 cat conftest.err >&5
a848cd7e
SC
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
0093c2fc 27114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27116 (eval $ac_try) 2>&5
27117 ac_status=$?
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); }; } &&
27120 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27123 ac_status=$?
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; }; then
27126 ac_cv_lib_gdk_gdk_im_open=yes
27127else
27128 echo "$as_me: failed program was:" >&5
27129sed 's/^/| /' conftest.$ac_ext >&5
27130
27131ac_cv_lib_gdk_gdk_im_open=no
27132fi
ac1cb8d3
VS
27133rm -f conftest.err conftest.$ac_objext \
27134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27135LIBS=$ac_check_lib_save_LIBS
27136fi
27137echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27138echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27139if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27140 cat >>confdefs.h <<\_ACEOF
27141#define HAVE_XIM 1
27142_ACEOF
27143
27144fi
27145
27146
27147
27148 if test "$wxUSE_GPE" = "yes"; then
27149 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27150echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27151
0ad5d837
VZ
27152 ac_find_libraries=
27153 for ac_dir in $SEARCH_LIB;
a848cd7e 27154 do
3eca31dc 27155 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27156 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27157 ac_find_libraries=$ac_dir
27158 break 2
27159 fi
27160 done
27161 done
27162
27163 if test "$ac_find_libraries" != "" ; then
27164
0ad5d837 27165 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27166 ac_path_to_link=""
27167 else
0ad5d837
VZ
27168 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27169 result=$?
27170 if test $result = 0; then
27171 ac_path_to_link=""
27172 else
27173 ac_path_to_link=" -L$ac_find_libraries"
27174 fi
a848cd7e
SC
27175 fi
27176
27177 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27178 WXGPE=1
0ad5d837
VZ
27179 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27180echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27181 else
27182 echo "$as_me:$LINENO: result: not found" >&5
27183echo "${ECHO_T}not found" >&6
27184 fi
27185
27186 fi
27187 fi
27188
27189 if test "$wxUSE_MGL" = 1; then
27190 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27191echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27192 if test "x$MGL_ROOT" = x ; then
27193 echo "$as_me:$LINENO: result: not found" >&5
27194echo "${ECHO_T}not found" >&6
27195 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27196echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27197 { (exit 1); exit 1; }; }
27198 else
27199 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27200echo "${ECHO_T}$MGL_ROOT" >&6
27201 fi
27202
27203 echo "$as_me:$LINENO: checking for libmgl location" >&5
27204echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27205 case "${host}" in
27206 *-*-linux* )
27207 if test "x$wxUSE_SHARED" = xyes ; then
27208 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27209 else
27210 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27211 fi
27212 ;;
27213 *-pc-msdosdjgpp )
27214 mgl_os_candidates="dos32/dj2"
27215 ;;
27216 *)
27217 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27218echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27219 { (exit 1); exit 1; }; }
27220 esac
27221
27222 mgl_lib_type=""
27223 mgl_os=""
27224
27225 for mgl_os_i in $mgl_os_candidates ; do
27226 if test "x$mgl_os" = x ; then
27227 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27228 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27229 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27230 mgl_lib_type=debug
27231 mgl_os=$mgl_os_i
27232 fi
27233 fi
27234 if test "x$mgl_lib_type" = x ; then
27235 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27236 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27237 mgl_lib_type=release
27238 mgl_os=$mgl_os_i
27239 fi
27240 fi
27241 fi
27242 done
27243
27244 if test "x$mgl_os" = x ; then
27245 echo "$as_me:$LINENO: result: not found" >&5
27246echo "${ECHO_T}not found" >&6
27247 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27248echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27249 { (exit 1); exit 1; }; }
27250 fi
27251 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27252echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27253
27254 wxUSE_UNIVERSAL="yes"
27255
27256 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27257 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27258
27259 AFMINSTALL=afminstall
27260 TOOLKIT=MGL
27261 GUIDIST=MGL_DIST
27262 fi
27263
27264 if test "$wxUSE_MICROWIN" = 1; then
27265 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27266echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27267 if test "x$MICROWINDOWS" = x ; then
27268 echo "$as_me:$LINENO: result: not found" >&5
27269echo "${ECHO_T}not found" >&6
27270 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27271echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27272 { (exit 1); exit 1; }; }
27273 else
27274 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27275echo "${ECHO_T}$MICROWINDOWS" >&6
27276 fi
27277
27278 if test -f $MICROWINDOWS/lib/libmwin.a; then
27279 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27280echo "${ECHO_T}MicroWindows' libraries found." >&6
27281 else
27282 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27283echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27284 { (exit 1); exit 1; }; }
27285 fi
27286
27287 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27288 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27289
27290 wxUSE_UNIVERSAL="yes"
27291
27292 AFMINSTALL=afminstall
27293 TOOLKIT=MICROWIN
27294 GUIDIST=MICROWIN_DIST
27295
27296 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27297 fi
27298
74b84332 27299 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
0093c2fc
VZ
27300
27301if test "x$ac_path_x_has_been_run" != xyes; then
27302 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27303echo $ECHO_N "checking for X... $ECHO_C" >&6
27304
0093c2fc 27305ac_path_x_has_been_run=yes
a848cd7e
SC
27306
27307# Check whether --with-x or --without-x was given.
27308if test "${with_x+set}" = set; then
27309 withval="$with_x"
27310
27311fi;
27312# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27313if test "x$with_x" = xno; then
27314 # The user explicitly disabled X.
27315 have_x=disabled
27316else
27317 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27318 # Both variables are already set.
27319 have_x=yes
27320 else
27321 if test "${ac_cv_have_x+set}" = set; then
27322 echo $ECHO_N "(cached) $ECHO_C" >&6
27323else
27324 # One or both of the vars are not set, and there is no cached value.
27325ac_x_includes=no ac_x_libraries=no
27326rm -fr conftest.dir
27327if mkdir conftest.dir; then
27328 cd conftest.dir
27329 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27330 cat >Imakefile <<'_ACEOF'
27331acfindx:
27332 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27333_ACEOF
27334 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27336 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27337 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27338 for ac_extension in a so sl; do
27339 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27340 test -f $ac_im_libdir/libX11.$ac_extension; then
27341 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27342 fi
27343 done
27344 # Screen out bogus values from the imake configuration. They are
27345 # bogus both because they are the default anyway, and because
27346 # using them would break gcc on systems where it needs fixed includes.
27347 case $ac_im_incroot in
27348 /usr/include) ;;
27349 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27350 esac
27351 case $ac_im_usrlibdir in
27352 /usr/lib | /lib) ;;
27353 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27354 esac
27355 fi
27356 cd ..
27357 rm -fr conftest.dir
27358fi
27359
27360# Standard set of common directories for X headers.
27361# Check X11 before X11Rn because it is often a symlink to the current release.
27362ac_x_header_dirs='
27363/usr/X11/include
27364/usr/X11R6/include
27365/usr/X11R5/include
27366/usr/X11R4/include
27367
27368/usr/include/X11
27369/usr/include/X11R6
27370/usr/include/X11R5
27371/usr/include/X11R4
27372
27373/usr/local/X11/include
27374/usr/local/X11R6/include
27375/usr/local/X11R5/include
27376/usr/local/X11R4/include
27377
27378/usr/local/include/X11
27379/usr/local/include/X11R6
27380/usr/local/include/X11R5
27381/usr/local/include/X11R4
27382
27383/usr/X386/include
27384/usr/x386/include
27385/usr/XFree86/include/X11
27386
27387/usr/include
27388/usr/local/include
27389/usr/unsupported/include
27390/usr/athena/include
27391/usr/local/x11r5/include
27392/usr/lpp/Xamples/include
27393
27394/usr/openwin/include
27395/usr/openwin/share/include'
27396
27397if test "$ac_x_includes" = no; then
0093c2fc 27398 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
27399 # First, try using that file with no special directory specified.
27400 cat >conftest.$ac_ext <<_ACEOF
27401/* confdefs.h. */
27402_ACEOF
27403cat confdefs.h >>conftest.$ac_ext
27404cat >>conftest.$ac_ext <<_ACEOF
27405/* end confdefs.h. */
27406#include <X11/Intrinsic.h>
27407_ACEOF
27408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27410 ac_status=$?
27411 grep -v '^ *+' conftest.er1 >conftest.err
27412 rm -f conftest.er1
27413 cat conftest.err >&5
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); } >/dev/null; then
27416 if test -s conftest.err; then
27417 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27419 else
27420 ac_cpp_err=
27421 fi
27422else
27423 ac_cpp_err=yes
27424fi
27425if test -z "$ac_cpp_err"; then
27426 # We can compile using X headers with no special include directory.
27427ac_x_includes=
27428else
27429 echo "$as_me: failed program was:" >&5
27430sed 's/^/| /' conftest.$ac_ext >&5
27431
27432 for ac_dir in $ac_x_header_dirs; do
27433 if test -r "$ac_dir/X11/Intrinsic.h"; then
27434 ac_x_includes=$ac_dir
27435 break
27436 fi
27437done
27438fi
27439rm -f conftest.err conftest.$ac_ext
27440fi # $ac_x_includes = no
27441
27442if test "$ac_x_libraries" = no; then
27443 # Check for the libraries.
27444 # See if we find them without any special options.
27445 # Don't add to $LIBS permanently.
27446 ac_save_LIBS=$LIBS
27447 LIBS="-lXt $LIBS"
27448 cat >conftest.$ac_ext <<_ACEOF
27449/* confdefs.h. */
27450_ACEOF
27451cat confdefs.h >>conftest.$ac_ext
27452cat >>conftest.$ac_ext <<_ACEOF
27453/* end confdefs.h. */
27454#include <X11/Intrinsic.h>
27455int
27456main ()
27457{
27458XtMalloc (0)
27459 ;
27460 return 0;
27461}
27462_ACEOF
27463rm -f conftest.$ac_objext conftest$ac_exeext
27464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27465 (eval $ac_link) 2>conftest.er1
a848cd7e 27466 ac_status=$?
ac1cb8d3
VS
27467 grep -v '^ *+' conftest.er1 >conftest.err
27468 rm -f conftest.er1
27469 cat conftest.err >&5
a848cd7e
SC
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); } &&
0093c2fc 27472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27474 (eval $ac_try) 2>&5
27475 ac_status=$?
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); }; } &&
27478 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27480 (eval $ac_try) 2>&5
27481 ac_status=$?
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; }; then
27484 LIBS=$ac_save_LIBS
27485# We can link X programs with no special library path.
27486ac_x_libraries=
27487else
27488 echo "$as_me: failed program was:" >&5
27489sed 's/^/| /' conftest.$ac_ext >&5
27490
27491LIBS=$ac_save_LIBS
27492for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27493do
27494 # Don't even attempt the hair of trying to link an X program!
27495 for ac_extension in a so sl; do
27496 if test -r $ac_dir/libXt.$ac_extension; then
27497 ac_x_libraries=$ac_dir
27498 break 2
27499 fi
27500 done
27501done
27502fi
ac1cb8d3
VS
27503rm -f conftest.err conftest.$ac_objext \
27504 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27505fi # $ac_x_libraries = no
27506
27507if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27508 # Didn't find X anywhere. Cache the known absence of X.
27509 ac_cv_have_x="have_x=no"
27510else
27511 # Record where we found X for the cache.
27512 ac_cv_have_x="have_x=yes \
ac1cb8d3 27513 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27514fi
27515fi
27516
27517 fi
27518 eval "$ac_cv_have_x"
27519fi # $with_x != no
27520
27521if test "$have_x" != yes; then
27522 echo "$as_me:$LINENO: result: $have_x" >&5
27523echo "${ECHO_T}$have_x" >&6
27524 no_x=yes
27525else
27526 # If each of the values was on the command line, it overrides each guess.
27527 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27528 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27529 # Update the cache value to reflect the command line values.
27530 ac_cv_have_x="have_x=yes \
27531 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
0093c2fc
VZ
27532 # It might be that x_includes is empty (headers are found in the
27533 # standard search path. Then output the corresponding message
27534 ac_out_x_includes=$x_includes
27535 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
27536 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
27537echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
27538fi
27539
0093c2fc 27540fi
a848cd7e
SC
27541if test "$no_x" = yes; then
27542 # Not all programs may use this symbol, but it does not hurt to define it.
27543
27544cat >>confdefs.h <<\_ACEOF
27545#define X_DISPLAY_MISSING 1
27546_ACEOF
27547
27548 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27549else
27550 if test -n "$x_includes"; then
27551 X_CFLAGS="$X_CFLAGS -I$x_includes"
27552 fi
27553
27554 # It would also be nice to do this for all -L options, not just this one.
27555 if test -n "$x_libraries"; then
27556 X_LIBS="$X_LIBS -L$x_libraries"
27557 # For Solaris; some versions of Sun CC require a space after -R and
27558 # others require no space. Words are not sufficient . . . .
27559 case `(uname -sr) 2>/dev/null` in
27560 "SunOS 5"*)
27561 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27562echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27563 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27564 cat >conftest.$ac_ext <<_ACEOF
27565/* confdefs.h. */
27566_ACEOF
27567cat confdefs.h >>conftest.$ac_ext
27568cat >>conftest.$ac_ext <<_ACEOF
27569/* end confdefs.h. */
27570
27571int
27572main ()
27573{
27574
27575 ;
27576 return 0;
27577}
27578_ACEOF
27579rm -f conftest.$ac_objext conftest$ac_exeext
27580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27581 (eval $ac_link) 2>conftest.er1
a848cd7e 27582 ac_status=$?
ac1cb8d3
VS
27583 grep -v '^ *+' conftest.er1 >conftest.err
27584 rm -f conftest.er1
27585 cat conftest.err >&5
a848cd7e
SC
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); } &&
0093c2fc 27588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590 (eval $ac_try) 2>&5
27591 ac_status=$?
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); }; } &&
27594 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596 (eval $ac_try) 2>&5
27597 ac_status=$?
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); }; }; then
27600 ac_R_nospace=yes
27601else
27602 echo "$as_me: failed program was:" >&5
27603sed 's/^/| /' conftest.$ac_ext >&5
27604
27605ac_R_nospace=no
27606fi
ac1cb8d3
VS
27607rm -f conftest.err conftest.$ac_objext \
27608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27609 if test $ac_R_nospace = yes; then
27610 echo "$as_me:$LINENO: result: no" >&5
27611echo "${ECHO_T}no" >&6
27612 X_LIBS="$X_LIBS -R$x_libraries"
27613 else
27614 LIBS="$ac_xsave_LIBS -R $x_libraries"
27615 cat >conftest.$ac_ext <<_ACEOF
27616/* confdefs.h. */
27617_ACEOF
27618cat confdefs.h >>conftest.$ac_ext
27619cat >>conftest.$ac_ext <<_ACEOF
27620/* end confdefs.h. */
27621
27622int
27623main ()
27624{
27625
27626 ;
27627 return 0;
27628}
27629_ACEOF
27630rm -f conftest.$ac_objext conftest$ac_exeext
27631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27632 (eval $ac_link) 2>conftest.er1
a848cd7e 27633 ac_status=$?
ac1cb8d3
VS
27634 grep -v '^ *+' conftest.er1 >conftest.err
27635 rm -f conftest.er1
27636 cat conftest.err >&5
a848cd7e
SC
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); } &&
0093c2fc 27639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
27645 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27647 (eval $ac_try) 2>&5
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; }; then
27651 ac_R_space=yes
27652else
27653 echo "$as_me: failed program was:" >&5
27654sed 's/^/| /' conftest.$ac_ext >&5
27655
27656ac_R_space=no
27657fi
ac1cb8d3
VS
27658rm -f conftest.err conftest.$ac_objext \
27659 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27660 if test $ac_R_space = yes; then
27661 echo "$as_me:$LINENO: result: yes" >&5
27662echo "${ECHO_T}yes" >&6
27663 X_LIBS="$X_LIBS -R $x_libraries"
27664 else
27665 echo "$as_me:$LINENO: result: neither works" >&5
27666echo "${ECHO_T}neither works" >&6
27667 fi
27668 fi
27669 LIBS=$ac_xsave_LIBS
27670 esac
27671 fi
27672
27673 # Check for system-dependent libraries X programs must link with.
27674 # Do this before checking for the system-independent R6 libraries
27675 # (-lICE), since we may need -lsocket or whatever for X linking.
27676
27677 if test "$ISC" = yes; then
27678 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27679 else
27680 # Martyn Johnson says this is needed for Ultrix, if the X
27681 # libraries were built with DECnet support. And Karl Berry says
27682 # the Alpha needs dnet_stub (dnet does not exist).
27683 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27684 cat >conftest.$ac_ext <<_ACEOF
27685/* confdefs.h. */
27686_ACEOF
27687cat confdefs.h >>conftest.$ac_ext
27688cat >>conftest.$ac_ext <<_ACEOF
27689/* end confdefs.h. */
27690
27691/* Override any gcc2 internal prototype to avoid an error. */
27692#ifdef __cplusplus
27693extern "C"
27694#endif
27695/* We use char because int might match the return type of a gcc2
27696 builtin and then its argument prototype would still apply. */
27697char XOpenDisplay ();
27698int
27699main ()
27700{
27701XOpenDisplay ();
27702 ;
27703 return 0;
27704}
27705_ACEOF
27706rm -f conftest.$ac_objext conftest$ac_exeext
27707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27708 (eval $ac_link) 2>conftest.er1
a848cd7e 27709 ac_status=$?
ac1cb8d3
VS
27710 grep -v '^ *+' conftest.er1 >conftest.err
27711 rm -f conftest.er1
27712 cat conftest.err >&5
a848cd7e
SC
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); } &&
0093c2fc 27715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27717 (eval $ac_try) 2>&5
27718 ac_status=$?
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); }; } &&
27721 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27723 (eval $ac_try) 2>&5
27724 ac_status=$?
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); }; }; then
27727 :
27728else
27729 echo "$as_me: failed program was:" >&5
27730sed 's/^/| /' conftest.$ac_ext >&5
27731
27732echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27733echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27734if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27735 echo $ECHO_N "(cached) $ECHO_C" >&6
27736else
27737 ac_check_lib_save_LIBS=$LIBS
27738LIBS="-ldnet $LIBS"
27739cat >conftest.$ac_ext <<_ACEOF
27740/* confdefs.h. */
27741_ACEOF
27742cat confdefs.h >>conftest.$ac_ext
27743cat >>conftest.$ac_ext <<_ACEOF
27744/* end confdefs.h. */
27745
27746/* Override any gcc2 internal prototype to avoid an error. */
27747#ifdef __cplusplus
27748extern "C"
27749#endif
27750/* We use char because int might match the return type of a gcc2
27751 builtin and then its argument prototype would still apply. */
27752char dnet_ntoa ();
27753int
27754main ()
27755{
27756dnet_ntoa ();
27757 ;
27758 return 0;
27759}
27760_ACEOF
27761rm -f conftest.$ac_objext conftest$ac_exeext
27762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27763 (eval $ac_link) 2>conftest.er1
a848cd7e 27764 ac_status=$?
ac1cb8d3
VS
27765 grep -v '^ *+' conftest.er1 >conftest.err
27766 rm -f conftest.er1
27767 cat conftest.err >&5
a848cd7e
SC
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); } &&
0093c2fc 27770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772 (eval $ac_try) 2>&5
27773 ac_status=$?
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; } &&
27776 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778 (eval $ac_try) 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; }; then
27782 ac_cv_lib_dnet_dnet_ntoa=yes
27783else
27784 echo "$as_me: failed program was:" >&5
27785sed 's/^/| /' conftest.$ac_ext >&5
27786
27787ac_cv_lib_dnet_dnet_ntoa=no
27788fi
ac1cb8d3
VS
27789rm -f conftest.err conftest.$ac_objext \
27790 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27791LIBS=$ac_check_lib_save_LIBS
27792fi
27793echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27794echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27795if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27796 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27797fi
27798
27799 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27800 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27801echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27802if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27803 echo $ECHO_N "(cached) $ECHO_C" >&6
27804else
27805 ac_check_lib_save_LIBS=$LIBS
27806LIBS="-ldnet_stub $LIBS"
27807cat >conftest.$ac_ext <<_ACEOF
27808/* confdefs.h. */
27809_ACEOF
27810cat confdefs.h >>conftest.$ac_ext
27811cat >>conftest.$ac_ext <<_ACEOF
27812/* end confdefs.h. */
27813
27814/* Override any gcc2 internal prototype to avoid an error. */
27815#ifdef __cplusplus
27816extern "C"
27817#endif
27818/* We use char because int might match the return type of a gcc2
27819 builtin and then its argument prototype would still apply. */
27820char dnet_ntoa ();
27821int
27822main ()
27823{
27824dnet_ntoa ();
27825 ;
27826 return 0;
27827}
27828_ACEOF
27829rm -f conftest.$ac_objext conftest$ac_exeext
27830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27831 (eval $ac_link) 2>conftest.er1
a848cd7e 27832 ac_status=$?
ac1cb8d3
VS
27833 grep -v '^ *+' conftest.er1 >conftest.err
27834 rm -f conftest.er1
27835 cat conftest.err >&5
a848cd7e
SC
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); } &&
0093c2fc 27838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27841 ac_status=$?
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; } &&
27844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846 (eval $ac_try) 2>&5
27847 ac_status=$?
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
27850 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27851else
27852 echo "$as_me: failed program was:" >&5
27853sed 's/^/| /' conftest.$ac_ext >&5
27854
27855ac_cv_lib_dnet_stub_dnet_ntoa=no
27856fi
ac1cb8d3
VS
27857rm -f conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27859LIBS=$ac_check_lib_save_LIBS
27860fi
27861echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27862echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27863if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27864 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27865fi
27866
27867 fi
27868fi
ac1cb8d3
VS
27869rm -f conftest.err conftest.$ac_objext \
27870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27871 LIBS="$ac_xsave_LIBS"
27872
27873 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27874 # to get the SysV transport functions.
27875 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27876 # needs -lnsl.
27877 # The nsl library prevents programs from opening the X display
27878 # on Irix 5.2, according to T.E. Dickey.
27879 # The functions gethostbyname, getservbyname, and inet_addr are
27880 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27881 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27882echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27883if test "${ac_cv_func_gethostbyname+set}" = set; then
27884 echo $ECHO_N "(cached) $ECHO_C" >&6
27885else
27886 cat >conftest.$ac_ext <<_ACEOF
27887/* confdefs.h. */
27888_ACEOF
27889cat confdefs.h >>conftest.$ac_ext
27890cat >>conftest.$ac_ext <<_ACEOF
27891/* end confdefs.h. */
ac1cb8d3
VS
27892/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27894#define gethostbyname innocuous_gethostbyname
27895
a848cd7e
SC
27896/* System header to define __stub macros and hopefully few prototypes,
27897 which can conflict with char gethostbyname (); below.
27898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27899 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27900
a848cd7e
SC
27901#ifdef __STDC__
27902# include <limits.h>
27903#else
27904# include <assert.h>
27905#endif
ac1cb8d3
VS
27906
27907#undef gethostbyname
27908
a848cd7e
SC
27909/* Override any gcc2 internal prototype to avoid an error. */
27910#ifdef __cplusplus
27911extern "C"
27912{
27913#endif
27914/* We use char because int might match the return type of a gcc2
27915 builtin and then its argument prototype would still apply. */
27916char gethostbyname ();
27917/* The GNU C library defines this for functions which it implements
27918 to always fail with ENOSYS. Some functions are actually named
27919 something starting with __ and the normal name is an alias. */
27920#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27921choke me
27922#else
27923char (*f) () = gethostbyname;
27924#endif
27925#ifdef __cplusplus
27926}
27927#endif
27928
27929int
27930main ()
27931{
27932return f != gethostbyname;
27933 ;
27934 return 0;
27935}
27936_ACEOF
27937rm -f conftest.$ac_objext conftest$ac_exeext
27938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27939 (eval $ac_link) 2>conftest.er1
a848cd7e 27940 ac_status=$?
ac1cb8d3
VS
27941 grep -v '^ *+' conftest.er1 >conftest.err
27942 rm -f conftest.er1
27943 cat conftest.err >&5
a848cd7e
SC
27944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945 (exit $ac_status); } &&
0093c2fc 27946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948 (eval $ac_try) 2>&5
27949 ac_status=$?
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; } &&
27952 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27955 ac_status=$?
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; }; then
27958 ac_cv_func_gethostbyname=yes
27959else
27960 echo "$as_me: failed program was:" >&5
27961sed 's/^/| /' conftest.$ac_ext >&5
27962
27963ac_cv_func_gethostbyname=no
27964fi
ac1cb8d3
VS
27965rm -f conftest.err conftest.$ac_objext \
27966 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27967fi
27968echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27969echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27970
27971 if test $ac_cv_func_gethostbyname = no; then
27972 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27973echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27974if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27976else
27977 ac_check_lib_save_LIBS=$LIBS
27978LIBS="-lnsl $LIBS"
27979cat >conftest.$ac_ext <<_ACEOF
27980/* confdefs.h. */
27981_ACEOF
27982cat confdefs.h >>conftest.$ac_ext
27983cat >>conftest.$ac_ext <<_ACEOF
27984/* end confdefs.h. */
27985
27986/* Override any gcc2 internal prototype to avoid an error. */
27987#ifdef __cplusplus
27988extern "C"
27989#endif
27990/* We use char because int might match the return type of a gcc2
27991 builtin and then its argument prototype would still apply. */
27992char gethostbyname ();
27993int
27994main ()
27995{
27996gethostbyname ();
27997 ;
27998 return 0;
27999}
28000_ACEOF
28001rm -f conftest.$ac_objext conftest$ac_exeext
28002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28003 (eval $ac_link) 2>conftest.er1
28004 ac_status=$?
28005 grep -v '^ *+' conftest.er1 >conftest.err
28006 rm -f conftest.er1
28007 cat conftest.err >&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } &&
0093c2fc 28010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012 (eval $ac_try) 2>&5
28013 ac_status=$?
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; } &&
28016 { ac_try='test -s conftest$ac_exeext'
28017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018 (eval $ac_try) 2>&5
28019 ac_status=$?
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; }; then
28022 ac_cv_lib_nsl_gethostbyname=yes
28023else
28024 echo "$as_me: failed program was:" >&5
28025sed 's/^/| /' conftest.$ac_ext >&5
28026
28027ac_cv_lib_nsl_gethostbyname=no
28028fi
28029rm -f conftest.err conftest.$ac_objext \
28030 conftest$ac_exeext conftest.$ac_ext
28031LIBS=$ac_check_lib_save_LIBS
28032fi
28033echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28034echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28035if test $ac_cv_lib_nsl_gethostbyname = yes; then
28036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28037fi
28038
28039 if test $ac_cv_lib_nsl_gethostbyname = no; then
28040 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28041echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28042if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28043 echo $ECHO_N "(cached) $ECHO_C" >&6
28044else
28045 ac_check_lib_save_LIBS=$LIBS
28046LIBS="-lbsd $LIBS"
28047cat >conftest.$ac_ext <<_ACEOF
28048/* confdefs.h. */
28049_ACEOF
28050cat confdefs.h >>conftest.$ac_ext
28051cat >>conftest.$ac_ext <<_ACEOF
28052/* end confdefs.h. */
28053
28054/* Override any gcc2 internal prototype to avoid an error. */
28055#ifdef __cplusplus
28056extern "C"
28057#endif
28058/* We use char because int might match the return type of a gcc2
28059 builtin and then its argument prototype would still apply. */
28060char gethostbyname ();
28061int
28062main ()
28063{
28064gethostbyname ();
28065 ;
28066 return 0;
28067}
28068_ACEOF
28069rm -f conftest.$ac_objext conftest$ac_exeext
28070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28071 (eval $ac_link) 2>conftest.er1
a848cd7e 28072 ac_status=$?
ac1cb8d3
VS
28073 grep -v '^ *+' conftest.er1 >conftest.err
28074 rm -f conftest.er1
28075 cat conftest.err >&5
a848cd7e
SC
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } &&
0093c2fc 28078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28080 (eval $ac_try) 2>&5
28081 ac_status=$?
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28083 (exit $ac_status); }; } &&
28084 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28086 (eval $ac_try) 2>&5
28087 ac_status=$?
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); }; }; then
28090 ac_cv_lib_bsd_gethostbyname=yes
28091else
28092 echo "$as_me: failed program was:" >&5
28093sed 's/^/| /' conftest.$ac_ext >&5
28094
28095ac_cv_lib_bsd_gethostbyname=no
28096fi
ac1cb8d3
VS
28097rm -f conftest.err conftest.$ac_objext \
28098 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28099LIBS=$ac_check_lib_save_LIBS
28100fi
28101echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28102echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28103if test $ac_cv_lib_bsd_gethostbyname = yes; then
28104 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28105fi
28106
28107 fi
28108 fi
28109
28110 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28111 # socket/setsockopt and other routines are undefined under SCO ODT
28112 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28113 # on later versions), says Simon Leinen: it contains gethostby*
28114 # variants that don't use the name server (or something). -lsocket
28115 # must be given before -lnsl if both are needed. We assume that
28116 # if connect needs -lnsl, so does gethostbyname.
28117 echo "$as_me:$LINENO: checking for connect" >&5
28118echo $ECHO_N "checking for connect... $ECHO_C" >&6
28119if test "${ac_cv_func_connect+set}" = set; then
28120 echo $ECHO_N "(cached) $ECHO_C" >&6
28121else
28122 cat >conftest.$ac_ext <<_ACEOF
28123/* confdefs.h. */
28124_ACEOF
28125cat confdefs.h >>conftest.$ac_ext
28126cat >>conftest.$ac_ext <<_ACEOF
28127/* end confdefs.h. */
ac1cb8d3
VS
28128/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28130#define connect innocuous_connect
28131
a848cd7e
SC
28132/* System header to define __stub macros and hopefully few prototypes,
28133 which can conflict with char connect (); below.
28134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28135 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28136
a848cd7e
SC
28137#ifdef __STDC__
28138# include <limits.h>
28139#else
28140# include <assert.h>
28141#endif
ac1cb8d3
VS
28142
28143#undef connect
28144
a848cd7e
SC
28145/* Override any gcc2 internal prototype to avoid an error. */
28146#ifdef __cplusplus
28147extern "C"
28148{
28149#endif
28150/* We use char because int might match the return type of a gcc2
28151 builtin and then its argument prototype would still apply. */
28152char connect ();
28153/* The GNU C library defines this for functions which it implements
28154 to always fail with ENOSYS. Some functions are actually named
28155 something starting with __ and the normal name is an alias. */
28156#if defined (__stub_connect) || defined (__stub___connect)
28157choke me
28158#else
28159char (*f) () = connect;
28160#endif
28161#ifdef __cplusplus
28162}
28163#endif
28164
28165int
28166main ()
28167{
28168return f != connect;
28169 ;
28170 return 0;
28171}
28172_ACEOF
28173rm -f conftest.$ac_objext conftest$ac_exeext
28174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28175 (eval $ac_link) 2>conftest.er1
a848cd7e 28176 ac_status=$?
ac1cb8d3
VS
28177 grep -v '^ *+' conftest.er1 >conftest.err
28178 rm -f conftest.er1
28179 cat conftest.err >&5
a848cd7e
SC
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); } &&
0093c2fc 28182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28184 (eval $ac_try) 2>&5
28185 ac_status=$?
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; } &&
28188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28190 (eval $ac_try) 2>&5
28191 ac_status=$?
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); }; }; then
28194 ac_cv_func_connect=yes
28195else
28196 echo "$as_me: failed program was:" >&5
28197sed 's/^/| /' conftest.$ac_ext >&5
28198
28199ac_cv_func_connect=no
28200fi
ac1cb8d3
VS
28201rm -f conftest.err conftest.$ac_objext \
28202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28203fi
28204echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28205echo "${ECHO_T}$ac_cv_func_connect" >&6
28206
28207 if test $ac_cv_func_connect = no; then
28208 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28209echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28210if test "${ac_cv_lib_socket_connect+set}" = set; then
28211 echo $ECHO_N "(cached) $ECHO_C" >&6
28212else
28213 ac_check_lib_save_LIBS=$LIBS
28214LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28215cat >conftest.$ac_ext <<_ACEOF
28216/* confdefs.h. */
28217_ACEOF
28218cat confdefs.h >>conftest.$ac_ext
28219cat >>conftest.$ac_ext <<_ACEOF
28220/* end confdefs.h. */
28221
28222/* Override any gcc2 internal prototype to avoid an error. */
28223#ifdef __cplusplus
28224extern "C"
28225#endif
28226/* We use char because int might match the return type of a gcc2
28227 builtin and then its argument prototype would still apply. */
28228char connect ();
28229int
28230main ()
28231{
28232connect ();
28233 ;
28234 return 0;
28235}
28236_ACEOF
28237rm -f conftest.$ac_objext conftest$ac_exeext
28238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28239 (eval $ac_link) 2>conftest.er1
a848cd7e 28240 ac_status=$?
ac1cb8d3
VS
28241 grep -v '^ *+' conftest.er1 >conftest.err
28242 rm -f conftest.er1
28243 cat conftest.err >&5
a848cd7e
SC
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); } &&
0093c2fc 28246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28248 (eval $ac_try) 2>&5
28249 ac_status=$?
28250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); }; } &&
28252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28254 (eval $ac_try) 2>&5
28255 ac_status=$?
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); }; }; then
28258 ac_cv_lib_socket_connect=yes
28259else
28260 echo "$as_me: failed program was:" >&5
28261sed 's/^/| /' conftest.$ac_ext >&5
28262
28263ac_cv_lib_socket_connect=no
28264fi
ac1cb8d3
VS
28265rm -f conftest.err conftest.$ac_objext \
28266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28267LIBS=$ac_check_lib_save_LIBS
28268fi
28269echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28270echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28271if test $ac_cv_lib_socket_connect = yes; then
28272 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28273fi
28274
28275 fi
28276
28277 # Guillermo Gomez says -lposix is necessary on A/UX.
28278 echo "$as_me:$LINENO: checking for remove" >&5
28279echo $ECHO_N "checking for remove... $ECHO_C" >&6
28280if test "${ac_cv_func_remove+set}" = set; then
28281 echo $ECHO_N "(cached) $ECHO_C" >&6
28282else
28283 cat >conftest.$ac_ext <<_ACEOF
28284/* confdefs.h. */
28285_ACEOF
28286cat confdefs.h >>conftest.$ac_ext
28287cat >>conftest.$ac_ext <<_ACEOF
28288/* end confdefs.h. */
ac1cb8d3
VS
28289/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28291#define remove innocuous_remove
28292
a848cd7e
SC
28293/* System header to define __stub macros and hopefully few prototypes,
28294 which can conflict with char remove (); below.
28295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28296 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28297
a848cd7e
SC
28298#ifdef __STDC__
28299# include <limits.h>
28300#else
28301# include <assert.h>
28302#endif
ac1cb8d3
VS
28303
28304#undef remove
28305
a848cd7e
SC
28306/* Override any gcc2 internal prototype to avoid an error. */
28307#ifdef __cplusplus
28308extern "C"
28309{
28310#endif
28311/* We use char because int might match the return type of a gcc2
28312 builtin and then its argument prototype would still apply. */
28313char remove ();
28314/* The GNU C library defines this for functions which it implements
28315 to always fail with ENOSYS. Some functions are actually named
28316 something starting with __ and the normal name is an alias. */
28317#if defined (__stub_remove) || defined (__stub___remove)
28318choke me
28319#else
28320char (*f) () = remove;
28321#endif
28322#ifdef __cplusplus
28323}
28324#endif
28325
28326int
28327main ()
28328{
28329return f != remove;
28330 ;
28331 return 0;
28332}
28333_ACEOF
28334rm -f conftest.$ac_objext conftest$ac_exeext
28335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28336 (eval $ac_link) 2>conftest.er1
a848cd7e 28337 ac_status=$?
ac1cb8d3
VS
28338 grep -v '^ *+' conftest.er1 >conftest.err
28339 rm -f conftest.er1
28340 cat conftest.err >&5
a848cd7e
SC
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); } &&
0093c2fc 28343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345 (eval $ac_try) 2>&5
28346 ac_status=$?
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); }; } &&
28349 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28351 (eval $ac_try) 2>&5
28352 ac_status=$?
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); }; }; then
28355 ac_cv_func_remove=yes
28356else
28357 echo "$as_me: failed program was:" >&5
28358sed 's/^/| /' conftest.$ac_ext >&5
28359
28360ac_cv_func_remove=no
28361fi
ac1cb8d3
VS
28362rm -f conftest.err conftest.$ac_objext \
28363 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28364fi
28365echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28366echo "${ECHO_T}$ac_cv_func_remove" >&6
28367
28368 if test $ac_cv_func_remove = no; then
28369 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28370echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28371if test "${ac_cv_lib_posix_remove+set}" = set; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28373else
28374 ac_check_lib_save_LIBS=$LIBS
28375LIBS="-lposix $LIBS"
28376cat >conftest.$ac_ext <<_ACEOF
28377/* confdefs.h. */
28378_ACEOF
28379cat confdefs.h >>conftest.$ac_ext
28380cat >>conftest.$ac_ext <<_ACEOF
28381/* end confdefs.h. */
28382
28383/* Override any gcc2 internal prototype to avoid an error. */
28384#ifdef __cplusplus
28385extern "C"
28386#endif
28387/* We use char because int might match the return type of a gcc2
28388 builtin and then its argument prototype would still apply. */
28389char remove ();
28390int
28391main ()
28392{
28393remove ();
28394 ;
28395 return 0;
28396}
28397_ACEOF
28398rm -f conftest.$ac_objext conftest$ac_exeext
28399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28400 (eval $ac_link) 2>conftest.er1
a848cd7e 28401 ac_status=$?
ac1cb8d3
VS
28402 grep -v '^ *+' conftest.er1 >conftest.err
28403 rm -f conftest.er1
28404 cat conftest.err >&5
a848cd7e
SC
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); } &&
0093c2fc 28407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409 (eval $ac_try) 2>&5
28410 ac_status=$?
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; } &&
28413 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28415 (eval $ac_try) 2>&5
28416 ac_status=$?
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; }; then
28419 ac_cv_lib_posix_remove=yes
28420else
28421 echo "$as_me: failed program was:" >&5
28422sed 's/^/| /' conftest.$ac_ext >&5
28423
28424ac_cv_lib_posix_remove=no
28425fi
ac1cb8d3
VS
28426rm -f conftest.err conftest.$ac_objext \
28427 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28428LIBS=$ac_check_lib_save_LIBS
28429fi
28430echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28431echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28432if test $ac_cv_lib_posix_remove = yes; then
28433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28434fi
28435
28436 fi
28437
28438 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28439 echo "$as_me:$LINENO: checking for shmat" >&5
28440echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28441if test "${ac_cv_func_shmat+set}" = set; then
28442 echo $ECHO_N "(cached) $ECHO_C" >&6
28443else
28444 cat >conftest.$ac_ext <<_ACEOF
28445/* confdefs.h. */
28446_ACEOF
28447cat confdefs.h >>conftest.$ac_ext
28448cat >>conftest.$ac_ext <<_ACEOF
28449/* end confdefs.h. */
ac1cb8d3
VS
28450/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28452#define shmat innocuous_shmat
28453
a848cd7e
SC
28454/* System header to define __stub macros and hopefully few prototypes,
28455 which can conflict with char shmat (); below.
28456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28457 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28458
a848cd7e
SC
28459#ifdef __STDC__
28460# include <limits.h>
28461#else
28462# include <assert.h>
28463#endif
ac1cb8d3
VS
28464
28465#undef shmat
28466
a848cd7e
SC
28467/* Override any gcc2 internal prototype to avoid an error. */
28468#ifdef __cplusplus
28469extern "C"
28470{
28471#endif
28472/* We use char because int might match the return type of a gcc2
28473 builtin and then its argument prototype would still apply. */
28474char shmat ();
28475/* The GNU C library defines this for functions which it implements
28476 to always fail with ENOSYS. Some functions are actually named
28477 something starting with __ and the normal name is an alias. */
28478#if defined (__stub_shmat) || defined (__stub___shmat)
28479choke me
28480#else
28481char (*f) () = shmat;
28482#endif
28483#ifdef __cplusplus
28484}
28485#endif
28486
28487int
28488main ()
28489{
28490return f != shmat;
28491 ;
28492 return 0;
28493}
28494_ACEOF
28495rm -f conftest.$ac_objext conftest$ac_exeext
28496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28497 (eval $ac_link) 2>conftest.er1
a848cd7e 28498 ac_status=$?
ac1cb8d3
VS
28499 grep -v '^ *+' conftest.er1 >conftest.err
28500 rm -f conftest.er1
28501 cat conftest.err >&5
a848cd7e
SC
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); } &&
0093c2fc 28504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28506 (eval $ac_try) 2>&5
28507 ac_status=$?
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); }; } &&
28510 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28512 (eval $ac_try) 2>&5
28513 ac_status=$?
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); }; }; then
28516 ac_cv_func_shmat=yes
28517else
28518 echo "$as_me: failed program was:" >&5
28519sed 's/^/| /' conftest.$ac_ext >&5
28520
28521ac_cv_func_shmat=no
28522fi
ac1cb8d3
VS
28523rm -f conftest.err conftest.$ac_objext \
28524 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28525fi
28526echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28527echo "${ECHO_T}$ac_cv_func_shmat" >&6
28528
28529 if test $ac_cv_func_shmat = no; then
28530 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28531echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28532if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28533 echo $ECHO_N "(cached) $ECHO_C" >&6
28534else
28535 ac_check_lib_save_LIBS=$LIBS
28536LIBS="-lipc $LIBS"
28537cat >conftest.$ac_ext <<_ACEOF
28538/* confdefs.h. */
28539_ACEOF
28540cat confdefs.h >>conftest.$ac_ext
28541cat >>conftest.$ac_ext <<_ACEOF
28542/* end confdefs.h. */
28543
28544/* Override any gcc2 internal prototype to avoid an error. */
28545#ifdef __cplusplus
28546extern "C"
28547#endif
28548/* We use char because int might match the return type of a gcc2
28549 builtin and then its argument prototype would still apply. */
28550char shmat ();
28551int
28552main ()
28553{
28554shmat ();
28555 ;
28556 return 0;
28557}
28558_ACEOF
28559rm -f conftest.$ac_objext conftest$ac_exeext
28560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28561 (eval $ac_link) 2>conftest.er1
a848cd7e 28562 ac_status=$?
ac1cb8d3
VS
28563 grep -v '^ *+' conftest.er1 >conftest.err
28564 rm -f conftest.er1
28565 cat conftest.err >&5
a848cd7e
SC
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); } &&
0093c2fc 28568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; } &&
28574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576 (eval $ac_try) 2>&5
28577 ac_status=$?
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; }; then
28580 ac_cv_lib_ipc_shmat=yes
28581else
28582 echo "$as_me: failed program was:" >&5
28583sed 's/^/| /' conftest.$ac_ext >&5
28584
28585ac_cv_lib_ipc_shmat=no
28586fi
ac1cb8d3
VS
28587rm -f conftest.err conftest.$ac_objext \
28588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28589LIBS=$ac_check_lib_save_LIBS
28590fi
28591echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28592echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28593if test $ac_cv_lib_ipc_shmat = yes; then
28594 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28595fi
28596
28597 fi
28598 fi
28599
28600 # Check for libraries that X11R6 Xt/Xaw programs need.
28601 ac_save_LDFLAGS=$LDFLAGS
28602 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28603 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28604 # check for ICE first), but we must link in the order -lSM -lICE or
28605 # we get undefined symbols. So assume we have SM if we have ICE.
28606 # These have to be linked with before -lX11, unlike the other
28607 # libraries we check for below, so use a different variable.
28608 # John Interrante, Karl Berry
28609 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28610echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28611if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28612 echo $ECHO_N "(cached) $ECHO_C" >&6
28613else
28614 ac_check_lib_save_LIBS=$LIBS
28615LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28616cat >conftest.$ac_ext <<_ACEOF
28617/* confdefs.h. */
28618_ACEOF
28619cat confdefs.h >>conftest.$ac_ext
28620cat >>conftest.$ac_ext <<_ACEOF
28621/* end confdefs.h. */
28622
28623/* Override any gcc2 internal prototype to avoid an error. */
28624#ifdef __cplusplus
28625extern "C"
28626#endif
28627/* We use char because int might match the return type of a gcc2
28628 builtin and then its argument prototype would still apply. */
28629char IceConnectionNumber ();
28630int
28631main ()
28632{
28633IceConnectionNumber ();
28634 ;
28635 return 0;
28636}
28637_ACEOF
28638rm -f conftest.$ac_objext conftest$ac_exeext
28639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28640 (eval $ac_link) 2>conftest.er1
a848cd7e 28641 ac_status=$?
ac1cb8d3
VS
28642 grep -v '^ *+' conftest.er1 >conftest.err
28643 rm -f conftest.er1
28644 cat conftest.err >&5
a848cd7e
SC
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } &&
0093c2fc 28647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28649 (eval $ac_try) 2>&5
28650 ac_status=$?
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); }; } &&
28653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28656 ac_status=$?
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; }; then
28659 ac_cv_lib_ICE_IceConnectionNumber=yes
28660else
28661 echo "$as_me: failed program was:" >&5
28662sed 's/^/| /' conftest.$ac_ext >&5
28663
28664ac_cv_lib_ICE_IceConnectionNumber=no
28665fi
ac1cb8d3
VS
28666rm -f conftest.err conftest.$ac_objext \
28667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28668LIBS=$ac_check_lib_save_LIBS
28669fi
28670echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28671echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28672if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28673 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28674fi
28675
28676 LDFLAGS=$ac_save_LDFLAGS
28677
28678fi
28679
28680
28681 if test "$no_x" = "yes"; then
89d90d6d
VZ
28682 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28683echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28684 { (exit 1); exit 1; }; }
a848cd7e
SC
28685 fi
28686
74b84332
VS
28687 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28688 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28689 AFMINSTALL=afminstall
28690 COMPILED_X_PROGRAM=0
28691
74b84332
VS
28692 fi
28693
28694 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28695 if test "$wxUSE_NANOX" = "yes"; then
28696 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28697echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28698 if test "x$MICROWIN" = x ; then
28699 echo "$as_me:$LINENO: result: not found" >&5
28700echo "${ECHO_T}not found" >&6
28701 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28702echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28703 { (exit 1); exit 1; }; }
28704 else
28705 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28706echo "${ECHO_T}$MICROWIN" >&6
28707 cat >>confdefs.h <<\_ACEOF
28708#define wxUSE_NANOX 1
28709_ACEOF
28710
28711 fi
28712 fi
28713
28714 if test "$wxUSE_UNICODE" = "yes"; then
28715
28716 succeeded=no
28717
28718 if test -z "$PKG_CONFIG"; then
28719 # Extract the first word of "pkg-config", so it can be a program name with args.
28720set dummy pkg-config; ac_word=$2
28721echo "$as_me:$LINENO: checking for $ac_word" >&5
28722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28723if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28724 echo $ECHO_N "(cached) $ECHO_C" >&6
28725else
28726 case $PKG_CONFIG in
28727 [\\/]* | ?:[\\/]*)
28728 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28729 ;;
28730 *)
28731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28732for as_dir in $PATH
28733do
28734 IFS=$as_save_IFS
28735 test -z "$as_dir" && as_dir=.
28736 for ac_exec_ext in '' $ac_executable_extensions; do
28737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28738 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28740 break 2
28741 fi
28742done
28743done
28744
28745 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28746 ;;
28747esac
28748fi
28749PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28750
28751if test -n "$PKG_CONFIG"; then
28752 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28753echo "${ECHO_T}$PKG_CONFIG" >&6
28754else
28755 echo "$as_me:$LINENO: result: no" >&5
28756echo "${ECHO_T}no" >&6
28757fi
28758
28759 fi
28760
28761 if test "$PKG_CONFIG" = "no" ; then
28762 echo "*** The pkg-config script could not be found. Make sure it is"
28763 echo "*** in your path, or set the PKG_CONFIG environment variable"
28764 echo "*** to the full path to pkg-config."
28765 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28766 else
28767 PKG_CONFIG_MIN_VERSION=0.9.0
28768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28769 echo "$as_me:$LINENO: checking for pangox" >&5
28770echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28771
28772 if $PKG_CONFIG --exists "pangox" ; then
28773 echo "$as_me:$LINENO: result: yes" >&5
28774echo "${ECHO_T}yes" >&6
28775 succeeded=yes
28776
28777 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28778echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28779 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28780 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28781echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28782
28783 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28784echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28785 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28786 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28787echo "${ECHO_T}$PANGOX_LIBS" >&6
28788 else
28789 PANGOX_CFLAGS=""
28790 PANGOX_LIBS=""
28791 ## If we have a custom action on failure, don't print errors, but
28792 ## do set a variable so people can do so.
28793 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28794
28795 fi
28796
28797
28798
28799 else
28800 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28801 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28802 fi
28803 fi
28804
28805 if test $succeeded = yes; then
28806
28807 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28808 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28809
28810 else
28811
28812 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28813echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28814 { (exit 1); exit 1; }; }
28815
28816
28817 fi
28818
28819
28820 succeeded=no
28821
28822 if test -z "$PKG_CONFIG"; then
28823 # Extract the first word of "pkg-config", so it can be a program name with args.
28824set dummy pkg-config; ac_word=$2
28825echo "$as_me:$LINENO: checking for $ac_word" >&5
28826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28827if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28828 echo $ECHO_N "(cached) $ECHO_C" >&6
28829else
28830 case $PKG_CONFIG in
28831 [\\/]* | ?:[\\/]*)
28832 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28833 ;;
28834 *)
28835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28836for as_dir in $PATH
28837do
28838 IFS=$as_save_IFS
28839 test -z "$as_dir" && as_dir=.
28840 for ac_exec_ext in '' $ac_executable_extensions; do
28841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28842 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28844 break 2
28845 fi
28846done
28847done
28848
28849 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28850 ;;
28851esac
28852fi
28853PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28854
28855if test -n "$PKG_CONFIG"; then
28856 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28857echo "${ECHO_T}$PKG_CONFIG" >&6
28858else
28859 echo "$as_me:$LINENO: result: no" >&5
28860echo "${ECHO_T}no" >&6
28861fi
28862
28863 fi
28864
28865 if test "$PKG_CONFIG" = "no" ; then
28866 echo "*** The pkg-config script could not be found. Make sure it is"
28867 echo "*** in your path, or set the PKG_CONFIG environment variable"
28868 echo "*** to the full path to pkg-config."
28869 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28870 else
28871 PKG_CONFIG_MIN_VERSION=0.9.0
28872 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28873 echo "$as_me:$LINENO: checking for pangoft2" >&5
28874echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28875
28876 if $PKG_CONFIG --exists "pangoft2" ; then
28877 echo "$as_me:$LINENO: result: yes" >&5
28878echo "${ECHO_T}yes" >&6
28879 succeeded=yes
28880
28881 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28882echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28883 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28884 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28885echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28886
28887 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28888echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28889 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28890 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28891echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28892 else
28893 PANGOFT2_CFLAGS=""
28894 PANGOFT2_LIBS=""
28895 ## If we have a custom action on failure, don't print errors, but
28896 ## do set a variable so people can do so.
28897 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28898
28899 fi
28900
28901
28902
28903 else
28904 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28905 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28906 fi
28907 fi
28908
28909 if test $succeeded = yes; then
28910
28911 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28912 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28913
28914 else
28915
28916 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28917echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28918 wxUSE_PRINTING_ARCHITECTURE="no"
28919
28920
28921 fi
28922
28923
28924 succeeded=no
28925
28926 if test -z "$PKG_CONFIG"; then
28927 # Extract the first word of "pkg-config", so it can be a program name with args.
28928set dummy pkg-config; ac_word=$2
28929echo "$as_me:$LINENO: checking for $ac_word" >&5
28930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28931if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28932 echo $ECHO_N "(cached) $ECHO_C" >&6
28933else
28934 case $PKG_CONFIG in
28935 [\\/]* | ?:[\\/]*)
28936 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28937 ;;
28938 *)
28939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28940for as_dir in $PATH
28941do
28942 IFS=$as_save_IFS
28943 test -z "$as_dir" && as_dir=.
28944 for ac_exec_ext in '' $ac_executable_extensions; do
28945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28946 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28948 break 2
28949 fi
28950done
28951done
28952
28953 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28954 ;;
28955esac
28956fi
28957PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28958
28959if test -n "$PKG_CONFIG"; then
28960 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28961echo "${ECHO_T}$PKG_CONFIG" >&6
28962else
28963 echo "$as_me:$LINENO: result: no" >&5
28964echo "${ECHO_T}no" >&6
28965fi
28966
28967 fi
28968
28969 if test "$PKG_CONFIG" = "no" ; then
28970 echo "*** The pkg-config script could not be found. Make sure it is"
28971 echo "*** in your path, or set the PKG_CONFIG environment variable"
28972 echo "*** to the full path to pkg-config."
28973 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28974 else
28975 PKG_CONFIG_MIN_VERSION=0.9.0
28976 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28977 echo "$as_me:$LINENO: checking for pangoxft" >&5
28978echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28979
28980 if $PKG_CONFIG --exists "pangoxft" ; then
28981 echo "$as_me:$LINENO: result: yes" >&5
28982echo "${ECHO_T}yes" >&6
28983 succeeded=yes
28984
28985 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28986echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28987 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28988 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28989echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28990
28991 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28992echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28993 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28994 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28995echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28996 else
28997 PANGOXFT_CFLAGS=""
28998 PANGOXFT_LIBS=""
28999 ## If we have a custom action on failure, don't print errors, but
29000 ## do set a variable so people can do so.
29001 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29002
29003 fi
29004
29005
29006
29007 else
29008 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29009 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29010 fi
29011 fi
29012
29013 if test $succeeded = yes; then
29014
4ae1af05
MB
29015 cat >>confdefs.h <<\_ACEOF
29016#define HAVE_PANGO_XFT 1
29017_ACEOF
29018
a848cd7e
SC
29019 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
29020 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29021
29022 else
29023
29024 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29025echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29026
29027
29028 fi
29029
304205f1
VS
29030 save_CFLAGS="$CFLAGS"
29031 save_LIBS="$LIBS"
29032 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
29033 LIBS="$LIBS $PANGOX_LIBS"
29034
29035for ac_func in pango_font_family_is_monospace
29036do
29037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29038echo "$as_me:$LINENO: checking for $ac_func" >&5
29039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29040if eval "test \"\${$as_ac_var+set}\" = set"; then
29041 echo $ECHO_N "(cached) $ECHO_C" >&6
29042else
29043 cat >conftest.$ac_ext <<_ACEOF
29044/* confdefs.h. */
29045_ACEOF
29046cat confdefs.h >>conftest.$ac_ext
29047cat >>conftest.$ac_ext <<_ACEOF
29048/* end confdefs.h. */
29049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29051#define $ac_func innocuous_$ac_func
29052
29053/* System header to define __stub macros and hopefully few prototypes,
29054 which can conflict with char $ac_func (); below.
29055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29056 <limits.h> exists even on freestanding compilers. */
29057
29058#ifdef __STDC__
29059# include <limits.h>
29060#else
29061# include <assert.h>
29062#endif
29063
29064#undef $ac_func
29065
29066/* Override any gcc2 internal prototype to avoid an error. */
29067#ifdef __cplusplus
29068extern "C"
29069{
29070#endif
29071/* We use char because int might match the return type of a gcc2
29072 builtin and then its argument prototype would still apply. */
29073char $ac_func ();
29074/* The GNU C library defines this for functions which it implements
29075 to always fail with ENOSYS. Some functions are actually named
29076 something starting with __ and the normal name is an alias. */
29077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29078choke me
29079#else
29080char (*f) () = $ac_func;
29081#endif
29082#ifdef __cplusplus
29083}
29084#endif
29085
29086int
29087main ()
29088{
29089return f != $ac_func;
29090 ;
29091 return 0;
29092}
29093_ACEOF
29094rm -f conftest.$ac_objext conftest$ac_exeext
29095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29096 (eval $ac_link) 2>conftest.er1
29097 ac_status=$?
29098 grep -v '^ *+' conftest.er1 >conftest.err
29099 rm -f conftest.er1
29100 cat conftest.err >&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } &&
0093c2fc 29103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
29104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105 (eval $ac_try) 2>&5
29106 ac_status=$?
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; } &&
29109 { ac_try='test -s conftest$ac_exeext'
29110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111 (eval $ac_try) 2>&5
29112 ac_status=$?
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); }; }; then
29115 eval "$as_ac_var=yes"
29116else
29117 echo "$as_me: failed program was:" >&5
29118sed 's/^/| /' conftest.$ac_ext >&5
29119
29120eval "$as_ac_var=no"
29121fi
29122rm -f conftest.err conftest.$ac_objext \
29123 conftest$ac_exeext conftest.$ac_ext
29124fi
29125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29126echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29127if test `eval echo '${'$as_ac_var'}'` = yes; then
29128 cat >>confdefs.h <<_ACEOF
29129#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29130_ACEOF
29131
29132fi
29133done
29134
29135 CFLAGS="$save_CFLAGS"
29136 LIBS="$save_LIBS"
a848cd7e
SC
29137 fi
29138
29139 wxUSE_UNIVERSAL="yes"
29140
29141 if test "$wxUSE_NANOX" = "yes"; then
29142 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29143 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"
29144 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29145 else
29146 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29147 fi
29148
a848cd7e
SC
29149 TOOLKIT=X11
29150 GUIDIST=X11_DIST
29151 fi
29152
29153 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29154 if test "$wxUSE_UNICODE" = "yes"; then
29155 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29156echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29157 { (exit 1); exit 1; }; }
29158 fi
29159
74b84332
VS
29160 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29161echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29162
74b84332
VS
29163ac_find_includes=
29164for ac_dir in $SEARCH_INCLUDE /usr/include;
29165 do
29166 if test -f "$ac_dir/Xm/Xm.h"; then
29167 ac_find_includes=$ac_dir
29168 break
29169 fi
29170 done
a848cd7e 29171
74b84332
VS
29172 if test "$ac_find_includes" != "" ; then
29173 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29174echo "${ECHO_T}found in $ac_find_includes" >&6
29175
29176 if test "x$ac_find_includes" = "x/usr/include"; then
29177 ac_path_to_include=""
29178 else
29179 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29180 result=$?
29181 if test $result = 0; then
29182 ac_path_to_include=""
29183 else
29184 ac_path_to_include=" -I$ac_find_includes"
29185 fi
a848cd7e
SC
29186 fi
29187
74b84332
VS
29188 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29189 else
e051b34e
MW
29190 save_CFLAGS=$CFLAGS
29191 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29192
74b84332 29193 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29194/* confdefs.h. */
29195_ACEOF
29196cat confdefs.h >>conftest.$ac_ext
29197cat >>conftest.$ac_ext <<_ACEOF
29198/* end confdefs.h. */
29199
74b84332
VS
29200 #include <Xm/Xm.h>
29201
a848cd7e
SC
29202int
29203main ()
29204{
29205
74b84332
VS
29206 int version;
29207 version = xmUseVersion;
29208
a848cd7e
SC
29209 ;
29210 return 0;
29211}
29212_ACEOF
74b84332
VS
29213rm -f conftest.$ac_objext
29214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29215 (eval $ac_compile) 2>conftest.er1
a848cd7e 29216 ac_status=$?
ac1cb8d3
VS
29217 grep -v '^ *+' conftest.er1 >conftest.err
29218 rm -f conftest.er1
29219 cat conftest.err >&5
a848cd7e
SC
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); } &&
0093c2fc 29222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224 (eval $ac_try) 2>&5
29225 ac_status=$?
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; } &&
74b84332 29228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230 (eval $ac_try) 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; }; then
74b84332
VS
29234
29235 echo "$as_me:$LINENO: result: found in default search path" >&5
29236echo "${ECHO_T}found in default search path" >&6
29237 COMPILED_X_PROGRAM=1
29238
a848cd7e
SC
29239else
29240 echo "$as_me: failed program was:" >&5
29241sed 's/^/| /' conftest.$ac_ext >&5
29242
a848cd7e 29243
74b84332
VS
29244 echo "$as_me:$LINENO: result: no" >&5
29245echo "${ECHO_T}no" >&6
e051b34e
MW
29246 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29247echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29248 { (exit 1); exit 1; }; }
a848cd7e 29249
a848cd7e 29250
a848cd7e 29251fi
74b84332 29252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29253
29254 CFLAGS=$save_CFLAGS
74b84332
VS
29255 fi
29256
0ad5d837
VZ
29257
29258 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29259echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29260
0ad5d837
VZ
29261 ac_find_libraries=
29262 for ac_dir in $SEARCH_LIB;
74b84332 29263 do
3eca31dc 29264 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29265 if test -f "$ac_dir/libXm.$ac_extension"; then
29266 ac_find_libraries=$ac_dir
29267 break 2
a848cd7e 29268 fi
74b84332
VS
29269 done
29270 done
a848cd7e 29271
0ad5d837
VZ
29272
29273 if test "x$ac_find_libraries" != "x" ; then
29274 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29275echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29276
74b84332 29277
0ad5d837 29278 if test "$ac_find_libraries" = "default location"; then
74b84332 29279 ac_path_to_link=""
a848cd7e 29280 else
0ad5d837
VZ
29281 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29282 result=$?
29283 if test $result = 0; then
29284 ac_path_to_link=""
29285 else
29286 ac_path_to_link=" -L$ac_find_libraries"
29287 fi
74b84332
VS
29288 fi
29289
0ad5d837
VZ
29290 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29291 else
29292 save_CFLAGS=$CFLAGS
29293 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
29294 save_LIBS="$LIBS"
29295 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29296
0ad5d837 29297 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29298/* confdefs.h. */
29299_ACEOF
29300cat confdefs.h >>conftest.$ac_ext
29301cat >>conftest.$ac_ext <<_ACEOF
29302/* end confdefs.h. */
29303
0ad5d837 29304 #include <Xm/Xm.h>
74b84332 29305
a848cd7e
SC
29306int
29307main ()
29308{
74b84332 29309
0ad5d837
VZ
29310 int version;
29311 version = xmUseVersion;
74b84332 29312
a848cd7e
SC
29313 ;
29314 return 0;
29315}
29316_ACEOF
0ad5d837
VZ
29317rm -f conftest.$ac_objext conftest$ac_exeext
29318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29319 (eval $ac_link) 2>conftest.er1
a848cd7e 29320 ac_status=$?
ac1cb8d3
VS
29321 grep -v '^ *+' conftest.er1 >conftest.err
29322 rm -f conftest.er1
29323 cat conftest.err >&5
a848cd7e
SC
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } &&
0093c2fc 29326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328 (eval $ac_try) 2>&5
29329 ac_status=$?
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; } &&
0ad5d837 29332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29334 (eval $ac_try) 2>&5
29335 ac_status=$?
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); }; }; then
74b84332 29338
0ad5d837 29339 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29340echo "${ECHO_T}found in default search path" >&6
0ad5d837 29341 COMPILED_X_PROGRAM=1
74b84332 29342
a848cd7e
SC
29343else
29344 echo "$as_me: failed program was:" >&5
29345sed 's/^/| /' conftest.$ac_ext >&5
29346
74b84332 29347
6f9cf1e6 29348 echo "$as_me:$LINENO: result: no" >&5
74b84332 29349echo "${ECHO_T}no" >&6
6f9cf1e6 29350 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29351echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29352 { (exit 1); exit 1; }; }
29353
29354
29355fi
0ad5d837
VZ
29356rm -f conftest.err conftest.$ac_objext \
29357 conftest$ac_exeext conftest.$ac_ext
74b84332 29358
0ad5d837 29359 CFLAGS=$save_CFLAGS
6f9cf1e6 29360 LIBS="$save_LIBS"
74b84332
VS
29361 fi
29362
29363 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29364echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29365 libp_link=""
29366 libsm_ice_link=""
29367 libs_found=0
29368 for libp in "" " -lXp"; do
29369 if test "$libs_found" = "0"; then
29370 for libsm_ice in "" " -lSM -lICE"; do
29371 if test "$libs_found" = "0"; then
29372 save_LIBS="$LIBS"
29373 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29374 save_CFLAGS=$CFLAGS
29375 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29376
29377 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29378/* confdefs.h. */
29379_ACEOF
29380cat confdefs.h >>conftest.$ac_ext
29381cat >>conftest.$ac_ext <<_ACEOF
29382/* end confdefs.h. */
29383
74b84332
VS
29384 #include <Xm/Xm.h>
29385 #include <Xm/List.h>
29386
a848cd7e
SC
29387int
29388main ()
29389{
74b84332
VS
29390
29391 XmString string = NULL;
29392 Widget w = NULL;
29393 int position = 0;
29394 XmListAddItem(w, string, position);
29395
a848cd7e
SC
29396 ;
29397 return 0;
29398}
29399_ACEOF
29400rm -f conftest.$ac_objext conftest$ac_exeext
29401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29402 (eval $ac_link) 2>conftest.er1
a848cd7e 29403 ac_status=$?
ac1cb8d3
VS
29404 grep -v '^ *+' conftest.er1 >conftest.err
29405 rm -f conftest.er1
29406 cat conftest.err >&5
a848cd7e
SC
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); } &&
0093c2fc 29409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29412 ac_status=$?
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; } &&
29415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417 (eval $ac_try) 2>&5
29418 ac_status=$?
29419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420 (exit $ac_status); }; }; then
29421
29422 libp_link="$libp"
29423 libsm_ice_link="$libsm_ice"
29424 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29425echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29426 libs_found=1
29427
29428else
29429 echo "$as_me: failed program was:" >&5
29430sed 's/^/| /' conftest.$ac_ext >&5
29431
29432
29433
29434fi
ac1cb8d3
VS
29435rm -f conftest.err conftest.$ac_objext \
29436 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29437
29438 LIBS="$save_LIBS"
29439 CFLAGS=$save_CFLAGS
29440 fi
29441 done
29442 fi
29443 done
29444
29445 if test "$libs_found" = "0"; then
29446 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29447echo "${ECHO_T}can't find the right libraries" >&6
29448 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29449echo "$as_me: error: can't link a simple motif program" >&2;}
29450 { (exit 1); exit 1; }; }
29451 fi
29452
62fa8b3a
MW
29453 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29454echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29455if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29456 echo $ECHO_N "(cached) $ECHO_C" >&6
29457else
29458 ac_check_lib_save_LIBS=$LIBS
29459LIBS="-lSgm $LIBS"
29460cat >conftest.$ac_ext <<_ACEOF
29461/* confdefs.h. */
29462_ACEOF
29463cat confdefs.h >>conftest.$ac_ext
29464cat >>conftest.$ac_ext <<_ACEOF
29465/* end confdefs.h. */
29466
29467/* Override any gcc2 internal prototype to avoid an error. */
29468#ifdef __cplusplus
29469extern "C"
29470#endif
29471/* We use char because int might match the return type of a gcc2
29472 builtin and then its argument prototype would still apply. */
29473char SgCreateList ();
29474int
29475main ()
29476{
29477SgCreateList ();
29478 ;
29479 return 0;
29480}
29481_ACEOF
29482rm -f conftest.$ac_objext conftest$ac_exeext
29483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29484 (eval $ac_link) 2>conftest.er1
29485 ac_status=$?
29486 grep -v '^ *+' conftest.er1 >conftest.err
29487 rm -f conftest.er1
29488 cat conftest.err >&5
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); } &&
0093c2fc 29491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493 (eval $ac_try) 2>&5
29494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } &&
29497 { ac_try='test -s conftest$ac_exeext'
29498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499 (eval $ac_try) 2>&5
29500 ac_status=$?
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); }; }; then
29503 ac_cv_lib_Sgm_SgCreateList=yes
29504else
29505 echo "$as_me: failed program was:" >&5
29506sed 's/^/| /' conftest.$ac_ext >&5
29507
29508ac_cv_lib_Sgm_SgCreateList=no
29509fi
29510rm -f conftest.err conftest.$ac_objext \
29511 conftest$ac_exeext conftest.$ac_ext
29512LIBS=$ac_check_lib_save_LIBS
29513fi
29514echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29515echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29516if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29517 libsgm_link=" -lSgm"
29518fi
29519
29520
a848cd7e
SC
29521 save_CFLAGS=$CFLAGS
29522 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 29523
a848cd7e
SC
29524 echo "$as_me:$LINENO: checking for Motif 2" >&5
29525echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29526if test "${wx_cv_lib_motif2+set}" = set; then
29527 echo $ECHO_N "(cached) $ECHO_C" >&6
29528else
29529 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29530/* confdefs.h. */
29531_ACEOF
29532cat confdefs.h >>conftest.$ac_ext
29533cat >>conftest.$ac_ext <<_ACEOF
29534/* end confdefs.h. */
29535
0ad5d837 29536 #include <Xm/Xm.h>
a848cd7e
SC
29537
29538int
29539main ()
29540{
29541
0ad5d837
VZ
29542 #if XmVersion < 2000
29543 Not Motif 2
29544 #endif
a848cd7e
SC
29545
29546 ;
29547 return 0;
29548}
29549_ACEOF
29550rm -f conftest.$ac_objext
29551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29552 (eval $ac_compile) 2>conftest.er1
a848cd7e 29553 ac_status=$?
ac1cb8d3
VS
29554 grep -v '^ *+' conftest.er1 >conftest.err
29555 rm -f conftest.er1
29556 cat conftest.err >&5
a848cd7e
SC
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } &&
0093c2fc 29559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561 (eval $ac_try) 2>&5
29562 ac_status=$?
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; } &&
29565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29567 (eval $ac_try) 2>&5
29568 ac_status=$?
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
0ad5d837 29571 wx_cv_lib_motif2="yes"
a848cd7e
SC
29572else
29573 echo "$as_me: failed program was:" >&5
29574sed 's/^/| /' conftest.$ac_ext >&5
29575
0ad5d837
VZ
29576wx_cv_lib_motif2="no"
29577fi
29578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29579fi
29580echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29581echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29582 if test "$wx_cv_lib_motif2" = "yes"; then
29583 cat >>confdefs.h <<\_ACEOF
29584#define __WXMOTIF20__ 1
29585_ACEOF
a848cd7e 29586
0ad5d837
VZ
29587 else
29588 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29589#define __WXMOTIF20__ 0
29590_ACEOF
29591
0ad5d837 29592 fi
2113bc77
MW
29593
29594 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29595echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29596if test "${wx_cv_lib_lesstif+set}" = set; then
29597 echo $ECHO_N "(cached) $ECHO_C" >&6
29598else
29599 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29600/* confdefs.h. */
29601_ACEOF
29602cat confdefs.h >>conftest.$ac_ext
29603cat >>conftest.$ac_ext <<_ACEOF
29604/* end confdefs.h. */
29605
0ad5d837 29606 #include <Xm/Xm.h>
2113bc77
MW
29607
29608int
29609main ()
29610{
29611
0ad5d837
VZ
29612 #if !defined(LesstifVersion) || LesstifVersion <= 0
29613 Not Lesstif
29614 #endif
2113bc77
MW
29615
29616 ;
29617 return 0;
29618}
29619_ACEOF
29620rm -f conftest.$ac_objext
29621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29622 (eval $ac_compile) 2>conftest.er1
29623 ac_status=$?
29624 grep -v '^ *+' conftest.er1 >conftest.err
29625 rm -f conftest.er1
29626 cat conftest.err >&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); } &&
0093c2fc 29629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29631 (eval $ac_try) 2>&5
29632 ac_status=$?
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); }; } &&
29635 { ac_try='test -s conftest.$ac_objext'
29636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29637 (eval $ac_try) 2>&5
29638 ac_status=$?
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); }; }; then
0ad5d837 29641 wx_cv_lib_lesstif="yes"
2113bc77
MW
29642else
29643 echo "$as_me: failed program was:" >&5
29644sed 's/^/| /' conftest.$ac_ext >&5
29645
0ad5d837
VZ
29646wx_cv_lib_lesstif="no"
29647fi
29648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29649
0ad5d837
VZ
29650fi
29651echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29652echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29653 if test "$wx_cv_lib_lesstif" = "yes"; then
29654 cat >>confdefs.h <<\_ACEOF
29655#define __WXLESSTIF__ 1
29656_ACEOF
29657
29658 else
29659 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29660#define __WXLESSTIF__ 0
29661_ACEOF
29662
0ad5d837 29663 fi
2113bc77 29664
a848cd7e
SC
29665 CFLAGS=$save_CFLAGS
29666
62fa8b3a 29667 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29668 TOOLKIT=MOTIF
29669 GUIDIST=MOTIF_DIST
29670 fi
29671
74b84332 29672 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29673 if test "$wxUSE_LIBXPM" = "sys"; then
29674 echo "$as_me:$LINENO: checking for Xpm library" >&5
29675echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29676
0ad5d837
VZ
29677 ac_find_libraries=
29678 for ac_dir in $SEARCH_LIB;
a848cd7e 29679 do
3eca31dc 29680 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29681 if test -f "$ac_dir/libXpm.$ac_extension"; then
29682 ac_find_libraries=$ac_dir
29683 break 2
29684 fi
29685 done
29686 done
29687
29688 if test "$ac_find_libraries" != "" ; then
29689
0ad5d837 29690 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29691 ac_path_to_link=""
29692 else
0ad5d837
VZ
29693 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29694 result=$?
29695 if test $result = 0; then
29696 ac_path_to_link=""
29697 else
29698 ac_path_to_link=" -L$ac_find_libraries"
29699 fi
a848cd7e
SC
29700 fi
29701
29702 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29703 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29704echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29705
29706 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29707echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29708if test "${wx_cv_x11_xpm_h+set}" = set; then
29709 echo $ECHO_N "(cached) $ECHO_C" >&6
29710else
29711
29712 save_CFLAGS=$CFLAGS
29713 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29714
29715 cat >conftest.$ac_ext <<_ACEOF
29716/* confdefs.h. */
29717_ACEOF
29718cat confdefs.h >>conftest.$ac_ext
29719cat >>conftest.$ac_ext <<_ACEOF
29720/* end confdefs.h. */
29721
29722 #include <X11/xpm.h>
29723
29724int
29725main ()
29726{
29727
29728 int version;
29729 version = XpmLibraryVersion();
29730
29731 ;
29732 return 0;
29733}
29734_ACEOF
29735rm -f conftest.$ac_objext
29736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29737 (eval $ac_compile) 2>conftest.er1
a848cd7e 29738 ac_status=$?
ac1cb8d3
VS
29739 grep -v '^ *+' conftest.er1 >conftest.err
29740 rm -f conftest.er1
29741 cat conftest.err >&5
a848cd7e
SC
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); } &&
0093c2fc 29744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29746 (eval $ac_try) 2>&5
29747 ac_status=$?
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); }; } &&
29750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29752 (eval $ac_try) 2>&5
29753 ac_status=$?
29754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755 (exit $ac_status); }; }; then
29756 wx_cv_x11_xpm_h=yes
29757else
29758 echo "$as_me: failed program was:" >&5
29759sed 's/^/| /' conftest.$ac_ext >&5
29760
29761wx_cv_x11_xpm_h=no
29762
29763fi
ac1cb8d3 29764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29765
29766 CFLAGS=$save_CFLAGS
29767
29768
29769fi
29770echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29771echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29772
29773 if test $wx_cv_x11_xpm_h = "yes"; then
29774 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29775 cat >>confdefs.h <<\_ACEOF
29776#define wxHAVE_LIB_XPM 1
29777_ACEOF
29778
29779 else
29780 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29781echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29782 fi
29783 fi
29784
29785 fi
29786
29787 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29788echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29789if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29791else
29792 ac_check_lib_save_LIBS=$LIBS
29793LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29794cat >conftest.$ac_ext <<_ACEOF
29795/* confdefs.h. */
29796_ACEOF
29797cat confdefs.h >>conftest.$ac_ext
29798cat >>conftest.$ac_ext <<_ACEOF
29799/* end confdefs.h. */
29800
29801/* Override any gcc2 internal prototype to avoid an error. */
29802#ifdef __cplusplus
29803extern "C"
29804#endif
29805/* We use char because int might match the return type of a gcc2
29806 builtin and then its argument prototype would still apply. */
29807char XShapeQueryExtension ();
29808int
29809main ()
29810{
29811XShapeQueryExtension ();
29812 ;
29813 return 0;
29814}
29815_ACEOF
29816rm -f conftest.$ac_objext conftest$ac_exeext
29817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29818 (eval $ac_link) 2>conftest.er1
a848cd7e 29819 ac_status=$?
ac1cb8d3
VS
29820 grep -v '^ *+' conftest.er1 >conftest.err
29821 rm -f conftest.er1
29822 cat conftest.err >&5
a848cd7e
SC
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
0093c2fc 29825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827 (eval $ac_try) 2>&5
29828 ac_status=$?
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); }; } &&
29831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833 (eval $ac_try) 2>&5
29834 ac_status=$?
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; }; then
29837 ac_cv_lib_Xext_XShapeQueryExtension=yes
29838else
29839 echo "$as_me: failed program was:" >&5
29840sed 's/^/| /' conftest.$ac_ext >&5
29841
29842ac_cv_lib_Xext_XShapeQueryExtension=no
29843fi
ac1cb8d3
VS
29844rm -f conftest.err conftest.$ac_objext \
29845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29846LIBS=$ac_check_lib_save_LIBS
29847fi
29848echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29849echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29850if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29851
29852 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29853 wxHAVE_XEXT_LIB=1
29854
29855fi
29856
29857
29858 if test "$wxHAVE_XEXT_LIB" = 1; then
29859 save_CFLAGS="$CFLAGS"
29860 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29861
29862 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29863echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29864 cat >conftest.$ac_ext <<_ACEOF
29865/* confdefs.h. */
29866_ACEOF
29867cat confdefs.h >>conftest.$ac_ext
29868cat >>conftest.$ac_ext <<_ACEOF
29869/* end confdefs.h. */
29870
29871 #include <X11/Xlib.h>
29872 #include <X11/extensions/shape.h>
29873
29874int
29875main ()
29876{
29877
29878 int dummy1, dummy2;
29879 XShapeQueryExtension((Display*)NULL,
29880 (int*)NULL, (int*)NULL);
29881
29882 ;
29883 return 0;
29884}
29885_ACEOF
29886rm -f conftest.$ac_objext
29887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29888 (eval $ac_compile) 2>conftest.er1
a848cd7e 29889 ac_status=$?
ac1cb8d3
VS
29890 grep -v '^ *+' conftest.er1 >conftest.err
29891 rm -f conftest.er1
29892 cat conftest.err >&5
a848cd7e
SC
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } &&
0093c2fc 29895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29897 (eval $ac_try) 2>&5
29898 ac_status=$?
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); }; } &&
29901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29903 (eval $ac_try) 2>&5
29904 ac_status=$?
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); }; }; then
29907
29908 cat >>confdefs.h <<\_ACEOF
29909#define HAVE_XSHAPE 1
29910_ACEOF
29911
29912 echo "$as_me:$LINENO: result: found" >&5
29913echo "${ECHO_T}found" >&6
29914
29915else
29916 echo "$as_me: failed program was:" >&5
29917sed 's/^/| /' conftest.$ac_ext >&5
29918
29919
29920 echo "$as_me:$LINENO: result: not found" >&5
29921echo "${ECHO_T}not found" >&6
29922
29923fi
ac1cb8d3 29924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29925 CFLAGS="$save_CFLAGS"
29926
29927 fi
29928 fi
29929
29930 if test "$wxUSE_MAC" = 1; then
29931 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29932echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29933 if test "$GCC" = yes; then
29934 echo "$as_me:$LINENO: result: gcc" >&5
29935echo "${ECHO_T}gcc" >&6
29936 CPPFLAGS_PASCAL="-fpascal-strings"
29937 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29938 echo "$as_me:$LINENO: result: xlc" >&5
29939echo "${ECHO_T}xlc" >&6
29940 CPPFLAGS_PASCAL="-qmacpstr"
29941 else
29942 echo "$as_me:$LINENO: result: none" >&5
29943echo "${ECHO_T}none" >&6
29944 fi
29945
1e9e8aba
DE
29946 if test "x$wxUSE_UNIX" = "xyes"; then
29947 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29948 else
29949 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29950 fi
a848cd7e 29951
a848cd7e
SC
29952 TOOLKIT=MAC
29953 GUIDIST=MACX_DIST
dd21ced8 29954 WXBASEPORT="_carbon"
a848cd7e
SC
29955 fi
29956
29957 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
29958 TOOLKIT=COCOA
29959 GUIDIST=COCOA_DIST
29960 fi
29961
29962 if test "$wxUSE_PM" = 1; then
29963 TOOLKIT=PM
de59c161
RD
29964 GUIDIST=PM_DIST
29965 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
29966echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
29967if test "${wx_cv_spbcdata+set}" = set; then
29968 echo $ECHO_N "(cached) $ECHO_C" >&6
29969else
29970
29971 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
29972/* confdefs.h. */
29973_ACEOF
29974cat confdefs.h >>conftest.$ac_ext
29975cat >>conftest.$ac_ext <<_ACEOF
29976/* end confdefs.h. */
29977
29978 #define INCL_PM
29979 #include <os2.h>
29980
29981int
29982main ()
29983{
29984
29985 SPBCDATA test;
29986
29987 ;
29988 return 0;
29989}
29990_ACEOF
29991rm -f conftest.$ac_objext
29992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29993 (eval $ac_compile) 2>conftest.er1
de59c161 29994 ac_status=$?
ac1cb8d3
VS
29995 grep -v '^ *+' conftest.er1 >conftest.err
29996 rm -f conftest.er1
29997 cat conftest.err >&5
de59c161
RD
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); } &&
0093c2fc 30000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002 (eval $ac_try) 2>&5
30003 ac_status=$?
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); }; } &&
30006 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30008 (eval $ac_try) 2>&5
30009 ac_status=$?
30010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); }; }; then
30012 wx_cv_spbcdata=yes
30013else
30014 echo "$as_me: failed program was:" >&5
30015sed 's/^/| /' conftest.$ac_ext >&5
30016
30017wx_cv_spbcdata=no
30018
30019fi
ac1cb8d3 30020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30021
30022
30023fi
30024echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30025echo "${ECHO_T}$wx_cv_spbcdata" >&6
30026
30027 if test $wx_cv_spbcdata = "yes"; then
30028 cat >>confdefs.h <<\_ACEOF
30029#define HAVE_SPBCDATA 1
30030_ACEOF
30031
30032 fi
a848cd7e
SC
30033 fi
30034
30035 if test "$TOOLKIT" = "PM" ; then
30036 TOOLKIT_DIR="os2"
30037 else
30038 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30039 fi
30040
a848cd7e 30041 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30042 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30043 WIDGET_SET=univ
a848cd7e
SC
30044 fi
30045
30046 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30047 DISTDIR="wx\$(TOOLKIT)"
30048else
30049 USE_GUI=0
30050
30051 TOOLKIT_DIR="base"
30052
30053 if test "$USE_WIN32" = 1 ; then
a848cd7e 30054 TOOLKIT="MSW"
a848cd7e
SC
30055 fi
30056
a848cd7e
SC
30057 GUIDIST="BASE_DIST"
30058 DISTDIR="wxBase"
30059fi
30060
30061
d12aef51
VZ
30062if test "$wxUSE_GUI" = "yes"; then
30063 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30064
30065for ac_header in X11/Xlib.h
30066do
30067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30068if eval "test \"\${$as_ac_Header+set}\" = set"; then
30069 echo "$as_me:$LINENO: checking for $ac_header" >&5
30070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30071if eval "test \"\${$as_ac_Header+set}\" = set"; then
30072 echo $ECHO_N "(cached) $ECHO_C" >&6
30073fi
30074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30076else
30077 # Is the header compilable?
30078echo "$as_me:$LINENO: checking $ac_header usability" >&5
30079echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30080cat >conftest.$ac_ext <<_ACEOF
30081/* confdefs.h. */
30082_ACEOF
30083cat confdefs.h >>conftest.$ac_ext
30084cat >>conftest.$ac_ext <<_ACEOF
30085/* end confdefs.h. */
30086$ac_includes_default
30087#include <$ac_header>
30088_ACEOF
30089rm -f conftest.$ac_objext
30090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30091 (eval $ac_compile) 2>conftest.er1
30092 ac_status=$?
30093 grep -v '^ *+' conftest.er1 >conftest.err
30094 rm -f conftest.er1
30095 cat conftest.err >&5
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); } &&
0093c2fc 30098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30100 (eval $ac_try) 2>&5
30101 ac_status=$?
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); }; } &&
30104 { ac_try='test -s conftest.$ac_objext'
30105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106 (eval $ac_try) 2>&5
30107 ac_status=$?
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); }; }; then
30110 ac_header_compiler=yes
30111else
30112 echo "$as_me: failed program was:" >&5
30113sed 's/^/| /' conftest.$ac_ext >&5
30114
30115ac_header_compiler=no
30116fi
30117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30119echo "${ECHO_T}$ac_header_compiler" >&6
30120
30121# Is the header present?
30122echo "$as_me:$LINENO: checking $ac_header presence" >&5
30123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30124cat >conftest.$ac_ext <<_ACEOF
30125/* confdefs.h. */
30126_ACEOF
30127cat confdefs.h >>conftest.$ac_ext
30128cat >>conftest.$ac_ext <<_ACEOF
30129/* end confdefs.h. */
30130#include <$ac_header>
30131_ACEOF
30132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30134 ac_status=$?
30135 grep -v '^ *+' conftest.er1 >conftest.err
30136 rm -f conftest.er1
30137 cat conftest.err >&5
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); } >/dev/null; then
30140 if test -s conftest.err; then
30141 ac_cpp_err=$ac_c_preproc_warn_flag
30142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30143 else
30144 ac_cpp_err=
30145 fi
30146else
30147 ac_cpp_err=yes
30148fi
30149if test -z "$ac_cpp_err"; then
30150 ac_header_preproc=yes
30151else
30152 echo "$as_me: failed program was:" >&5
30153sed 's/^/| /' conftest.$ac_ext >&5
30154
30155 ac_header_preproc=no
30156fi
30157rm -f conftest.err conftest.$ac_ext
30158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30159echo "${ECHO_T}$ac_header_preproc" >&6
30160
30161# So? What about this header?
30162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30163 yes:no: )
30164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30168 ac_header_preproc=yes
30169 ;;
30170 no:yes:* )
30171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30183 (
30184 cat <<\_ASBOX
30185## ----------------------------------------- ##
30186## Report this to wx-dev@lists.wxwidgets.org ##
30187## ----------------------------------------- ##
30188_ASBOX
30189 ) |
30190 sed "s/^/$as_me: WARNING: /" >&2
30191 ;;
30192esac
30193echo "$as_me:$LINENO: checking for $ac_header" >&5
30194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30195if eval "test \"\${$as_ac_Header+set}\" = set"; then
30196 echo $ECHO_N "(cached) $ECHO_C" >&6
30197else
30198 eval "$as_ac_Header=\$ac_header_preproc"
30199fi
30200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30202
30203fi
30204if test `eval echo '${'$as_ac_Header'}'` = yes; then
30205 cat >>confdefs.h <<_ACEOF
30206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30207_ACEOF
30208
30209fi
30210
30211done
30212
30213
30214for ac_header in X11/XKBlib.h
30215do
30216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30217echo "$as_me:$LINENO: checking for $ac_header" >&5
30218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30219if eval "test \"\${$as_ac_Header+set}\" = set"; then
30220 echo $ECHO_N "(cached) $ECHO_C" >&6
30221else
30222 cat >conftest.$ac_ext <<_ACEOF
30223/* confdefs.h. */
30224_ACEOF
30225cat confdefs.h >>conftest.$ac_ext
30226cat >>conftest.$ac_ext <<_ACEOF
30227/* end confdefs.h. */
30228
30229 #if HAVE_X11_XLIB_H
30230 #include <X11/Xlib.h>
30231 #endif
30232
30233
30234#include <$ac_header>
30235_ACEOF
30236rm -f conftest.$ac_objext
30237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30238 (eval $ac_compile) 2>conftest.er1
30239 ac_status=$?
30240 grep -v '^ *+' conftest.er1 >conftest.err
30241 rm -f conftest.er1
30242 cat conftest.err >&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); } &&
0093c2fc 30245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30247 (eval $ac_try) 2>&5
30248 ac_status=$?
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; } &&
30251 { ac_try='test -s conftest.$ac_objext'
30252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253 (eval $ac_try) 2>&5
30254 ac_status=$?
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); }; }; then
30257 eval "$as_ac_Header=yes"
30258else
30259 echo "$as_me: failed program was:" >&5
30260sed 's/^/| /' conftest.$ac_ext >&5
30261
30262eval "$as_ac_Header=no"
30263fi
30264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30265fi
30266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30268if test `eval echo '${'$as_ac_Header'}'` = yes; then
30269 cat >>confdefs.h <<_ACEOF
30270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30271_ACEOF
30272
30273fi
30274
30275done
30276
30277 fi
30278fi
30279
a848cd7e
SC
30280
30281
30282IODBC_C_SRC=""
30283
30284
30285if test "$TOOLKIT" != "MSW" ; then
30286
30287 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30288
30289 if test "${ac_cv_header_sql_h+set}" = set; then
30290 echo "$as_me:$LINENO: checking for sql.h" >&5
30291echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30292if test "${ac_cv_header_sql_h+set}" = set; then
30293 echo $ECHO_N "(cached) $ECHO_C" >&6
30294fi
30295echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30296echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30297else
30298 # Is the header compilable?
30299echo "$as_me:$LINENO: checking sql.h usability" >&5
30300echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30301cat >conftest.$ac_ext <<_ACEOF
30302/* confdefs.h. */
30303_ACEOF
30304cat confdefs.h >>conftest.$ac_ext
30305cat >>conftest.$ac_ext <<_ACEOF
30306/* end confdefs.h. */
30307$ac_includes_default
30308#include <sql.h>
30309_ACEOF
30310rm -f conftest.$ac_objext
30311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30312 (eval $ac_compile) 2>conftest.er1
a848cd7e 30313 ac_status=$?
ac1cb8d3
VS
30314 grep -v '^ *+' conftest.er1 >conftest.err
30315 rm -f conftest.er1
30316 cat conftest.err >&5
a848cd7e
SC
30317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318 (exit $ac_status); } &&
0093c2fc 30319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30321 (eval $ac_try) 2>&5
30322 ac_status=$?
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; } &&
30325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30327 (eval $ac_try) 2>&5
30328 ac_status=$?
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); }; }; then
30331 ac_header_compiler=yes
30332else
30333 echo "$as_me: failed program was:" >&5
30334sed 's/^/| /' conftest.$ac_ext >&5
30335
30336ac_header_compiler=no
30337fi
ac1cb8d3 30338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30340echo "${ECHO_T}$ac_header_compiler" >&6
30341
30342# Is the header present?
30343echo "$as_me:$LINENO: checking sql.h presence" >&5
30344echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30345cat >conftest.$ac_ext <<_ACEOF
30346/* confdefs.h. */
30347_ACEOF
30348cat confdefs.h >>conftest.$ac_ext
30349cat >>conftest.$ac_ext <<_ACEOF
30350/* end confdefs.h. */
30351#include <sql.h>
30352_ACEOF
30353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30355 ac_status=$?
30356 grep -v '^ *+' conftest.er1 >conftest.err
30357 rm -f conftest.er1
30358 cat conftest.err >&5
30359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360 (exit $ac_status); } >/dev/null; then
30361 if test -s conftest.err; then
30362 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30364 else
30365 ac_cpp_err=
30366 fi
30367else
30368 ac_cpp_err=yes
30369fi
30370if test -z "$ac_cpp_err"; then
30371 ac_header_preproc=yes
30372else
30373 echo "$as_me: failed program was:" >&5
30374sed 's/^/| /' conftest.$ac_ext >&5
30375
30376 ac_header_preproc=no
30377fi
30378rm -f conftest.err conftest.$ac_ext
30379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30380echo "${ECHO_T}$ac_header_preproc" >&6
30381
30382# So? What about this header?
ac1cb8d3
VS
30383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30384 yes:no: )
a848cd7e
SC
30385 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30386echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30387 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30388echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30389 ac_header_preproc=yes
a848cd7e 30390 ;;
ac1cb8d3 30391 no:yes:* )
a848cd7e
SC
30392 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30393echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30394 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30395echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30396 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30397echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30398 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30399echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30400 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30401echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30402 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30403echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30404 (
30405 cat <<\_ASBOX
ac1cb8d3
VS
30406## ----------------------------------------- ##
30407## Report this to wx-dev@lists.wxwidgets.org ##
30408## ----------------------------------------- ##
a848cd7e
SC
30409_ASBOX
30410 ) |
30411 sed "s/^/$as_me: WARNING: /" >&2
30412 ;;
30413esac
30414echo "$as_me:$LINENO: checking for sql.h" >&5
30415echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30416if test "${ac_cv_header_sql_h+set}" = set; then
30417 echo $ECHO_N "(cached) $ECHO_C" >&6
30418else
30419 ac_cv_header_sql_h=$ac_header_preproc
30420fi
30421echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30422echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30423
30424fi
30425if test $ac_cv_header_sql_h = yes; then
30426 found_sql_h=1
30427fi
30428
30429
30430 if test "x$found_sql_h" = "x1" ; then
30431 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30432echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30433if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30434 echo $ECHO_N "(cached) $ECHO_C" >&6
30435else
30436 ac_check_lib_save_LIBS=$LIBS
30437LIBS="-liodbc $LIBS"
30438cat >conftest.$ac_ext <<_ACEOF
30439/* confdefs.h. */
30440_ACEOF
30441cat confdefs.h >>conftest.$ac_ext
30442cat >>conftest.$ac_ext <<_ACEOF
30443/* end confdefs.h. */
30444
30445/* Override any gcc2 internal prototype to avoid an error. */
30446#ifdef __cplusplus
30447extern "C"
30448#endif
30449/* We use char because int might match the return type of a gcc2
30450 builtin and then its argument prototype would still apply. */
30451char SQLAllocEnv ();
30452int
30453main ()
30454{
30455SQLAllocEnv ();
30456 ;
30457 return 0;
30458}
30459_ACEOF
30460rm -f conftest.$ac_objext conftest$ac_exeext
30461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30462 (eval $ac_link) 2>conftest.er1
a848cd7e 30463 ac_status=$?
ac1cb8d3
VS
30464 grep -v '^ *+' conftest.er1 >conftest.err
30465 rm -f conftest.er1
30466 cat conftest.err >&5
a848cd7e
SC
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); } &&
0093c2fc 30469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30471 (eval $ac_try) 2>&5
30472 ac_status=$?
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); }; } &&
30475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30477 (eval $ac_try) 2>&5
30478 ac_status=$?
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; }; then
30481 ac_cv_lib_iodbc_SQLAllocEnv=yes
30482else
30483 echo "$as_me: failed program was:" >&5
30484sed 's/^/| /' conftest.$ac_ext >&5
30485
30486ac_cv_lib_iodbc_SQLAllocEnv=no
30487fi
ac1cb8d3
VS
30488rm -f conftest.err conftest.$ac_objext \
30489 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30490LIBS=$ac_check_lib_save_LIBS
30491fi
30492echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30493echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30494if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30495 ODBC_LINK=" -liodbc"
30496else
30497
30498 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30499echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30500if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30501 echo $ECHO_N "(cached) $ECHO_C" >&6
30502else
30503 ac_check_lib_save_LIBS=$LIBS
30504LIBS="-lunixodbc $LIBS"
30505cat >conftest.$ac_ext <<_ACEOF
30506/* confdefs.h. */
30507_ACEOF
30508cat confdefs.h >>conftest.$ac_ext
30509cat >>conftest.$ac_ext <<_ACEOF
30510/* end confdefs.h. */
30511
30512/* Override any gcc2 internal prototype to avoid an error. */
30513#ifdef __cplusplus
30514extern "C"
30515#endif
30516/* We use char because int might match the return type of a gcc2
30517 builtin and then its argument prototype would still apply. */
30518char SQLAllocEnv ();
30519int
30520main ()
30521{
30522SQLAllocEnv ();
30523 ;
30524 return 0;
30525}
30526_ACEOF
30527rm -f conftest.$ac_objext conftest$ac_exeext
30528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30529 (eval $ac_link) 2>conftest.er1
a848cd7e 30530 ac_status=$?
ac1cb8d3
VS
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
a848cd7e
SC
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } &&
0093c2fc 30536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538 (eval $ac_try) 2>&5
30539 ac_status=$?
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; } &&
30542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544 (eval $ac_try) 2>&5
30545 ac_status=$?
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; }; then
30548 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30549else
30550 echo "$as_me: failed program was:" >&5
30551sed 's/^/| /' conftest.$ac_ext >&5
30552
30553ac_cv_lib_unixodbc_SQLAllocEnv=no
30554fi
ac1cb8d3
VS
30555rm -f conftest.err conftest.$ac_objext \
30556 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30557LIBS=$ac_check_lib_save_LIBS
30558fi
30559echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30560echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30561if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30562 ODBC_LINK=" -lunixodbc"
30563else
30564
30565 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30566echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30567if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30568 echo $ECHO_N "(cached) $ECHO_C" >&6
30569else
30570 ac_check_lib_save_LIBS=$LIBS
30571LIBS="-lodbc $LIBS"
30572cat >conftest.$ac_ext <<_ACEOF
30573/* confdefs.h. */
30574_ACEOF
30575cat confdefs.h >>conftest.$ac_ext
30576cat >>conftest.$ac_ext <<_ACEOF
30577/* end confdefs.h. */
30578
30579/* Override any gcc2 internal prototype to avoid an error. */
30580#ifdef __cplusplus
30581extern "C"
30582#endif
30583/* We use char because int might match the return type of a gcc2
30584 builtin and then its argument prototype would still apply. */
30585char SQLAllocEnv ();
30586int
30587main ()
30588{
30589SQLAllocEnv ();
30590 ;
30591 return 0;
30592}
30593_ACEOF
30594rm -f conftest.$ac_objext conftest$ac_exeext
30595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30596 (eval $ac_link) 2>conftest.er1
a848cd7e 30597 ac_status=$?
ac1cb8d3
VS
30598 grep -v '^ *+' conftest.er1 >conftest.err
30599 rm -f conftest.er1
30600 cat conftest.err >&5
a848cd7e
SC
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); } &&
0093c2fc 30603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30605 (eval $ac_try) 2>&5
30606 ac_status=$?
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); }; } &&
30609 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30611 (eval $ac_try) 2>&5
30612 ac_status=$?
30613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614 (exit $ac_status); }; }; then
30615 ac_cv_lib_odbc_SQLAllocEnv=yes
30616else
30617 echo "$as_me: failed program was:" >&5
30618sed 's/^/| /' conftest.$ac_ext >&5
30619
30620ac_cv_lib_odbc_SQLAllocEnv=no
30621fi
ac1cb8d3
VS
30622rm -f conftest.err conftest.$ac_objext \
30623 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30624LIBS=$ac_check_lib_save_LIBS
30625fi
30626echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30627echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30628if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30629 ODBC_LINK=" -lodbc"
30630fi
30631
30632
30633fi
30634
30635
30636fi
30637
30638 fi
30639 if test "x$ODBC_LINK" = "x" ; then
30640 if test "$wxUSE_ODBC" = "sys" ; then
30641 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30642echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30643 { (exit 1); exit 1; }; }
30644 else
30645 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30646echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30647 wxUSE_ODBC=builtin
30648 fi
30649 else
30650 wxUSE_ODBC=sys
30651 fi
30652 fi
a848cd7e 30653
2da0c077
RD
30654 if test "$wxUSE_ODBC" = "builtin" ; then
30655 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30656#define wxUSE_BUILTIN_IODBC 1
30657_ACEOF
30658
a848cd7e
SC
30659 fi
30660fi
30661
2da0c077
RD
30662if test "$wxUSE_ODBC" != "no" ; then
30663 cat >>confdefs.h <<\_ACEOF
30664#define wxUSE_ODBC 1
30665_ACEOF
30666
30667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30668
30669 WXODBCFLAG="-D_IODBC_"
30670fi
a848cd7e 30671
01cb68df 30672
a848cd7e 30673if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30674 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30675 echo "$as_me:$LINENO: checking for Xinerama" >&5
30676echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30677
0ad5d837
VZ
30678 ac_find_libraries=
30679 for ac_dir in $SEARCH_LIB;
30680 do
30681 for ac_extension in a so sl dylib dll.a; do
30682 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30683 ac_find_libraries=$ac_dir
30684 break 2
30685 fi
30686 done
30687 done
30688
a848cd7e
SC
30689 if test "$ac_find_libraries" != "" ; then
30690
0ad5d837 30691 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30692 ac_path_to_link=""
30693 else
0ad5d837
VZ
30694 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30695 result=$?
30696 if test $result = 0; then
30697 ac_path_to_link=""
30698 else
30699 ac_path_to_link=" -L$ac_find_libraries"
30700 fi
a848cd7e
SC
30701 fi
30702
30703 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30704 LDFLAGS="$LDFLAGS $ac_path_to_link"
30705 fi
30706 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30707 echo "$as_me:$LINENO: result: yes" >&5
30708echo "${ECHO_T}yes" >&6
30709
30710 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30711echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30712
0ad5d837
VZ
30713 ac_find_libraries=
30714 for ac_dir in $SEARCH_LIB;
a848cd7e 30715 do
3eca31dc 30716 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30717 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30718 ac_find_libraries=$ac_dir
30719 break 2
30720 fi
30721 done
30722 done
30723
30724 if test "$ac_find_libraries" != "" ; then
30725 echo "$as_me:$LINENO: result: yes" >&5
30726echo "${ECHO_T}yes" >&6
30727
30728for ac_header in X11/extensions/xf86vmode.h
30729do
30730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30731echo "$as_me:$LINENO: checking for $ac_header" >&5
30732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30733if eval "test \"\${$as_ac_Header+set}\" = set"; then
30734 echo $ECHO_N "(cached) $ECHO_C" >&6
30735else
30736 cat >conftest.$ac_ext <<_ACEOF
30737/* confdefs.h. */
30738_ACEOF
30739cat confdefs.h >>conftest.$ac_ext
30740cat >>conftest.$ac_ext <<_ACEOF
30741/* end confdefs.h. */
30742
30743 #if HAVE_X11_XLIB_H
30744 #include <X11/Xlib.h>
30745 #endif
30746
30747
30748#include <$ac_header>
30749_ACEOF
30750rm -f conftest.$ac_objext
30751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30752 (eval $ac_compile) 2>conftest.er1
a848cd7e 30753 ac_status=$?
ac1cb8d3
VS
30754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
a848cd7e
SC
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } &&
0093c2fc 30759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761 (eval $ac_try) 2>&5
30762 ac_status=$?
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); }; } &&
30765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30767 (eval $ac_try) 2>&5
30768 ac_status=$?
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); }; }; then
30771 eval "$as_ac_Header=yes"
30772else
30773 echo "$as_me: failed program was:" >&5
30774sed 's/^/| /' conftest.$ac_ext >&5
30775
30776eval "$as_ac_Header=no"
30777fi
ac1cb8d3 30778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30779fi
30780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30782if test `eval echo '${'$as_ac_Header'}'` = yes; then
30783 cat >>confdefs.h <<_ACEOF
30784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30785_ACEOF
30786
30787 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30788
30789fi
30790
30791done
30792
30793 else
30794 echo "$as_me:$LINENO: result: no" >&5
30795echo "${ECHO_T}no" >&6
30796 fi
30797
30798 else
30799 echo "$as_me:$LINENO: result: no" >&5
30800echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30801 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30802echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30803 wxUSE_DISPLAY="no"
30804 fi
01cb68df
RG
30805 elif test "$wxUSE_MSW" = 1; then
30806
30807
30808for ac_header in multimon.h ddraw.h
30809do
30810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30811echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30813if eval "test \"\${$as_ac_Header+set}\" = set"; then
30814 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30815else
5294a27e 30816 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30817/* confdefs.h. */
30818_ACEOF
30819cat confdefs.h >>conftest.$ac_ext
30820cat >>conftest.$ac_ext <<_ACEOF
30821/* end confdefs.h. */
5294a27e
VZ
30822#include <windows.h>
30823
01cb68df
RG
30824#include <$ac_header>
30825_ACEOF
30826rm -f conftest.$ac_objext
30827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30828 (eval $ac_compile) 2>conftest.er1
01cb68df 30829 ac_status=$?
ac1cb8d3
VS
30830 grep -v '^ *+' conftest.er1 >conftest.err
30831 rm -f conftest.er1
30832 cat conftest.err >&5
01cb68df
RG
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); } &&
0093c2fc 30835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30837 (eval $ac_try) 2>&5
30838 ac_status=$?
30839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840 (exit $ac_status); }; } &&
30841 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30843 (eval $ac_try) 2>&5
30844 ac_status=$?
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); }; }; then
5294a27e 30847 eval "$as_ac_Header=yes"
01cb68df
RG
30848else
30849 echo "$as_me: failed program was:" >&5
30850sed 's/^/| /' conftest.$ac_ext >&5
30851
5294a27e 30852eval "$as_ac_Header=no"
01cb68df 30853fi
ac1cb8d3 30854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30855fi
30856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30858if test `eval echo '${'$as_ac_Header'}'` = yes; then
30859 cat >>confdefs.h <<_ACEOF
30860#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30861_ACEOF
30862
30863else
30864
5294a27e
VZ
30865 wxUSE_DISPLAY="no"
30866 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30867echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30868
30869fi
30870
30871done
30872
a848cd7e
SC
30873 fi
30874fi
30875
30876
30877USE_OPENGL=0
30878if test "$wxUSE_OPENGL" = "yes"; then
30879 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30880 OPENGL_LIBS="-framework OpenGL -framework AGL"
30881 elif test "$wxUSE_MSW" = 1; then
30882 OPENGL_LIBS="-lopengl32 -lglu32"
30883 else
30884
30885
30886ac_find_includes=
30887for ac_dir in $SEARCH_INCLUDE /usr/include;
30888 do
30889 if test -f "$ac_dir/GL/gl.h"; then
30890 ac_find_includes=$ac_dir
30891 break
30892 fi
30893 done
30894
30895 if test "$ac_find_includes" != "" ; then
30896 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30897echo "${ECHO_T}found in $ac_find_includes" >&6
30898
30899 if test "x$ac_find_includes" = "x/usr/include"; then
30900 ac_path_to_include=""
30901 else
30902 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30903 result=$?
30904 if test $result = 0; then
30905 ac_path_to_include=""
30906 else
30907 ac_path_to_include=" -I$ac_find_includes"
30908 fi
30909 fi
30910
30911 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30912 fi
30913
30914 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30915 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30916echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30917if test "${ac_cv_header_GL_gl_h+set}" = set; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
30919fi
30920echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30921echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30922else
30923 # Is the header compilable?
30924echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30925echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30926cat >conftest.$ac_ext <<_ACEOF
30927/* confdefs.h. */
30928_ACEOF
30929cat confdefs.h >>conftest.$ac_ext
30930cat >>conftest.$ac_ext <<_ACEOF
30931/* end confdefs.h. */
30932$ac_includes_default
30933#include <GL/gl.h>
30934_ACEOF
30935rm -f conftest.$ac_objext
30936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30937 (eval $ac_compile) 2>conftest.er1
a848cd7e 30938 ac_status=$?
ac1cb8d3
VS
30939 grep -v '^ *+' conftest.er1 >conftest.err
30940 rm -f conftest.er1
30941 cat conftest.err >&5
a848cd7e
SC
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); } &&
0093c2fc 30944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30946 (eval $ac_try) 2>&5
30947 ac_status=$?
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; } &&
30950 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30952 (eval $ac_try) 2>&5
30953 ac_status=$?
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); }; }; then
30956 ac_header_compiler=yes
30957else
30958 echo "$as_me: failed program was:" >&5
30959sed 's/^/| /' conftest.$ac_ext >&5
30960
30961ac_header_compiler=no
30962fi
ac1cb8d3 30963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30964echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30965echo "${ECHO_T}$ac_header_compiler" >&6
30966
30967# Is the header present?
30968echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
30969echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
30970cat >conftest.$ac_ext <<_ACEOF
30971/* confdefs.h. */
30972_ACEOF
30973cat confdefs.h >>conftest.$ac_ext
30974cat >>conftest.$ac_ext <<_ACEOF
30975/* end confdefs.h. */
30976#include <GL/gl.h>
30977_ACEOF
30978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30980 ac_status=$?
30981 grep -v '^ *+' conftest.er1 >conftest.err
30982 rm -f conftest.er1
30983 cat conftest.err >&5
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); } >/dev/null; then
30986 if test -s conftest.err; then
30987 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30989 else
30990 ac_cpp_err=
30991 fi
30992else
30993 ac_cpp_err=yes
30994fi
30995if test -z "$ac_cpp_err"; then
30996 ac_header_preproc=yes
30997else
30998 echo "$as_me: failed program was:" >&5
30999sed 's/^/| /' conftest.$ac_ext >&5
31000
31001 ac_header_preproc=no
31002fi
31003rm -f conftest.err conftest.$ac_ext
31004echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31005echo "${ECHO_T}$ac_header_preproc" >&6
31006
31007# So? What about this header?
ac1cb8d3
VS
31008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31009 yes:no: )
a848cd7e
SC
31010 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31011echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31012 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31013echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31014 ac_header_preproc=yes
a848cd7e 31015 ;;
ac1cb8d3 31016 no:yes:* )
a848cd7e
SC
31017 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31018echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31019 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31020echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31021 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31022echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31023 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31024echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31025 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31026echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31027 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31028echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31029 (
31030 cat <<\_ASBOX
ac1cb8d3
VS
31031## ----------------------------------------- ##
31032## Report this to wx-dev@lists.wxwidgets.org ##
31033## ----------------------------------------- ##
a848cd7e
SC
31034_ASBOX
31035 ) |
31036 sed "s/^/$as_me: WARNING: /" >&2
31037 ;;
31038esac
31039echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31040echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31041if test "${ac_cv_header_GL_gl_h+set}" = set; then
31042 echo $ECHO_N "(cached) $ECHO_C" >&6
31043else
31044 ac_cv_header_GL_gl_h=$ac_header_preproc
31045fi
31046echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31047echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31048
31049fi
31050if test $ac_cv_header_GL_gl_h = yes; then
31051
31052 found_gl=0
31053
31054 echo "$as_me:$LINENO: checking for -lGL" >&5
31055echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31056
0ad5d837
VZ
31057 ac_find_libraries=
31058 for ac_dir in $SEARCH_LIB;
a848cd7e 31059 do
3eca31dc 31060 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31061 if test -f "$ac_dir/libGL.$ac_extension"; then
31062 ac_find_libraries=$ac_dir
31063 break 2
31064 fi
31065 done
31066 done
31067
31068 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31069 echo "$as_me:$LINENO: result: yes" >&5
31070echo "${ECHO_T}yes" >&6
31071
a848cd7e 31072
0ad5d837 31073 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31074 ac_path_to_link=""
31075 else
0ad5d837
VZ
31076 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31077 result=$?
31078 if test $result = 0; then
31079 ac_path_to_link=""
31080 else
31081 ac_path_to_link=" -L$ac_find_libraries"
31082 fi
a848cd7e
SC
31083 fi
31084
31085 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31086 LDFLAGS_GL="$ac_path_to_link"
31087 fi
31088
69120ee4
VZ
31089 echo "$as_me:$LINENO: checking for -lGLU" >&5
31090echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31091
0ad5d837
VZ
31092 ac_find_libraries=
31093 for ac_dir in $SEARCH_LIB;
31094 do
31095 for ac_extension in a so sl dylib dll.a; do
31096 if test -f "$ac_dir/libGLU.$ac_extension"; then
31097 ac_find_libraries=$ac_dir
31098 break 2
31099 fi
31100 done
31101 done
31102
a848cd7e
SC
31103 if test "$ac_find_libraries" != "" ; then
31104
0ad5d837 31105 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31106 ac_path_to_link=""
31107 else
0ad5d837
VZ
31108 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31109 result=$?
31110 if test $result = 0; then
31111 ac_path_to_link=""
31112 else
31113 ac_path_to_link=" -L$ac_find_libraries"
31114 fi
a848cd7e
SC
31115 fi
31116
31117 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31118 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31119 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31120 fi
31121
31122 found_gl=1
31123 OPENGL_LIBS="-lGL -lGLU"
31124 echo "$as_me:$LINENO: result: yes" >&5
31125echo "${ECHO_T}yes" >&6
69120ee4
VZ
31126 else
31127 echo "$as_me:$LINENO: result: no" >&5
31128echo "${ECHO_T}no" >&6
a848cd7e 31129 fi
69120ee4
VZ
31130 else
31131 echo "$as_me:$LINENO: result: no" >&5
31132echo "${ECHO_T}no" >&6
a848cd7e
SC
31133 fi
31134
31135 if test "$found_gl" != 1; then
a848cd7e
SC
31136 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31137echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31138
0ad5d837
VZ
31139 ac_find_libraries=
31140 for ac_dir in $SEARCH_LIB;
a848cd7e 31141 do
3eca31dc 31142 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31143 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31144 ac_find_libraries=$ac_dir
31145 break 2
31146 fi
31147 done
31148 done
31149
31150 if test "$ac_find_libraries" != "" ; then
31151
0ad5d837 31152 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31153 ac_path_to_link=""
31154 else
0ad5d837
VZ
31155 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31156 result=$?
31157 if test $result = 0; then
31158 ac_path_to_link=""
31159 else
31160 ac_path_to_link=" -L$ac_find_libraries"
31161 fi
a848cd7e
SC
31162 fi
31163
31164 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31165 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31166 echo "$as_me:$LINENO: result: yes" >&5
31167echo "${ECHO_T}yes" >&6
31168 else
31169 echo "$as_me:$LINENO: result: no" >&5
31170echo "${ECHO_T}no" >&6
31171 fi
31172 fi
31173
31174fi
31175
31176
31177
31178 if test "x$OPENGL_LIBS" = "x"; then
31179 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31180echo "$as_me: error: OpenGL libraries not available" >&2;}
31181 { (exit 1); exit 1; }; }
31182 fi
31183 fi
31184
31185 if test "$wxUSE_OPENGL" = "yes"; then
31186 USE_OPENGL=1
31187 cat >>confdefs.h <<\_ACEOF
31188#define wxUSE_OPENGL 1
31189_ACEOF
31190
31191 cat >>confdefs.h <<\_ACEOF
31192#define wxUSE_GLCANVAS 1
31193_ACEOF
31194
31195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31196 fi
31197fi
31198
a848cd7e
SC
31199
31200if test -n "$TOOLKIT" ; then
31201 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31202fi
31203
a848cd7e
SC
31204
31205
31206if test "$wxUSE_SHARED" = "yes"; then
31207 case "${host}" in
31208 *-pc-msdosdjgpp )
31209 wxUSE_SHARED=no
31210 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31211echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31212 ;;
31213 esac
31214fi
31215
a848cd7e 31216if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31217
31218
31219 found_versioning=no
31220
31221
31222 if test $found_versioning = no ; then
31223 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31224echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31225if test "${wx_cv_version_script+set}" = set; then
31226 echo $ECHO_N "(cached) $ECHO_C" >&6
31227else
31228
31229 echo "VER_1 { *; };" >conftest.sym
31230 echo "int main() { return 0; }" >conftest.cpp
31231
31232 if { ac_try='
31233 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31234 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31236 (eval $ac_try) 2>&5
31237 ac_status=$?
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); }; } ; then
31240 if test -s conftest.stderr ; then
31241 wx_cv_version_script=no
31242 else
31243 wx_cv_version_script=yes
31244 fi
31245 else
31246 wx_cv_version_script=no
31247 fi
e5d4b470
MW
31248
31249 if test $wx_cv_version_script = yes
31250 then
31251 echo "struct B { virtual ~B() { } }; \
31252 struct D : public B { }; \
31253 void F() { D d; }" > conftest.cpp
31254
31255 if { ac_try='
31256 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31257 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31259 (eval $ac_try) 2>&5
31260 ac_status=$?
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; } &&
31263 { ac_try='
31264 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31265 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31267 (eval $ac_try) 2>&5
31268 ac_status=$?
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); }; }
31271 then
31272 if { ac_try='
31273 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31274 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31276 (eval $ac_try) 2>&5
31277 ac_status=$?
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); }; }
31280 then
31281 wx_cv_version_script=yes
31282 else
31283 wx_cv_version_script=no
31284 fi
31285 fi
31286 fi
31287
a848cd7e 31288 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31289 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31290
31291fi
31292echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31293echo "${ECHO_T}$wx_cv_version_script" >&6
31294 if test $wx_cv_version_script = yes ; then
31295 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31296 fi
31297 fi
31298
31299
31300 case "${host}" in
31301 *-*-linux* | *-*-gnu* )
31302 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31303 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31304 ;;
a848cd7e
SC
31305
31306 *-*-solaris2* )
31307 if test "$GCC" = yes ; then
31308 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
31309
31310 saveLdflags="$LDFLAGS"
31311 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31312 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31313echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31314 cat >conftest.$ac_ext <<_ACEOF
31315/* confdefs.h. */
31316_ACEOF
31317cat confdefs.h >>conftest.$ac_ext
31318cat >>conftest.$ac_ext <<_ACEOF
31319/* end confdefs.h. */
31320
31321int
31322main ()
31323{
31324
31325 ;
31326 return 0;
31327}
31328_ACEOF
31329rm -f conftest.$ac_objext conftest$ac_exeext
31330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31331 (eval $ac_link) 2>conftest.er1
a848cd7e 31332 ac_status=$?
ac1cb8d3
VS
31333 grep -v '^ *+' conftest.er1 >conftest.err
31334 rm -f conftest.er1
31335 cat conftest.err >&5
a848cd7e
SC
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); } &&
0093c2fc 31338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340 (eval $ac_try) 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; } &&
31344 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346 (eval $ac_try) 2>&5
31347 ac_status=$?
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; }; then
31350
31351 echo "$as_me:$LINENO: result: yes" >&5
31352echo "${ECHO_T}yes" >&6
31353 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31354 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31355
31356else
31357 echo "$as_me: failed program was:" >&5
31358sed 's/^/| /' conftest.$ac_ext >&5
31359
31360
31361 echo "$as_me:$LINENO: result: no" >&5
31362echo "${ECHO_T}no" >&6
31363 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31364echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31365 LDFLAGS="$saveLdflags -Wl,-R,/"
31366 cat >conftest.$ac_ext <<_ACEOF
31367/* confdefs.h. */
31368_ACEOF
31369cat confdefs.h >>conftest.$ac_ext
31370cat >>conftest.$ac_ext <<_ACEOF
31371/* end confdefs.h. */
31372
31373int
31374main ()
31375{
31376
31377 ;
31378 return 0;
31379}
31380_ACEOF
31381rm -f conftest.$ac_objext conftest$ac_exeext
31382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31383 (eval $ac_link) 2>conftest.er1
a848cd7e 31384 ac_status=$?
ac1cb8d3
VS
31385 grep -v '^ *+' conftest.er1 >conftest.err
31386 rm -f conftest.er1
31387 cat conftest.err >&5
a848cd7e
SC
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); } &&
0093c2fc 31390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392 (eval $ac_try) 2>&5
31393 ac_status=$?
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; } &&
31396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398 (eval $ac_try) 2>&5
31399 ac_status=$?
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; }; then
31402
ffa0583f 31403 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31404echo "${ECHO_T}yes" >&6
ffa0583f
RL
31405 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31406 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31407
a848cd7e
SC
31408else
31409 echo "$as_me: failed program was:" >&5
31410sed 's/^/| /' conftest.$ac_ext >&5
31411
31412
31413 echo "$as_me:$LINENO: result: no" >&5
31414echo "${ECHO_T}no" >&6
31415
31416fi
ac1cb8d3
VS
31417rm -f conftest.err conftest.$ac_objext \
31418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31419
31420fi
ac1cb8d3
VS
31421rm -f conftest.err conftest.$ac_objext \
31422 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31423 LDFLAGS="$saveLdflags"
31424 else
a848cd7e 31425 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31426 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31427 fi
31428 ;;
31429
cfda0ea8 31430 *-*-darwin* )
0caebc27
MW
31431 install_name_tool=`which install_name_tool`
31432 if test "$install_name_tool" -a -x "$install_name_tool"; then
31433 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31434 cat <<EOF >change-install-names
a848cd7e
SC
31435#!/bin/sh
31436libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31437inst_cmd="install_name_tool "
31438for i in \${libnames} ; do
31439 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31440done
31441\${inst_cmd} \${3}
31442EOF
0caebc27
MW
31443 chmod +x change-install-names
31444 fi
a848cd7e
SC
31445 ;;
31446
31447 *-*-cygwin* | *-*-mingw32* )
31448 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
31449 ;;
31450
81f90336
MW
31451 *-*-hpux* )
31452 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31453 WXCONFIG_RPATH="-Wl,+b,\$libdir"
31454 ;;
31455
a848cd7e 31456 esac
ceec2216 31457
ffa0583f
RL
31458 if test $wxUSE_RPATH = "no"; then
31459 SAMPLES_RPATH_FLAG=''
31460 SAMPLES_RPATH_POSTLINK=''
31461 WXCONFIG_RPATH=''
31462 fi
31463
31464 SHARED=1
31465
31466else
31467
ceec2216
RL
31468 config_linkage_component="-static"
31469 SHARED=0
ffa0583f 31470
ceec2216 31471fi
a848cd7e 31472
a848cd7e 31473
ceec2216
RL
31474UNICODE=0
31475lib_unicode_suffix=
31476WX_CHARTYPE="ansi"
31477if test "$wxUSE_UNICODE" = "yes"; then
31478 lib_unicode_suffix=u
31479 WX_CHARTYPE="unicode"
31480 UNICODE=1
a848cd7e
SC
31481fi
31482
ceec2216
RL
31483lib_debug_suffix=
31484WX_DEBUGTYPE="release"
31485DEBUG_FLAG=0
31486if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31487 lib_debug_suffix=d
31488 WX_DEBUGTYPE="debug"
31489 DEBUG_FLAG=1
31490fi
a848cd7e 31491
ceec2216
RL
31492WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31493WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31494
ceec2216
RL
31495DEBUG_INFO=0
31496if test "$wxUSE_DEBUG_INFO" = "yes"; then
31497 DEBUG_INFO=1
31498fi
a848cd7e 31499
ceec2216 31500WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31501
ceec2216 31502TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31503
ceec2216 31504TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31505
ceec2216
RL
31506if test "$cross_compiling" = "yes"; then
31507 HOST_SUFFIX="-$host_alias"
31508 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31509 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31510fi
31511
dd21ced8 31512WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31513if test "${TOOLKIT_DIR}" = "os2"; then
31514 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31515else
31516 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31517fi
ceec2216
RL
31518
31519
31520
1d1af5ea
DE
31521if test "$wxUSE_COCOA" = 1; then
31522
31523
31524 ac_ext=c
31525ac_cpp='$CPP $CPPFLAGS'
31526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31528ac_compiler_gnu=$ac_cv_c_compiler_gnu
31529
31530ac_ext=m
31531
31532 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31533echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31534 cat >conftest.$ac_ext <<_ACEOF
31535/* confdefs.h. */
31536_ACEOF
31537cat confdefs.h >>conftest.$ac_ext
31538cat >>conftest.$ac_ext <<_ACEOF
31539/* end confdefs.h. */
31540#include <AppKit/NSEvent.h>
31541#include <CoreFoundation/CoreFoundation.h>
31542
31543int
31544main ()
31545{
31546
31547 ;
31548 return 0;
31549}
31550_ACEOF
31551rm -f conftest.$ac_objext
31552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31553 (eval $ac_compile) 2>conftest.er1
31554 ac_status=$?
31555 grep -v '^ *+' conftest.er1 >conftest.err
31556 rm -f conftest.er1
31557 cat conftest.err >&5
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559 (exit $ac_status); } &&
0093c2fc 31560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31562 (eval $ac_try) 2>&5
31563 ac_status=$?
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); }; } &&
31566 { ac_try='test -s conftest.$ac_objext'
31567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31568 (eval $ac_try) 2>&5
31569 ac_status=$?
31570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); }; }; then
31572 echo "$as_me:$LINENO: result: no" >&5
31573echo "${ECHO_T}no" >&6
31574else
31575 echo "$as_me: failed program was:" >&5
31576sed 's/^/| /' conftest.$ac_ext >&5
31577
31578echo "$as_me:$LINENO: result: yes" >&5
31579echo "${ECHO_T}yes" >&6
31580 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31581echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31582 cat >conftest.$ac_ext <<_ACEOF
31583/* confdefs.h. */
31584_ACEOF
31585cat confdefs.h >>conftest.$ac_ext
31586cat >>conftest.$ac_ext <<_ACEOF
31587/* end confdefs.h. */
31588#define __Point__ 1
31589#include <AppKit/NSEvent.h>
31590#include <CoreFoundation/CoreFoundation.h>
31591
31592int
31593main ()
31594{
31595
31596 ;
31597 return 0;
31598}
31599_ACEOF
31600rm -f conftest.$ac_objext
31601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31602 (eval $ac_compile) 2>conftest.er1
31603 ac_status=$?
31604 grep -v '^ *+' conftest.er1 >conftest.err
31605 rm -f conftest.er1
31606 cat conftest.err >&5
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); } &&
0093c2fc 31609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31611 (eval $ac_try) 2>&5
31612 ac_status=$?
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); }; } &&
31615 { ac_try='test -s conftest.$ac_objext'
31616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31617 (eval $ac_try) 2>&5
31618 ac_status=$?
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); }; }; then
31621 echo "$as_me:$LINENO: result: yes" >&5
31622echo "${ECHO_T}yes" >&6
31623 cat >>confdefs.h <<\_ACEOF
31624#define __Point__ 1
31625_ACEOF
31626
31627
31628else
31629 echo "$as_me: failed program was:" >&5
31630sed 's/^/| /' conftest.$ac_ext >&5
31631
31632{ { echo "$as_me:$LINENO: error: no
31633See \`config.log' for more details." >&5
31634echo "$as_me: error: no
31635See \`config.log' for more details." >&2;}
31636 { (exit 1); exit 1; }; }
31637
31638fi
31639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31640
31641fi
31642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31643 ac_ext=c
31644ac_cpp='$CPP $CPPFLAGS'
31645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31647ac_compiler_gnu=$ac_cv_c_compiler_gnu
31648
31649fi
31650
a848cd7e 31651if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31652 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31653 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31654
a848cd7e 31655 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31656
31657 # Extract the first word of "Rez", so it can be a program name with args.
31658set dummy Rez; ac_word=$2
31659echo "$as_me:$LINENO: checking for $ac_word" >&5
31660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31661if test "${ac_cv_prog_RESCOMP+set}" = set; then
31662 echo $ECHO_N "(cached) $ECHO_C" >&6
31663else
31664 if test -n "$RESCOMP"; then
31665 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31666else
31667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31668for as_dir in $PATH
31669do
31670 IFS=$as_save_IFS
31671 test -z "$as_dir" && as_dir=.
31672 for ac_exec_ext in '' $ac_executable_extensions; do
31673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31674 ac_cv_prog_RESCOMP="Rez"
31675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31676 break 2
31677 fi
31678done
31679done
31680
31681 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31682fi
31683fi
31684RESCOMP=$ac_cv_prog_RESCOMP
31685if test -n "$RESCOMP"; then
31686 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31687echo "${ECHO_T}$RESCOMP" >&6
31688else
31689 echo "$as_me:$LINENO: result: no" >&5
31690echo "${ECHO_T}no" >&6
31691fi
31692
31693 # Extract the first word of "DeRez", so it can be a program name with args.
31694set dummy DeRez; ac_word=$2
31695echo "$as_me:$LINENO: checking for $ac_word" >&5
31696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31697if test "${ac_cv_prog_DEREZ+set}" = set; then
31698 echo $ECHO_N "(cached) $ECHO_C" >&6
31699else
31700 if test -n "$DEREZ"; then
31701 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31702else
31703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31704for as_dir in $PATH
31705do
31706 IFS=$as_save_IFS
31707 test -z "$as_dir" && as_dir=.
31708 for ac_exec_ext in '' $ac_executable_extensions; do
31709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31710 ac_cv_prog_DEREZ="DeRez"
31711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31712 break 2
31713 fi
31714done
31715done
31716
31717 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31718fi
31719fi
31720DEREZ=$ac_cv_prog_DEREZ
31721if test -n "$DEREZ"; then
31722 echo "$as_me:$LINENO: result: $DEREZ" >&5
31723echo "${ECHO_T}$DEREZ" >&6
31724else
31725 echo "$as_me:$LINENO: result: no" >&5
31726echo "${ECHO_T}no" >&6
31727fi
31728
31729 # Extract the first word of "SetFile", so it can be a program name with args.
31730set dummy SetFile; ac_word=$2
31731echo "$as_me:$LINENO: checking for $ac_word" >&5
31732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31733if test "${ac_cv_prog_SETFILE+set}" = set; then
31734 echo $ECHO_N "(cached) $ECHO_C" >&6
31735else
31736 if test -n "$SETFILE"; then
31737 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31738else
31739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31740for as_dir in $PATH
31741do
31742 IFS=$as_save_IFS
31743 test -z "$as_dir" && as_dir=.
31744 for ac_exec_ext in '' $ac_executable_extensions; do
31745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31746 ac_cv_prog_SETFILE="SetFile"
31747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31748 break 2
31749 fi
31750done
31751done
31752
31753 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31754fi
31755fi
31756SETFILE=$ac_cv_prog_SETFILE
31757if test -n "$SETFILE"; then
31758 echo "$as_me:$LINENO: result: $SETFILE" >&5
31759echo "${ECHO_T}$SETFILE" >&6
31760else
31761 echo "$as_me:$LINENO: result: no" >&5
31762echo "${ECHO_T}no" >&6
31763fi
31764
31765
31766 MACSETFILE="\$(SETFILE)"
31767
31768 if test "$wxUSE_MAC" = 1; then
1a79f136 31769 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31770
1a79f136 31771 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
31772 else
31773 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31774 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31775 fi
31776else
ffa0583f
RL
31777 MACSETFILE="@true"
31778 MACRESWXCONFIG="@true"
a848cd7e
SC
31779
31780 if test "$wxUSE_PM" = 1; then
31781 MACRESCOMP="emxbind -ep"
31782 else
ffa0583f 31783 MACRESCOMP="@true"
a848cd7e
SC
31784 fi
31785fi
31786
31787
31788
31789echo "$as_me:$LINENO: checking for mode_t" >&5
31790echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31791if test "${ac_cv_type_mode_t+set}" = set; then
31792 echo $ECHO_N "(cached) $ECHO_C" >&6
31793else
31794 cat >conftest.$ac_ext <<_ACEOF
31795/* confdefs.h. */
31796_ACEOF
31797cat confdefs.h >>conftest.$ac_ext
31798cat >>conftest.$ac_ext <<_ACEOF
31799/* end confdefs.h. */
31800$ac_includes_default
31801int
31802main ()
31803{
31804if ((mode_t *) 0)
31805 return 0;
31806if (sizeof (mode_t))
31807 return 0;
31808 ;
31809 return 0;
31810}
31811_ACEOF
31812rm -f conftest.$ac_objext
31813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31814 (eval $ac_compile) 2>conftest.er1
a848cd7e 31815 ac_status=$?
ac1cb8d3
VS
31816 grep -v '^ *+' conftest.er1 >conftest.err
31817 rm -f conftest.er1
31818 cat conftest.err >&5
a848cd7e
SC
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); } &&
0093c2fc 31821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31823 (eval $ac_try) 2>&5
31824 ac_status=$?
31825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826 (exit $ac_status); }; } &&
31827 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829 (eval $ac_try) 2>&5
31830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
31833 ac_cv_type_mode_t=yes
31834else
31835 echo "$as_me: failed program was:" >&5
31836sed 's/^/| /' conftest.$ac_ext >&5
31837
31838ac_cv_type_mode_t=no
31839fi
ac1cb8d3 31840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31841fi
31842echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31843echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31844if test $ac_cv_type_mode_t = yes; then
31845 :
31846else
31847
31848cat >>confdefs.h <<_ACEOF
31849#define mode_t int
31850_ACEOF
31851
31852fi
31853
31854echo "$as_me:$LINENO: checking for off_t" >&5
31855echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31856if test "${ac_cv_type_off_t+set}" = set; then
31857 echo $ECHO_N "(cached) $ECHO_C" >&6
31858else
31859 cat >conftest.$ac_ext <<_ACEOF
31860/* confdefs.h. */
31861_ACEOF
31862cat confdefs.h >>conftest.$ac_ext
31863cat >>conftest.$ac_ext <<_ACEOF
31864/* end confdefs.h. */
31865$ac_includes_default
31866int
31867main ()
31868{
31869if ((off_t *) 0)
31870 return 0;
31871if (sizeof (off_t))
31872 return 0;
31873 ;
31874 return 0;
31875}
31876_ACEOF
31877rm -f conftest.$ac_objext
31878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31879 (eval $ac_compile) 2>conftest.er1
a848cd7e 31880 ac_status=$?
ac1cb8d3
VS
31881 grep -v '^ *+' conftest.er1 >conftest.err
31882 rm -f conftest.er1
31883 cat conftest.err >&5
a848cd7e
SC
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); } &&
0093c2fc 31886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888 (eval $ac_try) 2>&5
31889 ac_status=$?
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); }; } &&
31892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31895 ac_status=$?
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; }; then
31898 ac_cv_type_off_t=yes
31899else
31900 echo "$as_me: failed program was:" >&5
31901sed 's/^/| /' conftest.$ac_ext >&5
31902
31903ac_cv_type_off_t=no
31904fi
ac1cb8d3 31905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31906fi
31907echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31908echo "${ECHO_T}$ac_cv_type_off_t" >&6
31909if test $ac_cv_type_off_t = yes; then
31910 :
31911else
31912
31913cat >>confdefs.h <<_ACEOF
31914#define off_t long
31915_ACEOF
31916
31917fi
31918
31919echo "$as_me:$LINENO: checking for pid_t" >&5
31920echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31921if test "${ac_cv_type_pid_t+set}" = set; then
31922 echo $ECHO_N "(cached) $ECHO_C" >&6
31923else
31924 cat >conftest.$ac_ext <<_ACEOF
31925/* confdefs.h. */
31926_ACEOF
31927cat confdefs.h >>conftest.$ac_ext
31928cat >>conftest.$ac_ext <<_ACEOF
31929/* end confdefs.h. */
31930$ac_includes_default
31931int
31932main ()
31933{
31934if ((pid_t *) 0)
31935 return 0;
31936if (sizeof (pid_t))
31937 return 0;
31938 ;
31939 return 0;
31940}
31941_ACEOF
31942rm -f conftest.$ac_objext
31943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31944 (eval $ac_compile) 2>conftest.er1
a848cd7e 31945 ac_status=$?
ac1cb8d3
VS
31946 grep -v '^ *+' conftest.er1 >conftest.err
31947 rm -f conftest.er1
31948 cat conftest.err >&5
a848cd7e
SC
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } &&
0093c2fc 31951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31953 (eval $ac_try) 2>&5
31954 ac_status=$?
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); }; } &&
31957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31959 (eval $ac_try) 2>&5
31960 ac_status=$?
31961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962 (exit $ac_status); }; }; then
31963 ac_cv_type_pid_t=yes
31964else
31965 echo "$as_me: failed program was:" >&5
31966sed 's/^/| /' conftest.$ac_ext >&5
31967
31968ac_cv_type_pid_t=no
31969fi
ac1cb8d3 31970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31971fi
31972echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31973echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31974if test $ac_cv_type_pid_t = yes; then
31975 :
31976else
31977
31978cat >>confdefs.h <<_ACEOF
31979#define pid_t int
31980_ACEOF
31981
31982fi
31983
31984echo "$as_me:$LINENO: checking for size_t" >&5
31985echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31986if test "${ac_cv_type_size_t+set}" = set; then
31987 echo $ECHO_N "(cached) $ECHO_C" >&6
31988else
31989 cat >conftest.$ac_ext <<_ACEOF
31990/* confdefs.h. */
31991_ACEOF
31992cat confdefs.h >>conftest.$ac_ext
31993cat >>conftest.$ac_ext <<_ACEOF
31994/* end confdefs.h. */
31995$ac_includes_default
31996int
31997main ()
31998{
31999if ((size_t *) 0)
32000 return 0;
32001if (sizeof (size_t))
32002 return 0;
32003 ;
32004 return 0;
32005}
32006_ACEOF
32007rm -f conftest.$ac_objext
32008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32009 (eval $ac_compile) 2>conftest.er1
a848cd7e 32010 ac_status=$?
ac1cb8d3
VS
32011 grep -v '^ *+' conftest.er1 >conftest.err
32012 rm -f conftest.er1
32013 cat conftest.err >&5
a848cd7e
SC
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); } &&
0093c2fc 32016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32018 (eval $ac_try) 2>&5
32019 ac_status=$?
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); }; } &&
32022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32024 (eval $ac_try) 2>&5
32025 ac_status=$?
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); }; }; then
32028 ac_cv_type_size_t=yes
32029else
32030 echo "$as_me: failed program was:" >&5
32031sed 's/^/| /' conftest.$ac_ext >&5
32032
32033ac_cv_type_size_t=no
32034fi
ac1cb8d3 32035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32036fi
32037echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32038echo "${ECHO_T}$ac_cv_type_size_t" >&6
32039if test $ac_cv_type_size_t = yes; then
32040 :
32041else
32042
32043cat >>confdefs.h <<_ACEOF
32044#define size_t unsigned
32045_ACEOF
32046
32047fi
32048
32049echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32050echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32051if test "${ac_cv_type_uid_t+set}" = set; then
32052 echo $ECHO_N "(cached) $ECHO_C" >&6
32053else
32054 cat >conftest.$ac_ext <<_ACEOF
32055/* confdefs.h. */
32056_ACEOF
32057cat confdefs.h >>conftest.$ac_ext
32058cat >>conftest.$ac_ext <<_ACEOF
32059/* end confdefs.h. */
32060#include <sys/types.h>
32061
32062_ACEOF
32063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32064 $EGREP "uid_t" >/dev/null 2>&1; then
32065 ac_cv_type_uid_t=yes
32066else
32067 ac_cv_type_uid_t=no
32068fi
32069rm -f conftest*
32070
32071fi
32072echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32073echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32074if test $ac_cv_type_uid_t = no; then
32075
32076cat >>confdefs.h <<\_ACEOF
32077#define uid_t int
32078_ACEOF
32079
32080
32081cat >>confdefs.h <<\_ACEOF
32082#define gid_t int
32083_ACEOF
32084
32085fi
32086
32087
d51253e8
RL
32088echo "$as_me:$LINENO: checking for ssize_t" >&5
32089echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32090if test "${ac_cv_type_ssize_t+set}" = set; then
32091 echo $ECHO_N "(cached) $ECHO_C" >&6
32092else
32093 cat >conftest.$ac_ext <<_ACEOF
32094/* confdefs.h. */
32095_ACEOF
32096cat confdefs.h >>conftest.$ac_ext
32097cat >>conftest.$ac_ext <<_ACEOF
32098/* end confdefs.h. */
32099$ac_includes_default
32100int
32101main ()
32102{
32103if ((ssize_t *) 0)
32104 return 0;
32105if (sizeof (ssize_t))
32106 return 0;
32107 ;
32108 return 0;
32109}
32110_ACEOF
32111rm -f conftest.$ac_objext
32112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32113 (eval $ac_compile) 2>conftest.er1
32114 ac_status=$?
32115 grep -v '^ *+' conftest.er1 >conftest.err
32116 rm -f conftest.er1
32117 cat conftest.err >&5
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); } &&
0093c2fc 32120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
32121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32122 (eval $ac_try) 2>&5
32123 ac_status=$?
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); }; } &&
32126 { ac_try='test -s conftest.$ac_objext'
32127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128 (eval $ac_try) 2>&5
32129 ac_status=$?
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; }; then
32132 ac_cv_type_ssize_t=yes
32133else
32134 echo "$as_me: failed program was:" >&5
32135sed 's/^/| /' conftest.$ac_ext >&5
32136
32137ac_cv_type_ssize_t=no
32138fi
32139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32140fi
32141echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32142echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32143if test $ac_cv_type_ssize_t = yes; then
32144
32145cat >>confdefs.h <<_ACEOF
32146#define HAVE_SSIZE_T 1
32147_ACEOF
32148
32149
32150fi
32151
32152
a848cd7e
SC
32153
32154
32155ac_ext=cc
32156ac_cpp='$CXXCPP $CPPFLAGS'
32157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32160
32161echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32162echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32163if test "${wx_cv_size_t_is_uint+set}" = set; then
32164 echo $ECHO_N "(cached) $ECHO_C" >&6
32165else
32166
32167 cat >conftest.$ac_ext <<_ACEOF
32168/* confdefs.h. */
32169_ACEOF
32170cat confdefs.h >>conftest.$ac_ext
32171cat >>conftest.$ac_ext <<_ACEOF
32172/* end confdefs.h. */
32173#include <stddef.h>
32174int
32175main ()
32176{
32177
32178 return 0; }
32179
32180 struct Foo { void foo(size_t); void foo(unsigned int); };
32181
32182 int bar() {
32183
32184 ;
32185 return 0;
32186}
32187_ACEOF
32188rm -f conftest.$ac_objext
32189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32190 (eval $ac_compile) 2>conftest.er1
a848cd7e 32191 ac_status=$?
ac1cb8d3
VS
32192 grep -v '^ *+' conftest.er1 >conftest.err
32193 rm -f conftest.er1
32194 cat conftest.err >&5
a848cd7e
SC
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); } &&
0093c2fc 32197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32199 (eval $ac_try) 2>&5
32200 ac_status=$?
32201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202 (exit $ac_status); }; } &&
32203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32205 (eval $ac_try) 2>&5
32206 ac_status=$?
32207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208 (exit $ac_status); }; }; then
32209 wx_cv_size_t_is_uint=no
32210else
32211 echo "$as_me: failed program was:" >&5
32212sed 's/^/| /' conftest.$ac_ext >&5
32213
32214wx_cv_size_t_is_uint=yes
32215
32216fi
ac1cb8d3 32217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32218
32219
32220fi
32221echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32222echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32223
32224if test "$wx_cv_size_t_is_uint" = "yes"; then
32225 cat >>confdefs.h <<\_ACEOF
32226#define wxSIZE_T_IS_UINT 1
32227_ACEOF
32228
32229else
32230 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32231echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32232if test "${wx_cv_size_t_is_ulong+set}" = set; then
32233 echo $ECHO_N "(cached) $ECHO_C" >&6
32234else
32235 cat >conftest.$ac_ext <<_ACEOF
32236/* confdefs.h. */
32237_ACEOF
32238cat confdefs.h >>conftest.$ac_ext
32239cat >>conftest.$ac_ext <<_ACEOF
32240/* end confdefs.h. */
32241#include <stddef.h>
32242int
32243main ()
32244{
32245
32246 return 0; }
32247
32248 struct Foo { void foo(size_t); void foo(unsigned long); };
32249
32250 int bar() {
32251
32252 ;
32253 return 0;
32254}
32255_ACEOF
32256rm -f conftest.$ac_objext
32257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32258 (eval $ac_compile) 2>conftest.er1
a848cd7e 32259 ac_status=$?
ac1cb8d3
VS
32260 grep -v '^ *+' conftest.er1 >conftest.err
32261 rm -f conftest.er1
32262 cat conftest.err >&5
a848cd7e
SC
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); } &&
0093c2fc 32265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32267 (eval $ac_try) 2>&5
32268 ac_status=$?
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); }; } &&
32271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32273 (eval $ac_try) 2>&5
32274 ac_status=$?
32275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32276 (exit $ac_status); }; }; then
32277 wx_cv_size_t_is_ulong=no
32278else
32279 echo "$as_me: failed program was:" >&5
32280sed 's/^/| /' conftest.$ac_ext >&5
32281
32282wx_cv_size_t_is_ulong=yes
32283
32284fi
ac1cb8d3 32285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32286
32287fi
32288echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32289echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32290
32291 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32292 cat >>confdefs.h <<\_ACEOF
32293#define wxSIZE_T_IS_ULONG 1
32294_ACEOF
32295
32296 fi
32297fi
32298
32299ac_ext=c
32300ac_cpp='$CPP $CPPFLAGS'
32301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32303ac_compiler_gnu=$ac_cv_c_compiler_gnu
32304
32305
32306
32307echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32308echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32309if test "${wx_cv_struct_pw_gecos+set}" = set; then
32310 echo $ECHO_N "(cached) $ECHO_C" >&6
32311else
32312
32313 cat >conftest.$ac_ext <<_ACEOF
32314/* confdefs.h. */
32315_ACEOF
32316cat confdefs.h >>conftest.$ac_ext
32317cat >>conftest.$ac_ext <<_ACEOF
32318/* end confdefs.h. */
32319#include <pwd.h>
32320int
32321main ()
32322{
32323
32324 char *p;
32325 struct passwd *pw;
32326 p = pw->pw_gecos;
32327
32328 ;
32329 return 0;
32330}
32331_ACEOF
32332rm -f conftest.$ac_objext
32333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32334 (eval $ac_compile) 2>conftest.er1
a848cd7e 32335 ac_status=$?
ac1cb8d3
VS
32336 grep -v '^ *+' conftest.er1 >conftest.err
32337 rm -f conftest.er1
32338 cat conftest.err >&5
a848cd7e
SC
32339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340 (exit $ac_status); } &&
0093c2fc 32341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32343 (eval $ac_try) 2>&5
32344 ac_status=$?
32345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346 (exit $ac_status); }; } &&
32347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32349 (eval $ac_try) 2>&5
32350 ac_status=$?
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); }; }; then
32353
32354 wx_cv_struct_pw_gecos=yes
32355
32356else
32357 echo "$as_me: failed program was:" >&5
32358sed 's/^/| /' conftest.$ac_ext >&5
32359
32360
32361 wx_cv_struct_pw_gecos=no
32362
32363
32364fi
ac1cb8d3 32365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32366
32367
32368fi
32369echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32370echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32371
32372if test "$wx_cv_struct_pw_gecos" = "yes"; then
32373 cat >>confdefs.h <<\_ACEOF
32374#define HAVE_PW_GECOS 1
32375_ACEOF
32376
32377fi
32378
32379
47a7e797 32380if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32381 cat >>confdefs.h <<\_ACEOF
32382#define wxUSE_WCHAR_T 1
32383_ACEOF
32384
32385
32386 WCSLEN_FOUND=0
32387 WCHAR_LINK=
32388
32389for ac_func in wcslen
32390do
32391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32392echo "$as_me:$LINENO: checking for $ac_func" >&5
32393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32394if eval "test \"\${$as_ac_var+set}\" = set"; then
32395 echo $ECHO_N "(cached) $ECHO_C" >&6
32396else
32397 cat >conftest.$ac_ext <<_ACEOF
32398/* confdefs.h. */
32399_ACEOF
32400cat confdefs.h >>conftest.$ac_ext
32401cat >>conftest.$ac_ext <<_ACEOF
32402/* end confdefs.h. */
ac1cb8d3
VS
32403/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32405#define $ac_func innocuous_$ac_func
32406
a848cd7e
SC
32407/* System header to define __stub macros and hopefully few prototypes,
32408 which can conflict with char $ac_func (); below.
32409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32410 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32411
a848cd7e
SC
32412#ifdef __STDC__
32413# include <limits.h>
32414#else
32415# include <assert.h>
32416#endif
ac1cb8d3
VS
32417
32418#undef $ac_func
32419
a848cd7e
SC
32420/* Override any gcc2 internal prototype to avoid an error. */
32421#ifdef __cplusplus
32422extern "C"
32423{
32424#endif
32425/* We use char because int might match the return type of a gcc2
32426 builtin and then its argument prototype would still apply. */
32427char $ac_func ();
32428/* The GNU C library defines this for functions which it implements
32429 to always fail with ENOSYS. Some functions are actually named
32430 something starting with __ and the normal name is an alias. */
32431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32432choke me
32433#else
32434char (*f) () = $ac_func;
32435#endif
32436#ifdef __cplusplus
32437}
32438#endif
32439
32440int
32441main ()
32442{
32443return f != $ac_func;
32444 ;
32445 return 0;
32446}
32447_ACEOF
32448rm -f conftest.$ac_objext conftest$ac_exeext
32449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32450 (eval $ac_link) 2>conftest.er1
a848cd7e 32451 ac_status=$?
ac1cb8d3
VS
32452 grep -v '^ *+' conftest.er1 >conftest.err
32453 rm -f conftest.er1
32454 cat conftest.err >&5
a848cd7e
SC
32455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456 (exit $ac_status); } &&
0093c2fc 32457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32459 (eval $ac_try) 2>&5
32460 ac_status=$?
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); }; } &&
32463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32465 (eval $ac_try) 2>&5
32466 ac_status=$?
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); }; }; then
32469 eval "$as_ac_var=yes"
32470else
32471 echo "$as_me: failed program was:" >&5
32472sed 's/^/| /' conftest.$ac_ext >&5
32473
32474eval "$as_ac_var=no"
32475fi
ac1cb8d3
VS
32476rm -f conftest.err conftest.$ac_objext \
32477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32478fi
32479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32480echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32481if test `eval echo '${'$as_ac_var'}'` = yes; then
32482 cat >>confdefs.h <<_ACEOF
32483#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32484_ACEOF
32485 WCSLEN_FOUND=1
32486fi
32487done
32488
32489
32490 if test "$WCSLEN_FOUND" = 0; then
32491 if test "$TOOLKIT" = "MSW"; then
32492 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32493echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32494if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32495 echo $ECHO_N "(cached) $ECHO_C" >&6
32496else
32497 ac_check_lib_save_LIBS=$LIBS
32498LIBS="-lmsvcrt $LIBS"
32499cat >conftest.$ac_ext <<_ACEOF
32500/* confdefs.h. */
32501_ACEOF
32502cat confdefs.h >>conftest.$ac_ext
32503cat >>conftest.$ac_ext <<_ACEOF
32504/* end confdefs.h. */
32505
32506/* Override any gcc2 internal prototype to avoid an error. */
32507#ifdef __cplusplus
32508extern "C"
32509#endif
32510/* We use char because int might match the return type of a gcc2
32511 builtin and then its argument prototype would still apply. */
32512char wcslen ();
32513int
32514main ()
32515{
32516wcslen ();
32517 ;
32518 return 0;
32519}
32520_ACEOF
32521rm -f conftest.$ac_objext conftest$ac_exeext
32522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32523 (eval $ac_link) 2>conftest.er1
a848cd7e 32524 ac_status=$?
ac1cb8d3
VS
32525 grep -v '^ *+' conftest.er1 >conftest.err
32526 rm -f conftest.er1
32527 cat conftest.err >&5
a848cd7e
SC
32528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529 (exit $ac_status); } &&
0093c2fc 32530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32532 (eval $ac_try) 2>&5
32533 ac_status=$?
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); }; } &&
32536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32538 (eval $ac_try) 2>&5
32539 ac_status=$?
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); }; }; then
32542 ac_cv_lib_msvcrt_wcslen=yes
32543else
32544 echo "$as_me: failed program was:" >&5
32545sed 's/^/| /' conftest.$ac_ext >&5
32546
32547ac_cv_lib_msvcrt_wcslen=no
32548fi
ac1cb8d3
VS
32549rm -f conftest.err conftest.$ac_objext \
32550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32551LIBS=$ac_check_lib_save_LIBS
32552fi
32553echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32554echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32555if test $ac_cv_lib_msvcrt_wcslen = yes; then
32556 WCHAR_OK=1
32557fi
32558
32559 else
32560 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32561echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32562if test "${ac_cv_lib_w_wcslen+set}" = set; then
32563 echo $ECHO_N "(cached) $ECHO_C" >&6
32564else
32565 ac_check_lib_save_LIBS=$LIBS
32566LIBS="-lw $LIBS"
32567cat >conftest.$ac_ext <<_ACEOF
32568/* confdefs.h. */
32569_ACEOF
32570cat confdefs.h >>conftest.$ac_ext
32571cat >>conftest.$ac_ext <<_ACEOF
32572/* end confdefs.h. */
32573
32574/* Override any gcc2 internal prototype to avoid an error. */
32575#ifdef __cplusplus
32576extern "C"
32577#endif
32578/* We use char because int might match the return type of a gcc2
32579 builtin and then its argument prototype would still apply. */
32580char wcslen ();
32581int
32582main ()
32583{
32584wcslen ();
32585 ;
32586 return 0;
32587}
32588_ACEOF
32589rm -f conftest.$ac_objext conftest$ac_exeext
32590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32591 (eval $ac_link) 2>conftest.er1
a848cd7e 32592 ac_status=$?
ac1cb8d3
VS
32593 grep -v '^ *+' conftest.er1 >conftest.err
32594 rm -f conftest.er1
32595 cat conftest.err >&5
a848cd7e
SC
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); } &&
0093c2fc 32598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32600 (eval $ac_try) 2>&5
32601 ac_status=$?
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; } &&
32604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32606 (eval $ac_try) 2>&5
32607 ac_status=$?
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); }; }; then
32610 ac_cv_lib_w_wcslen=yes
32611else
32612 echo "$as_me: failed program was:" >&5
32613sed 's/^/| /' conftest.$ac_ext >&5
32614
32615ac_cv_lib_w_wcslen=no
32616fi
ac1cb8d3
VS
32617rm -f conftest.err conftest.$ac_objext \
32618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32619LIBS=$ac_check_lib_save_LIBS
32620fi
32621echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32622echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32623if test $ac_cv_lib_w_wcslen = yes; then
32624
32625 WCHAR_LINK=" -lw"
32626 WCSLEN_FOUND=1
32627
32628fi
32629
32630 fi
32631 fi
32632
32633 if test "$WCSLEN_FOUND" = 1; then
32634 cat >>confdefs.h <<\_ACEOF
32635#define HAVE_WCSLEN 1
32636_ACEOF
32637
32638 fi
32639
efdf6afe 32640 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32641 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32642 fi
32643
efdf6afe
VZ
32644 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32645echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32646if test "${ac_cv_type_mbstate_t+set}" = set; then
32647 echo $ECHO_N "(cached) $ECHO_C" >&6
32648else
32649 cat >conftest.$ac_ext <<_ACEOF
32650/* confdefs.h. */
32651_ACEOF
32652cat confdefs.h >>conftest.$ac_ext
32653cat >>conftest.$ac_ext <<_ACEOF
32654/* end confdefs.h. */
32655#include <wchar.h>
32656
32657int
32658main ()
32659{
32660if ((mbstate_t *) 0)
32661 return 0;
32662if (sizeof (mbstate_t))
32663 return 0;
32664 ;
32665 return 0;
32666}
32667_ACEOF
32668rm -f conftest.$ac_objext
32669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32670 (eval $ac_compile) 2>conftest.er1
32671 ac_status=$?
32672 grep -v '^ *+' conftest.er1 >conftest.err
32673 rm -f conftest.er1
32674 cat conftest.err >&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); } &&
0093c2fc 32677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
32678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32679 (eval $ac_try) 2>&5
32680 ac_status=$?
32681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682 (exit $ac_status); }; } &&
32683 { ac_try='test -s conftest.$ac_objext'
32684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32685 (eval $ac_try) 2>&5
32686 ac_status=$?
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); }; }; then
32689 ac_cv_type_mbstate_t=yes
32690else
32691 echo "$as_me: failed program was:" >&5
32692sed 's/^/| /' conftest.$ac_ext >&5
32693
32694ac_cv_type_mbstate_t=no
32695fi
32696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32697fi
32698echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32699echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32700if test $ac_cv_type_mbstate_t = yes; then
32701
32702cat >>confdefs.h <<_ACEOF
32703#define HAVE_MBSTATE_T 1
32704_ACEOF
32705
a848cd7e
SC
32706
32707for ac_func in wcsrtombs
32708do
32709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32710echo "$as_me:$LINENO: checking for $ac_func" >&5
32711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32712if eval "test \"\${$as_ac_var+set}\" = set"; then
32713 echo $ECHO_N "(cached) $ECHO_C" >&6
32714else
32715 cat >conftest.$ac_ext <<_ACEOF
32716/* confdefs.h. */
32717_ACEOF
32718cat confdefs.h >>conftest.$ac_ext
32719cat >>conftest.$ac_ext <<_ACEOF
32720/* end confdefs.h. */
ac1cb8d3
VS
32721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32723#define $ac_func innocuous_$ac_func
32724
a848cd7e
SC
32725/* System header to define __stub macros and hopefully few prototypes,
32726 which can conflict with char $ac_func (); below.
32727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32728 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32729
a848cd7e
SC
32730#ifdef __STDC__
32731# include <limits.h>
32732#else
32733# include <assert.h>
32734#endif
ac1cb8d3
VS
32735
32736#undef $ac_func
32737
a848cd7e
SC
32738/* Override any gcc2 internal prototype to avoid an error. */
32739#ifdef __cplusplus
32740extern "C"
32741{
32742#endif
32743/* We use char because int might match the return type of a gcc2
32744 builtin and then its argument prototype would still apply. */
32745char $ac_func ();
32746/* The GNU C library defines this for functions which it implements
32747 to always fail with ENOSYS. Some functions are actually named
32748 something starting with __ and the normal name is an alias. */
32749#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32750choke me
32751#else
32752char (*f) () = $ac_func;
32753#endif
32754#ifdef __cplusplus
32755}
32756#endif
32757
32758int
32759main ()
32760{
32761return f != $ac_func;
32762 ;
32763 return 0;
32764}
32765_ACEOF
32766rm -f conftest.$ac_objext conftest$ac_exeext
32767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32768 (eval $ac_link) 2>conftest.er1
a848cd7e 32769 ac_status=$?
ac1cb8d3
VS
32770 grep -v '^ *+' conftest.er1 >conftest.err
32771 rm -f conftest.er1
32772 cat conftest.err >&5
a848cd7e
SC
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); } &&
0093c2fc 32775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777 (eval $ac_try) 2>&5
32778 ac_status=$?
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; } &&
32781 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32783 (eval $ac_try) 2>&5
32784 ac_status=$?
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); }; }; then
32787 eval "$as_ac_var=yes"
32788else
32789 echo "$as_me: failed program was:" >&5
32790sed 's/^/| /' conftest.$ac_ext >&5
32791
32792eval "$as_ac_var=no"
32793fi
ac1cb8d3
VS
32794rm -f conftest.err conftest.$ac_objext \
32795 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32796fi
32797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32799if test `eval echo '${'$as_ac_var'}'` = yes; then
32800 cat >>confdefs.h <<_ACEOF
32801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32802_ACEOF
32803
32804fi
32805done
32806
efdf6afe
VZ
32807fi
32808
a848cd7e
SC
32809else
32810 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32811echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32812fi
32813
32814
32815
32816ac_ext=cc
32817ac_cpp='$CXXCPP $CPPFLAGS'
32818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32821
32822
32823
4a767dd5
VZ
32824
32825for ac_func in snprintf vsnprintf
a848cd7e
SC
32826do
32827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32828echo "$as_me:$LINENO: checking for $ac_func" >&5
32829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32830if eval "test \"\${$as_ac_var+set}\" = set"; then
32831 echo $ECHO_N "(cached) $ECHO_C" >&6
32832else
32833 cat >conftest.$ac_ext <<_ACEOF
32834/* confdefs.h. */
32835_ACEOF
32836cat confdefs.h >>conftest.$ac_ext
32837cat >>conftest.$ac_ext <<_ACEOF
32838/* end confdefs.h. */
ac1cb8d3
VS
32839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32841#define $ac_func innocuous_$ac_func
32842
a848cd7e
SC
32843/* System header to define __stub macros and hopefully few prototypes,
32844 which can conflict with char $ac_func (); below.
32845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32846 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32847
a848cd7e
SC
32848#ifdef __STDC__
32849# include <limits.h>
32850#else
32851# include <assert.h>
32852#endif
ac1cb8d3
VS
32853
32854#undef $ac_func
32855
a848cd7e
SC
32856/* Override any gcc2 internal prototype to avoid an error. */
32857#ifdef __cplusplus
32858extern "C"
32859{
32860#endif
32861/* We use char because int might match the return type of a gcc2
32862 builtin and then its argument prototype would still apply. */
32863char $ac_func ();
32864/* The GNU C library defines this for functions which it implements
32865 to always fail with ENOSYS. Some functions are actually named
32866 something starting with __ and the normal name is an alias. */
32867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32868choke me
32869#else
32870char (*f) () = $ac_func;
32871#endif
32872#ifdef __cplusplus
32873}
32874#endif
32875
32876int
32877main ()
32878{
32879return f != $ac_func;
32880 ;
32881 return 0;
32882}
32883_ACEOF
32884rm -f conftest.$ac_objext conftest$ac_exeext
32885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32886 (eval $ac_link) 2>conftest.er1
a848cd7e 32887 ac_status=$?
ac1cb8d3
VS
32888 grep -v '^ *+' conftest.er1 >conftest.err
32889 rm -f conftest.er1
32890 cat conftest.err >&5
a848cd7e
SC
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); } &&
0093c2fc 32893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32895 (eval $ac_try) 2>&5
32896 ac_status=$?
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; } &&
32899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32901 (eval $ac_try) 2>&5
32902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; }; then
32905 eval "$as_ac_var=yes"
32906else
32907 echo "$as_me: failed program was:" >&5
32908sed 's/^/| /' conftest.$ac_ext >&5
32909
32910eval "$as_ac_var=no"
32911fi
ac1cb8d3
VS
32912rm -f conftest.err conftest.$ac_objext \
32913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32914fi
32915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32917if test `eval echo '${'$as_ac_var'}'` = yes; then
32918 cat >>confdefs.h <<_ACEOF
32919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32920_ACEOF
32921
32922fi
32923done
32924
32925
32926if test "$ac_cv_func_vsnprintf" = "yes"; then
32927 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32928echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32929if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32930 echo $ECHO_N "(cached) $ECHO_C" >&6
32931else
32932
efdf6afe 32933 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32934/* confdefs.h. */
32935_ACEOF
32936cat confdefs.h >>conftest.$ac_ext
32937cat >>conftest.$ac_ext <<_ACEOF
32938/* end confdefs.h. */
32939
32940 #include <stdio.h>
32941 #include <stdarg.h>
efdf6afe
VZ
32942 #ifdef __MSL__
32943 #if __MSL__ >= 0x6000
32944 namespace std {}
32945 using namespace std;
32946 #endif
32947 #endif
a848cd7e
SC
32948
32949int
32950main ()
32951{
32952
32953 char *buf;
32954 va_list ap;
62fa8b3a 32955 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
32956
32957 ;
32958 return 0;
32959}
32960_ACEOF
32961rm -f conftest.$ac_objext
32962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32963 (eval $ac_compile) 2>conftest.er1
32964 ac_status=$?
32965 grep -v '^ *+' conftest.er1 >conftest.err
32966 rm -f conftest.er1
32967 cat conftest.err >&5
32968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); } &&
0093c2fc 32970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
32971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32972 (eval $ac_try) 2>&5
32973 ac_status=$?
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); }; } &&
32976 { ac_try='test -s conftest.$ac_objext'
32977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32978 (eval $ac_try) 2>&5
32979 ac_status=$?
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); }; }; then
32982 wx_cv_func_vsnprintf_decl=yes
32983else
32984 echo "$as_me: failed program was:" >&5
32985sed 's/^/| /' conftest.$ac_ext >&5
32986
a848cd7e
SC
32987wx_cv_func_vsnprintf_decl=no
32988
32989fi
ac1cb8d3 32990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32991
32992
32993fi
32994echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
32995echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
32996
32997 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
32998 cat >>confdefs.h <<\_ACEOF
32999#define HAVE_VSNPRINTF_DECL 1
33000_ACEOF
33001
62fa8b3a
MW
33002
33003 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33004echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33005if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33006 echo $ECHO_N "(cached) $ECHO_C" >&6
33007else
33008
33009 cat >conftest.$ac_ext <<_ACEOF
33010/* confdefs.h. */
33011_ACEOF
33012cat confdefs.h >>conftest.$ac_ext
33013cat >>conftest.$ac_ext <<_ACEOF
33014/* end confdefs.h. */
33015
33016 #include <stdio.h>
33017 #include <stdarg.h>
33018 #ifdef __MSL__
33019 #if __MSL__ >= 0x6000
33020 namespace std {}
33021 using namespace std;
33022 #endif
33023 #endif
33024
33025int
33026main ()
33027{
33028
33029 char *buf;
33030 va_list ap;
33031 const char *fmt = "%s";
33032 vsnprintf(buf, 10u, fmt, ap);
33033
33034 ;
33035 return 0;
33036}
33037_ACEOF
33038rm -f conftest.$ac_objext
33039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33040 (eval $ac_compile) 2>conftest.er1
33041 ac_status=$?
33042 grep -v '^ *+' conftest.er1 >conftest.err
33043 rm -f conftest.er1
33044 cat conftest.err >&5
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); } &&
0093c2fc 33047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33049 (eval $ac_try) 2>&5
33050 ac_status=$?
33051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052 (exit $ac_status); }; } &&
33053 { ac_try='test -s conftest.$ac_objext'
33054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33055 (eval $ac_try) 2>&5
33056 ac_status=$?
33057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058 (exit $ac_status); }; }; then
33059 wx_cv_func_broken_vsnprintf_decl=no
33060else
33061 echo "$as_me: failed program was:" >&5
33062sed 's/^/| /' conftest.$ac_ext >&5
33063
33064wx_cv_func_broken_vsnprintf_decl=yes
33065
33066fi
33067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33068
33069
33070fi
33071echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33072echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33073
33074 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33075 cat >>confdefs.h <<\_ACEOF
33076#define HAVE_BROKEN_VSNPRINTF_DECL 1
33077_ACEOF
33078
33079 fi
a848cd7e
SC
33080 fi
33081fi
33082
4a767dd5
VZ
33083if test "$ac_cv_func_snprintf" = "yes"; then
33084 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33085echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33086if test "${wx_cv_func_snprintf_decl+set}" = set; then
33087 echo $ECHO_N "(cached) $ECHO_C" >&6
33088else
33089
33090 cat >conftest.$ac_ext <<_ACEOF
33091/* confdefs.h. */
33092_ACEOF
33093cat confdefs.h >>conftest.$ac_ext
33094cat >>conftest.$ac_ext <<_ACEOF
33095/* end confdefs.h. */
33096
33097 #include <stdio.h>
33098 #include <stdarg.h>
33099 #ifdef __MSL__
33100 #if __MSL__ >= 0x6000
33101 namespace std {}
33102 using namespace std;
33103 #endif
33104 #endif
33105
33106int
33107main ()
33108{
33109
33110 char *buf;
62fa8b3a 33111 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33112
33113 ;
33114 return 0;
33115}
33116_ACEOF
33117rm -f conftest.$ac_objext
33118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33119 (eval $ac_compile) 2>conftest.er1
33120 ac_status=$?
33121 grep -v '^ *+' conftest.er1 >conftest.err
33122 rm -f conftest.er1
33123 cat conftest.err >&5
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); } &&
0093c2fc 33126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
33127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128 (eval $ac_try) 2>&5
33129 ac_status=$?
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; } &&
33132 { ac_try='test -s conftest.$ac_objext'
33133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33134 (eval $ac_try) 2>&5
33135 ac_status=$?
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); }; }; then
33138 wx_cv_func_snprintf_decl=yes
33139else
33140 echo "$as_me: failed program was:" >&5
33141sed 's/^/| /' conftest.$ac_ext >&5
33142
33143wx_cv_func_snprintf_decl=no
33144
33145fi
33146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33147
33148
33149fi
33150echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33151echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33152
33153 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33154 cat >>confdefs.h <<\_ACEOF
33155#define HAVE_SNPRINTF_DECL 1
33156_ACEOF
33157
62fa8b3a
MW
33158
33159 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33160echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33161if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33162 echo $ECHO_N "(cached) $ECHO_C" >&6
33163else
33164
33165 cat >conftest.$ac_ext <<_ACEOF
33166/* confdefs.h. */
33167_ACEOF
33168cat confdefs.h >>conftest.$ac_ext
33169cat >>conftest.$ac_ext <<_ACEOF
33170/* end confdefs.h. */
33171
33172 #include <stdio.h>
33173 #include <stdarg.h>
33174 #ifdef __MSL__
33175 #if __MSL__ >= 0x6000
33176 namespace std {}
33177 using namespace std;
33178 #endif
33179 #endif
33180
33181int
33182main ()
33183{
33184
33185 char *buf;
33186 const char *fmt = "%s";
33187 snprintf(buf, 10u, fmt, "wx");
33188
33189 ;
33190 return 0;
33191}
33192_ACEOF
33193rm -f conftest.$ac_objext
33194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33195 (eval $ac_compile) 2>conftest.er1
33196 ac_status=$?
33197 grep -v '^ *+' conftest.er1 >conftest.err
33198 rm -f conftest.er1
33199 cat conftest.err >&5
33200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201 (exit $ac_status); } &&
0093c2fc 33202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33204 (eval $ac_try) 2>&5
33205 ac_status=$?
33206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); }; } &&
33208 { ac_try='test -s conftest.$ac_objext'
33209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33210 (eval $ac_try) 2>&5
33211 ac_status=$?
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); }; }; then
33214 wx_cv_func_broken_snprintf_decl=no
33215else
33216 echo "$as_me: failed program was:" >&5
33217sed 's/^/| /' conftest.$ac_ext >&5
33218
33219wx_cv_func_broken_snprintf_decl=yes
33220
33221fi
33222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33223
33224
33225fi
33226echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33227echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33228
33229 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33230 cat >>confdefs.h <<\_ACEOF
33231#define HAVE_BROKEN_SNPRINTF_DECL 1
33232_ACEOF
33233
33234 fi
4a767dd5
VZ
33235 fi
33236fi
33237
a848cd7e
SC
33238if test "$wxUSE_UNICODE" = yes; then
33239
33240
33241
fbe47c7b
VS
33242
33243
33244
33245for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33246do
33247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33248echo "$as_me:$LINENO: checking for $ac_func" >&5
33249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33250if eval "test \"\${$as_ac_var+set}\" = set"; then
33251 echo $ECHO_N "(cached) $ECHO_C" >&6
33252else
33253 cat >conftest.$ac_ext <<_ACEOF
33254/* confdefs.h. */
33255_ACEOF
33256cat confdefs.h >>conftest.$ac_ext
33257cat >>conftest.$ac_ext <<_ACEOF
33258/* end confdefs.h. */
ac1cb8d3
VS
33259/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33261#define $ac_func innocuous_$ac_func
33262
a848cd7e
SC
33263/* System header to define __stub macros and hopefully few prototypes,
33264 which can conflict with char $ac_func (); below.
33265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33266 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33267
a848cd7e
SC
33268#ifdef __STDC__
33269# include <limits.h>
33270#else
33271# include <assert.h>
33272#endif
ac1cb8d3
VS
33273
33274#undef $ac_func
33275
a848cd7e
SC
33276/* Override any gcc2 internal prototype to avoid an error. */
33277#ifdef __cplusplus
33278extern "C"
33279{
33280#endif
33281/* We use char because int might match the return type of a gcc2
33282 builtin and then its argument prototype would still apply. */
33283char $ac_func ();
33284/* The GNU C library defines this for functions which it implements
33285 to always fail with ENOSYS. Some functions are actually named
33286 something starting with __ and the normal name is an alias. */
33287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33288choke me
33289#else
33290char (*f) () = $ac_func;
33291#endif
33292#ifdef __cplusplus
33293}
33294#endif
33295
33296int
33297main ()
33298{
33299return f != $ac_func;
33300 ;
33301 return 0;
33302}
33303_ACEOF
33304rm -f conftest.$ac_objext conftest$ac_exeext
33305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33306 (eval $ac_link) 2>conftest.er1
a848cd7e 33307 ac_status=$?
ac1cb8d3
VS
33308 grep -v '^ *+' conftest.er1 >conftest.err
33309 rm -f conftest.er1
33310 cat conftest.err >&5
a848cd7e
SC
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); } &&
0093c2fc 33313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33315 (eval $ac_try) 2>&5
33316 ac_status=$?
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); }; } &&
33319 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33321 (eval $ac_try) 2>&5
33322 ac_status=$?
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); }; }; then
33325 eval "$as_ac_var=yes"
33326else
33327 echo "$as_me: failed program was:" >&5
33328sed 's/^/| /' conftest.$ac_ext >&5
33329
33330eval "$as_ac_var=no"
33331fi
ac1cb8d3
VS
33332rm -f conftest.err conftest.$ac_objext \
33333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33334fi
33335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33336echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33337if test `eval echo '${'$as_ac_var'}'` = yes; then
33338 cat >>confdefs.h <<_ACEOF
33339#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33340_ACEOF
33341
33342fi
33343done
33344
33345
33346 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33347echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33348 cat >conftest.$ac_ext <<_ACEOF
33349/* confdefs.h. */
33350_ACEOF
33351cat confdefs.h >>conftest.$ac_ext
33352cat >>conftest.$ac_ext <<_ACEOF
33353/* end confdefs.h. */
33354#include <wchar.h>
33355int
33356main ()
33357{
33358&_vsnwprintf;
33359 ;
33360 return 0;
33361}
33362_ACEOF
33363rm -f conftest.$ac_objext
33364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33365 (eval $ac_compile) 2>conftest.er1
a848cd7e 33366 ac_status=$?
ac1cb8d3
VS
33367 grep -v '^ *+' conftest.er1 >conftest.err
33368 rm -f conftest.er1
33369 cat conftest.err >&5
a848cd7e
SC
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); } &&
0093c2fc 33372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33375 ac_status=$?
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; } &&
33378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380 (eval $ac_try) 2>&5
33381 ac_status=$?
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); }; }; then
33384 echo "$as_me:$LINENO: result: yes" >&5
33385echo "${ECHO_T}yes" >&6
33386 cat >>confdefs.h <<\_ACEOF
33387#define HAVE__VSNWPRINTF 1
33388_ACEOF
33389
33390else
33391 echo "$as_me: failed program was:" >&5
33392sed 's/^/| /' conftest.$ac_ext >&5
33393
33394echo "$as_me:$LINENO: result: no" >&5
33395echo "${ECHO_T}no" >&6
33396fi
ac1cb8d3 33397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33398fi
33399
33400ac_ext=c
33401ac_cpp='$CPP $CPPFLAGS'
33402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33404ac_compiler_gnu=$ac_cv_c_compiler_gnu
33405
33406
6ebeb4c7
VZ
33407if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33408
33409for ac_func in fnmatch
33410do
33411as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33412echo "$as_me:$LINENO: checking for $ac_func" >&5
33413echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33414if eval "test \"\${$as_ac_var+set}\" = set"; then
33415 echo $ECHO_N "(cached) $ECHO_C" >&6
33416else
33417 cat >conftest.$ac_ext <<_ACEOF
33418/* confdefs.h. */
33419_ACEOF
33420cat confdefs.h >>conftest.$ac_ext
33421cat >>conftest.$ac_ext <<_ACEOF
33422/* end confdefs.h. */
33423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33425#define $ac_func innocuous_$ac_func
33426
33427/* System header to define __stub macros and hopefully few prototypes,
33428 which can conflict with char $ac_func (); below.
33429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33430 <limits.h> exists even on freestanding compilers. */
33431
33432#ifdef __STDC__
33433# include <limits.h>
33434#else
33435# include <assert.h>
33436#endif
33437
33438#undef $ac_func
33439
33440/* Override any gcc2 internal prototype to avoid an error. */
33441#ifdef __cplusplus
33442extern "C"
33443{
33444#endif
33445/* We use char because int might match the return type of a gcc2
33446 builtin and then its argument prototype would still apply. */
33447char $ac_func ();
33448/* The GNU C library defines this for functions which it implements
33449 to always fail with ENOSYS. Some functions are actually named
33450 something starting with __ and the normal name is an alias. */
33451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33452choke me
33453#else
33454char (*f) () = $ac_func;
33455#endif
33456#ifdef __cplusplus
33457}
33458#endif
33459
33460int
33461main ()
33462{
33463return f != $ac_func;
33464 ;
33465 return 0;
33466}
33467_ACEOF
33468rm -f conftest.$ac_objext conftest$ac_exeext
33469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33470 (eval $ac_link) 2>conftest.er1
33471 ac_status=$?
33472 grep -v '^ *+' conftest.er1 >conftest.err
33473 rm -f conftest.er1
33474 cat conftest.err >&5
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); } &&
0093c2fc 33477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33479 (eval $ac_try) 2>&5
33480 ac_status=$?
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); }; } &&
33483 { ac_try='test -s conftest$ac_exeext'
33484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33485 (eval $ac_try) 2>&5
33486 ac_status=$?
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); }; }; then
33489 eval "$as_ac_var=yes"
33490else
33491 echo "$as_me: failed program was:" >&5
33492sed 's/^/| /' conftest.$ac_ext >&5
33493
33494eval "$as_ac_var=no"
33495fi
33496rm -f conftest.err conftest.$ac_objext \
33497 conftest$ac_exeext conftest.$ac_ext
33498fi
33499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33500echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33501if test `eval echo '${'$as_ac_var'}'` = yes; then
33502 cat >>confdefs.h <<_ACEOF
33503#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33504_ACEOF
33505
33506fi
33507done
33508
33509fi
33510
33511if test "$wxUSE_FILE" = "yes"; then
33512
33513for ac_func in fsync
33514do
33515as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33516echo "$as_me:$LINENO: checking for $ac_func" >&5
33517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33518if eval "test \"\${$as_ac_var+set}\" = set"; then
33519 echo $ECHO_N "(cached) $ECHO_C" >&6
33520else
33521 cat >conftest.$ac_ext <<_ACEOF
33522/* confdefs.h. */
33523_ACEOF
33524cat confdefs.h >>conftest.$ac_ext
33525cat >>conftest.$ac_ext <<_ACEOF
33526/* end confdefs.h. */
33527/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33529#define $ac_func innocuous_$ac_func
33530
33531/* System header to define __stub macros and hopefully few prototypes,
33532 which can conflict with char $ac_func (); below.
33533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33534 <limits.h> exists even on freestanding compilers. */
33535
33536#ifdef __STDC__
33537# include <limits.h>
33538#else
33539# include <assert.h>
33540#endif
33541
33542#undef $ac_func
33543
33544/* Override any gcc2 internal prototype to avoid an error. */
33545#ifdef __cplusplus
33546extern "C"
33547{
33548#endif
33549/* We use char because int might match the return type of a gcc2
33550 builtin and then its argument prototype would still apply. */
33551char $ac_func ();
33552/* The GNU C library defines this for functions which it implements
33553 to always fail with ENOSYS. Some functions are actually named
33554 something starting with __ and the normal name is an alias. */
33555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33556choke me
33557#else
33558char (*f) () = $ac_func;
33559#endif
33560#ifdef __cplusplus
33561}
33562#endif
33563
33564int
33565main ()
33566{
33567return f != $ac_func;
33568 ;
33569 return 0;
33570}
33571_ACEOF
33572rm -f conftest.$ac_objext conftest$ac_exeext
33573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33574 (eval $ac_link) 2>conftest.er1
33575 ac_status=$?
33576 grep -v '^ *+' conftest.er1 >conftest.err
33577 rm -f conftest.er1
33578 cat conftest.err >&5
33579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580 (exit $ac_status); } &&
0093c2fc 33581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33583 (eval $ac_try) 2>&5
33584 ac_status=$?
33585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586 (exit $ac_status); }; } &&
33587 { ac_try='test -s conftest$ac_exeext'
33588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33589 (eval $ac_try) 2>&5
33590 ac_status=$?
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); }; }; then
33593 eval "$as_ac_var=yes"
33594else
33595 echo "$as_me: failed program was:" >&5
33596sed 's/^/| /' conftest.$ac_ext >&5
33597
33598eval "$as_ac_var=no"
33599fi
33600rm -f conftest.err conftest.$ac_objext \
33601 conftest$ac_exeext conftest.$ac_ext
33602fi
33603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33604echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33605if test `eval echo '${'$as_ac_var'}'` = yes; then
33606 cat >>confdefs.h <<_ACEOF
33607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33608_ACEOF
33609
33610fi
33611done
33612
33613fi
a848cd7e
SC
33614
33615
33616if test "$TOOLKIT" != "MSW"; then
33617
33618
33619
33620
33621ac_ext=cc
33622ac_cpp='$CXXCPP $CPPFLAGS'
33623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33626
33627
33628
33629
33630# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33631if test "${with_libiconv_prefix+set}" = set; then
33632 withval="$with_libiconv_prefix"
33633
33634 for dir in `echo "$withval" | tr : ' '`; do
33635 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33636 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33637 done
33638
33639fi;
33640
33641 echo "$as_me:$LINENO: checking for iconv" >&5
33642echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33643if test "${am_cv_func_iconv+set}" = set; then
33644 echo $ECHO_N "(cached) $ECHO_C" >&6
33645else
33646
33647 am_cv_func_iconv="no, consider installing GNU libiconv"
33648 am_cv_lib_iconv=no
33649 cat >conftest.$ac_ext <<_ACEOF
33650/* confdefs.h. */
33651_ACEOF
33652cat confdefs.h >>conftest.$ac_ext
33653cat >>conftest.$ac_ext <<_ACEOF
33654/* end confdefs.h. */
33655#include <stdlib.h>
33656#include <iconv.h>
33657int
33658main ()
33659{
33660iconv_t cd = iconv_open("","");
33661 iconv(cd,NULL,NULL,NULL,NULL);
33662 iconv_close(cd);
33663 ;
33664 return 0;
33665}
33666_ACEOF
33667rm -f conftest.$ac_objext conftest$ac_exeext
33668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33669 (eval $ac_link) 2>conftest.er1
a848cd7e 33670 ac_status=$?
ac1cb8d3
VS
33671 grep -v '^ *+' conftest.er1 >conftest.err
33672 rm -f conftest.er1
33673 cat conftest.err >&5
a848cd7e
SC
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); } &&
0093c2fc 33676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33678 (eval $ac_try) 2>&5
33679 ac_status=$?
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681 (exit $ac_status); }; } &&
33682 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33684 (eval $ac_try) 2>&5
33685 ac_status=$?
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); }; }; then
33688 am_cv_func_iconv=yes
33689else
33690 echo "$as_me: failed program was:" >&5
33691sed 's/^/| /' conftest.$ac_ext >&5
33692
33693fi
ac1cb8d3
VS
33694rm -f conftest.err conftest.$ac_objext \
33695 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33696 if test "$am_cv_func_iconv" != yes; then
33697 am_save_LIBS="$LIBS"
33698 LIBS="$LIBS -liconv"
33699 cat >conftest.$ac_ext <<_ACEOF
33700/* confdefs.h. */
33701_ACEOF
33702cat confdefs.h >>conftest.$ac_ext
33703cat >>conftest.$ac_ext <<_ACEOF
33704/* end confdefs.h. */
33705#include <stdlib.h>
33706#include <iconv.h>
33707int
33708main ()
33709{
33710iconv_t cd = iconv_open("","");
33711 iconv(cd,NULL,NULL,NULL,NULL);
33712 iconv_close(cd);
33713 ;
33714 return 0;
33715}
33716_ACEOF
33717rm -f conftest.$ac_objext conftest$ac_exeext
33718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33719 (eval $ac_link) 2>conftest.er1
a848cd7e 33720 ac_status=$?
ac1cb8d3
VS
33721 grep -v '^ *+' conftest.er1 >conftest.err
33722 rm -f conftest.er1
33723 cat conftest.err >&5
a848cd7e
SC
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); } &&
0093c2fc 33726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33728 (eval $ac_try) 2>&5
33729 ac_status=$?
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); }; } &&
33732 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33734 (eval $ac_try) 2>&5
33735 ac_status=$?
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); }; }; then
33738 am_cv_lib_iconv=yes
33739 am_cv_func_iconv=yes
33740else
33741 echo "$as_me: failed program was:" >&5
33742sed 's/^/| /' conftest.$ac_ext >&5
33743
33744fi
ac1cb8d3
VS
33745rm -f conftest.err conftest.$ac_objext \
33746 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33747 LIBS="$am_save_LIBS"
33748 fi
33749
33750fi
33751echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33752echo "${ECHO_T}$am_cv_func_iconv" >&6
33753 if test "$am_cv_func_iconv" = yes; then
33754
33755cat >>confdefs.h <<\_ACEOF
33756#define HAVE_ICONV 1
33757_ACEOF
33758
33759 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33760echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33761if test "${wx_cv_func_iconv_const+set}" = set; then
33762 echo $ECHO_N "(cached) $ECHO_C" >&6
33763else
33764 cat >conftest.$ac_ext <<_ACEOF
33765/* confdefs.h. */
33766_ACEOF
33767cat confdefs.h >>conftest.$ac_ext
33768cat >>conftest.$ac_ext <<_ACEOF
33769/* end confdefs.h. */
33770
33771#include <stdlib.h>
33772#include <iconv.h>
33773extern
33774#ifdef __cplusplus
33775"C"
33776#endif
33777#if defined(__STDC__) || defined(__cplusplus)
33778size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33779#else
33780size_t iconv();
33781#endif
33782
33783int
33784main ()
33785{
33786
33787 ;
33788 return 0;
33789}
33790_ACEOF
33791rm -f conftest.$ac_objext
33792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33793 (eval $ac_compile) 2>conftest.er1
a848cd7e 33794 ac_status=$?
ac1cb8d3
VS
33795 grep -v '^ *+' conftest.er1 >conftest.err
33796 rm -f conftest.er1
33797 cat conftest.err >&5
a848cd7e
SC
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); } &&
0093c2fc 33800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802 (eval $ac_try) 2>&5
33803 ac_status=$?
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; } &&
33806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808 (eval $ac_try) 2>&5
33809 ac_status=$?
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; }; then
33812 wx_cv_func_iconv_const="no"
33813else
33814 echo "$as_me: failed program was:" >&5
33815sed 's/^/| /' conftest.$ac_ext >&5
33816
33817wx_cv_func_iconv_const="yes"
33818
33819fi
ac1cb8d3 33820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33821
33822fi
33823echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33824echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33825
33826 iconv_const=
33827 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33828 iconv_const="const"
33829 fi
33830
33831
33832cat >>confdefs.h <<_ACEOF
33833#define ICONV_CONST $iconv_const
33834_ACEOF
33835
33836 fi
33837 LIBICONV=
33838 if test "$am_cv_lib_iconv" = yes; then
33839 LIBICONV="-liconv"
33840 fi
33841
33842
33843LIBS="$LIBICONV $LIBS"
33844ac_ext=c
33845ac_cpp='$CPP $CPPFLAGS'
33846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33848ac_compiler_gnu=$ac_cv_c_compiler_gnu
33849
33850
33851if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33852
33853for ac_func in sigaction
33854do
33855as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33856echo "$as_me:$LINENO: checking for $ac_func" >&5
33857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33858if eval "test \"\${$as_ac_var+set}\" = set"; then
33859 echo $ECHO_N "(cached) $ECHO_C" >&6
33860else
33861 cat >conftest.$ac_ext <<_ACEOF
33862/* confdefs.h. */
33863_ACEOF
33864cat confdefs.h >>conftest.$ac_ext
33865cat >>conftest.$ac_ext <<_ACEOF
33866/* end confdefs.h. */
ac1cb8d3
VS
33867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33869#define $ac_func innocuous_$ac_func
33870
a848cd7e
SC
33871/* System header to define __stub macros and hopefully few prototypes,
33872 which can conflict with char $ac_func (); below.
33873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33874 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33875
a848cd7e
SC
33876#ifdef __STDC__
33877# include <limits.h>
33878#else
33879# include <assert.h>
33880#endif
ac1cb8d3
VS
33881
33882#undef $ac_func
33883
a848cd7e
SC
33884/* Override any gcc2 internal prototype to avoid an error. */
33885#ifdef __cplusplus
33886extern "C"
33887{
33888#endif
33889/* We use char because int might match the return type of a gcc2
33890 builtin and then its argument prototype would still apply. */
33891char $ac_func ();
33892/* The GNU C library defines this for functions which it implements
33893 to always fail with ENOSYS. Some functions are actually named
33894 something starting with __ and the normal name is an alias. */
33895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33896choke me
33897#else
33898char (*f) () = $ac_func;
33899#endif
33900#ifdef __cplusplus
33901}
33902#endif
33903
33904int
33905main ()
33906{
33907return f != $ac_func;
33908 ;
33909 return 0;
33910}
33911_ACEOF
33912rm -f conftest.$ac_objext conftest$ac_exeext
33913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33914 (eval $ac_link) 2>conftest.er1
a848cd7e 33915 ac_status=$?
ac1cb8d3
VS
33916 grep -v '^ *+' conftest.er1 >conftest.err
33917 rm -f conftest.er1
33918 cat conftest.err >&5
a848cd7e
SC
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); } &&
0093c2fc 33921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923 (eval $ac_try) 2>&5
33924 ac_status=$?
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929 (eval $ac_try) 2>&5
33930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; }; then
33933 eval "$as_ac_var=yes"
33934else
33935 echo "$as_me: failed program was:" >&5
33936sed 's/^/| /' conftest.$ac_ext >&5
33937
33938eval "$as_ac_var=no"
33939fi
ac1cb8d3
VS
33940rm -f conftest.err conftest.$ac_objext \
33941 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33942fi
33943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33944echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33945if test `eval echo '${'$as_ac_var'}'` = yes; then
33946 cat >>confdefs.h <<_ACEOF
33947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33948_ACEOF
33949
33950fi
33951done
33952
33953
33954 if test "$ac_cv_func_sigaction" = "no"; then
33955 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
33956echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
33957 wxUSE_ON_FATAL_EXCEPTION=no
33958 fi
33959
33960 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
33961
33962
33963 ac_ext=cc
33964ac_cpp='$CXXCPP $CPPFLAGS'
33965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33968
33969
33970 echo "$as_me:$LINENO: checking for sa_handler type" >&5
33971echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
33972if test "${wx_cv_type_sa_handler+set}" = set; then
33973 echo $ECHO_N "(cached) $ECHO_C" >&6
33974else
33975
33976 cat >conftest.$ac_ext <<_ACEOF
33977/* confdefs.h. */
33978_ACEOF
33979cat confdefs.h >>conftest.$ac_ext
33980cat >>conftest.$ac_ext <<_ACEOF
33981/* end confdefs.h. */
33982#include <signal.h>
33983int
33984main ()
33985{
33986
33987 extern void testSigHandler(int);
33988
33989 struct sigaction sa;
33990 sa.sa_handler = testSigHandler;
33991
33992 ;
33993 return 0;
33994}
33995_ACEOF
33996rm -f conftest.$ac_objext
33997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33998 (eval $ac_compile) 2>conftest.er1
a848cd7e 33999 ac_status=$?
ac1cb8d3
VS
34000 grep -v '^ *+' conftest.er1 >conftest.err
34001 rm -f conftest.er1
34002 cat conftest.err >&5
a848cd7e
SC
34003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34004 (exit $ac_status); } &&
0093c2fc 34005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34007 (eval $ac_try) 2>&5
34008 ac_status=$?
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); }; } &&
34011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34013 (eval $ac_try) 2>&5
34014 ac_status=$?
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); }; }; then
34017
34018 wx_cv_type_sa_handler=int
34019
34020else
34021 echo "$as_me: failed program was:" >&5
34022sed 's/^/| /' conftest.$ac_ext >&5
34023
34024
34025 wx_cv_type_sa_handler=void
34026
34027fi
ac1cb8d3 34028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34029
34030fi
34031echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34032echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34033
34034 ac_ext=c
34035ac_cpp='$CPP $CPPFLAGS'
34036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34038ac_compiler_gnu=$ac_cv_c_compiler_gnu
34039
34040
34041 cat >>confdefs.h <<_ACEOF
34042#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34043_ACEOF
34044
34045 fi
34046fi
34047
eaff0f0d
VZ
34048if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34049
34050
34051 ac_ext=cc
34052ac_cpp='$CXXCPP $CPPFLAGS'
34053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34056
34057
34058 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34059echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34060if test "${wx_cv_func_backtrace+set}" = set; then
34061 echo $ECHO_N "(cached) $ECHO_C" >&6
34062else
34063
34064 cat >conftest.$ac_ext <<_ACEOF
34065/* confdefs.h. */
34066_ACEOF
34067cat confdefs.h >>conftest.$ac_ext
34068cat >>conftest.$ac_ext <<_ACEOF
34069/* end confdefs.h. */
34070#include <execinfo.h>
34071int
34072main ()
34073{
34074
34075 void *trace[1];
34076 char **messages;
34077
34078 backtrace(trace, 1);
34079 messages = backtrace_symbols(trace, 1);
34080
34081 ;
34082 return 0;
34083}
34084_ACEOF
34085rm -f conftest.$ac_objext
34086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34087 (eval $ac_compile) 2>conftest.er1
34088 ac_status=$?
34089 grep -v '^ *+' conftest.er1 >conftest.err
34090 rm -f conftest.er1
34091 cat conftest.err >&5
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093 (exit $ac_status); } &&
0093c2fc 34094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34096 (eval $ac_try) 2>&5
34097 ac_status=$?
34098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34099 (exit $ac_status); }; } &&
34100 { ac_try='test -s conftest.$ac_objext'
34101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34102 (eval $ac_try) 2>&5
34103 ac_status=$?
34104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); }; }; then
34106 wx_cv_func_backtrace=yes
34107else
34108 echo "$as_me: failed program was:" >&5
34109sed 's/^/| /' conftest.$ac_ext >&5
34110
34111wx_cv_func_backtrace=no
34112
34113fi
34114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34115
34116
34117fi
34118echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34119echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34120
34121
34122 if test "$wx_cv_func_backtrace" = "no"; then
34123 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34124echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34125 wxUSE_STACKWALKER=no
34126 else
34127 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34128echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34129if test "${wx_cv_func_cxa_demangle+set}" = set; then
34130 echo $ECHO_N "(cached) $ECHO_C" >&6
34131else
34132
34133 cat >conftest.$ac_ext <<_ACEOF
34134/* confdefs.h. */
34135_ACEOF
34136cat confdefs.h >>conftest.$ac_ext
34137cat >>conftest.$ac_ext <<_ACEOF
34138/* end confdefs.h. */
34139#include <cxxabi.h>
34140int
34141main ()
34142{
34143
34144 int rc;
34145 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34146
34147 ;
34148 return 0;
34149}
34150_ACEOF
dfe0c803
JS
34151rm -f conftest.$ac_objext conftest$ac_exeext
34152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34153 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34154 ac_status=$?
34155 grep -v '^ *+' conftest.er1 >conftest.err
34156 rm -f conftest.er1
34157 cat conftest.err >&5
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); } &&
0093c2fc 34160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34162 (eval $ac_try) 2>&5
34163 ac_status=$?
34164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165 (exit $ac_status); }; } &&
dfe0c803 34166 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34168 (eval $ac_try) 2>&5
34169 ac_status=$?
34170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171 (exit $ac_status); }; }; then
34172 wx_cv_func_cxa_demangle=yes
34173else
34174 echo "$as_me: failed program was:" >&5
34175sed 's/^/| /' conftest.$ac_ext >&5
34176
34177wx_cv_func_cxa_demangle=no
34178
34179fi
dfe0c803
JS
34180rm -f conftest.err conftest.$ac_objext \
34181 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34182
34183
34184fi
34185echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34186echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34187
34188 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34189 cat >>confdefs.h <<\_ACEOF
34190#define HAVE_CXA_DEMANGLE 1
34191_ACEOF
34192
34193 fi
34194 fi
34195
34196 ac_ext=c
34197ac_cpp='$CPP $CPPFLAGS'
34198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34200ac_compiler_gnu=$ac_cv_c_compiler_gnu
34201
34202fi
34203
898beab1
DE
34204if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34205 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34206echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34207 wxUSE_STACKWALKER=no
34208fi
34209
34210
a848cd7e
SC
34211
34212
34213for ac_func in mkstemp mktemp
34214do
34215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34216echo "$as_me:$LINENO: checking for $ac_func" >&5
34217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34218if eval "test \"\${$as_ac_var+set}\" = set"; then
34219 echo $ECHO_N "(cached) $ECHO_C" >&6
34220else
34221 cat >conftest.$ac_ext <<_ACEOF
34222/* confdefs.h. */
34223_ACEOF
34224cat confdefs.h >>conftest.$ac_ext
34225cat >>conftest.$ac_ext <<_ACEOF
34226/* end confdefs.h. */
ac1cb8d3
VS
34227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34229#define $ac_func innocuous_$ac_func
34230
a848cd7e
SC
34231/* System header to define __stub macros and hopefully few prototypes,
34232 which can conflict with char $ac_func (); below.
34233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34234 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34235
a848cd7e
SC
34236#ifdef __STDC__
34237# include <limits.h>
34238#else
34239# include <assert.h>
34240#endif
ac1cb8d3
VS
34241
34242#undef $ac_func
34243
a848cd7e
SC
34244/* Override any gcc2 internal prototype to avoid an error. */
34245#ifdef __cplusplus
34246extern "C"
34247{
34248#endif
34249/* We use char because int might match the return type of a gcc2
34250 builtin and then its argument prototype would still apply. */
34251char $ac_func ();
34252/* The GNU C library defines this for functions which it implements
34253 to always fail with ENOSYS. Some functions are actually named
34254 something starting with __ and the normal name is an alias. */
34255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34256choke me
34257#else
34258char (*f) () = $ac_func;
34259#endif
34260#ifdef __cplusplus
34261}
34262#endif
34263
34264int
34265main ()
34266{
34267return f != $ac_func;
34268 ;
34269 return 0;
34270}
34271_ACEOF
34272rm -f conftest.$ac_objext conftest$ac_exeext
34273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34274 (eval $ac_link) 2>conftest.er1
a848cd7e 34275 ac_status=$?
ac1cb8d3
VS
34276 grep -v '^ *+' conftest.er1 >conftest.err
34277 rm -f conftest.er1
34278 cat conftest.err >&5
a848cd7e
SC
34279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280 (exit $ac_status); } &&
0093c2fc 34281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34283 (eval $ac_try) 2>&5
34284 ac_status=$?
34285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286 (exit $ac_status); }; } &&
34287 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34289 (eval $ac_try) 2>&5
34290 ac_status=$?
34291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); }; }; then
34293 eval "$as_ac_var=yes"
34294else
34295 echo "$as_me: failed program was:" >&5
34296sed 's/^/| /' conftest.$ac_ext >&5
34297
34298eval "$as_ac_var=no"
34299fi
ac1cb8d3
VS
34300rm -f conftest.err conftest.$ac_objext \
34301 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34302fi
34303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34304echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34305if test `eval echo '${'$as_ac_var'}'` = yes; then
34306 cat >>confdefs.h <<_ACEOF
34307#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34308_ACEOF
34309 break
34310fi
34311done
34312
34313
34314echo "$as_me:$LINENO: checking for statfs" >&5
34315echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34316if test "${wx_cv_func_statfs+set}" = set; then
34317 echo $ECHO_N "(cached) $ECHO_C" >&6
34318else
34319 cat >conftest.$ac_ext <<_ACEOF
34320/* confdefs.h. */
34321_ACEOF
34322cat confdefs.h >>conftest.$ac_ext
34323cat >>conftest.$ac_ext <<_ACEOF
34324/* end confdefs.h. */
34325
34326 #if defined(__BSD__)
84ae7ca4
VZ
34327 #include <sys/param.h>
34328 #include <sys/mount.h>
a848cd7e 34329 #else
84ae7ca4 34330 #include <sys/vfs.h>
a848cd7e
SC
34331 #endif
34332
34333int
34334main ()
34335{
34336
34337 long l;
34338 struct statfs fs;
34339 statfs("/", &fs);
34340 l = fs.f_bsize;
34341 l += fs.f_blocks;
34342 l += fs.f_bavail;
34343
34344 ;
34345 return 0;
34346}
34347_ACEOF
34348rm -f conftest.$ac_objext
34349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34350 (eval $ac_compile) 2>conftest.er1
a848cd7e 34351 ac_status=$?
ac1cb8d3
VS
34352 grep -v '^ *+' conftest.er1 >conftest.err
34353 rm -f conftest.er1
34354 cat conftest.err >&5
a848cd7e
SC
34355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356 (exit $ac_status); } &&
0093c2fc 34357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34359 (eval $ac_try) 2>&5
34360 ac_status=$?
34361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34362 (exit $ac_status); }; } &&
34363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34365 (eval $ac_try) 2>&5
34366 ac_status=$?
34367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368 (exit $ac_status); }; }; then
84ae7ca4 34369 wx_cv_func_statfs=yes
a848cd7e
SC
34370else
34371 echo "$as_me: failed program was:" >&5
34372sed 's/^/| /' conftest.$ac_ext >&5
34373
84ae7ca4 34374wx_cv_func_statfs=no
a848cd7e
SC
34375
34376fi
ac1cb8d3 34377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34378
34379fi
34380echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34381echo "${ECHO_T}$wx_cv_func_statfs" >&6
34382
34383if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34384
34385
34386 ac_ext=cc
34387ac_cpp='$CXXCPP $CPPFLAGS'
34388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34391
34392 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34393echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34394if test "${wx_cv_func_statfs_decl+set}" = set; then
34395 echo $ECHO_N "(cached) $ECHO_C" >&6
34396else
0683aca6
VZ
34397 cat >conftest.$ac_ext <<_ACEOF
34398/* confdefs.h. */
34399_ACEOF
34400cat confdefs.h >>conftest.$ac_ext
34401cat >>conftest.$ac_ext <<_ACEOF
34402/* end confdefs.h. */
84ae7ca4 34403
0683aca6
VZ
34404 #if defined(__BSD__)
34405 #include <sys/param.h>
34406 #include <sys/mount.h>
34407 #else
34408 #include <sys/vfs.h>
34409 #endif
34410
34411int
34412main ()
34413{
34414
34415 struct statfs fs;
34416 statfs("", &fs);
34417
34418 ;
34419 return 0;
34420}
34421_ACEOF
34422rm -f conftest.$ac_objext
34423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34424 (eval $ac_compile) 2>conftest.er1
34425 ac_status=$?
34426 grep -v '^ *+' conftest.er1 >conftest.err
34427 rm -f conftest.er1
34428 cat conftest.err >&5
34429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34430 (exit $ac_status); } &&
0093c2fc 34431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
34432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34433 (eval $ac_try) 2>&5
34434 ac_status=$?
34435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34436 (exit $ac_status); }; } &&
34437 { ac_try='test -s conftest.$ac_objext'
34438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34439 (eval $ac_try) 2>&5
34440 ac_status=$?
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); }; }; then
34443 wx_cv_func_statfs_decl=yes
34444else
34445 echo "$as_me: failed program was:" >&5
34446sed 's/^/| /' conftest.$ac_ext >&5
34447
34448wx_cv_func_statfs_decl=no
34449
34450fi
34451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34452
34453fi
34454echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34455echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34456 ac_ext=c
34457ac_cpp='$CPP $CPPFLAGS'
34458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34460ac_compiler_gnu=$ac_cv_c_compiler_gnu
34461
34462
34463 if test "$wx_cv_func_statfs_decl" = "yes"; then
34464 cat >>confdefs.h <<\_ACEOF
34465#define HAVE_STATFS_DECL 1
34466_ACEOF
34467
34468 fi
34469
a848cd7e
SC
34470 wx_cv_type_statvfs_t="struct statfs"
34471 cat >>confdefs.h <<\_ACEOF
34472#define HAVE_STATFS 1
34473_ACEOF
34474
34475else
34476 echo "$as_me:$LINENO: checking for statvfs" >&5
34477echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34478if test "${wx_cv_func_statvfs+set}" = set; then
34479 echo $ECHO_N "(cached) $ECHO_C" >&6
34480else
34481 cat >conftest.$ac_ext <<_ACEOF
34482/* confdefs.h. */
34483_ACEOF
34484cat confdefs.h >>conftest.$ac_ext
34485cat >>conftest.$ac_ext <<_ACEOF
34486/* end confdefs.h. */
34487
34488 #include <stddef.h>
34489 #include <sys/statvfs.h>
34490
34491int
34492main ()
34493{
34494
34495 statvfs("/", NULL);
34496
34497 ;
34498 return 0;
34499}
34500_ACEOF
34501rm -f conftest.$ac_objext
34502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34503 (eval $ac_compile) 2>conftest.er1
a848cd7e 34504 ac_status=$?
ac1cb8d3
VS
34505 grep -v '^ *+' conftest.er1 >conftest.err
34506 rm -f conftest.er1
34507 cat conftest.err >&5
a848cd7e
SC
34508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509 (exit $ac_status); } &&
0093c2fc 34510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34512 (eval $ac_try) 2>&5
34513 ac_status=$?
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); }; } &&
34516 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34518 (eval $ac_try) 2>&5
34519 ac_status=$?
34520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521 (exit $ac_status); }; }; then
34522 wx_cv_func_statvfs=yes
34523else
34524 echo "$as_me: failed program was:" >&5
34525sed 's/^/| /' conftest.$ac_ext >&5
34526
34527wx_cv_func_statvfs=no
34528
34529fi
ac1cb8d3 34530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34531
34532fi
34533echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34534echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34535
34536 if test "$wx_cv_func_statvfs" = "yes"; then
34537
34538
34539 ac_ext=cc
34540ac_cpp='$CXXCPP $CPPFLAGS'
34541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34544
34545
34546 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34547echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34548if test "${wx_cv_type_statvfs_t+set}" = set; then
34549 echo $ECHO_N "(cached) $ECHO_C" >&6
34550else
34551 cat >conftest.$ac_ext <<_ACEOF
34552/* confdefs.h. */
34553_ACEOF
34554cat confdefs.h >>conftest.$ac_ext
34555cat >>conftest.$ac_ext <<_ACEOF
34556/* end confdefs.h. */
34557
34558 #include <sys/statvfs.h>
34559
34560int
34561main ()
34562{
34563
34564 long l;
34565 statvfs_t fs;
34566 statvfs("/", &fs);
34567 l = fs.f_bsize;
34568 l += fs.f_blocks;
34569 l += fs.f_bavail;
34570
34571 ;
34572 return 0;
34573}
34574_ACEOF
34575rm -f conftest.$ac_objext
34576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34577 (eval $ac_compile) 2>conftest.er1
a848cd7e 34578 ac_status=$?
ac1cb8d3
VS
34579 grep -v '^ *+' conftest.er1 >conftest.err
34580 rm -f conftest.er1
34581 cat conftest.err >&5
a848cd7e
SC
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); } &&
0093c2fc 34584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34586 (eval $ac_try) 2>&5
34587 ac_status=$?
34588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34589 (exit $ac_status); }; } &&
34590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34592 (eval $ac_try) 2>&5
34593 ac_status=$?
34594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34595 (exit $ac_status); }; }; then
34596 wx_cv_type_statvfs_t=statvfs_t
34597else
34598 echo "$as_me: failed program was:" >&5
34599sed 's/^/| /' conftest.$ac_ext >&5
34600
34601
34602 cat >conftest.$ac_ext <<_ACEOF
34603/* confdefs.h. */
34604_ACEOF
34605cat confdefs.h >>conftest.$ac_ext
34606cat >>conftest.$ac_ext <<_ACEOF
34607/* end confdefs.h. */
34608
34609 #include <sys/statvfs.h>
34610
34611int
34612main ()
34613{
34614
34615 long l;
34616 struct statvfs fs;
34617 statvfs("/", &fs);
34618 l = fs.f_bsize;
34619 l += fs.f_blocks;
34620 l += fs.f_bavail;
34621
34622 ;
34623 return 0;
34624}
34625_ACEOF
34626rm -f conftest.$ac_objext
34627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34628 (eval $ac_compile) 2>conftest.er1
a848cd7e 34629 ac_status=$?
ac1cb8d3
VS
34630 grep -v '^ *+' conftest.er1 >conftest.err
34631 rm -f conftest.er1
34632 cat conftest.err >&5
a848cd7e
SC
34633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634 (exit $ac_status); } &&
0093c2fc 34635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
34641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34643 (eval $ac_try) 2>&5
34644 ac_status=$?
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); }; }; then
34647 wx_cv_type_statvfs_t="struct statvfs"
34648else
34649 echo "$as_me: failed program was:" >&5
34650sed 's/^/| /' conftest.$ac_ext >&5
34651
34652wx_cv_type_statvfs_t="unknown"
34653
34654fi
ac1cb8d3 34655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34656
34657
34658fi
ac1cb8d3 34659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34660
34661fi
34662echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34663echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34664
34665 ac_ext=c
34666ac_cpp='$CPP $CPPFLAGS'
34667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34669ac_compiler_gnu=$ac_cv_c_compiler_gnu
34670
34671
34672 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34673 cat >>confdefs.h <<\_ACEOF
34674#define HAVE_STATVFS 1
34675_ACEOF
34676
34677 fi
34678 else
34679 wx_cv_type_statvfs_t="unknown"
34680 fi
34681fi
34682
34683if test "$wx_cv_type_statvfs_t" != "unknown"; then
34684 cat >>confdefs.h <<_ACEOF
34685#define WX_STATFS_T $wx_cv_type_statvfs_t
34686_ACEOF
34687
34688else
34689 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34690echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34691fi
34692
34693if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34694
34695
34696for ac_func in fcntl flock
34697do
34698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34699echo "$as_me:$LINENO: checking for $ac_func" >&5
34700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34701if eval "test \"\${$as_ac_var+set}\" = set"; then
34702 echo $ECHO_N "(cached) $ECHO_C" >&6
34703else
34704 cat >conftest.$ac_ext <<_ACEOF
34705/* confdefs.h. */
34706_ACEOF
34707cat confdefs.h >>conftest.$ac_ext
34708cat >>conftest.$ac_ext <<_ACEOF
34709/* end confdefs.h. */
ac1cb8d3
VS
34710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34712#define $ac_func innocuous_$ac_func
34713
a848cd7e
SC
34714/* System header to define __stub macros and hopefully few prototypes,
34715 which can conflict with char $ac_func (); below.
34716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34717 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34718
a848cd7e
SC
34719#ifdef __STDC__
34720# include <limits.h>
34721#else
34722# include <assert.h>
34723#endif
ac1cb8d3
VS
34724
34725#undef $ac_func
34726
a848cd7e
SC
34727/* Override any gcc2 internal prototype to avoid an error. */
34728#ifdef __cplusplus
34729extern "C"
34730{
34731#endif
34732/* We use char because int might match the return type of a gcc2
34733 builtin and then its argument prototype would still apply. */
34734char $ac_func ();
34735/* The GNU C library defines this for functions which it implements
34736 to always fail with ENOSYS. Some functions are actually named
34737 something starting with __ and the normal name is an alias. */
34738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34739choke me
34740#else
34741char (*f) () = $ac_func;
34742#endif
34743#ifdef __cplusplus
34744}
34745#endif
34746
34747int
34748main ()
34749{
34750return f != $ac_func;
34751 ;
34752 return 0;
34753}
34754_ACEOF
34755rm -f conftest.$ac_objext conftest$ac_exeext
34756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34757 (eval $ac_link) 2>conftest.er1
a848cd7e 34758 ac_status=$?
ac1cb8d3
VS
34759 grep -v '^ *+' conftest.er1 >conftest.err
34760 rm -f conftest.er1
34761 cat conftest.err >&5
a848cd7e
SC
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); } &&
0093c2fc 34764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34766 (eval $ac_try) 2>&5
34767 ac_status=$?
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); }; } &&
34770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34772 (eval $ac_try) 2>&5
34773 ac_status=$?
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); }; }; then
34776 eval "$as_ac_var=yes"
34777else
34778 echo "$as_me: failed program was:" >&5
34779sed 's/^/| /' conftest.$ac_ext >&5
34780
34781eval "$as_ac_var=no"
34782fi
ac1cb8d3
VS
34783rm -f conftest.err conftest.$ac_objext \
34784 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34785fi
34786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34787echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34788if test `eval echo '${'$as_ac_var'}'` = yes; then
34789 cat >>confdefs.h <<_ACEOF
34790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34791_ACEOF
34792 break
34793fi
34794done
34795
34796
34797 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34798 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34799echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34800 wxUSE_SNGLINST_CHECKER=no
34801 fi
34802fi
34803
34804
34805for ac_func in timegm
34806do
34807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34808echo "$as_me:$LINENO: checking for $ac_func" >&5
34809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34810if eval "test \"\${$as_ac_var+set}\" = set"; then
34811 echo $ECHO_N "(cached) $ECHO_C" >&6
34812else
34813 cat >conftest.$ac_ext <<_ACEOF
34814/* confdefs.h. */
34815_ACEOF
34816cat confdefs.h >>conftest.$ac_ext
34817cat >>conftest.$ac_ext <<_ACEOF
34818/* end confdefs.h. */
ac1cb8d3
VS
34819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34821#define $ac_func innocuous_$ac_func
34822
a848cd7e
SC
34823/* System header to define __stub macros and hopefully few prototypes,
34824 which can conflict with char $ac_func (); below.
34825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34826 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34827
a848cd7e
SC
34828#ifdef __STDC__
34829# include <limits.h>
34830#else
34831# include <assert.h>
34832#endif
ac1cb8d3
VS
34833
34834#undef $ac_func
34835
a848cd7e
SC
34836/* Override any gcc2 internal prototype to avoid an error. */
34837#ifdef __cplusplus
34838extern "C"
34839{
34840#endif
34841/* We use char because int might match the return type of a gcc2
34842 builtin and then its argument prototype would still apply. */
34843char $ac_func ();
34844/* The GNU C library defines this for functions which it implements
34845 to always fail with ENOSYS. Some functions are actually named
34846 something starting with __ and the normal name is an alias. */
34847#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34848choke me
34849#else
34850char (*f) () = $ac_func;
34851#endif
34852#ifdef __cplusplus
34853}
34854#endif
34855
34856int
34857main ()
34858{
34859return f != $ac_func;
34860 ;
34861 return 0;
34862}
34863_ACEOF
34864rm -f conftest.$ac_objext conftest$ac_exeext
34865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34866 (eval $ac_link) 2>conftest.er1
a848cd7e 34867 ac_status=$?
ac1cb8d3
VS
34868 grep -v '^ *+' conftest.er1 >conftest.err
34869 rm -f conftest.er1
34870 cat conftest.err >&5
a848cd7e
SC
34871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34872 (exit $ac_status); } &&
0093c2fc 34873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34875 (eval $ac_try) 2>&5
34876 ac_status=$?
34877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34878 (exit $ac_status); }; } &&
34879 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34881 (eval $ac_try) 2>&5
34882 ac_status=$?
34883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34884 (exit $ac_status); }; }; then
34885 eval "$as_ac_var=yes"
34886else
34887 echo "$as_me: failed program was:" >&5
34888sed 's/^/| /' conftest.$ac_ext >&5
34889
34890eval "$as_ac_var=no"
34891fi
ac1cb8d3
VS
34892rm -f conftest.err conftest.$ac_objext \
34893 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34894fi
34895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34896echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34897if test `eval echo '${'$as_ac_var'}'` = yes; then
34898 cat >>confdefs.h <<_ACEOF
34899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34900_ACEOF
34901
34902fi
34903done
34904
34905
34906
34907
34908for ac_func in putenv setenv
34909do
34910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34911echo "$as_me:$LINENO: checking for $ac_func" >&5
34912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34913if eval "test \"\${$as_ac_var+set}\" = set"; then
34914 echo $ECHO_N "(cached) $ECHO_C" >&6
34915else
34916 cat >conftest.$ac_ext <<_ACEOF
34917/* confdefs.h. */
34918_ACEOF
34919cat confdefs.h >>conftest.$ac_ext
34920cat >>conftest.$ac_ext <<_ACEOF
34921/* end confdefs.h. */
ac1cb8d3
VS
34922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34924#define $ac_func innocuous_$ac_func
34925
a848cd7e
SC
34926/* System header to define __stub macros and hopefully few prototypes,
34927 which can conflict with char $ac_func (); below.
34928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34929 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34930
a848cd7e
SC
34931#ifdef __STDC__
34932# include <limits.h>
34933#else
34934# include <assert.h>
34935#endif
ac1cb8d3
VS
34936
34937#undef $ac_func
34938
a848cd7e
SC
34939/* Override any gcc2 internal prototype to avoid an error. */
34940#ifdef __cplusplus
34941extern "C"
34942{
34943#endif
34944/* We use char because int might match the return type of a gcc2
34945 builtin and then its argument prototype would still apply. */
34946char $ac_func ();
34947/* The GNU C library defines this for functions which it implements
34948 to always fail with ENOSYS. Some functions are actually named
34949 something starting with __ and the normal name is an alias. */
34950#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34951choke me
34952#else
34953char (*f) () = $ac_func;
34954#endif
34955#ifdef __cplusplus
34956}
34957#endif
34958
34959int
34960main ()
34961{
34962return f != $ac_func;
34963 ;
34964 return 0;
34965}
34966_ACEOF
34967rm -f conftest.$ac_objext conftest$ac_exeext
34968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34969 (eval $ac_link) 2>conftest.er1
a848cd7e 34970 ac_status=$?
ac1cb8d3
VS
34971 grep -v '^ *+' conftest.er1 >conftest.err
34972 rm -f conftest.er1
34973 cat conftest.err >&5
a848cd7e
SC
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); } &&
0093c2fc 34976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34978 (eval $ac_try) 2>&5
34979 ac_status=$?
34980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981 (exit $ac_status); }; } &&
34982 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34984 (eval $ac_try) 2>&5
34985 ac_status=$?
34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); }; }; then
34988 eval "$as_ac_var=yes"
34989else
34990 echo "$as_me: failed program was:" >&5
34991sed 's/^/| /' conftest.$ac_ext >&5
34992
34993eval "$as_ac_var=no"
34994fi
ac1cb8d3
VS
34995rm -f conftest.err conftest.$ac_objext \
34996 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34997fi
34998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34999echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35000if test `eval echo '${'$as_ac_var'}'` = yes; then
35001 cat >>confdefs.h <<_ACEOF
35002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35003_ACEOF
35004 break
35005fi
35006done
35007
35008
35009HAVE_SOME_SLEEP_FUNC=0
35010if test "$USE_BEOS" = 1; then
35011 cat >>confdefs.h <<\_ACEOF
35012#define HAVE_SLEEP 1
35013_ACEOF
35014
35015 HAVE_SOME_SLEEP_FUNC=1
35016fi
35017
35018if test "$USE_DARWIN" = 1; then
35019 cat >>confdefs.h <<\_ACEOF
35020#define HAVE_USLEEP 1
35021_ACEOF
35022
35023 HAVE_SOME_SLEEP_FUNC=1
35024fi
35025
35026if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35027 POSIX4_LINK=
35028
35029for ac_func in nanosleep
35030do
35031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35032echo "$as_me:$LINENO: checking for $ac_func" >&5
35033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35034if eval "test \"\${$as_ac_var+set}\" = set"; then
35035 echo $ECHO_N "(cached) $ECHO_C" >&6
35036else
35037 cat >conftest.$ac_ext <<_ACEOF
35038/* confdefs.h. */
35039_ACEOF
35040cat confdefs.h >>conftest.$ac_ext
35041cat >>conftest.$ac_ext <<_ACEOF
35042/* end confdefs.h. */
ac1cb8d3
VS
35043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35045#define $ac_func innocuous_$ac_func
35046
a848cd7e
SC
35047/* System header to define __stub macros and hopefully few prototypes,
35048 which can conflict with char $ac_func (); below.
35049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35050 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35051
a848cd7e
SC
35052#ifdef __STDC__
35053# include <limits.h>
35054#else
35055# include <assert.h>
35056#endif
ac1cb8d3
VS
35057
35058#undef $ac_func
35059
a848cd7e
SC
35060/* Override any gcc2 internal prototype to avoid an error. */
35061#ifdef __cplusplus
35062extern "C"
35063{
35064#endif
35065/* We use char because int might match the return type of a gcc2
35066 builtin and then its argument prototype would still apply. */
35067char $ac_func ();
35068/* The GNU C library defines this for functions which it implements
35069 to always fail with ENOSYS. Some functions are actually named
35070 something starting with __ and the normal name is an alias. */
35071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35072choke me
35073#else
35074char (*f) () = $ac_func;
35075#endif
35076#ifdef __cplusplus
35077}
35078#endif
35079
35080int
35081main ()
35082{
35083return f != $ac_func;
35084 ;
35085 return 0;
35086}
35087_ACEOF
35088rm -f conftest.$ac_objext conftest$ac_exeext
35089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35090 (eval $ac_link) 2>conftest.er1
a848cd7e 35091 ac_status=$?
ac1cb8d3
VS
35092 grep -v '^ *+' conftest.er1 >conftest.err
35093 rm -f conftest.er1
35094 cat conftest.err >&5
a848cd7e
SC
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); } &&
0093c2fc 35097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35099 (eval $ac_try) 2>&5
35100 ac_status=$?
35101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102 (exit $ac_status); }; } &&
35103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35105 (eval $ac_try) 2>&5
35106 ac_status=$?
35107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 (exit $ac_status); }; }; then
35109 eval "$as_ac_var=yes"
35110else
35111 echo "$as_me: failed program was:" >&5
35112sed 's/^/| /' conftest.$ac_ext >&5
35113
35114eval "$as_ac_var=no"
35115fi
ac1cb8d3
VS
35116rm -f conftest.err conftest.$ac_objext \
35117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35118fi
35119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35121if test `eval echo '${'$as_ac_var'}'` = yes; then
35122 cat >>confdefs.h <<_ACEOF
35123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35124_ACEOF
35125 cat >>confdefs.h <<\_ACEOF
35126#define HAVE_NANOSLEEP 1
35127_ACEOF
35128
35129else
35130
35131 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35132echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35133if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35134 echo $ECHO_N "(cached) $ECHO_C" >&6
35135else
35136 ac_check_lib_save_LIBS=$LIBS
35137LIBS="-lposix4 $LIBS"
35138cat >conftest.$ac_ext <<_ACEOF
35139/* confdefs.h. */
35140_ACEOF
35141cat confdefs.h >>conftest.$ac_ext
35142cat >>conftest.$ac_ext <<_ACEOF
35143/* end confdefs.h. */
35144
35145/* Override any gcc2 internal prototype to avoid an error. */
35146#ifdef __cplusplus
35147extern "C"
35148#endif
35149/* We use char because int might match the return type of a gcc2
35150 builtin and then its argument prototype would still apply. */
35151char nanosleep ();
35152int
35153main ()
35154{
35155nanosleep ();
35156 ;
35157 return 0;
35158}
35159_ACEOF
35160rm -f conftest.$ac_objext conftest$ac_exeext
35161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35162 (eval $ac_link) 2>conftest.er1
a848cd7e 35163 ac_status=$?
ac1cb8d3
VS
35164 grep -v '^ *+' conftest.er1 >conftest.err
35165 rm -f conftest.er1
35166 cat conftest.err >&5
a848cd7e
SC
35167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168 (exit $ac_status); } &&
0093c2fc 35169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35171 (eval $ac_try) 2>&5
35172 ac_status=$?
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); }; } &&
35175 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35177 (eval $ac_try) 2>&5
35178 ac_status=$?
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); }; }; then
35181 ac_cv_lib_posix4_nanosleep=yes
35182else
35183 echo "$as_me: failed program was:" >&5
35184sed 's/^/| /' conftest.$ac_ext >&5
35185
35186ac_cv_lib_posix4_nanosleep=no
35187fi
ac1cb8d3
VS
35188rm -f conftest.err conftest.$ac_objext \
35189 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35190LIBS=$ac_check_lib_save_LIBS
35191fi
35192echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35193echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35194if test $ac_cv_lib_posix4_nanosleep = yes; then
35195
35196 cat >>confdefs.h <<\_ACEOF
35197#define HAVE_NANOSLEEP 1
35198_ACEOF
35199
35200 POSIX4_LINK=" -lposix4"
35201
35202else
35203
35204
35205for ac_func in usleep
35206do
35207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35208echo "$as_me:$LINENO: checking for $ac_func" >&5
35209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35210if eval "test \"\${$as_ac_var+set}\" = set"; then
35211 echo $ECHO_N "(cached) $ECHO_C" >&6
35212else
35213 cat >conftest.$ac_ext <<_ACEOF
35214/* confdefs.h. */
35215_ACEOF
35216cat confdefs.h >>conftest.$ac_ext
35217cat >>conftest.$ac_ext <<_ACEOF
35218/* end confdefs.h. */
ac1cb8d3
VS
35219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35221#define $ac_func innocuous_$ac_func
35222
a848cd7e
SC
35223/* System header to define __stub macros and hopefully few prototypes,
35224 which can conflict with char $ac_func (); below.
35225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35226 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35227
a848cd7e
SC
35228#ifdef __STDC__
35229# include <limits.h>
35230#else
35231# include <assert.h>
35232#endif
ac1cb8d3
VS
35233
35234#undef $ac_func
35235
a848cd7e
SC
35236/* Override any gcc2 internal prototype to avoid an error. */
35237#ifdef __cplusplus
35238extern "C"
35239{
35240#endif
35241/* We use char because int might match the return type of a gcc2
35242 builtin and then its argument prototype would still apply. */
35243char $ac_func ();
35244/* The GNU C library defines this for functions which it implements
35245 to always fail with ENOSYS. Some functions are actually named
35246 something starting with __ and the normal name is an alias. */
35247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35248choke me
35249#else
35250char (*f) () = $ac_func;
35251#endif
35252#ifdef __cplusplus
35253}
35254#endif
35255
35256int
35257main ()
35258{
35259return f != $ac_func;
35260 ;
35261 return 0;
35262}
35263_ACEOF
35264rm -f conftest.$ac_objext conftest$ac_exeext
35265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35266 (eval $ac_link) 2>conftest.er1
a848cd7e 35267 ac_status=$?
ac1cb8d3
VS
35268 grep -v '^ *+' conftest.er1 >conftest.err
35269 rm -f conftest.er1
35270 cat conftest.err >&5
a848cd7e
SC
35271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); } &&
0093c2fc 35273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35275 (eval $ac_try) 2>&5
35276 ac_status=$?
35277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278 (exit $ac_status); }; } &&
35279 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35281 (eval $ac_try) 2>&5
35282 ac_status=$?
35283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); }; }; then
35285 eval "$as_ac_var=yes"
35286else
35287 echo "$as_me: failed program was:" >&5
35288sed 's/^/| /' conftest.$ac_ext >&5
35289
35290eval "$as_ac_var=no"
35291fi
ac1cb8d3
VS
35292rm -f conftest.err conftest.$ac_objext \
35293 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35294fi
35295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35296echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35297if test `eval echo '${'$as_ac_var'}'` = yes; then
35298 cat >>confdefs.h <<_ACEOF
35299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35300_ACEOF
35301 cat >>confdefs.h <<\_ACEOF
35302#define HAVE_USLEEP 1
35303_ACEOF
35304
35305else
35306 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35307echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35308
35309fi
35310done
35311
35312
35313
35314fi
35315
35316
35317
35318fi
35319done
35320
35321fi
35322
35323
35324
35325for ac_func in uname gethostname
35326do
35327as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35328echo "$as_me:$LINENO: checking for $ac_func" >&5
35329echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35330if eval "test \"\${$as_ac_var+set}\" = set"; then
35331 echo $ECHO_N "(cached) $ECHO_C" >&6
35332else
35333 cat >conftest.$ac_ext <<_ACEOF
35334/* confdefs.h. */
35335_ACEOF
35336cat confdefs.h >>conftest.$ac_ext
35337cat >>conftest.$ac_ext <<_ACEOF
35338/* end confdefs.h. */
ac1cb8d3
VS
35339/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35341#define $ac_func innocuous_$ac_func
35342
a848cd7e
SC
35343/* System header to define __stub macros and hopefully few prototypes,
35344 which can conflict with char $ac_func (); below.
35345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35346 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35347
a848cd7e
SC
35348#ifdef __STDC__
35349# include <limits.h>
35350#else
35351# include <assert.h>
35352#endif
ac1cb8d3
VS
35353
35354#undef $ac_func
35355
a848cd7e
SC
35356/* Override any gcc2 internal prototype to avoid an error. */
35357#ifdef __cplusplus
35358extern "C"
35359{
35360#endif
35361/* We use char because int might match the return type of a gcc2
35362 builtin and then its argument prototype would still apply. */
35363char $ac_func ();
35364/* The GNU C library defines this for functions which it implements
35365 to always fail with ENOSYS. Some functions are actually named
35366 something starting with __ and the normal name is an alias. */
35367#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35368choke me
35369#else
35370char (*f) () = $ac_func;
35371#endif
35372#ifdef __cplusplus
35373}
35374#endif
35375
35376int
35377main ()
35378{
35379return f != $ac_func;
35380 ;
35381 return 0;
35382}
35383_ACEOF
35384rm -f conftest.$ac_objext conftest$ac_exeext
35385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35386 (eval $ac_link) 2>conftest.er1
a848cd7e 35387 ac_status=$?
ac1cb8d3
VS
35388 grep -v '^ *+' conftest.er1 >conftest.err
35389 rm -f conftest.er1
35390 cat conftest.err >&5
a848cd7e
SC
35391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392 (exit $ac_status); } &&
0093c2fc 35393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35395 (eval $ac_try) 2>&5
35396 ac_status=$?
35397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398 (exit $ac_status); }; } &&
35399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35401 (eval $ac_try) 2>&5
35402 ac_status=$?
35403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404 (exit $ac_status); }; }; then
35405 eval "$as_ac_var=yes"
35406else
35407 echo "$as_me: failed program was:" >&5
35408sed 's/^/| /' conftest.$ac_ext >&5
35409
35410eval "$as_ac_var=no"
35411fi
ac1cb8d3
VS
35412rm -f conftest.err conftest.$ac_objext \
35413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35414fi
35415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35416echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35417if test `eval echo '${'$as_ac_var'}'` = yes; then
35418 cat >>confdefs.h <<_ACEOF
35419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35420_ACEOF
35421 break
35422fi
35423done
35424
35425
35426
35427
35428ac_ext=cc
35429ac_cpp='$CXXCPP $CPPFLAGS'
35430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35433
35434
35435
35436for ac_func in strtok_r
35437do
35438as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35439echo "$as_me:$LINENO: checking for $ac_func" >&5
35440echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35441if eval "test \"\${$as_ac_var+set}\" = set"; then
35442 echo $ECHO_N "(cached) $ECHO_C" >&6
35443else
35444 cat >conftest.$ac_ext <<_ACEOF
35445/* confdefs.h. */
35446_ACEOF
35447cat confdefs.h >>conftest.$ac_ext
35448cat >>conftest.$ac_ext <<_ACEOF
35449/* end confdefs.h. */
ac1cb8d3
VS
35450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35452#define $ac_func innocuous_$ac_func
35453
a848cd7e
SC
35454/* System header to define __stub macros and hopefully few prototypes,
35455 which can conflict with char $ac_func (); below.
35456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35457 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35458
a848cd7e
SC
35459#ifdef __STDC__
35460# include <limits.h>
35461#else
35462# include <assert.h>
35463#endif
ac1cb8d3
VS
35464
35465#undef $ac_func
35466
a848cd7e
SC
35467/* Override any gcc2 internal prototype to avoid an error. */
35468#ifdef __cplusplus
35469extern "C"
35470{
35471#endif
35472/* We use char because int might match the return type of a gcc2
35473 builtin and then its argument prototype would still apply. */
35474char $ac_func ();
35475/* The GNU C library defines this for functions which it implements
35476 to always fail with ENOSYS. Some functions are actually named
35477 something starting with __ and the normal name is an alias. */
35478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35479choke me
35480#else
35481char (*f) () = $ac_func;
35482#endif
35483#ifdef __cplusplus
35484}
35485#endif
35486
35487int
35488main ()
35489{
35490return f != $ac_func;
35491 ;
35492 return 0;
35493}
35494_ACEOF
35495rm -f conftest.$ac_objext conftest$ac_exeext
35496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35497 (eval $ac_link) 2>conftest.er1
a848cd7e 35498 ac_status=$?
ac1cb8d3
VS
35499 grep -v '^ *+' conftest.er1 >conftest.err
35500 rm -f conftest.er1
35501 cat conftest.err >&5
a848cd7e
SC
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); } &&
0093c2fc 35504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35506 (eval $ac_try) 2>&5
35507 ac_status=$?
35508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509 (exit $ac_status); }; } &&
35510 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35512 (eval $ac_try) 2>&5
35513 ac_status=$?
35514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515 (exit $ac_status); }; }; then
35516 eval "$as_ac_var=yes"
35517else
35518 echo "$as_me: failed program was:" >&5
35519sed 's/^/| /' conftest.$ac_ext >&5
35520
35521eval "$as_ac_var=no"
35522fi
ac1cb8d3
VS
35523rm -f conftest.err conftest.$ac_objext \
35524 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35525fi
35526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35527echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35528if test `eval echo '${'$as_ac_var'}'` = yes; then
35529 cat >>confdefs.h <<_ACEOF
35530#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35531_ACEOF
35532
35533fi
35534done
35535
35536
35537ac_ext=c
35538ac_cpp='$CPP $CPPFLAGS'
35539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35541ac_compiler_gnu=$ac_cv_c_compiler_gnu
35542
35543
35544INET_LINK=
35545
35546for ac_func in inet_addr
35547do
35548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35549echo "$as_me:$LINENO: checking for $ac_func" >&5
35550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35551if eval "test \"\${$as_ac_var+set}\" = set"; then
35552 echo $ECHO_N "(cached) $ECHO_C" >&6
35553else
35554 cat >conftest.$ac_ext <<_ACEOF
35555/* confdefs.h. */
35556_ACEOF
35557cat confdefs.h >>conftest.$ac_ext
35558cat >>conftest.$ac_ext <<_ACEOF
35559/* end confdefs.h. */
ac1cb8d3
VS
35560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35562#define $ac_func innocuous_$ac_func
35563
a848cd7e
SC
35564/* System header to define __stub macros and hopefully few prototypes,
35565 which can conflict with char $ac_func (); below.
35566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35567 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35568
a848cd7e
SC
35569#ifdef __STDC__
35570# include <limits.h>
35571#else
35572# include <assert.h>
35573#endif
ac1cb8d3
VS
35574
35575#undef $ac_func
35576
a848cd7e
SC
35577/* Override any gcc2 internal prototype to avoid an error. */
35578#ifdef __cplusplus
35579extern "C"
35580{
35581#endif
35582/* We use char because int might match the return type of a gcc2
35583 builtin and then its argument prototype would still apply. */
35584char $ac_func ();
35585/* The GNU C library defines this for functions which it implements
35586 to always fail with ENOSYS. Some functions are actually named
35587 something starting with __ and the normal name is an alias. */
35588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35589choke me
35590#else
35591char (*f) () = $ac_func;
35592#endif
35593#ifdef __cplusplus
35594}
35595#endif
35596
35597int
35598main ()
35599{
35600return f != $ac_func;
35601 ;
35602 return 0;
35603}
35604_ACEOF
35605rm -f conftest.$ac_objext conftest$ac_exeext
35606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35607 (eval $ac_link) 2>conftest.er1
a848cd7e 35608 ac_status=$?
ac1cb8d3
VS
35609 grep -v '^ *+' conftest.er1 >conftest.err
35610 rm -f conftest.er1
35611 cat conftest.err >&5
a848cd7e
SC
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); } &&
0093c2fc 35614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35616 (eval $ac_try) 2>&5
35617 ac_status=$?
35618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619 (exit $ac_status); }; } &&
35620 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35622 (eval $ac_try) 2>&5
35623 ac_status=$?
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); }; }; then
35626 eval "$as_ac_var=yes"
35627else
35628 echo "$as_me: failed program was:" >&5
35629sed 's/^/| /' conftest.$ac_ext >&5
35630
35631eval "$as_ac_var=no"
35632fi
ac1cb8d3
VS
35633rm -f conftest.err conftest.$ac_objext \
35634 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35635fi
35636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35638if test `eval echo '${'$as_ac_var'}'` = yes; then
35639 cat >>confdefs.h <<_ACEOF
35640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35641_ACEOF
35642 cat >>confdefs.h <<\_ACEOF
35643#define HAVE_INET_ADDR 1
35644_ACEOF
35645
35646else
35647
35648 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35649echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35650if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35651 echo $ECHO_N "(cached) $ECHO_C" >&6
35652else
35653 ac_check_lib_save_LIBS=$LIBS
35654LIBS="-lnsl $LIBS"
35655cat >conftest.$ac_ext <<_ACEOF
35656/* confdefs.h. */
35657_ACEOF
35658cat confdefs.h >>conftest.$ac_ext
35659cat >>conftest.$ac_ext <<_ACEOF
35660/* end confdefs.h. */
35661
35662/* Override any gcc2 internal prototype to avoid an error. */
35663#ifdef __cplusplus
35664extern "C"
35665#endif
35666/* We use char because int might match the return type of a gcc2
35667 builtin and then its argument prototype would still apply. */
35668char inet_addr ();
35669int
35670main ()
35671{
35672inet_addr ();
35673 ;
35674 return 0;
35675}
35676_ACEOF
35677rm -f conftest.$ac_objext conftest$ac_exeext
35678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35679 (eval $ac_link) 2>conftest.er1
a848cd7e 35680 ac_status=$?
ac1cb8d3
VS
35681 grep -v '^ *+' conftest.er1 >conftest.err
35682 rm -f conftest.er1
35683 cat conftest.err >&5
a848cd7e
SC
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); } &&
0093c2fc 35686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688 (eval $ac_try) 2>&5
35689 ac_status=$?
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); }; } &&
35692 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694 (eval $ac_try) 2>&5
35695 ac_status=$?
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); }; }; then
35698 ac_cv_lib_nsl_inet_addr=yes
35699else
35700 echo "$as_me: failed program was:" >&5
35701sed 's/^/| /' conftest.$ac_ext >&5
35702
35703ac_cv_lib_nsl_inet_addr=no
35704fi
ac1cb8d3
VS
35705rm -f conftest.err conftest.$ac_objext \
35706 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35707LIBS=$ac_check_lib_save_LIBS
35708fi
35709echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35710echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35711if test $ac_cv_lib_nsl_inet_addr = yes; then
35712 INET_LINK="nsl"
35713else
35714
35715 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35716echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35717if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35718 echo $ECHO_N "(cached) $ECHO_C" >&6
35719else
35720 ac_check_lib_save_LIBS=$LIBS
35721LIBS="-lresolv $LIBS"
35722cat >conftest.$ac_ext <<_ACEOF
35723/* confdefs.h. */
35724_ACEOF
35725cat confdefs.h >>conftest.$ac_ext
35726cat >>conftest.$ac_ext <<_ACEOF
35727/* end confdefs.h. */
35728
35729/* Override any gcc2 internal prototype to avoid an error. */
35730#ifdef __cplusplus
35731extern "C"
35732#endif
35733/* We use char because int might match the return type of a gcc2
35734 builtin and then its argument prototype would still apply. */
35735char inet_addr ();
35736int
35737main ()
35738{
35739inet_addr ();
35740 ;
35741 return 0;
35742}
35743_ACEOF
35744rm -f conftest.$ac_objext conftest$ac_exeext
35745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35746 (eval $ac_link) 2>conftest.er1
a848cd7e 35747 ac_status=$?
ac1cb8d3
VS
35748 grep -v '^ *+' conftest.er1 >conftest.err
35749 rm -f conftest.er1
35750 cat conftest.err >&5
a848cd7e
SC
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); } &&
0093c2fc 35753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755 (eval $ac_try) 2>&5
35756 ac_status=$?
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); }; } &&
35759 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35761 (eval $ac_try) 2>&5
35762 ac_status=$?
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); }; }; then
35765 ac_cv_lib_resolv_inet_addr=yes
35766else
35767 echo "$as_me: failed program was:" >&5
35768sed 's/^/| /' conftest.$ac_ext >&5
35769
35770ac_cv_lib_resolv_inet_addr=no
35771fi
ac1cb8d3
VS
35772rm -f conftest.err conftest.$ac_objext \
35773 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35774LIBS=$ac_check_lib_save_LIBS
35775fi
35776echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35777echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35778if test $ac_cv_lib_resolv_inet_addr = yes; then
35779 INET_LINK="resolv"
35780else
35781
35782 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35783echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35784if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35785 echo $ECHO_N "(cached) $ECHO_C" >&6
35786else
35787 ac_check_lib_save_LIBS=$LIBS
35788LIBS="-lsocket $LIBS"
35789cat >conftest.$ac_ext <<_ACEOF
35790/* confdefs.h. */
35791_ACEOF
35792cat confdefs.h >>conftest.$ac_ext
35793cat >>conftest.$ac_ext <<_ACEOF
35794/* end confdefs.h. */
35795
35796/* Override any gcc2 internal prototype to avoid an error. */
35797#ifdef __cplusplus
35798extern "C"
35799#endif
35800/* We use char because int might match the return type of a gcc2
35801 builtin and then its argument prototype would still apply. */
35802char inet_addr ();
35803int
35804main ()
35805{
35806inet_addr ();
35807 ;
35808 return 0;
35809}
35810_ACEOF
35811rm -f conftest.$ac_objext conftest$ac_exeext
35812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35813 (eval $ac_link) 2>conftest.er1
a848cd7e 35814 ac_status=$?
ac1cb8d3
VS
35815 grep -v '^ *+' conftest.er1 >conftest.err
35816 rm -f conftest.er1
35817 cat conftest.err >&5
a848cd7e
SC
35818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819 (exit $ac_status); } &&
0093c2fc 35820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35822 (eval $ac_try) 2>&5
35823 ac_status=$?
35824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825 (exit $ac_status); }; } &&
35826 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35828 (eval $ac_try) 2>&5
35829 ac_status=$?
35830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35831 (exit $ac_status); }; }; then
35832 ac_cv_lib_socket_inet_addr=yes
35833else
35834 echo "$as_me: failed program was:" >&5
35835sed 's/^/| /' conftest.$ac_ext >&5
35836
35837ac_cv_lib_socket_inet_addr=no
35838fi
ac1cb8d3
VS
35839rm -f conftest.err conftest.$ac_objext \
35840 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35841LIBS=$ac_check_lib_save_LIBS
35842fi
35843echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35844echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35845if test $ac_cv_lib_socket_inet_addr = yes; then
35846 INET_LINK="socket"
35847
35848fi
35849
35850
35851
35852fi
35853
35854
35855
35856fi
35857
35858
35859
35860fi
35861done
35862
35863
35864
35865for ac_func in inet_aton
35866do
35867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35868echo "$as_me:$LINENO: checking for $ac_func" >&5
35869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35870if eval "test \"\${$as_ac_var+set}\" = set"; then
35871 echo $ECHO_N "(cached) $ECHO_C" >&6
35872else
35873 cat >conftest.$ac_ext <<_ACEOF
35874/* confdefs.h. */
35875_ACEOF
35876cat confdefs.h >>conftest.$ac_ext
35877cat >>conftest.$ac_ext <<_ACEOF
35878/* end confdefs.h. */
ac1cb8d3
VS
35879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35881#define $ac_func innocuous_$ac_func
35882
a848cd7e
SC
35883/* System header to define __stub macros and hopefully few prototypes,
35884 which can conflict with char $ac_func (); below.
35885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35886 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35887
a848cd7e
SC
35888#ifdef __STDC__
35889# include <limits.h>
35890#else
35891# include <assert.h>
35892#endif
ac1cb8d3
VS
35893
35894#undef $ac_func
35895
a848cd7e
SC
35896/* Override any gcc2 internal prototype to avoid an error. */
35897#ifdef __cplusplus
35898extern "C"
35899{
35900#endif
35901/* We use char because int might match the return type of a gcc2
35902 builtin and then its argument prototype would still apply. */
35903char $ac_func ();
35904/* The GNU C library defines this for functions which it implements
35905 to always fail with ENOSYS. Some functions are actually named
35906 something starting with __ and the normal name is an alias. */
35907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35908choke me
35909#else
35910char (*f) () = $ac_func;
35911#endif
35912#ifdef __cplusplus
35913}
35914#endif
35915
35916int
35917main ()
35918{
35919return f != $ac_func;
35920 ;
35921 return 0;
35922}
35923_ACEOF
35924rm -f conftest.$ac_objext conftest$ac_exeext
35925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35926 (eval $ac_link) 2>conftest.er1
a848cd7e 35927 ac_status=$?
ac1cb8d3
VS
35928 grep -v '^ *+' conftest.er1 >conftest.err
35929 rm -f conftest.er1
35930 cat conftest.err >&5
a848cd7e
SC
35931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932 (exit $ac_status); } &&
0093c2fc 35933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35935 (eval $ac_try) 2>&5
35936 ac_status=$?
35937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); }; } &&
35939 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35941 (eval $ac_try) 2>&5
35942 ac_status=$?
35943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944 (exit $ac_status); }; }; then
35945 eval "$as_ac_var=yes"
35946else
35947 echo "$as_me: failed program was:" >&5
35948sed 's/^/| /' conftest.$ac_ext >&5
35949
35950eval "$as_ac_var=no"
35951fi
ac1cb8d3
VS
35952rm -f conftest.err conftest.$ac_objext \
35953 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35954fi
35955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35956echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35957if test `eval echo '${'$as_ac_var'}'` = yes; then
35958 cat >>confdefs.h <<_ACEOF
35959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35960_ACEOF
35961 cat >>confdefs.h <<\_ACEOF
35962#define HAVE_INET_ATON 1
35963_ACEOF
35964
35965else
35966
35967 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
35968echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
35969echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
35970if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35971 echo $ECHO_N "(cached) $ECHO_C" >&6
35972else
35973 ac_check_lib_save_LIBS=$LIBS
35974LIBS="-l$INET_LINK $LIBS"
35975cat >conftest.$ac_ext <<_ACEOF
35976/* confdefs.h. */
35977_ACEOF
35978cat confdefs.h >>conftest.$ac_ext
35979cat >>conftest.$ac_ext <<_ACEOF
35980/* end confdefs.h. */
35981
35982/* Override any gcc2 internal prototype to avoid an error. */
35983#ifdef __cplusplus
35984extern "C"
35985#endif
35986/* We use char because int might match the return type of a gcc2
35987 builtin and then its argument prototype would still apply. */
35988char inet_aton ();
35989int
35990main ()
35991{
35992inet_aton ();
35993 ;
35994 return 0;
35995}
35996_ACEOF
35997rm -f conftest.$ac_objext conftest$ac_exeext
35998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35999 (eval $ac_link) 2>conftest.er1
a848cd7e 36000 ac_status=$?
ac1cb8d3
VS
36001 grep -v '^ *+' conftest.er1 >conftest.err
36002 rm -f conftest.er1
36003 cat conftest.err >&5
a848cd7e
SC
36004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005 (exit $ac_status); } &&
0093c2fc 36006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36008 (eval $ac_try) 2>&5
36009 ac_status=$?
36010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011 (exit $ac_status); }; } &&
36012 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36014 (eval $ac_try) 2>&5
36015 ac_status=$?
36016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017 (exit $ac_status); }; }; then
36018 eval "$as_ac_Lib=yes"
36019else
36020 echo "$as_me: failed program was:" >&5
36021sed 's/^/| /' conftest.$ac_ext >&5
36022
36023eval "$as_ac_Lib=no"
36024fi
ac1cb8d3
VS
36025rm -f conftest.err conftest.$ac_objext \
36026 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36027LIBS=$ac_check_lib_save_LIBS
36028fi
36029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36030echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36031if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36032 cat >>confdefs.h <<\_ACEOF
36033#define HAVE_INET_ATON 1
36034_ACEOF
36035
36036fi
36037
36038
36039fi
36040done
36041
36042
36043if test "x$INET_LINK" != "x"; then
36044 cat >>confdefs.h <<\_ACEOF
36045#define HAVE_INET_ADDR 1
36046_ACEOF
36047
36048 INET_LINK=" -l$INET_LINK"
36049fi
36050
36051fi
36052
36053
36054
36055EXTRALIBS_ESD=
36056echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36057echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36058if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36059 echo $ECHO_N "(cached) $ECHO_C" >&6
36060else
36061 ac_check_lib_save_LIBS=$LIBS
36062LIBS="-lesd $LIBS"
36063cat >conftest.$ac_ext <<_ACEOF
36064/* confdefs.h. */
36065_ACEOF
36066cat confdefs.h >>conftest.$ac_ext
36067cat >>conftest.$ac_ext <<_ACEOF
36068/* end confdefs.h. */
36069
36070/* Override any gcc2 internal prototype to avoid an error. */
36071#ifdef __cplusplus
36072extern "C"
36073#endif
36074/* We use char because int might match the return type of a gcc2
36075 builtin and then its argument prototype would still apply. */
36076char esd_close ();
36077int
36078main ()
36079{
36080esd_close ();
36081 ;
36082 return 0;
36083}
36084_ACEOF
36085rm -f conftest.$ac_objext conftest$ac_exeext
36086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36087 (eval $ac_link) 2>conftest.er1
a848cd7e 36088 ac_status=$?
ac1cb8d3
VS
36089 grep -v '^ *+' conftest.er1 >conftest.err
36090 rm -f conftest.er1
36091 cat conftest.err >&5
a848cd7e
SC
36092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093 (exit $ac_status); } &&
0093c2fc 36094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36096 (eval $ac_try) 2>&5
36097 ac_status=$?
36098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099 (exit $ac_status); }; } &&
36100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36102 (eval $ac_try) 2>&5
36103 ac_status=$?
36104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36105 (exit $ac_status); }; }; then
36106 ac_cv_lib_esd_esd_close=yes
36107else
36108 echo "$as_me: failed program was:" >&5
36109sed 's/^/| /' conftest.$ac_ext >&5
36110
36111ac_cv_lib_esd_esd_close=no
36112fi
ac1cb8d3
VS
36113rm -f conftest.err conftest.$ac_objext \
36114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36115LIBS=$ac_check_lib_save_LIBS
36116fi
36117echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36118echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36119if test $ac_cv_lib_esd_esd_close = yes; then
36120
36121
36122for ac_header in esd.h
36123do
36124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36125if eval "test \"\${$as_ac_Header+set}\" = set"; then
36126 echo "$as_me:$LINENO: checking for $ac_header" >&5
36127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36128if eval "test \"\${$as_ac_Header+set}\" = set"; then
36129 echo $ECHO_N "(cached) $ECHO_C" >&6
36130fi
36131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36133else
36134 # Is the header compilable?
36135echo "$as_me:$LINENO: checking $ac_header usability" >&5
36136echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36137cat >conftest.$ac_ext <<_ACEOF
36138/* confdefs.h. */
36139_ACEOF
36140cat confdefs.h >>conftest.$ac_ext
36141cat >>conftest.$ac_ext <<_ACEOF
36142/* end confdefs.h. */
36143$ac_includes_default
36144#include <$ac_header>
36145_ACEOF
36146rm -f conftest.$ac_objext
36147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36148 (eval $ac_compile) 2>conftest.er1
a848cd7e 36149 ac_status=$?
ac1cb8d3
VS
36150 grep -v '^ *+' conftest.er1 >conftest.err
36151 rm -f conftest.er1
36152 cat conftest.err >&5
a848cd7e
SC
36153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154 (exit $ac_status); } &&
0093c2fc 36155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36157 (eval $ac_try) 2>&5
36158 ac_status=$?
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); }; } &&
36161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36163 (eval $ac_try) 2>&5
36164 ac_status=$?
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); }; }; then
36167 ac_header_compiler=yes
36168else
36169 echo "$as_me: failed program was:" >&5
36170sed 's/^/| /' conftest.$ac_ext >&5
36171
36172ac_header_compiler=no
36173fi
ac1cb8d3 36174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36176echo "${ECHO_T}$ac_header_compiler" >&6
36177
36178# Is the header present?
36179echo "$as_me:$LINENO: checking $ac_header presence" >&5
36180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36181cat >conftest.$ac_ext <<_ACEOF
36182/* confdefs.h. */
36183_ACEOF
36184cat confdefs.h >>conftest.$ac_ext
36185cat >>conftest.$ac_ext <<_ACEOF
36186/* end confdefs.h. */
36187#include <$ac_header>
36188_ACEOF
36189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36191 ac_status=$?
36192 grep -v '^ *+' conftest.er1 >conftest.err
36193 rm -f conftest.er1
36194 cat conftest.err >&5
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); } >/dev/null; then
36197 if test -s conftest.err; then
36198 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36200 else
36201 ac_cpp_err=
36202 fi
36203else
36204 ac_cpp_err=yes
36205fi
36206if test -z "$ac_cpp_err"; then
36207 ac_header_preproc=yes
36208else
36209 echo "$as_me: failed program was:" >&5
36210sed 's/^/| /' conftest.$ac_ext >&5
36211
36212 ac_header_preproc=no
36213fi
36214rm -f conftest.err conftest.$ac_ext
36215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36216echo "${ECHO_T}$ac_header_preproc" >&6
36217
36218# So? What about this header?
ac1cb8d3
VS
36219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36220 yes:no: )
a848cd7e
SC
36221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36225 ac_header_preproc=yes
a848cd7e 36226 ;;
ac1cb8d3 36227 no:yes:* )
a848cd7e
SC
36228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36240 (
36241 cat <<\_ASBOX
ac1cb8d3
VS
36242## ----------------------------------------- ##
36243## Report this to wx-dev@lists.wxwidgets.org ##
36244## ----------------------------------------- ##
a848cd7e
SC
36245_ASBOX
36246 ) |
36247 sed "s/^/$as_me: WARNING: /" >&2
36248 ;;
36249esac
36250echo "$as_me:$LINENO: checking for $ac_header" >&5
36251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36252if eval "test \"\${$as_ac_Header+set}\" = set"; then
36253 echo $ECHO_N "(cached) $ECHO_C" >&6
36254else
ac1cb8d3 36255 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36256fi
36257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36259
36260fi
36261if test `eval echo '${'$as_ac_Header'}'` = yes; then
36262 cat >>confdefs.h <<_ACEOF
36263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36264_ACEOF
36265
36266 EXTRALIBS_ESD="-lesd"
36267
36268fi
36269
36270done
36271
36272
36273fi
36274
36275
36276
36277echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36278echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36279cat >conftest.$ac_ext <<_ACEOF
36280/* confdefs.h. */
36281_ACEOF
36282cat confdefs.h >>conftest.$ac_ext
36283cat >>conftest.$ac_ext <<_ACEOF
36284/* end confdefs.h. */
36285#ifdef __linux__
36286 #include <linux/cdrom.h>
36287 #else
36288 /* For Solaris */
36289 #include <sys/cdio.h>
36290 #endif
36291
36292int
36293main ()
36294{
36295struct cdrom_tocentry entry, old_entry;
36296 ;
36297 return 0;
36298}
36299_ACEOF
36300rm -f conftest.$ac_objext
36301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36302 (eval $ac_compile) 2>conftest.er1
a848cd7e 36303 ac_status=$?
ac1cb8d3
VS
36304 grep -v '^ *+' conftest.er1 >conftest.err
36305 rm -f conftest.er1
36306 cat conftest.err >&5
a848cd7e
SC
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); } &&
0093c2fc 36309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36311 (eval $ac_try) 2>&5
36312 ac_status=$?
36313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314 (exit $ac_status); }; } &&
36315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36317 (eval $ac_try) 2>&5
36318 ac_status=$?
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); }; }; then
36321 echo "$as_me:$LINENO: result: yes" >&5
36322echo "${ECHO_T}yes" >&6
36323 cat >>confdefs.h <<\_ACEOF
36324#define HAVE_KNOWN_CDROM_INTERFACE 1
36325_ACEOF
36326
36327else
36328 echo "$as_me: failed program was:" >&5
36329sed 's/^/| /' conftest.$ac_ext >&5
36330
36331echo "$as_me:$LINENO: result: no" >&5
36332echo "${ECHO_T}no" >&6
36333fi
ac1cb8d3 36334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36335
36336
36337cat >confcache <<\_ACEOF
36338# This file is a shell script that caches the results of configure
36339# tests run on this system so they can be shared between configure
36340# scripts and configure runs, see configure's option --config-cache.
36341# It is not useful on other systems. If it contains results you don't
36342# want to keep, you may remove or edit it.
36343#
36344# config.status only pays attention to the cache file if you give it
36345# the --recheck option to rerun configure.
36346#
36347# `ac_cv_env_foo' variables (set or unset) will be overridden when
36348# loading this file, other *unset* `ac_cv_foo' will be assigned the
36349# following values.
36350
36351_ACEOF
36352
36353# The following way of writing the cache mishandles newlines in values,
36354# but we know of no workaround that is simple, portable, and efficient.
36355# So, don't put newlines in cache variables' values.
36356# Ultrix sh set writes to stderr and can't be redirected directly,
36357# and sets the high bit in the cache file unless we assign to the vars.
36358{
36359 (set) 2>&1 |
36360 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36361 *ac_space=\ *)
36362 # `set' does not quote correctly, so add quotes (double-quote
36363 # substitution turns \\\\ into \\, and sed turns \\ into \).
36364 sed -n \
ac1cb8d3
VS
36365 "s/'/'\\\\''/g;
36366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36367 ;;
36368 *)
36369 # `set' quotes correctly as required by POSIX, so do not add quotes.
36370 sed -n \
ac1cb8d3 36371 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36372 ;;
36373 esac;
36374} |
36375 sed '
36376 t clear
36377 : clear
36378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36379 t end
36380 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36381 : end' >>confcache
36382if diff $cache_file confcache >/dev/null 2>&1; then :; else
36383 if test -w $cache_file; then
36384 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36385 cat confcache >$cache_file
36386 else
36387 echo "not updating unwritable cache $cache_file"
36388 fi
36389fi
36390rm -f confcache
36391
36392
36393CPP_MT_FLAG=
36394if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36395
36396
36397 THREADS_LINK=
36398 THREADS_CFLAGS=
36399
36400 if test "$wxUSE_THREADS" = "yes" ; then
36401 if test "$USE_BEOS" = 1; then
36402 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36403echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36404 wxUSE_THREADS="no"
36405 fi
36406 fi
36407
36408 if test "$wxUSE_THREADS" = "yes" ; then
36409
36410
36411 THREAD_OPTS="-pthread"
36412 case "${host}" in
36413 *-*-solaris2* | *-*-sunos4* )
36414 if test "x$GCC" = "xyes"; then
36415 THREAD_OPTS="-pthreads $THREAD_OPTS"
36416 else
36417 THREAD_OPTS="-mt $THREAD_OPTS"
36418 fi
36419 ;;
36420 *-*-freebsd*)
36421 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36422 ;;
36423 *-*-darwin* | *-*-cygwin* )
36424 THREAD_OPTS=""
36425 ;;
36426 *-*-aix*)
36427 THREAD_OPTS="pthreads"
36428 ;;
36429 *-hp-hpux* )
00421666
MW
36430 if test "x$GCC" = "xyes"; then
36431 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36432 THREAD_OPTS=""
36433 else
0093c2fc 36434 THREAD_OPTS="-mt"
a848cd7e
SC
36435 fi
36436 ;;
36437
36438 *-*-irix* )
36439 if test "x$GCC" = "xyes"; then
36440 THREAD_OPTS=""
36441 fi
36442 ;;
36443
36444 *-*-*UnixWare*)
36445 if test "x$GCC" != "xyes"; then
36446 THREAD_OPTS="-Ethread"
36447 fi
36448 ;;
36449 esac
36450
36451 THREAD_OPTS="$THREAD_OPTS pthread none"
36452
36453 THREADS_OK=no
36454 for flag in $THREAD_OPTS; do
36455 case $flag in
36456 none)
36457 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36458echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36459 ;;
36460
36461 -*)
36462 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36463echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36464 THREADS_CFLAGS="$flag"
36465 ;;
36466
36467 *)
36468 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36469echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36470 THREADS_LINK="-l$flag"
36471 ;;
36472 esac
36473
36474 save_LIBS="$LIBS"
36475 save_CFLAGS="$CFLAGS"
36476 LIBS="$THREADS_LINK $LIBS"
36477 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36478
36479 cat >conftest.$ac_ext <<_ACEOF
36480/* confdefs.h. */
36481_ACEOF
36482cat confdefs.h >>conftest.$ac_ext
36483cat >>conftest.$ac_ext <<_ACEOF
36484/* end confdefs.h. */
36485#include <pthread.h>
36486int
36487main ()
36488{
36489pthread_create(0,0,0,0);
36490 ;
36491 return 0;
36492}
36493_ACEOF
36494rm -f conftest.$ac_objext conftest$ac_exeext
36495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36496 (eval $ac_link) 2>conftest.er1
a848cd7e 36497 ac_status=$?
ac1cb8d3
VS
36498 grep -v '^ *+' conftest.er1 >conftest.err
36499 rm -f conftest.er1
36500 cat conftest.err >&5
a848cd7e
SC
36501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502 (exit $ac_status); } &&
0093c2fc 36503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36505 (eval $ac_try) 2>&5
36506 ac_status=$?
36507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36508 (exit $ac_status); }; } &&
36509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36511 (eval $ac_try) 2>&5
36512 ac_status=$?
36513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514 (exit $ac_status); }; }; then
36515 THREADS_OK=yes
36516else
36517 echo "$as_me: failed program was:" >&5
36518sed 's/^/| /' conftest.$ac_ext >&5
36519
36520fi
ac1cb8d3
VS
36521rm -f conftest.err conftest.$ac_objext \
36522 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36523
36524 LIBS="$save_LIBS"
36525 CFLAGS="$save_CFLAGS"
36526
36527 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36528echo "${ECHO_T}$THREADS_OK" >&6
36529 if test "x$THREADS_OK" = "xyes"; then
36530 break;
36531 fi
36532
36533 THREADS_LINK=""
36534 THREADS_CFLAGS=""
36535 done
36536
36537 if test "x$THREADS_OK" != "xyes"; then
36538 wxUSE_THREADS=no
36539 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36540echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36541 else
36542 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36543 LIBS="$THREADS_LINK $LIBS"
36544
36545 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36546echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36547 flag=no
36548 case "${host}" in
36549 *-aix*)
36550 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36551 flag="-D_THREAD_SAFE"
36552 ;;
36553 *-freebsd*)
36554 flag="-D_THREAD_SAFE"
36555 ;;
36556 *-hp-hpux* )
36557 flag="-D_REENTRANT"
36558 if test "x$GCC" != "xyes"; then
36559 flag="$flag -D_RWSTD_MULTI_THREAD"
36560 fi
36561 ;;
36562 *solaris* | alpha*-osf*)
36563 flag="-D_REENTRANT"
36564 ;;
36565 esac
36566 echo "$as_me:$LINENO: result: ${flag}" >&5
36567echo "${ECHO_T}${flag}" >&6
36568 if test "x$flag" != xno; then
36569 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36570 fi
36571
36572 if test "x$THREADS_CFLAGS" != "x"; then
36573 CFLAGS="$CFLAGS $THREADS_CFLAGS"
36574 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
36575 fi
36576 fi
36577 fi
36578
36579 if test "$wxUSE_THREADS" = "yes" ; then
36580
36581for ac_func in thr_setconcurrency
36582do
36583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36584echo "$as_me:$LINENO: checking for $ac_func" >&5
36585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36586if eval "test \"\${$as_ac_var+set}\" = set"; then
36587 echo $ECHO_N "(cached) $ECHO_C" >&6
36588else
36589 cat >conftest.$ac_ext <<_ACEOF
36590/* confdefs.h. */
36591_ACEOF
36592cat confdefs.h >>conftest.$ac_ext
36593cat >>conftest.$ac_ext <<_ACEOF
36594/* end confdefs.h. */
ac1cb8d3
VS
36595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36597#define $ac_func innocuous_$ac_func
36598
a848cd7e
SC
36599/* System header to define __stub macros and hopefully few prototypes,
36600 which can conflict with char $ac_func (); below.
36601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36603
a848cd7e
SC
36604#ifdef __STDC__
36605# include <limits.h>
36606#else
36607# include <assert.h>
36608#endif
ac1cb8d3
VS
36609
36610#undef $ac_func
36611
a848cd7e
SC
36612/* Override any gcc2 internal prototype to avoid an error. */
36613#ifdef __cplusplus
36614extern "C"
36615{
36616#endif
36617/* We use char because int might match the return type of a gcc2
36618 builtin and then its argument prototype would still apply. */
36619char $ac_func ();
36620/* The GNU C library defines this for functions which it implements
36621 to always fail with ENOSYS. Some functions are actually named
36622 something starting with __ and the normal name is an alias. */
36623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36624choke me
36625#else
36626char (*f) () = $ac_func;
36627#endif
36628#ifdef __cplusplus
36629}
36630#endif
36631
36632int
36633main ()
36634{
36635return f != $ac_func;
36636 ;
36637 return 0;
36638}
36639_ACEOF
36640rm -f conftest.$ac_objext conftest$ac_exeext
36641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36642 (eval $ac_link) 2>conftest.er1
a848cd7e 36643 ac_status=$?
ac1cb8d3
VS
36644 grep -v '^ *+' conftest.er1 >conftest.err
36645 rm -f conftest.er1
36646 cat conftest.err >&5
a848cd7e
SC
36647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36648 (exit $ac_status); } &&
0093c2fc 36649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36651 (eval $ac_try) 2>&5
36652 ac_status=$?
36653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654 (exit $ac_status); }; } &&
36655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36657 (eval $ac_try) 2>&5
36658 ac_status=$?
36659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36660 (exit $ac_status); }; }; then
36661 eval "$as_ac_var=yes"
36662else
36663 echo "$as_me: failed program was:" >&5
36664sed 's/^/| /' conftest.$ac_ext >&5
36665
36666eval "$as_ac_var=no"
36667fi
ac1cb8d3
VS
36668rm -f conftest.err conftest.$ac_objext \
36669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36670fi
36671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36672echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36673if test `eval echo '${'$as_ac_var'}'` = yes; then
36674 cat >>confdefs.h <<_ACEOF
36675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36676_ACEOF
36677
36678fi
36679done
36680
36681
6ebeb4c7
VZ
36682 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36683echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36684if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36685 echo $ECHO_N "(cached) $ECHO_C" >&6
36686else
36687
36688 cat >conftest.$ac_ext <<_ACEOF
36689/* confdefs.h. */
36690_ACEOF
36691cat confdefs.h >>conftest.$ac_ext
36692cat >>conftest.$ac_ext <<_ACEOF
36693/* end confdefs.h. */
36694#include <pthread.h>
36695 void ThreadCleanupFunc(void *p);
36696
36697int
36698main ()
36699{
36700
36701 void *p;
36702 pthread_cleanup_push(ThreadCleanupFunc, p);
36703 pthread_cleanup_pop(0);
36704
36705 ;
36706 return 0;
36707}
36708_ACEOF
36709rm -f conftest.$ac_objext
36710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36711 (eval $ac_compile) 2>conftest.er1
36712 ac_status=$?
36713 grep -v '^ *+' conftest.er1 >conftest.err
36714 rm -f conftest.er1
36715 cat conftest.err >&5
36716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717 (exit $ac_status); } &&
0093c2fc 36718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36720 (eval $ac_try) 2>&5
36721 ac_status=$?
36722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36723 (exit $ac_status); }; } &&
36724 { ac_try='test -s conftest.$ac_objext'
36725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36726 (eval $ac_try) 2>&5
36727 ac_status=$?
36728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729 (exit $ac_status); }; }; then
36730
36731 wx_cv_func_pthread_cleanup=yes
36732
36733else
36734 echo "$as_me: failed program was:" >&5
36735sed 's/^/| /' conftest.$ac_ext >&5
36736
36737
36738 wx_cv_func_pthread_cleanup=no
36739
36740
36741fi
36742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36743
36744fi
36745echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36746echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36747 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36748 cat >>confdefs.h <<\_ACEOF
36749#define wxHAVE_PTHREAD_CLEANUP 1
36750_ACEOF
36751
36752 fi
36753
a848cd7e
SC
36754
36755for ac_header in sched.h
36756do
36757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36758if eval "test \"\${$as_ac_Header+set}\" = set"; then
36759 echo "$as_me:$LINENO: checking for $ac_header" >&5
36760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36761if eval "test \"\${$as_ac_Header+set}\" = set"; then
36762 echo $ECHO_N "(cached) $ECHO_C" >&6
36763fi
36764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36766else
36767 # Is the header compilable?
36768echo "$as_me:$LINENO: checking $ac_header usability" >&5
36769echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36770cat >conftest.$ac_ext <<_ACEOF
36771/* confdefs.h. */
36772_ACEOF
36773cat confdefs.h >>conftest.$ac_ext
36774cat >>conftest.$ac_ext <<_ACEOF
36775/* end confdefs.h. */
36776$ac_includes_default
36777#include <$ac_header>
36778_ACEOF
36779rm -f conftest.$ac_objext
36780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36781 (eval $ac_compile) 2>conftest.er1
a848cd7e 36782 ac_status=$?
ac1cb8d3
VS
36783 grep -v '^ *+' conftest.er1 >conftest.err
36784 rm -f conftest.er1
36785 cat conftest.err >&5
a848cd7e
SC
36786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36787 (exit $ac_status); } &&
0093c2fc 36788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36790 (eval $ac_try) 2>&5
36791 ac_status=$?
36792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793 (exit $ac_status); }; } &&
36794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36796 (eval $ac_try) 2>&5
36797 ac_status=$?
36798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36799 (exit $ac_status); }; }; then
36800 ac_header_compiler=yes
36801else
36802 echo "$as_me: failed program was:" >&5
36803sed 's/^/| /' conftest.$ac_ext >&5
36804
36805ac_header_compiler=no
36806fi
ac1cb8d3 36807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36808echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36809echo "${ECHO_T}$ac_header_compiler" >&6
36810
36811# Is the header present?
36812echo "$as_me:$LINENO: checking $ac_header presence" >&5
36813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36814cat >conftest.$ac_ext <<_ACEOF
36815/* confdefs.h. */
36816_ACEOF
36817cat confdefs.h >>conftest.$ac_ext
36818cat >>conftest.$ac_ext <<_ACEOF
36819/* end confdefs.h. */
36820#include <$ac_header>
36821_ACEOF
36822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36824 ac_status=$?
36825 grep -v '^ *+' conftest.er1 >conftest.err
36826 rm -f conftest.er1
36827 cat conftest.err >&5
36828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829 (exit $ac_status); } >/dev/null; then
36830 if test -s conftest.err; then
36831 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36833 else
36834 ac_cpp_err=
36835 fi
36836else
36837 ac_cpp_err=yes
36838fi
36839if test -z "$ac_cpp_err"; then
36840 ac_header_preproc=yes
36841else
36842 echo "$as_me: failed program was:" >&5
36843sed 's/^/| /' conftest.$ac_ext >&5
36844
36845 ac_header_preproc=no
36846fi
36847rm -f conftest.err conftest.$ac_ext
36848echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36849echo "${ECHO_T}$ac_header_preproc" >&6
36850
36851# So? What about this header?
ac1cb8d3
VS
36852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36853 yes:no: )
a848cd7e
SC
36854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36858 ac_header_preproc=yes
a848cd7e 36859 ;;
ac1cb8d3 36860 no:yes:* )
a848cd7e
SC
36861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36864echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36868echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36873 (
36874 cat <<\_ASBOX
ac1cb8d3
VS
36875## ----------------------------------------- ##
36876## Report this to wx-dev@lists.wxwidgets.org ##
36877## ----------------------------------------- ##
a848cd7e
SC
36878_ASBOX
36879 ) |
36880 sed "s/^/$as_me: WARNING: /" >&2
36881 ;;
36882esac
36883echo "$as_me:$LINENO: checking for $ac_header" >&5
36884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36885if eval "test \"\${$as_ac_Header+set}\" = set"; then
36886 echo $ECHO_N "(cached) $ECHO_C" >&6
36887else
ac1cb8d3 36888 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36889fi
36890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36892
36893fi
36894if test `eval echo '${'$as_ac_Header'}'` = yes; then
36895 cat >>confdefs.h <<_ACEOF
36896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36897_ACEOF
36898
36899fi
36900
36901done
36902
36903 if test "$ac_cv_header_sched_h" = "yes"; then
36904 echo "$as_me:$LINENO: checking for sched_yield" >&5
36905echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36906if test "${ac_cv_func_sched_yield+set}" = set; then
36907 echo $ECHO_N "(cached) $ECHO_C" >&6
36908else
36909 cat >conftest.$ac_ext <<_ACEOF
36910/* confdefs.h. */
36911_ACEOF
36912cat confdefs.h >>conftest.$ac_ext
36913cat >>conftest.$ac_ext <<_ACEOF
36914/* end confdefs.h. */
ac1cb8d3
VS
36915/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36917#define sched_yield innocuous_sched_yield
36918
a848cd7e
SC
36919/* System header to define __stub macros and hopefully few prototypes,
36920 which can conflict with char sched_yield (); below.
36921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36922 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36923
a848cd7e
SC
36924#ifdef __STDC__
36925# include <limits.h>
36926#else
36927# include <assert.h>
36928#endif
ac1cb8d3
VS
36929
36930#undef sched_yield
36931
a848cd7e
SC
36932/* Override any gcc2 internal prototype to avoid an error. */
36933#ifdef __cplusplus
36934extern "C"
36935{
36936#endif
36937/* We use char because int might match the return type of a gcc2
36938 builtin and then its argument prototype would still apply. */
36939char sched_yield ();
36940/* The GNU C library defines this for functions which it implements
36941 to always fail with ENOSYS. Some functions are actually named
36942 something starting with __ and the normal name is an alias. */
36943#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36944choke me
36945#else
36946char (*f) () = sched_yield;
36947#endif
36948#ifdef __cplusplus
36949}
36950#endif
36951
36952int
36953main ()
36954{
36955return f != sched_yield;
36956 ;
36957 return 0;
36958}
36959_ACEOF
36960rm -f conftest.$ac_objext conftest$ac_exeext
36961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36962 (eval $ac_link) 2>conftest.er1
a848cd7e 36963 ac_status=$?
ac1cb8d3
VS
36964 grep -v '^ *+' conftest.er1 >conftest.err
36965 rm -f conftest.er1
36966 cat conftest.err >&5
a848cd7e
SC
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); } &&
0093c2fc 36969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36971 (eval $ac_try) 2>&5
36972 ac_status=$?
36973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974 (exit $ac_status); }; } &&
36975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36977 (eval $ac_try) 2>&5
36978 ac_status=$?
36979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980 (exit $ac_status); }; }; then
36981 ac_cv_func_sched_yield=yes
36982else
36983 echo "$as_me: failed program was:" >&5
36984sed 's/^/| /' conftest.$ac_ext >&5
36985
36986ac_cv_func_sched_yield=no
36987fi
ac1cb8d3
VS
36988rm -f conftest.err conftest.$ac_objext \
36989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36990fi
36991echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
36992echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
36993if test $ac_cv_func_sched_yield = yes; then
36994 cat >>confdefs.h <<\_ACEOF
36995#define HAVE_SCHED_YIELD 1
36996_ACEOF
36997
36998else
36999
37000 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37001echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37002if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37003 echo $ECHO_N "(cached) $ECHO_C" >&6
37004else
37005 ac_check_lib_save_LIBS=$LIBS
37006LIBS="-lposix4 $LIBS"
37007cat >conftest.$ac_ext <<_ACEOF
37008/* confdefs.h. */
37009_ACEOF
37010cat confdefs.h >>conftest.$ac_ext
37011cat >>conftest.$ac_ext <<_ACEOF
37012/* end confdefs.h. */
37013
37014/* Override any gcc2 internal prototype to avoid an error. */
37015#ifdef __cplusplus
37016extern "C"
37017#endif
37018/* We use char because int might match the return type of a gcc2
37019 builtin and then its argument prototype would still apply. */
37020char sched_yield ();
37021int
37022main ()
37023{
37024sched_yield ();
37025 ;
37026 return 0;
37027}
37028_ACEOF
37029rm -f conftest.$ac_objext conftest$ac_exeext
37030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37031 (eval $ac_link) 2>conftest.er1
a848cd7e 37032 ac_status=$?
ac1cb8d3
VS
37033 grep -v '^ *+' conftest.er1 >conftest.err
37034 rm -f conftest.er1
37035 cat conftest.err >&5
a848cd7e
SC
37036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037 (exit $ac_status); } &&
0093c2fc 37038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37040 (eval $ac_try) 2>&5
37041 ac_status=$?
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); }; } &&
37044 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37046 (eval $ac_try) 2>&5
37047 ac_status=$?
37048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049 (exit $ac_status); }; }; then
37050 ac_cv_lib_posix4_sched_yield=yes
37051else
37052 echo "$as_me: failed program was:" >&5
37053sed 's/^/| /' conftest.$ac_ext >&5
37054
37055ac_cv_lib_posix4_sched_yield=no
37056fi
ac1cb8d3
VS
37057rm -f conftest.err conftest.$ac_objext \
37058 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37059LIBS=$ac_check_lib_save_LIBS
37060fi
37061echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37062echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37063if test $ac_cv_lib_posix4_sched_yield = yes; then
37064 cat >>confdefs.h <<\_ACEOF
37065#define HAVE_SCHED_YIELD 1
37066_ACEOF
37067 POSIX4_LINK=" -lposix4"
37068else
37069 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37070echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37071
37072fi
37073
37074
37075
37076fi
37077
37078 fi
37079
37080 HAVE_PRIOR_FUNCS=0
37081 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37082echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37083if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37084 echo $ECHO_N "(cached) $ECHO_C" >&6
37085else
37086 cat >conftest.$ac_ext <<_ACEOF
37087/* confdefs.h. */
37088_ACEOF
37089cat confdefs.h >>conftest.$ac_ext
37090cat >>conftest.$ac_ext <<_ACEOF
37091/* end confdefs.h. */
ac1cb8d3
VS
37092/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37094#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37095
a848cd7e
SC
37096/* System header to define __stub macros and hopefully few prototypes,
37097 which can conflict with char pthread_attr_getschedpolicy (); below.
37098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37099 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37100
a848cd7e
SC
37101#ifdef __STDC__
37102# include <limits.h>
37103#else
37104# include <assert.h>
37105#endif
ac1cb8d3
VS
37106
37107#undef pthread_attr_getschedpolicy
37108
a848cd7e
SC
37109/* Override any gcc2 internal prototype to avoid an error. */
37110#ifdef __cplusplus
37111extern "C"
37112{
37113#endif
37114/* We use char because int might match the return type of a gcc2
37115 builtin and then its argument prototype would still apply. */
37116char pthread_attr_getschedpolicy ();
37117/* The GNU C library defines this for functions which it implements
37118 to always fail with ENOSYS. Some functions are actually named
37119 something starting with __ and the normal name is an alias. */
37120#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37121choke me
37122#else
37123char (*f) () = pthread_attr_getschedpolicy;
37124#endif
37125#ifdef __cplusplus
37126}
37127#endif
37128
37129int
37130main ()
37131{
37132return f != pthread_attr_getschedpolicy;
37133 ;
37134 return 0;
37135}
37136_ACEOF
37137rm -f conftest.$ac_objext conftest$ac_exeext
37138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37139 (eval $ac_link) 2>conftest.er1
a848cd7e 37140 ac_status=$?
ac1cb8d3
VS
37141 grep -v '^ *+' conftest.er1 >conftest.err
37142 rm -f conftest.er1
37143 cat conftest.err >&5
a848cd7e
SC
37144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37145 (exit $ac_status); } &&
0093c2fc 37146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37148 (eval $ac_try) 2>&5
37149 ac_status=$?
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); }; } &&
37152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37154 (eval $ac_try) 2>&5
37155 ac_status=$?
37156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157 (exit $ac_status); }; }; then
37158 ac_cv_func_pthread_attr_getschedpolicy=yes
37159else
37160 echo "$as_me: failed program was:" >&5
37161sed 's/^/| /' conftest.$ac_ext >&5
37162
37163ac_cv_func_pthread_attr_getschedpolicy=no
37164fi
ac1cb8d3
VS
37165rm -f conftest.err conftest.$ac_objext \
37166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37167fi
37168echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37169echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37170if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37171 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37172echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37173if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37174 echo $ECHO_N "(cached) $ECHO_C" >&6
37175else
37176 cat >conftest.$ac_ext <<_ACEOF
37177/* confdefs.h. */
37178_ACEOF
37179cat confdefs.h >>conftest.$ac_ext
37180cat >>conftest.$ac_ext <<_ACEOF
37181/* end confdefs.h. */
ac1cb8d3
VS
37182/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37184#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37185
a848cd7e
SC
37186/* System header to define __stub macros and hopefully few prototypes,
37187 which can conflict with char pthread_attr_setschedparam (); below.
37188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37189 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37190
a848cd7e
SC
37191#ifdef __STDC__
37192# include <limits.h>
37193#else
37194# include <assert.h>
37195#endif
ac1cb8d3
VS
37196
37197#undef pthread_attr_setschedparam
37198
a848cd7e
SC
37199/* Override any gcc2 internal prototype to avoid an error. */
37200#ifdef __cplusplus
37201extern "C"
37202{
37203#endif
37204/* We use char because int might match the return type of a gcc2
37205 builtin and then its argument prototype would still apply. */
37206char pthread_attr_setschedparam ();
37207/* The GNU C library defines this for functions which it implements
37208 to always fail with ENOSYS. Some functions are actually named
37209 something starting with __ and the normal name is an alias. */
37210#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37211choke me
37212#else
37213char (*f) () = pthread_attr_setschedparam;
37214#endif
37215#ifdef __cplusplus
37216}
37217#endif
37218
37219int
37220main ()
37221{
37222return f != pthread_attr_setschedparam;
37223 ;
37224 return 0;
37225}
37226_ACEOF
37227rm -f conftest.$ac_objext conftest$ac_exeext
37228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37229 (eval $ac_link) 2>conftest.er1
a848cd7e 37230 ac_status=$?
ac1cb8d3
VS
37231 grep -v '^ *+' conftest.er1 >conftest.err
37232 rm -f conftest.er1
37233 cat conftest.err >&5
a848cd7e
SC
37234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37235 (exit $ac_status); } &&
0093c2fc 37236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37238 (eval $ac_try) 2>&5
37239 ac_status=$?
37240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241 (exit $ac_status); }; } &&
37242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244 (eval $ac_try) 2>&5
37245 ac_status=$?
37246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247 (exit $ac_status); }; }; then
37248 ac_cv_func_pthread_attr_setschedparam=yes
37249else
37250 echo "$as_me: failed program was:" >&5
37251sed 's/^/| /' conftest.$ac_ext >&5
37252
37253ac_cv_func_pthread_attr_setschedparam=no
37254fi
ac1cb8d3
VS
37255rm -f conftest.err conftest.$ac_objext \
37256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37257fi
37258echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37259echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37260if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37261 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37262echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37263if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37264 echo $ECHO_N "(cached) $ECHO_C" >&6
37265else
37266 cat >conftest.$ac_ext <<_ACEOF
37267/* confdefs.h. */
37268_ACEOF
37269cat confdefs.h >>conftest.$ac_ext
37270cat >>conftest.$ac_ext <<_ACEOF
37271/* end confdefs.h. */
ac1cb8d3
VS
37272/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37274#define sched_get_priority_max innocuous_sched_get_priority_max
37275
a848cd7e
SC
37276/* System header to define __stub macros and hopefully few prototypes,
37277 which can conflict with char sched_get_priority_max (); below.
37278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37279 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37280
a848cd7e
SC
37281#ifdef __STDC__
37282# include <limits.h>
37283#else
37284# include <assert.h>
37285#endif
ac1cb8d3
VS
37286
37287#undef sched_get_priority_max
37288
a848cd7e
SC
37289/* Override any gcc2 internal prototype to avoid an error. */
37290#ifdef __cplusplus
37291extern "C"
37292{
37293#endif
37294/* We use char because int might match the return type of a gcc2
37295 builtin and then its argument prototype would still apply. */
37296char sched_get_priority_max ();
37297/* The GNU C library defines this for functions which it implements
37298 to always fail with ENOSYS. Some functions are actually named
37299 something starting with __ and the normal name is an alias. */
37300#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37301choke me
37302#else
37303char (*f) () = sched_get_priority_max;
37304#endif
37305#ifdef __cplusplus
37306}
37307#endif
37308
37309int
37310main ()
37311{
37312return f != sched_get_priority_max;
37313 ;
37314 return 0;
37315}
37316_ACEOF
37317rm -f conftest.$ac_objext conftest$ac_exeext
37318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37319 (eval $ac_link) 2>conftest.er1
a848cd7e 37320 ac_status=$?
ac1cb8d3
VS
37321 grep -v '^ *+' conftest.er1 >conftest.err
37322 rm -f conftest.er1
37323 cat conftest.err >&5
a848cd7e
SC
37324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37325 (exit $ac_status); } &&
0093c2fc 37326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37328 (eval $ac_try) 2>&5
37329 ac_status=$?
37330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331 (exit $ac_status); }; } &&
37332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37334 (eval $ac_try) 2>&5
37335 ac_status=$?
37336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37337 (exit $ac_status); }; }; then
37338 ac_cv_func_sched_get_priority_max=yes
37339else
37340 echo "$as_me: failed program was:" >&5
37341sed 's/^/| /' conftest.$ac_ext >&5
37342
37343ac_cv_func_sched_get_priority_max=no
37344fi
ac1cb8d3
VS
37345rm -f conftest.err conftest.$ac_objext \
37346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37347fi
37348echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37349echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37350if test $ac_cv_func_sched_get_priority_max = yes; then
37351 HAVE_PRIOR_FUNCS=1
37352else
37353 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37354echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37355if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37356 echo $ECHO_N "(cached) $ECHO_C" >&6
37357else
37358 ac_check_lib_save_LIBS=$LIBS
37359LIBS="-lposix4 $LIBS"
37360cat >conftest.$ac_ext <<_ACEOF
37361/* confdefs.h. */
37362_ACEOF
37363cat confdefs.h >>conftest.$ac_ext
37364cat >>conftest.$ac_ext <<_ACEOF
37365/* end confdefs.h. */
37366
37367/* Override any gcc2 internal prototype to avoid an error. */
37368#ifdef __cplusplus
37369extern "C"
37370#endif
37371/* We use char because int might match the return type of a gcc2
37372 builtin and then its argument prototype would still apply. */
37373char sched_get_priority_max ();
37374int
37375main ()
37376{
37377sched_get_priority_max ();
37378 ;
37379 return 0;
37380}
37381_ACEOF
37382rm -f conftest.$ac_objext conftest$ac_exeext
37383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37384 (eval $ac_link) 2>conftest.er1
a848cd7e 37385 ac_status=$?
ac1cb8d3
VS
37386 grep -v '^ *+' conftest.er1 >conftest.err
37387 rm -f conftest.er1
37388 cat conftest.err >&5
a848cd7e
SC
37389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390 (exit $ac_status); } &&
0093c2fc 37391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37393 (eval $ac_try) 2>&5
37394 ac_status=$?
37395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37396 (exit $ac_status); }; } &&
37397 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37399 (eval $ac_try) 2>&5
37400 ac_status=$?
37401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402 (exit $ac_status); }; }; then
37403 ac_cv_lib_posix4_sched_get_priority_max=yes
37404else
37405 echo "$as_me: failed program was:" >&5
37406sed 's/^/| /' conftest.$ac_ext >&5
37407
37408ac_cv_lib_posix4_sched_get_priority_max=no
37409fi
ac1cb8d3
VS
37410rm -f conftest.err conftest.$ac_objext \
37411 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37412LIBS=$ac_check_lib_save_LIBS
37413fi
37414echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37415echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37416if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37417
37418 HAVE_PRIOR_FUNCS=1
37419 POSIX4_LINK=" -lposix4"
37420
37421fi
37422
37423
37424fi
37425
37426
37427fi
37428
37429
37430fi
37431
37432
37433 if test "$HAVE_PRIOR_FUNCS" = 1; then
37434 cat >>confdefs.h <<\_ACEOF
37435#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37436_ACEOF
37437
37438 else
37439 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37440echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37441 fi
37442
37443 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37444echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37445if test "${ac_cv_func_pthread_cancel+set}" = set; then
37446 echo $ECHO_N "(cached) $ECHO_C" >&6
37447else
37448 cat >conftest.$ac_ext <<_ACEOF
37449/* confdefs.h. */
37450_ACEOF
37451cat confdefs.h >>conftest.$ac_ext
37452cat >>conftest.$ac_ext <<_ACEOF
37453/* end confdefs.h. */
ac1cb8d3
VS
37454/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37456#define pthread_cancel innocuous_pthread_cancel
37457
a848cd7e
SC
37458/* System header to define __stub macros and hopefully few prototypes,
37459 which can conflict with char pthread_cancel (); below.
37460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37461 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37462
a848cd7e
SC
37463#ifdef __STDC__
37464# include <limits.h>
37465#else
37466# include <assert.h>
37467#endif
ac1cb8d3
VS
37468
37469#undef pthread_cancel
37470
a848cd7e
SC
37471/* Override any gcc2 internal prototype to avoid an error. */
37472#ifdef __cplusplus
37473extern "C"
37474{
37475#endif
37476/* We use char because int might match the return type of a gcc2
37477 builtin and then its argument prototype would still apply. */
37478char pthread_cancel ();
37479/* The GNU C library defines this for functions which it implements
37480 to always fail with ENOSYS. Some functions are actually named
37481 something starting with __ and the normal name is an alias. */
37482#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37483choke me
37484#else
37485char (*f) () = pthread_cancel;
37486#endif
37487#ifdef __cplusplus
37488}
37489#endif
37490
37491int
37492main ()
37493{
37494return f != pthread_cancel;
37495 ;
37496 return 0;
37497}
37498_ACEOF
37499rm -f conftest.$ac_objext conftest$ac_exeext
37500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37501 (eval $ac_link) 2>conftest.er1
a848cd7e 37502 ac_status=$?
ac1cb8d3
VS
37503 grep -v '^ *+' conftest.er1 >conftest.err
37504 rm -f conftest.er1
37505 cat conftest.err >&5
a848cd7e
SC
37506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507 (exit $ac_status); } &&
0093c2fc 37508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37510 (eval $ac_try) 2>&5
37511 ac_status=$?
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); }; } &&
37514 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37516 (eval $ac_try) 2>&5
37517 ac_status=$?
37518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519 (exit $ac_status); }; }; then
37520 ac_cv_func_pthread_cancel=yes
37521else
37522 echo "$as_me: failed program was:" >&5
37523sed 's/^/| /' conftest.$ac_ext >&5
37524
37525ac_cv_func_pthread_cancel=no
37526fi
ac1cb8d3
VS
37527rm -f conftest.err conftest.$ac_objext \
37528 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37529fi
37530echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37531echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37532if test $ac_cv_func_pthread_cancel = yes; then
37533 cat >>confdefs.h <<\_ACEOF
37534#define HAVE_PTHREAD_CANCEL 1
37535_ACEOF
37536
37537else
37538 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37539echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37540fi
37541
37542
abc736fd
MW
37543 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37544echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37545if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37546 echo $ECHO_N "(cached) $ECHO_C" >&6
37547else
37548 cat >conftest.$ac_ext <<_ACEOF
37549/* confdefs.h. */
37550_ACEOF
37551cat confdefs.h >>conftest.$ac_ext
37552cat >>conftest.$ac_ext <<_ACEOF
37553/* end confdefs.h. */
37554/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37556#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37557
37558/* System header to define __stub macros and hopefully few prototypes,
37559 which can conflict with char pthread_attr_setstacksize (); below.
37560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37561 <limits.h> exists even on freestanding compilers. */
37562
37563#ifdef __STDC__
37564# include <limits.h>
37565#else
37566# include <assert.h>
37567#endif
37568
37569#undef pthread_attr_setstacksize
37570
37571/* Override any gcc2 internal prototype to avoid an error. */
37572#ifdef __cplusplus
37573extern "C"
37574{
37575#endif
37576/* We use char because int might match the return type of a gcc2
37577 builtin and then its argument prototype would still apply. */
37578char pthread_attr_setstacksize ();
37579/* The GNU C library defines this for functions which it implements
37580 to always fail with ENOSYS. Some functions are actually named
37581 something starting with __ and the normal name is an alias. */
37582#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37583choke me
37584#else
37585char (*f) () = pthread_attr_setstacksize;
37586#endif
37587#ifdef __cplusplus
37588}
37589#endif
37590
37591int
37592main ()
37593{
37594return f != pthread_attr_setstacksize;
37595 ;
37596 return 0;
37597}
37598_ACEOF
37599rm -f conftest.$ac_objext conftest$ac_exeext
37600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37601 (eval $ac_link) 2>conftest.er1
37602 ac_status=$?
37603 grep -v '^ *+' conftest.er1 >conftest.err
37604 rm -f conftest.er1
37605 cat conftest.err >&5
37606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37607 (exit $ac_status); } &&
0093c2fc 37608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
37609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37610 (eval $ac_try) 2>&5
37611 ac_status=$?
37612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613 (exit $ac_status); }; } &&
37614 { ac_try='test -s conftest$ac_exeext'
37615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37616 (eval $ac_try) 2>&5
37617 ac_status=$?
37618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619 (exit $ac_status); }; }; then
37620 ac_cv_func_pthread_attr_setstacksize=yes
37621else
37622 echo "$as_me: failed program was:" >&5
37623sed 's/^/| /' conftest.$ac_ext >&5
37624
37625ac_cv_func_pthread_attr_setstacksize=no
37626fi
37627rm -f conftest.err conftest.$ac_objext \
37628 conftest$ac_exeext conftest.$ac_ext
37629fi
37630echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37631echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37632if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37633 cat >>confdefs.h <<\_ACEOF
37634#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37635_ACEOF
37636
37637fi
37638
a848cd7e
SC
37639
37640
37641 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37642echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37643if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37644 echo $ECHO_N "(cached) $ECHO_C" >&6
37645else
37646
37647 cat >conftest.$ac_ext <<_ACEOF
37648/* confdefs.h. */
37649_ACEOF
37650cat confdefs.h >>conftest.$ac_ext
37651cat >>conftest.$ac_ext <<_ACEOF
37652/* end confdefs.h. */
37653#include <pthread.h>
37654int
37655main ()
37656{
37657
37658 pthread_mutexattr_t attr;
37659 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37660
37661 ;
37662 return 0;
37663}
37664_ACEOF
37665rm -f conftest.$ac_objext
37666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37667 (eval $ac_compile) 2>conftest.er1
a848cd7e 37668 ac_status=$?
ac1cb8d3
VS
37669 grep -v '^ *+' conftest.er1 >conftest.err
37670 rm -f conftest.er1
37671 cat conftest.err >&5
a848cd7e
SC
37672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673 (exit $ac_status); } &&
0093c2fc 37674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37676 (eval $ac_try) 2>&5
37677 ac_status=$?
37678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679 (exit $ac_status); }; } &&
37680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37682 (eval $ac_try) 2>&5
37683 ac_status=$?
37684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685 (exit $ac_status); }; }; then
123dca7d 37686 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
37687else
37688 echo "$as_me: failed program was:" >&5
37689sed 's/^/| /' conftest.$ac_ext >&5
37690
123dca7d 37691wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
37692
37693fi
ac1cb8d3 37694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37695
37696fi
37697echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37698echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37699
37700 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37701 cat >>confdefs.h <<\_ACEOF
37702#define HAVE_PTHREAD_MUTEXATTR_T 1
37703_ACEOF
37704
123dca7d
VZ
37705
37706 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37707echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37708if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37709 echo $ECHO_N "(cached) $ECHO_C" >&6
37710else
37711
37712 cat >conftest.$ac_ext <<_ACEOF
37713/* confdefs.h. */
37714_ACEOF
37715cat confdefs.h >>conftest.$ac_ext
37716cat >>conftest.$ac_ext <<_ACEOF
37717/* end confdefs.h. */
37718#include <pthread.h>
37719int
37720main ()
37721{
37722
37723 pthread_mutexattr_t attr;
37724 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37725
37726 ;
37727 return 0;
37728}
37729_ACEOF
37730rm -f conftest.$ac_objext
37731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37732 (eval $ac_compile) 2>conftest.er1
37733 ac_status=$?
37734 grep -v '^ *+' conftest.er1 >conftest.err
37735 rm -f conftest.er1
37736 cat conftest.err >&5
37737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738 (exit $ac_status); } &&
0093c2fc 37739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
37740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37741 (eval $ac_try) 2>&5
37742 ac_status=$?
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); }; } &&
37745 { ac_try='test -s conftest.$ac_objext'
37746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37747 (eval $ac_try) 2>&5
37748 ac_status=$?
37749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37750 (exit $ac_status); }; }; then
37751 wx_cv_func_pthread_mutexattr_settype_decl=yes
37752else
37753 echo "$as_me: failed program was:" >&5
37754sed 's/^/| /' conftest.$ac_ext >&5
37755
37756wx_cv_func_pthread_mutexattr_settype_decl=no
37757
37758fi
37759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37760
37761fi
37762echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37763echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37764 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37765 cat >>confdefs.h <<\_ACEOF
37766#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37767_ACEOF
37768
37769 fi
a848cd7e
SC
37770 else
37771 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37772echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37773if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37774 echo $ECHO_N "(cached) $ECHO_C" >&6
37775else
37776
37777 cat >conftest.$ac_ext <<_ACEOF
37778/* confdefs.h. */
37779_ACEOF
37780cat confdefs.h >>conftest.$ac_ext
37781cat >>conftest.$ac_ext <<_ACEOF
37782/* end confdefs.h. */
37783#include <pthread.h>
37784int
37785main ()
37786{
37787
37788 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37789
37790 ;
37791 return 0;
37792}
37793_ACEOF
37794rm -f conftest.$ac_objext
37795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37796 (eval $ac_compile) 2>conftest.er1
a848cd7e 37797 ac_status=$?
ac1cb8d3
VS
37798 grep -v '^ *+' conftest.er1 >conftest.err
37799 rm -f conftest.er1
37800 cat conftest.err >&5
a848cd7e
SC
37801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); } &&
0093c2fc 37803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37805 (eval $ac_try) 2>&5
37806 ac_status=$?
37807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808 (exit $ac_status); }; } &&
37809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37811 (eval $ac_try) 2>&5
37812 ac_status=$?
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); }; }; then
37815
37816 wx_cv_type_pthread_rec_mutex_init=yes
37817
37818else
37819 echo "$as_me: failed program was:" >&5
37820sed 's/^/| /' conftest.$ac_ext >&5
37821
37822
37823 wx_cv_type_pthread_rec_mutex_init=no
37824
37825
37826fi
ac1cb8d3 37827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37828
37829fi
37830echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37831echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37832 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37833 cat >>confdefs.h <<\_ACEOF
37834#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37835_ACEOF
37836
37837 else
37838 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37839echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37840 fi
37841 fi
37842 fi
37843
37844else
37845 if test "$wxUSE_THREADS" = "yes" ; then
37846 case "${host}" in
37847 *-*-mingw32* )
37848 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37849echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37850if test "${wx_cv_cflags_mthread+set}" = set; then
37851 echo $ECHO_N "(cached) $ECHO_C" >&6
37852else
37853
37854 CFLAGS_OLD="$CFLAGS"
37855 CFLAGS="$CFLAGS -mthreads"
37856 cat >conftest.$ac_ext <<_ACEOF
37857/* confdefs.h. */
37858_ACEOF
37859cat confdefs.h >>conftest.$ac_ext
37860cat >>conftest.$ac_ext <<_ACEOF
37861/* end confdefs.h. */
37862
37863int
37864main ()
37865{
37866
37867 ;
37868 return 0;
37869}
37870_ACEOF
37871rm -f conftest.$ac_objext
37872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37873 (eval $ac_compile) 2>conftest.er1
a848cd7e 37874 ac_status=$?
ac1cb8d3
VS
37875 grep -v '^ *+' conftest.er1 >conftest.err
37876 rm -f conftest.er1
37877 cat conftest.err >&5
a848cd7e
SC
37878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37879 (exit $ac_status); } &&
0093c2fc 37880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37882 (eval $ac_try) 2>&5
37883 ac_status=$?
37884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37885 (exit $ac_status); }; } &&
37886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37888 (eval $ac_try) 2>&5
37889 ac_status=$?
37890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37891 (exit $ac_status); }; }; then
37892 wx_cv_cflags_mthread=yes
37893else
37894 echo "$as_me: failed program was:" >&5
37895sed 's/^/| /' conftest.$ac_ext >&5
37896
37897wx_cv_cflags_mthread=no
37898
37899fi
ac1cb8d3 37900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37901
37902
37903fi
37904echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37905echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37906
37907 if test "$wx_cv_cflags_mthread" = "yes"; then
37908 CXXFLAGS="$CXXFLAGS -mthreads"
37909 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37910 LDFLAGS="$LDFLAGS -mthreads"
37911 else
37912 CFLAGS="$CFLAGS_OLD"
37913 fi
37914 ;;
37915 *-pc-os2*emx )
37916 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37917 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37918 LDFLAGS="$LDFLAGS -Zmt"
37919 ;;
37920 esac
37921 fi
37922fi
37923
37924if test "$wxUSE_THREADS" = "yes"; then
37925 cat >>confdefs.h <<\_ACEOF
37926#define wxUSE_THREADS 1
37927_ACEOF
37928
37929
37930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37931else
37932 if test "$ac_cv_func_strtok_r" = "yes"; then
37933 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37934echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37935 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37936 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
37937 echo "$as_me:$LINENO: result: yes" >&5
37938echo "${ECHO_T}yes" >&6
37939 else
37940 echo "$as_me:$LINENO: result: no" >&5
37941echo "${ECHO_T}no" >&6
37942 fi
37943 fi
37944fi
37945
37946if test "$WXGTK20" = 1 ; then
37947 cat >>confdefs.h <<_ACEOF
37948#define __WXGTK20__ $WXGTK20
37949_ACEOF
37950
37951 WXGTK12=1
37952fi
37953
37954if test "$WXGTK12" = 1 ; then
37955 cat >>confdefs.h <<_ACEOF
37956#define __WXGTK12__ $WXGTK12
37957_ACEOF
37958
37959fi
37960
37961if test "$WXGTK127" = 1 ; then
37962 cat >>confdefs.h <<_ACEOF
37963#define __WXGTK127__ $WXGTK127
37964_ACEOF
37965
37966fi
37967
37968if test "$WXGPE" = 1 ; then
37969 cat >>confdefs.h <<_ACEOF
37970#define __WXGPE__ $WXGPE
37971_ACEOF
37972
37973fi
37974
37975WXDEBUG=
37976
37977if test "$wxUSE_DEBUG_INFO" = "yes" ; then
37978 WXDEBUG="-g"
37979 wxUSE_OPTIMISE=no
37980fi
37981
37982if test "$wxUSE_DEBUG_GDB" = "yes" ; then
37983 wxUSE_DEBUG_INFO=yes
18228ab4
MW
37984 if test "$GCC" = yes; then
37985 WXDEBUG="-ggdb"
37986 fi
a848cd7e
SC
37987fi
37988
37989if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
37990 cat >>confdefs.h <<\_ACEOF
37991#define WXDEBUG 1
37992_ACEOF
37993
37994 WXDEBUG_DEFINE="-D__WXDEBUG__"
37995else
37996 if test "$wxUSE_GTK" = 1 ; then
37997 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
37998 fi
37999fi
38000
38001if test "$wxUSE_MEM_TRACING" = "yes" ; then
38002 cat >>confdefs.h <<\_ACEOF
38003#define wxUSE_MEMORY_TRACING 1
38004_ACEOF
38005
38006 cat >>confdefs.h <<\_ACEOF
38007#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
38008_ACEOF
38009
38010 cat >>confdefs.h <<\_ACEOF
38011#define wxUSE_DEBUG_NEW_ALWAYS 1
38012_ACEOF
38013
38014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
38015fi
38016
38017if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 38018 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
38019fi
38020
38021PROFILE=
38022if test "$wxUSE_PROFILE" = "yes" ; then
38023 PROFILE=" -pg"
38024fi
38025
38026CODE_GEN_FLAGS=
38027CODE_GEN_FLAGS_CXX=
38028if test "$GCC" = "yes" ; then
38029 if test "$wxUSE_NO_RTTI" = "yes" ; then
38030 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
38031 fi
38032 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38033 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
38034 fi
38035 if test "$wxUSE_PERMISSIVE" = "yes" ; then
38036 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
38037 fi
38038
38039 case "${host}" in
38040 powerpc*-*-aix* )
38041 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
38042 ;;
38043 *-hppa* )
38044 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
38045 ;;
38046 esac
38047fi
38048
38049OPTIMISE=
38050if test "$wxUSE_OPTIMISE" = "no" ; then
38051 if test "$GCC" = yes ; then
38052 OPTIMISE="-O0"
38053 fi
38054else
38055 if test "$GCC" = yes ; then
38056 OPTIMISE="-O2"
38057
38058 case "${host}" in
38059 i586-*-*|i686-*-* )
38060 OPTIMISE="${OPTIMISE} "
38061 ;;
38062 esac
38063 else
38064 OPTIMISE="-O"
38065 fi
38066fi
38067
38068
dee1a63f 38069if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
a848cd7e 38070 cat >>confdefs.h <<\_ACEOF
dee1a63f 38071#define WXWIN_COMPATIBILITY_2_4 1
a848cd7e
SC
38072_ACEOF
38073
38074
dee1a63f 38075 WXWIN_COMPATIBILITY_2_6="yes"
a848cd7e
SC
38076fi
38077
dee1a63f 38078if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
a848cd7e 38079 cat >>confdefs.h <<\_ACEOF
dee1a63f 38080#define WXWIN_COMPATIBILITY_2_6 1
a848cd7e
SC
38081_ACEOF
38082
38083fi
38084
38085
38086if test "$wxUSE_GUI" = "yes"; then
881bfcd6 38087 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38088#define wxUSE_GUI 1
38089_ACEOF
38090
38091
370fd4c2 38092 fi
a848cd7e
SC
38093
38094
38095if test "$wxUSE_UNIX" = "yes"; then
38096 cat >>confdefs.h <<\_ACEOF
38097#define wxUSE_UNIX 1
38098_ACEOF
38099
38100fi
38101
38102
38103if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38104
38105 HAVE_DL_FUNCS=0
38106 HAVE_SHL_FUNCS=0
38107 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38108 if test "$USE_DARWIN" = 1; then
38109 HAVE_DL_FUNCS=1
47a7e797
MW
38110 elif test "$USE_DOS" = 1; then
38111 HAVE_DL_FUNCS=0
a848cd7e
SC
38112 else
38113
38114for ac_func in dlopen
38115do
38116as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38117echo "$as_me:$LINENO: checking for $ac_func" >&5
38118echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38119if eval "test \"\${$as_ac_var+set}\" = set"; then
38120 echo $ECHO_N "(cached) $ECHO_C" >&6
38121else
38122 cat >conftest.$ac_ext <<_ACEOF
38123/* confdefs.h. */
38124_ACEOF
38125cat confdefs.h >>conftest.$ac_ext
38126cat >>conftest.$ac_ext <<_ACEOF
38127/* end confdefs.h. */
ac1cb8d3
VS
38128/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38130#define $ac_func innocuous_$ac_func
38131
a848cd7e
SC
38132/* System header to define __stub macros and hopefully few prototypes,
38133 which can conflict with char $ac_func (); below.
38134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38135 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38136
a848cd7e
SC
38137#ifdef __STDC__
38138# include <limits.h>
38139#else
38140# include <assert.h>
38141#endif
ac1cb8d3
VS
38142
38143#undef $ac_func
38144
a848cd7e
SC
38145/* Override any gcc2 internal prototype to avoid an error. */
38146#ifdef __cplusplus
38147extern "C"
38148{
38149#endif
38150/* We use char because int might match the return type of a gcc2
38151 builtin and then its argument prototype would still apply. */
38152char $ac_func ();
38153/* The GNU C library defines this for functions which it implements
38154 to always fail with ENOSYS. Some functions are actually named
38155 something starting with __ and the normal name is an alias. */
38156#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38157choke me
38158#else
38159char (*f) () = $ac_func;
38160#endif
38161#ifdef __cplusplus
38162}
38163#endif
38164
38165int
38166main ()
38167{
38168return f != $ac_func;
38169 ;
38170 return 0;
38171}
38172_ACEOF
38173rm -f conftest.$ac_objext conftest$ac_exeext
38174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38175 (eval $ac_link) 2>conftest.er1
a848cd7e 38176 ac_status=$?
ac1cb8d3
VS
38177 grep -v '^ *+' conftest.er1 >conftest.err
38178 rm -f conftest.er1
38179 cat conftest.err >&5
a848cd7e
SC
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); } &&
0093c2fc 38182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38184 (eval $ac_try) 2>&5
38185 ac_status=$?
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); }; } &&
38188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38190 (eval $ac_try) 2>&5
38191 ac_status=$?
38192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193 (exit $ac_status); }; }; then
38194 eval "$as_ac_var=yes"
38195else
38196 echo "$as_me: failed program was:" >&5
38197sed 's/^/| /' conftest.$ac_ext >&5
38198
38199eval "$as_ac_var=no"
38200fi
ac1cb8d3
VS
38201rm -f conftest.err conftest.$ac_objext \
38202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38203fi
38204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38206if test `eval echo '${'$as_ac_var'}'` = yes; then
38207 cat >>confdefs.h <<_ACEOF
38208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38209_ACEOF
38210
38211 cat >>confdefs.h <<\_ACEOF
38212#define HAVE_DLOPEN 1
38213_ACEOF
38214
38215 HAVE_DL_FUNCS=1
38216
38217else
38218
38219 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38220echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
38221if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38222 echo $ECHO_N "(cached) $ECHO_C" >&6
38223else
38224 ac_check_lib_save_LIBS=$LIBS
38225LIBS="-ldl $LIBS"
38226cat >conftest.$ac_ext <<_ACEOF
38227/* confdefs.h. */
38228_ACEOF
38229cat confdefs.h >>conftest.$ac_ext
38230cat >>conftest.$ac_ext <<_ACEOF
38231/* end confdefs.h. */
38232
38233/* Override any gcc2 internal prototype to avoid an error. */
38234#ifdef __cplusplus
38235extern "C"
38236#endif
38237/* We use char because int might match the return type of a gcc2
38238 builtin and then its argument prototype would still apply. */
38239char dlopen ();
38240int
38241main ()
38242{
38243dlopen ();
38244 ;
38245 return 0;
38246}
38247_ACEOF
38248rm -f conftest.$ac_objext conftest$ac_exeext
38249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38250 (eval $ac_link) 2>conftest.er1
a848cd7e 38251 ac_status=$?
ac1cb8d3
VS
38252 grep -v '^ *+' conftest.er1 >conftest.err
38253 rm -f conftest.er1
38254 cat conftest.err >&5
a848cd7e
SC
38255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38256 (exit $ac_status); } &&
0093c2fc 38257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38259 (eval $ac_try) 2>&5
38260 ac_status=$?
38261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262 (exit $ac_status); }; } &&
38263 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38265 (eval $ac_try) 2>&5
38266 ac_status=$?
38267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268 (exit $ac_status); }; }; then
38269 ac_cv_lib_dl_dlopen=yes
38270else
38271 echo "$as_me: failed program was:" >&5
38272sed 's/^/| /' conftest.$ac_ext >&5
38273
38274ac_cv_lib_dl_dlopen=no
38275fi
ac1cb8d3
VS
38276rm -f conftest.err conftest.$ac_objext \
38277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38278LIBS=$ac_check_lib_save_LIBS
38279fi
38280echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38281echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
38282if test $ac_cv_lib_dl_dlopen = yes; then
38283
38284 cat >>confdefs.h <<\_ACEOF
38285#define HAVE_DLOPEN 1
38286_ACEOF
38287
38288 HAVE_DL_FUNCS=1
38289 DL_LINK=" -ldl$DL_LINK"
38290
38291else
38292
38293
38294for ac_func in shl_load
38295do
38296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38297echo "$as_me:$LINENO: checking for $ac_func" >&5
38298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38299if eval "test \"\${$as_ac_var+set}\" = set"; then
38300 echo $ECHO_N "(cached) $ECHO_C" >&6
38301else
38302 cat >conftest.$ac_ext <<_ACEOF
38303/* confdefs.h. */
38304_ACEOF
38305cat confdefs.h >>conftest.$ac_ext
38306cat >>conftest.$ac_ext <<_ACEOF
38307/* end confdefs.h. */
ac1cb8d3
VS
38308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38310#define $ac_func innocuous_$ac_func
38311
a848cd7e
SC
38312/* System header to define __stub macros and hopefully few prototypes,
38313 which can conflict with char $ac_func (); below.
38314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38315 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38316
a848cd7e
SC
38317#ifdef __STDC__
38318# include <limits.h>
38319#else
38320# include <assert.h>
38321#endif
ac1cb8d3
VS
38322
38323#undef $ac_func
38324
a848cd7e
SC
38325/* Override any gcc2 internal prototype to avoid an error. */
38326#ifdef __cplusplus
38327extern "C"
38328{
38329#endif
38330/* We use char because int might match the return type of a gcc2
38331 builtin and then its argument prototype would still apply. */
38332char $ac_func ();
38333/* The GNU C library defines this for functions which it implements
38334 to always fail with ENOSYS. Some functions are actually named
38335 something starting with __ and the normal name is an alias. */
38336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38337choke me
38338#else
38339char (*f) () = $ac_func;
38340#endif
38341#ifdef __cplusplus
38342}
38343#endif
38344
38345int
38346main ()
38347{
38348return f != $ac_func;
38349 ;
38350 return 0;
38351}
38352_ACEOF
38353rm -f conftest.$ac_objext conftest$ac_exeext
38354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38355 (eval $ac_link) 2>conftest.er1
a848cd7e 38356 ac_status=$?
ac1cb8d3
VS
38357 grep -v '^ *+' conftest.er1 >conftest.err
38358 rm -f conftest.er1
38359 cat conftest.err >&5
a848cd7e
SC
38360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361 (exit $ac_status); } &&
0093c2fc 38362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38364 (eval $ac_try) 2>&5
38365 ac_status=$?
38366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38367 (exit $ac_status); }; } &&
38368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38370 (eval $ac_try) 2>&5
38371 ac_status=$?
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); }; }; then
38374 eval "$as_ac_var=yes"
38375else
38376 echo "$as_me: failed program was:" >&5
38377sed 's/^/| /' conftest.$ac_ext >&5
38378
38379eval "$as_ac_var=no"
38380fi
ac1cb8d3
VS
38381rm -f conftest.err conftest.$ac_objext \
38382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38383fi
38384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38386if test `eval echo '${'$as_ac_var'}'` = yes; then
38387 cat >>confdefs.h <<_ACEOF
38388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38389_ACEOF
38390
38391 cat >>confdefs.h <<\_ACEOF
38392#define HAVE_SHL_LOAD 1
38393_ACEOF
38394
38395 HAVE_SHL_FUNCS=1
38396
38397else
38398
38399 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
38400echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
38401if test "${ac_cv_lib_shl_load_dld+set}" = set; then
38402 echo $ECHO_N "(cached) $ECHO_C" >&6
38403else
38404 ac_check_lib_save_LIBS=$LIBS
38405LIBS="-lshl_load $LIBS"
38406cat >conftest.$ac_ext <<_ACEOF
38407/* confdefs.h. */
38408_ACEOF
38409cat confdefs.h >>conftest.$ac_ext
38410cat >>conftest.$ac_ext <<_ACEOF
38411/* end confdefs.h. */
38412
38413/* Override any gcc2 internal prototype to avoid an error. */
38414#ifdef __cplusplus
38415extern "C"
38416#endif
38417/* We use char because int might match the return type of a gcc2
38418 builtin and then its argument prototype would still apply. */
38419char dld ();
38420int
38421main ()
38422{
38423dld ();
38424 ;
38425 return 0;
38426}
38427_ACEOF
38428rm -f conftest.$ac_objext conftest$ac_exeext
38429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38430 (eval $ac_link) 2>conftest.er1
a848cd7e 38431 ac_status=$?
ac1cb8d3
VS
38432 grep -v '^ *+' conftest.er1 >conftest.err
38433 rm -f conftest.er1
38434 cat conftest.err >&5
a848cd7e
SC
38435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436 (exit $ac_status); } &&
0093c2fc 38437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38439 (eval $ac_try) 2>&5
38440 ac_status=$?
38441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442 (exit $ac_status); }; } &&
38443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38445 (eval $ac_try) 2>&5
38446 ac_status=$?
38447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448 (exit $ac_status); }; }; then
38449 ac_cv_lib_shl_load_dld=yes
38450else
38451 echo "$as_me: failed program was:" >&5
38452sed 's/^/| /' conftest.$ac_ext >&5
38453
38454ac_cv_lib_shl_load_dld=no
38455fi
ac1cb8d3
VS
38456rm -f conftest.err conftest.$ac_objext \
38457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38458LIBS=$ac_check_lib_save_LIBS
38459fi
38460echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
38461echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
38462if test $ac_cv_lib_shl_load_dld = yes; then
38463
38464 HAVE_SHL_FUNCS=1
38465 DL_LINK=" -ldld$DL_LINK"
38466
38467fi
38468
38469
38470fi
38471done
38472
38473
38474fi
38475
38476
38477fi
38478done
38479
38480
38481 if test "$HAVE_DL_FUNCS" = 1; then
38482
38483for ac_func in dlerror
38484do
38485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38486echo "$as_me:$LINENO: checking for $ac_func" >&5
38487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38488if eval "test \"\${$as_ac_var+set}\" = set"; then
38489 echo $ECHO_N "(cached) $ECHO_C" >&6
38490else
38491 cat >conftest.$ac_ext <<_ACEOF
38492/* confdefs.h. */
38493_ACEOF
38494cat confdefs.h >>conftest.$ac_ext
38495cat >>conftest.$ac_ext <<_ACEOF
38496/* end confdefs.h. */
ac1cb8d3
VS
38497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38499#define $ac_func innocuous_$ac_func
38500
a848cd7e
SC
38501/* System header to define __stub macros and hopefully few prototypes,
38502 which can conflict with char $ac_func (); below.
38503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38504 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38505
a848cd7e
SC
38506#ifdef __STDC__
38507# include <limits.h>
38508#else
38509# include <assert.h>
38510#endif
ac1cb8d3
VS
38511
38512#undef $ac_func
38513
a848cd7e
SC
38514/* Override any gcc2 internal prototype to avoid an error. */
38515#ifdef __cplusplus
38516extern "C"
38517{
38518#endif
38519/* We use char because int might match the return type of a gcc2
38520 builtin and then its argument prototype would still apply. */
38521char $ac_func ();
38522/* The GNU C library defines this for functions which it implements
38523 to always fail with ENOSYS. Some functions are actually named
38524 something starting with __ and the normal name is an alias. */
38525#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38526choke me
38527#else
38528char (*f) () = $ac_func;
38529#endif
38530#ifdef __cplusplus
38531}
38532#endif
38533
38534int
38535main ()
38536{
38537return f != $ac_func;
38538 ;
38539 return 0;
38540}
38541_ACEOF
38542rm -f conftest.$ac_objext conftest$ac_exeext
38543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38544 (eval $ac_link) 2>conftest.er1
a848cd7e 38545 ac_status=$?
ac1cb8d3
VS
38546 grep -v '^ *+' conftest.er1 >conftest.err
38547 rm -f conftest.er1
38548 cat conftest.err >&5
a848cd7e
SC
38549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38550 (exit $ac_status); } &&
0093c2fc 38551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38553 (eval $ac_try) 2>&5
38554 ac_status=$?
38555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38556 (exit $ac_status); }; } &&
38557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38559 (eval $ac_try) 2>&5
38560 ac_status=$?
38561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38562 (exit $ac_status); }; }; then
38563 eval "$as_ac_var=yes"
38564else
38565 echo "$as_me: failed program was:" >&5
38566sed 's/^/| /' conftest.$ac_ext >&5
38567
38568eval "$as_ac_var=no"
38569fi
ac1cb8d3
VS
38570rm -f conftest.err conftest.$ac_objext \
38571 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38572fi
38573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38574echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38575if test `eval echo '${'$as_ac_var'}'` = yes; then
38576 cat >>confdefs.h <<_ACEOF
38577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38578_ACEOF
38579 cat >>confdefs.h <<\_ACEOF
38580#define HAVE_DLERROR 1
38581_ACEOF
38582
38583else
38584
38585 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
38586echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
38587if test "${ac_cv_lib_dl_dlerror+set}" = set; then
38588 echo $ECHO_N "(cached) $ECHO_C" >&6
38589else
38590 ac_check_lib_save_LIBS=$LIBS
38591LIBS="-ldl $LIBS"
38592cat >conftest.$ac_ext <<_ACEOF
38593/* confdefs.h. */
38594_ACEOF
38595cat confdefs.h >>conftest.$ac_ext
38596cat >>conftest.$ac_ext <<_ACEOF
38597/* end confdefs.h. */
38598
38599/* Override any gcc2 internal prototype to avoid an error. */
38600#ifdef __cplusplus
38601extern "C"
38602#endif
38603/* We use char because int might match the return type of a gcc2
38604 builtin and then its argument prototype would still apply. */
38605char dlerror ();
38606int
38607main ()
38608{
38609dlerror ();
38610 ;
38611 return 0;
38612}
38613_ACEOF
38614rm -f conftest.$ac_objext conftest$ac_exeext
38615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38616 (eval $ac_link) 2>conftest.er1
a848cd7e 38617 ac_status=$?
ac1cb8d3
VS
38618 grep -v '^ *+' conftest.er1 >conftest.err
38619 rm -f conftest.er1
38620 cat conftest.err >&5
a848cd7e
SC
38621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622 (exit $ac_status); } &&
0093c2fc 38623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38625 (eval $ac_try) 2>&5
38626 ac_status=$?
38627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38628 (exit $ac_status); }; } &&
38629 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38631 (eval $ac_try) 2>&5
38632 ac_status=$?
38633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38634 (exit $ac_status); }; }; then
38635 ac_cv_lib_dl_dlerror=yes
38636else
38637 echo "$as_me: failed program was:" >&5
38638sed 's/^/| /' conftest.$ac_ext >&5
38639
38640ac_cv_lib_dl_dlerror=no
38641fi
ac1cb8d3
VS
38642rm -f conftest.err conftest.$ac_objext \
38643 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38644LIBS=$ac_check_lib_save_LIBS
38645fi
38646echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
38647echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
38648if test $ac_cv_lib_dl_dlerror = yes; then
38649 cat >>confdefs.h <<\_ACEOF
38650#define HAVE_DLERROR 1
38651_ACEOF
38652
38653fi
38654
38655
38656
38657fi
38658done
38659
38660 fi
38661 fi
38662
38663 if test "$HAVE_DL_FUNCS" = 0; then
38664 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 38665 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
38666 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
38667echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
38668 wxUSE_DYNAMIC_LOADER=no
38669 wxUSE_DYNLIB_CLASS=no
38670 else
38671 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
38672echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
38673 fi
38674 fi
38675 fi
38676 fi
38677fi
38678
38679if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38680 cat >>confdefs.h <<\_ACEOF
38681#define wxUSE_DYNAMIC_LOADER 1
38682_ACEOF
38683
38684fi
38685if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38686 cat >>confdefs.h <<\_ACEOF
38687#define wxUSE_DYNLIB_CLASS 1
38688_ACEOF
38689
38690fi
38691
38692
38693
38694if test "$wxUSE_PLUGINS" = "yes" ; then
38695 if test "$wxUSE_SHARED" = "no" ; then
38696 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38697echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38698 wxUSE_PLUGINS=no
38699 fi
38700 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38701 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38702echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38703 wxUSE_PLUGINS=no
38704 fi
38705 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38706 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38707echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38708 wxUSE_PLUGINS=no
38709 fi
38710 if test "$wxUSE_PLUGINS" = "yes" ; then
38711 cat >>confdefs.h <<\_ACEOF
38712#define wxUSE_PLUGINS 1
38713_ACEOF
38714
38715 fi
38716fi
38717
38718
38719if test "$wxUSE_STL" = "yes"; then
38720 cat >>confdefs.h <<\_ACEOF
38721#define wxUSE_STL 1
38722_ACEOF
38723
38724fi
38725
38726if test "$wxUSE_APPLE_IEEE" = "yes"; then
38727 cat >>confdefs.h <<\_ACEOF
38728#define wxUSE_APPLE_IEEE 1
38729_ACEOF
38730
38731fi
38732
38733if test "$wxUSE_TIMER" = "yes"; then
38734 cat >>confdefs.h <<\_ACEOF
38735#define wxUSE_TIMER 1
38736_ACEOF
38737
38738fi
38739
9c112555 38740if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38741 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38742echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38743if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38744 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38745else
d12aef51
VZ
38746
38747 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38748/* confdefs.h. */
38749_ACEOF
38750cat confdefs.h >>conftest.$ac_ext
38751cat >>conftest.$ac_ext <<_ACEOF
38752/* end confdefs.h. */
d12aef51
VZ
38753
38754 #include <sys/soundcard.h>
38755
38756int
38757main ()
38758{
38759
38760 ioctl(0, SNDCTL_DSP_SYNC, 0);
38761
38762 ;
38763 return 0;
38764}
a848cd7e 38765_ACEOF
d12aef51
VZ
38766rm -f conftest.$ac_objext conftest$ac_exeext
38767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38768 (eval $ac_link) 2>conftest.er1
a848cd7e 38769 ac_status=$?
ac1cb8d3
VS
38770 grep -v '^ *+' conftest.er1 >conftest.err
38771 rm -f conftest.er1
38772 cat conftest.err >&5
a848cd7e
SC
38773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38774 (exit $ac_status); } &&
0093c2fc 38775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38777 (eval $ac_try) 2>&5
38778 ac_status=$?
38779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780 (exit $ac_status); }; } &&
d12aef51 38781 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38783 (eval $ac_try) 2>&5
38784 ac_status=$?
38785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786 (exit $ac_status); }; }; then
d12aef51 38787 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38788else
38789 echo "$as_me: failed program was:" >&5
38790sed 's/^/| /' conftest.$ac_ext >&5
38791
a848cd7e 38792
d12aef51
VZ
38793 saveLibs="$LIBS"
38794 LIBS="$saveLibs -lossaudio"
38795 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38796/* confdefs.h. */
38797_ACEOF
38798cat confdefs.h >>conftest.$ac_ext
38799cat >>conftest.$ac_ext <<_ACEOF
38800/* end confdefs.h. */
d12aef51
VZ
38801
38802 #include <sys/soundcard.h>
38803
38804int
38805main ()
38806{
38807
38808 ioctl(0, SNDCTL_DSP_SYNC, 0);
38809
38810 ;
38811 return 0;
38812}
a848cd7e 38813_ACEOF
d12aef51
VZ
38814rm -f conftest.$ac_objext conftest$ac_exeext
38815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38816 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38817 ac_status=$?
38818 grep -v '^ *+' conftest.er1 >conftest.err
38819 rm -f conftest.er1
38820 cat conftest.err >&5
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 38822 (exit $ac_status); } &&
0093c2fc 38823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
38824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38825 (eval $ac_try) 2>&5
38826 ac_status=$?
38827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828 (exit $ac_status); }; } &&
38829 { ac_try='test -s conftest$ac_exeext'
38830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38831 (eval $ac_try) 2>&5
38832 ac_status=$?
38833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834 (exit $ac_status); }; }; then
38835 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38836else
38837 echo "$as_me: failed program was:" >&5
38838sed 's/^/| /' conftest.$ac_ext >&5
38839
a848cd7e 38840
d12aef51
VZ
38841 LIBS="$saveLibs"
38842 ac_cv_header_sys_soundcard=no
38843
38844
a848cd7e 38845fi
d12aef51
VZ
38846rm -f conftest.err conftest.$ac_objext \
38847 conftest$ac_exeext conftest.$ac_ext
38848
a848cd7e
SC
38849
38850fi
d12aef51
VZ
38851rm -f conftest.err conftest.$ac_objext \
38852 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38853
38854fi
d12aef51
VZ
38855echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38856echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38857
d12aef51
VZ
38858 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38859 cat >>confdefs.h <<\_ACEOF
38860#define HAVE_SYS_SOUNDCARD_H 1
38861_ACEOF
a848cd7e 38862
d12aef51
VZ
38863 else
38864 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38865 fi
9c112555
MW
38866fi
38867WITH_PLUGIN_SDL=0
38868if test "$wxUSE_SOUND" = "yes"; then
38869 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38870 if test "$wxUSE_LIBSDL" != "no"; then
38871
38872# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38873if test "${with_sdl_prefix+set}" = set; then
38874 withval="$with_sdl_prefix"
38875 sdl_prefix="$withval"
38876else
38877 sdl_prefix=""
38878fi;
38879
38880# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38881if test "${with_sdl_exec_prefix+set}" = set; then
38882 withval="$with_sdl_exec_prefix"
38883 sdl_exec_prefix="$withval"
38884else
38885 sdl_exec_prefix=""
38886fi;
38887# Check whether --enable-sdltest or --disable-sdltest was given.
38888if test "${enable_sdltest+set}" = set; then
38889 enableval="$enable_sdltest"
38890
38891else
38892 enable_sdltest=yes
38893fi;
38894
38895 if test x$sdl_exec_prefix != x ; then
38896 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38897 if test x${SDL_CONFIG+set} != xset ; then
38898 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38899 fi
38900 fi
38901 if test x$sdl_prefix != x ; then
38902 sdl_args="$sdl_args --prefix=$sdl_prefix"
38903 if test x${SDL_CONFIG+set} != xset ; then
38904 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38905 fi
38906 fi
38907
38908
38909 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38910 # Extract the first word of "sdl-config", so it can be a program name with args.
38911set dummy sdl-config; ac_word=$2
38912echo "$as_me:$LINENO: checking for $ac_word" >&5
38913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38914if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38915 echo $ECHO_N "(cached) $ECHO_C" >&6
38916else
38917 case $SDL_CONFIG in
38918 [\\/]* | ?:[\\/]*)
38919 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38920 ;;
38921 *)
38922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38923for as_dir in $PATH
38924do
38925 IFS=$as_save_IFS
38926 test -z "$as_dir" && as_dir=.
38927 for ac_exec_ext in '' $ac_executable_extensions; do
38928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38929 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38931 break 2
38932 fi
38933done
38934done
38935
38936 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38937 ;;
38938esac
38939fi
38940SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38941
38942if test -n "$SDL_CONFIG"; then
38943 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38944echo "${ECHO_T}$SDL_CONFIG" >&6
38945else
38946 echo "$as_me:$LINENO: result: no" >&5
38947echo "${ECHO_T}no" >&6
38948fi
38949
38950 min_sdl_version=1.2.0
38951 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38952echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38953 no_sdl=""
38954 if test "$SDL_CONFIG" = "no" ; then
38955 no_sdl=yes
38956 else
38957 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
38958 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
38959
38960 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
38961 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38962 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
38963 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38964 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
38965 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38966 if test "x$enable_sdltest" = "xyes" ; then
38967 ac_save_CFLAGS="$CFLAGS"
94acd38e 38968 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
38969 ac_save_LIBS="$LIBS"
38970 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38971 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38972 LIBS="$LIBS $SDL_LIBS"
38973 rm -f conf.sdltest
38974 if test "$cross_compiling" = yes; then
38975 echo $ac_n "cross compiling; assumed OK... $ac_c"
38976else
38977 cat >conftest.$ac_ext <<_ACEOF
38978/* confdefs.h. */
38979_ACEOF
38980cat confdefs.h >>conftest.$ac_ext
38981cat >>conftest.$ac_ext <<_ACEOF
38982/* end confdefs.h. */
38983
38984#include <stdio.h>
38985#include <stdlib.h>
38986#include <string.h>
38987#include "SDL.h"
38988
38989char*
38990my_strdup (char *str)
38991{
38992 char *new_str;
38993
38994 if (str)
38995 {
38996 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
38997 strcpy (new_str, str);
38998 }
38999 else
39000 new_str = NULL;
39001
39002 return new_str;
39003}
39004
39005int main (int argc, char *argv[])
39006{
39007 int major, minor, micro;
39008 char *tmp_version;
39009
39010 /* This hangs on some systems (?)
39011 system ("touch conf.sdltest");
39012 */
39013 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
39014
39015 /* HP/UX 9 (%@#!) writes to sscanf strings */
39016 tmp_version = my_strdup("$min_sdl_version");
39017 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
39018 printf("%s, bad version string\n", "$min_sdl_version");
39019 exit(1);
39020 }
39021
39022 if (($sdl_major_version > major) ||
39023 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
39024 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
39025 {
39026 return 0;
39027 }
39028 else
39029 {
39030 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
39031 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
39032 printf("*** best to upgrade to the required version.\n");
39033 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
39034 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
39035 printf("*** config.cache before re-running configure\n");
39036 return 1;
39037 }
39038}
39039
39040
39041_ACEOF
39042rm -f conftest$ac_exeext
39043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39044 (eval $ac_link) 2>&5
39045 ac_status=$?
39046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39049 (eval $ac_try) 2>&5
39050 ac_status=$?
39051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052 (exit $ac_status); }; }; then
39053 :
39054else
39055 echo "$as_me: program exited with status $ac_status" >&5
39056echo "$as_me: failed program was:" >&5
39057sed 's/^/| /' conftest.$ac_ext >&5
39058
39059( exit $ac_status )
39060no_sdl=yes
39061fi
ac1cb8d3 39062rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39063fi
39064 CFLAGS="$ac_save_CFLAGS"
94acd38e 39065 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39066 LIBS="$ac_save_LIBS"
39067 fi
39068 fi
39069 if test "x$no_sdl" = x ; then
39070 echo "$as_me:$LINENO: result: yes" >&5
39071echo "${ECHO_T}yes" >&6
39072
39073 EXTRALIBS_SDL="$SDL_LIBS"
39074 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39075 cat >>confdefs.h <<\_ACEOF
39076#define wxUSE_LIBSDL 1
39077_ACEOF
39078
39079
39080 else
39081 echo "$as_me:$LINENO: result: no" >&5
39082echo "${ECHO_T}no" >&6
39083 if test "$SDL_CONFIG" = "no" ; then
39084 echo "*** The sdl-config script installed by SDL could not be found"
39085 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
39086 echo "*** your path, or set the SDL_CONFIG environment variable to the"
39087 echo "*** full path to sdl-config."
39088 else
39089 if test -f conf.sdltest ; then
39090 :
39091 else
39092 echo "*** Could not run SDL test program, checking why..."
39093 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 39094 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
39095 LIBS="$LIBS $SDL_LIBS"
39096 cat >conftest.$ac_ext <<_ACEOF
39097/* confdefs.h. */
39098_ACEOF
39099cat confdefs.h >>conftest.$ac_ext
39100cat >>conftest.$ac_ext <<_ACEOF
39101/* end confdefs.h. */
39102
39103#include <stdio.h>
39104#include "SDL.h"
39105
39106int main(int argc, char *argv[])
39107{ return 0; }
39108#undef main
39109#define main K_and_R_C_main
39110
39111int
39112main ()
39113{
39114 return 0;
39115 ;
39116 return 0;
39117}
39118_ACEOF
39119rm -f conftest.$ac_objext conftest$ac_exeext
39120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39121 (eval $ac_link) 2>conftest.er1
a848cd7e 39122 ac_status=$?
ac1cb8d3
VS
39123 grep -v '^ *+' conftest.er1 >conftest.err
39124 rm -f conftest.er1
39125 cat conftest.err >&5
a848cd7e
SC
39126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127 (exit $ac_status); } &&
0093c2fc 39128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39130 (eval $ac_try) 2>&5
39131 ac_status=$?
39132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133 (exit $ac_status); }; } &&
39134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39136 (eval $ac_try) 2>&5
39137 ac_status=$?
39138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39139 (exit $ac_status); }; }; then
39140 echo "*** The test program compiled, but did not run. This usually means"
39141 echo "*** that the run-time linker is not finding SDL or finding the wrong"
39142 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
39143 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
39144 echo "*** to the installed location Also, make sure you have run ldconfig if that"
39145 echo "*** is required on your system"
39146 echo "***"
39147 echo "*** If you have an old version installed, it is best to remove it, although"
39148 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
39149else
39150 echo "$as_me: failed program was:" >&5
39151sed 's/^/| /' conftest.$ac_ext >&5
39152
39153 echo "*** The test program failed to compile or link. See the file config.log for the"
39154 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
39155 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
39156 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
39157fi
ac1cb8d3
VS
39158rm -f conftest.err conftest.$ac_objext \
39159 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39160 CFLAGS="$ac_save_CFLAGS"
94acd38e 39161 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39162 LIBS="$ac_save_LIBS"
39163 fi
39164 fi
39165 SDL_CFLAGS=""
39166 SDL_LIBS=""
39167 wxUSE_LIBSDL="no"
39168 fi
39169
39170
39171 rm -f conf.sdltest
39172
39173 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
39174 WITH_PLUGIN_SDL=1
39175 fi
39176 fi
39177 fi
39178
39179 cat >>confdefs.h <<\_ACEOF
39180#define wxUSE_SOUND 1
39181_ACEOF
39182
39183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
39184fi
39185
d1c38808
VZ
39186if test "$WXGTK20" = 1; then
39187 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39188 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
39189
39190
39191 succeeded=no
39192
39193 if test -z "$PKG_CONFIG"; then
39194 # Extract the first word of "pkg-config", so it can be a program name with args.
39195set dummy pkg-config; ac_word=$2
39196echo "$as_me:$LINENO: checking for $ac_word" >&5
39197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39198if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39199 echo $ECHO_N "(cached) $ECHO_C" >&6
39200else
39201 case $PKG_CONFIG in
39202 [\\/]* | ?:[\\/]*)
39203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39204 ;;
39205 *)
39206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39207for as_dir in $PATH
39208do
39209 IFS=$as_save_IFS
39210 test -z "$as_dir" && as_dir=.
39211 for ac_exec_ext in '' $ac_executable_extensions; do
39212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39215 break 2
39216 fi
39217done
39218done
39219
39220 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39221 ;;
39222esac
39223fi
39224PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39225
39226if test -n "$PKG_CONFIG"; then
39227 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39228echo "${ECHO_T}$PKG_CONFIG" >&6
39229else
39230 echo "$as_me:$LINENO: result: no" >&5
39231echo "${ECHO_T}no" >&6
39232fi
39233
39234 fi
39235
39236 if test "$PKG_CONFIG" = "no" ; then
39237 echo "*** The pkg-config script could not be found. Make sure it is"
39238 echo "*** in your path, or set the PKG_CONFIG environment variable"
39239 echo "*** to the full path to pkg-config."
39240 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39241 else
39242 PKG_CONFIG_MIN_VERSION=0.9.0
39243 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
39244 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
39245echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 39246
ffa762ff 39247 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
39248 echo "$as_me:$LINENO: result: yes" >&5
39249echo "${ECHO_T}yes" >&6
39250 succeeded=yes
39251
39252 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
39253echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 39254 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39255 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
39256echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
39257
39258 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
39259echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 39260 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39261 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
39262echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
39263 else
39264 LIBGNOMEPRINTUI_CFLAGS=""
39265 LIBGNOMEPRINTUI_LIBS=""
39266 ## If we have a custom action on failure, don't print errors, but
39267 ## do set a variable so people can do so.
ffa762ff 39268 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39269
39270 fi
39271
39272
39273
39274 else
39275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39277 fi
39278 fi
39279
39280 if test $succeeded = yes; then
39281
d1c38808
VZ
39282 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
39283 cat >>confdefs.h <<\_ACEOF
39284#define wxUSE_LIBGNOMEPRINT 1
39285_ACEOF
39286
39287
39288 else
39289
39290 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
39291echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
39292 wxUSE_LIBGNOMEPRINT="no"
39293
39294
39295 fi
39296
39297 fi
39298 fi
39299fi
39300
39301
a848cd7e
SC
39302if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
39303 cat >>confdefs.h <<\_ACEOF
39304#define wxUSE_CMDLINE_PARSER 1
39305_ACEOF
39306
39307fi
39308
39309if test "$wxUSE_STOPWATCH" = "yes"; then
39310 cat >>confdefs.h <<\_ACEOF
39311#define wxUSE_STOPWATCH 1
39312_ACEOF
39313
39314fi
39315
39316if test "$wxUSE_DATETIME" = "yes"; then
39317 cat >>confdefs.h <<\_ACEOF
39318#define wxUSE_DATETIME 1
39319_ACEOF
39320
39321fi
39322
39323if test "$wxUSE_FILE" = "yes"; then
39324 cat >>confdefs.h <<\_ACEOF
39325#define wxUSE_FILE 1
39326_ACEOF
39327
39328fi
39329
39330if test "$wxUSE_FFILE" = "yes"; then
39331 cat >>confdefs.h <<\_ACEOF
39332#define wxUSE_FFILE 1
39333_ACEOF
39334
39335fi
39336
39337if test "$wxUSE_FILESYSTEM" = "yes"; then
39338 cat >>confdefs.h <<\_ACEOF
39339#define wxUSE_FILESYSTEM 1
39340_ACEOF
39341
39342fi
39343
39344if test "$wxUSE_FS_ZIP" = "yes"; then
39345 cat >>confdefs.h <<\_ACEOF
39346#define wxUSE_FS_ZIP 1
39347_ACEOF
39348
39349fi
39350
9e8e867f 39351if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 39352 cat >>confdefs.h <<\_ACEOF
9e8e867f 39353#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
39354_ACEOF
39355
39356fi
39357
39358if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 39359 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
39360 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
39361echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
39362 elif test "$wxUSE_ZLIB" = "no"; then
39363 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
39364echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
39365 else
39366 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39367#define wxUSE_ZIPSTREAM 1
39368_ACEOF
39369
81f90336 39370 fi
a848cd7e
SC
39371fi
39372
a848cd7e 39373if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
39374 if test "$USE_UNIX" != 1; then
39375 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
39376echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
39377 wxUSE_ON_FATAL_EXCEPTION=no
39378 else
39379 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39380#define wxUSE_ON_FATAL_EXCEPTION 1
39381_ACEOF
39382
18228ab4 39383 fi
a848cd7e
SC
39384fi
39385
eaff0f0d
VZ
39386if test "$wxUSE_STACKWALKER" = "yes"; then
39387 cat >>confdefs.h <<\_ACEOF
39388#define wxUSE_STACKWALKER 1
39389_ACEOF
39390
39391fi
39392
36b6448c 39393if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
39394 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
39395 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
39396echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
39397 wxUSE_DEBUGREPORT=no
39398 else
39399 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
39400#define wxUSE_DEBUGREPORT 1
39401_ACEOF
39402
21dfc162
MW
39403 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
39405 fi
dfe0c803 39406 fi
36b6448c
VZ
39407fi
39408
a848cd7e
SC
39409if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39410 cat >>confdefs.h <<\_ACEOF
39411#define wxUSE_SNGLINST_CHECKER 1
39412_ACEOF
39413
39414fi
39415
39416if test "$wxUSE_BUSYINFO" = "yes"; then
39417 cat >>confdefs.h <<\_ACEOF
39418#define wxUSE_BUSYINFO 1
39419_ACEOF
39420
39421fi
39422
39423if test "$wxUSE_STD_IOSTREAM" = "yes"; then
39424 cat >>confdefs.h <<\_ACEOF
39425#define wxUSE_STD_IOSTREAM 1
39426_ACEOF
39427
39428fi
39429
59746b65
MW
39430if test "$wxUSE_STD_STRING" = "yes"; then
39431 cat >>confdefs.h <<\_ACEOF
39432#define wxUSE_STD_STRING 1
39433_ACEOF
39434
39435fi
39436
07158944
VZ
39437if test "$wxUSE_STDPATHS" = "yes"; then
39438 cat >>confdefs.h <<\_ACEOF
39439#define wxUSE_STDPATHS 1
39440_ACEOF
39441
39442fi
39443
a848cd7e
SC
39444if test "$wxUSE_TEXTBUFFER" = "yes"; then
39445 cat >>confdefs.h <<\_ACEOF
39446#define wxUSE_TEXTBUFFER 1
39447_ACEOF
39448
39449fi
39450
39451if test "$wxUSE_TEXTFILE" = "yes"; then
39452 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
39453 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
39454echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
39455 else
39456 cat >>confdefs.h <<\_ACEOF
39457#define wxUSE_TEXTFILE 1
39458_ACEOF
39459
39460 fi
39461fi
39462
39463if test "$wxUSE_CONFIG" = "yes" ; then
39464 if test "$wxUSE_TEXTFILE" != "yes"; then
39465 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
39466echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
39467 else
39468 cat >>confdefs.h <<\_ACEOF
39469#define wxUSE_CONFIG 1
89be85c2
VS
39470_ACEOF
39471
39472 cat >>confdefs.h <<\_ACEOF
39473#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
39474_ACEOF
39475
39476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
39477 fi
39478fi
39479
39480if test "$wxUSE_INTL" = "yes" ; then
39481 if test "$wxUSE_FILE" != "yes"; then
39482 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
39483echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
39484 else
39485 cat >>confdefs.h <<\_ACEOF
39486#define wxUSE_INTL 1
39487_ACEOF
39488
39489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
39490 GUIDIST="$GUIDIST INTL_DIST"
39491 fi
39492fi
39493
39494if test "$wxUSE_LOG" = "yes"; then
39495 cat >>confdefs.h <<\_ACEOF
39496#define wxUSE_LOG 1
39497_ACEOF
39498
39499
39500 if test "$wxUSE_LOGGUI" = "yes"; then
39501 cat >>confdefs.h <<\_ACEOF
39502#define wxUSE_LOGGUI 1
39503_ACEOF
39504
39505 fi
39506
39507 if test "$wxUSE_LOGWINDOW" = "yes"; then
39508 cat >>confdefs.h <<\_ACEOF
39509#define wxUSE_LOGWINDOW 1
39510_ACEOF
39511
39512 fi
39513
39514 if test "$wxUSE_LOGDIALOG" = "yes"; then
39515 cat >>confdefs.h <<\_ACEOF
39516#define wxUSE_LOG_DIALOG 1
39517_ACEOF
39518
39519 fi
0b78747f
MW
39520
39521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
39522fi
39523
39524if test "$wxUSE_LONGLONG" = "yes"; then
39525 cat >>confdefs.h <<\_ACEOF
39526#define wxUSE_LONGLONG 1
39527_ACEOF
39528
39529fi
39530
39531if test "$wxUSE_GEOMETRY" = "yes"; then
39532 cat >>confdefs.h <<\_ACEOF
39533#define wxUSE_GEOMETRY 1
39534_ACEOF
39535
39536fi
39537
a848cd7e
SC
39538if test "$wxUSE_STREAMS" = "yes" ; then
39539 cat >>confdefs.h <<\_ACEOF
39540#define wxUSE_STREAMS 1
39541_ACEOF
39542
39543fi
39544
39545
39546if test "$wxUSE_DATETIME" = "yes"; then
39547
39548for ac_func in strptime
39549do
39550as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39551echo "$as_me:$LINENO: checking for $ac_func" >&5
39552echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39553if eval "test \"\${$as_ac_var+set}\" = set"; then
39554 echo $ECHO_N "(cached) $ECHO_C" >&6
39555else
39556 cat >conftest.$ac_ext <<_ACEOF
39557/* confdefs.h. */
39558_ACEOF
39559cat confdefs.h >>conftest.$ac_ext
39560cat >>conftest.$ac_ext <<_ACEOF
39561/* end confdefs.h. */
ac1cb8d3
VS
39562/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39564#define $ac_func innocuous_$ac_func
39565
a848cd7e
SC
39566/* System header to define __stub macros and hopefully few prototypes,
39567 which can conflict with char $ac_func (); below.
39568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39569 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39570
a848cd7e
SC
39571#ifdef __STDC__
39572# include <limits.h>
39573#else
39574# include <assert.h>
39575#endif
ac1cb8d3
VS
39576
39577#undef $ac_func
39578
a848cd7e
SC
39579/* Override any gcc2 internal prototype to avoid an error. */
39580#ifdef __cplusplus
39581extern "C"
39582{
39583#endif
39584/* We use char because int might match the return type of a gcc2
39585 builtin and then its argument prototype would still apply. */
39586char $ac_func ();
39587/* The GNU C library defines this for functions which it implements
39588 to always fail with ENOSYS. Some functions are actually named
39589 something starting with __ and the normal name is an alias. */
39590#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39591choke me
39592#else
39593char (*f) () = $ac_func;
39594#endif
39595#ifdef __cplusplus
39596}
39597#endif
39598
39599int
39600main ()
39601{
39602return f != $ac_func;
39603 ;
39604 return 0;
39605}
39606_ACEOF
39607rm -f conftest.$ac_objext conftest$ac_exeext
39608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39609 (eval $ac_link) 2>conftest.er1
a848cd7e 39610 ac_status=$?
ac1cb8d3
VS
39611 grep -v '^ *+' conftest.er1 >conftest.err
39612 rm -f conftest.er1
39613 cat conftest.err >&5
a848cd7e
SC
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); } &&
0093c2fc 39616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39618 (eval $ac_try) 2>&5
39619 ac_status=$?
39620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39621 (exit $ac_status); }; } &&
39622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39624 (eval $ac_try) 2>&5
39625 ac_status=$?
39626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39627 (exit $ac_status); }; }; then
39628 eval "$as_ac_var=yes"
39629else
39630 echo "$as_me: failed program was:" >&5
39631sed 's/^/| /' conftest.$ac_ext >&5
39632
39633eval "$as_ac_var=no"
39634fi
ac1cb8d3
VS
39635rm -f conftest.err conftest.$ac_objext \
39636 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39637fi
39638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39639echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39640if test `eval echo '${'$as_ac_var'}'` = yes; then
39641 cat >>confdefs.h <<_ACEOF
39642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39643_ACEOF
39644
39645fi
39646done
39647
f536f005
VZ
39648 if test "$ac_cv_func_strptime" = "yes"; then
39649 echo "$as_me:$LINENO: checking for strptime declaration" >&5
39650echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
39651if test "${wx_cv_func_strptime_decl+set}" = set; then
39652 echo $ECHO_N "(cached) $ECHO_C" >&6
39653else
39654
39655
39656
39657 ac_ext=cc
39658ac_cpp='$CXXCPP $CPPFLAGS'
39659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39662
39663 cat >conftest.$ac_ext <<_ACEOF
39664/* confdefs.h. */
39665_ACEOF
39666cat confdefs.h >>conftest.$ac_ext
39667cat >>conftest.$ac_ext <<_ACEOF
39668/* end confdefs.h. */
39669
39670 #include <time.h>
39671
39672int
39673main ()
39674{
39675
39676 struct tm t;
39677 strptime("foo", "bar", &t);
39678
39679 ;
39680 return 0;
39681}
39682_ACEOF
39683rm -f conftest.$ac_objext
39684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39685 (eval $ac_compile) 2>conftest.er1
39686 ac_status=$?
39687 grep -v '^ *+' conftest.er1 >conftest.err
39688 rm -f conftest.er1
39689 cat conftest.err >&5
39690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39691 (exit $ac_status); } &&
0093c2fc 39692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
39693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39694 (eval $ac_try) 2>&5
39695 ac_status=$?
39696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39697 (exit $ac_status); }; } &&
39698 { ac_try='test -s conftest.$ac_objext'
39699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39700 (eval $ac_try) 2>&5
39701 ac_status=$?
39702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703 (exit $ac_status); }; }; then
39704 wx_cv_func_strptime_decl=yes
39705else
39706 echo "$as_me: failed program was:" >&5
39707sed 's/^/| /' conftest.$ac_ext >&5
39708
39709wx_cv_func_strptime_decl=no
39710
39711fi
39712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39713 ac_ext=c
39714ac_cpp='$CPP $CPPFLAGS'
39715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39717ac_compiler_gnu=$ac_cv_c_compiler_gnu
39718
39719
39720
39721fi
39722echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
39723echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
39724 fi
39725 if test "$wx_cv_func_strptime_decl" = "yes"; then
39726 cat >>confdefs.h <<\_ACEOF
39727#define HAVE_STRPTIME_DECL 1
39728_ACEOF
39729
39730 fi
a848cd7e
SC
39731
39732 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
39733echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
39734if test "${wx_cv_var_timezone+set}" = set; then
39735 echo $ECHO_N "(cached) $ECHO_C" >&6
39736else
39737
39738 cat >conftest.$ac_ext <<_ACEOF
39739/* confdefs.h. */
39740_ACEOF
39741cat confdefs.h >>conftest.$ac_ext
39742cat >>conftest.$ac_ext <<_ACEOF
39743/* end confdefs.h. */
39744
39745 #include <time.h>
39746
39747int
39748main ()
39749{
39750
39751 int tz;
39752 tz = timezone;
39753
39754 ;
39755 return 0;
39756}
39757_ACEOF
39758rm -f conftest.$ac_objext
39759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39760 (eval $ac_compile) 2>conftest.er1
a848cd7e 39761 ac_status=$?
ac1cb8d3
VS
39762 grep -v '^ *+' conftest.er1 >conftest.err
39763 rm -f conftest.er1
39764 cat conftest.err >&5
a848cd7e
SC
39765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766 (exit $ac_status); } &&
0093c2fc 39767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39769 (eval $ac_try) 2>&5
39770 ac_status=$?
39771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39772 (exit $ac_status); }; } &&
39773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39775 (eval $ac_try) 2>&5
39776 ac_status=$?
39777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778 (exit $ac_status); }; }; then
39779
39780 wx_cv_var_timezone=timezone
39781
39782else
39783 echo "$as_me: failed program was:" >&5
39784sed 's/^/| /' conftest.$ac_ext >&5
39785
39786
39787 cat >conftest.$ac_ext <<_ACEOF
39788/* confdefs.h. */
39789_ACEOF
39790cat confdefs.h >>conftest.$ac_ext
39791cat >>conftest.$ac_ext <<_ACEOF
39792/* end confdefs.h. */
39793
39794 #include <time.h>
39795
39796int
39797main ()
39798{
39799
39800 int tz;
39801 tz = _timezone;
39802
39803 ;
39804 return 0;
39805}
39806_ACEOF
39807rm -f conftest.$ac_objext
39808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39809 (eval $ac_compile) 2>conftest.er1
a848cd7e 39810 ac_status=$?
ac1cb8d3
VS
39811 grep -v '^ *+' conftest.er1 >conftest.err
39812 rm -f conftest.er1
39813 cat conftest.err >&5
a848cd7e
SC
39814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39815 (exit $ac_status); } &&
0093c2fc 39816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39818 (eval $ac_try) 2>&5
39819 ac_status=$?
39820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39821 (exit $ac_status); }; } &&
39822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39824 (eval $ac_try) 2>&5
39825 ac_status=$?
39826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39827 (exit $ac_status); }; }; then
39828
39829 wx_cv_var_timezone=_timezone
39830
39831else
39832 echo "$as_me: failed program was:" >&5
39833sed 's/^/| /' conftest.$ac_ext >&5
39834
39835
39836 cat >conftest.$ac_ext <<_ACEOF
39837/* confdefs.h. */
39838_ACEOF
39839cat confdefs.h >>conftest.$ac_ext
39840cat >>conftest.$ac_ext <<_ACEOF
39841/* end confdefs.h. */
39842
39843 #include <time.h>
39844
39845int
39846main ()
39847{
39848
39849 int tz;
39850 tz = __timezone;
39851
39852 ;
39853 return 0;
39854}
39855_ACEOF
39856rm -f conftest.$ac_objext
39857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39858 (eval $ac_compile) 2>conftest.er1
a848cd7e 39859 ac_status=$?
ac1cb8d3
VS
39860 grep -v '^ *+' conftest.er1 >conftest.err
39861 rm -f conftest.er1
39862 cat conftest.err >&5
a848cd7e
SC
39863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864 (exit $ac_status); } &&
0093c2fc 39865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39867 (eval $ac_try) 2>&5
39868 ac_status=$?
39869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39870 (exit $ac_status); }; } &&
39871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39873 (eval $ac_try) 2>&5
39874 ac_status=$?
39875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39876 (exit $ac_status); }; }; then
39877
39878 wx_cv_var_timezone=__timezone
39879
39880else
39881 echo "$as_me: failed program was:" >&5
39882sed 's/^/| /' conftest.$ac_ext >&5
39883
39884
39885 if test "$USE_DOS" = 0 ; then
39886 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39887echo "$as_me: WARNING: no timezone variable" >&2;}
39888 fi
39889
39890
39891fi
ac1cb8d3 39892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39893
39894
39895fi
ac1cb8d3 39896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39897
39898
39899fi
ac1cb8d3 39900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39901
39902
39903fi
39904echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39905echo "${ECHO_T}$wx_cv_var_timezone" >&6
39906
39907 if test "x$wx_cv_var_timezone" != x ; then
39908 cat >>confdefs.h <<_ACEOF
39909#define WX_TIMEZONE $wx_cv_var_timezone
39910_ACEOF
39911
39912 fi
39913
39914
39915for ac_func in localtime
39916do
39917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39918echo "$as_me:$LINENO: checking for $ac_func" >&5
39919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39920if eval "test \"\${$as_ac_var+set}\" = set"; then
39921 echo $ECHO_N "(cached) $ECHO_C" >&6
39922else
39923 cat >conftest.$ac_ext <<_ACEOF
39924/* confdefs.h. */
39925_ACEOF
39926cat confdefs.h >>conftest.$ac_ext
39927cat >>conftest.$ac_ext <<_ACEOF
39928/* end confdefs.h. */
ac1cb8d3
VS
39929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39931#define $ac_func innocuous_$ac_func
39932
a848cd7e
SC
39933/* System header to define __stub macros and hopefully few prototypes,
39934 which can conflict with char $ac_func (); below.
39935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39936 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39937
a848cd7e
SC
39938#ifdef __STDC__
39939# include <limits.h>
39940#else
39941# include <assert.h>
39942#endif
ac1cb8d3
VS
39943
39944#undef $ac_func
39945
a848cd7e
SC
39946/* Override any gcc2 internal prototype to avoid an error. */
39947#ifdef __cplusplus
39948extern "C"
39949{
39950#endif
39951/* We use char because int might match the return type of a gcc2
39952 builtin and then its argument prototype would still apply. */
39953char $ac_func ();
39954/* The GNU C library defines this for functions which it implements
39955 to always fail with ENOSYS. Some functions are actually named
39956 something starting with __ and the normal name is an alias. */
39957#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39958choke me
39959#else
39960char (*f) () = $ac_func;
39961#endif
39962#ifdef __cplusplus
39963}
39964#endif
39965
39966int
39967main ()
39968{
39969return f != $ac_func;
39970 ;
39971 return 0;
39972}
39973_ACEOF
39974rm -f conftest.$ac_objext conftest$ac_exeext
39975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39976 (eval $ac_link) 2>conftest.er1
a848cd7e 39977 ac_status=$?
ac1cb8d3
VS
39978 grep -v '^ *+' conftest.er1 >conftest.err
39979 rm -f conftest.er1
39980 cat conftest.err >&5
a848cd7e
SC
39981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39982 (exit $ac_status); } &&
0093c2fc 39983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39985 (eval $ac_try) 2>&5
39986 ac_status=$?
39987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39988 (exit $ac_status); }; } &&
39989 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39991 (eval $ac_try) 2>&5
39992 ac_status=$?
39993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994 (exit $ac_status); }; }; then
39995 eval "$as_ac_var=yes"
39996else
39997 echo "$as_me: failed program was:" >&5
39998sed 's/^/| /' conftest.$ac_ext >&5
39999
40000eval "$as_ac_var=no"
40001fi
ac1cb8d3
VS
40002rm -f conftest.err conftest.$ac_objext \
40003 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40004fi
40005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40006echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40007if test `eval echo '${'$as_ac_var'}'` = yes; then
40008 cat >>confdefs.h <<_ACEOF
40009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40010_ACEOF
40011
40012fi
40013done
40014
40015
40016 if test "$ac_cv_func_localtime" = "yes"; then
40017 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
40018echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
40019if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
40020 echo $ECHO_N "(cached) $ECHO_C" >&6
40021else
40022
40023 cat >conftest.$ac_ext <<_ACEOF
40024/* confdefs.h. */
40025_ACEOF
40026cat confdefs.h >>conftest.$ac_ext
40027cat >>conftest.$ac_ext <<_ACEOF
40028/* end confdefs.h. */
40029
40030 #include <time.h>
40031
40032int
40033main ()
40034{
40035
40036 struct tm tm;
40037 tm.tm_gmtoff++;
40038
40039 ;
40040 return 0;
40041}
40042_ACEOF
40043rm -f conftest.$ac_objext
40044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40045 (eval $ac_compile) 2>conftest.er1
a848cd7e 40046 ac_status=$?
ac1cb8d3
VS
40047 grep -v '^ *+' conftest.er1 >conftest.err
40048 rm -f conftest.er1
40049 cat conftest.err >&5
a848cd7e
SC
40050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051 (exit $ac_status); } &&
0093c2fc 40052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40054 (eval $ac_try) 2>&5
40055 ac_status=$?
40056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40057 (exit $ac_status); }; } &&
40058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40060 (eval $ac_try) 2>&5
40061 ac_status=$?
40062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063 (exit $ac_status); }; }; then
40064
40065 wx_cv_struct_tm_has_gmtoff=yes
40066
40067else
40068 echo "$as_me: failed program was:" >&5
40069sed 's/^/| /' conftest.$ac_ext >&5
40070
40071wx_cv_struct_tm_has_gmtoff=no
40072
40073fi
ac1cb8d3 40074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40075
40076fi
40077echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
40078echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
40079 fi
40080
40081 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
40082 cat >>confdefs.h <<\_ACEOF
40083#define WX_GMTOFF_IN_TM 1
40084_ACEOF
40085
40086 fi
40087
40088
40089
40090for ac_func in gettimeofday ftime
40091do
40092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40093echo "$as_me:$LINENO: checking for $ac_func" >&5
40094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40095if eval "test \"\${$as_ac_var+set}\" = set"; then
40096 echo $ECHO_N "(cached) $ECHO_C" >&6
40097else
40098 cat >conftest.$ac_ext <<_ACEOF
40099/* confdefs.h. */
40100_ACEOF
40101cat confdefs.h >>conftest.$ac_ext
40102cat >>conftest.$ac_ext <<_ACEOF
40103/* end confdefs.h. */
ac1cb8d3
VS
40104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40106#define $ac_func innocuous_$ac_func
40107
a848cd7e
SC
40108/* System header to define __stub macros and hopefully few prototypes,
40109 which can conflict with char $ac_func (); below.
40110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40111 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40112
a848cd7e
SC
40113#ifdef __STDC__
40114# include <limits.h>
40115#else
40116# include <assert.h>
40117#endif
ac1cb8d3
VS
40118
40119#undef $ac_func
40120
a848cd7e
SC
40121/* Override any gcc2 internal prototype to avoid an error. */
40122#ifdef __cplusplus
40123extern "C"
40124{
40125#endif
40126/* We use char because int might match the return type of a gcc2
40127 builtin and then its argument prototype would still apply. */
40128char $ac_func ();
40129/* The GNU C library defines this for functions which it implements
40130 to always fail with ENOSYS. Some functions are actually named
40131 something starting with __ and the normal name is an alias. */
40132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40133choke me
40134#else
40135char (*f) () = $ac_func;
40136#endif
40137#ifdef __cplusplus
40138}
40139#endif
40140
40141int
40142main ()
40143{
40144return f != $ac_func;
40145 ;
40146 return 0;
40147}
40148_ACEOF
40149rm -f conftest.$ac_objext conftest$ac_exeext
40150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40151 (eval $ac_link) 2>conftest.er1
a848cd7e 40152 ac_status=$?
ac1cb8d3
VS
40153 grep -v '^ *+' conftest.er1 >conftest.err
40154 rm -f conftest.er1
40155 cat conftest.err >&5
a848cd7e
SC
40156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157 (exit $ac_status); } &&
0093c2fc 40158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40160 (eval $ac_try) 2>&5
40161 ac_status=$?
40162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40163 (exit $ac_status); }; } &&
40164 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40166 (eval $ac_try) 2>&5
40167 ac_status=$?
40168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40169 (exit $ac_status); }; }; then
40170 eval "$as_ac_var=yes"
40171else
40172 echo "$as_me: failed program was:" >&5
40173sed 's/^/| /' conftest.$ac_ext >&5
40174
40175eval "$as_ac_var=no"
40176fi
ac1cb8d3
VS
40177rm -f conftest.err conftest.$ac_objext \
40178 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40179fi
40180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40181echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40182if test `eval echo '${'$as_ac_var'}'` = yes; then
40183 cat >>confdefs.h <<_ACEOF
40184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40185_ACEOF
40186 break
40187fi
40188done
40189
40190
40191 if test "$ac_cv_func_gettimeofday" = "yes"; then
40192 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
40193echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
40194if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
40195 echo $ECHO_N "(cached) $ECHO_C" >&6
40196else
40197
40198
40199
40200 ac_ext=cc
40201ac_cpp='$CXXCPP $CPPFLAGS'
40202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40205
40206
40207 cat >conftest.$ac_ext <<_ACEOF
40208/* confdefs.h. */
40209_ACEOF
40210cat confdefs.h >>conftest.$ac_ext
40211cat >>conftest.$ac_ext <<_ACEOF
40212/* end confdefs.h. */
40213
40214 #include <sys/time.h>
40215 #include <unistd.h>
40216
40217int
40218main ()
40219{
40220
40221 struct timeval tv;
40222 gettimeofday(&tv, NULL);
40223
40224 ;
40225 return 0;
40226}
40227_ACEOF
40228rm -f conftest.$ac_objext
40229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40230 (eval $ac_compile) 2>conftest.er1
a848cd7e 40231 ac_status=$?
ac1cb8d3
VS
40232 grep -v '^ *+' conftest.er1 >conftest.err
40233 rm -f conftest.er1
40234 cat conftest.err >&5
a848cd7e
SC
40235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236 (exit $ac_status); } &&
0093c2fc 40237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40239 (eval $ac_try) 2>&5
40240 ac_status=$?
40241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242 (exit $ac_status); }; } &&
40243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40245 (eval $ac_try) 2>&5
40246 ac_status=$?
40247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248 (exit $ac_status); }; }; then
40249 wx_cv_func_gettimeofday_has_2_args=yes
40250else
40251 echo "$as_me: failed program was:" >&5
40252sed 's/^/| /' conftest.$ac_ext >&5
40253
40254cat >conftest.$ac_ext <<_ACEOF
40255/* confdefs.h. */
40256_ACEOF
40257cat confdefs.h >>conftest.$ac_ext
40258cat >>conftest.$ac_ext <<_ACEOF
40259/* end confdefs.h. */
40260
40261 #include <sys/time.h>
40262 #include <unistd.h>
40263
40264int
40265main ()
40266{
40267
40268 struct timeval tv;
40269 gettimeofday(&tv);
40270
40271 ;
40272 return 0;
40273}
40274_ACEOF
40275rm -f conftest.$ac_objext
40276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40277 (eval $ac_compile) 2>conftest.er1
a848cd7e 40278 ac_status=$?
ac1cb8d3
VS
40279 grep -v '^ *+' conftest.er1 >conftest.err
40280 rm -f conftest.er1
40281 cat conftest.err >&5
a848cd7e
SC
40282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40283 (exit $ac_status); } &&
0093c2fc 40284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40286 (eval $ac_try) 2>&5
40287 ac_status=$?
40288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289 (exit $ac_status); }; } &&
40290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40292 (eval $ac_try) 2>&5
40293 ac_status=$?
40294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40295 (exit $ac_status); }; }; then
40296 wx_cv_func_gettimeofday_has_2_args=no
40297else
40298 echo "$as_me: failed program was:" >&5
40299sed 's/^/| /' conftest.$ac_ext >&5
40300
40301
40302 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
40303echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
40304 wx_cv_func_gettimeofday_has_2_args=unknown
40305
40306
40307fi
ac1cb8d3 40308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40309
40310fi
ac1cb8d3 40311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40312 ac_ext=c
40313ac_cpp='$CPP $CPPFLAGS'
40314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40316ac_compiler_gnu=$ac_cv_c_compiler_gnu
40317
40318
40319fi
40320echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
40321echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
40322
40323 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
40324 cat >>confdefs.h <<\_ACEOF
40325#define WX_GETTIMEOFDAY_NO_TZ 1
40326_ACEOF
40327
40328 fi
40329 fi
40330
40331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
40332fi
40333
40334
40335if test "$wxUSE_SOCKETS" = "yes"; then
40336 if test "$wxUSE_MGL" = "1"; then
40337 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
40338echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
40339 wxUSE_SOCKETS="no"
40340 fi
40341fi
40342
40343if test "$wxUSE_SOCKETS" = "yes"; then
40344 if test "$TOOLKIT" != "MSW"; then
40345 echo "$as_me:$LINENO: checking for socket" >&5
40346echo $ECHO_N "checking for socket... $ECHO_C" >&6
40347if test "${ac_cv_func_socket+set}" = set; then
40348 echo $ECHO_N "(cached) $ECHO_C" >&6
40349else
40350 cat >conftest.$ac_ext <<_ACEOF
40351/* confdefs.h. */
40352_ACEOF
40353cat confdefs.h >>conftest.$ac_ext
40354cat >>conftest.$ac_ext <<_ACEOF
40355/* end confdefs.h. */
ac1cb8d3
VS
40356/* Define socket to an innocuous variant, in case <limits.h> declares socket.
40357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40358#define socket innocuous_socket
40359
a848cd7e
SC
40360/* System header to define __stub macros and hopefully few prototypes,
40361 which can conflict with char socket (); below.
40362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40363 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40364
a848cd7e
SC
40365#ifdef __STDC__
40366# include <limits.h>
40367#else
40368# include <assert.h>
40369#endif
ac1cb8d3
VS
40370
40371#undef socket
40372
a848cd7e
SC
40373/* Override any gcc2 internal prototype to avoid an error. */
40374#ifdef __cplusplus
40375extern "C"
40376{
40377#endif
40378/* We use char because int might match the return type of a gcc2
40379 builtin and then its argument prototype would still apply. */
40380char socket ();
40381/* The GNU C library defines this for functions which it implements
40382 to always fail with ENOSYS. Some functions are actually named
40383 something starting with __ and the normal name is an alias. */
40384#if defined (__stub_socket) || defined (__stub___socket)
40385choke me
40386#else
40387char (*f) () = socket;
40388#endif
40389#ifdef __cplusplus
40390}
40391#endif
40392
40393int
40394main ()
40395{
40396return f != socket;
40397 ;
40398 return 0;
40399}
40400_ACEOF
40401rm -f conftest.$ac_objext conftest$ac_exeext
40402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40403 (eval $ac_link) 2>conftest.er1
a848cd7e 40404 ac_status=$?
ac1cb8d3
VS
40405 grep -v '^ *+' conftest.er1 >conftest.err
40406 rm -f conftest.er1
40407 cat conftest.err >&5
a848cd7e
SC
40408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40409 (exit $ac_status); } &&
0093c2fc 40410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40412 (eval $ac_try) 2>&5
40413 ac_status=$?
40414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40415 (exit $ac_status); }; } &&
40416 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40418 (eval $ac_try) 2>&5
40419 ac_status=$?
40420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421 (exit $ac_status); }; }; then
40422 ac_cv_func_socket=yes
40423else
40424 echo "$as_me: failed program was:" >&5
40425sed 's/^/| /' conftest.$ac_ext >&5
40426
40427ac_cv_func_socket=no
40428fi
ac1cb8d3
VS
40429rm -f conftest.err conftest.$ac_objext \
40430 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40431fi
40432echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
40433echo "${ECHO_T}$ac_cv_func_socket" >&6
40434if test $ac_cv_func_socket = yes; then
40435 :
40436else
40437
40438 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
40439echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
40440if test "${ac_cv_lib_socket_socket+set}" = set; then
40441 echo $ECHO_N "(cached) $ECHO_C" >&6
40442else
40443 ac_check_lib_save_LIBS=$LIBS
40444LIBS="-lsocket $LIBS"
40445cat >conftest.$ac_ext <<_ACEOF
40446/* confdefs.h. */
40447_ACEOF
40448cat confdefs.h >>conftest.$ac_ext
40449cat >>conftest.$ac_ext <<_ACEOF
40450/* end confdefs.h. */
40451
40452/* Override any gcc2 internal prototype to avoid an error. */
40453#ifdef __cplusplus
40454extern "C"
40455#endif
40456/* We use char because int might match the return type of a gcc2
40457 builtin and then its argument prototype would still apply. */
40458char socket ();
40459int
40460main ()
40461{
40462socket ();
40463 ;
40464 return 0;
40465}
40466_ACEOF
40467rm -f conftest.$ac_objext conftest$ac_exeext
40468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40469 (eval $ac_link) 2>conftest.er1
a848cd7e 40470 ac_status=$?
ac1cb8d3
VS
40471 grep -v '^ *+' conftest.er1 >conftest.err
40472 rm -f conftest.er1
40473 cat conftest.err >&5
a848cd7e
SC
40474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475 (exit $ac_status); } &&
0093c2fc 40476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40478 (eval $ac_try) 2>&5
40479 ac_status=$?
40480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40481 (exit $ac_status); }; } &&
40482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40484 (eval $ac_try) 2>&5
40485 ac_status=$?
40486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40487 (exit $ac_status); }; }; then
40488 ac_cv_lib_socket_socket=yes
40489else
40490 echo "$as_me: failed program was:" >&5
40491sed 's/^/| /' conftest.$ac_ext >&5
40492
40493ac_cv_lib_socket_socket=no
40494fi
ac1cb8d3
VS
40495rm -f conftest.err conftest.$ac_objext \
40496 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40497LIBS=$ac_check_lib_save_LIBS
40498fi
40499echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
40500echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
40501if test $ac_cv_lib_socket_socket = yes; then
40502 if test "$INET_LINK" != " -lsocket"; then
40503 INET_LINK="$INET_LINK -lsocket"
40504 fi
40505else
40506
40507 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
40508echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
40509 wxUSE_SOCKETS=no
40510
40511
40512fi
40513
40514
40515
40516fi
40517
40518 fi
40519fi
40520
40521if test "$wxUSE_SOCKETS" = "yes" ; then
40522 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
40523 ac_ext=cc
40524ac_cpp='$CXXCPP $CPPFLAGS'
40525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40528
40529 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
40530echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
40531if test "${wx_cv_type_getsockname3+set}" = set; then
40532 echo $ECHO_N "(cached) $ECHO_C" >&6
40533else
40534
40535 cat >conftest.$ac_ext <<_ACEOF
40536/* confdefs.h. */
40537_ACEOF
40538cat confdefs.h >>conftest.$ac_ext
40539cat >>conftest.$ac_ext <<_ACEOF
40540/* end confdefs.h. */
40541
40542 #include <sys/types.h>
40543 #include <sys/socket.h>
40544
40545int
40546main ()
40547{
40548
40549 socklen_t len;
40550 getsockname(0, 0, &len);
40551
40552 ;
40553 return 0;
40554}
40555_ACEOF
40556rm -f conftest.$ac_objext
40557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40558 (eval $ac_compile) 2>conftest.er1
a848cd7e 40559 ac_status=$?
ac1cb8d3
VS
40560 grep -v '^ *+' conftest.er1 >conftest.err
40561 rm -f conftest.er1
40562 cat conftest.err >&5
a848cd7e
SC
40563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564 (exit $ac_status); } &&
0093c2fc 40565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40567 (eval $ac_try) 2>&5
40568 ac_status=$?
40569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570 (exit $ac_status); }; } &&
40571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40573 (eval $ac_try) 2>&5
40574 ac_status=$?
40575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576 (exit $ac_status); }; }; then
40577 wx_cv_type_getsockname3=socklen_t
40578else
40579 echo "$as_me: failed program was:" >&5
40580sed 's/^/| /' conftest.$ac_ext >&5
40581
40582
6459a506 40583 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 40584 if test "$GCC" = yes ; then
6459a506 40585 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
40586 fi
40587
40588 cat >conftest.$ac_ext <<_ACEOF
40589/* confdefs.h. */
40590_ACEOF
40591cat confdefs.h >>conftest.$ac_ext
40592cat >>conftest.$ac_ext <<_ACEOF
40593/* end confdefs.h. */
40594
40595 #include <sys/types.h>
40596 #include <sys/socket.h>
40597
40598int
40599main ()
40600{
40601
40602 size_t len;
40603 getsockname(0, 0, &len);
40604
40605 ;
40606 return 0;
40607}
40608_ACEOF
40609rm -f conftest.$ac_objext
40610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40611 (eval $ac_compile) 2>conftest.er1
a848cd7e 40612 ac_status=$?
ac1cb8d3
VS
40613 grep -v '^ *+' conftest.er1 >conftest.err
40614 rm -f conftest.er1
40615 cat conftest.err >&5
a848cd7e
SC
40616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40617 (exit $ac_status); } &&
0093c2fc 40618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40620 (eval $ac_try) 2>&5
40621 ac_status=$?
40622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40623 (exit $ac_status); }; } &&
40624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40626 (eval $ac_try) 2>&5
40627 ac_status=$?
40628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40629 (exit $ac_status); }; }; then
40630 wx_cv_type_getsockname3=size_t
40631else
40632 echo "$as_me: failed program was:" >&5
40633sed 's/^/| /' conftest.$ac_ext >&5
40634
40635cat >conftest.$ac_ext <<_ACEOF
40636/* confdefs.h. */
40637_ACEOF
40638cat confdefs.h >>conftest.$ac_ext
40639cat >>conftest.$ac_ext <<_ACEOF
40640/* end confdefs.h. */
40641
40642 #include <sys/types.h>
40643 #include <sys/socket.h>
40644
40645int
40646main ()
40647{
40648
40649 int len;
40650 getsockname(0, 0, &len);
40651
40652 ;
40653 return 0;
40654}
40655_ACEOF
40656rm -f conftest.$ac_objext
40657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40658 (eval $ac_compile) 2>conftest.er1
a848cd7e 40659 ac_status=$?
ac1cb8d3
VS
40660 grep -v '^ *+' conftest.er1 >conftest.err
40661 rm -f conftest.er1
40662 cat conftest.err >&5
a848cd7e
SC
40663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664 (exit $ac_status); } &&
0093c2fc 40665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40667 (eval $ac_try) 2>&5
40668 ac_status=$?
40669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670 (exit $ac_status); }; } &&
40671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40673 (eval $ac_try) 2>&5
40674 ac_status=$?
40675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676 (exit $ac_status); }; }; then
40677 wx_cv_type_getsockname3=int
40678else
40679 echo "$as_me: failed program was:" >&5
40680sed 's/^/| /' conftest.$ac_ext >&5
40681
40682wx_cv_type_getsockname3=unknown
40683
40684fi
ac1cb8d3 40685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40686
40687fi
ac1cb8d3 40688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40689
6459a506 40690 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40691
40692
40693fi
ac1cb8d3 40694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40695
40696fi
40697echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
40698echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
40699
40700 if test "$wx_cv_type_getsockname3" = "unknown"; then
40701 wxUSE_SOCKETS=no
40702 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40703echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40704 else
40705 cat >>confdefs.h <<_ACEOF
9e03e02d 40706#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
40707_ACEOF
40708
40709 fi
40710 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
40711echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
40712if test "${wx_cv_type_getsockopt5+set}" = set; then
40713 echo $ECHO_N "(cached) $ECHO_C" >&6
40714else
40715
40716 cat >conftest.$ac_ext <<_ACEOF
40717/* confdefs.h. */
40718_ACEOF
40719cat confdefs.h >>conftest.$ac_ext
40720cat >>conftest.$ac_ext <<_ACEOF
40721/* end confdefs.h. */
40722
40723 #include <sys/types.h>
40724 #include <sys/socket.h>
40725
40726int
40727main ()
40728{
40729
40730 socklen_t len;
40731 getsockopt(0, 0, 0, 0, &len);
40732
40733 ;
40734 return 0;
40735}
40736_ACEOF
40737rm -f conftest.$ac_objext
40738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40739 (eval $ac_compile) 2>conftest.er1
40740 ac_status=$?
40741 grep -v '^ *+' conftest.er1 >conftest.err
40742 rm -f conftest.er1
40743 cat conftest.err >&5
40744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40745 (exit $ac_status); } &&
0093c2fc 40746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748 (eval $ac_try) 2>&5
40749 ac_status=$?
40750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751 (exit $ac_status); }; } &&
40752 { ac_try='test -s conftest.$ac_objext'
40753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40754 (eval $ac_try) 2>&5
40755 ac_status=$?
40756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757 (exit $ac_status); }; }; then
40758 wx_cv_type_getsockopt5=socklen_t
40759else
40760 echo "$as_me: failed program was:" >&5
40761sed 's/^/| /' conftest.$ac_ext >&5
40762
40763
6459a506 40764 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 40765 if test "$GCC" = yes ; then
6459a506 40766 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
40767 fi
40768
40769 cat >conftest.$ac_ext <<_ACEOF
40770/* confdefs.h. */
40771_ACEOF
40772cat confdefs.h >>conftest.$ac_ext
40773cat >>conftest.$ac_ext <<_ACEOF
40774/* end confdefs.h. */
40775
40776 #include <sys/types.h>
40777 #include <sys/socket.h>
40778
40779int
40780main ()
40781{
40782
40783 size_t len;
40784 getsockopt(0, 0, 0, 0, &len);
40785
40786 ;
40787 return 0;
40788}
40789_ACEOF
40790rm -f conftest.$ac_objext
40791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40792 (eval $ac_compile) 2>conftest.er1
40793 ac_status=$?
40794 grep -v '^ *+' conftest.er1 >conftest.err
40795 rm -f conftest.er1
40796 cat conftest.err >&5
40797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40798 (exit $ac_status); } &&
0093c2fc 40799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40801 (eval $ac_try) 2>&5
40802 ac_status=$?
40803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40804 (exit $ac_status); }; } &&
40805 { ac_try='test -s conftest.$ac_objext'
40806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40807 (eval $ac_try) 2>&5
40808 ac_status=$?
40809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810 (exit $ac_status); }; }; then
40811 wx_cv_type_getsockopt5=size_t
40812else
40813 echo "$as_me: failed program was:" >&5
40814sed 's/^/| /' conftest.$ac_ext >&5
40815
40816cat >conftest.$ac_ext <<_ACEOF
40817/* confdefs.h. */
40818_ACEOF
40819cat confdefs.h >>conftest.$ac_ext
40820cat >>conftest.$ac_ext <<_ACEOF
40821/* end confdefs.h. */
40822
40823 #include <sys/types.h>
40824 #include <sys/socket.h>
40825
40826int
40827main ()
40828{
40829
40830 int len;
40831 getsockopt(0, 0, 0, 0, &len);
40832
40833 ;
40834 return 0;
40835}
40836_ACEOF
40837rm -f conftest.$ac_objext
40838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40839 (eval $ac_compile) 2>conftest.er1
40840 ac_status=$?
40841 grep -v '^ *+' conftest.er1 >conftest.err
40842 rm -f conftest.er1
40843 cat conftest.err >&5
40844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40845 (exit $ac_status); } &&
0093c2fc 40846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40848 (eval $ac_try) 2>&5
40849 ac_status=$?
40850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40851 (exit $ac_status); }; } &&
40852 { ac_try='test -s conftest.$ac_objext'
40853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40854 (eval $ac_try) 2>&5
40855 ac_status=$?
40856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857 (exit $ac_status); }; }; then
40858 wx_cv_type_getsockopt5=int
40859else
40860 echo "$as_me: failed program was:" >&5
40861sed 's/^/| /' conftest.$ac_ext >&5
40862
40863wx_cv_type_getsockopt5=unknown
40864
40865fi
40866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40867
40868fi
40869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40870
6459a506 40871 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
40872
40873
40874fi
40875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40876
40877fi
40878echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40879echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40880
40881 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40882 wxUSE_SOCKETS=no
40883 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40884echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40885 else
40886 cat >>confdefs.h <<_ACEOF
40887#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40888_ACEOF
40889
40890 fi
4d4ff94c
VZ
40891 ac_ext=c
40892ac_cpp='$CPP $CPPFLAGS'
40893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40895ac_compiler_gnu=$ac_cv_c_compiler_gnu
40896
a848cd7e
SC
40897 fi
40898fi
40899
40900if test "$wxUSE_SOCKETS" = "yes" ; then
40901 cat >>confdefs.h <<\_ACEOF
40902#define wxUSE_SOCKETS 1
40903_ACEOF
40904
40905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40906fi
40907
40908if test "$wxUSE_PROTOCOL" = "yes"; then
40909 if test "$wxUSE_SOCKETS" != "yes"; then
40910 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40911echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40912 wxUSE_PROTOCOL=no
40913 fi
40914fi
40915
40916if test "$wxUSE_PROTOCOL" = "yes"; then
40917 cat >>confdefs.h <<\_ACEOF
40918#define wxUSE_PROTOCOL 1
40919_ACEOF
40920
40921
40922 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40923 cat >>confdefs.h <<\_ACEOF
40924#define wxUSE_PROTOCOL_HTTP 1
40925_ACEOF
40926
40927 fi
40928 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40929 cat >>confdefs.h <<\_ACEOF
40930#define wxUSE_PROTOCOL_FTP 1
40931_ACEOF
40932
40933 fi
40934 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40935 cat >>confdefs.h <<\_ACEOF
40936#define wxUSE_PROTOCOL_FILE 1
40937_ACEOF
40938
40939 fi
40940else
40941 if test "$wxUSE_FS_INET" = "yes"; then
40942 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40943echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40944 wxUSE_FS_INET="no"
40945 fi
40946fi
40947
40948if test "$wxUSE_URL" = "yes"; then
40949 if test "$wxUSE_PROTOCOL" != "yes"; then
40950 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40951echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40952 wxUSE_URL=no
40953 fi
40954 if test "$wxUSE_URL" = "yes"; then
40955 cat >>confdefs.h <<\_ACEOF
40956#define wxUSE_URL 1
40957_ACEOF
40958
40959 fi
40960fi
40961
40962if test "$wxUSE_FS_INET" = "yes"; then
40963 cat >>confdefs.h <<\_ACEOF
40964#define wxUSE_FS_INET 1
40965_ACEOF
40966
40967fi
40968
40969
ee45c548
MW
40970if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
40971 wxUSE_JOYSTICK=no
40972
40973 if test "$TOOLKIT" = "MSW"; then
40974 wxUSE_JOYSTICK=yes
40975
40976 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
40977 if test "$USE_DARWIN" = 1; then
40978 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
40979echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
40980 ac_ext=cc
40981ac_cpp='$CXXCPP $CPPFLAGS'
40982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40985
40986 cat >conftest.$ac_ext <<_ACEOF
40987/* confdefs.h. */
40988_ACEOF
40989cat confdefs.h >>conftest.$ac_ext
40990cat >>conftest.$ac_ext <<_ACEOF
40991/* end confdefs.h. */
40992 #include <IOKit/hid/IOHIDLib.h>
40993int
40994main ()
40995{
40996 IOHIDQueueInterface *qi = NULL;
40997 IOHIDCallbackFunction cb = NULL;
40998 qi->setEventCallout(NULL, cb, NULL, NULL);
40999 ;
41000 return 0;
41001}
41002_ACEOF
41003rm -f conftest.$ac_objext
41004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41005 (eval $ac_compile) 2>conftest.er1
41006 ac_status=$?
41007 grep -v '^ *+' conftest.er1 >conftest.err
41008 rm -f conftest.er1
41009 cat conftest.err >&5
41010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41011 (exit $ac_status); } &&
0093c2fc 41012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
41013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41014 (eval $ac_try) 2>&5
41015 ac_status=$?
41016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41017 (exit $ac_status); }; } &&
41018 { ac_try='test -s conftest.$ac_objext'
41019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41020 (eval $ac_try) 2>&5
41021 ac_status=$?
41022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41023 (exit $ac_status); }; }; then
41024 wxUSE_JOYSTICK=yes
a848cd7e 41025
ee45c548
MW
41026else
41027 echo "$as_me: failed program was:" >&5
41028sed 's/^/| /' conftest.$ac_ext >&5
41029
41030fi
41031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41032 ac_ext=c
41033ac_cpp='$CPP $CPPFLAGS'
41034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41036ac_compiler_gnu=$ac_cv_c_compiler_gnu
41037
41038 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
41039echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
41040 fi
41041
41042 else
a848cd7e
SC
41043
41044for ac_header in linux/joystick.h
41045do
41046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41047if eval "test \"\${$as_ac_Header+set}\" = set"; then
41048 echo "$as_me:$LINENO: checking for $ac_header" >&5
41049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41050if eval "test \"\${$as_ac_Header+set}\" = set"; then
41051 echo $ECHO_N "(cached) $ECHO_C" >&6
41052fi
41053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41055else
41056 # Is the header compilable?
41057echo "$as_me:$LINENO: checking $ac_header usability" >&5
41058echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41059cat >conftest.$ac_ext <<_ACEOF
41060/* confdefs.h. */
41061_ACEOF
41062cat confdefs.h >>conftest.$ac_ext
41063cat >>conftest.$ac_ext <<_ACEOF
41064/* end confdefs.h. */
41065$ac_includes_default
41066#include <$ac_header>
41067_ACEOF
41068rm -f conftest.$ac_objext
41069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41070 (eval $ac_compile) 2>conftest.er1
a848cd7e 41071 ac_status=$?
ac1cb8d3
VS
41072 grep -v '^ *+' conftest.er1 >conftest.err
41073 rm -f conftest.er1
41074 cat conftest.err >&5
a848cd7e
SC
41075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41076 (exit $ac_status); } &&
0093c2fc 41077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41079 (eval $ac_try) 2>&5
41080 ac_status=$?
41081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41082 (exit $ac_status); }; } &&
41083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41085 (eval $ac_try) 2>&5
41086 ac_status=$?
41087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41088 (exit $ac_status); }; }; then
41089 ac_header_compiler=yes
41090else
41091 echo "$as_me: failed program was:" >&5
41092sed 's/^/| /' conftest.$ac_ext >&5
41093
41094ac_header_compiler=no
41095fi
ac1cb8d3 41096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41097echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41098echo "${ECHO_T}$ac_header_compiler" >&6
41099
41100# Is the header present?
41101echo "$as_me:$LINENO: checking $ac_header presence" >&5
41102echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41103cat >conftest.$ac_ext <<_ACEOF
41104/* confdefs.h. */
41105_ACEOF
41106cat confdefs.h >>conftest.$ac_ext
41107cat >>conftest.$ac_ext <<_ACEOF
41108/* end confdefs.h. */
41109#include <$ac_header>
41110_ACEOF
41111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41113 ac_status=$?
41114 grep -v '^ *+' conftest.er1 >conftest.err
41115 rm -f conftest.er1
41116 cat conftest.err >&5
41117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41118 (exit $ac_status); } >/dev/null; then
41119 if test -s conftest.err; then
41120 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41122 else
41123 ac_cpp_err=
41124 fi
41125else
41126 ac_cpp_err=yes
41127fi
41128if test -z "$ac_cpp_err"; then
41129 ac_header_preproc=yes
41130else
41131 echo "$as_me: failed program was:" >&5
41132sed 's/^/| /' conftest.$ac_ext >&5
41133
41134 ac_header_preproc=no
41135fi
41136rm -f conftest.err conftest.$ac_ext
41137echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41138echo "${ECHO_T}$ac_header_preproc" >&6
41139
41140# So? What about this header?
ac1cb8d3
VS
41141case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41142 yes:no: )
a848cd7e
SC
41143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41144echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41146echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41147 ac_header_preproc=yes
a848cd7e 41148 ;;
ac1cb8d3 41149 no:yes:* )
a848cd7e
SC
41150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41151echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41153echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41155echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41157echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41159echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41161echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41162 (
41163 cat <<\_ASBOX
ac1cb8d3
VS
41164## ----------------------------------------- ##
41165## Report this to wx-dev@lists.wxwidgets.org ##
41166## ----------------------------------------- ##
a848cd7e
SC
41167_ASBOX
41168 ) |
41169 sed "s/^/$as_me: WARNING: /" >&2
41170 ;;
41171esac
41172echo "$as_me:$LINENO: checking for $ac_header" >&5
41173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41174if eval "test \"\${$as_ac_Header+set}\" = set"; then
41175 echo $ECHO_N "(cached) $ECHO_C" >&6
41176else
ac1cb8d3 41177 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41178fi
41179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41180echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41181
41182fi
41183if test `eval echo '${'$as_ac_Header'}'` = yes; then
41184 cat >>confdefs.h <<_ACEOF
41185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41186_ACEOF
ee45c548 41187 wxUSE_JOYSTICK=yes
a848cd7e
SC
41188fi
41189
41190done
41191
ee45c548 41192 fi
4cb1d3da 41193
ee45c548
MW
41194 if test "$wxUSE_JOYSTICK" = "yes"; then
41195 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41196#define wxUSE_JOYSTICK 1
41197_ACEOF
41198
ee45c548
MW
41199 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
41200 else
41201 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
41202echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
41203 fi
41204fi
41205
41206
41207
41208if test "$wxUSE_FONTMAP" = "yes" ; then
41209 cat >>confdefs.h <<\_ACEOF
41210#define wxUSE_FONTMAP 1
41211_ACEOF
41212
41213fi
41214
41215if test "$wxUSE_UNICODE" = "yes" ; then
41216 cat >>confdefs.h <<\_ACEOF
41217#define wxUSE_UNICODE 1
41218_ACEOF
41219
41220
41221 if test "$USE_WIN32" != 1; then
41222 wxUSE_UNICODE_MSLU=no
41223 fi
41224
41225 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
41226 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
41227echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
41228if test "${ac_cv_lib_unicows_main+set}" = set; then
41229 echo $ECHO_N "(cached) $ECHO_C" >&6
41230else
41231 ac_check_lib_save_LIBS=$LIBS
41232LIBS="-lunicows $LIBS"
41233cat >conftest.$ac_ext <<_ACEOF
41234/* confdefs.h. */
41235_ACEOF
41236cat confdefs.h >>conftest.$ac_ext
41237cat >>conftest.$ac_ext <<_ACEOF
41238/* end confdefs.h. */
41239
41240
41241int
41242main ()
41243{
41244main ();
41245 ;
41246 return 0;
41247}
41248_ACEOF
41249rm -f conftest.$ac_objext conftest$ac_exeext
41250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41251 (eval $ac_link) 2>conftest.er1
a848cd7e 41252 ac_status=$?
ac1cb8d3
VS
41253 grep -v '^ *+' conftest.er1 >conftest.err
41254 rm -f conftest.er1
41255 cat conftest.err >&5
a848cd7e
SC
41256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41257 (exit $ac_status); } &&
0093c2fc 41258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41260 (eval $ac_try) 2>&5
41261 ac_status=$?
41262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41263 (exit $ac_status); }; } &&
41264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41266 (eval $ac_try) 2>&5
41267 ac_status=$?
41268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41269 (exit $ac_status); }; }; then
41270 ac_cv_lib_unicows_main=yes
41271else
41272 echo "$as_me: failed program was:" >&5
41273sed 's/^/| /' conftest.$ac_ext >&5
41274
41275ac_cv_lib_unicows_main=no
41276fi
ac1cb8d3
VS
41277rm -f conftest.err conftest.$ac_objext \
41278 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41279LIBS=$ac_check_lib_save_LIBS
41280fi
41281echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
41282echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
41283if test $ac_cv_lib_unicows_main = yes; then
41284
41285 cat >>confdefs.h <<\_ACEOF
41286#define wxUSE_UNICODE_MSLU 1
41287_ACEOF
41288
41289
41290else
41291
41292 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41293 Applications will only run on Windows NT/2000/XP!" >&5
41294echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41295 Applications will only run on Windows NT/2000/XP!" >&2;}
41296 wxUSE_UNICODE_MSLU=no
41297
41298fi
41299
41300 fi
41301fi
41302
41303if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
41304 cat >>confdefs.h <<\_ACEOF
41305#define wxUSE_EXPERIMENTAL_PRINTF 1
41306_ACEOF
41307
41308fi
41309
41310
41311if test "$wxUSE_POSTSCRIPT" = "yes" ; then
41312 cat >>confdefs.h <<\_ACEOF
41313#define wxUSE_POSTSCRIPT 1
41314_ACEOF
41315
41316fi
41317
41318cat >>confdefs.h <<\_ACEOF
41319#define wxUSE_AFM_FOR_POSTSCRIPT 1
41320_ACEOF
41321
41322
41323cat >>confdefs.h <<\_ACEOF
41324#define wxUSE_NORMALIZED_PS_FONTS 1
41325_ACEOF
41326
41327
41328
41329if test "$wxUSE_CONSTRAINTS" = "yes"; then
41330 cat >>confdefs.h <<\_ACEOF
41331#define wxUSE_CONSTRAINTS 1
41332_ACEOF
41333
41334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
41335fi
41336
8a7b1113
VZ
41337if test "$wxUSE_MDI" = "yes"; then
41338 cat >>confdefs.h <<\_ACEOF
41339#define wxUSE_MDI 1
41340_ACEOF
41341
41342
41343 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41344 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41345#define wxUSE_MDI_ARCHITECTURE 1
41346_ACEOF
41347
8a7b1113
VZ
41348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
41349 fi
a848cd7e
SC
41350fi
41351
41352if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
41353 cat >>confdefs.h <<\_ACEOF
41354#define wxUSE_DOC_VIEW_ARCHITECTURE 1
41355_ACEOF
41356
41357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
41358 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
41360 fi
41361fi
41362
41363if test "$wxUSE_HELP" = "yes"; then
41364 cat >>confdefs.h <<\_ACEOF
41365#define wxUSE_HELP 1
41366_ACEOF
41367
41368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
41369
41370 if test "$wxUSE_MSW" = 1; then
41371 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
41372 cat >>confdefs.h <<\_ACEOF
41373#define wxUSE_MS_HTML_HELP 1
41374_ACEOF
41375
41376 fi
41377 fi
41378
41379 if test "$wxUSE_WXHTML_HELP" = "yes"; then
41380 if test "$wxUSE_HTML" = "yes"; then
41381 cat >>confdefs.h <<\_ACEOF
41382#define wxUSE_WXHTML_HELP 1
41383_ACEOF
41384
41385 else
41386 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
41387echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
41388 wxUSE_WXHTML_HELP=no
41389 fi
41390 fi
41391fi
41392
41393if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41394 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41395 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
41396echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
41397 else
41398 cat >>confdefs.h <<\_ACEOF
41399#define wxUSE_PRINTING_ARCHITECTURE 1
41400_ACEOF
41401
41402 fi
41403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
41404fi
41405
41406if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
41407 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
41408echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
41409 { (exit 1); exit 1; }; }
41410fi
41411
41412
efdf6afe
VZ
41413if test "$wxUSE_METAFILE" = "yes"; then
41414 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
41415 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
41416echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
41417 wxUSE_METAFILE=no
41418 fi
41419fi
41420
41421
a848cd7e
SC
41422if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
41423 -o "$wxUSE_CLIPBOARD" = "yes" \
41424 -o "$wxUSE_OLE" = "yes" \
41425 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
41426
41427for ac_header in ole2.h
41428do
41429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41430if eval "test \"\${$as_ac_Header+set}\" = set"; then
41431 echo "$as_me:$LINENO: checking for $ac_header" >&5
41432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41433if eval "test \"\${$as_ac_Header+set}\" = set"; then
41434 echo $ECHO_N "(cached) $ECHO_C" >&6
41435fi
41436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41438else
41439 # Is the header compilable?
41440echo "$as_me:$LINENO: checking $ac_header usability" >&5
41441echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41442cat >conftest.$ac_ext <<_ACEOF
41443/* confdefs.h. */
41444_ACEOF
41445cat confdefs.h >>conftest.$ac_ext
41446cat >>conftest.$ac_ext <<_ACEOF
41447/* end confdefs.h. */
41448$ac_includes_default
41449#include <$ac_header>
41450_ACEOF
41451rm -f conftest.$ac_objext
41452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41453 (eval $ac_compile) 2>conftest.er1
a848cd7e 41454 ac_status=$?
ac1cb8d3
VS
41455 grep -v '^ *+' conftest.er1 >conftest.err
41456 rm -f conftest.er1
41457 cat conftest.err >&5
a848cd7e
SC
41458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41459 (exit $ac_status); } &&
0093c2fc 41460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41462 (eval $ac_try) 2>&5
41463 ac_status=$?
41464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41465 (exit $ac_status); }; } &&
41466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41468 (eval $ac_try) 2>&5
41469 ac_status=$?
41470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471 (exit $ac_status); }; }; then
41472 ac_header_compiler=yes
41473else
41474 echo "$as_me: failed program was:" >&5
41475sed 's/^/| /' conftest.$ac_ext >&5
41476
41477ac_header_compiler=no
41478fi
ac1cb8d3 41479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41481echo "${ECHO_T}$ac_header_compiler" >&6
41482
41483# Is the header present?
41484echo "$as_me:$LINENO: checking $ac_header presence" >&5
41485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41486cat >conftest.$ac_ext <<_ACEOF
41487/* confdefs.h. */
41488_ACEOF
41489cat confdefs.h >>conftest.$ac_ext
41490cat >>conftest.$ac_ext <<_ACEOF
41491/* end confdefs.h. */
41492#include <$ac_header>
41493_ACEOF
41494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41496 ac_status=$?
41497 grep -v '^ *+' conftest.er1 >conftest.err
41498 rm -f conftest.er1
41499 cat conftest.err >&5
41500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41501 (exit $ac_status); } >/dev/null; then
41502 if test -s conftest.err; then
41503 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41505 else
41506 ac_cpp_err=
41507 fi
41508else
41509 ac_cpp_err=yes
41510fi
41511if test -z "$ac_cpp_err"; then
41512 ac_header_preproc=yes
41513else
41514 echo "$as_me: failed program was:" >&5
41515sed 's/^/| /' conftest.$ac_ext >&5
41516
41517 ac_header_preproc=no
41518fi
41519rm -f conftest.err conftest.$ac_ext
41520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41521echo "${ECHO_T}$ac_header_preproc" >&6
41522
41523# So? What about this header?
ac1cb8d3
VS
41524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41525 yes:no: )
a848cd7e
SC
41526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41529echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41530 ac_header_preproc=yes
a848cd7e 41531 ;;
ac1cb8d3 41532 no:yes:* )
a848cd7e
SC
41533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41536echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41538echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41540echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41544echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41545 (
41546 cat <<\_ASBOX
ac1cb8d3
VS
41547## ----------------------------------------- ##
41548## Report this to wx-dev@lists.wxwidgets.org ##
41549## ----------------------------------------- ##
a848cd7e
SC
41550_ASBOX
41551 ) |
41552 sed "s/^/$as_me: WARNING: /" >&2
41553 ;;
41554esac
41555echo "$as_me:$LINENO: checking for $ac_header" >&5
41556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41557if eval "test \"\${$as_ac_Header+set}\" = set"; then
41558 echo $ECHO_N "(cached) $ECHO_C" >&6
41559else
ac1cb8d3 41560 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41561fi
41562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41564
41565fi
41566if test `eval echo '${'$as_ac_Header'}'` = yes; then
41567 cat >>confdefs.h <<_ACEOF
41568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41569_ACEOF
41570
41571fi
41572
41573done
41574
41575
41576 if test "$ac_cv_header_ole2_h" = "yes" ; then
41577 if test "$GCC" = yes ; then
41578
41579
41580 ac_ext=cc
41581ac_cpp='$CXXCPP $CPPFLAGS'
41582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41585
41586
41587 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
41588echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
41589 cat >conftest.$ac_ext <<_ACEOF
41590/* confdefs.h. */
41591_ACEOF
41592cat confdefs.h >>conftest.$ac_ext
41593cat >>conftest.$ac_ext <<_ACEOF
41594/* end confdefs.h. */
41595#include <windows.h>
41596 #include <ole2.h>
41597int
41598main ()
41599{
41600
41601 ;
41602 return 0;
41603}
41604_ACEOF
41605rm -f conftest.$ac_objext
41606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41607 (eval $ac_compile) 2>conftest.er1
a848cd7e 41608 ac_status=$?
ac1cb8d3
VS
41609 grep -v '^ *+' conftest.er1 >conftest.err
41610 rm -f conftest.er1
41611 cat conftest.err >&5
a848cd7e
SC
41612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613 (exit $ac_status); } &&
0093c2fc 41614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41616 (eval $ac_try) 2>&5
41617 ac_status=$?
41618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619 (exit $ac_status); }; } &&
41620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41622 (eval $ac_try) 2>&5
41623 ac_status=$?
41624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625 (exit $ac_status); }; }; then
41626 echo "$as_me:$LINENO: result: no" >&5
41627echo "${ECHO_T}no" >&6
41628else
41629 echo "$as_me: failed program was:" >&5
41630sed 's/^/| /' conftest.$ac_ext >&5
41631
41632echo "$as_me:$LINENO: result: yes" >&5
41633echo "${ECHO_T}yes" >&6
41634 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
41635fi
ac1cb8d3 41636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41637 ac_ext=c
41638ac_cpp='$CPP $CPPFLAGS'
41639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41641ac_compiler_gnu=$ac_cv_c_compiler_gnu
41642
a848cd7e
SC
41643 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
41644 if test "$wxUSE_OLE" = "yes" ; then
41645 cat >>confdefs.h <<\_ACEOF
41646#define wxUSE_OLE 1
41647_ACEOF
41648
0b78747f 41649 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
41650 fi
41651 fi
41652
41653 if test "$wxUSE_DATAOBJ" = "yes" ; then
41654 cat >>confdefs.h <<\_ACEOF
41655#define wxUSE_DATAOBJ 1
41656_ACEOF
41657
41658 fi
41659 else
41660 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
41661echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
41662
41663 wxUSE_CLIPBOARD=no
41664 wxUSE_DRAG_AND_DROP=no
41665 wxUSE_DATAOBJ=no
41666 wxUSE_OLE=no
41667 fi
41668
41669 if test "$wxUSE_METAFILE" = "yes"; then
41670 cat >>confdefs.h <<\_ACEOF
41671#define wxUSE_METAFILE 1
41672_ACEOF
41673
41674
41675 cat >>confdefs.h <<\_ACEOF
41676#define wxUSE_ENH_METAFILE 1
41677_ACEOF
41678
41679 fi
41680fi
41681
41682if test "$wxUSE_IPC" = "yes"; then
0b78747f 41683 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
41684 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
41685echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 41686 wxUSE_IPC=no
a848cd7e
SC
41687 fi
41688
0b78747f
MW
41689 if test "$wxUSE_IPC" = "yes"; then
41690 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41691#define wxUSE_IPC 1
41692_ACEOF
41693
0b78747f
MW
41694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
41695 fi
a848cd7e
SC
41696fi
41697
eb730a0c 41698if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
41699 if test "$wxUSE_MGL" = 1; then
41700 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
41701echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
41702 wxUSE_DATAOBJ=no
41703 else
41704 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
41705#define wxUSE_DATAOBJ 1
41706_ACEOF
41707
2113bc77 41708 fi
eb730a0c
JS
41709else
41710 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
41711echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
41712 wxUSE_CLIPBOARD=no
41713 wxUSE_DRAG_AND_DROP=no
41714fi
41715
a848cd7e
SC
41716if test "$wxUSE_CLIPBOARD" = "yes"; then
41717 if test "$wxUSE_MGL" = 1; then
41718 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
41719echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
41720 wxUSE_CLIPBOARD=no
41721 fi
41722
41723 if test "$wxUSE_CLIPBOARD" = "yes"; then
41724 cat >>confdefs.h <<\_ACEOF
41725#define wxUSE_CLIPBOARD 1
41726_ACEOF
41727
a848cd7e
SC
41728 fi
41729fi
41730
41731if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
41732 if test "$wxUSE_GTK" = 1; then
41733 if test "$WXGTK12" != 1; then
41734 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
41735echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
41736 wxUSE_DRAG_AND_DROP=no
41737 fi
41738 fi
41739
41740 if test "$wxUSE_MOTIF" = 1; then
41741 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
41742echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
41743 wxUSE_DRAG_AND_DROP=no
41744 fi
41745
41746 if test "$wxUSE_X11" = 1; then
41747 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
41748echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
41749 wxUSE_DRAG_AND_DROP=no
41750 fi
41751
41752 if test "$wxUSE_MGL" = 1; then
41753 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
41754echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
41755 wxUSE_DRAG_AND_DROP=no
41756 fi
41757
41758 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
41759 cat >>confdefs.h <<\_ACEOF
41760#define wxUSE_DRAG_AND_DROP 1
41761_ACEOF
41762
41763 fi
41764
41765fi
41766
41767if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41769fi
41770
41771if test "$wxUSE_SPLINES" = "yes" ; then
41772 cat >>confdefs.h <<\_ACEOF
41773#define wxUSE_SPLINES 1
41774_ACEOF
41775
41776fi
41777
fbe2ca43
SN
41778if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41779 cat >>confdefs.h <<\_ACEOF
41780#define wxUSE_MOUSEWHEEL 1
41781_ACEOF
41782
41783fi
41784
a848cd7e
SC
41785
41786USES_CONTROLS=0
41787if test "$wxUSE_CONTROLS" = "yes"; then
41788 USES_CONTROLS=1
41789fi
41790
41791if test "$wxUSE_ACCEL" = "yes"; then
41792 cat >>confdefs.h <<\_ACEOF
41793#define wxUSE_ACCEL 1
41794_ACEOF
41795
41796 USES_CONTROLS=1
41797fi
41798
41799if test "$wxUSE_BUTTON" = "yes"; then
41800 cat >>confdefs.h <<\_ACEOF
41801#define wxUSE_BUTTON 1
41802_ACEOF
41803
41804 USES_CONTROLS=1
41805fi
41806
41807if test "$wxUSE_BMPBUTTON" = "yes"; then
41808 cat >>confdefs.h <<\_ACEOF
41809#define wxUSE_BMPBUTTON 1
41810_ACEOF
41811
41812 USES_CONTROLS=1
41813fi
41814
41815if test "$wxUSE_CALCTRL" = "yes"; then
41816 cat >>confdefs.h <<\_ACEOF
41817#define wxUSE_CALENDARCTRL 1
41818_ACEOF
41819
41820 USES_CONTROLS=1
41821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41822fi
41823
41824if test "$wxUSE_CARET" = "yes"; then
41825 cat >>confdefs.h <<\_ACEOF
41826#define wxUSE_CARET 1
41827_ACEOF
41828
41829 USES_CONTROLS=1
41830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41831fi
41832
41833if test "$wxUSE_COMBOBOX" = "yes"; then
41834 cat >>confdefs.h <<\_ACEOF
41835#define wxUSE_COMBOBOX 1
41836_ACEOF
41837
41838 USES_CONTROLS=1
41839fi
41840
41841if test "$wxUSE_CHOICE" = "yes"; then
41842 cat >>confdefs.h <<\_ACEOF
41843#define wxUSE_CHOICE 1
41844_ACEOF
41845
41846 USES_CONTROLS=1
41847fi
41848
92bbdbcd
WS
41849if test "$wxUSE_CHOICEBOOK" = "yes"; then
41850 cat >>confdefs.h <<\_ACEOF
41851#define wxUSE_CHOICEBOOK 1
41852_ACEOF
41853
41854 USES_CONTROLS=1
41855fi
41856
a848cd7e
SC
41857if test "$wxUSE_CHECKBOX" = "yes"; then
41858 cat >>confdefs.h <<\_ACEOF
41859#define wxUSE_CHECKBOX 1
41860_ACEOF
41861
41862 USES_CONTROLS=1
41863fi
41864
41865if test "$wxUSE_CHECKLST" = "yes"; then
41866 cat >>confdefs.h <<\_ACEOF
41867#define wxUSE_CHECKLISTBOX 1
41868_ACEOF
41869
41870 USES_CONTROLS=1
41871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41872fi
41873
da98e9be
VZ
41874if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41875 cat >>confdefs.h <<\_ACEOF
41876#define wxUSE_DATEPICKCTRL 1
41877_ACEOF
41878
41879 USES_CONTROLS=1
41880fi
41881
a848cd7e
SC
41882if test "$wxUSE_DISPLAY" = "yes"; then
41883 cat >>confdefs.h <<\_ACEOF
41884#define wxUSE_DISPLAY 1
41885_ACEOF
41886
0b78747f 41887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41888fi
41889
41890if test "$wxUSE_GAUGE" = "yes"; then
41891 cat >>confdefs.h <<\_ACEOF
41892#define wxUSE_GAUGE 1
41893_ACEOF
41894
41895 USES_CONTROLS=1
41896fi
41897
41898if test "$wxUSE_GRID" = "yes"; then
41899 cat >>confdefs.h <<\_ACEOF
41900#define wxUSE_GRID 1
41901_ACEOF
41902
41903 USES_CONTROLS=1
41904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41905fi
41906
41907if test "$wxUSE_IMAGLIST" = "yes"; then
41908 cat >>confdefs.h <<\_ACEOF
41909#define wxUSE_IMAGLIST 1
41910_ACEOF
41911
41912fi
41913
41914if test "$wxUSE_LISTBOOK" = "yes"; then
41915 cat >>confdefs.h <<\_ACEOF
41916#define wxUSE_LISTBOOK 1
41917_ACEOF
41918
41919 USES_CONTROLS=1
41920fi
41921
41922if test "$wxUSE_LISTBOX" = "yes"; then
41923 cat >>confdefs.h <<\_ACEOF
41924#define wxUSE_LISTBOX 1
41925_ACEOF
41926
41927 USES_CONTROLS=1
0b78747f 41928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
41929fi
41930
41931if test "$wxUSE_LISTCTRL" = "yes"; then
41932 if test "$wxUSE_IMAGLIST" = "yes"; then
41933 cat >>confdefs.h <<\_ACEOF
41934#define wxUSE_LISTCTRL 1
41935_ACEOF
41936
41937 USES_CONTROLS=1
41938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41939 else
41940 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41941echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41942 fi
41943fi
41944
41945if test "$wxUSE_NOTEBOOK" = "yes"; then
41946 cat >>confdefs.h <<\_ACEOF
41947#define wxUSE_NOTEBOOK 1
41948_ACEOF
41949
41950 USES_CONTROLS=1
41951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41952fi
41953
41954
41955if test "$wxUSE_RADIOBOX" = "yes"; then
41956 cat >>confdefs.h <<\_ACEOF
41957#define wxUSE_RADIOBOX 1
41958_ACEOF
41959
41960 USES_CONTROLS=1
41961fi
41962
41963if test "$wxUSE_RADIOBTN" = "yes"; then
41964 cat >>confdefs.h <<\_ACEOF
41965#define wxUSE_RADIOBTN 1
41966_ACEOF
41967
41968 USES_CONTROLS=1
41969fi
41970
41971if test "$wxUSE_SASH" = "yes"; then
41972 cat >>confdefs.h <<\_ACEOF
41973#define wxUSE_SASH 1
41974_ACEOF
41975
41976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
41977fi
41978
41979if test "$wxUSE_SCROLLBAR" = "yes"; then
41980 cat >>confdefs.h <<\_ACEOF
41981#define wxUSE_SCROLLBAR 1
41982_ACEOF
41983
41984 USES_CONTROLS=1
41985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
41986fi
41987
41988if test "$wxUSE_SLIDER" = "yes"; then
41989 cat >>confdefs.h <<\_ACEOF
41990#define wxUSE_SLIDER 1
41991_ACEOF
41992
41993 USES_CONTROLS=1
41994fi
41995
41996if test "$wxUSE_SPINBTN" = "yes"; then
41997 cat >>confdefs.h <<\_ACEOF
41998#define wxUSE_SPINBTN 1
41999_ACEOF
42000
42001 USES_CONTROLS=1
42002fi
42003
42004if test "$wxUSE_SPINCTRL" = "yes"; then
42005 cat >>confdefs.h <<\_ACEOF
42006#define wxUSE_SPINCTRL 1
42007_ACEOF
42008
42009 USES_CONTROLS=1
42010fi
42011
42012if test "$wxUSE_SPLITTER" = "yes"; then
42013 cat >>confdefs.h <<\_ACEOF
42014#define wxUSE_SPLITTER 1
42015_ACEOF
42016
42017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
42018fi
42019
42020if test "$wxUSE_STATBMP" = "yes"; then
42021 cat >>confdefs.h <<\_ACEOF
42022#define wxUSE_STATBMP 1
42023_ACEOF
42024
42025 USES_CONTROLS=1
42026fi
42027
42028if test "$wxUSE_STATBOX" = "yes"; then
42029 cat >>confdefs.h <<\_ACEOF
42030#define wxUSE_STATBOX 1
42031_ACEOF
42032
42033 USES_CONTROLS=1
42034fi
42035
42036if test "$wxUSE_STATTEXT" = "yes"; then
42037 cat >>confdefs.h <<\_ACEOF
42038#define wxUSE_STATTEXT 1
42039_ACEOF
42040
42041 USES_CONTROLS=1
42042fi
42043
42044if test "$wxUSE_STATLINE" = "yes"; then
42045 cat >>confdefs.h <<\_ACEOF
42046#define wxUSE_STATLINE 1
42047_ACEOF
42048
42049 USES_CONTROLS=1
42050fi
42051
42052if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
42053 cat >>confdefs.h <<\_ACEOF
42054#define wxUSE_NATIVE_STATUSBAR 1
42055_ACEOF
42056
a848cd7e
SC
42057 cat >>confdefs.h <<\_ACEOF
42058#define wxUSE_STATUSBAR 1
42059_ACEOF
42060
42061 USES_CONTROLS=1
42062
42063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
42064fi
42065
42066if test "$wxUSE_TABDIALOG" = "yes"; then
42067 cat >>confdefs.h <<\_ACEOF
42068#define wxUSE_TAB_DIALOG 1
42069_ACEOF
42070
a848cd7e
SC
42071fi
42072
42073if test "$wxUSE_TEXTCTRL" = "yes"; then
42074 cat >>confdefs.h <<\_ACEOF
42075#define wxUSE_TEXTCTRL 1
42076_ACEOF
42077
42078 USES_CONTROLS=1
42079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
42080fi
42081
42082if test "$wxUSE_TOGGLEBTN" = "yes"; then
42083 if test "$wxUSE_COCOA" = 1 ; then
42084 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
42085echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
42086 wxUSE_TOGGLEBTN=no
42087 fi
42088 if test "$wxUSE_UNIVERSAL" = "yes"; then
42089 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
42090echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
42091 wxUSE_TOGGLEBTN=no
42092 fi
42093
42094 if test "$wxUSE_TOGGLEBTN" = "yes"; then
42095 cat >>confdefs.h <<\_ACEOF
42096#define wxUSE_TOGGLEBTN 1
42097_ACEOF
42098
42099 USES_CONTROLS=1
42100 fi
42101fi
42102
42103if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
42104 cat >>confdefs.h <<\_ACEOF
42105#define wxUSE_TOOLBAR_SIMPLE 1
42106_ACEOF
42107
42108 wxUSE_TOOLBAR="yes"
42109 USES_CONTROLS=1
42110fi
42111
42112if test "$wxUSE_TOOLBAR" = "yes"; then
42113 cat >>confdefs.h <<\_ACEOF
42114#define wxUSE_TOOLBAR 1
42115_ACEOF
42116
42117 USES_CONTROLS=1
42118
42119 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
42120 wxUSE_TOOLBAR_NATIVE="yes"
42121 fi
42122
42123 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
42124 cat >>confdefs.h <<\_ACEOF
42125#define wxUSE_TOOLBAR_NATIVE 1
42126_ACEOF
42127
42128 USES_CONTROLS=1
42129 fi
42130
42131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
42132fi
42133
42134if test "$wxUSE_TOOLTIPS" = "yes"; then
42135 if test "$wxUSE_MOTIF" = 1; then
42136 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
42137echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
42138 else
42139 if test "$wxUSE_UNIVERSAL" = "yes"; then
42140 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
42141echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
42142 else
42143 cat >>confdefs.h <<\_ACEOF
42144#define wxUSE_TOOLTIPS 1
42145_ACEOF
42146
42147 fi
42148 fi
42149fi
42150
0093c2fc
VZ
42151if test "$wxUSE_TREEBOOK" = "yes"; then
42152 cat >>confdefs.h <<\_ACEOF
42153#define wxUSE_TREEBOOK 1
42154_ACEOF
42155
42156 USES_CONTROLS=1
42157fi
42158
a848cd7e
SC
42159if test "$wxUSE_TREECTRL" = "yes"; then
42160 if test "$wxUSE_IMAGLIST" = "yes"; then
42161 cat >>confdefs.h <<\_ACEOF
42162#define wxUSE_TREECTRL 1
42163_ACEOF
42164
42165 USES_CONTROLS=1
42166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
42167 else
42168 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
42169echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
42170 fi
42171fi
42172
42173if test "$wxUSE_POPUPWIN" = "yes"; then
42174 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42175 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
42176echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
42177 else
42178 if test "$wxUSE_PM" = 1; then
42179 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
42180echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
42181 else
42182 cat >>confdefs.h <<\_ACEOF
42183#define wxUSE_POPUPWIN 1
42184_ACEOF
42185
0b78747f 42186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
42187
42188 USES_CONTROLS=1
42189 fi
42190 fi
42191fi
42192
0dcd06dd 42193if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
42194 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42195 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
42196echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
42197 else
42198 cat >>confdefs.h <<\_ACEOF
42199#define wxUSE_DIALUP_MANAGER 1
42200_ACEOF
42201
42202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
42203 fi
42204fi
42205
a848cd7e
SC
42206if test "$wxUSE_TIPWINDOW" = "yes"; then
42207 if test "$wxUSE_PM" = 1; then
42208 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
42209echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
42210 else
42211 cat >>confdefs.h <<\_ACEOF
42212#define wxUSE_TIPWINDOW 1
42213_ACEOF
42214
42215 fi
42216fi
42217
42218if test "$USES_CONTROLS" = 1; then
42219 cat >>confdefs.h <<\_ACEOF
42220#define wxUSE_CONTROLS 1
42221_ACEOF
42222
42223fi
42224
42225
42226if test "$wxUSE_ACCESSIBILITY" = "yes"; then
42227 cat >>confdefs.h <<\_ACEOF
42228#define wxUSE_ACCESSIBILITY 1
42229_ACEOF
42230
42231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
42232fi
42233
38b4a946
VZ
42234if test "$wxUSE_DC_CACHEING" = "yes"; then
42235 cat >>confdefs.h <<\_ACEOF
42236#define wxUSE_DC_CACHEING 1
42237_ACEOF
42238
42239fi
42240
a848cd7e
SC
42241if test "$wxUSE_DRAGIMAGE" = "yes"; then
42242 cat >>confdefs.h <<\_ACEOF
42243#define wxUSE_DRAGIMAGE 1
42244_ACEOF
42245
42246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
42247fi
42248
42249if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
42250 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42251 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
42252echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
42253 else
42254 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42255#define wxUSE_EXCEPTIONS 1
42256_ACEOF
42257
07bea8f0
VS
42258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
42259 fi
a848cd7e
SC
42260fi
42261
42262USE_HTML=0
42263if test "$wxUSE_HTML" = "yes"; then
42264 cat >>confdefs.h <<\_ACEOF
42265#define wxUSE_HTML 1
42266_ACEOF
42267
42268 USE_HTML=1
42269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
42270 if test "$wxUSE_MAC" = 1; then
42271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
42272 fi
a848cd7e 42273fi
646b6ec1 42274if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 42275 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
42276 old_CPPFLAGS="$CPPFLAGS"
42277 CPPFLAGS="$CPPFLAGS -x objective-c++"
42278 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
42279echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
42280if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
42281 echo $ECHO_N "(cached) $ECHO_C" >&6
42282else
42283 cat >conftest.$ac_ext <<_ACEOF
42284/* confdefs.h. */
42285_ACEOF
42286cat confdefs.h >>conftest.$ac_ext
42287cat >>conftest.$ac_ext <<_ACEOF
42288/* end confdefs.h. */
42289#include <Carbon/Carbon.h>
42290
42291#include <WebKit/HIWebView.h>
42292_ACEOF
42293rm -f conftest.$ac_objext
42294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42295 (eval $ac_compile) 2>conftest.er1
42296 ac_status=$?
42297 grep -v '^ *+' conftest.er1 >conftest.err
42298 rm -f conftest.er1
42299 cat conftest.err >&5
42300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42301 (exit $ac_status); } &&
0093c2fc 42302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
42303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42304 (eval $ac_try) 2>&5
42305 ac_status=$?
42306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42307 (exit $ac_status); }; } &&
42308 { ac_try='test -s conftest.$ac_objext'
42309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42310 (eval $ac_try) 2>&5
42311 ac_status=$?
42312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42313 (exit $ac_status); }; }; then
42314 ac_cv_header_WebKit_HIWebView_h=yes
42315else
42316 echo "$as_me: failed program was:" >&5
42317sed 's/^/| /' conftest.$ac_ext >&5
42318
42319ac_cv_header_WebKit_HIWebView_h=no
42320fi
42321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42322fi
42323echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
42324echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
42325if test $ac_cv_header_WebKit_HIWebView_h = yes; then
42326
42327 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
42328#define wxUSE_WEBKIT 1
42329_ACEOF
42330
07bea8f0
VS
42331 WEBKIT_LINK="-framework WebKit"
42332
42333else
42334
42335 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
42336echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
42337 wxUSE_WEBKIT=no
42338
646b6ec1
VS
42339fi
42340
07bea8f0
VS
42341
42342 CPPFLAGS="$old_CPPFLAGS"
42343 elif test "$wxUSE_COCOA" = 1; then
42344 cat >>confdefs.h <<\_ACEOF
42345#define wxUSE_WEBKIT 1
42346_ACEOF
42347
42348 else
42349 wxUSE_WEBKIT=no
42350 fi
42351fi
42352
9a8f0513
VS
42353USE_XRC=0
42354if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
42355 if test "$wxUSE_XML" != "yes"; then
42356 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
42357echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
42358 wxUSE_XRC=no
42359 else
42360 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
42361#define wxUSE_XRC 1
42362_ACEOF
42363
d2ebf0b7
VS
42364 USE_XRC=1
42365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
42366 fi
9a8f0513 42367fi
07bea8f0 42368
a848cd7e
SC
42369if test "$wxUSE_MENUS" = "yes"; then
42370 cat >>confdefs.h <<\_ACEOF
42371#define wxUSE_MENUS 1
42372_ACEOF
42373
42374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
42375fi
42376
42377if test "$wxUSE_METAFILE" = "yes"; then
42378 cat >>confdefs.h <<\_ACEOF
42379#define wxUSE_METAFILE 1
42380_ACEOF
42381
42382fi
42383
42384if test "$wxUSE_MIMETYPE" = "yes"; then
42385 cat >>confdefs.h <<\_ACEOF
42386#define wxUSE_MIMETYPE 1
42387_ACEOF
42388
42389fi
42390
42391if test "$wxUSE_MINIFRAME" = "yes"; then
42392 cat >>confdefs.h <<\_ACEOF
42393#define wxUSE_MINIFRAME 1
42394_ACEOF
42395
42396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
42397fi
42398
42399if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
42400 cat >>confdefs.h <<\_ACEOF
42401#define wxUSE_SYSTEM_OPTIONS 1
42402_ACEOF
42403
42404 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 42405 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
42406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
42407 fi
42408fi
42409
42410
42411if test "$wxUSE_VALIDATORS" = "yes"; then
42412 cat >>confdefs.h <<\_ACEOF
42413#define wxUSE_VALIDATORS 1
42414_ACEOF
42415
42416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
42417fi
42418
42419if test "$wxUSE_PALETTE" = "yes" ; then
42420 cat >>confdefs.h <<\_ACEOF
42421#define wxUSE_PALETTE 1
42422_ACEOF
42423
42424fi
42425
42426if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
42427 LIBS=" -lunicows $LIBS"
42428fi
42429
42430
42431if test "$wxUSE_IMAGE" = "yes" ; then
42432 cat >>confdefs.h <<\_ACEOF
42433#define wxUSE_IMAGE 1
42434_ACEOF
42435
42436
42437 if test "$wxUSE_GIF" = "yes" ; then
42438 cat >>confdefs.h <<\_ACEOF
42439#define wxUSE_GIF 1
42440_ACEOF
42441
42442 fi
42443
42444 if test "$wxUSE_PCX" = "yes" ; then
42445 cat >>confdefs.h <<\_ACEOF
42446#define wxUSE_PCX 1
42447_ACEOF
42448
42449 fi
42450
42451 if test "$wxUSE_IFF" = "yes" ; then
42452 cat >>confdefs.h <<\_ACEOF
42453#define wxUSE_IFF 1
42454_ACEOF
42455
42456 fi
42457
42458 if test "$wxUSE_PNM" = "yes" ; then
42459 cat >>confdefs.h <<\_ACEOF
42460#define wxUSE_PNM 1
42461_ACEOF
42462
42463 fi
42464
42465 if test "$wxUSE_XPM" = "yes" ; then
42466 cat >>confdefs.h <<\_ACEOF
42467#define wxUSE_XPM 1
42468_ACEOF
42469
42470 fi
42471
42472 if test "$wxUSE_ICO_CUR" = "yes" ; then
42473 cat >>confdefs.h <<\_ACEOF
42474#define wxUSE_ICO_CUR 1
42475_ACEOF
42476
42477 fi
42478fi
42479
42480
42481if test "$wxUSE_CHOICEDLG" = "yes"; then
42482 cat >>confdefs.h <<\_ACEOF
42483#define wxUSE_CHOICEDLG 1
42484_ACEOF
42485
42486fi
42487
42488if test "$wxUSE_COLOURDLG" = "yes"; then
42489 cat >>confdefs.h <<\_ACEOF
42490#define wxUSE_COLOURDLG 1
42491_ACEOF
42492
42493fi
42494
42495if test "$wxUSE_FILEDLG" = "yes"; then
42496 cat >>confdefs.h <<\_ACEOF
42497#define wxUSE_FILEDLG 1
42498_ACEOF
42499
42500fi
42501
42502if test "$wxUSE_FINDREPLDLG" = "yes"; then
42503 cat >>confdefs.h <<\_ACEOF
42504#define wxUSE_FINDREPLDLG 1
42505_ACEOF
42506
42507fi
42508
42509if test "$wxUSE_FONTDLG" = "yes"; then
42510 cat >>confdefs.h <<\_ACEOF
42511#define wxUSE_FONTDLG 1
42512_ACEOF
42513
42514fi
42515
42516if test "$wxUSE_DIRDLG" = "yes"; then
42517 if test "$wxUSE_TREECTRL" != "yes"; then
42518 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
42519echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
42520 else
42521 cat >>confdefs.h <<\_ACEOF
42522#define wxUSE_DIRDLG 1
42523_ACEOF
42524
42525 fi
42526fi
42527
42528if test "$wxUSE_MSGDLG" = "yes"; then
42529 cat >>confdefs.h <<\_ACEOF
42530#define wxUSE_MSGDLG 1
42531_ACEOF
42532
42533fi
42534
42535if test "$wxUSE_NUMBERDLG" = "yes"; then
42536 cat >>confdefs.h <<\_ACEOF
42537#define wxUSE_NUMBERDLG 1
42538_ACEOF
42539
42540fi
42541
42542if test "$wxUSE_PROGRESSDLG" = "yes"; then
42543 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42544 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
42545echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
42546 else
42547 cat >>confdefs.h <<\_ACEOF
42548#define wxUSE_PROGRESSDLG 1
42549_ACEOF
42550
42551 fi
42552fi
42553
42554if test "$wxUSE_SPLASH" = "yes"; then
42555 cat >>confdefs.h <<\_ACEOF
42556#define wxUSE_SPLASH 1
42557_ACEOF
42558
2057db16 42559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
42560fi
42561
42562if test "$wxUSE_STARTUP_TIPS" = "yes"; then
42563 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42564 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
42565echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
42566 else
42567 cat >>confdefs.h <<\_ACEOF
42568#define wxUSE_STARTUP_TIPS 1
42569_ACEOF
42570
42571 fi
42572fi
42573
42574if test "$wxUSE_TEXTDLG" = "yes"; then
42575 cat >>confdefs.h <<\_ACEOF
42576#define wxUSE_TEXTDLG 1
42577_ACEOF
42578
42579fi
42580
42581if test "$wxUSE_WIZARDDLG" = "yes"; then
42582 cat >>confdefs.h <<\_ACEOF
42583#define wxUSE_WIZARDDLG 1
42584_ACEOF
42585
42586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
42587fi
42588
42589
ce756cb0 42590if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
42591 if test "$wxUSE_GTK" = 1; then
42592 wxUSE_GSTREAMER="yes"
42593
ce756cb0 42594
dae87f93 42595 succeeded=no
ce756cb0 42596
dae87f93
RN
42597 if test -z "$PKG_CONFIG"; then
42598 # Extract the first word of "pkg-config", so it can be a program name with args.
42599set dummy pkg-config; ac_word=$2
42600echo "$as_me:$LINENO: checking for $ac_word" >&5
42601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42602if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42603 echo $ECHO_N "(cached) $ECHO_C" >&6
42604else
42605 case $PKG_CONFIG in
42606 [\\/]* | ?:[\\/]*)
42607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42608 ;;
42609 *)
42610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42611for as_dir in $PATH
42612do
42613 IFS=$as_save_IFS
42614 test -z "$as_dir" && as_dir=.
42615 for ac_exec_ext in '' $ac_executable_extensions; do
42616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42619 break 2
42620 fi
42621done
42622done
42623
42624 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
42625 ;;
42626esac
42627fi
42628PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42629
42630if test -n "$PKG_CONFIG"; then
42631 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42632echo "${ECHO_T}$PKG_CONFIG" >&6
42633else
42634 echo "$as_me:$LINENO: result: no" >&5
42635echo "${ECHO_T}no" >&6
42636fi
42637
42638 fi
42639
42640 if test "$PKG_CONFIG" = "no" ; then
42641 echo "*** The pkg-config script could not be found. Make sure it is"
42642 echo "*** in your path, or set the PKG_CONFIG environment variable"
42643 echo "*** to the full path to pkg-config."
42644 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
42645 else
42646 PKG_CONFIG_MIN_VERSION=0.9.0
42647 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
42648 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
42649echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
42650
42651 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
42652 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42653echo "${ECHO_T}yes" >&6
dae87f93 42654 succeeded=yes
ce756cb0 42655
dae87f93
RN
42656 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
42657echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
42658 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
42659 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
42660echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
42661
42662 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
42663echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
42664 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
42665 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
42666echo "${ECHO_T}$GSTREAMER_LIBS" >&6
42667 else
42668 GSTREAMER_CFLAGS=""
42669 GSTREAMER_LIBS=""
42670 ## If we have a custom action on failure, don't print errors, but
42671 ## do set a variable so people can do so.
42672 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 42673
dae87f93
RN
42674 fi
42675
42676
42677
42678 else
42679 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
42680 echo "*** See http://www.freedesktop.org/software/pkgconfig"
42681 fi
42682 fi
42683
42684 if test $succeeded = yes; then
42685
42686 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
42687 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 42688
ce756cb0 42689 else
dae87f93
RN
42690
42691 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
42692echo "$as_me: WARNING: GStreamer installation not found" >&2;}
42693 wxUSE_GSTREAMER="no"
42694
42695 fi
42696
42697
42698
42699
42700
42701 if test "x$GST_INSPECT" == "x"; then
42702 # Extract the first word of "gst-inspect", so it can be a program name with args.
42703set dummy gst-inspect; ac_word=$2
42704echo "$as_me:$LINENO: checking for $ac_word" >&5
42705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42706if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
42707 echo $ECHO_N "(cached) $ECHO_C" >&6
42708else
42709 if test -n "$GST_INSPECT"; then
42710 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
42711else
42712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42713for as_dir in $PATH
42714do
42715 IFS=$as_save_IFS
42716 test -z "$as_dir" && as_dir=.
42717 for ac_exec_ext in '' $ac_executable_extensions; do
42718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42719 ac_cv_prog_GST_INSPECT="gst-inspect"
42720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42721 break 2
ce756cb0 42722 fi
dae87f93
RN
42723done
42724done
42725
42726fi
42727fi
42728GST_INSPECT=$ac_cv_prog_GST_INSPECT
42729if test -n "$GST_INSPECT"; then
42730 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
42731echo "${ECHO_T}$GST_INSPECT" >&6
42732else
42733 echo "$as_me:$LINENO: result: no" >&5
42734echo "${ECHO_T}no" >&6
42735fi
42736
42737 fi
42738
42739 if test "x$GST_INSPECT" != "x"; then
42740 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
42741echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
42742 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
42743 echo "$as_me:$LINENO: result: found." >&5
42744echo "${ECHO_T}found." >&6
ce756cb0 42745
ce756cb0 42746 else
dae87f93
RN
42747 echo "$as_me:$LINENO: result: not found." >&5
42748echo "${ECHO_T}not found." >&6
42749
42750 wxUSE_GSTREAMER="no"
42751 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
42752echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
42753
42754 fi
42755 fi
42756
42757
42758 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
42759echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
42760if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
42761 echo $ECHO_N "(cached) $ECHO_C" >&6
42762else
42763 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
42764/* confdefs.h. */
42765_ACEOF
42766cat confdefs.h >>conftest.$ac_ext
42767cat >>conftest.$ac_ext <<_ACEOF
42768/* end confdefs.h. */
dae87f93 42769#include <gst/gst.h>
ce756cb0 42770
dae87f93 42771#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
42772_ACEOF
42773rm -f conftest.$ac_objext
42774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42775 (eval $ac_compile) 2>conftest.er1
42776 ac_status=$?
42777 grep -v '^ *+' conftest.er1 >conftest.err
42778 rm -f conftest.er1
42779 cat conftest.err >&5
42780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42781 (exit $ac_status); } &&
0093c2fc 42782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
42783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42784 (eval $ac_try) 2>&5
42785 ac_status=$?
42786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42787 (exit $ac_status); }; } &&
42788 { ac_try='test -s conftest.$ac_objext'
42789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42790 (eval $ac_try) 2>&5
42791 ac_status=$?
42792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42793 (exit $ac_status); }; }; then
dae87f93 42794 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
42795else
42796 echo "$as_me: failed program was:" >&5
42797sed 's/^/| /' conftest.$ac_ext >&5
42798
dae87f93 42799ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
42800fi
42801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
42802fi
42803echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42804echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42805if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42806 :
42807else
ce756cb0 42808
dae87f93
RN
42809 wxUSE_GSTREAMER="no"
42810 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42811echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42812
dae87f93 42813fi
ce756cb0 42814
dae87f93
RN
42815
42816
42817 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42818echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42819
0ad5d837
VZ
42820 ac_find_libraries=
42821 for ac_dir in $SEARCH_LIB;
ce756cb0 42822 do
3eca31dc 42823 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42824 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42825 ac_find_libraries=$ac_dir
42826 break 2
42827 fi
42828 done
42829 done
42830
ce756cb0 42831
dae87f93
RN
42832 if test "$ac_find_libraries" = "" ; then
42833 echo "$as_me:$LINENO: result: no" >&5
42834echo "${ECHO_T}no" >&6
42835 wxUSE_GSTREAMER="no"
42836 else
42837 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42838echo "${ECHO_T}yes" >&6
dae87f93 42839 fi
ce756cb0 42840
dae87f93
RN
42841 if test "$wxUSE_GSTREAMER" = "yes"; then
42842 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42843#define wxUSE_GSTREAMER 1
42844_ACEOF
42845
dae87f93
RN
42846 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42847echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42848 fi
42849 fi
42850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42851 cat >>confdefs.h <<\_ACEOF
42852#define wxUSE_MEDIACTRL 1
42853_ACEOF
42854
42855fi
42856
42857
a848cd7e
SC
42858if test "$cross_compiling" = "yes"; then
42859 OSINFO="\"$host\""
42860else
42861 OSINFO=`uname -s -r -m`
42862 OSINFO="\"$OSINFO\""
42863fi
42864
42865cat >>confdefs.h <<_ACEOF
42866#define WXWIN_OS_DESCRIPTION $OSINFO
42867_ACEOF
42868
42869
42870
42871if test "x$prefix" != "xNONE"; then
42872 wxPREFIX=$prefix
42873else
42874 wxPREFIX=$ac_default_prefix
42875fi
42876
42877cat >>confdefs.h <<_ACEOF
42878#define wxINSTALL_PREFIX "$wxPREFIX"
42879_ACEOF
42880
42881
a848cd7e
SC
42882
42883
42884CORE_BASE_LIBS="net base"
42885CORE_GUI_LIBS="adv core"
42886
42887if test "$wxUSE_XML" = "yes" ; then
42888 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42889fi
42890if test "$wxUSE_ODBC" != "no" ; then
42891 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42892 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42893fi
42894if test "$wxUSE_HTML" = "yes" ; then
42895 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42896fi
61639efb
VZ
42897if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42898 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42899fi
9a8f0513
VS
42900if test "$wxUSE_XRC" = "yes" ; then
42901 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42902fi
a848cd7e
SC
42903
42904if test "$wxUSE_GUI" != "yes"; then
42905 CORE_GUI_LIBS=""
42906fi
42907
42908
42909
42910
42911
42912
42913
42914
42915if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 42916 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
42917 if test "$USE_DARWIN" = 1; then
42918 LDFLAGS="$LDFLAGS -framework QuickTime"
42919 else
42920 LDFLAGS="$LDFLAGS -lQuickTimeLib"
42921 fi
07bea8f0 42922 fi
5dcf30a0 42923 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
42924 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42925 else
42926 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 42927 fi
a848cd7e
SC
42928fi
42929if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 42930 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
42931 if test "$wxUSE_MEDIACTRL" = "yes"; then
42932 LDFLAGS="$LDFLAGS -framework QuickTime"
42933 fi
a848cd7e 42934fi
19b27e78
MW
42935if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42936 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42937fi
a848cd7e
SC
42938
42939
42940LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42941
42942have_cos=0
42943have_floor=0
42944
42945for ac_func in cos
42946do
42947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42948echo "$as_me:$LINENO: checking for $ac_func" >&5
42949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42950if eval "test \"\${$as_ac_var+set}\" = set"; then
42951 echo $ECHO_N "(cached) $ECHO_C" >&6
42952else
42953 cat >conftest.$ac_ext <<_ACEOF
42954/* confdefs.h. */
42955_ACEOF
42956cat confdefs.h >>conftest.$ac_ext
42957cat >>conftest.$ac_ext <<_ACEOF
42958/* end confdefs.h. */
ac1cb8d3
VS
42959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42961#define $ac_func innocuous_$ac_func
42962
a848cd7e
SC
42963/* System header to define __stub macros and hopefully few prototypes,
42964 which can conflict with char $ac_func (); below.
42965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42966 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42967
a848cd7e
SC
42968#ifdef __STDC__
42969# include <limits.h>
42970#else
42971# include <assert.h>
42972#endif
ac1cb8d3
VS
42973
42974#undef $ac_func
42975
a848cd7e
SC
42976/* Override any gcc2 internal prototype to avoid an error. */
42977#ifdef __cplusplus
42978extern "C"
42979{
42980#endif
42981/* We use char because int might match the return type of a gcc2
42982 builtin and then its argument prototype would still apply. */
42983char $ac_func ();
42984/* The GNU C library defines this for functions which it implements
42985 to always fail with ENOSYS. Some functions are actually named
42986 something starting with __ and the normal name is an alias. */
42987#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42988choke me
42989#else
42990char (*f) () = $ac_func;
42991#endif
42992#ifdef __cplusplus
42993}
42994#endif
42995
42996int
42997main ()
42998{
42999return f != $ac_func;
43000 ;
43001 return 0;
43002}
43003_ACEOF
43004rm -f conftest.$ac_objext conftest$ac_exeext
43005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43006 (eval $ac_link) 2>conftest.er1
a848cd7e 43007 ac_status=$?
ac1cb8d3
VS
43008 grep -v '^ *+' conftest.er1 >conftest.err
43009 rm -f conftest.er1
43010 cat conftest.err >&5
a848cd7e
SC
43011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43012 (exit $ac_status); } &&
0093c2fc 43013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43015 (eval $ac_try) 2>&5
43016 ac_status=$?
43017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43018 (exit $ac_status); }; } &&
43019 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43021 (eval $ac_try) 2>&5
43022 ac_status=$?
43023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024 (exit $ac_status); }; }; then
43025 eval "$as_ac_var=yes"
43026else
43027 echo "$as_me: failed program was:" >&5
43028sed 's/^/| /' conftest.$ac_ext >&5
43029
43030eval "$as_ac_var=no"
43031fi
ac1cb8d3
VS
43032rm -f conftest.err conftest.$ac_objext \
43033 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43034fi
43035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43037if test `eval echo '${'$as_ac_var'}'` = yes; then
43038 cat >>confdefs.h <<_ACEOF
43039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43040_ACEOF
43041 have_cos=1
43042fi
43043done
43044
43045
43046for ac_func in floor
43047do
43048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43049echo "$as_me:$LINENO: checking for $ac_func" >&5
43050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43051if eval "test \"\${$as_ac_var+set}\" = set"; then
43052 echo $ECHO_N "(cached) $ECHO_C" >&6
43053else
43054 cat >conftest.$ac_ext <<_ACEOF
43055/* confdefs.h. */
43056_ACEOF
43057cat confdefs.h >>conftest.$ac_ext
43058cat >>conftest.$ac_ext <<_ACEOF
43059/* end confdefs.h. */
ac1cb8d3
VS
43060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43062#define $ac_func innocuous_$ac_func
43063
a848cd7e
SC
43064/* System header to define __stub macros and hopefully few prototypes,
43065 which can conflict with char $ac_func (); below.
43066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43067 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43068
a848cd7e
SC
43069#ifdef __STDC__
43070# include <limits.h>
43071#else
43072# include <assert.h>
43073#endif
ac1cb8d3
VS
43074
43075#undef $ac_func
43076
a848cd7e
SC
43077/* Override any gcc2 internal prototype to avoid an error. */
43078#ifdef __cplusplus
43079extern "C"
43080{
43081#endif
43082/* We use char because int might match the return type of a gcc2
43083 builtin and then its argument prototype would still apply. */
43084char $ac_func ();
43085/* The GNU C library defines this for functions which it implements
43086 to always fail with ENOSYS. Some functions are actually named
43087 something starting with __ and the normal name is an alias. */
43088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43089choke me
43090#else
43091char (*f) () = $ac_func;
43092#endif
43093#ifdef __cplusplus
43094}
43095#endif
43096
43097int
43098main ()
43099{
43100return f != $ac_func;
43101 ;
43102 return 0;
43103}
43104_ACEOF
43105rm -f conftest.$ac_objext conftest$ac_exeext
43106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43107 (eval $ac_link) 2>conftest.er1
a848cd7e 43108 ac_status=$?
ac1cb8d3
VS
43109 grep -v '^ *+' conftest.er1 >conftest.err
43110 rm -f conftest.er1
43111 cat conftest.err >&5
a848cd7e
SC
43112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43113 (exit $ac_status); } &&
0093c2fc 43114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43116 (eval $ac_try) 2>&5
43117 ac_status=$?
43118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43119 (exit $ac_status); }; } &&
43120 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43122 (eval $ac_try) 2>&5
43123 ac_status=$?
43124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125 (exit $ac_status); }; }; then
43126 eval "$as_ac_var=yes"
43127else
43128 echo "$as_me: failed program was:" >&5
43129sed 's/^/| /' conftest.$ac_ext >&5
43130
43131eval "$as_ac_var=no"
43132fi
ac1cb8d3
VS
43133rm -f conftest.err conftest.$ac_objext \
43134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43135fi
43136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43137echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43138if test `eval echo '${'$as_ac_var'}'` = yes; then
43139 cat >>confdefs.h <<_ACEOF
43140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43141_ACEOF
43142 have_floor=1
43143fi
43144done
43145
43146echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
43147echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
43148if test "$have_cos" = 1 -a "$have_floor" = 1; then
43149 echo "$as_me:$LINENO: result: yes" >&5
43150echo "${ECHO_T}yes" >&6
43151else
43152 echo "$as_me:$LINENO: result: no" >&5
43153echo "${ECHO_T}no" >&6
43154 LIBS="$LIBS -lm"
43155 # use different functions to avoid configure caching
43156 have_sin=0
43157 have_ceil=0
43158
43159for ac_func in sin
43160do
43161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43162echo "$as_me:$LINENO: checking for $ac_func" >&5
43163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43164if eval "test \"\${$as_ac_var+set}\" = set"; then
43165 echo $ECHO_N "(cached) $ECHO_C" >&6
43166else
43167 cat >conftest.$ac_ext <<_ACEOF
43168/* confdefs.h. */
43169_ACEOF
43170cat confdefs.h >>conftest.$ac_ext
43171cat >>conftest.$ac_ext <<_ACEOF
43172/* end confdefs.h. */
ac1cb8d3
VS
43173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43175#define $ac_func innocuous_$ac_func
43176
a848cd7e
SC
43177/* System header to define __stub macros and hopefully few prototypes,
43178 which can conflict with char $ac_func (); below.
43179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43180 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43181
a848cd7e
SC
43182#ifdef __STDC__
43183# include <limits.h>
43184#else
43185# include <assert.h>
43186#endif
ac1cb8d3
VS
43187
43188#undef $ac_func
43189
a848cd7e
SC
43190/* Override any gcc2 internal prototype to avoid an error. */
43191#ifdef __cplusplus
43192extern "C"
43193{
43194#endif
43195/* We use char because int might match the return type of a gcc2
43196 builtin and then its argument prototype would still apply. */
43197char $ac_func ();
43198/* The GNU C library defines this for functions which it implements
43199 to always fail with ENOSYS. Some functions are actually named
43200 something starting with __ and the normal name is an alias. */
43201#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43202choke me
43203#else
43204char (*f) () = $ac_func;
43205#endif
43206#ifdef __cplusplus
43207}
43208#endif
43209
43210int
43211main ()
43212{
43213return f != $ac_func;
43214 ;
43215 return 0;
43216}
43217_ACEOF
43218rm -f conftest.$ac_objext conftest$ac_exeext
43219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43220 (eval $ac_link) 2>conftest.er1
a848cd7e 43221 ac_status=$?
ac1cb8d3
VS
43222 grep -v '^ *+' conftest.er1 >conftest.err
43223 rm -f conftest.er1
43224 cat conftest.err >&5
a848cd7e
SC
43225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43226 (exit $ac_status); } &&
0093c2fc 43227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43229 (eval $ac_try) 2>&5
43230 ac_status=$?
43231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43232 (exit $ac_status); }; } &&
43233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43235 (eval $ac_try) 2>&5
43236 ac_status=$?
43237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238 (exit $ac_status); }; }; then
43239 eval "$as_ac_var=yes"
43240else
43241 echo "$as_me: failed program was:" >&5
43242sed 's/^/| /' conftest.$ac_ext >&5
43243
43244eval "$as_ac_var=no"
43245fi
ac1cb8d3
VS
43246rm -f conftest.err conftest.$ac_objext \
43247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43248fi
43249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43250echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43251if test `eval echo '${'$as_ac_var'}'` = yes; then
43252 cat >>confdefs.h <<_ACEOF
43253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43254_ACEOF
43255 have_sin=1
43256fi
43257done
43258
43259
43260for ac_func in ceil
43261do
43262as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43263echo "$as_me:$LINENO: checking for $ac_func" >&5
43264echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43265if eval "test \"\${$as_ac_var+set}\" = set"; then
43266 echo $ECHO_N "(cached) $ECHO_C" >&6
43267else
43268 cat >conftest.$ac_ext <<_ACEOF
43269/* confdefs.h. */
43270_ACEOF
43271cat confdefs.h >>conftest.$ac_ext
43272cat >>conftest.$ac_ext <<_ACEOF
43273/* end confdefs.h. */
ac1cb8d3
VS
43274/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43276#define $ac_func innocuous_$ac_func
43277
a848cd7e
SC
43278/* System header to define __stub macros and hopefully few prototypes,
43279 which can conflict with char $ac_func (); below.
43280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43281 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43282
a848cd7e
SC
43283#ifdef __STDC__
43284# include <limits.h>
43285#else
43286# include <assert.h>
43287#endif
ac1cb8d3
VS
43288
43289#undef $ac_func
43290
a848cd7e
SC
43291/* Override any gcc2 internal prototype to avoid an error. */
43292#ifdef __cplusplus
43293extern "C"
43294{
43295#endif
43296/* We use char because int might match the return type of a gcc2
43297 builtin and then its argument prototype would still apply. */
43298char $ac_func ();
43299/* The GNU C library defines this for functions which it implements
43300 to always fail with ENOSYS. Some functions are actually named
43301 something starting with __ and the normal name is an alias. */
43302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43303choke me
43304#else
43305char (*f) () = $ac_func;
43306#endif
43307#ifdef __cplusplus
43308}
43309#endif
43310
43311int
43312main ()
43313{
43314return f != $ac_func;
43315 ;
43316 return 0;
43317}
43318_ACEOF
43319rm -f conftest.$ac_objext conftest$ac_exeext
43320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43321 (eval $ac_link) 2>conftest.er1
a848cd7e 43322 ac_status=$?
ac1cb8d3
VS
43323 grep -v '^ *+' conftest.er1 >conftest.err
43324 rm -f conftest.er1
43325 cat conftest.err >&5
a848cd7e
SC
43326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43327 (exit $ac_status); } &&
0093c2fc 43328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43330 (eval $ac_try) 2>&5
43331 ac_status=$?
43332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333 (exit $ac_status); }; } &&
43334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43336 (eval $ac_try) 2>&5
43337 ac_status=$?
43338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339 (exit $ac_status); }; }; then
43340 eval "$as_ac_var=yes"
43341else
43342 echo "$as_me: failed program was:" >&5
43343sed 's/^/| /' conftest.$ac_ext >&5
43344
43345eval "$as_ac_var=no"
43346fi
ac1cb8d3
VS
43347rm -f conftest.err conftest.$ac_objext \
43348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43349fi
43350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43351echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43352if test `eval echo '${'$as_ac_var'}'` = yes; then
43353 cat >>confdefs.h <<_ACEOF
43354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43355_ACEOF
43356 have_ceil=1
43357fi
43358done
43359
43360 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
43361echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
43362 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
43363 echo "$as_me:$LINENO: result: yes" >&5
43364echo "${ECHO_T}yes" >&6
43365 else
43366 echo "$as_me:$LINENO: result: no" >&5
43367echo "${ECHO_T}no" >&6
43368 # not sure we should warn the user, crash, etc.
43369 fi
43370fi
43371
43372if test "$wxUSE_GUI" = "yes"; then
43373
43374
8bce5cda
MW
43375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
43376 dynamic erase event exec font image minimal mobile \
43377 mobile/wxedit mobile/styles propsize render \
43378 richedit rotate shaped vscroll widgets"
a848cd7e
SC
43379
43380 if test "$wxUSE_MONOLITHIC" != "yes"; then
43381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
43382 fi
0b78747f 43383 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
43384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
43385 if test "$wxUSE_UNIVERSAL" != "yes"; then
43386 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
43387 fi
43388 fi
43389 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
43390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 43391 fi
a848cd7e
SC
43392else
43393 SAMPLES_SUBDIRS="console"
43394fi
43395
43396
ceec2216 43397INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
43398-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
43399
48f625bc 43400if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
43401 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
43402elif test "$GCC" = yes ; then
43403 CWARNINGS="-Wall -Wundef"
43404fi
43405
48f625bc 43406if test "x$INTELCXX" = "xyes" ; then
7f47faf4 43407 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
43408elif test "$GXX" = yes ; then
43409 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 43410fi
a848cd7e
SC
43411
43412EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
43413
0c3c69fc 43414CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 43415CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 43416CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 43417
95986553
DE
43418if test "x$MWCC" = "xyes"; then
43419
43420 CC="$CC -cwd source -I-"
43421 CXX="$CXX -cwd source -I-"
43422fi
43423
a848cd7e 43424
0c3c69fc 43425LIBS=`echo $LIBS`
a848cd7e
SC
43426EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
43427EXTRALIBS_XML="$EXPAT_LINK"
43428EXTRALIBS_HTML="$MSPACK_LINK"
43429EXTRALIBS_ODBC="$ODBC_LINK"
43430if test "$wxUSE_GUI" = "yes"; then
2e350179 43431 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
43432fi
43433if test "$wxUSE_OPENGL" = "yes"; then
43434 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
43435fi
43436
43437LDFLAGS="$LDFLAGS $PROFILE"
43438
43439if test "$wxUSE_GTK" = 1; then
43440 WXCONFIG_INCLUDE=
43441else
43442 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
43443fi
43444
43445WXCONFIG_EXTRALIBS="$LIBS"
43446
43447if test "$wxUSE_REGEX" = "builtin" ; then
74802184 43448 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
43449fi
43450if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 43451 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
43452fi
43453if test "$wxUSE_ODBC" = "builtin" ; then
74802184 43454 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
43455fi
43456if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 43457 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
43458fi
43459if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 43460 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
43461fi
43462if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 43463 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
43464fi
43465if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 43466 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
43467fi
43468
43469for i in $wxconfig_3rdparty ; do
74802184 43470 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
43471done
43472
43473
43474if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
43475 WXUNIV=1
43476else
43477 WXUNIV=0
43478fi
43479
43480
43481
43482
43483
43484
43485
43486
43487
43488if test $wxUSE_MONOLITHIC = "yes" ; then
43489 MONOLITHIC=1
43490else
43491 MONOLITHIC=0
43492fi
43493
43494if test $wxUSE_PLUGINS = "yes" ; then
43495 USE_PLUGINS=1
43496else
43497 USE_PLUGINS=0
43498fi
43499
43500if test $wxUSE_ODBC != "no" ; then
43501 USE_ODBC=1
43502else
43503 USE_ODBC=0
43504fi
43505
16358932
VZ
43506if test "$wxUSE_DEBUGREPORT" = "yes" ; then
43507 USE_QA=1
43508else
43509 USE_QA=0
43510fi
43511
a848cd7e
SC
43512if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
43513 OFFICIAL_BUILD=1
43514else
43515 OFFICIAL_BUILD=0
43516fi
43517
43518
43519
43520
43521
43522
43523
43524
43525
43526
43527
43528
43529
43530
43531
43532
43533
43534
43535
ceec2216 43536
d1c38808 43537
a848cd7e
SC
43538
43539
43540TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
43541
43542
43543
43544
43545
43546
43547
43548
4d4ff94c
VZ
43549case "$TOOLKIT" in
43550 GTK)
43551 TOOLKIT_USER="GTK+"
43552 if test "$WXGTK20" = 1; then
43553 TOOLKIT_USER="$TOOLKIT_USER 2"
43554 fi
9a8f0513 43555 ;;
4d4ff94c
VZ
43556
43557 *)
43558 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 43559 ;;
4d4ff94c 43560esac
a848cd7e 43561
fb00f58d
JS
43562if test "$wxUSE_WINE" = "yes"; then
43563 BAKEFILE_FORCE_PLATFORM=win32
43564fi
43565
9a8f0513 43566
1e9e8aba
DE
43567
43568
a848cd7e
SC
43569 if test "x$BAKEFILE_HOST" = "x"; then
43570 BAKEFILE_HOST="${host}"
43571 fi
43572
43573 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
43574
43575 if test -n "$ac_tool_prefix"; then
43576 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
43577set dummy ${ac_tool_prefix}ranlib; ac_word=$2
43578echo "$as_me:$LINENO: checking for $ac_word" >&5
43579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43580if test "${ac_cv_prog_RANLIB+set}" = set; then
43581 echo $ECHO_N "(cached) $ECHO_C" >&6
43582else
43583 if test -n "$RANLIB"; then
43584 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43585else
43586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43587for as_dir in $PATH
43588do
43589 IFS=$as_save_IFS
43590 test -z "$as_dir" && as_dir=.
43591 for ac_exec_ext in '' $ac_executable_extensions; do
43592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43593 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
43594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43595 break 2
43596 fi
43597done
43598done
43599
43600fi
43601fi
43602RANLIB=$ac_cv_prog_RANLIB
43603if test -n "$RANLIB"; then
43604 echo "$as_me:$LINENO: result: $RANLIB" >&5
43605echo "${ECHO_T}$RANLIB" >&6
43606else
43607 echo "$as_me:$LINENO: result: no" >&5
43608echo "${ECHO_T}no" >&6
43609fi
43610
43611fi
43612if test -z "$ac_cv_prog_RANLIB"; then
43613 ac_ct_RANLIB=$RANLIB
43614 # Extract the first word of "ranlib", so it can be a program name with args.
43615set dummy ranlib; ac_word=$2
43616echo "$as_me:$LINENO: checking for $ac_word" >&5
43617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43618if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
43619 echo $ECHO_N "(cached) $ECHO_C" >&6
43620else
43621 if test -n "$ac_ct_RANLIB"; then
43622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
43623else
43624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43625for as_dir in $PATH
43626do
43627 IFS=$as_save_IFS
43628 test -z "$as_dir" && as_dir=.
43629 for ac_exec_ext in '' $ac_executable_extensions; do
43630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43631 ac_cv_prog_ac_ct_RANLIB="ranlib"
43632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43633 break 2
43634 fi
43635done
43636done
43637
43638 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
43639fi
43640fi
43641ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43642if test -n "$ac_ct_RANLIB"; then
43643 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43644echo "${ECHO_T}$ac_ct_RANLIB" >&6
43645else
43646 echo "$as_me:$LINENO: result: no" >&5
43647echo "${ECHO_T}no" >&6
43648fi
43649
43650 RANLIB=$ac_ct_RANLIB
43651else
43652 RANLIB="$ac_cv_prog_RANLIB"
43653fi
43654
43655 # Find a good install program. We prefer a C program (faster),
43656# so one script is as good as another. But avoid the broken or
43657# incompatible versions:
43658# SysV /etc/install, /usr/sbin/install
43659# SunOS /usr/etc/install
43660# IRIX /sbin/install
43661# AIX /bin/install
43662# AmigaOS /C/install, which installs bootblocks on floppy discs
43663# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
43664# AFS /usr/afsws/bin/install, which mishandles nonexistent args
43665# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 43666# OS/2's system install, which has a completely different semantic
a848cd7e
SC
43667# ./install, which can be erroneously created by make from ./install.sh.
43668echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
43669echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
43670if test -z "$INSTALL"; then
43671if test "${ac_cv_path_install+set}" = set; then
43672 echo $ECHO_N "(cached) $ECHO_C" >&6
43673else
43674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43675for as_dir in $PATH
43676do
43677 IFS=$as_save_IFS
43678 test -z "$as_dir" && as_dir=.
43679 # Account for people who put trailing slashes in PATH elements.
43680case $as_dir/ in
43681 ./ | .// | /cC/* | \
43682 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 43683 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
43684 /usr/ucb/* ) ;;
43685 *)
43686 # OSF1 and SCO ODT 3.0 have their own names for install.
43687 # Don't use installbsd from OSF since it installs stuff as root
43688 # by default.
43689 for ac_prog in ginstall scoinst install; do
43690 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
43691 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
43692 if test $ac_prog = install &&
43693 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43694 # AIX install. It has an incompatible calling convention.
43695 :
43696 elif test $ac_prog = install &&
43697 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43698 # program-specific install script used by HP pwplus--don't use.
43699 :
43700 else
43701 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
43702 break 3
43703 fi
43704 fi
a848cd7e
SC
43705 done
43706 done
43707 ;;
43708esac
43709done
43710
43711
43712fi
43713 if test "${ac_cv_path_install+set}" = set; then
43714 INSTALL=$ac_cv_path_install
43715 else
43716 # As a last resort, use the slow shell script. We don't cache a
43717 # path for INSTALL within a source directory, because that will
43718 # break other packages using the cache if that directory is
43719 # removed, or if the path is relative.
43720 INSTALL=$ac_install_sh
43721 fi
43722fi
43723echo "$as_me:$LINENO: result: $INSTALL" >&5
43724echo "${ECHO_T}$INSTALL" >&6
43725
43726# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
43727# It thinks the first close brace ends the variable substitution.
43728test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
43729
43730test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
43731
43732test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
43733
43734 echo "$as_me:$LINENO: checking whether ln -s works" >&5
43735echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
43736LN_S=$as_ln_s
43737if test "$LN_S" = "ln -s"; then
43738 echo "$as_me:$LINENO: result: yes" >&5
43739echo "${ECHO_T}yes" >&6
43740else
43741 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43742echo "${ECHO_T}no, using $LN_S" >&6
43743fi
43744
43745
43746 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43747echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43748set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43749if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43750 echo $ECHO_N "(cached) $ECHO_C" >&6
43751else
43752 cat >conftest.make <<\_ACEOF
43753all:
43754 @echo 'ac_maketemp="$(MAKE)"'
43755_ACEOF
43756# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43757eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43758if test -n "$ac_maketemp"; then
43759 eval ac_cv_prog_make_${ac_make}_set=yes
43760else
43761 eval ac_cv_prog_make_${ac_make}_set=no
43762fi
43763rm -f conftest.make
43764fi
43765if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43766 echo "$as_me:$LINENO: result: yes" >&5
43767echo "${ECHO_T}yes" >&6
43768 SET_MAKE=
43769else
43770 echo "$as_me:$LINENO: result: no" >&5
43771echo "${ECHO_T}no" >&6
43772 SET_MAKE="MAKE=${MAKE-make}"
43773fi
43774
43775
43776
43777 if test -n "$ac_tool_prefix"; then
43778 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43779set dummy ${ac_tool_prefix}ar; ac_word=$2
43780echo "$as_me:$LINENO: checking for $ac_word" >&5
43781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43782if test "${ac_cv_prog_AR+set}" = set; then
43783 echo $ECHO_N "(cached) $ECHO_C" >&6
43784else
43785 if test -n "$AR"; then
43786 ac_cv_prog_AR="$AR" # Let the user override the test.
43787else
43788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43789for as_dir in $PATH
43790do
43791 IFS=$as_save_IFS
43792 test -z "$as_dir" && as_dir=.
43793 for ac_exec_ext in '' $ac_executable_extensions; do
43794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43795 ac_cv_prog_AR="${ac_tool_prefix}ar"
43796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43797 break 2
43798 fi
43799done
43800done
43801
43802fi
43803fi
43804AR=$ac_cv_prog_AR
43805if test -n "$AR"; then
43806 echo "$as_me:$LINENO: result: $AR" >&5
43807echo "${ECHO_T}$AR" >&6
43808else
43809 echo "$as_me:$LINENO: result: no" >&5
43810echo "${ECHO_T}no" >&6
43811fi
43812
43813fi
43814if test -z "$ac_cv_prog_AR"; then
43815 ac_ct_AR=$AR
43816 # Extract the first word of "ar", so it can be a program name with args.
43817set dummy ar; ac_word=$2
43818echo "$as_me:$LINENO: checking for $ac_word" >&5
43819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43820if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43821 echo $ECHO_N "(cached) $ECHO_C" >&6
43822else
43823 if test -n "$ac_ct_AR"; then
43824 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43825else
43826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43827for as_dir in $PATH
43828do
43829 IFS=$as_save_IFS
43830 test -z "$as_dir" && as_dir=.
43831 for ac_exec_ext in '' $ac_executable_extensions; do
43832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43833 ac_cv_prog_ac_ct_AR="ar"
43834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43835 break 2
43836 fi
43837done
43838done
43839
43840 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43841fi
43842fi
43843ac_ct_AR=$ac_cv_prog_ac_ct_AR
43844if test -n "$ac_ct_AR"; then
43845 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43846echo "${ECHO_T}$ac_ct_AR" >&6
43847else
43848 echo "$as_me:$LINENO: result: no" >&5
43849echo "${ECHO_T}no" >&6
43850fi
43851
43852 AR=$ac_ct_AR
43853else
43854 AR="$ac_cv_prog_AR"
43855fi
43856
43857 if test -n "$ac_tool_prefix"; then
43858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43859set dummy ${ac_tool_prefix}strip; ac_word=$2
43860echo "$as_me:$LINENO: checking for $ac_word" >&5
43861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43862if test "${ac_cv_prog_STRIP+set}" = set; then
43863 echo $ECHO_N "(cached) $ECHO_C" >&6
43864else
43865 if test -n "$STRIP"; then
43866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43867else
43868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43869for as_dir in $PATH
43870do
43871 IFS=$as_save_IFS
43872 test -z "$as_dir" && as_dir=.
43873 for ac_exec_ext in '' $ac_executable_extensions; do
43874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43877 break 2
43878 fi
43879done
43880done
43881
43882fi
43883fi
43884STRIP=$ac_cv_prog_STRIP
43885if test -n "$STRIP"; then
43886 echo "$as_me:$LINENO: result: $STRIP" >&5
43887echo "${ECHO_T}$STRIP" >&6
43888else
43889 echo "$as_me:$LINENO: result: no" >&5
43890echo "${ECHO_T}no" >&6
43891fi
43892
43893fi
43894if test -z "$ac_cv_prog_STRIP"; then
43895 ac_ct_STRIP=$STRIP
43896 # Extract the first word of "strip", so it can be a program name with args.
43897set dummy strip; ac_word=$2
43898echo "$as_me:$LINENO: checking for $ac_word" >&5
43899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43900if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43901 echo $ECHO_N "(cached) $ECHO_C" >&6
43902else
43903 if test -n "$ac_ct_STRIP"; then
43904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43905else
43906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43907for as_dir in $PATH
43908do
43909 IFS=$as_save_IFS
43910 test -z "$as_dir" && as_dir=.
43911 for ac_exec_ext in '' $ac_executable_extensions; do
43912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43913 ac_cv_prog_ac_ct_STRIP="strip"
43914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43915 break 2
43916 fi
43917done
43918done
43919
43920 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43921fi
43922fi
43923ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43924if test -n "$ac_ct_STRIP"; then
43925 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43926echo "${ECHO_T}$ac_ct_STRIP" >&6
43927else
43928 echo "$as_me:$LINENO: result: no" >&5
43929echo "${ECHO_T}no" >&6
43930fi
43931
43932 STRIP=$ac_ct_STRIP
43933else
43934 STRIP="$ac_cv_prog_STRIP"
43935fi
43936
43937 if test -n "$ac_tool_prefix"; then
43938 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43939set dummy ${ac_tool_prefix}nm; ac_word=$2
43940echo "$as_me:$LINENO: checking for $ac_word" >&5
43941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43942if test "${ac_cv_prog_NM+set}" = set; then
43943 echo $ECHO_N "(cached) $ECHO_C" >&6
43944else
43945 if test -n "$NM"; then
43946 ac_cv_prog_NM="$NM" # Let the user override the test.
43947else
43948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43949for as_dir in $PATH
43950do
43951 IFS=$as_save_IFS
43952 test -z "$as_dir" && as_dir=.
43953 for ac_exec_ext in '' $ac_executable_extensions; do
43954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43955 ac_cv_prog_NM="${ac_tool_prefix}nm"
43956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43957 break 2
43958 fi
43959done
43960done
43961
43962fi
43963fi
43964NM=$ac_cv_prog_NM
43965if test -n "$NM"; then
43966 echo "$as_me:$LINENO: result: $NM" >&5
43967echo "${ECHO_T}$NM" >&6
43968else
43969 echo "$as_me:$LINENO: result: no" >&5
43970echo "${ECHO_T}no" >&6
43971fi
43972
43973fi
43974if test -z "$ac_cv_prog_NM"; then
43975 ac_ct_NM=$NM
43976 # Extract the first word of "nm", so it can be a program name with args.
43977set dummy nm; ac_word=$2
43978echo "$as_me:$LINENO: checking for $ac_word" >&5
43979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43980if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
43981 echo $ECHO_N "(cached) $ECHO_C" >&6
43982else
43983 if test -n "$ac_ct_NM"; then
43984 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
43985else
43986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43987for as_dir in $PATH
43988do
43989 IFS=$as_save_IFS
43990 test -z "$as_dir" && as_dir=.
43991 for ac_exec_ext in '' $ac_executable_extensions; do
43992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43993 ac_cv_prog_ac_ct_NM="nm"
43994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43995 break 2
43996 fi
43997done
43998done
43999
44000 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
44001fi
44002fi
44003ac_ct_NM=$ac_cv_prog_ac_ct_NM
44004if test -n "$ac_ct_NM"; then
44005 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
44006echo "${ECHO_T}$ac_ct_NM" >&6
44007else
44008 echo "$as_me:$LINENO: result: no" >&5
44009echo "${ECHO_T}no" >&6
44010fi
44011
44012 NM=$ac_ct_NM
44013else
44014 NM="$ac_cv_prog_NM"
44015fi
44016
44017
44018 case ${BAKEFILE_HOST} in
44019 *-hp-hpux* )
1e9e8aba 44020 INSTALL_DIR="mkdir -p"
a848cd7e
SC
44021 ;;
44022 *) INSTALL_DIR="$INSTALL -d"
44023 ;;
44024 esac
44025
44026
44027 LDFLAGS_GUI=
44028 case ${BAKEFILE_HOST} in
44029 *-*-cygwin* | *-*-mingw32* )
44030 LDFLAGS_GUI="-mwindows"
44031 esac
44032
44033
44034 fi
44035
44036 echo "$as_me:$LINENO: checking if make is GNU make" >&5
44037echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
44038if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
44039 echo $ECHO_N "(cached) $ECHO_C" >&6
44040else
44041
44042 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
44043 egrep -s GNU > /dev/null); then
44044 bakefile_cv_prog_makeisgnu="yes"
44045 else
44046 bakefile_cv_prog_makeisgnu="no"
44047 fi
44048
44049fi
44050echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
44051echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
44052
44053 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
44054 IF_GNU_MAKE=""
44055 else
44056 IF_GNU_MAKE="#"
44057 fi
44058
44059
44060
44061 PLATFORM_UNIX=0
44062 PLATFORM_WIN32=0
44063 PLATFORM_MSDOS=0
44064 PLATFORM_MAC=0
1e9e8aba 44065 PLATFORM_MACOS=0
a848cd7e
SC
44066 PLATFORM_MACOSX=0
44067 PLATFORM_OS2=0
1e9e8aba 44068 PLATFORM_BEOS=0
a848cd7e
SC
44069
44070 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
44071 case "${BAKEFILE_HOST}" in
810b94f0 44072 *-*-mingw32* )
a848cd7e
SC
44073 PLATFORM_WIN32=1
44074 ;;
44075 *-pc-msdosdjgpp )
44076 PLATFORM_MSDOS=1
44077 ;;
44078 *-pc-os2_emx | *-pc-os2-emx )
44079 PLATFORM_OS2=1
44080 ;;
47bd5406 44081 *-*-darwin* )
a848cd7e
SC
44082 PLATFORM_MAC=1
44083 PLATFORM_MACOSX=1
44084 ;;
1e9e8aba
DE
44085 *-*-beos* )
44086 PLATFORM_BEOS=1
44087 ;;
44088 powerpc-apple-macos* )
44089 PLATFORM_MAC=1
44090 PLATFORM_MACOS=1
44091 ;;
a848cd7e
SC
44092 * )
44093 PLATFORM_UNIX=1
44094 ;;
44095 esac
44096 else
44097 case "$BAKEFILE_FORCE_PLATFORM" in
44098 win32 )
44099 PLATFORM_WIN32=1
44100 ;;
44101 msdos )
44102 PLATFORM_MSDOS=1
44103 ;;
44104 os2 )
44105 PLATFORM_OS2=1
44106 ;;
44107 darwin )
44108 PLATFORM_MAC=1
44109 PLATFORM_MACOSX=1
44110 ;;
44111 unix )
44112 PLATFORM_UNIX=1
44113 ;;
1e9e8aba
DE
44114 beos )
44115 PLATFORM_BEOS=1
44116 ;;
a848cd7e
SC
44117 * )
44118 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
44119echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
44120 { (exit 1); exit 1; }; }
44121 ;;
44122 esac
44123 fi
44124
44125
44126
44127
44128
44129
44130
44131
44132
1e9e8aba
DE
44133
44134
a848cd7e
SC
44135 # Check whether --enable-omf or --disable-omf was given.
44136if test "${enable_omf+set}" = set; then
44137 enableval="$enable_omf"
44138 bk_os2_use_omf="$enableval"
44139fi;
44140
44141 case "${BAKEFILE_HOST}" in
44142 *-*-darwin* )
47bd5406
VZ
44143 if test "x$GCC" = "xyes"; then
44144 CFLAGS="$CFLAGS -fno-common"
44145 CXXFLAGS="$CXXFLAGS -fno-common"
44146 fi
44147 if test "x$XLCC" = "xyes"; then
44148 CFLAGS="$CFLAGS -qnocommon"
44149 CXXFLAGS="$CXXFLAGS -qnocommon"
44150 fi
a848cd7e
SC
44151 ;;
44152
44153 *-pc-os2_emx | *-pc-os2-emx )
44154 if test "x$bk_os2_use_omf" = "xyes" ; then
44155 AR=emxomfar
44156 RANLIB=:
44157 LDFLAGS="-Zomf $LDFLAGS"
44158 CFLAGS="-Zomf $CFLAGS"
44159 CXXFLAGS="-Zomf $CXXFLAGS"
44160 OS2_LIBEXT="lib"
44161 else
44162 OS2_LIBEXT="a"
44163 fi
44164 ;;
1e9e8aba
DE
44165
44166 i*86-*-beos* )
44167 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
44168 ;;
a848cd7e
SC
44169 esac
44170
44171
44172 SO_SUFFIX="so"
44173 SO_SUFFIX_MODULE="so"
44174 EXEEXT=""
44175 LIBPREFIX="lib"
44176 LIBEXT=".a"
44177 DLLPREFIX="lib"
44178 DLLPREFIX_MODULE=""
44179 DLLIMP_SUFFIX=""
810b94f0 44180 dlldir="$libdir"
a848cd7e
SC
44181
44182 case "${BAKEFILE_HOST}" in
44183 *-hp-hpux* )
44184 SO_SUFFIX="sl"
44185 SO_SUFFIX_MODULE="sl"
44186 ;;
44187 *-*-aix* )
44188 SO_SUFFIX="a"
44189 SO_SUFFIX_MODULE="a"
44190 ;;
810b94f0
MW
44191 *-*-cygwin* )
44192 SO_SUFFIX="dll"
44193 SO_SUFFIX_MODULE="dll"
44194 DLLIMP_SUFFIX="dll.a"
44195 EXEEXT=".exe"
44196 DLLPREFIX="cyg"
44197 dlldir="$bindir"
44198 ;;
44199 *-*-mingw32* )
a848cd7e
SC
44200 SO_SUFFIX="dll"
44201 SO_SUFFIX_MODULE="dll"
44202 DLLIMP_SUFFIX="dll.a"
44203 EXEEXT=".exe"
44204 DLLPREFIX=""
810b94f0 44205 dlldir="$bindir"
a848cd7e
SC
44206 ;;
44207 *-pc-msdosdjgpp )
44208 EXEEXT=".exe"
44209 DLLPREFIX=""
810b94f0 44210 dlldir="$bindir"
a848cd7e
SC
44211 ;;
44212 *-pc-os2_emx | *-pc-os2-emx )
44213 SO_SUFFIX="dll"
44214 SO_SUFFIX_MODULE="dll"
44215 DLLIMP_SUFFIX=$OS2_LIBEXT
44216 EXEEXT=".exe"
44217 DLLPREFIX=""
44218 LIBPREFIX=""
44219 LIBEXT=".$OS2_LIBEXT"
810b94f0 44220 dlldir="$bindir"
a848cd7e 44221 ;;
47bd5406 44222 *-*-darwin* )
a848cd7e
SC
44223 SO_SUFFIX="dylib"
44224 SO_SUFFIX_MODULE="bundle"
44225 ;;
44226 esac
44227
44228 if test "x$DLLIMP_SUFFIX" = "x" ; then
44229 DLLIMP_SUFFIX="$SO_SUFFIX"
44230 fi
44231
44232
44233
44234
44235
44236
44237
44238
44239
44240
44241
810b94f0 44242
1e9e8aba
DE
44243 PIC_FLAG=""
44244 if test "x$GCC" = "xyes"; then
a848cd7e
SC
44245 PIC_FLAG="-fPIC"
44246 fi
44247
1e9e8aba
DE
44248 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
44249 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 44250 WINDOWS_IMPLIB=0
1e9e8aba 44251
a848cd7e
SC
44252 case "${BAKEFILE_HOST}" in
44253 *-hp-hpux* )
1e9e8aba 44254 if test "x$GCC" != "xyes"; then
a848cd7e
SC
44255 LDFLAGS="$LDFLAGS -L/usr/lib"
44256
44257 SHARED_LD_CC="${CC} -b -o"
44258 SHARED_LD_CXX="${CXX} -b -o"
44259 PIC_FLAG="+Z"
44260 fi
44261 ;;
44262
44263 *-*-linux* )
44264 if test "x$GCC" != "xyes"; then
44265 echo "$as_me:$LINENO: checking for Intel compiler" >&5
44266echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
44267if test "${bakefile_cv_prog_icc+set}" = set; then
44268 echo $ECHO_N "(cached) $ECHO_C" >&6
44269else
44270
44271 cat >conftest.$ac_ext <<_ACEOF
44272/* confdefs.h. */
44273_ACEOF
44274cat confdefs.h >>conftest.$ac_ext
44275cat >>conftest.$ac_ext <<_ACEOF
44276/* end confdefs.h. */
44277
44278int
44279main ()
44280{
44281
44282 #ifndef __INTEL_COMPILER
44283 #error Not icc
44284 #endif
44285
44286 ;
44287 return 0;
44288}
44289_ACEOF
44290rm -f conftest.$ac_objext
44291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44292 (eval $ac_compile) 2>conftest.er1
a848cd7e 44293 ac_status=$?
ac1cb8d3
VS
44294 grep -v '^ *+' conftest.er1 >conftest.err
44295 rm -f conftest.er1
44296 cat conftest.err >&5
a848cd7e
SC
44297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44298 (exit $ac_status); } &&
0093c2fc 44299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44301 (eval $ac_try) 2>&5
44302 ac_status=$?
44303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44304 (exit $ac_status); }; } &&
44305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44307 (eval $ac_try) 2>&5
44308 ac_status=$?
44309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44310 (exit $ac_status); }; }; then
44311 bakefile_cv_prog_icc=yes
44312else
44313 echo "$as_me: failed program was:" >&5
44314sed 's/^/| /' conftest.$ac_ext >&5
44315
44316bakefile_cv_prog_icc=no
44317
44318fi
ac1cb8d3 44319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44320
44321fi
44322echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
44323echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
44324 if test "$bakefile_cv_prog_icc" = "yes"; then
44325 PIC_FLAG="-KPIC"
44326 fi
44327 fi
44328 ;;
44329
44330 *-*-solaris2* )
44331 if test "x$GCC" != xyes ; then
44332 SHARED_LD_CC="${CC} -G -o"
44333 SHARED_LD_CXX="${CXX} -G -o"
44334 PIC_FLAG="-KPIC"
44335 fi
44336 ;;
44337
44338 *-*-darwin* )
44339
473276a9
VS
44340D='$'
44341cat <<EOF >shared-ld-sh
a848cd7e
SC
44342#!/bin/sh
44343#-----------------------------------------------------------------------------
44344#-- Name: distrib/mac/shared-ld-sh
44345#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
44346#-- Author: Gilles Depeyrot
44347#-- Copyright: (c) 2002 Gilles Depeyrot
44348#-- Licence: any use permitted
44349#-----------------------------------------------------------------------------
44350
44351verbose=0
44352args=""
44353objects=""
44354linking_flag="-dynamiclib"
810b94f0 44355ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 44356
473276a9
VS
44357while test ${D}# -gt 0; do
44358 case ${D}1 in
a848cd7e
SC
44359
44360 -v)
44361 verbose=1
44362 ;;
44363
44364 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
44365 # collect these options and values
473276a9 44366 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
44367 shift
44368 ;;
44369
810b94f0
MW
44370 -s|-Wl,*)
44371 # collect these load args
44372 ldargs="${D}{ldargs} ${D}1"
2113bc77 44373 ;;
810b94f0
MW
44374
44375 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 44376 # collect these options
473276a9 44377 args="${D}{args} ${D}1"
a848cd7e
SC
44378 ;;
44379
44380 -dynamiclib|-bundle)
473276a9 44381 linking_flag="${D}1"
a848cd7e
SC
44382 ;;
44383
44384 -*)
473276a9 44385 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
44386 exit 1
44387 ;;
44388
44389 *.o | *.a | *.dylib)
44390 # collect object files
473276a9 44391 objects="${D}{objects} ${D}1"
a848cd7e
SC
44392 ;;
44393
44394 *)
473276a9 44395 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
44396 exit 1
44397 ;;
44398
44399 esac
44400 shift
44401done
44402
810b94f0
MW
44403status=0
44404
a848cd7e
SC
44405#
44406# Link one module containing all the others
44407#
473276a9 44408if test ${D}{verbose} = 1; then
810b94f0 44409 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 44410fi
810b94f0 44411c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 44412status=${D}?
a848cd7e
SC
44413
44414#
810b94f0
MW
44415# Link the shared library from the single module created, but only if the
44416# previous command didn't fail:
a848cd7e 44417#
810b94f0
MW
44418if test ${D}{status} = 0; then
44419 if test ${D}{verbose} = 1; then
44420 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
44421 fi
44422 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
44423 status=${D}?
a848cd7e
SC
44424fi
44425
44426#
44427# Remove intermediate module
44428#
473276a9 44429rm -f master.${D}${D}.o
a848cd7e 44430
810b94f0 44431exit ${D}status
a848cd7e 44432EOF
473276a9 44433
583d6b4b
VZ
44434 chmod +x shared-ld-sh
44435
44436 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
44437 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
44438
44439
44440 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
44441echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
44442if test "${bakefile_cv_gcc31+set}" = set; then
44443 echo $ECHO_N "(cached) $ECHO_C" >&6
44444else
44445
44446 cat >conftest.$ac_ext <<_ACEOF
44447/* confdefs.h. */
44448_ACEOF
44449cat confdefs.h >>conftest.$ac_ext
44450cat >>conftest.$ac_ext <<_ACEOF
44451/* end confdefs.h. */
44452
44453int
44454main ()
44455{
44456
44457 #if (__GNUC__ < 3) || \
44458 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
44459 #error old gcc
44460 #endif
a848cd7e 44461
583d6b4b
VZ
44462 ;
44463 return 0;
44464}
44465_ACEOF
44466rm -f conftest.$ac_objext
44467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44468 (eval $ac_compile) 2>conftest.er1
44469 ac_status=$?
44470 grep -v '^ *+' conftest.er1 >conftest.err
44471 rm -f conftest.er1
44472 cat conftest.err >&5
44473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44474 (exit $ac_status); } &&
44475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44477 (eval $ac_try) 2>&5
44478 ac_status=$?
44479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44480 (exit $ac_status); }; } &&
44481 { ac_try='test -s conftest.$ac_objext'
44482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44483 (eval $ac_try) 2>&5
44484 ac_status=$?
44485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44486 (exit $ac_status); }; }; then
44487
44488 bakefile_cv_gcc31=yes
44489
44490else
44491 echo "$as_me: failed program was:" >&5
44492sed 's/^/| /' conftest.$ac_ext >&5
44493
44494
44495 bakefile_cv_gcc31=no
44496
44497
44498fi
44499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44500
44501fi
44502echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
44503echo "${ECHO_T}$bakefile_cv_gcc31" >&6
44504 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 44505 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 44506 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
44507 else
44508 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 44509 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
44510 fi
44511
47bd5406
VZ
44512 if test "x$GCC" == "xyes"; then
44513 PIC_FLAG="-dynamic -fPIC"
44514 fi
44515 if test "x$XLCC" = "xyes"; then
44516 PIC_FLAG="-dynamic -DPIC"
44517 fi
a848cd7e
SC
44518 ;;
44519
44520 *-*-aix* )
f6b50c59 44521 if test "x$GCC" = "xyes"; then
583d6b4b 44522 PIC_FLAG=""
f6b50c59 44523
583d6b4b
VZ
44524 case "${BAKEFILE_HOST}" in
44525 *-*-aix5* )
44526 LD_EXPFULL="-Wl,-bexpfull"
44527 ;;
44528 esac
f6b50c59 44529
583d6b4b
VZ
44530 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
44531 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
44532 else
44533 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
44534set dummy makeC++SharedLib; ac_word=$2
44535echo "$as_me:$LINENO: checking for $ac_word" >&5
44536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44537if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
44538 echo $ECHO_N "(cached) $ECHO_C" >&6
44539else
44540 if test -n "$AIX_CXX_LD"; then
44541 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
44542else
44543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44544for as_dir in $PATH
44545do
44546 IFS=$as_save_IFS
44547 test -z "$as_dir" && as_dir=.
44548 for ac_exec_ext in '' $ac_executable_extensions; do
44549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44550 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
44551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44552 break 2
44553 fi
44554done
44555done
44556
44557 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
44558fi
44559fi
44560AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
44561if test -n "$AIX_CXX_LD"; then
44562 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
44563echo "${ECHO_T}$AIX_CXX_LD" >&6
44564else
44565 echo "$as_me:$LINENO: result: no" >&5
44566echo "${ECHO_T}no" >&6
44567fi
44568
f6b50c59 44569 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
44570 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
44571 fi
44572 ;;
44573
44574 *-*-beos* )
1e9e8aba
DE
44575 SHARED_LD_CC="${LD} -nostart -o"
44576 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
44577 ;;
44578
44579 *-*-irix* )
44580 if test "x$GCC" != "xyes"; then
44581 PIC_FLAG="-KPIC"
44582 fi
44583 ;;
44584
44585 *-*-cygwin* | *-*-mingw32* )
44586 PIC_FLAG=""
1e9e8aba
DE
44587 SHARED_LD_CC="\$(CC) -shared -o"
44588 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 44589 WINDOWS_IMPLIB=1
a848cd7e
SC
44590 ;;
44591
44592 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
44593 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44594 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 44595 PIC_FLAG=""
473276a9
VS
44596
44597D='$'
44598cat <<EOF >dllar.sh
44599#!/bin/sh
44600#
44601# dllar - a tool to build both a .dll and an .a file
44602# from a set of object (.o) files for EMX/OS2.
44603#
44604# Written by Andrew Zabolotny, bit@freya.etu.ru
44605# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
44606#
44607# This script will accept a set of files on the command line.
44608# All the public symbols from the .o files will be exported into
44609# a .DEF file, then linker will be run (through gcc) against them to
44610# build a shared library consisting of all given .o files. All libraries
44611# (.a) will be first decompressed into component .o files then act as
44612# described above. You can optionally give a description (-d "description")
44613# which will be put into .DLL. To see the list of accepted options (as well
44614# as command-line format) simply run this program without options. The .DLL
44615# is built to be imported by name (there is no guarantee that new versions
44616# of the library you build will have same ordinals for same symbols).
44617#
44618# dllar is free software; you can redistribute it and/or modify
44619# it under the terms of the GNU General Public License as published by
44620# the Free Software Foundation; either version 2, or (at your option)
44621# any later version.
44622#
44623# dllar is distributed in the hope that it will be useful,
44624# but WITHOUT ANY WARRANTY; without even the implied warranty of
44625# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44626# GNU General Public License for more details.
44627#
44628# You should have received a copy of the GNU General Public License
44629# along with dllar; see the file COPYING. If not, write to the Free
44630# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
44631# 02111-1307, USA.
44632
44633# To successfuly run this program you will need:
44634# - Current drive should have LFN support (HPFS, ext2, network, etc)
44635# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
44636# - gcc
44637# (used to build the .dll)
44638# - emxexp
44639# (used to create .def file from .o files)
44640# - emximp
44641# (used to create .a file from .def file)
44642# - GNU text utilites (cat, sort, uniq)
44643# used to process emxexp output
44644# - GNU file utilities (mv, rm)
44645# - GNU sed
44646# - lxlite (optional, see flag below)
44647# (used for general .dll cleanup)
44648#
44649
44650flag_USE_LXLITE=1;
44651
44652#
44653# helper functions
44654# basnam, variant of basename, which does _not_ remove the path, _iff_
44655# second argument (suffix to remove) is given
44656basnam(){
44657 case ${D}# in
44658 1)
1e9e8aba 44659 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
44660 ;;
44661 2)
44662 echo ${D}1 | sed 's/'${D}2'${D}//'
44663 ;;
44664 *)
44665 echo "error in basnam ${D}*"
44666 exit 8
44667 ;;
44668 esac
44669}
44670
44671# Cleanup temporary files and output
44672CleanUp() {
44673 cd ${D}curDir
44674 for i in ${D}inputFiles ; do
44675 case ${D}i in
44676 *!)
44677 rm -rf \`basnam ${D}i !\`
44678 ;;
44679 *)
44680 ;;
44681 esac
44682 done
44683
44684 # Kill result in case of failure as there is just to many stupid make/nmake
44685 # things out there which doesn't do this.
1e9e8aba 44686 if [ ${D}# -eq 0 ]; then
473276a9
VS
44687 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
44688 fi
44689}
44690
44691# Print usage and exit script with rc=1.
44692PrintHelp() {
b1d22ded
DE
44693 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
44694 echo ' [-name-mangler-script script.sh]'
44695 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
44696 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
44697 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 44698 echo ' [*.o] [*.a]'
473276a9
VS
44699 echo '*> "output_file" should have no extension.'
44700 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
44701 echo ' The import library name is derived from this and is set to "name".a,'
44702 echo ' unless overridden by -import'
44703 echo '*> "importlib_name" should have no extension.'
44704 echo ' If it has the .o, or .a extension, it is automatically removed.'
44705 echo ' This name is used as the import library name and may be longer and'
44706 echo ' more descriptive than the DLL name which has to follow the old '
44707 echo ' 8.3 convention of FAT.'
b1d22ded
DE
44708 echo '*> "script.sh may be given to override the output_file name by a'
44709 echo ' different name. It is mainly useful if the regular make process'
44710 echo ' of some package does not take into account OS/2 restriction of'
44711 echo ' DLL name lengths. It takes the importlib name as input and is'
44712 echo ' supposed to procude a shorter name as output. The script should'
44713 echo ' expect to get importlib_name without extension and should produce'
44714 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
44715 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
44716 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
44717 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
44718 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
44719 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
44720 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
44721 echo ' If the last character of a symbol is "*", all symbols beginning'
44722 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 44723 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 44724 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 44725 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 44726 echo ' C runtime DLLs.'
b1d22ded 44727 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
44728 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
44729 echo ' unchanged to GCC at the end of command line.'
44730 echo '*> If you create a DLL from a library and you do not specify -o,'
44731 echo ' the basename for DLL and import library will be set to library name,'
44732 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
44733 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
44734 echo ' library will be renamed into gcc_s.a.'
44735 echo '--------'
44736 echo 'Example:'
44737 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
44738 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
44739 CleanUp
44740 exit 1
44741}
44742
44743# Execute a command.
44744# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
44745# @Uses Whatever CleanUp() uses.
44746doCommand() {
44747 echo "${D}*"
44748 eval ${D}*
44749 rcCmd=${D}?
44750
1e9e8aba 44751 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
44752 echo "command failed, exit code="${D}rcCmd
44753 CleanUp
44754 exit ${D}rcCmd
44755 fi
44756}
44757
44758# main routine
44759# setup globals
44760cmdLine=${D}*
44761outFile=""
44762outimpFile=""
44763inputFiles=""
b1d22ded 44764renameScript=""
473276a9
VS
44765description=""
44766CC=gcc.exe
44767CFLAGS="-s -Zcrtdll"
44768EXTRA_CFLAGS=""
44769EXPORT_BY_ORDINALS=0
44770exclude_symbols=""
44771library_flags=""
44772curDir=\`pwd\`
44773curDirS=curDir
44774case ${D}curDirS in
44775*/)
44776 ;;
44777*)
44778 curDirS=${D}{curDirS}"/"
44779 ;;
44780esac
44781# Parse commandline
44782libsToLink=0
b1d22ded 44783omfLinking=0
1e9e8aba 44784while [ ${D}1 ]; do
473276a9
VS
44785 case ${D}1 in
44786 -ord*)
44787 EXPORT_BY_ORDINALS=1;
44788 ;;
44789 -o*)
44790 shift
44791 outFile=${D}1
44792 ;;
44793 -i*)
44794 shift
44795 outimpFile=${D}1
44796 ;;
b1d22ded
DE
44797 -name-mangler-script)
44798 shift
44799 renameScript=${D}1
44800 ;;
473276a9
VS
44801 -d*)
44802 shift
44803 description=${D}1
44804 ;;
44805 -f*)
44806 shift
44807 CFLAGS=${D}1
44808 ;;
44809 -c*)
44810 shift
44811 CC=${D}1
44812 ;;
44813 -h*)
44814 PrintHelp
44815 ;;
44816 -ex*)
44817 shift
44818 exclude_symbols=${D}{exclude_symbols}${D}1" "
44819 ;;
44820 -libf*)
44821 shift
44822 library_flags=${D}{library_flags}${D}1" "
44823 ;;
44824 -nocrt*)
44825 CFLAGS="-s"
44826 ;;
44827 -nolxl*)
44828 flag_USE_LXLITE=0
44829 ;;
44830 -* | /*)
44831 case ${D}1 in
44832 -L* | -l*)
44833 libsToLink=1
44834 ;;
b1d22ded
DE
44835 -Zomf)
44836 omfLinking=1
44837 ;;
473276a9
VS
44838 *)
44839 ;;
44840 esac
44841 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44842 ;;
b1d22ded
DE
44843 *.dll)
44844 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44845 if [ ${D}omfLinking -eq 1 ]; then
44846 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44847 else
44848 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44849 fi
44850 ;;
473276a9
VS
44851 *)
44852 found=0;
1e9e8aba 44853 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44854 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44855 else
44856 for file in ${D}1 ; do
1e9e8aba 44857 if [ -f ${D}file ]; then
473276a9
VS
44858 inputFiles="${D}{inputFiles} ${D}file"
44859 found=1
44860 fi
44861 done
1e9e8aba 44862 if [ ${D}found -eq 0 ]; then
473276a9
VS
44863 echo "ERROR: No file(s) found: "${D}1
44864 exit 8
44865 fi
44866 fi
44867 ;;
44868 esac
44869 shift
44870done # iterate cmdline words
44871
44872#
1e9e8aba 44873if [ -z "${D}inputFiles" ]; then
473276a9
VS
44874 echo "dllar: no input files"
44875 PrintHelp
44876fi
44877
44878# Now extract all .o files from .a files
44879newInputFiles=""
44880for file in ${D}inputFiles ; do
44881 case ${D}file in
44882 *.a | *.lib)
44883 case ${D}file in
44884 *.a)
44885 suffix=".a"
44886 AR="ar"
44887 ;;
44888 *.lib)
44889 suffix=".lib"
44890 AR="emxomfar"
44891 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44892 ;;
44893 *)
44894 ;;
44895 esac
44896 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44897 mkdir ${D}dirname
1e9e8aba 44898 if [ ${D}? -ne 0 ]; then
473276a9
VS
44899 echo "Failed to create subdirectory ./${D}dirname"
44900 CleanUp
44901 exit 8;
44902 fi
44903 # Append '!' to indicate archive
44904 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44905 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44906 cd ${D}curDir
44907 found=0;
44908 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 44909 if [ -f ${D}subfile ]; then
473276a9 44910 found=1
1e9e8aba 44911 if [ -s ${D}subfile ]; then
473276a9
VS
44912 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44913 newInputFiles="${D}newInputFiles ${D}subfile"
44914 fi
44915 fi
44916 done
1e9e8aba
DE
44917 if [ ${D}found -eq 0 ]; then
44918 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
44919 fi
44920 ;;
44921 *)
44922 newInputFiles="${D}{newInputFiles} ${D}file"
44923 ;;
44924 esac
44925done
44926inputFiles="${D}newInputFiles"
44927
44928# Output filename(s).
44929do_backup=0;
1e9e8aba 44930if [ -z ${D}outFile ]; then
473276a9
VS
44931 do_backup=1;
44932 set outFile ${D}inputFiles; outFile=${D}2
44933fi
44934
44935# If it is an archive, remove the '!' and the '_%' suffixes
44936case ${D}outFile in
44937*_%!)
44938 outFile=\`basnam ${D}outFile _%!\`
44939 ;;
44940*)
44941 ;;
44942esac
44943case ${D}outFile in
44944*.dll)
44945 outFile=\`basnam ${D}outFile .dll\`
44946 ;;
44947*.DLL)
44948 outFile=\`basnam ${D}outFile .DLL\`
44949 ;;
44950*.o)
44951 outFile=\`basnam ${D}outFile .o\`
44952 ;;
44953*.obj)
44954 outFile=\`basnam ${D}outFile .obj\`
44955 ;;
44956*.a)
44957 outFile=\`basnam ${D}outFile .a\`
44958 ;;
44959*.lib)
44960 outFile=\`basnam ${D}outFile .lib\`
44961 ;;
44962*)
44963 ;;
44964esac
44965case ${D}outimpFile in
44966*.a)
44967 outimpFile=\`basnam ${D}outimpFile .a\`
44968 ;;
44969*.lib)
44970 outimpFile=\`basnam ${D}outimpFile .lib\`
44971 ;;
44972*)
44973 ;;
44974esac
1e9e8aba 44975if [ -z ${D}outimpFile ]; then
473276a9
VS
44976 outimpFile=${D}outFile
44977fi
44978defFile="${D}{outFile}.def"
44979arcFile="${D}{outimpFile}.a"
44980arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
44981
44982#create ${D}dllFile as something matching 8.3 restrictions,
44983if [ -z ${D}renameScript ] ; then
44984 dllFile="${D}outFile"
44985else
44986 dllFile=\`${D}renameScript ${D}outimpFile\`
44987fi
473276a9 44988
1e9e8aba
DE
44989if [ ${D}do_backup -ne 0 ] ; then
44990 if [ -f ${D}arcFile ] ; then
473276a9
VS
44991 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
44992 fi
1e9e8aba 44993 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
44994 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
44995 fi
44996fi
44997
44998# Extract public symbols from all the object files.
44999tmpdefFile=${D}{defFile}_%
45000rm -f ${D}tmpdefFile
45001for file in ${D}inputFiles ; do
45002 case ${D}file in
45003 *!)
45004 ;;
45005 *)
45006 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
45007 ;;
45008 esac
45009done
45010
45011# Create the def file.
45012rm -f ${D}defFile
45013echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
45014dllFile="${D}{dllFile}.dll"
45015if [ ! -z ${D}description ]; then
1e9e8aba 45016 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
45017fi
45018echo "EXPORTS" >> ${D}defFile
45019
45020doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
45021grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
45022
45023# Checks if the export is ok or not.
45024for word in ${D}exclude_symbols; do
45025 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
45026 mv ${D}{tmpdefFile}% ${D}tmpdefFile
45027done
45028
45029
1e9e8aba
DE
45030if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
45031 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
45032 sed '
45033 N
45034 : loop
1e9e8aba 45035 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
45036 t loop
45037 ' > ${D}{tmpdefFile}%
45038 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
45039else
45040 rm -f ${D}{tmpdefFile}%
45041fi
45042cat ${D}tmpdefFile >> ${D}defFile
45043rm -f ${D}tmpdefFile
45044
45045# Do linking, create implib, and apply lxlite.
45046gccCmdl="";
45047for file in ${D}inputFiles ; do
45048 case ${D}file in
45049 *!)
45050 ;;
45051 *)
45052 gccCmdl="${D}gccCmdl ${D}file"
45053 ;;
45054 esac
45055done
45056doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
45057touch "${D}{outFile}.dll"
45058
45059doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 45060if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 45061 add_flags="";
1e9e8aba 45062 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
45063 add_flags="-ynd"
45064 fi
45065 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
45066fi
45067doCommand "emxomf -s -l ${D}arcFile"
45068
45069# Successful exit.
45070CleanUp 1
45071exit 0
45072EOF
45073
45074 chmod +x dllar.sh
a848cd7e
SC
45075 ;;
45076
1e9e8aba 45077 powerpc-apple-macos* | \
0ad5d837 45078 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
45079 *-*-sunos4* | \
45080 *-*-osf* | \
45081 *-*-dgux5* | \
47a7e797
MW
45082 *-*-sysv5* | \
45083 *-pc-msdosdjgpp )
a848cd7e
SC
45084 ;;
45085
45086 *)
45087 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
45088echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
45089 { (exit 1); exit 1; }; }
45090 esac
45091
2057db16
VS
45092 if test "x$PIC_FLAG" != "x" ; then
45093 PIC_FLAG="$PIC_FLAG -DPIC"
45094 fi
45095
a848cd7e
SC
45096 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
45097 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
45098 fi
45099 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
45100 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
45101 fi
45102
45103
45104
45105
45106
45107
45108
45109
810b94f0 45110
a848cd7e
SC
45111 USE_SOVERSION=0
45112 USE_SOVERLINUX=0
45113 USE_SOVERSOLARIS=0
810b94f0 45114 USE_SOVERCYGWIN=0
a848cd7e
SC
45115 USE_SOSYMLINKS=0
45116 USE_MACVERSION=0
45117 SONAME_FLAG=
45118
45119 case "${BAKEFILE_HOST}" in
0ad5d837 45120 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
45121 SONAME_FLAG="-Wl,-soname,"
45122 USE_SOVERSION=1
45123 USE_SOVERLINUX=1
45124 USE_SOSYMLINKS=1
45125 ;;
45126
a848cd7e
SC
45127 *-*-solaris2* )
45128 SONAME_FLAG="-h "
45129 USE_SOVERSION=1
45130 USE_SOVERSOLARIS=1
45131 USE_SOSYMLINKS=1
45132 ;;
45133
45134 *-*-darwin* )
45135 USE_MACVERSION=1
45136 USE_SOVERSION=1
45137 USE_SOSYMLINKS=1
45138 ;;
810b94f0
MW
45139
45140 *-*-cygwin* )
45141 USE_SOVERSION=1
45142 USE_SOVERCYGWIN=1
45143 ;;
a848cd7e
SC
45144 esac
45145
45146
45147
45148
45149
45150
45151
45152
45153
810b94f0 45154
a848cd7e
SC
45155 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
45156echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 45157 DEPS_TRACKING=1
a848cd7e
SC
45158
45159 if test "x$GCC" = "xyes"; then
45160 DEPSMODE=gcc
a848cd7e 45161 case "${BAKEFILE_HOST}" in
47bd5406 45162 *-*-darwin* )
0ad5d837 45163 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
45164 ;;
45165 * )
0ad5d837 45166 DEPSFLAG="-MMD"
a848cd7e
SC
45167 ;;
45168 esac
45169 echo "$as_me:$LINENO: result: gcc" >&5
45170echo "${ECHO_T}gcc" >&6
b1d22ded 45171 elif test "x$MWCC" = "xyes"; then
81f90336 45172 DEPSMODE=mwcc
0ad5d837 45173 DEPSFLAG="-MM"
b1d22ded
DE
45174 echo "$as_me:$LINENO: result: mwcc" >&5
45175echo "${ECHO_T}mwcc" >&6
a9e5b1f0 45176 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
45177 DEPSMODE=unixcc
45178 DEPSFLAG="-xM1"
45179 echo "$as_me:$LINENO: result: Sun cc" >&5
45180echo "${ECHO_T}Sun cc" >&6
45181 elif test "x$SGICC" = "xyes"; then
45182 DEPSMODE=unixcc
45183 DEPSFLAG="-M"
45184 echo "$as_me:$LINENO: result: SGI cc" >&5
45185echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
45186 elif test "x$HPCC" = "xyes"; then
45187 DEPSMODE=unixcc
45188 DEPSFLAG="+make"
45189 echo "$as_me:$LINENO: result: HP cc" >&5
45190echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
45191 elif test "x$COMPAQCC" = "xyes"; then
45192 DEPSMODE=gcc
45193 DEPSFLAG="-MD"
45194 echo "$as_me:$LINENO: result: Compaq cc" >&5
45195echo "${ECHO_T}Compaq cc" >&6
a848cd7e 45196 else
3006edc0 45197 DEPS_TRACKING=0
a848cd7e
SC
45198 echo "$as_me:$LINENO: result: none" >&5
45199echo "${ECHO_T}none" >&6
45200 fi
45201
45202 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
45203
45204D='$'
45205cat <<EOF >bk-deps
a848cd7e
SC
45206#!/bin/sh
45207
45208# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45209# script. It is used to track C/C++ files dependencies in portable way.
45210#
45211# Permission is given to use this file in any way.
45212
473276a9 45213DEPSMODE=${DEPSMODE}
a848cd7e 45214DEPSDIR=.deps
0ad5d837 45215DEPSFLAG="${DEPSFLAG}"
a848cd7e 45216
473276a9 45217mkdir -p ${D}DEPSDIR
a848cd7e 45218
473276a9 45219if test ${D}DEPSMODE = gcc ; then
0ad5d837 45220 ${D}* ${D}{DEPSFLAG}
473276a9
VS
45221 status=${D}?
45222 if test ${D}{status} != 0 ; then
45223 exit ${D}{status}
a848cd7e
SC
45224 fi
45225 # move created file to the location we want it in:
473276a9
VS
45226 while test ${D}# -gt 0; do
45227 case "${D}1" in
a848cd7e
SC
45228 -o )
45229 shift
473276a9 45230 objfile=${D}1
a848cd7e
SC
45231 ;;
45232 -* )
45233 ;;
45234 * )
473276a9 45235 srcfile=${D}1
a848cd7e
SC
45236 ;;
45237 esac
45238 shift
45239 done
1e9e8aba
DE
45240 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
45241 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
45242 if test -f ${D}depfile ; then
45243 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45244 rm -f ${D}depfile
a848cd7e 45245 else
a1aa0349 45246 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 45247 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
45248 if test ! -f ${D}depfile ; then
45249 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
45250 depfile="${D}objfile.d"
45251 fi
473276a9
VS
45252 if test -f ${D}depfile ; then
45253 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45254 rm -f ${D}depfile
a848cd7e
SC
45255 fi
45256 fi
45257 exit 0
81f90336 45258elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 45259 ${D}* || exit ${D}?
81f90336
MW
45260 # Run mwcc again with -MM and redirect into the dep file we want
45261 # NOTE: We can't use shift here because we need ${D}* to be valid
45262 prevarg=
45263 for arg in ${D}* ; do
45264 if test "${D}prevarg" = "-o"; then
45265 objfile=${D}arg
45266 else
45267 case "${D}arg" in
45268 -* )
45269 ;;
45270 * )
45271 srcfile=${D}arg
45272 ;;
45273 esac
45274 fi
45275 prevarg="${D}arg"
45276 done
0ad5d837 45277 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 45278 exit 0
0ad5d837 45279elif test ${D}DEPSMODE = unixcc; then
f6b50c59 45280 ${D}* || exit ${D}?
a9e5b1f0
MW
45281 # Run compiler again with deps flag and redirect into the dep file.
45282 # It doesn't work if the '-o FILE' option is used, but without it the
45283 # dependency file will contain the wrong name for the object. So it is
45284 # removed from the command line, and the dep file is fixed with sed.
45285 cmd=""
45286 while test ${D}# -gt 0; do
45287 case "${D}1" in
45288 -o )
45289 shift
45290 objfile=${D}1
45291 ;;
45292 * )
45293 eval arg${D}#=\\${D}1
45294 cmd="${D}cmd \\${D}arg${D}#"
45295 ;;
45296 esac
45297 shift
45298 done
0ad5d837 45299 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 45300 exit 0
a848cd7e 45301else
473276a9
VS
45302 ${D}*
45303 exit ${D}?
a848cd7e
SC
45304fi
45305EOF
473276a9 45306
a848cd7e
SC
45307 chmod +x bk-deps
45308 fi
45309
45310
45311
45312
45313 RESCOMP=
45314 SETFILE=
45315
45316 case ${BAKEFILE_HOST} in
45317 *-*-cygwin* | *-*-mingw32* )
45318 if test "$build" != "$host" ; then
45319 RESCOMP=$host_alias-windres
45320 else
45321 # Extract the first word of "windres", so it can be a program name with args.
45322set dummy windres; ac_word=$2
45323echo "$as_me:$LINENO: checking for $ac_word" >&5
45324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45325if test "${ac_cv_prog_RESCOMP+set}" = set; then
45326 echo $ECHO_N "(cached) $ECHO_C" >&6
45327else
45328 if test -n "$RESCOMP"; then
45329 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45330else
45331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45332for as_dir in $PATH
45333do
45334 IFS=$as_save_IFS
45335 test -z "$as_dir" && as_dir=.
45336 for ac_exec_ext in '' $ac_executable_extensions; do
45337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45338 ac_cv_prog_RESCOMP="windres"
45339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45340 break 2
45341 fi
45342done
45343done
45344
45345 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
45346fi
45347fi
45348RESCOMP=$ac_cv_prog_RESCOMP
45349if test -n "$RESCOMP"; then
45350 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45351echo "${ECHO_T}$RESCOMP" >&6
45352else
45353 echo "$as_me:$LINENO: result: no" >&5
45354echo "${ECHO_T}no" >&6
45355fi
45356
45357 fi
45358 ;;
45359
1e9e8aba 45360 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
45361 # Extract the first word of "Rez", so it can be a program name with args.
45362set dummy Rez; ac_word=$2
45363echo "$as_me:$LINENO: checking for $ac_word" >&5
45364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45365if test "${ac_cv_prog_RESCOMP+set}" = set; then
45366 echo $ECHO_N "(cached) $ECHO_C" >&6
45367else
45368 if test -n "$RESCOMP"; then
45369 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45370else
45371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45372for as_dir in $PATH
45373do
45374 IFS=$as_save_IFS
45375 test -z "$as_dir" && as_dir=.
45376 for ac_exec_ext in '' $ac_executable_extensions; do
45377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45378 ac_cv_prog_RESCOMP="Rez"
45379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45380 break 2
45381 fi
45382done
45383done
45384
45385 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
45386fi
45387fi
45388RESCOMP=$ac_cv_prog_RESCOMP
45389if test -n "$RESCOMP"; then
45390 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45391echo "${ECHO_T}$RESCOMP" >&6
45392else
45393 echo "$as_me:$LINENO: result: no" >&5
45394echo "${ECHO_T}no" >&6
45395fi
45396
45397 # Extract the first word of "SetFile", so it can be a program name with args.
45398set dummy SetFile; ac_word=$2
45399echo "$as_me:$LINENO: checking for $ac_word" >&5
45400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45401if test "${ac_cv_prog_SETFILE+set}" = set; then
45402 echo $ECHO_N "(cached) $ECHO_C" >&6
45403else
45404 if test -n "$SETFILE"; then
45405 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
45406else
45407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45408for as_dir in $PATH
45409do
45410 IFS=$as_save_IFS
45411 test -z "$as_dir" && as_dir=.
45412 for ac_exec_ext in '' $ac_executable_extensions; do
45413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45414 ac_cv_prog_SETFILE="SetFile"
45415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45416 break 2
45417 fi
45418done
45419done
45420
45421 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
45422fi
45423fi
45424SETFILE=$ac_cv_prog_SETFILE
45425if test -n "$SETFILE"; then
45426 echo "$as_me:$LINENO: result: $SETFILE" >&5
45427echo "${ECHO_T}$SETFILE" >&6
45428else
45429 echo "$as_me:$LINENO: result: no" >&5
45430echo "${ECHO_T}no" >&6
45431fi
45432
45433 ;;
45434 esac
45435
45436
45437
45438
45439
c9469659 45440 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 45441
dcc1b6ad 45442
c9469659 45443BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 45444
646b6ec1 45445
74b84332 45446
a848cd7e
SC
45447 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
45448if test "${enable_precomp_headers+set}" = set; then
45449 enableval="$enable_precomp_headers"
45450 bk_use_pch="$enableval"
45451fi;
45452
45453 GCC_PCH=0
45454
45455 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
45456 if test "x$GCC" = "xyes"; then
45457 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
45458echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
45459 cat >conftest.$ac_ext <<_ACEOF
45460/* confdefs.h. */
45461_ACEOF
45462cat confdefs.h >>conftest.$ac_ext
45463cat >>conftest.$ac_ext <<_ACEOF
45464/* end confdefs.h. */
45465
45466int
45467main ()
45468{
45469
45470 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
45471 #error "no pch support"
45472 #endif
45473 #if (__GNUC__ < 3)
45474 #error "no pch support"
45475 #endif
45476 #if (__GNUC__ == 3) && \
45477 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
45478 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
45479 #error "no pch support"
45480 #endif
45481
45482 ;
45483 return 0;
45484}
45485_ACEOF
45486rm -f conftest.$ac_objext
45487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45488 (eval $ac_compile) 2>conftest.er1
a848cd7e 45489 ac_status=$?
ac1cb8d3
VS
45490 grep -v '^ *+' conftest.er1 >conftest.err
45491 rm -f conftest.er1
45492 cat conftest.err >&5
a848cd7e
SC
45493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45494 (exit $ac_status); } &&
0093c2fc 45495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45497 (eval $ac_try) 2>&5
45498 ac_status=$?
45499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45500 (exit $ac_status); }; } &&
45501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45503 (eval $ac_try) 2>&5
45504 ac_status=$?
45505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45506 (exit $ac_status); }; }; then
45507
45508 echo "$as_me:$LINENO: result: yes" >&5
45509echo "${ECHO_T}yes" >&6
a848cd7e
SC
45510 GCC_PCH=1
45511
45512else
45513 echo "$as_me: failed program was:" >&5
45514sed 's/^/| /' conftest.$ac_ext >&5
45515
45516
45517 echo "$as_me:$LINENO: result: no" >&5
45518echo "${ECHO_T}no" >&6
45519
45520fi
ac1cb8d3 45521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45522 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
45523
45524D='$'
45525cat <<EOF >bk-make-pch
a848cd7e
SC
45526#!/bin/sh
45527
45528# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45529# script. It is used to generated precompiled headers.
45530#
45531# Permission is given to use this file in any way.
45532
1e9e8aba
DE
45533outfile="${D}{1}"
45534header="${D}{2}"
a848cd7e
SC
45535shift
45536shift
45537
45538compiler=
45539headerfile=
1e9e8aba
DE
45540while test ${D}{#} -gt 0; do
45541 case "${D}{1}" in
a848cd7e 45542 -I* )
1e9e8aba
DE
45543 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
45544 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
45545 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
45546 fi
45547 ;;
45548 esac
1e9e8aba 45549 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
45550 shift
45551done
45552
1e9e8aba
DE
45553if test "x${D}{headerfile}" = "x" ; then
45554 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 45555else
1e9e8aba
DE
45556 if test -f ${D}{outfile} ; then
45557 rm -f ${D}{outfile}
a848cd7e 45558 else
1e9e8aba 45559 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 45560 fi
1e9e8aba 45561 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
45562 mkdir -p .deps
45563 # can do this because gcc is >= 3.4:
1e9e8aba
DE
45564 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
45565 exit ${D}{?}
a848cd7e
SC
45566fi
45567EOF
1e9e8aba 45568
a848cd7e
SC
45569 chmod +x bk-make-pch
45570 fi
45571 fi
45572 fi
45573
45574
45575
a848cd7e
SC
45576 COND_BUILD_DEBUG="#"
45577 if test "x$BUILD" = "xdebug" ; then
45578 COND_BUILD_DEBUG=""
45579 fi
45580
45581 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
45582 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
45583 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
45584 fi
45585
45586 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
45587 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
45588 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
45589 fi
45590
45591 COND_BUILD_DEBUG_UNICODE_0="#"
45592 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
45593 COND_BUILD_DEBUG_UNICODE_0=""
45594 fi
45595
45596 COND_BUILD_DEBUG_UNICODE_1="#"
45597 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
45598 COND_BUILD_DEBUG_UNICODE_1=""
45599 fi
45600
45601 COND_BUILD_RELEASE="#"
45602 if test "x$BUILD" = "xrelease" ; then
45603 COND_BUILD_RELEASE=""
45604 fi
45605
45606 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
45607 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
45608 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
45609 fi
45610
45611 COND_BUILD_RELEASE_UNICODE_0="#"
45612 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
45613 COND_BUILD_RELEASE_UNICODE_0=""
45614 fi
45615
45616 COND_BUILD_RELEASE_UNICODE_1="#"
45617 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
45618 COND_BUILD_RELEASE_UNICODE_1=""
45619 fi
45620
45621 COND_DEBUG_FLAG_1="#"
45622 if test "x$DEBUG_FLAG" = "x1" ; then
45623 COND_DEBUG_FLAG_1=""
45624 fi
45625
45626 COND_DEBUG_INFO_0="#"
45627 if test "x$DEBUG_INFO" = "x0" ; then
45628 COND_DEBUG_INFO_0=""
45629 fi
45630
45631 COND_DEBUG_INFO_1="#"
45632 if test "x$DEBUG_INFO" = "x1" ; then
45633 COND_DEBUG_INFO_1=""
45634 fi
45635
45636 COND_DEPS_TRACKING_0="#"
45637 if test "x$DEPS_TRACKING" = "x0" ; then
45638 COND_DEPS_TRACKING_0=""
45639 fi
45640
45641 COND_DEPS_TRACKING_1="#"
45642 if test "x$DEPS_TRACKING" = "x1" ; then
45643 COND_DEPS_TRACKING_1=""
45644 fi
45645
45646 COND_GCC_PCH_1="#"
45647 if test "x$GCC_PCH" = "x1" ; then
45648 COND_GCC_PCH_1=""
45649 fi
45650
45651 COND_MONOLITHIC_0="#"
45652 if test "x$MONOLITHIC" = "x0" ; then
45653 COND_MONOLITHIC_0=""
45654 fi
45655
45656 COND_MONOLITHIC_0_SHARED_0="#"
45657 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
45658 COND_MONOLITHIC_0_SHARED_0=""
45659 fi
45660
45661 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
45662 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
45663 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
45664 fi
45665
90970d69
DE
45666 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
45667 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45668 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
45669 fi
45670
a848cd7e
SC
45671 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
45672 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45673 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
45674 fi
45675
6671c68b
VZ
45676 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
45677 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45678 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
45679 fi
45680
a848cd7e
SC
45681 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
45682 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
45683 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
45684 fi
45685
ceec2216
RL
45686 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
45687 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45688 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
45689 fi
45690
a848cd7e
SC
45691 COND_MONOLITHIC_0_SHARED_1="#"
45692 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
45693 COND_MONOLITHIC_0_SHARED_1=""
45694 fi
45695
45696 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
45697 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
45698 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
45699 fi
45700
90970d69
DE
45701 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
45702 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45703 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
45704 fi
45705
a848cd7e
SC
45706 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
45707 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45708 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
45709 fi
45710
6671c68b
VZ
45711 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
45712 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45713 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
45714 fi
45715
a848cd7e
SC
45716 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
45717 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
45718 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
45719 fi
45720
ceec2216
RL
45721 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
45722 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45723 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
45724 fi
45725
a848cd7e
SC
45726 COND_MONOLITHIC_0_USE_ODBC_1="#"
45727 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
45728 COND_MONOLITHIC_0_USE_ODBC_1=""
45729 fi
45730
45731 COND_MONOLITHIC_1="#"
45732 if test "x$MONOLITHIC" = "x1" ; then
45733 COND_MONOLITHIC_1=""
45734 fi
45735
45736 COND_MONOLITHIC_1_SHARED_0="#"
45737 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
45738 COND_MONOLITHIC_1_SHARED_0=""
45739 fi
45740
45741 COND_MONOLITHIC_1_SHARED_1="#"
45742 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
45743 COND_MONOLITHIC_1_SHARED_1=""
45744 fi
45745
45746 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
45747 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
45748 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
45749 fi
45750
45751 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
45752 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
45753 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
45754 fi
45755
eb730a0c
JS
45756 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
45757 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45758 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
45759 fi
45760
a848cd7e
SC
45761 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
45762 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45763 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
45764 fi
45765
45766 COND_PLATFORM_MACOSX_1="#"
45767 if test "x$PLATFORM_MACOSX" = "x1" ; then
45768 COND_PLATFORM_MACOSX_1=""
45769 fi
45770
a30f955f
VS
45771 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
45772 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
45773 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
45774 fi
45775
a848cd7e
SC
45776 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
45777 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
45778 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
45779 fi
45780
45781 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
45782 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
45783 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
45784 fi
45785
45786 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45787 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45788 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45789 fi
45790
fc480dc1
DE
45791 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45792 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45793 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45794 fi
45795
1e9e8aba
DE
45796 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45797 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45798 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45799 fi
45800
ebee3cd0
VS
45801 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45802 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45803 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45804 fi
45805
45806 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45807 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45808 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45809 fi
45810
a848cd7e
SC
45811 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45812 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45813 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45814 fi
45815
45816 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45817 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45818 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45819 fi
45820
b48a2016
DE
45821 COND_PLATFORM_MACOS_1="#"
45822 if test "x$PLATFORM_MACOS" = "x1" ; then
45823 COND_PLATFORM_MACOS_1=""
45824 fi
45825
083508af
MW
45826 COND_PLATFORM_MAC_1="#"
45827 if test "x$PLATFORM_MAC" = "x1" ; then
45828 COND_PLATFORM_MAC_1=""
45829 fi
45830
83d8eb47
MW
45831 COND_PLATFORM_MSDOS_1="#"
45832 if test "x$PLATFORM_MSDOS" = "x1" ; then
45833 COND_PLATFORM_MSDOS_1=""
45834 fi
45835
a848cd7e
SC
45836 COND_PLATFORM_OS2_1="#"
45837 if test "x$PLATFORM_OS2" = "x1" ; then
45838 COND_PLATFORM_OS2_1=""
45839 fi
45840
45841 COND_PLATFORM_UNIX_0="#"
45842 if test "x$PLATFORM_UNIX" = "x0" ; then
45843 COND_PLATFORM_UNIX_0=""
45844 fi
45845
45846 COND_PLATFORM_UNIX_1="#"
45847 if test "x$PLATFORM_UNIX" = "x1" ; then
45848 COND_PLATFORM_UNIX_1=""
45849 fi
45850
45851 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45852 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45853 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45854 fi
45855
45856 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45857 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45858 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45859 fi
45860
45861 COND_PLATFORM_WIN32_0="#"
45862 if test "x$PLATFORM_WIN32" = "x0" ; then
45863 COND_PLATFORM_WIN32_0=""
45864 fi
45865
45866 COND_PLATFORM_WIN32_1="#"
45867 if test "x$PLATFORM_WIN32" = "x1" ; then
45868 COND_PLATFORM_WIN32_1=""
45869 fi
45870
45871 COND_SHARED_0="#"
45872 if test "x$SHARED" = "x0" ; then
45873 COND_SHARED_0=""
45874 fi
45875
083508af
MW
45876 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45877 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45878 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45879 fi
45880
45881 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45882 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45883 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45884 fi
45885
45886 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45887 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45888 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45889 fi
45890
a848cd7e
SC
45891 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45892 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45893 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45894 fi
45895
45896 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45897 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45898 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45899 fi
45900
45901 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45902 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45903 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45904 fi
45905
45906 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45907 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45908 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45909 fi
45910
083508af
MW
45911 COND_SHARED_0_USE_XRC_1="#"
45912 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45913 COND_SHARED_0_USE_XRC_1=""
45914 fi
45915
a848cd7e
SC
45916 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45917 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45918 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45919 fi
45920
45921 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45922 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45923 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45924 fi
45925
45926 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45927 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45928 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45929 fi
45930
45931 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45932 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45933 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45934 fi
45935
45936 COND_SHARED_1="#"
45937 if test "x$SHARED" = "x1" ; then
45938 COND_SHARED_1=""
45939 fi
45940
45941 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45942 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45943 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45944 fi
45945
083508af
MW
45946 COND_SHARED_1_USE_XRC_1="#"
45947 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45948 COND_SHARED_1_USE_XRC_1=""
45949 fi
45950
a30f955f
VS
45951 COND_TOOLKIT_="#"
45952 if test "x$TOOLKIT" = "x" ; then
45953 COND_TOOLKIT_=""
45954 fi
45955
a848cd7e
SC
45956 COND_TOOLKIT_COCOA="#"
45957 if test "x$TOOLKIT" = "xCOCOA" ; then
45958 COND_TOOLKIT_COCOA=""
45959 fi
45960
a49baeab
DE
45961 COND_TOOLKIT_COCOA_USE_GUI_1="#"
45962 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
45963 COND_TOOLKIT_COCOA_USE_GUI_1=""
45964 fi
45965
a848cd7e
SC
45966 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
45967 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45968 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
45969 fi
45970
45971 COND_TOOLKIT_GTK="#"
45972 if test "x$TOOLKIT" = "xGTK" ; then
45973 COND_TOOLKIT_GTK=""
45974 fi
45975
45976 COND_TOOLKIT_GTK_USE_GUI_1="#"
45977 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
45978 COND_TOOLKIT_GTK_USE_GUI_1=""
45979 fi
45980
45981 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
45982 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45983 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
45984 fi
45985
45986 COND_TOOLKIT_MAC="#"
45987 if test "x$TOOLKIT" = "xMAC" ; then
45988 COND_TOOLKIT_MAC=""
45989 fi
45990
45991 COND_TOOLKIT_MAC_USE_GUI_1="#"
45992 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45993 COND_TOOLKIT_MAC_USE_GUI_1=""
45994 fi
45995
45996 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45997 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45998 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45999 fi
46000
46001 COND_TOOLKIT_MGL="#"
46002 if test "x$TOOLKIT" = "xMGL" ; then
46003 COND_TOOLKIT_MGL=""
46004 fi
46005
46006 COND_TOOLKIT_MGL_USE_GUI_1="#"
46007 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
46008 COND_TOOLKIT_MGL_USE_GUI_1=""
46009 fi
46010
46011 COND_TOOLKIT_MOTIF="#"
46012 if test "x$TOOLKIT" = "xMOTIF" ; then
46013 COND_TOOLKIT_MOTIF=""
46014 fi
46015
46016 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
46017 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
46018 COND_TOOLKIT_MOTIF_USE_GUI_1=""
46019 fi
46020
46021 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
46022 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46023 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
46024 fi
46025
46026 COND_TOOLKIT_MSW="#"
46027 if test "x$TOOLKIT" = "xMSW" ; then
46028 COND_TOOLKIT_MSW=""
46029 fi
46030
46031 COND_TOOLKIT_MSW_USE_GUI_1="#"
46032 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
46033 COND_TOOLKIT_MSW_USE_GUI_1=""
46034 fi
46035
46036 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
46037 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46038 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
46039 fi
46040
0ee4059d
DE
46041 COND_TOOLKIT_MSW_WXUNIV_0="#"
46042 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
46043 COND_TOOLKIT_MSW_WXUNIV_0=""
46044 fi
46045
a848cd7e
SC
46046 COND_TOOLKIT_PM="#"
46047 if test "x$TOOLKIT" = "xPM" ; then
46048 COND_TOOLKIT_PM=""
46049 fi
46050
46051 COND_TOOLKIT_PM_USE_GUI_1="#"
46052 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
46053 COND_TOOLKIT_PM_USE_GUI_1=""
46054 fi
46055
46056 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
46057 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46058 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
46059 fi
46060
3fd9c298
DE
46061 COND_TOOLKIT_WINCE="#"
46062 if test "x$TOOLKIT" = "xWINCE" ; then
46063 COND_TOOLKIT_WINCE=""
46064 fi
46065
46066 COND_TOOLKIT_WINCE_USE_GUI_1="#"
46067 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
46068 COND_TOOLKIT_WINCE_USE_GUI_1=""
46069 fi
46070
46071 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
46072 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46073 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
46074 fi
46075
0ee4059d
DE
46076 COND_TOOLKIT_WINCE_WXUNIV_0="#"
46077 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
46078 COND_TOOLKIT_WINCE_WXUNIV_0=""
46079 fi
46080
a848cd7e
SC
46081 COND_TOOLKIT_X11="#"
46082 if test "x$TOOLKIT" = "xX11" ; then
46083 COND_TOOLKIT_X11=""
46084 fi
46085
46086 COND_TOOLKIT_X11_USE_GUI_1="#"
46087 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
46088 COND_TOOLKIT_X11_USE_GUI_1=""
46089 fi
46090
46091 COND_UNICODE_1="#"
46092 if test "x$UNICODE" = "x1" ; then
46093 COND_UNICODE_1=""
46094 fi
46095
46096 COND_USE_EXCEPTIONS_0="#"
46097 if test "x$USE_EXCEPTIONS" = "x0" ; then
46098 COND_USE_EXCEPTIONS_0=""
46099 fi
46100
46101 COND_USE_EXCEPTIONS_1="#"
46102 if test "x$USE_EXCEPTIONS" = "x1" ; then
46103 COND_USE_EXCEPTIONS_1=""
46104 fi
46105
46106 COND_USE_GUI_0="#"
46107 if test "x$USE_GUI" = "x0" ; then
46108 COND_USE_GUI_0=""
46109 fi
46110
46111 COND_USE_GUI_1="#"
46112 if test "x$USE_GUI" = "x1" ; then
46113 COND_USE_GUI_1=""
46114 fi
46115
46116 COND_USE_GUI_1_WXUNIV_0="#"
46117 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46118 COND_USE_GUI_1_WXUNIV_0=""
46119 fi
46120
46121 COND_USE_GUI_1_WXUNIV_1="#"
46122 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
46123 COND_USE_GUI_1_WXUNIV_1=""
46124 fi
46125
46126 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
46127 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46128 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
46129 fi
46130
46131 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
46132 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46133 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
46134 fi
46135
46136 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
46137 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46138 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
46139 fi
46140
083508af
MW
46141 COND_USE_ODBC_1="#"
46142 if test "x$USE_ODBC" = "x1" ; then
46143 COND_USE_ODBC_1=""
46144 fi
46145
46146 COND_USE_OPENGL_1="#"
46147 if test "x$USE_OPENGL" = "x1" ; then
46148 COND_USE_OPENGL_1=""
46149 fi
46150
a848cd7e
SC
46151 COND_USE_PLUGINS_0="#"
46152 if test "x$USE_PLUGINS" = "x0" ; then
46153 COND_USE_PLUGINS_0=""
46154 fi
46155
0b78747f
MW
46156 COND_USE_RTTI_0="#"
46157 if test "x$USE_RTTI" = "x0" ; then
46158 COND_USE_RTTI_0=""
46159 fi
46160
46161 COND_USE_RTTI_1="#"
46162 if test "x$USE_RTTI" = "x1" ; then
46163 COND_USE_RTTI_1=""
46164 fi
46165
a848cd7e
SC
46166 COND_USE_SOSYMLINKS_1="#"
46167 if test "x$USE_SOSYMLINKS" = "x1" ; then
46168 COND_USE_SOSYMLINKS_1=""
46169 fi
46170
eb730a0c
JS
46171 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
46172 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
46173 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
46174 fi
46175
a848cd7e
SC
46176 COND_USE_SOVERLINUX_1="#"
46177 if test "x$USE_SOVERLINUX" = "x1" ; then
46178 COND_USE_SOVERLINUX_1=""
46179 fi
46180
46181 COND_USE_SOVERSION_0="#"
46182 if test "x$USE_SOVERSION" = "x0" ; then
46183 COND_USE_SOVERSION_0=""
46184 fi
46185
46186 COND_USE_SOVERSOLARIS_1="#"
46187 if test "x$USE_SOVERSOLARIS" = "x1" ; then
46188 COND_USE_SOVERSOLARIS_1=""
46189 fi
46190
0b78747f
MW
46191 COND_USE_THREADS_0="#"
46192 if test "x$USE_THREADS" = "x0" ; then
46193 COND_USE_THREADS_0=""
46194 fi
46195
46196 COND_USE_THREADS_1="#"
46197 if test "x$USE_THREADS" = "x1" ; then
46198 COND_USE_THREADS_1=""
46199 fi
46200
a13a7f89
RL
46201 COND_USE_XRC_1="#"
46202 if test "x$USE_XRC" = "x1" ; then
46203 COND_USE_XRC_1=""
46204 fi
46205
eb730a0c
JS
46206 COND_WINDOWS_IMPLIB_1="#"
46207 if test "x$WINDOWS_IMPLIB" = "x1" ; then
46208 COND_WINDOWS_IMPLIB_1=""
46209 fi
46210
a848cd7e
SC
46211 COND_WITH_PLUGIN_SDL_1="#"
46212 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
46213 COND_WITH_PLUGIN_SDL_1=""
46214 fi
46215
1e6eb025
VZ
46216 COND_WXUNIV_0="#"
46217 if test "x$WXUNIV" = "x0" ; then
46218 COND_WXUNIV_0=""
46219 fi
46220
a848cd7e
SC
46221 COND_WXUNIV_1="#"
46222 if test "x$WXUNIV" = "x1" ; then
46223 COND_WXUNIV_1=""
46224 fi
46225
46226 COND_WXUSE_EXPAT_BUILTIN="#"
46227 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
46228 COND_WXUSE_EXPAT_BUILTIN=""
46229 fi
46230
46231 COND_WXUSE_LIBJPEG_BUILTIN="#"
46232 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46233 COND_WXUSE_LIBJPEG_BUILTIN=""
46234 fi
46235
46236 COND_WXUSE_LIBPNG_BUILTIN="#"
46237 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46238 COND_WXUSE_LIBPNG_BUILTIN=""
46239 fi
46240
46241 COND_WXUSE_LIBTIFF_BUILTIN="#"
46242 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46243 COND_WXUSE_LIBTIFF_BUILTIN=""
46244 fi
46245
46246 COND_WXUSE_ODBC_BUILTIN="#"
46247 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
46248 COND_WXUSE_ODBC_BUILTIN=""
46249 fi
46250
46251 COND_WXUSE_REGEX_BUILTIN="#"
46252 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
46253 COND_WXUSE_REGEX_BUILTIN=""
46254 fi
46255
46256 COND_WXUSE_ZLIB_BUILTIN="#"
46257 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
46258 COND_WXUSE_ZLIB_BUILTIN=""
46259 fi
46260
46261
46262
810b94f0
MW
46263 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
46264 { { 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
46265echo "$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;}
46266 { (exit 1); exit 1; }; }
46267 fi
46268
2057db16
VS
46269 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
46270 { { 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
46271echo "$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;}
46272 { (exit 1); exit 1; }; }
46273 fi
46274
a848cd7e 46275
ceec2216
RL
46276if test "$wxUSE_SHARED" = "yes"; then
46277
46278 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
46279 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
46280
5b674b9d
DE
46281 case "${host}" in
46282 *-pc-os2_emx | *-pc-os2-emx )
46283 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46284 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46285 cp -p ${srcdir}/src/os2/dllnames.sh .
46286 cp -p ${srcdir}/src/os2/dllar.sh .
46287 ;;
46288 esac
ceec2216
RL
46289else
46290
46291 EXE_LINKER="$CXX -o"
46292
46293fi
69120ee4
VZ
46294if test "$wxUSE_OMF" = "yes"; then
46295 case "${host}" in
46296 *-pc-os2_emx | *-pc-os2-emx )
46297 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
46298 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46299 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46300 ;;
46301 esac
46302fi
a848cd7e 46303
c08ebc62 46304if test $GCC_PCH = 1 ; then
254e8e29 46305 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 46306fi
a848cd7e 46307
2eef8513 46308CPPFLAGS="$CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
46309
46310SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
46311
46312
46313
46314
46315
46316
46317
46318
46319
46320
46321
46322
46323
46324
46325
46326
46327
46328
46329
46330
46331
46332
46333
46334
46335
46336
46337
46338
46339
46340
46341
46342
46343
46344
46345
46346
46347
46348
46349
46350
46351
46352
a848cd7e
SC
46353
46354
46355
46356
46357
46358
46359
46360
46361
46362
46363
46364
46365
46366
46367
46368
46369
46370
ddd14b14 46371
a848cd7e
SC
46372
46373
46374echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46375echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46376set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46377if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46378 echo $ECHO_N "(cached) $ECHO_C" >&6
46379else
46380 cat >conftest.make <<\_ACEOF
46381all:
46382 @echo 'ac_maketemp="$(MAKE)"'
46383_ACEOF
46384# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46385eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46386if test -n "$ac_maketemp"; then
46387 eval ac_cv_prog_make_${ac_make}_set=yes
46388else
46389 eval ac_cv_prog_make_${ac_make}_set=no
46390fi
46391rm -f conftest.make
46392fi
46393if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46394 echo "$as_me:$LINENO: result: yes" >&5
46395echo "${ECHO_T}yes" >&6
46396 SET_MAKE=
46397else
46398 echo "$as_me:$LINENO: result: no" >&5
46399echo "${ECHO_T}no" >&6
46400 SET_MAKE="MAKE=${MAKE-make}"
46401fi
46402
46403
a848cd7e 46404
ceec2216
RL
46405 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
46406
a848cd7e 46407
ceec2216 46408 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 46409
a848cd7e 46410
ceec2216 46411 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 46412
ceec2216
RL
46413
46414 ac_config_files="$ac_config_files version-script Makefile"
46415
46416
46417 ac_config_commands="$ac_config_commands wx-config
46418 "
a848cd7e
SC
46419
46420
9103d280 46421
1c14217d 46422if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
46423if test "$wxUSE_GUI" = "yes"; then
46424 SUBDIRS="samples demos utils contrib"
46425else SUBDIRS="samples utils"
46426fi
46427
46428
46429
46430# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
46431if test "${with_cppunit_prefix+set}" = set; then
46432 withval="$with_cppunit_prefix"
46433 cppunit_config_prefix="$withval"
46434else
46435 cppunit_config_prefix=""
46436fi;
46437
46438# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
46439if test "${with_cppunit_exec_prefix+set}" = set; then
46440 withval="$with_cppunit_exec_prefix"
46441 cppunit_config_exec_prefix="$withval"
46442else
46443 cppunit_config_exec_prefix=""
46444fi;
46445
46446 if test x$cppunit_config_exec_prefix != x ; then
46447 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
46448 if test x${CPPUNIT_CONFIG+set} != xset ; then
46449 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
46450 fi
46451 fi
46452 if test x$cppunit_config_prefix != x ; then
46453 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
46454 if test x${CPPUNIT_CONFIG+set} != xset ; then
46455 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
46456 fi
46457 fi
46458
46459 # Extract the first word of "cppunit-config", so it can be a program name with args.
46460set dummy cppunit-config; ac_word=$2
46461echo "$as_me:$LINENO: checking for $ac_word" >&5
46462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46463if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
46464 echo $ECHO_N "(cached) $ECHO_C" >&6
46465else
46466 case $CPPUNIT_CONFIG in
46467 [\\/]* | ?:[\\/]*)
46468 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
46469 ;;
46470 *)
46471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46472for as_dir in $PATH
46473do
46474 IFS=$as_save_IFS
46475 test -z "$as_dir" && as_dir=.
46476 for ac_exec_ext in '' $ac_executable_extensions; do
46477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46478 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46480 break 2
46481 fi
46482done
46483done
46484
46485 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
46486 ;;
46487esac
46488fi
46489CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
46490
46491if test -n "$CPPUNIT_CONFIG"; then
46492 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
46493echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
46494else
46495 echo "$as_me:$LINENO: result: no" >&5
46496echo "${ECHO_T}no" >&6
46497fi
46498
46499 cppunit_version_min=1.8.0
46500
46501 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
46502echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
46503 no_cppunit=""
46504 if test "$CPPUNIT_CONFIG" = "no" ; then
46505 no_cppunit=yes
46506 else
46507 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
46508 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
46509 cppunit_version=`$CPPUNIT_CONFIG --version`
46510
46511 cppunit_major_version=`echo $cppunit_version | \
46512 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46513 cppunit_minor_version=`echo $cppunit_version | \
46514 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46515 cppunit_micro_version=`echo $cppunit_version | \
46516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46517
46518 cppunit_major_min=`echo $cppunit_version_min | \
46519 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46520 cppunit_minor_min=`echo $cppunit_version_min | \
46521 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46522 cppunit_micro_min=`echo $cppunit_version_min | \
46523 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46524
46525 cppunit_version_proper=`expr \
46526 $cppunit_major_version \> $cppunit_major_min \| \
46527 $cppunit_major_version \= $cppunit_major_min \& \
46528 $cppunit_minor_version \> $cppunit_minor_min \| \
46529 $cppunit_major_version \= $cppunit_major_min \& \
46530 $cppunit_minor_version \= $cppunit_minor_min \& \
46531 $cppunit_micro_version \>= $cppunit_micro_min `
46532
46533 if test "$cppunit_version_proper" = "1" ; then
46534 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
46535echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
46536 else
46537 echo "$as_me:$LINENO: result: no" >&5
46538echo "${ECHO_T}no" >&6
46539 no_cppunit=yes
46540 fi
46541 fi
46542
46543 if test "x$no_cppunit" = x ; then
c2218763 46544 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
46545 else
46546 CPPUNIT_CFLAGS=""
46547 CPPUNIT_LIBS=""
c2218763 46548 :
a848cd7e
SC
46549 fi
46550
46551
46552
46553
46554
46555for subdir in `echo $SUBDIRS`; do
46556 if test -d ${srcdir}/${subdir} ; then
46557 if test "$wxUSE_GUI" = "yes"; then
46558 if test ${subdir} = "samples"; then
46559 makefiles="samples/Makefile.in $makefiles"
46560 for sample in `echo $SAMPLES_SUBDIRS`; do
46561 if test -d $srcdir/samples/$sample; then
46562 makefiles="samples/$sample/Makefile.in $makefiles"
46563 fi
46564 done
9c112555
MW
46565 else
46566 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
46567 eval "disabled=\$$disabled_var"
46568 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
46569 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
46570 fi
46571 else if test ${subdir} = "samples"; then
46572 makefiles="samples/Makefile.in samples/console/Makefile.in"
46573 elif test ${subdir} = "utils"; then
6537ccf8
VS
46574 makefiles=""
46575 for util in HelpGen tex2rtf ; do
46576 if test -d $srcdir/utils/$util ; then
46577 makefiles="utils/$util/Makefile.in \
46578 utils/$util/src/Makefile.in \
46579 $makefiles"
46580 fi
46581 done
a848cd7e
SC
46582 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
46583 fi
46584 fi
46585
46586 for mkin in $makefiles ; do
46587 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
46588 ac_config_files="$ac_config_files $mk"
46589
46590 done
46591 fi
46592done
1c14217d 46593fi
a848cd7e
SC
46594cat >confcache <<\_ACEOF
46595# This file is a shell script that caches the results of configure
46596# tests run on this system so they can be shared between configure
46597# scripts and configure runs, see configure's option --config-cache.
46598# It is not useful on other systems. If it contains results you don't
46599# want to keep, you may remove or edit it.
46600#
46601# config.status only pays attention to the cache file if you give it
46602# the --recheck option to rerun configure.
46603#
46604# `ac_cv_env_foo' variables (set or unset) will be overridden when
46605# loading this file, other *unset* `ac_cv_foo' will be assigned the
46606# following values.
46607
46608_ACEOF
46609
46610# The following way of writing the cache mishandles newlines in values,
46611# but we know of no workaround that is simple, portable, and efficient.
46612# So, don't put newlines in cache variables' values.
46613# Ultrix sh set writes to stderr and can't be redirected directly,
46614# and sets the high bit in the cache file unless we assign to the vars.
46615{
46616 (set) 2>&1 |
46617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
46618 *ac_space=\ *)
46619 # `set' does not quote correctly, so add quotes (double-quote
46620 # substitution turns \\\\ into \\, and sed turns \\ into \).
46621 sed -n \
ac1cb8d3
VS
46622 "s/'/'\\\\''/g;
46623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
46624 ;;
46625 *)
46626 # `set' quotes correctly as required by POSIX, so do not add quotes.
46627 sed -n \
ac1cb8d3 46628 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
46629 ;;
46630 esac;
46631} |
46632 sed '
46633 t clear
46634 : clear
46635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46636 t end
46637 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46638 : end' >>confcache
46639if diff $cache_file confcache >/dev/null 2>&1; then :; else
46640 if test -w $cache_file; then
46641 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46642 cat confcache >$cache_file
46643 else
46644 echo "not updating unwritable cache $cache_file"
46645 fi
46646fi
46647rm -f confcache
46648
46649test "x$prefix" = xNONE && prefix=$ac_default_prefix
46650# Let make expand exec_prefix.
46651test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46652
46653# VPATH may cause trouble with some makes, so we remove $(srcdir),
46654# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46655# trailing colons and then remove the whole line if VPATH becomes empty
46656# (actually we leave an empty line to preserve line numbers).
46657if test "x$srcdir" = x.; then
ac1cb8d3 46658 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
46659s/:*\$(srcdir):*/:/;
46660s/:*\${srcdir}:*/:/;
46661s/:*@srcdir@:*/:/;
ac1cb8d3 46662s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 46663s/:*$//;
ac1cb8d3 46664s/^[^=]*=[ ]*$//;
a848cd7e
SC
46665}'
46666fi
46667
46668DEFS=-DHAVE_CONFIG_H
46669
46670ac_libobjs=
46671ac_ltlibobjs=
46672for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46673 # 1. Remove the extension, and $U if already installed.
46674 ac_i=`echo "$ac_i" |
ac1cb8d3 46675 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
46676 # 2. Add them.
46677 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46678 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46679done
46680LIBOBJS=$ac_libobjs
46681
46682LTLIBOBJS=$ac_ltlibobjs
46683
46684
46685
46686: ${CONFIG_STATUS=./config.status}
46687ac_clean_files_save=$ac_clean_files
46688ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46689{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46690echo "$as_me: creating $CONFIG_STATUS" >&6;}
46691cat >$CONFIG_STATUS <<_ACEOF
46692#! $SHELL
46693# Generated by $as_me.
46694# Run this file to recreate the current configuration.
46695# Compiler output produced by configure, useful for debugging
46696# configure, is in config.log if it exists.
46697
46698debug=false
46699ac_cs_recheck=false
46700ac_cs_silent=false
46701SHELL=\${CONFIG_SHELL-$SHELL}
46702_ACEOF
46703
46704cat >>$CONFIG_STATUS <<\_ACEOF
46705## --------------------- ##
46706## M4sh Initialization. ##
46707## --------------------- ##
46708
46709# Be Bourne compatible
46710if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46711 emulate sh
46712 NULLCMD=:
46713 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46714 # is contrary to our usage. Disable this feature.
46715 alias -g '${1+"$@"}'='"$@"'
46716elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46717 set -o posix
46718fi
ac1cb8d3 46719DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
46720
46721# Support unset when possible.
ac1cb8d3 46722if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
46723 as_unset=unset
46724else
46725 as_unset=false
46726fi
46727
46728
46729# Work around bugs in pre-3.0 UWIN ksh.
46730$as_unset ENV MAIL MAILPATH
46731PS1='$ '
46732PS2='> '
46733PS4='+ '
46734
46735# NLS nuisances.
46736for as_var in \
46737 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46738 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46739 LC_TELEPHONE LC_TIME
46740do
ac1cb8d3 46741 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
46742 eval $as_var=C; export $as_var
46743 else
46744 $as_unset $as_var
46745 fi
46746done
46747
46748# Required to use basename.
46749if expr a : '\(a\)' >/dev/null 2>&1; then
46750 as_expr=expr
46751else
46752 as_expr=false
46753fi
46754
46755if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46756 as_basename=basename
46757else
46758 as_basename=false
46759fi
46760
46761
46762# Name of the executable.
46763as_me=`$as_basename "$0" ||
46764$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46765 X"$0" : 'X\(//\)$' \| \
46766 X"$0" : 'X\(/\)$' \| \
46767 . : '\(.\)' 2>/dev/null ||
46768echo X/"$0" |
46769 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46770 /^X\/\(\/\/\)$/{ s//\1/; q; }
46771 /^X\/\(\/\).*/{ s//\1/; q; }
46772 s/.*/./; q'`
46773
46774
46775# PATH needs CR, and LINENO needs CR and PATH.
46776# Avoid depending upon Character Ranges.
46777as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46778as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46779as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46780as_cr_digits='0123456789'
46781as_cr_alnum=$as_cr_Letters$as_cr_digits
46782
46783# The user is always right.
46784if test "${PATH_SEPARATOR+set}" != set; then
46785 echo "#! /bin/sh" >conf$$.sh
46786 echo "exit 0" >>conf$$.sh
46787 chmod +x conf$$.sh
46788 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46789 PATH_SEPARATOR=';'
46790 else
46791 PATH_SEPARATOR=:
46792 fi
46793 rm -f conf$$.sh
46794fi
46795
46796
46797 as_lineno_1=$LINENO
46798 as_lineno_2=$LINENO
46799 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46800 test "x$as_lineno_1" != "x$as_lineno_2" &&
46801 test "x$as_lineno_3" = "x$as_lineno_2" || {
46802 # Find who we are. Look in the path if we contain no path at all
46803 # relative or not.
46804 case $0 in
46805 *[\\/]* ) as_myself=$0 ;;
46806 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46807for as_dir in $PATH
46808do
46809 IFS=$as_save_IFS
46810 test -z "$as_dir" && as_dir=.
46811 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46812done
46813
46814 ;;
46815 esac
46816 # We did not find ourselves, most probably we were run as `sh COMMAND'
46817 # in which case we are not to be found in the path.
46818 if test "x$as_myself" = x; then
46819 as_myself=$0
46820 fi
46821 if test ! -f "$as_myself"; then
46822 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46823echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46824 { (exit 1); exit 1; }; }
46825 fi
46826 case $CONFIG_SHELL in
46827 '')
46828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46829for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46830do
46831 IFS=$as_save_IFS
46832 test -z "$as_dir" && as_dir=.
46833 for as_base in sh bash ksh sh5; do
46834 case $as_dir in
46835 /*)
46836 if ("$as_dir/$as_base" -c '
46837 as_lineno_1=$LINENO
46838 as_lineno_2=$LINENO
46839 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46840 test "x$as_lineno_1" != "x$as_lineno_2" &&
46841 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46842 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46843 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46844 CONFIG_SHELL=$as_dir/$as_base
46845 export CONFIG_SHELL
46846 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46847 fi;;
46848 esac
46849 done
46850done
46851;;
46852 esac
46853
46854 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46855 # uniformly replaced by the line number. The first 'sed' inserts a
46856 # line-number line before each line; the second 'sed' does the real
46857 # work. The second script uses 'N' to pair each line-number line
46858 # with the numbered line, and appends trailing '-' during
46859 # substitution so that $LINENO is not a special case at line end.
46860 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46861 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46862 sed '=' <$as_myself |
46863 sed '
46864 N
46865 s,$,-,
46866 : loop
46867 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46868 t loop
46869 s,-$,,
46870 s,^['$as_cr_digits']*\n,,
46871 ' >$as_me.lineno &&
46872 chmod +x $as_me.lineno ||
46873 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46874echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46875 { (exit 1); exit 1; }; }
46876
46877 # Don't try to exec as it changes $[0], causing all sort of problems
46878 # (the dirname of $[0] is not the place where we might find the
46879 # original and so on. Autoconf is especially sensible to this).
46880 . ./$as_me.lineno
46881 # Exit status is that of the last command.
46882 exit
46883}
46884
46885
46886case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46887 *c*,-n*) ECHO_N= ECHO_C='
46888' ECHO_T=' ' ;;
46889 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46890 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46891esac
46892
46893if expr a : '\(a\)' >/dev/null 2>&1; then
46894 as_expr=expr
46895else
46896 as_expr=false
46897fi
46898
46899rm -f conf$$ conf$$.exe conf$$.file
46900echo >conf$$.file
46901if ln -s conf$$.file conf$$ 2>/dev/null; then
46902 # We could just check for DJGPP; but this test a) works b) is more generic
46903 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46904 if test -f conf$$.exe; then
46905 # Don't use ln at all; we don't have any links
46906 as_ln_s='cp -p'
46907 else
46908 as_ln_s='ln -s'
46909 fi
46910elif ln conf$$.file conf$$ 2>/dev/null; then
46911 as_ln_s=ln
46912else
46913 as_ln_s='cp -p'
46914fi
46915rm -f conf$$ conf$$.exe conf$$.file
46916
46917if mkdir -p . 2>/dev/null; then
46918 as_mkdir_p=:
46919else
ac1cb8d3 46920 test -d ./-p && rmdir ./-p
a848cd7e
SC
46921 as_mkdir_p=false
46922fi
46923
46924as_executable_p="test -f"
46925
46926# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 46927as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46928
46929# Sed expression to map a string onto a valid variable name.
ac1cb8d3 46930as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46931
46932
46933# IFS
46934# We need space, tab and new line, in precisely that order.
46935as_nl='
46936'
46937IFS=" $as_nl"
46938
46939# CDPATH.
46940$as_unset CDPATH
46941
46942exec 6>&1
46943
46944# Open the log real soon, to keep \$[0] and so on meaningful, and to
46945# report actual input values of CONFIG_FILES etc. instead of their
46946# values after options handling. Logging --version etc. is OK.
46947exec 5>>config.log
46948{
46949 echo
46950 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46951## Running $as_me. ##
46952_ASBOX
46953} >&5
46954cat >&5 <<_CSEOF
46955
dd8df4fc 46956This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 46957generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
46958
46959 CONFIG_FILES = $CONFIG_FILES
46960 CONFIG_HEADERS = $CONFIG_HEADERS
46961 CONFIG_LINKS = $CONFIG_LINKS
46962 CONFIG_COMMANDS = $CONFIG_COMMANDS
46963 $ $0 $@
46964
46965_CSEOF
46966echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46967echo >&5
46968_ACEOF
46969
46970# Files that config.status was made for.
46971if test -n "$ac_config_files"; then
46972 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46973fi
46974
46975if test -n "$ac_config_headers"; then
46976 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46977fi
46978
46979if test -n "$ac_config_links"; then
46980 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46981fi
46982
46983if test -n "$ac_config_commands"; then
46984 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46985fi
46986
46987cat >>$CONFIG_STATUS <<\_ACEOF
46988
46989ac_cs_usage="\
46990\`$as_me' instantiates files from templates according to the
46991current configuration.
46992
46993Usage: $0 [OPTIONS] [FILE]...
46994
46995 -h, --help print this help, then exit
46996 -V, --version print version number, then exit
46997 -q, --quiet do not print progress messages
46998 -d, --debug don't remove temporary files
46999 --recheck update $as_me by reconfiguring in the same conditions
47000 --file=FILE[:TEMPLATE]
ac1cb8d3 47001 instantiate the configuration file FILE
a848cd7e 47002 --header=FILE[:TEMPLATE]
ac1cb8d3 47003 instantiate the configuration header FILE
a848cd7e
SC
47004
47005Configuration files:
47006$config_files
47007
47008Configuration headers:
47009$config_headers
47010
47011Configuration commands:
47012$config_commands
47013
47014Report bugs to <bug-autoconf@gnu.org>."
47015_ACEOF
47016
47017cat >>$CONFIG_STATUS <<_ACEOF
47018ac_cs_version="\\
dd8df4fc 47019wxWidgets config.status 2.7.0
ac1cb8d3 47020configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
47021 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
47022
ac1cb8d3 47023Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
47024This config.status script is free software; the Free Software Foundation
47025gives unlimited permission to copy, distribute and modify it."
47026srcdir=$srcdir
47027INSTALL="$INSTALL"
47028_ACEOF
47029
47030cat >>$CONFIG_STATUS <<\_ACEOF
47031# If no file are specified by the user, then we need to provide default
47032# value. By we need to know if files were specified by the user.
47033ac_need_defaults=:
47034while test $# != 0
47035do
47036 case $1 in
47037 --*=*)
47038 ac_option=`expr "x$1" : 'x\([^=]*\)='`
47039 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
47040 ac_shift=:
47041 ;;
47042 -*)
47043 ac_option=$1
47044 ac_optarg=$2
47045 ac_shift=shift
47046 ;;
47047 *) # This is not an option, so the user has probably given explicit
47048 # arguments.
47049 ac_option=$1
47050 ac_need_defaults=false;;
47051 esac
47052
47053 case $ac_option in
47054 # Handling of the options.
47055_ACEOF
47056cat >>$CONFIG_STATUS <<\_ACEOF
47057 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47058 ac_cs_recheck=: ;;
47059 --version | --vers* | -V )
47060 echo "$ac_cs_version"; exit 0 ;;
47061 --he | --h)
47062 # Conflict between --help and --header
47063 { { echo "$as_me:$LINENO: error: ambiguous option: $1
47064Try \`$0 --help' for more information." >&5
47065echo "$as_me: error: ambiguous option: $1
47066Try \`$0 --help' for more information." >&2;}
47067 { (exit 1); exit 1; }; };;
47068 --help | --hel | -h )
47069 echo "$ac_cs_usage"; exit 0 ;;
47070 --debug | --d* | -d )
47071 debug=: ;;
47072 --file | --fil | --fi | --f )
47073 $ac_shift
47074 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
47075 ac_need_defaults=false;;
47076 --header | --heade | --head | --hea )
47077 $ac_shift
47078 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
47079 ac_need_defaults=false;;
47080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47081 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47082 ac_cs_silent=: ;;
47083
47084 # This is an error.
47085 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
47086Try \`$0 --help' for more information." >&5
47087echo "$as_me: error: unrecognized option: $1
47088Try \`$0 --help' for more information." >&2;}
47089 { (exit 1); exit 1; }; } ;;
47090
47091 *) ac_config_targets="$ac_config_targets $1" ;;
47092
47093 esac
47094 shift
47095done
47096
47097ac_configure_extra_args=
47098
47099if $ac_cs_silent; then
47100 exec 6>/dev/null
47101 ac_configure_extra_args="$ac_configure_extra_args --silent"
47102fi
47103
47104_ACEOF
47105cat >>$CONFIG_STATUS <<_ACEOF
47106if \$ac_cs_recheck; then
47107 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
47108 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47109fi
47110
47111_ACEOF
47112
47113cat >>$CONFIG_STATUS <<_ACEOF
47114#
47115# INIT-COMMANDS section.
47116#
47117
ceec2216
RL
47118 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47119 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47120 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47121 LN_S="${LN_S}"
a848cd7e
SC
47122
47123
47124_ACEOF
47125
47126
47127
47128cat >>$CONFIG_STATUS <<\_ACEOF
47129for ac_config_target in $ac_config_targets
47130do
47131 case "$ac_config_target" in
47132 # Handling of arguments.
ceec2216
RL
47133 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
47134 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
47135 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
47136 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47137 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
47138 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
47139 "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
47140 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47141echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47142 { (exit 1); exit 1; }; };;
47143 esac
47144done
47145
47146# If the user did not use the arguments to specify the items to instantiate,
47147# then the envvar interface is used. Set only those that are not.
47148# We use the long form for the default assignment because of an extremely
47149# bizarre bug on SunOS 4.1.3.
47150if $ac_need_defaults; then
47151 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47152 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47153 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47154fi
47155
47156# Have a temporary directory for convenience. Make it in the build tree
47157# simply because there is no reason to put it here, and in addition,
47158# creating and moving files from /tmp can sometimes cause problems.
47159# Create a temporary directory, and hook for its removal unless debugging.
47160$debug ||
47161{
47162 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
47163 trap '{ (exit 1); exit 1; }' 1 2 13 15
47164}
47165
47166# Create a (secure) tmp directory for tmp files.
47167
47168{
47169 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
47170 test -n "$tmp" && test -d "$tmp"
47171} ||
47172{
47173 tmp=./confstat$$-$RANDOM
47174 (umask 077 && mkdir $tmp)
47175} ||
47176{
47177 echo "$me: cannot create a temporary directory in ." >&2
47178 { (exit 1); exit 1; }
47179}
47180
47181_ACEOF
47182
47183cat >>$CONFIG_STATUS <<_ACEOF
47184
47185#
47186# CONFIG_FILES section.
47187#
47188
47189# No need to generate the scripts if there are no CONFIG_FILES.
47190# This happens for instance when ./config.status config.h
47191if test -n "\$CONFIG_FILES"; then
47192 # Protect against being on the right side of a sed subst in config.status.
47193 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
47194 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
47195s,@SHELL@,$SHELL,;t t
47196s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
47197s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
47198s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
47199s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
47200s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
47201s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
47202s,@exec_prefix@,$exec_prefix,;t t
47203s,@prefix@,$prefix,;t t
47204s,@program_transform_name@,$program_transform_name,;t t
47205s,@bindir@,$bindir,;t t
47206s,@sbindir@,$sbindir,;t t
47207s,@libexecdir@,$libexecdir,;t t
47208s,@datadir@,$datadir,;t t
47209s,@sysconfdir@,$sysconfdir,;t t
47210s,@sharedstatedir@,$sharedstatedir,;t t
47211s,@localstatedir@,$localstatedir,;t t
47212s,@libdir@,$libdir,;t t
47213s,@includedir@,$includedir,;t t
47214s,@oldincludedir@,$oldincludedir,;t t
47215s,@infodir@,$infodir,;t t
47216s,@mandir@,$mandir,;t t
47217s,@build_alias@,$build_alias,;t t
47218s,@host_alias@,$host_alias,;t t
47219s,@target_alias@,$target_alias,;t t
47220s,@DEFS@,$DEFS,;t t
47221s,@ECHO_C@,$ECHO_C,;t t
47222s,@ECHO_N@,$ECHO_N,;t t
47223s,@ECHO_T@,$ECHO_T,;t t
47224s,@LIBS@,$LIBS,;t t
47225s,@build@,$build,;t t
47226s,@build_cpu@,$build_cpu,;t t
47227s,@build_vendor@,$build_vendor,;t t
47228s,@build_os@,$build_os,;t t
47229s,@host@,$host,;t t
47230s,@host_cpu@,$host_cpu,;t t
47231s,@host_vendor@,$host_vendor,;t t
47232s,@host_os@,$host_os,;t t
47233s,@target@,$target,;t t
47234s,@target_cpu@,$target_cpu,;t t
47235s,@target_vendor@,$target_vendor,;t t
47236s,@target_os@,$target_os,;t t
47237s,@CC@,$CC,;t t
47238s,@CFLAGS@,$CFLAGS,;t t
47239s,@LDFLAGS@,$LDFLAGS,;t t
47240s,@CPPFLAGS@,$CPPFLAGS,;t t
47241s,@ac_ct_CC@,$ac_ct_CC,;t t
47242s,@EXEEXT@,$EXEEXT,;t t
47243s,@OBJEXT@,$OBJEXT,;t t
47244s,@CPP@,$CPP,;t t
47245s,@EGREP@,$EGREP,;t t
47246s,@CXX@,$CXX,;t t
47247s,@CXXFLAGS@,$CXXFLAGS,;t t
47248s,@ac_ct_CXX@,$ac_ct_CXX,;t t
47249s,@RANLIB@,$RANLIB,;t t
47250s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
47251s,@AR@,$AR,;t t
8c80d384 47252s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
47253s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
47254s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
47255s,@INSTALL_DATA@,$INSTALL_DATA,;t t
47256s,@STRIP@,$STRIP,;t t
8c80d384
DE
47257s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
47258s,@RESCOMP@,$RESCOMP,;t t
47259s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
47260s,@DLLTOOL@,$DLLTOOL,;t t
47261s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
47262s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
47263s,@LN_S@,$LN_S,;t t
47264s,@CXXCPP@,$CXXCPP,;t t
47265s,@subdirs@,$subdirs,;t t
47266s,@PKG_CONFIG@,$PKG_CONFIG,;t t
47267s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
47268s,@GTK_LIBS@,$GTK_LIBS,;t t
47269s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
47270s,@X_CFLAGS@,$X_CFLAGS,;t t
47271s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
47272s,@X_LIBS@,$X_LIBS,;t t
47273s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
47274s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
47275s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
47276s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
47277s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
47278s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
47279s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
47280s,@DEREZ@,$DEREZ,;t t
47281s,@SETFILE@,$SETFILE,;t t
47282s,@LIBICONV@,$LIBICONV,;t t
47283s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
47284s,@SDL_CONFIG@,$SDL_CONFIG,;t t
47285s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
47286s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
47287s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
47288s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
47289s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
47290s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
47291s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
47292s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
47293s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
47294s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
47295s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
47296s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
47297s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
47298s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
47299s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
47300s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
47301s,@VENDOR@,$VENDOR,;t t
47302s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
47303s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
47304s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
47305s,@WXUNIV@,$WXUNIV,;t t
47306s,@MONOLITHIC@,$MONOLITHIC,;t t
47307s,@USE_PLUGINS@,$USE_PLUGINS,;t t
47308s,@EXTRALIBS@,$EXTRALIBS,;t t
47309s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
47310s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
47311s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
47312s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
47313s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
47314s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
47315s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 47316s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
47317s,@UNICODE@,$UNICODE,;t t
47318s,@BUILD@,$BUILD,;t t
47319s,@DEBUG_INFO@,$DEBUG_INFO,;t t
47320s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
47321s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
47322s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
47323s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
47324s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
47325s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
47326s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
47327s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
47328s,@SET_MAKE@,$SET_MAKE,;t t
47329s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
47330s,@NM@,$NM,;t t
47331s,@ac_ct_NM@,$ac_ct_NM,;t t
47332s,@INSTALL_DIR@,$INSTALL_DIR,;t t
47333s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
47334s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
47335s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
47336s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
47337s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 47338s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
47339s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
47340s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 47341s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
47342s,@SO_SUFFIX@,$SO_SUFFIX,;t t
47343s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
47344s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
47345s,@LIBPREFIX@,$LIBPREFIX,;t t
47346s,@LIBEXT@,$LIBEXT,;t t
47347s,@DLLPREFIX@,$DLLPREFIX,;t t
47348s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 47349s,@dlldir@,$dlldir,;t t
a848cd7e
SC
47350s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
47351s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
47352s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
47353s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
47354s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
47355s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 47356s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
47357s,@USE_SOVERSION@,$USE_SOVERSION,;t t
47358s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
47359s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 47360s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
47361s,@USE_MACVERSION@,$USE_MACVERSION,;t t
47362s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
47363s,@SONAME_FLAG@,$SONAME_FLAG,;t t
47364s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
47365s,@GCC_PCH@,$GCC_PCH,;t t
47366s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
47367s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
47368s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
47369s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
47370s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
47371s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
47372s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
47373s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
47374s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
47375s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
47376s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
47377s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
47378s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
47379s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
47380s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
47381s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
47382s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
47383s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 47384s,@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 47385s,@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 47386s,@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 47387s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 47388s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47389s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
47390s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 47391s,@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 47392s,@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 47393s,@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 47394s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 47395s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
47396s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
47397s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
47398s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
47399s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
47400s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
47401s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 47402s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
47403s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
47404s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 47405s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
47406s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
47407s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
47408s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 47409s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 47410s,@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
47411s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
47412s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
47413s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
47414s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 47415s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 47416s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 47417s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
47418s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
47419s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
47420s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
47421s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
47422s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
47423s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
47424s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
47425s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
47426s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
47427s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
47428s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
47429s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
47430s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47431s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47432s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 47433s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47434s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
47435s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
47436s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
47437s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
47438s,@COND_SHARED_1@,$COND_SHARED_1,;t t
47439s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 47440s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 47441s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 47442s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 47443s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
47444s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
47445s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
47446s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
47447s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
47448s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
47449s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
47450s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
47451s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
47452s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
47453s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
47454s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
47455s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
47456s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
47457s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
47458s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47459s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
47460s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
47461s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
47462s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
47463s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
47464s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
47465s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47466s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
47467s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
47468s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
47469s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
47470s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
47471s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
47472s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
47473s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
47474s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
47475s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
47476s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47477s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47478s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
47479s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
47480s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 47481s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
47482s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
47483s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 47484s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 47485s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
47486s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
47487s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
47488s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
47489s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
47490s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 47491s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 47492s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 47493s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 47494s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
47495s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
47496s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
47497s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
47498s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
47499s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
47500s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
47501s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
47502s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 47503s,@SHARED@,$SHARED,;t t
a848cd7e
SC
47504s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
47505s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
47506s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
47507s,@USE_GUI@,$USE_GUI,;t t
47508s,@AFMINSTALL@,$AFMINSTALL,;t t
47509s,@WIN32INSTALL@,$WIN32INSTALL,;t t
47510s,@TOOLKIT@,$TOOLKIT,;t t
47511s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 47512s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 47513s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
47514s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
47515s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 47516s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
47517s,@WIDGET_SET@,$WIDGET_SET,;t t
47518s,@WX_RELEASE@,$WX_RELEASE,;t t
47519s,@WX_VERSION@,$WX_VERSION,;t t
47520s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
47521s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
47522s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 47523s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
47524s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
47525s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
47526s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
47527s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 47528s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
47529s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
47530s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 47531s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 47532s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
47533s,@DISTDIR@,$DISTDIR,;t t
47534s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
47535s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
47536s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
47537s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
47538s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
47539s,@RESFLAGS@,$RESFLAGS,;t t
47540s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
47541s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
47542s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
47543s,@LIBWXMACRES@,$LIBWXMACRES,;t t
47544s,@MACRESCOMP@,$MACRESCOMP,;t t
47545s,@MACSETFILE@,$MACSETFILE,;t t
47546s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
47547s,@GCC@,$GCC,;t t
a848cd7e
SC
47548s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
47549s,@LIBOBJS@,$LIBOBJS,;t t
47550s,@LTLIBOBJS@,$LTLIBOBJS,;t t
47551CEOF
47552
47553_ACEOF
47554
47555 cat >>$CONFIG_STATUS <<\_ACEOF
47556 # Split the substitutions into bite-sized pieces for seds with
47557 # small command number limits, like on Digital OSF/1 and HP-UX.
47558 ac_max_sed_lines=48
47559 ac_sed_frag=1 # Number of current file.
47560 ac_beg=1 # First line for current file.
47561 ac_end=$ac_max_sed_lines # Line after last line for current file.
47562 ac_more_lines=:
47563 ac_sed_cmds=
47564 while $ac_more_lines; do
47565 if test $ac_beg -gt 1; then
47566 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47567 else
47568 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47569 fi
47570 if test ! -s $tmp/subs.frag; then
47571 ac_more_lines=false
47572 else
47573 # The purpose of the label and of the branching condition is to
47574 # speed up the sed processing (if there are no `@' at all, there
47575 # is no need to browse any of the substitutions).
47576 # These are the two extra sed commands mentioned above.
47577 (echo ':t
47578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
47579 if test -z "$ac_sed_cmds"; then
ac1cb8d3 47580 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 47581 else
ac1cb8d3 47582 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
47583 fi
47584 ac_sed_frag=`expr $ac_sed_frag + 1`
47585 ac_beg=$ac_end
47586 ac_end=`expr $ac_end + $ac_max_sed_lines`
47587 fi
47588 done
47589 if test -z "$ac_sed_cmds"; then
47590 ac_sed_cmds=cat
47591 fi
47592fi # test -n "$CONFIG_FILES"
47593
47594_ACEOF
47595cat >>$CONFIG_STATUS <<\_ACEOF
47596for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
47597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47598 case $ac_file in
47599 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47600 cat >$tmp/stdin
47601 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47603 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47605 * ) ac_file_in=$ac_file.in ;;
47606 esac
47607
47608 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
47609 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47610$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47611 X"$ac_file" : 'X\(//\)[^/]' \| \
47612 X"$ac_file" : 'X\(//\)$' \| \
47613 X"$ac_file" : 'X\(/\)' \| \
47614 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47615echo X"$ac_file" |
47616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47618 /^X\(\/\/\)$/{ s//\1/; q; }
47619 /^X\(\/\).*/{ s//\1/; q; }
47620 s/.*/./; q'`
47621 { if $as_mkdir_p; then
47622 mkdir -p "$ac_dir"
47623 else
47624 as_dir="$ac_dir"
47625 as_dirs=
47626 while test ! -d "$as_dir"; do
47627 as_dirs="$as_dir $as_dirs"
47628 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47630 X"$as_dir" : 'X\(//\)[^/]' \| \
47631 X"$as_dir" : 'X\(//\)$' \| \
47632 X"$as_dir" : 'X\(/\)' \| \
47633 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47634echo X"$as_dir" |
47635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47637 /^X\(\/\/\)$/{ s//\1/; q; }
47638 /^X\(\/\).*/{ s//\1/; q; }
47639 s/.*/./; q'`
47640 done
47641 test ! -n "$as_dirs" || mkdir $as_dirs
47642 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47643echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47644 { (exit 1); exit 1; }; }; }
47645
47646 ac_builddir=.
47647
47648if test "$ac_dir" != .; then
47649 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47650 # A "../" for each directory in $ac_dir_suffix.
47651 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47652else
47653 ac_dir_suffix= ac_top_builddir=
47654fi
47655
47656case $srcdir in
47657 .) # No --srcdir option. We are building in place.
47658 ac_srcdir=.
47659 if test -z "$ac_top_builddir"; then
47660 ac_top_srcdir=.
47661 else
47662 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47663 fi ;;
47664 [\\/]* | ?:[\\/]* ) # Absolute path.
47665 ac_srcdir=$srcdir$ac_dir_suffix;
47666 ac_top_srcdir=$srcdir ;;
47667 *) # Relative path.
47668 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47669 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47670esac
ac1cb8d3
VS
47671
47672# Do not use `cd foo && pwd` to compute absolute paths, because
47673# the directories may not exist.
47674case `pwd` in
47675.) ac_abs_builddir="$ac_dir";;
47676*)
47677 case "$ac_dir" in
47678 .) ac_abs_builddir=`pwd`;;
47679 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47680 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47681 esac;;
47682esac
47683case $ac_abs_builddir in
47684.) ac_abs_top_builddir=${ac_top_builddir}.;;
47685*)
47686 case ${ac_top_builddir}. in
47687 .) ac_abs_top_builddir=$ac_abs_builddir;;
47688 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47689 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47690 esac;;
47691esac
47692case $ac_abs_builddir in
47693.) ac_abs_srcdir=$ac_srcdir;;
47694*)
47695 case $ac_srcdir in
47696 .) ac_abs_srcdir=$ac_abs_builddir;;
47697 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47698 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47699 esac;;
47700esac
47701case $ac_abs_builddir in
47702.) ac_abs_top_srcdir=$ac_top_srcdir;;
47703*)
47704 case $ac_top_srcdir in
47705 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47706 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47707 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47708 esac;;
47709esac
a848cd7e
SC
47710
47711
47712 case $INSTALL in
47713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47714 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47715 esac
47716
a848cd7e
SC
47717 # Let's still pretend it is `configure' which instantiates (i.e., don't
47718 # use $as_me), people would be surprised to read:
47719 # /* config.h. Generated by config.status. */
47720 if test x"$ac_file" = x-; then
47721 configure_input=
47722 else
47723 configure_input="$ac_file. "
47724 fi
47725 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 47726 sed 's,.*/,,'` by configure."
a848cd7e
SC
47727
47728 # First look for the input files in the build tree, otherwise in the
47729 # src tree.
47730 ac_file_inputs=`IFS=:
47731 for f in $ac_file_in; do
47732 case $f in
47733 -) echo $tmp/stdin ;;
47734 [\\/$]*)
ac1cb8d3
VS
47735 # Absolute (can't be DOS-style, as IFS=:)
47736 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47737echo "$as_me: error: cannot find input file: $f" >&2;}
47738 { (exit 1); exit 1; }; }
ac1cb8d3 47739 echo "$f";;
a848cd7e 47740 *) # Relative
ac1cb8d3
VS
47741 if test -f "$f"; then
47742 # Build tree
47743 echo "$f"
47744 elif test -f "$srcdir/$f"; then
47745 # Source tree
47746 echo "$srcdir/$f"
47747 else
47748 # /dev/null tree
47749 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47750echo "$as_me: error: cannot find input file: $f" >&2;}
47751 { (exit 1); exit 1; }; }
ac1cb8d3 47752 fi;;
a848cd7e
SC
47753 esac
47754 done` || { (exit 1); exit 1; }
0093c2fc
VZ
47755
47756 if test x"$ac_file" != x-; then
47757 { echo "$as_me:$LINENO: creating $ac_file" >&5
47758echo "$as_me: creating $ac_file" >&6;}
47759 rm -f "$ac_file"
47760 fi
a848cd7e
SC
47761_ACEOF
47762cat >>$CONFIG_STATUS <<_ACEOF
47763 sed "$ac_vpsub
47764$extrasub
47765_ACEOF
47766cat >>$CONFIG_STATUS <<\_ACEOF
47767:t
47768/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47769s,@configure_input@,$configure_input,;t t
47770s,@srcdir@,$ac_srcdir,;t t
47771s,@abs_srcdir@,$ac_abs_srcdir,;t t
47772s,@top_srcdir@,$ac_top_srcdir,;t t
47773s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47774s,@builddir@,$ac_builddir,;t t
47775s,@abs_builddir@,$ac_abs_builddir,;t t
47776s,@top_builddir@,$ac_top_builddir,;t t
47777s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47778s,@INSTALL@,$ac_INSTALL,;t t
47779" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47780 rm -f $tmp/stdin
47781 if test x"$ac_file" != x-; then
47782 mv $tmp/out $ac_file
47783 else
47784 cat $tmp/out
47785 rm -f $tmp/out
47786 fi
47787
ceec2216
RL
47788 # Run the commands associated with the file.
47789 case $ac_file in
47790 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
47791 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
47792 esac
a848cd7e
SC
47793done
47794_ACEOF
47795cat >>$CONFIG_STATUS <<\_ACEOF
47796
47797#
47798# CONFIG_HEADER section.
47799#
47800
47801# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47802# NAME is the cpp macro being defined and VALUE is the value it is being given.
47803#
47804# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47805ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47806ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47807ac_dC=' '
47808ac_dD=',;t'
47809# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47810ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47811ac_uB='$,\1#\2define\3'
47812ac_uC=' '
47813ac_uD=',;t'
47814
47815for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47817 case $ac_file in
47818 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47819 cat >$tmp/stdin
47820 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47821 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47822 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47823 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47824 * ) ac_file_in=$ac_file.in ;;
47825 esac
47826
47827 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47828echo "$as_me: creating $ac_file" >&6;}
47829
47830 # First look for the input files in the build tree, otherwise in the
47831 # src tree.
47832 ac_file_inputs=`IFS=:
47833 for f in $ac_file_in; do
47834 case $f in
47835 -) echo $tmp/stdin ;;
47836 [\\/$]*)
ac1cb8d3
VS
47837 # Absolute (can't be DOS-style, as IFS=:)
47838 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47839echo "$as_me: error: cannot find input file: $f" >&2;}
47840 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47841 # Do quote $f, to prevent DOS paths from being IFS'd.
47842 echo "$f";;
a848cd7e 47843 *) # Relative
ac1cb8d3
VS
47844 if test -f "$f"; then
47845 # Build tree
47846 echo "$f"
47847 elif test -f "$srcdir/$f"; then
47848 # Source tree
47849 echo "$srcdir/$f"
47850 else
47851 # /dev/null tree
47852 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47853echo "$as_me: error: cannot find input file: $f" >&2;}
47854 { (exit 1); exit 1; }; }
ac1cb8d3 47855 fi;;
a848cd7e
SC
47856 esac
47857 done` || { (exit 1); exit 1; }
47858 # Remove the trailing spaces.
ac1cb8d3 47859 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47860
47861_ACEOF
47862
47863# Transform confdefs.h into two sed scripts, `conftest.defines' and
47864# `conftest.undefs', that substitutes the proper values into
47865# config.h.in to produce config.h. The first handles `#define'
47866# templates, and the second `#undef' templates.
47867# And first: Protect against being on the right side of a sed subst in
47868# config.status. Protect against being in an unquoted here document
47869# in config.status.
47870rm -f conftest.defines conftest.undefs
47871# Using a here document instead of a string reduces the quoting nightmare.
47872# Putting comments in sed scripts is not portable.
47873#
47874# `end' is used to avoid that the second main sed command (meant for
47875# 0-ary CPP macros) applies to n-ary macro definitions.
47876# See the Autoconf documentation for `clear'.
47877cat >confdef2sed.sed <<\_ACEOF
47878s/[\\&,]/\\&/g
47879s,[\\$`],\\&,g
47880t clear
47881: clear
ac1cb8d3 47882s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47883t end
ac1cb8d3 47884s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47885: end
47886_ACEOF
47887# If some macros were called several times there might be several times
47888# the same #defines, which is useless. Nevertheless, we may not want to
47889# sort them, since we want the *last* AC-DEFINE to be honored.
47890uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47891sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47892rm -f confdef2sed.sed
47893
47894# This sed command replaces #undef with comments. This is necessary, for
47895# example, in the case of _POSIX_SOURCE, which is predefined and required
47896# on some systems where configure will not decide to define it.
47897cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47898s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47899_ACEOF
47900
47901# Break up conftest.defines because some shells have a limit on the size
47902# of here documents, and old seds have small limits too (100 cmds).
47903echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47904echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
47905echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47906echo ' :' >>$CONFIG_STATUS
47907rm -f conftest.tail
47908while grep . conftest.defines >/dev/null
47909do
47910 # Write a limited-size here document to $tmp/defines.sed.
47911 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47912 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 47913 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
47914 # Work around the forget-to-reset-the-flag bug.
47915 echo 't clr' >>$CONFIG_STATUS
47916 echo ': clr' >>$CONFIG_STATUS
47917 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47918 echo 'CEOF
47919 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47920 rm -f $tmp/in
47921 mv $tmp/out $tmp/in
47922' >>$CONFIG_STATUS
47923 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47924 rm -f conftest.defines
47925 mv conftest.tail conftest.defines
47926done
47927rm -f conftest.defines
47928echo ' fi # grep' >>$CONFIG_STATUS
47929echo >>$CONFIG_STATUS
47930
47931# Break up conftest.undefs because some shells have a limit on the size
47932# of here documents, and old seds have small limits too (100 cmds).
47933echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47934rm -f conftest.tail
47935while grep . conftest.undefs >/dev/null
47936do
47937 # Write a limited-size here document to $tmp/undefs.sed.
47938 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47939 # Speed up: don't consider the non `#undef'
ac1cb8d3 47940 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
47941 # Work around the forget-to-reset-the-flag bug.
47942 echo 't clr' >>$CONFIG_STATUS
47943 echo ': clr' >>$CONFIG_STATUS
47944 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47945 echo 'CEOF
47946 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47947 rm -f $tmp/in
47948 mv $tmp/out $tmp/in
47949' >>$CONFIG_STATUS
47950 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47951 rm -f conftest.undefs
47952 mv conftest.tail conftest.undefs
47953done
47954rm -f conftest.undefs
47955
47956cat >>$CONFIG_STATUS <<\_ACEOF
47957 # Let's still pretend it is `configure' which instantiates (i.e., don't
47958 # use $as_me), people would be surprised to read:
47959 # /* config.h. Generated by config.status. */
47960 if test x"$ac_file" = x-; then
47961 echo "/* Generated by configure. */" >$tmp/config.h
47962 else
47963 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47964 fi
47965 cat $tmp/in >>$tmp/config.h
47966 rm -f $tmp/in
47967 if test x"$ac_file" != x-; then
47968 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47969 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47970echo "$as_me: $ac_file is unchanged" >&6;}
47971 else
47972 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47973$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47974 X"$ac_file" : 'X\(//\)[^/]' \| \
47975 X"$ac_file" : 'X\(//\)$' \| \
47976 X"$ac_file" : 'X\(/\)' \| \
47977 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47978echo X"$ac_file" |
47979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47981 /^X\(\/\/\)$/{ s//\1/; q; }
47982 /^X\(\/\).*/{ s//\1/; q; }
47983 s/.*/./; q'`
47984 { if $as_mkdir_p; then
47985 mkdir -p "$ac_dir"
47986 else
47987 as_dir="$ac_dir"
47988 as_dirs=
47989 while test ! -d "$as_dir"; do
47990 as_dirs="$as_dir $as_dirs"
47991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47992$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47993 X"$as_dir" : 'X\(//\)[^/]' \| \
47994 X"$as_dir" : 'X\(//\)$' \| \
47995 X"$as_dir" : 'X\(/\)' \| \
47996 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47997echo X"$as_dir" |
47998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48000 /^X\(\/\/\)$/{ s//\1/; q; }
48001 /^X\(\/\).*/{ s//\1/; q; }
48002 s/.*/./; q'`
48003 done
48004 test ! -n "$as_dirs" || mkdir $as_dirs
48005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48006echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48007 { (exit 1); exit 1; }; }; }
48008
48009 rm -f $ac_file
48010 mv $tmp/config.h $ac_file
48011 fi
48012 else
48013 cat $tmp/config.h
48014 rm -f $tmp/config.h
48015 fi
48016done
48017_ACEOF
48018cat >>$CONFIG_STATUS <<\_ACEOF
48019
48020#
48021# CONFIG_COMMANDS section.
48022#
48023for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
48024 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
48025 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
48026 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
48027$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48028 X"$ac_dest" : 'X\(//\)[^/]' \| \
48029 X"$ac_dest" : 'X\(//\)$' \| \
48030 X"$ac_dest" : 'X\(/\)' \| \
48031 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48032echo X"$ac_dest" |
48033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48034 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48035 /^X\(\/\/\)$/{ s//\1/; q; }
48036 /^X\(\/\).*/{ s//\1/; q; }
48037 s/.*/./; q'`
ac1cb8d3
VS
48038 { if $as_mkdir_p; then
48039 mkdir -p "$ac_dir"
48040 else
48041 as_dir="$ac_dir"
48042 as_dirs=
48043 while test ! -d "$as_dir"; do
48044 as_dirs="$as_dir $as_dirs"
48045 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48046$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48047 X"$as_dir" : 'X\(//\)[^/]' \| \
48048 X"$as_dir" : 'X\(//\)$' \| \
48049 X"$as_dir" : 'X\(/\)' \| \
48050 . : '\(.\)' 2>/dev/null ||
48051echo X"$as_dir" |
48052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48054 /^X\(\/\/\)$/{ s//\1/; q; }
48055 /^X\(\/\).*/{ s//\1/; q; }
48056 s/.*/./; q'`
48057 done
48058 test ! -n "$as_dirs" || mkdir $as_dirs
48059 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48060echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48061 { (exit 1); exit 1; }; }; }
48062
a848cd7e
SC
48063 ac_builddir=.
48064
48065if test "$ac_dir" != .; then
48066 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48067 # A "../" for each directory in $ac_dir_suffix.
48068 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48069else
48070 ac_dir_suffix= ac_top_builddir=
48071fi
48072
48073case $srcdir in
48074 .) # No --srcdir option. We are building in place.
48075 ac_srcdir=.
48076 if test -z "$ac_top_builddir"; then
48077 ac_top_srcdir=.
48078 else
48079 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48080 fi ;;
48081 [\\/]* | ?:[\\/]* ) # Absolute path.
48082 ac_srcdir=$srcdir$ac_dir_suffix;
48083 ac_top_srcdir=$srcdir ;;
48084 *) # Relative path.
48085 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48086 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48087esac
ac1cb8d3
VS
48088
48089# Do not use `cd foo && pwd` to compute absolute paths, because
48090# the directories may not exist.
48091case `pwd` in
48092.) ac_abs_builddir="$ac_dir";;
48093*)
48094 case "$ac_dir" in
48095 .) ac_abs_builddir=`pwd`;;
48096 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48097 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48098 esac;;
48099esac
48100case $ac_abs_builddir in
48101.) ac_abs_top_builddir=${ac_top_builddir}.;;
48102*)
48103 case ${ac_top_builddir}. in
48104 .) ac_abs_top_builddir=$ac_abs_builddir;;
48105 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48106 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48107 esac;;
48108esac
48109case $ac_abs_builddir in
48110.) ac_abs_srcdir=$ac_srcdir;;
48111*)
48112 case $ac_srcdir in
48113 .) ac_abs_srcdir=$ac_abs_builddir;;
48114 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48115 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48116 esac;;
48117esac
48118case $ac_abs_builddir in
48119.) ac_abs_top_srcdir=$ac_top_srcdir;;
48120*)
48121 case $ac_top_srcdir in
48122 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48123 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48124 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48125 esac;;
48126esac
a848cd7e
SC
48127
48128
48129 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
48130echo "$as_me: executing $ac_dest commands" >&6;}
48131 case $ac_dest in
ceec2216
RL
48132 wx-config ) rm -f wx-config
48133 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
48134 ;;
a848cd7e
SC
48135 esac
48136done
48137_ACEOF
48138
48139cat >>$CONFIG_STATUS <<\_ACEOF
48140
48141{ (exit 0); exit 0; }
48142_ACEOF
48143chmod +x $CONFIG_STATUS
48144ac_clean_files=$ac_clean_files_save
48145
48146
48147# configure is writing to config.log, and then calls config.status.
48148# config.status does its own redirection, appending to config.log.
48149# Unfortunately, on DOS this fails, as config.log is still kept open
48150# by configure, so config.status won't be able to write to it; its
48151# output is simply discarded. So we exec the FD to /dev/null,
48152# effectively closing config.log, so it can be properly (re)opened and
48153# appended to by config.status. When coming back to configure, we
48154# need to make the FD available again.
48155if test "$no_create" != yes; then
48156 ac_cs_success=:
48157 ac_config_status_args=
48158 test "$silent" = yes &&
48159 ac_config_status_args="$ac_config_status_args --quiet"
48160 exec 5>/dev/null
48161 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48162 exec 5>>config.log
48163 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48164 # would make configure fail if this is the last instruction.
48165 $ac_cs_success || { (exit 1); exit 1; }
48166fi
48167
48168#
48169# CONFIG_SUBDIRS section.
48170#
48171if test "$no_recursion" != yes; then
48172
48173 # Remove --cache-file and --srcdir arguments so they do not pile up.
48174 ac_sub_configure_args=
48175 ac_prev=
48176 for ac_arg in $ac_configure_args; do
48177 if test -n "$ac_prev"; then
48178 ac_prev=
48179 continue
48180 fi
48181 case $ac_arg in
48182 -cache-file | --cache-file | --cache-fil | --cache-fi \
48183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48184 ac_prev=cache_file ;;
48185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48187 | --c=*)
48188 ;;
48189 --config-cache | -C)
48190 ;;
48191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48192 ac_prev=srcdir ;;
48193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48194 ;;
48195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48196 ac_prev=prefix ;;
48197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48198 ;;
48199 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
48200 esac
48201 done
48202
48203 # Always prepend --prefix to ensure using the same prefix
48204 # in subdir configurations.
48205 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
48206
48207 ac_popdir=`pwd`
48208 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48209
48210 # Do not complain, so a configure script can configure whichever
48211 # parts of a large source tree are present.
48212 test -d $srcdir/$ac_dir || continue
48213
48214 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
48215echo "$as_me: configuring in $ac_dir" >&6;}
48216 { if $as_mkdir_p; then
48217 mkdir -p "$ac_dir"
48218 else
48219 as_dir="$ac_dir"
48220 as_dirs=
48221 while test ! -d "$as_dir"; do
48222 as_dirs="$as_dir $as_dirs"
48223 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48224$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48225 X"$as_dir" : 'X\(//\)[^/]' \| \
48226 X"$as_dir" : 'X\(//\)$' \| \
48227 X"$as_dir" : 'X\(/\)' \| \
48228 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48229echo X"$as_dir" |
48230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48232 /^X\(\/\/\)$/{ s//\1/; q; }
48233 /^X\(\/\).*/{ s//\1/; q; }
48234 s/.*/./; q'`
48235 done
48236 test ! -n "$as_dirs" || mkdir $as_dirs
48237 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48238echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48239 { (exit 1); exit 1; }; }; }
48240
48241 ac_builddir=.
48242
48243if test "$ac_dir" != .; then
48244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48245 # A "../" for each directory in $ac_dir_suffix.
48246 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48247else
48248 ac_dir_suffix= ac_top_builddir=
48249fi
48250
48251case $srcdir in
48252 .) # No --srcdir option. We are building in place.
48253 ac_srcdir=.
48254 if test -z "$ac_top_builddir"; then
48255 ac_top_srcdir=.
48256 else
48257 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48258 fi ;;
48259 [\\/]* | ?:[\\/]* ) # Absolute path.
48260 ac_srcdir=$srcdir$ac_dir_suffix;
48261 ac_top_srcdir=$srcdir ;;
48262 *) # Relative path.
48263 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48264 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48265esac
ac1cb8d3
VS
48266
48267# Do not use `cd foo && pwd` to compute absolute paths, because
48268# the directories may not exist.
48269case `pwd` in
48270.) ac_abs_builddir="$ac_dir";;
48271*)
48272 case "$ac_dir" in
48273 .) ac_abs_builddir=`pwd`;;
48274 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48275 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48276 esac;;
48277esac
48278case $ac_abs_builddir in
48279.) ac_abs_top_builddir=${ac_top_builddir}.;;
48280*)
48281 case ${ac_top_builddir}. in
48282 .) ac_abs_top_builddir=$ac_abs_builddir;;
48283 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48284 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48285 esac;;
48286esac
48287case $ac_abs_builddir in
48288.) ac_abs_srcdir=$ac_srcdir;;
48289*)
48290 case $ac_srcdir in
48291 .) ac_abs_srcdir=$ac_abs_builddir;;
48292 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48293 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48294 esac;;
48295esac
48296case $ac_abs_builddir in
48297.) ac_abs_top_srcdir=$ac_top_srcdir;;
48298*)
48299 case $ac_top_srcdir in
48300 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48301 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48302 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48303 esac;;
48304esac
a848cd7e
SC
48305
48306
48307 cd $ac_dir
48308
48309 # Check for guested configure; otherwise get Cygnus style configure.
48310 if test -f $ac_srcdir/configure.gnu; then
48311 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
48312 elif test -f $ac_srcdir/configure; then
48313 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
48314 elif test -f $ac_srcdir/configure.in; then
48315 ac_sub_configure=$ac_configure
48316 else
48317 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48318echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48319 ac_sub_configure=
48320 fi
48321
48322 # The recursion is here.
48323 if test -n "$ac_sub_configure"; then
48324 # Make the cache file name correct relative to the subdirectory.
48325 case $cache_file in
48326 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48327 *) # Relative path.
ac1cb8d3 48328 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
48329 esac
48330
48331 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48332echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48333 # The eval makes quoting arguments work.
48334 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
48335 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
48336 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
48337echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48338 { (exit 1); exit 1; }; }
48339 fi
48340
0093c2fc 48341 cd "$ac_popdir"
a848cd7e
SC
48342 done
48343fi
48344
48345
48346echo
77ffb593 48347echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 48348echo ""
4d4ff94c 48349echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 48350echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 48351
77ffb593
JS
48352echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
48353echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
48354echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 48355
77ffb593 48356echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
48357echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
48358echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 48359
77ffb593 48360echo " Which libraries should wxWidgets use?"
a848cd7e
SC
48361echo " jpeg ${wxUSE_LIBJPEG-none}"
48362echo " png ${wxUSE_LIBPNG-none}"
48363echo " regex ${wxUSE_REGEX}"
48364echo " tiff ${wxUSE_LIBTIFF-none}"
48365if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
48366echo " xpm ${wxUSE_LIBXPM-none}"
48367fi
48368echo " zlib ${wxUSE_ZLIB}"
48369echo " odbc ${wxUSE_ODBC}"
48370echo " expat ${wxUSE_EXPAT}"
48371echo " libmspack ${wxUSE_LIBMSPACK}"
48372echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 48373echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
48374
48375echo ""
48376