]> git.saurik.com Git - wxWidgets.git/blame - configure
Yet another attempt at making the getservbyname_r prototype visible.
[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"
d044deea 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S LNDIR CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS HILDON_CFLAGS HILDON_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
dee1a63f
MB
892 --enable-compat24 enable wxWidgets 2.4 compatibility
893 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 962 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
963 --enable-postscript use wxPostscriptDC device context (default for gtk+)
964 --enable-prologio not available; see contrib
965 --enable-resources not available; see contrib
966 --enable-clipboard use wxClipboard class
967 --enable-dnd use Drag'n'Drop classes
968 --enable-metafile use win32 metafiles
969 --enable-controls use all usual controls
970 --enable-accel use accelerators
971 --enable-button use wxButton class
972 --enable-bmpbutton use wxBitmapButton class
973 --enable-calendar use wxCalendarCtrl class
974 --enable-caret use wxCaret class
975 --enable-checkbox use wxCheckBox class
976 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
977 --enable-choice use wxChoice class
92bbdbcd 978 --enable-choicebook use wxChoicebook class
a848cd7e 979 --enable-combobox use wxComboBox class
da98e9be 980 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
981 --enable-display use wxDisplay class
982 --enable-gauge use wxGauge class
983 --enable-grid use wxGrid class
20e34ecc 984 --enable-dataviewctrl, use wxDataViewCtrl class
a848cd7e
SC
985 --enable-imaglist use wxImageList class
986 --enable-listbook use wxListbook class
987 --enable-listbox use wxListBox class
988 --enable-listctrl use wxListCtrl class
989 --enable-notebook use wxNotebook class
990 --enable-radiobox use wxRadioBox class
991 --enable-radiobtn use wxRadioButton class
992 --enable-sash use wxSashWindow class
993 --enable-scrollbar use wxScrollBar class and scrollable windows
994 --enable-slider use wxSlider class
995 --enable-spinbtn use wxSpinButton class
996 --enable-spinctrl use wxSpinCtrl class
997 --enable-splitter use wxSplitterWindow class
998 --enable-statbmp use wxStaticBitmap class
999 --enable-statbox use wxStaticBox class
1000 --enable-statline use wxStaticLine class
1001 --enable-stattext use wxStaticText class
1002 --enable-statusbar use wxStatusBar class
1003 --enable-tabdialog use wxTabControl class
1004 --enable-textctrl use wxTextCtrl class
1005 --enable-togglebtn use wxToggleButton class
1006 --enable-toolbar use wxToolBar class
1007 --enable-tbarnative use native wxToolBar class
1008 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1009 --enable-treebook use wxTreebook class
a848cd7e
SC
1010 --enable-treectrl use wxTreeCtrl class
1011 --enable-tipwindow use wxTipWindow class
1012 --enable-popupwin use wxPopUpWindow class
1013 --enable-commondlg use all common dialogs
1014 --enable-choicedlg use wxChoiceDialog
1015 --enable-coldlg use wxColourDialog
1016 --enable-filedlg use wxFileDialog
1017 --enable-finddlg use wxFindReplaceDialog
1018 --enable-fontdlg use wxFontDialog
1019 --enable-dirdlg use wxDirDialog
1020 --enable-msgdlg use wxMessageDialog
1021 --enable-numberdlg use wxNumberEntryDialog
1022 --enable-splash use wxSplashScreen
1023 --enable-textdlg use wxTextDialog
1024 --enable-tipdlg use startup tips
1025 --enable-progressdlg use wxProgressDialog
1026 --enable-wizarddlg use wxWizard
1027 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1028 --enable-miniframe use wxMiniFrame class
1029 --enable-tooltips use wxToolTip class
1030 --enable-splines use spline drawing code
fbe2ca43 1031 --enable-mousewheel use mousewheel
a848cd7e
SC
1032 --enable-validators use wxValidator and derived classes
1033 --enable-busyinfo use wxBusyInfo
4cb1d3da 1034 --enable-joystick use wxJoystick
38b4a946 1035 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1036 --enable-dragimage use wxDragImage
1037 --enable-accessibility enable accessibility support
38b4a946 1038 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1039 --enable-palette use wxPalette class
1040 --enable-image use wxImage class
1041 --enable-gif use gif images (GIF file format)
1042 --enable-pcx use pcx images (PCX file format)
1043 --enable-iff use iff images (IFF file format)
1044 --enable-pnm use pnm images (PNM file format)
1045 --enable-xpm use xpm images (XPM file format)
1046 --enable-icocur use Windows ICO and CUR formats
77ffb593 1047 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1048 --enable-vendor=VENDOR vendor name (win32 DLL only)
1049 --disable-largefile omit support for large files
1050 --disable-gtktest do not try to compile and run a test GTK+ program
1051 --disable-gtktest Do not try to compile and run a test GTK program
1052 --disable-sdltest Do not try to compile and run a test SDL program
1053 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1054 --disable-precomp-headers
1055 don't use precompiled headers even if compiler can
a848cd7e
SC
1056
1057Optional Packages:
1058 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1059 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1060 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1061 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1062 --with-motif use Motif/Lesstif
1063 --with-mac use Mac OS X
1064 --with-cocoa use Cocoa
1065 --with-wine use Wine
1066 --with-msw use MS-Windows
1067 --with-pm use OS/2 Presentation Manager
1068 --with-mgl use SciTech MGL
1069 --with-microwin use MicroWindows
1070 --with-x11 use X11
1071 --with-libpng use libpng (PNG image format)
1072 --with-libjpeg use libjpeg (JPEG file format)
1073 --with-libtiff use libtiff (TIFF file format)
1074 --with-libxpm use libxpm (XPM file format)
1075 --with-libmspack use libmspack (CHM help files loading)
1076 --with-sdl use SDL for audio on Unix
d51253e8 1077 --with-gnomeprint use GNOME print for printing under Unix
3565d135 1078 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1079 --with-opengl use OpenGL (or Mesa)
1080 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1081 --with-regex enable support for wxRegEx class
1082 --with-zlib use zlib for LZW compression
1083 --with-odbc use the IODBC and wxODBC classes
1084 --with-expat enable XML support using expat parser
ceec2216 1085 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1086 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1087 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1088 --with-x use the X Window System
1089 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1090 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1091 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1092 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1093 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1094
1095Some influential environment variables:
dcc1b6ad
VS
1096 CC C compiler command
1097 CFLAGS C compiler flags
1098 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1099 nonstandard directory <lib dir>
1100 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1101 headers in a nonstandard directory <include dir>
1102 CPP C preprocessor
1103 CXX C++ compiler command
1104 CXXFLAGS C++ compiler flags
1105 CXXCPP C++ preprocessor
a848cd7e
SC
1106
1107Use these variables to override the choices made by `configure' or to help
1108it to find libraries and programs with nonstandard names/locations.
1109
77ffb593 1110Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1111_ACEOF
1112fi
1113
1114if test "$ac_init_help" = "recursive"; then
1115 # If there are subdirs, report their specific --help.
1116 ac_popdir=`pwd`
1117 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1118 test -d $ac_dir || continue
1119 ac_builddir=.
1120
1121if test "$ac_dir" != .; then
1122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1123 # A "../" for each directory in $ac_dir_suffix.
1124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125else
1126 ac_dir_suffix= ac_top_builddir=
1127fi
1128
1129case $srcdir in
1130 .) # No --srcdir option. We are building in place.
1131 ac_srcdir=.
1132 if test -z "$ac_top_builddir"; then
1133 ac_top_srcdir=.
1134 else
1135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136 fi ;;
1137 [\\/]* | ?:[\\/]* ) # Absolute path.
1138 ac_srcdir=$srcdir$ac_dir_suffix;
1139 ac_top_srcdir=$srcdir ;;
1140 *) # Relative path.
1141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1143esac
ac1cb8d3
VS
1144
1145# Do not use `cd foo && pwd` to compute absolute paths, because
1146# the directories may not exist.
1147case `pwd` in
1148.) ac_abs_builddir="$ac_dir";;
1149*)
1150 case "$ac_dir" in
1151 .) ac_abs_builddir=`pwd`;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1153 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1154 esac;;
1155esac
1156case $ac_abs_builddir in
1157.) ac_abs_top_builddir=${ac_top_builddir}.;;
1158*)
1159 case ${ac_top_builddir}. in
1160 .) ac_abs_top_builddir=$ac_abs_builddir;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1163 esac;;
1164esac
1165case $ac_abs_builddir in
1166.) ac_abs_srcdir=$ac_srcdir;;
1167*)
1168 case $ac_srcdir in
1169 .) ac_abs_srcdir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1172 esac;;
1173esac
1174case $ac_abs_builddir in
1175.) ac_abs_top_srcdir=$ac_top_srcdir;;
1176*)
1177 case $ac_top_srcdir in
1178 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1181 esac;;
1182esac
a848cd7e
SC
1183
1184 cd $ac_dir
1185 # Check for guested configure; otherwise get Cygnus style configure.
1186 if test -f $ac_srcdir/configure.gnu; then
1187 echo
1188 $SHELL $ac_srcdir/configure.gnu --help=recursive
1189 elif test -f $ac_srcdir/configure; then
1190 echo
1191 $SHELL $ac_srcdir/configure --help=recursive
1192 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1193 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1194 echo
1195 $ac_configure --help
1196 else
1197 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198 fi
3565d135 1199 cd $ac_popdir
a848cd7e
SC
1200 done
1201fi
1202
1203test -n "$ac_init_help" && exit 0
1204if $ac_init_version; then
1205 cat <<\_ACEOF
dd8df4fc 1206wxWidgets configure 2.7.0
ac1cb8d3 1207generated by GNU Autoconf 2.59
a848cd7e 1208
ac1cb8d3 1209Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1210This configure script is free software; the Free Software Foundation
1211gives unlimited permission to copy, distribute and modify it.
1212_ACEOF
1213 exit 0
1214fi
1215exec 5>config.log
1216cat >&5 <<_ACEOF
1217This file contains any messages produced by compilers while
1218running configure, to aid debugging if configure makes a mistake.
1219
dd8df4fc 1220It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1221generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1222
1223 $ $0 $@
1224
1225_ACEOF
1226{
1227cat <<_ASUNAME
1228## --------- ##
1229## Platform. ##
1230## --------- ##
1231
1232hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236uname -v = `(uname -v) 2>/dev/null || echo unknown`
1237
1238/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1240
1241/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1242/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1243/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1245/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1246/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1247/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1248
1249_ASUNAME
1250
1251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1252for as_dir in $PATH
1253do
1254 IFS=$as_save_IFS
1255 test -z "$as_dir" && as_dir=.
1256 echo "PATH: $as_dir"
1257done
1258
1259} >&5
1260
1261cat >&5 <<_ACEOF
1262
1263
1264## ----------- ##
1265## Core tests. ##
1266## ----------- ##
1267
1268_ACEOF
1269
1270
1271# Keep a trace of the command line.
1272# Strip out --no-create and --no-recursion so they do not pile up.
1273# Strip out --silent because we don't want to record it for future runs.
1274# Also quote any args containing shell meta-characters.
1275# Make two passes to allow for proper duplicate-argument suppression.
1276ac_configure_args=
1277ac_configure_args0=
1278ac_configure_args1=
1279ac_sep=
1280ac_must_keep_next=false
1281for ac_pass in 1 2
1282do
1283 for ac_arg
1284 do
1285 case $ac_arg in
1286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288 | -silent | --silent | --silen | --sile | --sil)
1289 continue ;;
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 esac
1293 case $ac_pass in
1294 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1295 2)
1296 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297 if test $ac_must_keep_next = true; then
ac1cb8d3 1298 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1299 else
ac1cb8d3
VS
1300 case $ac_arg in
1301 *=* | --config-cache | -C | -disable-* | --disable-* \
1302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304 | -with-* | --with-* | -without-* | --without-* | --x)
1305 case "$ac_configure_args0 " in
1306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1307 esac
1308 ;;
1309 -* ) ac_must_keep_next=true ;;
1310 esac
a848cd7e
SC
1311 fi
1312 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313 # Get rid of the leading space.
1314 ac_sep=" "
1315 ;;
1316 esac
1317 done
1318done
1319$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1321
1322# When interrupted or exit'd, cleanup temporary files, and complete
1323# config.log. We remove comments because anyway the quotes in there
1324# would cause problems or look ugly.
1325# WARNING: Be sure not to use single quotes in there, as some shells,
1326# such as our DU 5.0 friend, will then `close' the trap.
1327trap 'exit_status=$?
1328 # Save into config.log some information that might help in debugging.
1329 {
1330 echo
1331
1332 cat <<\_ASBOX
1333## ---------------- ##
1334## Cache variables. ##
1335## ---------------- ##
1336_ASBOX
1337 echo
1338 # The following way of writing the cache mishandles newlines in values,
1339{
1340 (set) 2>&1 |
1341 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1342 *ac_space=\ *)
1343 sed -n \
ac1cb8d3
VS
1344 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1346 ;;
1347 *)
1348 sed -n \
ac1cb8d3 1349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1350 ;;
1351 esac;
1352}
1353 echo
1354
1355 cat <<\_ASBOX
1356## ----------------- ##
1357## Output variables. ##
1358## ----------------- ##
1359_ASBOX
1360 echo
1361 for ac_var in $ac_subst_vars
1362 do
1363 eval ac_val=$`echo $ac_var`
1364 echo "$ac_var='"'"'$ac_val'"'"'"
1365 done | sort
1366 echo
1367
1368 if test -n "$ac_subst_files"; then
1369 cat <<\_ASBOX
1370## ------------- ##
1371## Output files. ##
1372## ------------- ##
1373_ASBOX
1374 echo
1375 for ac_var in $ac_subst_files
1376 do
1377 eval ac_val=$`echo $ac_var`
ac1cb8d3 1378 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1379 done | sort
1380 echo
1381 fi
1382
1383 if test -s confdefs.h; then
1384 cat <<\_ASBOX
1385## ----------- ##
1386## confdefs.h. ##
1387## ----------- ##
1388_ASBOX
1389 echo
1390 sed "/^$/d" confdefs.h | sort
1391 echo
1392 fi
1393 test "$ac_signal" != 0 &&
1394 echo "$as_me: caught signal $ac_signal"
1395 echo "$as_me: exit $exit_status"
1396 } >&5
ac1cb8d3 1397 rm -f core *.core &&
a848cd7e
SC
1398 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1399 exit $exit_status
1400 ' 0
1401for ac_signal in 1 2 13 15; do
1402 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1403done
1404ac_signal=0
1405
1406# confdefs.h avoids OS command line length limits that DEFS can exceed.
1407rm -rf conftest* confdefs.h
1408# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1409echo >confdefs.h
1410
1411# Predefined preprocessor variables.
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_NAME "$PACKAGE_NAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_VERSION "$PACKAGE_VERSION"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_STRING "$PACKAGE_STRING"
1430_ACEOF
1431
1432
1433cat >>confdefs.h <<_ACEOF
1434#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1435_ACEOF
1436
1437
1438# Let the site file select an alternate cache file if it wants to.
1439# Prefer explicitly selected file to automatically selected ones.
1440if test -z "$CONFIG_SITE"; then
1441 if test "x$prefix" != xNONE; then
1442 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1443 else
1444 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1445 fi
1446fi
1447for ac_site_file in $CONFIG_SITE; do
1448 if test -r "$ac_site_file"; then
1449 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450echo "$as_me: loading site script $ac_site_file" >&6;}
1451 sed 's/^/| /' "$ac_site_file" >&5
1452 . "$ac_site_file"
1453 fi
1454done
1455
1456if test -r "$cache_file"; then
1457 # Some versions of bash will fail to source /dev/null (special
1458 # files actually), so we avoid doing that.
1459 if test -f "$cache_file"; then
1460 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1461echo "$as_me: loading cache $cache_file" >&6;}
1462 case $cache_file in
1463 [\\/]* | ?:[\\/]* ) . $cache_file;;
1464 *) . ./$cache_file;;
1465 esac
1466 fi
1467else
1468 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1469echo "$as_me: creating cache $cache_file" >&6;}
1470 >$cache_file
1471fi
1472
1473# Check that the precious variables saved in the cache have kept the same
1474# value.
1475ac_cache_corrupted=false
1476for ac_var in `(set) 2>&1 |
ac1cb8d3 1477 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1478 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1479 eval ac_new_set=\$ac_env_${ac_var}_set
1480 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1481 eval ac_new_val="\$ac_env_${ac_var}_value"
1482 case $ac_old_set,$ac_new_set in
1483 set,)
1484 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1485echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1486 ac_cache_corrupted=: ;;
1487 ,set)
1488 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1489echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1490 ac_cache_corrupted=: ;;
1491 ,);;
1492 *)
1493 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1494 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1495echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1496 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1497echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1498 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1499echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1500 ac_cache_corrupted=:
a848cd7e
SC
1501 fi;;
1502 esac
1503 # Pass precious variables to config.status.
1504 if test "$ac_new_set" = set; then
1505 case $ac_new_val in
1506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1507 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1508 *) ac_arg=$ac_var=$ac_new_val ;;
1509 esac
1510 case " $ac_configure_args " in
1511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1512 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1513 esac
1514 fi
1515done
1516if $ac_cache_corrupted; then
1517 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1518echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1519 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1520echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1521 { (exit 1); exit 1; }; }
1522fi
1523
1524ac_ext=c
1525ac_cpp='$CPP $CPPFLAGS'
1526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1528ac_compiler_gnu=$ac_cv_c_compiler_gnu
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559ac_aux_dir=
1560for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1561 if test -f $ac_dir/install-sh; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/install-sh -c"
1564 break
1565 elif test -f $ac_dir/install.sh; then
1566 ac_aux_dir=$ac_dir
1567 ac_install_sh="$ac_aux_dir/install.sh -c"
1568 break
1569 elif test -f $ac_dir/shtool; then
1570 ac_aux_dir=$ac_dir
1571 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 break
1573 fi
1574done
1575if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1577echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1578 { (exit 1); exit 1; }; }
1579fi
1580ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1581ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1582ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583
1584# Make sure we can run config.sub.
1585$ac_config_sub sun4 >/dev/null 2>&1 ||
1586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1587echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1588 { (exit 1); exit 1; }; }
1589
1590echo "$as_me:$LINENO: checking build system type" >&5
1591echo $ECHO_N "checking build system type... $ECHO_C" >&6
1592if test "${ac_cv_build+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 ac_cv_build_alias=$build_alias
1596test -z "$ac_cv_build_alias" &&
1597 ac_cv_build_alias=`$ac_config_guess`
1598test -z "$ac_cv_build_alias" &&
1599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1600echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1601 { (exit 1); exit 1; }; }
1602ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1604echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1606
1607fi
1608echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1609echo "${ECHO_T}$ac_cv_build" >&6
1610build=$ac_cv_build
1611build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616echo "$as_me:$LINENO: checking host system type" >&5
1617echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 ac_cv_host_alias=$host_alias
1622test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias=$ac_cv_build_alias
1624ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629fi
1630echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631echo "${ECHO_T}$ac_cv_host" >&6
1632host=$ac_cv_host
1633host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638echo "$as_me:$LINENO: checking target system type" >&5
1639echo $ECHO_N "checking target system type... $ECHO_C" >&6
1640if test "${ac_cv_target+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 ac_cv_target_alias=$target_alias
1644test "x$ac_cv_target_alias" = "x" &&
1645 ac_cv_target_alias=$ac_cv_host_alias
1646ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1647 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1648echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1649 { (exit 1); exit 1; }; }
1650
1651fi
1652echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1653echo "${ECHO_T}$ac_cv_target" >&6
1654target=$ac_cv_target
1655target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1656target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1657target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1658
1659
1660# The aliases save the names the user supplied, while $host etc.
1661# will get canonicalized.
1662test -n "$target_alias" &&
1663 test "$program_prefix$program_suffix$program_transform_name" = \
1664 NONENONEs,x,x, &&
1665 program_prefix=${target_alias}-
1666
1667
1668
ceec2216 1669wx_major_version_number=2
dd8df4fc
VZ
1670wx_minor_version_number=7
1671wx_release_number=0
1672wx_subrelease_number=0
a848cd7e 1673
ceec2216
RL
1674WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1675WX_VERSION=$WX_RELEASE.$wx_release_number
1676WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1677
ceec2216 1678WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1679
a848cd7e
SC
1680
1681
1682
1683USE_UNIX=1
1684USE_OS2=0
1685USE_WIN32=0
1686USE_DOS=0
1687USE_BEOS=0
1688USE_MAC=0
1689
1690USE_AIX=
1691USE_BSD= USE_DARWIN= USE_FREEBSD=
1692USE_GNU= USE_HPUX=
1693USE_LINUX=
1694USE_NETBSD=
1695USE_OPENBSD=
1696USE_OSF= USE_SGI=
1697USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1698USE_ULTRIX=
1699USE_UNIXWARE=
1700
1701USE_ALPHA=
1702
1703NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1704
1705ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1706
1707DEFAULT_wxUSE_COCOA=0
1708DEFAULT_wxUSE_GTK=0
1709DEFAULT_wxUSE_MAC=0
1710DEFAULT_wxUSE_MGL=0
1711DEFAULT_wxUSE_MICROWIN=0
1712DEFAULT_wxUSE_MOTIF=0
1713DEFAULT_wxUSE_MSW=0
1714DEFAULT_wxUSE_PM=0
1715DEFAULT_wxUSE_X11=0
1716
1717DEFAULT_DEFAULT_wxUSE_COCOA=0
1718DEFAULT_DEFAULT_wxUSE_GTK=0
1719DEFAULT_DEFAULT_wxUSE_MAC=0
1720DEFAULT_DEFAULT_wxUSE_MGL=0
1721DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1722DEFAULT_DEFAULT_wxUSE_MOTIF=0
1723DEFAULT_DEFAULT_wxUSE_MSW=0
1724DEFAULT_DEFAULT_wxUSE_PM=0
1725DEFAULT_DEFAULT_wxUSE_X11=0
1726
1727PROGRAM_EXT=
1728SO_SUFFIX=so
1729SAMPLES_RPATH_FLAG=
1730SAMPLES_RPATH_POSTLINK=
1731
a03b8b04
RD
1732DEFAULT_STD_FLAG=yes
1733
a848cd7e
SC
1734case "${host}" in
1735 *-hp-hpux* )
1736 USE_HPUX=1
1737 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1738 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1739 SO_SUFFIX=sl
1740 cat >>confdefs.h <<\_ACEOF
1741#define __HPUX__ 1
1742_ACEOF
1743
2eef8513 1744
c92ad099 1745 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1746 ;;
1747 *-*-linux* )
1748 USE_LINUX=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __LINUX__ 1
1751_ACEOF
1752
1753 TMP=`uname -m`
1754 if test "x$TMP" = "xalpha"; then
1755 USE_ALPHA=1
1756 cat >>confdefs.h <<\_ACEOF
1757#define __ALPHA__ 1
1758_ACEOF
1759
1760 fi
1761 DEFAULT_DEFAULT_wxUSE_GTK=1
1762 ;;
1763 *-*-gnu* | *-*-k*bsd*-gnu )
1764 USE_GNU=1
1765 TMP=`uname -m`
1766 if test "x$TMP" = "xalpha"; then
1767 USE_ALPHA=1
1768 cat >>confdefs.h <<\_ACEOF
1769#define __ALPHA__ 1
1770_ACEOF
1771
1772 fi
1773 DEFAULT_DEFAULT_wxUSE_GTK=1
1774 ;;
1775 *-*-irix5* | *-*-irix6* )
1776 USE_SGI=1
1777 USE_SVR4=1
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SGI__ 1
1780_ACEOF
1781
1782 cat >>confdefs.h <<\_ACEOF
1783#define __SVR4__ 1
1784_ACEOF
1785
1786 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1787 ;;
1788 *-*-solaris2* )
1789 USE_SUN=1
1790 USE_SOLARIS=1
1791 USE_SVR4=1
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SUN__ 1
1794_ACEOF
1795
1796 cat >>confdefs.h <<\_ACEOF
1797#define __SOLARIS__ 1
1798_ACEOF
1799
1800 cat >>confdefs.h <<\_ACEOF
1801#define __SVR4__ 1
1802_ACEOF
1803
1804 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1805 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1806 ;;
1807 *-*-sunos4* )
1808 USE_SUN=1
1809 USE_SUNOS=1
1810 USE_BSD=1
1811 cat >>confdefs.h <<\_ACEOF
1812#define __SUN__ 1
1813_ACEOF
1814
1815 cat >>confdefs.h <<\_ACEOF
1816#define __SUNOS__ 1
1817_ACEOF
1818
1819 cat >>confdefs.h <<\_ACEOF
1820#define __BSD__ 1
1821_ACEOF
1822
1823 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1824 ;;
1825 *-*-freebsd*)
1826 USE_BSD=1
1827 USE_FREEBSD=1
1828 cat >>confdefs.h <<\_ACEOF
1829#define __FREEBSD__ 1
1830_ACEOF
1831
1832 cat >>confdefs.h <<\_ACEOF
1833#define __BSD__ 1
1834_ACEOF
1835
1836 DEFAULT_DEFAULT_wxUSE_GTK=1
1837 ;;
1838 *-*-openbsd*)
1839 USE_BSD=1
1840 USE_OPENBSD=1
1841 cat >>confdefs.h <<\_ACEOF
1842#define __OPENBSD__ 1
1843_ACEOF
1844
1845 cat >>confdefs.h <<\_ACEOF
1846#define __BSD__ 1
1847_ACEOF
1848
1849 DEFAULT_DEFAULT_wxUSE_GTK=1
1850 ;;
1851 *-*-netbsd*)
1852 USE_BSD=1
1853 USE_NETBSD=1
1854 cat >>confdefs.h <<\_ACEOF
1855#define __NETBSD__ 1
1856_ACEOF
1857
1858 cat >>confdefs.h <<\_ACEOF
1859#define __BSD__ 1
1860_ACEOF
1861
1862 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1863 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
a848cd7e
SC
1864 ;;
1865 *-*-osf* )
1866 USE_ALPHA=1
1867 USE_OSF=1
1868 cat >>confdefs.h <<\_ACEOF
1869#define __ALPHA__ 1
1870_ACEOF
1871
1872 cat >>confdefs.h <<\_ACEOF
1873#define __OSF__ 1
1874_ACEOF
1875
1876 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1877 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1878 ;;
1879 *-*-dgux5* )
1880 USE_ALPHA=1
1881 USE_SVR4=1
1882 cat >>confdefs.h <<\_ACEOF
1883#define __ALPHA__ 1
1884_ACEOF
1885
1886 cat >>confdefs.h <<\_ACEOF
1887#define __SVR4__ 1
1888_ACEOF
1889
1890 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1891 ;;
1892 *-*-sysv5* )
1893 USE_SYSV=1
1894 USE_SVR4=1
1895 cat >>confdefs.h <<\_ACEOF
1896#define __SYSV__ 1
1897_ACEOF
1898
1899 cat >>confdefs.h <<\_ACEOF
1900#define __SVR4__ 1
1901_ACEOF
1902
1903 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1904 ;;
1905 *-*-aix* )
1906 USE_AIX=1
1907 USE_SYSV=1
1908 USE_SVR4=1
1909 SO_SUFFIX=a
1910 cat >>confdefs.h <<\_ACEOF
1911#define __AIX__ 1
1912_ACEOF
1913
1914 cat >>confdefs.h <<\_ACEOF
1915#define __SYSV__ 1
1916_ACEOF
1917
1918 cat >>confdefs.h <<\_ACEOF
1919#define __SVR4__ 1
1920_ACEOF
1921
1922 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1923 ;;
1924
1925 *-*-*UnixWare*)
1926 USE_SYSV=1
1927 USE_SVR4=1
1928 USE_UNIXWARE=1
1929 cat >>confdefs.h <<\_ACEOF
1930#define __UNIXWARE__ 1
1931_ACEOF
1932
1933 ;;
1934
1935 *-*-cygwin* | *-*-mingw32* )
1936 SO_SUFFIX=dll
1937 PROGRAM_EXT=".exe"
a848cd7e 1938 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1939 DEFAULT_STD_FLAG=no
a848cd7e
SC
1940 ;;
1941
1942 *-pc-msdosdjgpp )
1943 USE_UNIX=0
1944 USE_DOS=1
1945 cat >>confdefs.h <<\_ACEOF
1946#define __DOS__ 1
1947_ACEOF
1948
1949 PROGRAM_EXT=".exe"
1950 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1951 ;;
1952
1953 *-pc-os2_emx | *-pc-os2-emx )
1954 cat >>confdefs.h <<\_ACEOF
1955#define __EMX__ 1
1956_ACEOF
1957
1958 USE_OS2=1
1959 cat >>confdefs.h <<\_ACEOF
1960#define __OS2__ 1
1961_ACEOF
1962
1963 PROGRAM_EXT=".exe"
1964 DEFAULT_DEFAULT_wxUSE_PM=1
1965 CXX=gcc
1966 LDFLAGS="$LDFLAGS -Zcrtdll"
1967 ac_executable_extensions=".exe"
1968 export ac_executable_extensions
1969 ac_save_IFS="$IFS"
1970 IFS='\\'
1971 ac_TEMP_PATH=
1972 for ac_dir in $PATH; do
1973 IFS=$ac_save_IFS
1974 if test -z "$ac_TEMP_PATH"; then
1975 ac_TEMP_PATH="$ac_dir"
1976 else
1977 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1978 fi
1979 done
1980 export PATH="$ac_TEMP_PATH"
1981 unset ac_TEMP_PATH
a03b8b04 1982 DEFAULT_STD_FLAG=no
a848cd7e
SC
1983 ;;
1984
cfda0ea8 1985 *-*-darwin* )
a848cd7e
SC
1986 USE_BSD=1
1987 USE_DARWIN=1
1988 SO_SUFFIX=dylib
1989 cat >>confdefs.h <<\_ACEOF
1990#define __BSD__ 1
1991_ACEOF
1992
1993 cat >>confdefs.h <<\_ACEOF
1994#define __DARWIN__ 1
a848cd7e
SC
1995_ACEOF
1996
1997 cat >>confdefs.h <<\_ACEOF
1998#define TARGET_CARBON 1
1999_ACEOF
2000
2001 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2002 DEFAULT_STD_FLAG=no
a848cd7e 2003 ;;
1e9e8aba
DE
2004 powerpc-apple-macos* )
2005 USE_UNIX=0
2006 ac_cv_c_bigendian=yes
2007 SO_SUFFIX=shlib
2008 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2009 DEFAULT_STD_FLAG=no
1e9e8aba 2010 ;;
a848cd7e
SC
2011
2012 *-*-beos* )
2013 USE_BEOS=1
2014 cat >>confdefs.h <<\_ACEOF
2015#define __BEOS__ 1
2016_ACEOF
2017
2018 ;;
2019
2020 *)
2021 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2022echo "$as_me: error: unknown system type ${host}." >&2;}
2023 { (exit 1); exit 1; }; }
2024esac
2025
2026
2027
2028
2029 wx_arg_cache_file="configarg.cache"
2030 echo "loading argument cache $wx_arg_cache_file"
2031 rm -f ${wx_arg_cache_file}.tmp
2032 touch ${wx_arg_cache_file}.tmp
2033 touch ${wx_arg_cache_file}
2034
2035
2036DEBUG_CONFIGURE=0
2037if test $DEBUG_CONFIGURE = 1; then
2038 DEFAULT_wxUSE_UNIVERSAL=no
2039 DEFAULT_wxUSE_STL=no
2040
2041 DEFAULT_wxUSE_NANOX=no
2042
2043 DEFAULT_wxUSE_THREADS=yes
2044
2045 DEFAULT_wxUSE_SHARED=yes
2046 DEFAULT_wxUSE_OPTIMISE=no
2047 DEFAULT_wxUSE_PROFILE=no
2048 DEFAULT_wxUSE_NO_DEPS=no
2049 DEFAULT_wxUSE_NO_RTTI=no
2050 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2051 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2052 DEFAULT_wxUSE_PERMISSIVE=no
2053 DEFAULT_wxUSE_DEBUG_FLAG=yes
2054 DEFAULT_wxUSE_DEBUG_INFO=yes
2055 DEFAULT_wxUSE_DEBUG_GDB=yes
2056 DEFAULT_wxUSE_MEM_TRACING=no
2057 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2058 DEFAULT_wxUSE_DMALLOC=no
2059 DEFAULT_wxUSE_APPLE_IEEE=no
2060
2061 DEFAULT_wxUSE_EXCEPTIONS=no
2062 DEFAULT_wxUSE_LOG=yes
2063 DEFAULT_wxUSE_LOGWINDOW=no
2064 DEFAULT_wxUSE_LOGGUI=no
2065 DEFAULT_wxUSE_LOGDIALOG=no
2066
2067 DEFAULT_wxUSE_GUI=yes
2068 DEFAULT_wxUSE_CONTROLS=no
2069
2070 DEFAULT_wxUSE_REGEX=no
2071 DEFAULT_wxUSE_XML=no
2072 DEFAULT_wxUSE_EXPAT=no
2073 DEFAULT_wxUSE_ZLIB=no
2074 DEFAULT_wxUSE_LIBPNG=no
2075 DEFAULT_wxUSE_LIBJPEG=no
2076 DEFAULT_wxUSE_LIBTIFF=no
2077 DEFAULT_wxUSE_LIBXPM=no
2078 DEFAULT_wxUSE_LIBMSPACK=no
2079 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2080 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2081 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2082 DEFAULT_wxUSE_ODBC=no
2083 DEFAULT_wxUSE_OPENGL=no
2084
2085 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2086 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2087 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2088 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2089 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2090 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2091 DEFAULT_wxUSE_CMDLINE_PARSER=no
2092 DEFAULT_wxUSE_DATETIME=no
2093 DEFAULT_wxUSE_TIMER=no
2094 DEFAULT_wxUSE_STOPWATCH=no
2095 DEFAULT_wxUSE_FILE=no
2096 DEFAULT_wxUSE_FFILE=no
07158944 2097 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2098 DEFAULT_wxUSE_TEXTBUFFER=no
2099 DEFAULT_wxUSE_TEXTFILE=no
2100 DEFAULT_wxUSE_SOUND=no
3b57de8b 2101 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2102 DEFAULT_wxUSE_INTL=no
2103 DEFAULT_wxUSE_CONFIG=no
2104 DEFAULT_wxUSE_FONTMAP=no
2105 DEFAULT_wxUSE_STREAMS=no
2106 DEFAULT_wxUSE_SOCKETS=no
2107 DEFAULT_wxUSE_OLE=no
2108 DEFAULT_wxUSE_DATAOBJ=no
2109 DEFAULT_wxUSE_DIALUP_MANAGER=no
2110 DEFAULT_wxUSE_JOYSTICK=no
2111 DEFAULT_wxUSE_DYNLIB_CLASS=no
2112 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2113 DEFAULT_wxUSE_LONGLONG=no
2114 DEFAULT_wxUSE_GEOMETRY=no
2115
2116 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2117 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2118 DEFAULT_wxUSE_POSTSCRIPT=no
2119
2120 DEFAULT_wxUSE_CLIPBOARD=no
2121 DEFAULT_wxUSE_TOOLTIPS=no
2122 DEFAULT_wxUSE_DRAG_AND_DROP=no
2123 DEFAULT_wxUSE_DRAGIMAGE=no
2124 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2125 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2126
8a7b1113 2127 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2128 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2129 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2130 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2131
2132 DEFAULT_wxUSE_RESOURCES=no
2133 DEFAULT_wxUSE_CONSTRAINTS=no
2134 DEFAULT_wxUSE_IPC=no
2135 DEFAULT_wxUSE_HELP=no
2136 DEFAULT_wxUSE_MS_HTML_HELP=no
2137 DEFAULT_wxUSE_WXHTML_HELP=no
2138 DEFAULT_wxUSE_TREELAYOUT=no
2139 DEFAULT_wxUSE_METAFILE=no
2140 DEFAULT_wxUSE_MIMETYPE=no
2141 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2142 DEFAULT_wxUSE_PROTOCOL=no
2143 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2144 DEFAULT_wxUSE_PROTOCOL_FTP=no
2145 DEFAULT_wxUSE_PROTOCOL_FILE=no
2146 DEFAULT_wxUSE_URL=no
2147
2148 DEFAULT_wxUSE_COMMONDLGS=no
2149 DEFAULT_wxUSE_CHOICEDLG=no
2150 DEFAULT_wxUSE_COLOURDLG=no
2151 DEFAULT_wxUSE_DIRDLG=no
2152 DEFAULT_wxUSE_FILEDLG=no
2153 DEFAULT_wxUSE_FINDREPLDLG=no
2154 DEFAULT_wxUSE_FONTDLG=no
2155 DEFAULT_wxUSE_MSGDLG=no
2156 DEFAULT_wxUSE_NUMBERDLG=no
2157 DEFAULT_wxUSE_TEXTDLG=no
2158 DEFAULT_wxUSE_SPLASH=no
2159 DEFAULT_wxUSE_STARTUP_TIPS=no
2160 DEFAULT_wxUSE_PROGRESSDLG=no
2161 DEFAULT_wxUSE_WIZARDDLG=no
2162
2163 DEFAULT_wxUSE_MENUS=no
2164 DEFAULT_wxUSE_MINIFRAME=no
2165 DEFAULT_wxUSE_HTML=no
91dea314 2166 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2167 DEFAULT_wxUSE_XRC=no
646b6ec1 2168 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2169 DEFAULT_wxUSE_FILESYSTEM=no
2170 DEFAULT_wxUSE_FS_INET=no
2171 DEFAULT_wxUSE_FS_ZIP=no
2172 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2173 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2174 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2175 DEFAULT_wxUSE_VALIDATORS=no
2176
2177 DEFAULT_wxUSE_ACCEL=no
2178 DEFAULT_wxUSE_BUTTON=no
2179 DEFAULT_wxUSE_BMPBUTTON=no
2180 DEFAULT_wxUSE_CALCTRL=no
2181 DEFAULT_wxUSE_CARET=no
2182 DEFAULT_wxUSE_CHECKBOX=no
2183 DEFAULT_wxUSE_CHECKLST=no
2184 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2185 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2186 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2187 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2188 DEFAULT_wxUSE_DISPLAY=no
2189 DEFAULT_wxUSE_GAUGE=no
2190 DEFAULT_wxUSE_GRID=no
20e34ecc 2191 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2192 DEFAULT_wxUSE_IMAGLIST=no
2193 DEFAULT_wxUSE_LISTBOOK=no
2194 DEFAULT_wxUSE_LISTBOX=no
2195 DEFAULT_wxUSE_LISTCTRL=no
2196 DEFAULT_wxUSE_NOTEBOOK=no
2197 DEFAULT_wxUSE_RADIOBOX=no
2198 DEFAULT_wxUSE_RADIOBTN=no
2199 DEFAULT_wxUSE_SASH=no
2200 DEFAULT_wxUSE_SCROLLBAR=no
2201 DEFAULT_wxUSE_SLIDER=no
2202 DEFAULT_wxUSE_SPINBTN=no
2203 DEFAULT_wxUSE_SPINCTRL=no
2204 DEFAULT_wxUSE_SPLITTER=no
2205 DEFAULT_wxUSE_STATBMP=no
2206 DEFAULT_wxUSE_STATBOX=no
2207 DEFAULT_wxUSE_STATLINE=no
2208 DEFAULT_wxUSE_STATTEXT=no
2209 DEFAULT_wxUSE_STATUSBAR=yes
2210 DEFAULT_wxUSE_TABDIALOG=no
2211 DEFAULT_wxUSE_TEXTCTRL=no
2212 DEFAULT_wxUSE_TOGGLEBTN=no
2213 DEFAULT_wxUSE_TOOLBAR=no
2214 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2215 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2216 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
2217 DEFAULT_wxUSE_TREECTRL=no
2218 DEFAULT_wxUSE_POPUPWIN=no
2219 DEFAULT_wxUSE_TIPWINDOW=no
2220
2221 DEFAULT_wxUSE_UNICODE=no
2222 DEFAULT_wxUSE_UNICODE_MSLU=no
2223 DEFAULT_wxUSE_WCSRTOMBS=no
2224
2225 DEFAULT_wxUSE_PALETTE=no
2226 DEFAULT_wxUSE_IMAGE=no
2227 DEFAULT_wxUSE_GIF=no
2228 DEFAULT_wxUSE_PCX=no
2229 DEFAULT_wxUSE_PNM=no
2230 DEFAULT_wxUSE_IFF=no
2231 DEFAULT_wxUSE_XPM=no
2232 DEFAULT_wxUSE_ICO_CUR=no
2233 DEFAULT_wxUSE_ACCESSIBILITY=no
2234
2235 DEFAULT_wxUSE_MONOLITHIC=no
2236 DEFAULT_wxUSE_PLUGINS=no
2237 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2238else
2239 DEFAULT_wxUSE_UNIVERSAL=no
2240 DEFAULT_wxUSE_STL=no
2241
2242 DEFAULT_wxUSE_NANOX=no
2243
2244 DEFAULT_wxUSE_THREADS=yes
2245
2246 DEFAULT_wxUSE_SHARED=yes
2247 DEFAULT_wxUSE_OPTIMISE=yes
2248 DEFAULT_wxUSE_PROFILE=no
2249 DEFAULT_wxUSE_NO_DEPS=no
2250 DEFAULT_wxUSE_NO_RTTI=no
2251 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2252 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2253 DEFAULT_wxUSE_PERMISSIVE=no
2254 DEFAULT_wxUSE_DEBUG_FLAG=no
2255 DEFAULT_wxUSE_DEBUG_INFO=no
2256 DEFAULT_wxUSE_DEBUG_GDB=no
2257 DEFAULT_wxUSE_MEM_TRACING=no
2258 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2259 DEFAULT_wxUSE_DMALLOC=no
2260 DEFAULT_wxUSE_APPLE_IEEE=yes
2261
2262 DEFAULT_wxUSE_EXCEPTIONS=yes
2263 DEFAULT_wxUSE_LOG=yes
2264 DEFAULT_wxUSE_LOGWINDOW=yes
2265 DEFAULT_wxUSE_LOGGUI=yes
2266 DEFAULT_wxUSE_LOGDIALOG=yes
2267
2268 DEFAULT_wxUSE_GUI=yes
2269
2270 DEFAULT_wxUSE_REGEX=yes
2271 DEFAULT_wxUSE_XML=yes
2272 DEFAULT_wxUSE_EXPAT=yes
2273 DEFAULT_wxUSE_ZLIB=yes
2274 DEFAULT_wxUSE_LIBPNG=yes
2275 DEFAULT_wxUSE_LIBJPEG=yes
2276 DEFAULT_wxUSE_LIBTIFF=yes
2277 DEFAULT_wxUSE_LIBXPM=yes
2278 DEFAULT_wxUSE_LIBMSPACK=yes
2279 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2280 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2281 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2282 DEFAULT_wxUSE_ODBC=no
52cb607e 2283 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2284
2285 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2286 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2287 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2288 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2289 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2290 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2291 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2292 DEFAULT_wxUSE_DATETIME=yes
2293 DEFAULT_wxUSE_TIMER=yes
2294 DEFAULT_wxUSE_STOPWATCH=yes
2295 DEFAULT_wxUSE_FILE=yes
2296 DEFAULT_wxUSE_FFILE=yes
07158944 2297 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2298 DEFAULT_wxUSE_TEXTBUFFER=yes
2299 DEFAULT_wxUSE_TEXTFILE=yes
2300 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2301 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2302 DEFAULT_wxUSE_INTL=yes
2303 DEFAULT_wxUSE_CONFIG=yes
2304 DEFAULT_wxUSE_FONTMAP=yes
2305 DEFAULT_wxUSE_STREAMS=yes
2306 DEFAULT_wxUSE_SOCKETS=yes
2307 DEFAULT_wxUSE_OLE=yes
2308 DEFAULT_wxUSE_DATAOBJ=yes
2309 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2310 DEFAULT_wxUSE_JOYSTICK=yes
2311 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2312 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2313 DEFAULT_wxUSE_LONGLONG=yes
2314 DEFAULT_wxUSE_GEOMETRY=yes
2315
2316 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2317 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2318 DEFAULT_wxUSE_POSTSCRIPT=yes
2319
2320 DEFAULT_wxUSE_CLIPBOARD=yes
2321 DEFAULT_wxUSE_TOOLTIPS=yes
2322 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2323 DEFAULT_wxUSE_DRAGIMAGE=yes
2324 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2325 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2326
8a7b1113 2327 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2328 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2329 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2330 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2331
2332 DEFAULT_wxUSE_RESOURCES=no
2333 DEFAULT_wxUSE_CONSTRAINTS=yes
2334 DEFAULT_wxUSE_IPC=yes
2335 DEFAULT_wxUSE_HELP=yes
2336 DEFAULT_wxUSE_MS_HTML_HELP=yes
2337 DEFAULT_wxUSE_WXHTML_HELP=yes
2338 DEFAULT_wxUSE_TREELAYOUT=yes
2339 DEFAULT_wxUSE_METAFILE=yes
2340 DEFAULT_wxUSE_MIMETYPE=yes
2341 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2342 DEFAULT_wxUSE_PROTOCOL=yes
2343 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2344 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2345 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2346 DEFAULT_wxUSE_URL=yes
2347
2348 DEFAULT_wxUSE_COMMONDLGS=yes
2349 DEFAULT_wxUSE_CHOICEDLG=yes
2350 DEFAULT_wxUSE_COLOURDLG=yes
2351 DEFAULT_wxUSE_DIRDLG=yes
2352 DEFAULT_wxUSE_FILEDLG=yes
2353 DEFAULT_wxUSE_FINDREPLDLG=yes
2354 DEFAULT_wxUSE_FONTDLG=yes
2355 DEFAULT_wxUSE_MSGDLG=yes
2356 DEFAULT_wxUSE_NUMBERDLG=yes
2357 DEFAULT_wxUSE_TEXTDLG=yes
2358 DEFAULT_wxUSE_SPLASH=yes
2359 DEFAULT_wxUSE_STARTUP_TIPS=yes
2360 DEFAULT_wxUSE_PROGRESSDLG=yes
2361 DEFAULT_wxUSE_WIZARDDLG=yes
2362
2363 DEFAULT_wxUSE_MENUS=yes
2364 DEFAULT_wxUSE_MINIFRAME=yes
2365 DEFAULT_wxUSE_HTML=yes
91dea314 2366 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2367 DEFAULT_wxUSE_XRC=yes
646b6ec1 2368 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2369 DEFAULT_wxUSE_FILESYSTEM=yes
2370 DEFAULT_wxUSE_FS_INET=yes
2371 DEFAULT_wxUSE_FS_ZIP=yes
2372 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2373 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2374 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2375 DEFAULT_wxUSE_VALIDATORS=yes
2376
2377 DEFAULT_wxUSE_ACCEL=yes
2378 DEFAULT_wxUSE_BUTTON=yes
2379 DEFAULT_wxUSE_BMPBUTTON=yes
2380 DEFAULT_wxUSE_CALCTRL=yes
2381 DEFAULT_wxUSE_CARET=yes
2382 DEFAULT_wxUSE_CHECKBOX=yes
2383 DEFAULT_wxUSE_CHECKLST=yes
2384 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2385 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2386 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2387 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2388 DEFAULT_wxUSE_DISPLAY=yes
2389 DEFAULT_wxUSE_GAUGE=yes
2390 DEFAULT_wxUSE_GRID=yes
20e34ecc 2391 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2392 DEFAULT_wxUSE_IMAGLIST=yes
2393 DEFAULT_wxUSE_LISTBOOK=yes
2394 DEFAULT_wxUSE_LISTBOX=yes
2395 DEFAULT_wxUSE_LISTCTRL=yes
2396 DEFAULT_wxUSE_NOTEBOOK=yes
2397 DEFAULT_wxUSE_RADIOBOX=yes
2398 DEFAULT_wxUSE_RADIOBTN=yes
2399 DEFAULT_wxUSE_SASH=yes
2400 DEFAULT_wxUSE_SCROLLBAR=yes
2401 DEFAULT_wxUSE_SLIDER=yes
2402 DEFAULT_wxUSE_SPINBTN=yes
2403 DEFAULT_wxUSE_SPINCTRL=yes
2404 DEFAULT_wxUSE_SPLITTER=yes
2405 DEFAULT_wxUSE_STATBMP=yes
2406 DEFAULT_wxUSE_STATBOX=yes
2407 DEFAULT_wxUSE_STATLINE=yes
2408 DEFAULT_wxUSE_STATTEXT=yes
2409 DEFAULT_wxUSE_STATUSBAR=yes
2410 DEFAULT_wxUSE_TABDIALOG=no
2411 DEFAULT_wxUSE_TEXTCTRL=yes
2412 DEFAULT_wxUSE_TOGGLEBTN=yes
2413 DEFAULT_wxUSE_TOOLBAR=yes
2414 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2415 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2416 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
2417 DEFAULT_wxUSE_TREECTRL=yes
2418 DEFAULT_wxUSE_POPUPWIN=yes
2419 DEFAULT_wxUSE_TIPWINDOW=yes
2420
78de529b 2421 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2422 DEFAULT_wxUSE_UNICODE_MSLU=yes
2423 DEFAULT_wxUSE_WCSRTOMBS=no
2424
2425 DEFAULT_wxUSE_PALETTE=yes
2426 DEFAULT_wxUSE_IMAGE=yes
2427 DEFAULT_wxUSE_GIF=yes
2428 DEFAULT_wxUSE_PCX=yes
2429 DEFAULT_wxUSE_IFF=no
2430 DEFAULT_wxUSE_PNM=yes
2431 DEFAULT_wxUSE_XPM=yes
2432 DEFAULT_wxUSE_ICO_CUR=yes
2433 DEFAULT_wxUSE_ACCESSIBILITY=no
2434
2435 DEFAULT_wxUSE_MONOLITHIC=no
2436 DEFAULT_wxUSE_PLUGINS=no
2437 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2438
f34ca037 2439 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2440fi
2441
2442
2443
f34ca037 2444
a848cd7e
SC
2445for toolkit in `echo $ALL_TOOLKITS`; do
2446 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2447 if test "x$LINE" != "x" ; then
2448 has_toolkit_in_cache=1
2449 eval "DEFAULT_$LINE"
2450 eval "CACHE_$toolkit=1"
f34ca037
MW
2451
2452 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2453 if test "x$LINE" != "x" ; then
2454 eval "DEFAULT_$LINE"
2455 fi
a848cd7e
SC
2456 fi
2457done
2458
2459
2460
2461 enablestring=
2462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2463echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2464 no_cache=0
2465 # Check whether --enable-gui or --disable-gui was given.
2466if test "${enable_gui+set}" = set; then
2467 enableval="$enable_gui"
2468
2469 if test "$enableval" = yes; then
2470 ac_cv_use_gui='wxUSE_GUI=yes'
2471 else
2472 ac_cv_use_gui='wxUSE_GUI=no'
2473 fi
2474
2475else
2476
2477 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2478 if test "x$LINE" != x ; then
2479 eval "DEFAULT_$LINE"
2480 else
2481 no_cache=1
2482 fi
2483
2484 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2485
2486fi;
2487
2488 eval "$ac_cv_use_gui"
2489 if test "$no_cache" != 1; then
2490 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2491 fi
2492
2493 if test "$wxUSE_GUI" = yes; then
2494 echo "$as_me:$LINENO: result: yes" >&5
2495echo "${ECHO_T}yes" >&6
2496 else
2497 echo "$as_me:$LINENO: result: no" >&5
2498echo "${ECHO_T}no" >&6
2499 fi
2500
2501
2502 enablestring=
2503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2504echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2505 no_cache=0
2506 # Check whether --enable-monolithic or --disable-monolithic was given.
2507if test "${enable_monolithic+set}" = set; then
2508 enableval="$enable_monolithic"
2509
2510 if test "$enableval" = yes; then
2511 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2512 else
2513 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2514 fi
2515
2516else
2517
2518 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2519 if test "x$LINE" != x ; then
2520 eval "DEFAULT_$LINE"
2521 else
2522 no_cache=1
2523 fi
2524
2525 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2526
2527fi;
2528
2529 eval "$ac_cv_use_monolithic"
2530 if test "$no_cache" != 1; then
2531 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2532 fi
2533
2534 if test "$wxUSE_MONOLITHIC" = yes; then
2535 echo "$as_me:$LINENO: result: yes" >&5
2536echo "${ECHO_T}yes" >&6
2537 else
2538 echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6
2540 fi
2541
2542
2543 enablestring=
2544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2545echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2546 no_cache=0
2547 # Check whether --enable-plugins or --disable-plugins was given.
2548if test "${enable_plugins+set}" = set; then
2549 enableval="$enable_plugins"
2550
2551 if test "$enableval" = yes; then
2552 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2553 else
2554 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2555 fi
2556
2557else
2558
2559 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2560 if test "x$LINE" != x ; then
2561 eval "DEFAULT_$LINE"
2562 else
2563 no_cache=1
2564 fi
2565
2566 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2567
2568fi;
2569
2570 eval "$ac_cv_use_plugins"
2571 if test "$no_cache" != 1; then
2572 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2573 fi
2574
2575 if test "$wxUSE_PLUGINS" = yes; then
2576 echo "$as_me:$LINENO: result: yes" >&5
2577echo "${ECHO_T}yes" >&6
2578 else
2579 echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6
2581 fi
2582
2583
1c14217d
VZ
2584 withstring=without
2585 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2586echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2587 no_cache=0
2588
2589# Check whether --with-subdirs or --without-subdirs was given.
2590if test "${with_subdirs+set}" = set; then
2591 withval="$with_subdirs"
2592
2593 if test "$withval" = yes; then
2594 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2595 else
2596 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2597 fi
2598
2599else
2600
2601 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2602 if test "x$LINE" != x ; then
2603 eval "DEFAULT_$LINE"
2604 else
2605 no_cache=1
2606 fi
2607
2608 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2609
2610fi;
2611
2612 eval "$ac_cv_use_subdirs"
2613 if test "$no_cache" != 1; then
2614 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2615 fi
2616
2617 if test "$wxWITH_SUBDIRS" = yes; then
2618 echo "$as_me:$LINENO: result: yes" >&5
2619echo "${ECHO_T}yes" >&6
2620 else
2621 echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6
2623 fi
2624
2625
a848cd7e
SC
2626if test "$wxUSE_GUI" = "yes"; then
2627
2628
2629 enablestring=
2630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2631echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2632 no_cache=0
2633 # Check whether --enable-universal or --disable-universal was given.
2634if test "${enable_universal+set}" = set; then
2635 enableval="$enable_universal"
2636
2637 if test "$enableval" = yes; then
2638 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2639 else
2640 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2641 fi
2642
2643else
2644
2645 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2646 if test "x$LINE" != x ; then
2647 eval "DEFAULT_$LINE"
2648 else
2649 no_cache=1
2650 fi
2651
2652 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2653
2654fi;
2655
2656 eval "$ac_cv_use_universal"
2657 if test "$no_cache" != 1; then
2658 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2659 fi
2660
2661 if test "$wxUSE_UNIVERSAL" = yes; then
2662 echo "$as_me:$LINENO: result: yes" >&5
2663echo "${ECHO_T}yes" >&6
2664 else
2665 echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6
2667 fi
2668
2669
2670# Check whether --with-gtk or --without-gtk was given.
2671if test "${with_gtk+set}" = set; then
2672 withval="$with_gtk"
2673 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2674fi;
2675
2676# Check whether --with-motif or --without-motif was given.
2677if test "${with_motif+set}" = set; then
2678 withval="$with_motif"
2679 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2680fi;
2681
2682# Check whether --with-mac or --without-mac was given.
2683if test "${with_mac+set}" = set; then
2684 withval="$with_mac"
c228d3a4 2685 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2686fi;
2687
2688# Check whether --with-cocoa or --without-cocoa was given.
2689if test "${with_cocoa+set}" = set; then
2690 withval="$with_cocoa"
c228d3a4 2691 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2692fi;
2693
2694# Check whether --with-wine or --without-wine was given.
2695if test "${with_wine+set}" = set; then
2696 withval="$with_wine"
2697 wxUSE_WINE="$withval" CACHE_WINE=1
2698fi;
2699
2700# Check whether --with-msw or --without-msw was given.
2701if test "${with_msw+set}" = set; then
2702 withval="$with_msw"
2703 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2704fi;
2705
2706# Check whether --with-pm or --without-pm was given.
2707if test "${with_pm+set}" = set; then
2708 withval="$with_pm"
2709 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2710fi;
2711
2712# Check whether --with-mgl or --without-mgl was given.
2713if test "${with_mgl+set}" = set; then
2714 withval="$with_mgl"
2715 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2716fi;
2717
2718# Check whether --with-microwin or --without-microwin was given.
2719if test "${with_microwin+set}" = set; then
2720 withval="$with_microwin"
2721 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2722fi;
2723
2724# Check whether --with-x11 or --without-x11 was given.
2725if test "${with_x11+set}" = set; then
2726 withval="$with_x11"
2727 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2728fi;
2729
2730 enablestring=
2731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2732echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2733 no_cache=0
2734 # Check whether --enable-nanox or --disable-nanox was given.
2735if test "${enable_nanox+set}" = set; then
2736 enableval="$enable_nanox"
2737
2738 if test "$enableval" = yes; then
2739 ac_cv_use_nanox='wxUSE_NANOX=yes'
2740 else
2741 ac_cv_use_nanox='wxUSE_NANOX=no'
2742 fi
2743
2744else
2745
2746 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2747 if test "x$LINE" != x ; then
2748 eval "DEFAULT_$LINE"
2749 else
2750 no_cache=1
2751 fi
2752
2753 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2754
2755fi;
2756
2757 eval "$ac_cv_use_nanox"
2758 if test "$no_cache" != 1; then
2759 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2760 fi
2761
2762 if test "$wxUSE_NANOX" = yes; then
2763 echo "$as_me:$LINENO: result: yes" >&5
2764echo "${ECHO_T}yes" >&6
2765 else
2766 echo "$as_me:$LINENO: result: no" >&5
2767echo "${ECHO_T}no" >&6
2768 fi
2769
2770
f34ca037
MW
2771# Check whether --enable-gtk2 or --disable-gtk2 was given.
2772if test "${enable_gtk2+set}" = set; then
2773 enableval="$enable_gtk2"
2774 wxUSE_GTK2="$enableval"
2775fi;
a848cd7e 2776
a848cd7e
SC
2777 enablestring=
2778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2779echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2780 no_cache=0
2781 # Check whether --enable-gpe or --disable-gpe was given.
2782if test "${enable_gpe+set}" = set; then
2783 enableval="$enable_gpe"
2784
2785 if test "$enableval" = yes; then
2786 ac_cv_use_gpe='wxUSE_GPE=yes'
2787 else
2788 ac_cv_use_gpe='wxUSE_GPE=no'
2789 fi
2790
2791else
2792
2793 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2794 if test "x$LINE" != x ; then
2795 eval "DEFAULT_$LINE"
2796 else
2797 no_cache=1
2798 fi
2799
2800 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2801
2802fi;
2803
2804 eval "$ac_cv_use_gpe"
2805 if test "$no_cache" != 1; then
2806 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2807 fi
2808
2809 if test "$wxUSE_GPE" = yes; then
2810 echo "$as_me:$LINENO: result: yes" >&5
2811echo "${ECHO_T}yes" >&6
2812 else
2813 echo "$as_me:$LINENO: result: no" >&5
2814echo "${ECHO_T}no" >&6
2815 fi
2816
2817
2818
2819 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2820echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2821 no_cache=0
2822
2823# Check whether --with-libpng or --without-libpng was given.
2824if test "${with_libpng+set}" = set; then
2825 withval="$with_libpng"
2826
2827 if test "$withval" = yes; then
2828 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2829 elif test "$withval" = no; then
2830 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2831 elif test "$withval" = sys; then
2832 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2833 elif test "$withval" = builtin; then
2834 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2835 else
2836 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2837echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2838 { (exit 1); exit 1; }; }
2839 fi
2840
2841else
2842
2843 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2844 if test "x$LINE" != x ; then
2845 eval "DEFAULT_$LINE"
2846 else
2847 no_cache=1
2848 fi
2849
2850 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2851
2852fi;
2853
2854 eval "$ac_cv_use_libpng"
2855 if test "$no_cache" != 1; then
2856 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2857 fi
2858
2859 if test "$wxUSE_LIBPNG" = yes; then
2860 echo "$as_me:$LINENO: result: yes" >&5
2861echo "${ECHO_T}yes" >&6
2862 elif test "$wxUSE_LIBPNG" = no; then
2863 echo "$as_me:$LINENO: result: no" >&5
2864echo "${ECHO_T}no" >&6
2865 elif test "$wxUSE_LIBPNG" = sys; then
2866 echo "$as_me:$LINENO: result: system version" >&5
2867echo "${ECHO_T}system version" >&6
2868 elif test "$wxUSE_LIBPNG" = builtin; then
2869 echo "$as_me:$LINENO: result: builtin version" >&5
2870echo "${ECHO_T}builtin version" >&6
2871 else
2872 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2873echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2874 { (exit 1); exit 1; }; }
2875 fi
2876
2877
2878 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2879echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2880 no_cache=0
2881
2882# Check whether --with-libjpeg or --without-libjpeg was given.
2883if test "${with_libjpeg+set}" = set; then
2884 withval="$with_libjpeg"
2885
2886 if test "$withval" = yes; then
2887 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2888 elif test "$withval" = no; then
2889 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2890 elif test "$withval" = sys; then
2891 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2892 elif test "$withval" = builtin; then
2893 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2894 else
2895 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2896echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2897 { (exit 1); exit 1; }; }
2898 fi
2899
2900else
2901
2902 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2910
2911fi;
2912
2913 eval "$ac_cv_use_libjpeg"
2914 if test "$no_cache" != 1; then
2915 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2916 fi
2917
2918 if test "$wxUSE_LIBJPEG" = yes; then
2919 echo "$as_me:$LINENO: result: yes" >&5
2920echo "${ECHO_T}yes" >&6
2921 elif test "$wxUSE_LIBJPEG" = no; then
2922 echo "$as_me:$LINENO: result: no" >&5
2923echo "${ECHO_T}no" >&6
2924 elif test "$wxUSE_LIBJPEG" = sys; then
2925 echo "$as_me:$LINENO: result: system version" >&5
2926echo "${ECHO_T}system version" >&6
2927 elif test "$wxUSE_LIBJPEG" = builtin; then
2928 echo "$as_me:$LINENO: result: builtin version" >&5
2929echo "${ECHO_T}builtin version" >&6
2930 else
2931 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2932echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2933 { (exit 1); exit 1; }; }
2934 fi
2935
2936
2937 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2938echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2939 no_cache=0
2940
2941# Check whether --with-libtiff or --without-libtiff was given.
2942if test "${with_libtiff+set}" = set; then
2943 withval="$with_libtiff"
2944
2945 if test "$withval" = yes; then
2946 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2947 elif test "$withval" = no; then
2948 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2949 elif test "$withval" = sys; then
2950 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2951 elif test "$withval" = builtin; then
2952 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2953 else
2954 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2955echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2956 { (exit 1); exit 1; }; }
2957 fi
2958
2959else
2960
2961 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
2968 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2969
2970fi;
2971
2972 eval "$ac_cv_use_libtiff"
2973 if test "$no_cache" != 1; then
2974 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2975 fi
2976
2977 if test "$wxUSE_LIBTIFF" = yes; then
2978 echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6
2980 elif test "$wxUSE_LIBTIFF" = no; then
2981 echo "$as_me:$LINENO: result: no" >&5
2982echo "${ECHO_T}no" >&6
2983 elif test "$wxUSE_LIBTIFF" = sys; then
2984 echo "$as_me:$LINENO: result: system version" >&5
2985echo "${ECHO_T}system version" >&6
2986 elif test "$wxUSE_LIBTIFF" = builtin; then
2987 echo "$as_me:$LINENO: result: builtin version" >&5
2988echo "${ECHO_T}builtin version" >&6
2989 else
2990 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2991echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2992 { (exit 1); exit 1; }; }
2993 fi
2994
2995
2996 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2997echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2998 no_cache=0
2999
3000# Check whether --with-libxpm or --without-libxpm was given.
3001if test "${with_libxpm+set}" = set; then
3002 withval="$with_libxpm"
3003
3004 if test "$withval" = yes; then
3005 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3006 elif test "$withval" = no; then
3007 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3008 elif test "$withval" = sys; then
3009 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3010 elif test "$withval" = builtin; then
3011 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3012 else
3013 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3014echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3015 { (exit 1); exit 1; }; }
3016 fi
3017
3018else
3019
3020 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3021 if test "x$LINE" != x ; then
3022 eval "DEFAULT_$LINE"
3023 else
3024 no_cache=1
3025 fi
3026
3027 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3028
3029fi;
3030
3031 eval "$ac_cv_use_libxpm"
3032 if test "$no_cache" != 1; then
3033 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3034 fi
3035
3036 if test "$wxUSE_LIBXPM" = yes; then
3037 echo "$as_me:$LINENO: result: yes" >&5
3038echo "${ECHO_T}yes" >&6
3039 elif test "$wxUSE_LIBXPM" = no; then
3040 echo "$as_me:$LINENO: result: no" >&5
3041echo "${ECHO_T}no" >&6
3042 elif test "$wxUSE_LIBXPM" = sys; then
3043 echo "$as_me:$LINENO: result: system version" >&5
3044echo "${ECHO_T}system version" >&6
3045 elif test "$wxUSE_LIBXPM" = builtin; then
3046 echo "$as_me:$LINENO: result: builtin version" >&5
3047echo "${ECHO_T}builtin version" >&6
3048 else
3049 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3050echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3051 { (exit 1); exit 1; }; }
3052 fi
3053
3054
1c14217d
VZ
3055 withstring=
3056 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3057echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3058 no_cache=0
3059
3060# Check whether --with-libmspack or --without-libmspack was given.
3061if test "${with_libmspack+set}" = set; then
3062 withval="$with_libmspack"
3063
3064 if test "$withval" = yes; then
3065 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3066 else
3067 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3068 fi
3069
3070else
3071
3072 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3073 if test "x$LINE" != x ; then
3074 eval "DEFAULT_$LINE"
3075 else
3076 no_cache=1
3077 fi
3078
3079 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3080
3081fi;
3082
3083 eval "$ac_cv_use_libmspack"
3084 if test "$no_cache" != 1; then
3085 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3086 fi
3087
3088 if test "$wxUSE_LIBMSPACK" = yes; then
3089 echo "$as_me:$LINENO: result: yes" >&5
3090echo "${ECHO_T}yes" >&6
3091 else
3092 echo "$as_me:$LINENO: result: no" >&5
3093echo "${ECHO_T}no" >&6
3094 fi
3095
3096
1c14217d
VZ
3097 withstring=
3098 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3099echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3100 no_cache=0
3101
3102# Check whether --with-sdl or --without-sdl was given.
3103if test "${with_sdl+set}" = set; then
3104 withval="$with_sdl"
3105
3106 if test "$withval" = yes; then
3107 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3108 else
3109 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3110 fi
3111
3112else
3113
3114 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3115 if test "x$LINE" != x ; then
3116 eval "DEFAULT_$LINE"
3117 else
3118 no_cache=1
3119 fi
3120
3121 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3122
3123fi;
3124
3125 eval "$ac_cv_use_sdl"
3126 if test "$no_cache" != 1; then
3127 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3128 fi
3129
3130 if test "$wxUSE_LIBSDL" = yes; then
3131 echo "$as_me:$LINENO: result: yes" >&5
3132echo "${ECHO_T}yes" >&6
3133 else
3134 echo "$as_me:$LINENO: result: no" >&5
3135echo "${ECHO_T}no" >&6
3136 fi
3137
3138
1c14217d
VZ
3139 withstring=
3140 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3141echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3142 no_cache=0
3143
3144# Check whether --with-gnomeprint or --without-gnomeprint was given.
3145if test "${with_gnomeprint+set}" = set; then
3146 withval="$with_gnomeprint"
3147
3148 if test "$withval" = yes; then
3149 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3150 else
3151 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3152 fi
3153
3154else
3155
3156 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3157 if test "x$LINE" != x ; then
3158 eval "DEFAULT_$LINE"
3159 else
3160 no_cache=1
3161 fi
3162
3163 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3164
3165fi;
3166
3167 eval "$ac_cv_use_gnomeprint"
3168 if test "$no_cache" != 1; then
3169 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3170 fi
3171
3172 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3173 echo "$as_me:$LINENO: result: yes" >&5
3174echo "${ECHO_T}yes" >&6
3175 else
3176 echo "$as_me:$LINENO: result: no" >&5
3177echo "${ECHO_T}no" >&6
3178 fi
3179
3180
3565d135
RR
3181 withstring=
3182 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3183echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3184 no_cache=0
3185
3186# Check whether --with-hildon or --without-hildon was given.
3187if test "${with_hildon+set}" = set; then
3188 withval="$with_hildon"
3189
3190 if test "$withval" = yes; then
3191 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3192 else
3193 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3194 fi
3195
3196else
3197
3198 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3199 if test "x$LINE" != x ; then
3200 eval "DEFAULT_$LINE"
3201 else
3202 no_cache=1
3203 fi
3204
3205 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3206
3207fi;
3208
3209 eval "$ac_cv_use_hildon"
3210 if test "$no_cache" != 1; then
3211 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3212 fi
3213
3214 if test "$wxUSE_LIBHILDON" = yes; then
3215 echo "$as_me:$LINENO: result: yes" >&5
3216echo "${ECHO_T}yes" >&6
3217 else
3218 echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
3220 fi
3221
3222
1c14217d
VZ
3223 withstring=
3224 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3225echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3226 no_cache=0
3227
3228# Check whether --with-opengl or --without-opengl was given.
3229if test "${with_opengl+set}" = set; then
3230 withval="$with_opengl"
3231
3232 if test "$withval" = yes; then
3233 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3234 else
3235 ac_cv_use_opengl='wxUSE_OPENGL=no'
3236 fi
3237
3238else
3239
3240 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3241 if test "x$LINE" != x ; then
3242 eval "DEFAULT_$LINE"
3243 else
3244 no_cache=1
3245 fi
3246
3247 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3248
3249fi;
3250
3251 eval "$ac_cv_use_opengl"
3252 if test "$no_cache" != 1; then
3253 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3254 fi
3255
3256 if test "$wxUSE_OPENGL" = yes; then
3257 echo "$as_me:$LINENO: result: yes" >&5
3258echo "${ECHO_T}yes" >&6
3259 else
3260 echo "$as_me:$LINENO: result: no" >&5
3261echo "${ECHO_T}no" >&6
3262 fi
3263
3264
3265fi
3266
3267
1c14217d
VZ
3268 withstring=
3269 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3270echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3271 no_cache=0
3272
3273# Check whether --with-dmalloc or --without-dmalloc was given.
3274if test "${with_dmalloc+set}" = set; then
3275 withval="$with_dmalloc"
3276
3277 if test "$withval" = yes; then
3278 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3279 else
3280 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3281 fi
3282
3283else
3284
3285 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3293
3294fi;
3295
3296 eval "$ac_cv_use_dmalloc"
3297 if test "$no_cache" != 1; then
3298 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3299 fi
3300
3301 if test "$wxUSE_DMALLOC" = yes; then
3302 echo "$as_me:$LINENO: result: yes" >&5
3303echo "${ECHO_T}yes" >&6
3304 else
3305 echo "$as_me:$LINENO: result: no" >&5
3306echo "${ECHO_T}no" >&6
3307 fi
3308
3309
3310 echo "$as_me:$LINENO: checking for --with-regex" >&5
3311echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3312 no_cache=0
3313
3314# Check whether --with-regex or --without-regex was given.
3315if test "${with_regex+set}" = set; then
3316 withval="$with_regex"
3317
3318 if test "$withval" = yes; then
3319 ac_cv_use_regex='wxUSE_REGEX=yes'
3320 elif test "$withval" = no; then
3321 ac_cv_use_regex='wxUSE_REGEX=no'
3322 elif test "$withval" = sys; then
3323 ac_cv_use_regex='wxUSE_REGEX=sys'
3324 elif test "$withval" = builtin; then
3325 ac_cv_use_regex='wxUSE_REGEX=builtin'
3326 else
3327 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3328echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3329 { (exit 1); exit 1; }; }
3330 fi
3331
3332else
3333
3334 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3335 if test "x$LINE" != x ; then
3336 eval "DEFAULT_$LINE"
3337 else
3338 no_cache=1
3339 fi
3340
3341 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3342
3343fi;
3344
3345 eval "$ac_cv_use_regex"
3346 if test "$no_cache" != 1; then
3347 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3348 fi
3349
3350 if test "$wxUSE_REGEX" = yes; then
3351 echo "$as_me:$LINENO: result: yes" >&5
3352echo "${ECHO_T}yes" >&6
3353 elif test "$wxUSE_REGEX" = no; then
3354 echo "$as_me:$LINENO: result: no" >&5
3355echo "${ECHO_T}no" >&6
3356 elif test "$wxUSE_REGEX" = sys; then
3357 echo "$as_me:$LINENO: result: system version" >&5
3358echo "${ECHO_T}system version" >&6
3359 elif test "$wxUSE_REGEX" = builtin; then
3360 echo "$as_me:$LINENO: result: builtin version" >&5
3361echo "${ECHO_T}builtin version" >&6
3362 else
3363 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3364echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3365 { (exit 1); exit 1; }; }
3366 fi
3367
3368
3369 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3370echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3371 no_cache=0
3372
3373# Check whether --with-zlib or --without-zlib was given.
3374if test "${with_zlib+set}" = set; then
3375 withval="$with_zlib"
3376
3377 if test "$withval" = yes; then
3378 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3379 elif test "$withval" = no; then
3380 ac_cv_use_zlib='wxUSE_ZLIB=no'
3381 elif test "$withval" = sys; then
3382 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3383 elif test "$withval" = builtin; then
3384 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3385 else
3386 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3387echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3388 { (exit 1); exit 1; }; }
3389 fi
3390
3391else
3392
3393 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3394 if test "x$LINE" != x ; then
3395 eval "DEFAULT_$LINE"
3396 else
3397 no_cache=1
3398 fi
3399
3400 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3401
3402fi;
3403
3404 eval "$ac_cv_use_zlib"
3405 if test "$no_cache" != 1; then
3406 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3407 fi
3408
3409 if test "$wxUSE_ZLIB" = yes; then
3410 echo "$as_me:$LINENO: result: yes" >&5
3411echo "${ECHO_T}yes" >&6
3412 elif test "$wxUSE_ZLIB" = no; then
3413 echo "$as_me:$LINENO: result: no" >&5
3414echo "${ECHO_T}no" >&6
3415 elif test "$wxUSE_ZLIB" = sys; then
3416 echo "$as_me:$LINENO: result: system version" >&5
3417echo "${ECHO_T}system version" >&6
3418 elif test "$wxUSE_ZLIB" = builtin; then
3419 echo "$as_me:$LINENO: result: builtin version" >&5
3420echo "${ECHO_T}builtin version" >&6
3421 else
3422 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3423echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3424 { (exit 1); exit 1; }; }
3425 fi
3426
3427
3428 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3429echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3430 no_cache=0
3431
3432# Check whether --with-odbc or --without-odbc was given.
3433if test "${with_odbc+set}" = set; then
3434 withval="$with_odbc"
3435
3436 if test "$withval" = yes; then
3437 ac_cv_use_odbc='wxUSE_ODBC=yes'
3438 elif test "$withval" = no; then
3439 ac_cv_use_odbc='wxUSE_ODBC=no'
3440 elif test "$withval" = sys; then
3441 ac_cv_use_odbc='wxUSE_ODBC=sys'
3442 elif test "$withval" = builtin; then
3443 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3444 else
3445 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3446echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3447 { (exit 1); exit 1; }; }
3448 fi
3449
3450else
3451
3452 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3453 if test "x$LINE" != x ; then
3454 eval "DEFAULT_$LINE"
3455 else
3456 no_cache=1
3457 fi
3458
3459 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3460
3461fi;
3462
3463 eval "$ac_cv_use_odbc"
3464 if test "$no_cache" != 1; then
3465 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3466 fi
3467
3468 if test "$wxUSE_ODBC" = yes; then
3469 echo "$as_me:$LINENO: result: yes" >&5
3470echo "${ECHO_T}yes" >&6
3471 elif test "$wxUSE_ODBC" = no; then
3472 echo "$as_me:$LINENO: result: no" >&5
3473echo "${ECHO_T}no" >&6
3474 elif test "$wxUSE_ODBC" = sys; then
3475 echo "$as_me:$LINENO: result: system version" >&5
3476echo "${ECHO_T}system version" >&6
3477 elif test "$wxUSE_ODBC" = builtin; then
3478 echo "$as_me:$LINENO: result: builtin version" >&5
3479echo "${ECHO_T}builtin version" >&6
3480 else
3481 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3482echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3483 { (exit 1); exit 1; }; }
3484 fi
3485
3486
3487 echo "$as_me:$LINENO: checking for --with-expat" >&5
3488echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3489 no_cache=0
3490
3491# Check whether --with-expat or --without-expat was given.
3492if test "${with_expat+set}" = set; then
3493 withval="$with_expat"
3494
3495 if test "$withval" = yes; then
3496 ac_cv_use_expat='wxUSE_EXPAT=yes'
3497 elif test "$withval" = no; then
3498 ac_cv_use_expat='wxUSE_EXPAT=no'
3499 elif test "$withval" = sys; then
3500 ac_cv_use_expat='wxUSE_EXPAT=sys'
3501 elif test "$withval" = builtin; then
3502 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3503 else
3504 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3505echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3506 { (exit 1); exit 1; }; }
3507 fi
3508
3509else
3510
3511 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3512 if test "x$LINE" != x ; then
3513 eval "DEFAULT_$LINE"
3514 else
3515 no_cache=1
3516 fi
3517
3518 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3519
3520fi;
3521
3522 eval "$ac_cv_use_expat"
3523 if test "$no_cache" != 1; then
3524 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3525 fi
3526
3527 if test "$wxUSE_EXPAT" = yes; then
3528 echo "$as_me:$LINENO: result: yes" >&5
3529echo "${ECHO_T}yes" >&6
3530 elif test "$wxUSE_EXPAT" = no; then
3531 echo "$as_me:$LINENO: result: no" >&5
3532echo "${ECHO_T}no" >&6
3533 elif test "$wxUSE_EXPAT" = sys; then
3534 echo "$as_me:$LINENO: result: system version" >&5
3535echo "${ECHO_T}system version" >&6
3536 elif test "$wxUSE_EXPAT" = builtin; then
3537 echo "$as_me:$LINENO: result: builtin version" >&5
3538echo "${ECHO_T}builtin version" >&6
3539 else
3540 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3541echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3542 { (exit 1); exit 1; }; }
3543 fi
3544
3545
3546
3547
3548 enablestring=
3549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3550echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3551 no_cache=0
3552 # Check whether --enable-shared or --disable-shared was given.
3553if test "${enable_shared+set}" = set; then
3554 enableval="$enable_shared"
3555
3556 if test "$enableval" = yes; then
3557 ac_cv_use_shared='wxUSE_SHARED=yes'
3558 else
3559 ac_cv_use_shared='wxUSE_SHARED=no'
3560 fi
3561
3562else
3563
3564 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3565 if test "x$LINE" != x ; then
3566 eval "DEFAULT_$LINE"
3567 else
3568 no_cache=1
3569 fi
3570
3571 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3572
3573fi;
3574
3575 eval "$ac_cv_use_shared"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_SHARED" = yes; then
3581 echo "$as_me:$LINENO: result: yes" >&5
3582echo "${ECHO_T}yes" >&6
3583 else
3584 echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
3586 fi
3587
3588
3589 enablestring=
3590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3591echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3592 no_cache=0
3593 # Check whether --enable-optimise or --disable-optimise was given.
3594if test "${enable_optimise+set}" = set; then
3595 enableval="$enable_optimise"
3596
3597 if test "$enableval" = yes; then
3598 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3599 else
3600 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3601 fi
3602
3603else
3604
3605 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3606 if test "x$LINE" != x ; then
3607 eval "DEFAULT_$LINE"
3608 else
3609 no_cache=1
3610 fi
3611
3612 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3613
3614fi;
3615
3616 eval "$ac_cv_use_optimise"
3617 if test "$no_cache" != 1; then
3618 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3619 fi
3620
3621 if test "$wxUSE_OPTIMISE" = yes; then
3622 echo "$as_me:$LINENO: result: yes" >&5
3623echo "${ECHO_T}yes" >&6
3624 else
3625 echo "$as_me:$LINENO: result: no" >&5
3626echo "${ECHO_T}no" >&6
3627 fi
3628
3629
3630 enablestring=
3631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3632echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3633 no_cache=0
3634 # Check whether --enable-debug or --disable-debug was given.
3635if test "${enable_debug+set}" = set; then
3636 enableval="$enable_debug"
3637
3638 if test "$enableval" = yes; then
3639 ac_cv_use_debug='wxUSE_DEBUG=yes'
3640 else
3641 ac_cv_use_debug='wxUSE_DEBUG=no'
3642 fi
3643
3644else
3645
3646 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3654
3655fi;
3656
3657 eval "$ac_cv_use_debug"
3658 if test "$no_cache" != 1; then
3659 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3660 fi
3661
3662 if test "$wxUSE_DEBUG" = yes; then
3663 echo "$as_me:$LINENO: result: yes" >&5
3664echo "${ECHO_T}yes" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no" >&5
3667echo "${ECHO_T}no" >&6
3668 fi
3669
3670
3671 enablestring=
3672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3673echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3674 no_cache=0
3675 # Check whether --enable-stl or --disable-stl was given.
3676if test "${enable_stl+set}" = set; then
3677 enableval="$enable_stl"
3678
3679 if test "$enableval" = yes; then
3680 ac_cv_use_stl='wxUSE_STL=yes'
3681 else
3682 ac_cv_use_stl='wxUSE_STL=no'
3683 fi
3684
3685else
3686
3687 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3688 if test "x$LINE" != x ; then
3689 eval "DEFAULT_$LINE"
3690 else
3691 no_cache=1
3692 fi
3693
3694 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3695
3696fi;
3697
3698 eval "$ac_cv_use_stl"
3699 if test "$no_cache" != 1; then
3700 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3701 fi
3702
3703 if test "$wxUSE_STL" = yes; then
3704 echo "$as_me:$LINENO: result: yes" >&5
3705echo "${ECHO_T}yes" >&6
3706 else
3707 echo "$as_me:$LINENO: result: no" >&5
3708echo "${ECHO_T}no" >&6
3709 fi
3710
3711if test "$USE_OS2" = "1"; then
69120ee4 3712 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3713
3714 enablestring=
3715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3716echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3717 no_cache=0
3718 # Check whether --enable-omf or --disable-omf was given.
3719if test "${enable_omf+set}" = set; then
3720 enableval="$enable_omf"
3721
3722 if test "$enableval" = yes; then
3723 ac_cv_use_omf='wxUSE_OMF=yes'
3724 else
3725 ac_cv_use_omf='wxUSE_OMF=no'
3726 fi
3727
3728else
3729
3730 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3731 if test "x$LINE" != x ; then
3732 eval "DEFAULT_$LINE"
3733 else
3734 no_cache=1
3735 fi
3736
3737 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3738
3739fi;
3740
3741 eval "$ac_cv_use_omf"
3742 if test "$no_cache" != 1; then
3743 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3744 fi
3745
3746 if test "$wxUSE_OMF" = yes; then
3747 echo "$as_me:$LINENO: result: yes" >&5
3748echo "${ECHO_T}yes" >&6
3749 else
3750 echo "$as_me:$LINENO: result: no" >&5
3751echo "${ECHO_T}no" >&6
3752 fi
3753
3754fi
3755
3756if test "$wxUSE_DEBUG" = "yes"; then
3757 DEFAULT_wxUSE_DEBUG_FLAG=yes
3758 DEFAULT_wxUSE_DEBUG_INFO=yes
3759 BUILD=debug
3760elif test "$wxUSE_DEBUG" = "no"; then
3761 DEFAULT_wxUSE_DEBUG_FLAG=no
3762 DEFAULT_wxUSE_DEBUG_INFO=no
3763 BUILD=release
3764fi
3765
3766
3767 enablestring=
3768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3769echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3770 no_cache=0
3771 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3772if test "${enable_debug_flag+set}" = set; then
3773 enableval="$enable_debug_flag"
3774
3775 if test "$enableval" = yes; then
3776 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3777 else
3778 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3779 fi
3780
3781else
3782
3783 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3784 if test "x$LINE" != x ; then
3785 eval "DEFAULT_$LINE"
3786 else
3787 no_cache=1
3788 fi
3789
3790 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3791
3792fi;
3793
3794 eval "$ac_cv_use_debug_flag"
3795 if test "$no_cache" != 1; then
3796 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3797 fi
3798
3799 if test "$wxUSE_DEBUG_FLAG" = yes; then
3800 echo "$as_me:$LINENO: result: yes" >&5
3801echo "${ECHO_T}yes" >&6
3802 else
3803 echo "$as_me:$LINENO: result: no" >&5
3804echo "${ECHO_T}no" >&6
3805 fi
3806
3807
3808 enablestring=
3809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3810echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3811 no_cache=0
3812 # Check whether --enable-debug_info or --disable-debug_info was given.
3813if test "${enable_debug_info+set}" = set; then
3814 enableval="$enable_debug_info"
3815
3816 if test "$enableval" = yes; then
3817 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3818 else
3819 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3820 fi
3821
3822else
3823
3824 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3825 if test "x$LINE" != x ; then
3826 eval "DEFAULT_$LINE"
3827 else
3828 no_cache=1
3829 fi
3830
3831 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3832
3833fi;
3834
3835 eval "$ac_cv_use_debug_info"
3836 if test "$no_cache" != 1; then
3837 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3838 fi
3839
3840 if test "$wxUSE_DEBUG_INFO" = yes; then
3841 echo "$as_me:$LINENO: result: yes" >&5
3842echo "${ECHO_T}yes" >&6
3843 else
3844 echo "$as_me:$LINENO: result: no" >&5
3845echo "${ECHO_T}no" >&6
3846 fi
3847
3848
3849 enablestring=
3850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3851echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3852 no_cache=0
3853 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3854if test "${enable_debug_gdb+set}" = set; then
3855 enableval="$enable_debug_gdb"
3856
3857 if test "$enableval" = yes; then
3858 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3859 else
3860 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3861 fi
3862
3863else
3864
3865 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3866 if test "x$LINE" != x ; then
3867 eval "DEFAULT_$LINE"
3868 else
3869 no_cache=1
3870 fi
3871
3872 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3873
3874fi;
3875
3876 eval "$ac_cv_use_debug_gdb"
3877 if test "$no_cache" != 1; then
3878 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3879 fi
3880
3881 if test "$wxUSE_DEBUG_GDB" = yes; then
3882 echo "$as_me:$LINENO: result: yes" >&5
3883echo "${ECHO_T}yes" >&6
3884 else
3885 echo "$as_me:$LINENO: result: no" >&5
3886echo "${ECHO_T}no" >&6
3887 fi
3888
3889
3890 enablestring=
3891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3892echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3893 no_cache=0
3894 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3895if test "${enable_debug_cntxt+set}" = set; then
3896 enableval="$enable_debug_cntxt"
3897
3898 if test "$enableval" = yes; then
3899 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3900 else
3901 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3902 fi
3903
3904else
3905
3906 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3907 if test "x$LINE" != x ; then
3908 eval "DEFAULT_$LINE"
3909 else
3910 no_cache=1
3911 fi
3912
3913 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3914
3915fi;
3916
3917 eval "$ac_cv_use_debug_cntxt"
3918 if test "$no_cache" != 1; then
3919 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3920 fi
3921
3922 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3923 echo "$as_me:$LINENO: result: yes" >&5
3924echo "${ECHO_T}yes" >&6
3925 else
3926 echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928 fi
3929
3930
3931 enablestring=
3932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3933echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3934 no_cache=0
3935 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3936if test "${enable_mem_tracing+set}" = set; then
3937 enableval="$enable_mem_tracing"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3941 else
3942 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3943 fi
3944
3945else
3946
3947 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3955
3956fi;
3957
3958 eval "$ac_cv_use_mem_tracing"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_MEM_TRACING" = yes; then
3964 echo "$as_me:$LINENO: result: yes" >&5
3965echo "${ECHO_T}yes" >&6
3966 else
3967 echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6
3969 fi
3970
3971
3972 enablestring=
3973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3974echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3975 no_cache=0
3976 # Check whether --enable-profile or --disable-profile was given.
3977if test "${enable_profile+set}" = set; then
3978 enableval="$enable_profile"
3979
3980 if test "$enableval" = yes; then
3981 ac_cv_use_profile='wxUSE_PROFILE=yes'
3982 else
3983 ac_cv_use_profile='wxUSE_PROFILE=no'
3984 fi
3985
3986else
3987
3988 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3996
3997fi;
3998
3999 eval "$ac_cv_use_profile"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_PROFILE" = yes; then
4005 echo "$as_me:$LINENO: result: yes" >&5
4006echo "${ECHO_T}yes" >&6
4007 else
4008 echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6
4010 fi
4011
4012
4013 enablestring=
4014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4015echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4016 no_cache=0
4017 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4018if test "${enable_no_rtti+set}" = set; then
4019 enableval="$enable_no_rtti"
4020
4021 if test "$enableval" = yes; then
4022 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4023 else
4024 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4025 fi
4026
4027else
4028
4029 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4037
4038fi;
4039
4040 eval "$ac_cv_use_no_rtti"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$wxUSE_NO_RTTI" = yes; then
4046 echo "$as_me:$LINENO: result: yes" >&5
4047echo "${ECHO_T}yes" >&6
4048 else
4049 echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6
4051 fi
4052
4053
4054 enablestring=
4055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4056echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4057 no_cache=0
4058 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4059if test "${enable_no_exceptions+set}" = set; then
4060 enableval="$enable_no_exceptions"
4061
4062 if test "$enableval" = yes; then
4063 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4064 else
4065 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4066 fi
4067
4068else
4069
4070 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4078
4079fi;
4080
4081 eval "$ac_cv_use_no_exceptions"
4082 if test "$no_cache" != 1; then
4083 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4084 fi
4085
4086 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4087 echo "$as_me:$LINENO: result: yes" >&5
4088echo "${ECHO_T}yes" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091echo "${ECHO_T}no" >&6
4092 fi
4093
4094
4095 enablestring=
4096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4097echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4098 no_cache=0
4099 # Check whether --enable-permissive or --disable-permissive was given.
4100if test "${enable_permissive+set}" = set; then
4101 enableval="$enable_permissive"
4102
4103 if test "$enableval" = yes; then
4104 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4105 else
4106 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4107 fi
4108
4109else
4110
4111 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4119
4120fi;
4121
4122 eval "$ac_cv_use_permissive"
4123 if test "$no_cache" != 1; then
4124 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4125 fi
4126
4127 if test "$wxUSE_PERMISSIVE" = yes; then
4128 echo "$as_me:$LINENO: result: yes" >&5
4129echo "${ECHO_T}yes" >&6
4130 else
4131 echo "$as_me:$LINENO: result: no" >&5
4132echo "${ECHO_T}no" >&6
4133 fi
4134
4135
4136 enablestring=
4137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4138echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4139 no_cache=0
4140 # Check whether --enable-no_deps or --disable-no_deps was given.
4141if test "${enable_no_deps+set}" = set; then
4142 enableval="$enable_no_deps"
4143
4144 if test "$enableval" = yes; then
4145 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4146 else
4147 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4148 fi
4149
4150else
4151
4152 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4153 if test "x$LINE" != x ; then
4154 eval "DEFAULT_$LINE"
4155 else
4156 no_cache=1
4157 fi
4158
4159 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4160
4161fi;
4162
4163 eval "$ac_cv_use_no_deps"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_NO_DEPS" = yes; then
4169 echo "$as_me:$LINENO: result: yes" >&5
4170echo "${ECHO_T}yes" >&6
4171 else
4172 echo "$as_me:$LINENO: result: no" >&5
4173echo "${ECHO_T}no" >&6
4174 fi
4175
4176
4177
dee1a63f
MB
4178 enablestring=enable
4179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4180echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4181 no_cache=0
dee1a63f
MB
4182 # Check whether --enable-compat24 or --disable-compat24 was given.
4183if test "${enable_compat24+set}" = set; then
4184 enableval="$enable_compat24"
a848cd7e
SC
4185
4186 if test "$enableval" = yes; then
dee1a63f 4187 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4188 else
dee1a63f 4189 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4190 fi
4191
4192else
4193
dee1a63f 4194 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4195 if test "x$LINE" != x ; then
4196 eval "DEFAULT_$LINE"
4197 else
4198 no_cache=1
4199 fi
4200
dee1a63f 4201 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4202
4203fi;
4204
dee1a63f 4205 eval "$ac_cv_use_compat24"
a848cd7e 4206 if test "$no_cache" != 1; then
dee1a63f 4207 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4208 fi
4209
dee1a63f 4210 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4211 echo "$as_me:$LINENO: result: yes" >&5
4212echo "${ECHO_T}yes" >&6
4213 else
4214 echo "$as_me:$LINENO: result: no" >&5
4215echo "${ECHO_T}no" >&6
4216 fi
4217
4218
4219 enablestring=disable
dee1a63f
MB
4220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4221echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4222 no_cache=0
dee1a63f
MB
4223 # Check whether --enable-compat26 or --disable-compat26 was given.
4224if test "${enable_compat26+set}" = set; then
4225 enableval="$enable_compat26"
a848cd7e
SC
4226
4227 if test "$enableval" = yes; then
dee1a63f 4228 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4229 else
dee1a63f 4230 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4231 fi
4232
4233else
4234
dee1a63f 4235 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4236 if test "x$LINE" != x ; then
4237 eval "DEFAULT_$LINE"
4238 else
4239 no_cache=1
4240 fi
4241
dee1a63f 4242 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4243
4244fi;
4245
dee1a63f 4246 eval "$ac_cv_use_compat26"
a848cd7e 4247 if test "$no_cache" != 1; then
dee1a63f 4248 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4249 fi
4250
dee1a63f 4251 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4252 echo "$as_me:$LINENO: result: yes" >&5
4253echo "${ECHO_T}yes" >&6
4254 else
4255 echo "$as_me:$LINENO: result: no" >&5
4256echo "${ECHO_T}no" >&6
4257 fi
4258
4259
ffa0583f
RL
4260
4261 enablestring=
4262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4263echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4264 no_cache=0
4265 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4266if test "${enable_rpath+set}" = set; then
4267 enableval="$enable_rpath"
ffa0583f
RL
4268
4269 if test "$enableval" = yes; then
4270 ac_cv_use_rpath='wxUSE_RPATH=yes'
4271 else
4272 ac_cv_use_rpath='wxUSE_RPATH=no'
4273 fi
4274
4275else
4276
4277 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4278 if test "x$LINE" != x ; then
4279 eval "DEFAULT_$LINE"
4280 else
4281 no_cache=1
4282 fi
4283
4284 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4285
a848cd7e
SC
4286fi;
4287
ffa0583f
RL
4288 eval "$ac_cv_use_rpath"
4289 if test "$no_cache" != 1; then
4290 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4291 fi
4292
4293 if test "$wxUSE_RPATH" = yes; then
4294 echo "$as_me:$LINENO: result: yes" >&5
4295echo "${ECHO_T}yes" >&6
4296 else
4297 echo "$as_me:$LINENO: result: no" >&5
4298echo "${ECHO_T}no" >&6
4299 fi
4300
a848cd7e
SC
4301
4302
4303
4304
4305 enablestring=
4306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4307echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4308 no_cache=0
4309 # Check whether --enable-intl or --disable-intl was given.
4310if test "${enable_intl+set}" = set; then
4311 enableval="$enable_intl"
4312
4313 if test "$enableval" = yes; then
4314 ac_cv_use_intl='wxUSE_INTL=yes'
4315 else
4316 ac_cv_use_intl='wxUSE_INTL=no'
4317 fi
4318
4319else
4320
4321 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4322 if test "x$LINE" != x ; then
4323 eval "DEFAULT_$LINE"
4324 else
4325 no_cache=1
4326 fi
4327
4328 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4329
4330fi;
4331
4332 eval "$ac_cv_use_intl"
4333 if test "$no_cache" != 1; then
4334 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4335 fi
4336
4337 if test "$wxUSE_INTL" = yes; then
4338 echo "$as_me:$LINENO: result: yes" >&5
4339echo "${ECHO_T}yes" >&6
4340 else
4341 echo "$as_me:$LINENO: result: no" >&5
4342echo "${ECHO_T}no" >&6
4343 fi
4344
4345
4346 enablestring=
4347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4348echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4349 no_cache=0
4350 # Check whether --enable-config or --disable-config was given.
4351if test "${enable_config+set}" = set; then
4352 enableval="$enable_config"
4353
4354 if test "$enableval" = yes; then
4355 ac_cv_use_config='wxUSE_CONFIG=yes'
4356 else
4357 ac_cv_use_config='wxUSE_CONFIG=no'
4358 fi
4359
4360else
4361
4362 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4363 if test "x$LINE" != x ; then
4364 eval "DEFAULT_$LINE"
4365 else
4366 no_cache=1
4367 fi
4368
4369 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4370
4371fi;
4372
4373 eval "$ac_cv_use_config"
4374 if test "$no_cache" != 1; then
4375 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4376 fi
4377
4378 if test "$wxUSE_CONFIG" = yes; then
4379 echo "$as_me:$LINENO: result: yes" >&5
4380echo "${ECHO_T}yes" >&6
4381 else
4382 echo "$as_me:$LINENO: result: no" >&5
4383echo "${ECHO_T}no" >&6
4384 fi
4385
4386
4387
4388 enablestring=
4389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4390echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4391 no_cache=0
4392 # Check whether --enable-protocols or --disable-protocols was given.
4393if test "${enable_protocols+set}" = set; then
4394 enableval="$enable_protocols"
4395
4396 if test "$enableval" = yes; then
4397 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4398 else
4399 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4400 fi
4401
4402else
4403
4404 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4405 if test "x$LINE" != x ; then
4406 eval "DEFAULT_$LINE"
4407 else
4408 no_cache=1
4409 fi
4410
4411 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4412
4413fi;
4414
4415 eval "$ac_cv_use_protocols"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_PROTOCOL" = yes; then
4421 echo "$as_me:$LINENO: result: yes" >&5
4422echo "${ECHO_T}yes" >&6
4423 else
4424 echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6
4426 fi
4427
4428
4429 enablestring=
4430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4431echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4432 no_cache=0
4433 # Check whether --enable-ftp or --disable-ftp was given.
4434if test "${enable_ftp+set}" = set; then
4435 enableval="$enable_ftp"
4436
4437 if test "$enableval" = yes; then
4438 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4439 else
4440 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4441 fi
4442
4443else
4444
4445 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4446 if test "x$LINE" != x ; then
4447 eval "DEFAULT_$LINE"
4448 else
4449 no_cache=1
4450 fi
4451
4452 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4453
4454fi;
4455
4456 eval "$ac_cv_use_ftp"
4457 if test "$no_cache" != 1; then
4458 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4459 fi
4460
4461 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4462 echo "$as_me:$LINENO: result: yes" >&5
4463echo "${ECHO_T}yes" >&6
4464 else
4465 echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6
4467 fi
4468
4469
4470 enablestring=
4471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4472echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4473 no_cache=0
4474 # Check whether --enable-http or --disable-http was given.
4475if test "${enable_http+set}" = set; then
4476 enableval="$enable_http"
4477
4478 if test "$enableval" = yes; then
4479 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4480 else
4481 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4482 fi
4483
4484else
4485
4486 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4487 if test "x$LINE" != x ; then
4488 eval "DEFAULT_$LINE"
4489 else
4490 no_cache=1
4491 fi
4492
4493 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4494
4495fi;
4496
4497 eval "$ac_cv_use_http"
4498 if test "$no_cache" != 1; then
4499 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4500 fi
4501
4502 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
4505 else
4506 echo "$as_me:$LINENO: result: no" >&5
4507echo "${ECHO_T}no" >&6
4508 fi
4509
4510
4511 enablestring=
4512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4513echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4514 no_cache=0
4515 # Check whether --enable-fileproto or --disable-fileproto was given.
4516if test "${enable_fileproto+set}" = set; then
4517 enableval="$enable_fileproto"
4518
4519 if test "$enableval" = yes; then
4520 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4521 else
4522 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4523 fi
4524
4525else
4526
4527 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4535
4536fi;
4537
4538 eval "$ac_cv_use_fileproto"
4539 if test "$no_cache" != 1; then
4540 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4541 fi
4542
4543 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545echo "${ECHO_T}yes" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no" >&5
4548echo "${ECHO_T}no" >&6
4549 fi
4550
4551
4552 enablestring=
4553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4554echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4555 no_cache=0
4556 # Check whether --enable-sockets or --disable-sockets was given.
4557if test "${enable_sockets+set}" = set; then
4558 enableval="$enable_sockets"
4559
4560 if test "$enableval" = yes; then
4561 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4562 else
4563 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4564 fi
4565
4566else
4567
4568 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4569 if test "x$LINE" != x ; then
4570 eval "DEFAULT_$LINE"
4571 else
4572 no_cache=1
4573 fi
4574
4575 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4576
4577fi;
4578
4579 eval "$ac_cv_use_sockets"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_SOCKETS" = yes; then
4585 echo "$as_me:$LINENO: result: yes" >&5
4586echo "${ECHO_T}yes" >&6
4587 else
4588 echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6
4590 fi
4591
4592
4593 enablestring=
4594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4595echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4596 no_cache=0
4597 # Check whether --enable-ole or --disable-ole was given.
4598if test "${enable_ole+set}" = set; then
4599 enableval="$enable_ole"
4600
4601 if test "$enableval" = yes; then
4602 ac_cv_use_ole='wxUSE_OLE=yes'
4603 else
4604 ac_cv_use_ole='wxUSE_OLE=no'
4605 fi
4606
4607else
4608
4609 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4610 if test "x$LINE" != x ; then
4611 eval "DEFAULT_$LINE"
4612 else
4613 no_cache=1
4614 fi
4615
4616 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4617
4618fi;
4619
4620 eval "$ac_cv_use_ole"
4621 if test "$no_cache" != 1; then
4622 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4623 fi
4624
4625 if test "$wxUSE_OLE" = yes; then
4626 echo "$as_me:$LINENO: result: yes" >&5
4627echo "${ECHO_T}yes" >&6
4628 else
4629 echo "$as_me:$LINENO: result: no" >&5
4630echo "${ECHO_T}no" >&6
4631 fi
4632
4633
4634 enablestring=
4635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4636echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4637 no_cache=0
4638 # Check whether --enable-dataobj or --disable-dataobj was given.
4639if test "${enable_dataobj+set}" = set; then
4640 enableval="$enable_dataobj"
4641
4642 if test "$enableval" = yes; then
4643 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4644 else
4645 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4646 fi
4647
4648else
4649
4650 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4651 if test "x$LINE" != x ; then
4652 eval "DEFAULT_$LINE"
4653 else
4654 no_cache=1
4655 fi
4656
4657 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4658
4659fi;
4660
4661 eval "$ac_cv_use_dataobj"
4662 if test "$no_cache" != 1; then
4663 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4664 fi
4665
4666 if test "$wxUSE_DATAOBJ" = yes; then
4667 echo "$as_me:$LINENO: result: yes" >&5
4668echo "${ECHO_T}yes" >&6
4669 else
4670 echo "$as_me:$LINENO: result: no" >&5
4671echo "${ECHO_T}no" >&6
4672 fi
4673
4674
4675
4676 enablestring=
4677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4678echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4679 no_cache=0
4680 # Check whether --enable-ipc or --disable-ipc was given.
4681if test "${enable_ipc+set}" = set; then
4682 enableval="$enable_ipc"
4683
4684 if test "$enableval" = yes; then
4685 ac_cv_use_ipc='wxUSE_IPC=yes'
4686 else
4687 ac_cv_use_ipc='wxUSE_IPC=no'
4688 fi
4689
4690else
4691
4692 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4693 if test "x$LINE" != x ; then
4694 eval "DEFAULT_$LINE"
4695 else
4696 no_cache=1
4697 fi
4698
4699 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4700
4701fi;
4702
4703 eval "$ac_cv_use_ipc"
4704 if test "$no_cache" != 1; then
4705 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4706 fi
4707
4708 if test "$wxUSE_IPC" = yes; then
4709 echo "$as_me:$LINENO: result: yes" >&5
4710echo "${ECHO_T}yes" >&6
4711 else
4712 echo "$as_me:$LINENO: result: no" >&5
4713echo "${ECHO_T}no" >&6
4714 fi
4715
4716
4717
4718 enablestring=
4719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4720echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4721 no_cache=0
4722 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4723if test "${enable_apple_ieee+set}" = set; then
4724 enableval="$enable_apple_ieee"
4725
4726 if test "$enableval" = yes; then
4727 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4728 else
4729 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4730 fi
4731
4732else
4733
4734 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
4741 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4742
4743fi;
4744
4745 eval "$ac_cv_use_apple_ieee"
4746 if test "$no_cache" != 1; then
4747 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4748 fi
4749
4750 if test "$wxUSE_APPLE_IEEE" = yes; then
4751 echo "$as_me:$LINENO: result: yes" >&5
4752echo "${ECHO_T}yes" >&6
4753 else
4754 echo "$as_me:$LINENO: result: no" >&5
4755echo "${ECHO_T}no" >&6
4756 fi
4757
4758
81f90336
MW
4759 enablestring=
4760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4761echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4762 no_cache=0
4763 # Check whether --enable-arcstream or --disable-arcstream was given.
4764if test "${enable_arcstream+set}" = set; then
4765 enableval="$enable_arcstream"
4766
4767 if test "$enableval" = yes; then
9e8e867f 4768 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4769 else
9e8e867f 4770 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4771 fi
4772
4773else
4774
9e8e867f 4775 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4776 if test "x$LINE" != x ; then
4777 eval "DEFAULT_$LINE"
4778 else
4779 no_cache=1
4780 fi
4781
9e8e867f 4782 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4783
4784fi;
4785
4786 eval "$ac_cv_use_arcstream"
4787 if test "$no_cache" != 1; then
4788 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4789 fi
4790
9e8e867f 4791 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4792 echo "$as_me:$LINENO: result: yes" >&5
4793echo "${ECHO_T}yes" >&6
4794 else
4795 echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6
4797 fi
4798
4799
a848cd7e 4800 enablestring=
36b6448c
VZ
4801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4802echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4803 no_cache=0
36b6448c
VZ
4804 # Check whether --enable-backtrace or --disable-backtrace was given.
4805if test "${enable_backtrace+set}" = set; then
4806 enableval="$enable_backtrace"
a848cd7e
SC
4807
4808 if test "$enableval" = yes; then
36b6448c 4809 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4810 else
36b6448c 4811 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4812 fi
4813
4814else
4815
36b6448c 4816 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4817 if test "x$LINE" != x ; then
4818 eval "DEFAULT_$LINE"
4819 else
4820 no_cache=1
4821 fi
4822
36b6448c 4823 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4824
4825fi;
4826
36b6448c 4827 eval "$ac_cv_use_backtrace"
a848cd7e 4828 if test "$no_cache" != 1; then
36b6448c 4829 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4830 fi
4831
36b6448c 4832 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4833 echo "$as_me:$LINENO: result: yes" >&5
4834echo "${ECHO_T}yes" >&6
4835 else
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
4838 fi
4839
4840
eaff0f0d 4841 enablestring=
36b6448c
VZ
4842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4843echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4844 no_cache=0
36b6448c
VZ
4845 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4846if test "${enable_catch_segvs+set}" = set; then
4847 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4848
4849 if test "$enableval" = yes; then
36b6448c 4850 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4851 else
36b6448c 4852 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4853 fi
4854
4855else
4856
36b6448c 4857 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4858 if test "x$LINE" != x ; then
4859 eval "DEFAULT_$LINE"
4860 else
4861 no_cache=1
4862 fi
4863
36b6448c 4864 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4865
4866fi;
4867
36b6448c 4868 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4869 if test "$no_cache" != 1; then
36b6448c 4870 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4871 fi
4872
36b6448c 4873 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4874 echo "$as_me:$LINENO: result: yes" >&5
4875echo "${ECHO_T}yes" >&6
4876 else
4877 echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6
4879 fi
4880
4881
a848cd7e
SC
4882 enablestring=
4883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4884echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4885 no_cache=0
4886 # Check whether --enable-cmdline or --disable-cmdline was given.
4887if test "${enable_cmdline+set}" = set; then
4888 enableval="$enable_cmdline"
4889
4890 if test "$enableval" = yes; then
4891 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4892 else
4893 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4894 fi
4895
4896else
4897
4898 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4899 if test "x$LINE" != x ; then
4900 eval "DEFAULT_$LINE"
4901 else
4902 no_cache=1
4903 fi
4904
4905 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4906
4907fi;
4908
4909 eval "$ac_cv_use_cmdline"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4915 echo "$as_me:$LINENO: result: yes" >&5
4916echo "${ECHO_T}yes" >&6
4917 else
4918 echo "$as_me:$LINENO: result: no" >&5
4919echo "${ECHO_T}no" >&6
4920 fi
4921
4922
4923 enablestring=
4924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4925echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4926 no_cache=0
4927 # Check whether --enable-datetime or --disable-datetime was given.
4928if test "${enable_datetime+set}" = set; then
4929 enableval="$enable_datetime"
4930
4931 if test "$enableval" = yes; then
4932 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4933 else
4934 ac_cv_use_datetime='wxUSE_DATETIME=no'
4935 fi
4936
4937else
4938
4939 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4940 if test "x$LINE" != x ; then
4941 eval "DEFAULT_$LINE"
4942 else
4943 no_cache=1
4944 fi
4945
4946 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4947
4948fi;
4949
4950 eval "$ac_cv_use_datetime"
4951 if test "$no_cache" != 1; then
4952 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4953 fi
4954
4955 if test "$wxUSE_DATETIME" = yes; then
4956 echo "$as_me:$LINENO: result: yes" >&5
4957echo "${ECHO_T}yes" >&6
4958 else
4959 echo "$as_me:$LINENO: result: no" >&5
4960echo "${ECHO_T}no" >&6
4961 fi
4962
4963
36b6448c
VZ
4964 enablestring=
4965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4966echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4967 no_cache=0
4968 # Check whether --enable-debugreport or --disable-debugreport was given.
4969if test "${enable_debugreport+set}" = set; then
4970 enableval="$enable_debugreport"
4971
4972 if test "$enableval" = yes; then
4973 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4974 else
4975 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4976 fi
4977
4978else
4979
4980 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4988
4989fi;
4990
4991 eval "$ac_cv_use_debugreport"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_DEBUGREPORT" = yes; then
4997 echo "$as_me:$LINENO: result: yes" >&5
4998echo "${ECHO_T}yes" >&6
4999 else
5000 echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6
5002 fi
5003
5004
a848cd7e
SC
5005 enablestring=
5006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5007echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5008 no_cache=0
5009 # Check whether --enable-dialupman or --disable-dialupman was given.
5010if test "${enable_dialupman+set}" = set; then
5011 enableval="$enable_dialupman"
5012
5013 if test "$enableval" = yes; then
5014 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5015 else
5016 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5017 fi
5018
5019else
5020
5021 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5022 if test "x$LINE" != x ; then
5023 eval "DEFAULT_$LINE"
5024 else
5025 no_cache=1
5026 fi
5027
5028 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5029
5030fi;
5031
5032 eval "$ac_cv_use_dialupman"
5033 if test "$no_cache" != 1; then
5034 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5035 fi
5036
5037 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5038 echo "$as_me:$LINENO: result: yes" >&5
5039echo "${ECHO_T}yes" >&6
5040 else
5041 echo "$as_me:$LINENO: result: no" >&5
5042echo "${ECHO_T}no" >&6
5043 fi
5044
5045
5046 enablestring=
5047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5048echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5049 no_cache=0
5050 # Check whether --enable-dynlib or --disable-dynlib was given.
5051if test "${enable_dynlib+set}" = set; then
5052 enableval="$enable_dynlib"
5053
5054 if test "$enableval" = yes; then
5055 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5056 else
5057 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5058 fi
5059
5060else
5061
5062 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5063 if test "x$LINE" != x ; then
5064 eval "DEFAULT_$LINE"
5065 else
5066 no_cache=1
5067 fi
5068
5069 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5070
5071fi;
5072
5073 eval "$ac_cv_use_dynlib"
5074 if test "$no_cache" != 1; then
5075 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5076 fi
5077
5078 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5079 echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
5081 else
5082 echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084 fi
5085
5086
5087 enablestring=
5088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5089echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5090 no_cache=0
5091 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5092if test "${enable_dynamicloader+set}" = set; then
5093 enableval="$enable_dynamicloader"
5094
5095 if test "$enableval" = yes; then
5096 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5097 else
5098 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5099 fi
5100
5101else
5102
5103 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5104 if test "x$LINE" != x ; then
5105 eval "DEFAULT_$LINE"
5106 else
5107 no_cache=1
5108 fi
5109
5110 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5111
5112fi;
5113
5114 eval "$ac_cv_use_dynamicloader"
5115 if test "$no_cache" != 1; then
5116 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5117 fi
5118
5119 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5120 echo "$as_me:$LINENO: result: yes" >&5
5121echo "${ECHO_T}yes" >&6
5122 else
5123 echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
5125 fi
5126
5127
5128 enablestring=
5129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5130echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5131 no_cache=0
5132 # Check whether --enable-exceptions or --disable-exceptions was given.
5133if test "${enable_exceptions+set}" = set; then
5134 enableval="$enable_exceptions"
5135
5136 if test "$enableval" = yes; then
5137 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5138 else
5139 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5140 fi
5141
5142else
5143
5144 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5152
5153fi;
5154
5155 eval "$ac_cv_use_exceptions"
5156 if test "$no_cache" != 1; then
5157 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5158 fi
5159
5160 if test "$wxUSE_EXCEPTIONS" = yes; then
5161 echo "$as_me:$LINENO: result: yes" >&5
5162echo "${ECHO_T}yes" >&6
5163 else
5164 echo "$as_me:$LINENO: result: no" >&5
5165echo "${ECHO_T}no" >&6
5166 fi
5167
5168
5169 enablestring=
5170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5171echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5172 no_cache=0
5173 # Check whether --enable-ffile or --disable-ffile was given.
5174if test "${enable_ffile+set}" = set; then
5175 enableval="$enable_ffile"
5176
5177 if test "$enableval" = yes; then
5178 ac_cv_use_ffile='wxUSE_FFILE=yes'
5179 else
5180 ac_cv_use_ffile='wxUSE_FFILE=no'
5181 fi
5182
5183else
5184
5185 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5193
5194fi;
5195
5196 eval "$ac_cv_use_ffile"
5197 if test "$no_cache" != 1; then
5198 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5199 fi
5200
5201 if test "$wxUSE_FFILE" = yes; then
5202 echo "$as_me:$LINENO: result: yes" >&5
5203echo "${ECHO_T}yes" >&6
5204 else
5205 echo "$as_me:$LINENO: result: no" >&5
5206echo "${ECHO_T}no" >&6
5207 fi
5208
5209
5210 enablestring=
5211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5212echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5213 no_cache=0
5214 # Check whether --enable-file or --disable-file was given.
5215if test "${enable_file+set}" = set; then
5216 enableval="$enable_file"
5217
5218 if test "$enableval" = yes; then
5219 ac_cv_use_file='wxUSE_FILE=yes'
5220 else
5221 ac_cv_use_file='wxUSE_FILE=no'
5222 fi
5223
5224else
5225
5226 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5227 if test "x$LINE" != x ; then
5228 eval "DEFAULT_$LINE"
5229 else
5230 no_cache=1
5231 fi
5232
5233 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5234
5235fi;
5236
5237 eval "$ac_cv_use_file"
5238 if test "$no_cache" != 1; then
5239 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5240 fi
5241
5242 if test "$wxUSE_FILE" = yes; then
5243 echo "$as_me:$LINENO: result: yes" >&5
5244echo "${ECHO_T}yes" >&6
5245 else
5246 echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248 fi
5249
5250
5251 enablestring=
5252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5253echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5254 no_cache=0
5255 # Check whether --enable-filesystem or --disable-filesystem was given.
5256if test "${enable_filesystem+set}" = set; then
5257 enableval="$enable_filesystem"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5261 else
5262 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5263 fi
5264
5265else
5266
5267 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5275
5276fi;
5277
5278 eval "$ac_cv_use_filesystem"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_FILESYSTEM" = yes; then
5284 echo "$as_me:$LINENO: result: yes" >&5
5285echo "${ECHO_T}yes" >&6
5286 else
5287 echo "$as_me:$LINENO: result: no" >&5
5288echo "${ECHO_T}no" >&6
5289 fi
5290
5291
5292 enablestring=
5293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5294echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5295 no_cache=0
5296 # Check whether --enable-fontmap or --disable-fontmap was given.
5297if test "${enable_fontmap+set}" = set; then
5298 enableval="$enable_fontmap"
5299
5300 if test "$enableval" = yes; then
5301 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5302 else
5303 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5304 fi
5305
5306else
5307
5308 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5309 if test "x$LINE" != x ; then
5310 eval "DEFAULT_$LINE"
5311 else
5312 no_cache=1
5313 fi
5314
5315 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5316
5317fi;
5318
5319 eval "$ac_cv_use_fontmap"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_FONTMAP" = yes; then
5325 echo "$as_me:$LINENO: result: yes" >&5
5326echo "${ECHO_T}yes" >&6
5327 else
5328 echo "$as_me:$LINENO: result: no" >&5
5329echo "${ECHO_T}no" >&6
5330 fi
5331
5332
5333 enablestring=
5334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5335echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5336 no_cache=0
5337 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5338if test "${enable_fs_inet+set}" = set; then
5339 enableval="$enable_fs_inet"
5340
5341 if test "$enableval" = yes; then
5342 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5343 else
5344 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5345 fi
5346
5347else
5348
5349 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5357
5358fi;
5359
5360 eval "$ac_cv_use_fs_inet"
5361 if test "$no_cache" != 1; then
5362 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5363 fi
5364
5365 if test "$wxUSE_FS_INET" = yes; then
5366 echo "$as_me:$LINENO: result: yes" >&5
5367echo "${ECHO_T}yes" >&6
5368 else
5369 echo "$as_me:$LINENO: result: no" >&5
5370echo "${ECHO_T}no" >&6
5371 fi
5372
5373
5374 enablestring=
5375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5376echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5377 no_cache=0
5378 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5379if test "${enable_fs_zip+set}" = set; then
5380 enableval="$enable_fs_zip"
5381
5382 if test "$enableval" = yes; then
5383 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5384 else
5385 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5386 fi
5387
5388else
5389
5390 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5391 if test "x$LINE" != x ; then
5392 eval "DEFAULT_$LINE"
5393 else
5394 no_cache=1
5395 fi
5396
5397 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5398
5399fi;
5400
5401 eval "$ac_cv_use_fs_zip"
5402 if test "$no_cache" != 1; then
5403 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5404 fi
5405
5406 if test "$wxUSE_FS_ZIP" = yes; then
5407 echo "$as_me:$LINENO: result: yes" >&5
5408echo "${ECHO_T}yes" >&6
5409 else
5410 echo "$as_me:$LINENO: result: no" >&5
5411echo "${ECHO_T}no" >&6
5412 fi
5413
5414
5415 enablestring=
5416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5417echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5418 no_cache=0
5419 # Check whether --enable-geometry or --disable-geometry was given.
5420if test "${enable_geometry+set}" = set; then
5421 enableval="$enable_geometry"
5422
5423 if test "$enableval" = yes; then
5424 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5425 else
5426 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5427 fi
5428
5429else
5430
5431 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5432 if test "x$LINE" != x ; then
5433 eval "DEFAULT_$LINE"
5434 else
5435 no_cache=1
5436 fi
5437
5438 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5439
5440fi;
5441
5442 eval "$ac_cv_use_geometry"
5443 if test "$no_cache" != 1; then
5444 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5445 fi
5446
5447 if test "$wxUSE_GEOMETRY" = yes; then
5448 echo "$as_me:$LINENO: result: yes" >&5
5449echo "${ECHO_T}yes" >&6
5450 else
5451 echo "$as_me:$LINENO: result: no" >&5
5452echo "${ECHO_T}no" >&6
5453 fi
5454
5455
5456 enablestring=
5457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5458echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5459 no_cache=0
5460 # Check whether --enable-log or --disable-log was given.
5461if test "${enable_log+set}" = set; then
5462 enableval="$enable_log"
5463
5464 if test "$enableval" = yes; then
5465 ac_cv_use_log='wxUSE_LOG=yes'
5466 else
5467 ac_cv_use_log='wxUSE_LOG=no'
5468 fi
5469
5470else
5471
5472 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5473 if test "x$LINE" != x ; then
5474 eval "DEFAULT_$LINE"
5475 else
5476 no_cache=1
5477 fi
5478
5479 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5480
5481fi;
5482
5483 eval "$ac_cv_use_log"
5484 if test "$no_cache" != 1; then
5485 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5486 fi
5487
5488 if test "$wxUSE_LOG" = yes; then
5489 echo "$as_me:$LINENO: result: yes" >&5
5490echo "${ECHO_T}yes" >&6
5491 else
5492 echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6
5494 fi
5495
5496
5497 enablestring=
5498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5499echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5500 no_cache=0
5501 # Check whether --enable-longlong or --disable-longlong was given.
5502if test "${enable_longlong+set}" = set; then
5503 enableval="$enable_longlong"
5504
5505 if test "$enableval" = yes; then
5506 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5507 else
5508 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5509 fi
5510
5511else
5512
5513 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5514 if test "x$LINE" != x ; then
5515 eval "DEFAULT_$LINE"
5516 else
5517 no_cache=1
5518 fi
5519
5520 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5521
5522fi;
5523
5524 eval "$ac_cv_use_longlong"
5525 if test "$no_cache" != 1; then
5526 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5527 fi
5528
5529 if test "$wxUSE_LONGLONG" = yes; then
5530 echo "$as_me:$LINENO: result: yes" >&5
5531echo "${ECHO_T}yes" >&6
5532 else
5533 echo "$as_me:$LINENO: result: no" >&5
5534echo "${ECHO_T}no" >&6
5535 fi
5536
5537
5538 enablestring=
5539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5540echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5541 no_cache=0
5542 # Check whether --enable-mimetype or --disable-mimetype was given.
5543if test "${enable_mimetype+set}" = set; then
5544 enableval="$enable_mimetype"
5545
5546 if test "$enableval" = yes; then
5547 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5548 else
5549 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5550 fi
5551
5552else
5553
5554 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5555 if test "x$LINE" != x ; then
5556 eval "DEFAULT_$LINE"
5557 else
5558 no_cache=1
5559 fi
5560
5561 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5562
5563fi;
5564
5565 eval "$ac_cv_use_mimetype"
5566 if test "$no_cache" != 1; then
5567 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5568 fi
5569
5570 if test "$wxUSE_MIMETYPE" = yes; then
5571 echo "$as_me:$LINENO: result: yes" >&5
5572echo "${ECHO_T}yes" >&6
5573 else
5574 echo "$as_me:$LINENO: result: no" >&5
5575echo "${ECHO_T}no" >&6
5576 fi
5577
5578
5579 enablestring=
5580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5581echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5582 no_cache=0
5583 # Check whether --enable-mslu or --disable-mslu was given.
5584if test "${enable_mslu+set}" = set; then
5585 enableval="$enable_mslu"
5586
5587 if test "$enableval" = yes; then
5588 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5589 else
5590 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5591 fi
5592
5593else
5594
5595 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5596 if test "x$LINE" != x ; then
5597 eval "DEFAULT_$LINE"
5598 else
5599 no_cache=1
5600 fi
5601
5602 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5603
5604fi;
5605
5606 eval "$ac_cv_use_mslu"
5607 if test "$no_cache" != 1; then
5608 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5609 fi
5610
5611 if test "$wxUSE_UNICODE_MSLU" = yes; then
5612 echo "$as_me:$LINENO: result: yes" >&5
5613echo "${ECHO_T}yes" >&6
5614 else
5615 echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6
5617 fi
5618
5619
5620 enablestring=
5621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5622echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5623 no_cache=0
5624 # Check whether --enable-snglinst or --disable-snglinst was given.
5625if test "${enable_snglinst+set}" = set; then
5626 enableval="$enable_snglinst"
5627
5628 if test "$enableval" = yes; then
5629 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5630 else
5631 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5632 fi
5633
5634else
5635
5636 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5637 if test "x$LINE" != x ; then
5638 eval "DEFAULT_$LINE"
5639 else
5640 no_cache=1
5641 fi
5642
5643 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5644
5645fi;
5646
5647 eval "$ac_cv_use_snglinst"
5648 if test "$no_cache" != 1; then
5649 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5650 fi
5651
5652 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5653 echo "$as_me:$LINENO: result: yes" >&5
5654echo "${ECHO_T}yes" >&6
5655 else
5656 echo "$as_me:$LINENO: result: no" >&5
5657echo "${ECHO_T}no" >&6
5658 fi
5659
5660
5661 enablestring=
07158944
VZ
5662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5663echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5664 no_cache=0
07158944
VZ
5665 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5666if test "${enable_std_iostreams+set}" = set; then
5667 enableval="$enable_std_iostreams"
a848cd7e
SC
5668
5669 if test "$enableval" = yes; then
07158944 5670 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5671 else
07158944 5672 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5673 fi
5674
5675else
5676
07158944 5677 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5678 if test "x$LINE" != x ; then
5679 eval "DEFAULT_$LINE"
5680 else
5681 no_cache=1
5682 fi
5683
07158944 5684 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5685
5686fi;
5687
07158944 5688 eval "$ac_cv_use_std_iostreams"
a848cd7e 5689 if test "$no_cache" != 1; then
07158944 5690 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5691 fi
5692
07158944 5693 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5694 echo "$as_me:$LINENO: result: yes" >&5
5695echo "${ECHO_T}yes" >&6
5696 else
5697 echo "$as_me:$LINENO: result: no" >&5
5698echo "${ECHO_T}no" >&6
5699 fi
5700
5701
59746b65
MW
5702 enablestring=
5703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5704echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5705 no_cache=0
5706 # Check whether --enable-std_string or --disable-std_string was given.
5707if test "${enable_std_string+set}" = set; then
5708 enableval="$enable_std_string"
5709
5710 if test "$enableval" = yes; then
5711 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5712 else
5713 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5714 fi
5715
5716else
5717
5718 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5719 if test "x$LINE" != x ; then
5720 eval "DEFAULT_$LINE"
5721 else
5722 no_cache=1
5723 fi
5724
5725 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5726
5727fi;
5728
5729 eval "$ac_cv_use_std_string"
5730 if test "$no_cache" != 1; then
5731 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5732 fi
5733
5734 if test "$wxUSE_STD_STRING" = yes; then
5735 echo "$as_me:$LINENO: result: yes" >&5
5736echo "${ECHO_T}yes" >&6
5737 else
5738 echo "$as_me:$LINENO: result: no" >&5
5739echo "${ECHO_T}no" >&6
5740 fi
5741
5742
a848cd7e 5743 enablestring=
07158944
VZ
5744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5745echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5746 no_cache=0
07158944
VZ
5747 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5748if test "${enable_stdpaths+set}" = set; then
5749 enableval="$enable_stdpaths"
a848cd7e
SC
5750
5751 if test "$enableval" = yes; then
07158944 5752 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5753 else
07158944 5754 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5755 fi
5756
5757else
5758
07158944 5759 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5760 if test "x$LINE" != x ; then
5761 eval "DEFAULT_$LINE"
5762 else
5763 no_cache=1
5764 fi
5765
07158944 5766 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5767
5768fi;
5769
07158944 5770 eval "$ac_cv_use_stdpaths"
a848cd7e 5771 if test "$no_cache" != 1; then
07158944 5772 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5773 fi
5774
07158944 5775 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5776 echo "$as_me:$LINENO: result: yes" >&5
5777echo "${ECHO_T}yes" >&6
5778 else
5779 echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6
5781 fi
5782
5783
5784 enablestring=
5785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5786echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5787 no_cache=0
5788 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5789if test "${enable_stopwatch+set}" = set; then
5790 enableval="$enable_stopwatch"
5791
5792 if test "$enableval" = yes; then
5793 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5794 else
5795 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5796 fi
5797
5798else
5799
5800 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5801 if test "x$LINE" != x ; then
5802 eval "DEFAULT_$LINE"
5803 else
5804 no_cache=1
5805 fi
5806
5807 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5808
5809fi;
5810
5811 eval "$ac_cv_use_stopwatch"
5812 if test "$no_cache" != 1; then
5813 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5814 fi
5815
5816 if test "$wxUSE_STOPWATCH" = yes; then
5817 echo "$as_me:$LINENO: result: yes" >&5
5818echo "${ECHO_T}yes" >&6
5819 else
5820 echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6
5822 fi
5823
5824
07158944
VZ
5825 enablestring=
5826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5827echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5828 no_cache=0
5829 # Check whether --enable-streams or --disable-streams was given.
5830if test "${enable_streams+set}" = set; then
5831 enableval="$enable_streams"
5832
5833 if test "$enableval" = yes; then
5834 ac_cv_use_streams='wxUSE_STREAMS=yes'
5835 else
5836 ac_cv_use_streams='wxUSE_STREAMS=no'
5837 fi
5838
5839else
5840
5841 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5842 if test "x$LINE" != x ; then
5843 eval "DEFAULT_$LINE"
5844 else
5845 no_cache=1
5846 fi
5847
5848 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5849
5850fi;
5851
5852 eval "$ac_cv_use_streams"
5853 if test "$no_cache" != 1; then
5854 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5855 fi
5856
5857 if test "$wxUSE_STREAMS" = yes; then
5858 echo "$as_me:$LINENO: result: yes" >&5
5859echo "${ECHO_T}yes" >&6
5860 else
5861 echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6
5863 fi
5864
5865
a848cd7e
SC
5866 enablestring=
5867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5868echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5869 no_cache=0
5870 # Check whether --enable-system_options or --disable-system_options was given.
5871if test "${enable_system_options+set}" = set; then
5872 enableval="$enable_system_options"
5873
5874 if test "$enableval" = yes; then
5875 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5876 else
5877 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5878 fi
5879
5880else
5881
5882 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5883 if test "x$LINE" != x ; then
5884 eval "DEFAULT_$LINE"
5885 else
5886 no_cache=1
5887 fi
5888
5889 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5890
5891fi;
5892
5893 eval "$ac_cv_use_system_options"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5899 echo "$as_me:$LINENO: result: yes" >&5
5900echo "${ECHO_T}yes" >&6
5901 else
5902 echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904 fi
5905
5906
5907 enablestring=
5908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5909echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5910 no_cache=0
5911 # Check whether --enable-textbuf or --disable-textbuf was given.
5912if test "${enable_textbuf+set}" = set; then
5913 enableval="$enable_textbuf"
5914
5915 if test "$enableval" = yes; then
5916 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5917 else
5918 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5919 fi
5920
5921else
5922
5923 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5924 if test "x$LINE" != x ; then
5925 eval "DEFAULT_$LINE"
5926 else
5927 no_cache=1
5928 fi
5929
5930 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5931
5932fi;
5933
5934 eval "$ac_cv_use_textbuf"
5935 if test "$no_cache" != 1; then
5936 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5937 fi
5938
5939 if test "$wxUSE_TEXTBUFFER" = yes; then
5940 echo "$as_me:$LINENO: result: yes" >&5
5941echo "${ECHO_T}yes" >&6
5942 else
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
5945 fi
5946
5947
5948 enablestring=
5949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5950echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5951 no_cache=0
5952 # Check whether --enable-textfile or --disable-textfile was given.
5953if test "${enable_textfile+set}" = set; then
5954 enableval="$enable_textfile"
5955
5956 if test "$enableval" = yes; then
5957 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5958 else
5959 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5960 fi
5961
5962else
5963
5964 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5972
5973fi;
5974
5975 eval "$ac_cv_use_textfile"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_TEXTFILE" = yes; then
5981 echo "$as_me:$LINENO: result: yes" >&5
5982echo "${ECHO_T}yes" >&6
5983 else
5984 echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
5986 fi
5987
5988
5989 enablestring=
5990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5991echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5992 no_cache=0
5993 # Check whether --enable-timer or --disable-timer was given.
5994if test "${enable_timer+set}" = set; then
5995 enableval="$enable_timer"
5996
5997 if test "$enableval" = yes; then
5998 ac_cv_use_timer='wxUSE_TIMER=yes'
5999 else
6000 ac_cv_use_timer='wxUSE_TIMER=no'
6001 fi
6002
6003else
6004
6005 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6013
6014fi;
6015
6016 eval "$ac_cv_use_timer"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_TIMER" = yes; then
6022 echo "$as_me:$LINENO: result: yes" >&5
6023echo "${ECHO_T}yes" >&6
6024 else
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
6027 fi
6028
6029
6030 enablestring=
6031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6032echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6033 no_cache=0
6034 # Check whether --enable-unicode or --disable-unicode was given.
6035if test "${enable_unicode+set}" = set; then
6036 enableval="$enable_unicode"
6037
6038 if test "$enableval" = yes; then
6039 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6040 else
6041 ac_cv_use_unicode='wxUSE_UNICODE=no'
6042 fi
6043
6044else
6045
6046 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6054
6055fi;
6056
6057 eval "$ac_cv_use_unicode"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_UNICODE" = yes; then
6063 echo "$as_me:$LINENO: result: yes" >&5
6064echo "${ECHO_T}yes" >&6
6065 else
6066 echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
6068 fi
6069
6070
6071 enablestring=
6072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6073echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6074 no_cache=0
6075 # Check whether --enable-sound or --disable-sound was given.
6076if test "${enable_sound+set}" = set; then
6077 enableval="$enable_sound"
6078
6079 if test "$enableval" = yes; then
6080 ac_cv_use_sound='wxUSE_SOUND=yes'
6081 else
6082 ac_cv_use_sound='wxUSE_SOUND=no'
6083 fi
6084
6085else
6086
6087 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 else
6091 no_cache=1
6092 fi
6093
6094 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6095
6096fi;
6097
6098 eval "$ac_cv_use_sound"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_SOUND" = yes; then
6104 echo "$as_me:$LINENO: result: yes" >&5
6105echo "${ECHO_T}yes" >&6
6106 else
6107 echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6
6109 fi
6110
6111
3b57de8b
RL
6112 enablestring=
6113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6114echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6115 no_cache=0
6116 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6117if test "${enable_mediactrl+set}" = set; then
6118 enableval="$enable_mediactrl"
6119
6120 if test "$enableval" = yes; then
6121 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6122 else
6123 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6124 fi
6125
6126else
6127
6128 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6129 if test "x$LINE" != x ; then
6130 eval "DEFAULT_$LINE"
6131 else
6132 no_cache=1
6133 fi
6134
6135 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6136
6137fi;
6138
6139 eval "$ac_cv_use_mediactrl"
6140 if test "$no_cache" != 1; then
6141 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6142 fi
6143
6144 if test "$wxUSE_MEDIACTRL" = yes; then
6145 echo "$as_me:$LINENO: result: yes" >&5
6146echo "${ECHO_T}yes" >&6
6147 else
6148 echo "$as_me:$LINENO: result: no" >&5
6149echo "${ECHO_T}no" >&6
6150 fi
6151
6152
a848cd7e
SC
6153 enablestring=
6154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6155echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6156 no_cache=0
6157 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6158if test "${enable_wxprintfv+set}" = set; then
6159 enableval="$enable_wxprintfv"
6160
6161 if test "$enableval" = yes; then
6162 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6163 else
6164 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6165 fi
6166
6167else
6168
6169 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6170 if test "x$LINE" != x ; then
6171 eval "DEFAULT_$LINE"
6172 else
6173 no_cache=1
6174 fi
6175
6176 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6177
6178fi;
6179
6180 eval "$ac_cv_use_wxprintfv"
6181 if test "$no_cache" != 1; then
6182 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6183 fi
6184
6185 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6186 echo "$as_me:$LINENO: result: yes" >&5
6187echo "${ECHO_T}yes" >&6
6188 else
6189 echo "$as_me:$LINENO: result: no" >&5
6190echo "${ECHO_T}no" >&6
6191 fi
6192
6193
6194 enablestring=
6195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6196echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6197 no_cache=0
6198 # Check whether --enable-zipstream or --disable-zipstream was given.
6199if test "${enable_zipstream+set}" = set; then
6200 enableval="$enable_zipstream"
6201
6202 if test "$enableval" = yes; then
6203 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6204 else
6205 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6206 fi
6207
6208else
6209
6210 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6211 if test "x$LINE" != x ; then
6212 eval "DEFAULT_$LINE"
6213 else
6214 no_cache=1
6215 fi
6216
6217 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6218
6219fi;
6220
6221 eval "$ac_cv_use_zipstream"
6222 if test "$no_cache" != 1; then
6223 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6224 fi
6225
6226 if test "$wxUSE_ZIPSTREAM" = yes; then
6227 echo "$as_me:$LINENO: result: yes" >&5
6228echo "${ECHO_T}yes" >&6
6229 else
6230 echo "$as_me:$LINENO: result: no" >&5
6231echo "${ECHO_T}no" >&6
6232 fi
6233
6234
a848cd7e
SC
6235
6236 enablestring=
6237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6238echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6239 no_cache=0
6240 # Check whether --enable-url or --disable-url was given.
6241if test "${enable_url+set}" = set; then
6242 enableval="$enable_url"
6243
6244 if test "$enableval" = yes; then
6245 ac_cv_use_url='wxUSE_URL=yes'
6246 else
6247 ac_cv_use_url='wxUSE_URL=no'
6248 fi
6249
6250else
6251
6252 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6253 if test "x$LINE" != x ; then
6254 eval "DEFAULT_$LINE"
6255 else
6256 no_cache=1
6257 fi
6258
6259 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6260
6261fi;
6262
6263 eval "$ac_cv_use_url"
6264 if test "$no_cache" != 1; then
6265 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6266 fi
6267
6268 if test "$wxUSE_URL" = yes; then
6269 echo "$as_me:$LINENO: result: yes" >&5
6270echo "${ECHO_T}yes" >&6
6271 else
6272 echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6
6274 fi
6275
6276
6277 enablestring=
6278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6279echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6280 no_cache=0
6281 # Check whether --enable-protocol or --disable-protocol was given.
6282if test "${enable_protocol+set}" = set; then
6283 enableval="$enable_protocol"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6287 else
6288 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6289 fi
6290
6291else
6292
6293 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6301
6302fi;
6303
6304 eval "$ac_cv_use_protocol"
6305 if test "$no_cache" != 1; then
6306 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6307 fi
6308
6309 if test "$wxUSE_PROTOCOL" = yes; then
6310 echo "$as_me:$LINENO: result: yes" >&5
6311echo "${ECHO_T}yes" >&6
6312 else
6313 echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6
6315 fi
6316
6317
6318 enablestring=
6319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6320echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6321 no_cache=0
6322 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6323if test "${enable_protocol_http+set}" = set; then
6324 enableval="$enable_protocol_http"
6325
6326 if test "$enableval" = yes; then
6327 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6328 else
6329 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6330 fi
6331
6332else
6333
6334 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6335 if test "x$LINE" != x ; then
6336 eval "DEFAULT_$LINE"
6337 else
6338 no_cache=1
6339 fi
6340
6341 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6342
6343fi;
6344
6345 eval "$ac_cv_use_protocol_http"
6346 if test "$no_cache" != 1; then
6347 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6348 fi
6349
6350 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6351 echo "$as_me:$LINENO: result: yes" >&5
6352echo "${ECHO_T}yes" >&6
6353 else
6354 echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6
6356 fi
6357
6358
6359 enablestring=
6360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6361echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6362 no_cache=0
6363 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6364if test "${enable_protocol_ftp+set}" = set; then
6365 enableval="$enable_protocol_ftp"
6366
6367 if test "$enableval" = yes; then
6368 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6369 else
6370 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6371 fi
6372
6373else
6374
6375 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6376 if test "x$LINE" != x ; then
6377 eval "DEFAULT_$LINE"
6378 else
6379 no_cache=1
6380 fi
6381
6382 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6383
6384fi;
6385
6386 eval "$ac_cv_use_protocol_ftp"
6387 if test "$no_cache" != 1; then
6388 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6389 fi
6390
6391 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6392 echo "$as_me:$LINENO: result: yes" >&5
6393echo "${ECHO_T}yes" >&6
6394 else
6395 echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6
6397 fi
6398
6399
6400 enablestring=
6401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6402echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6403 no_cache=0
6404 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6405if test "${enable_protocol_file+set}" = set; then
6406 enableval="$enable_protocol_file"
6407
6408 if test "$enableval" = yes; then
6409 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6410 else
6411 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6412 fi
6413
6414else
6415
6416 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6417 if test "x$LINE" != x ; then
6418 eval "DEFAULT_$LINE"
6419 else
6420 no_cache=1
6421 fi
6422
6423 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6424
6425fi;
6426
6427 eval "$ac_cv_use_protocol_file"
6428 if test "$no_cache" != 1; then
6429 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6430 fi
6431
6432 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6433 echo "$as_me:$LINENO: result: yes" >&5
6434echo "${ECHO_T}yes" >&6
6435 else
6436 echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6
6438 fi
6439
6440
6441
6442
6443
6444 enablestring=
6445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6446echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6447 no_cache=0
6448 # Check whether --enable-threads or --disable-threads was given.
6449if test "${enable_threads+set}" = set; then
6450 enableval="$enable_threads"
6451
6452 if test "$enableval" = yes; then
6453 ac_cv_use_threads='wxUSE_THREADS=yes'
6454 else
6455 ac_cv_use_threads='wxUSE_THREADS=no'
6456 fi
6457
6458else
6459
6460 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6461 if test "x$LINE" != x ; then
6462 eval "DEFAULT_$LINE"
6463 else
6464 no_cache=1
6465 fi
6466
6467 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6468
6469fi;
6470
6471 eval "$ac_cv_use_threads"
6472 if test "$no_cache" != 1; then
6473 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6474 fi
6475
6476 if test "$wxUSE_THREADS" = yes; then
6477 echo "$as_me:$LINENO: result: yes" >&5
6478echo "${ECHO_T}yes" >&6
6479 else
6480 echo "$as_me:$LINENO: result: no" >&5
6481echo "${ECHO_T}no" >&6
6482 fi
6483
6484
6485if test "$wxUSE_GUI" = "yes"; then
6486
6487
6488
6489 enablestring=
6490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6491echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6492 no_cache=0
6493 # Check whether --enable-docview or --disable-docview was given.
6494if test "${enable_docview+set}" = set; then
6495 enableval="$enable_docview"
6496
6497 if test "$enableval" = yes; then
6498 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6499 else
6500 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6501 fi
6502
6503else
6504
6505 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6513
6514fi;
6515
6516 eval "$ac_cv_use_docview"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6522 echo "$as_me:$LINENO: result: yes" >&5
6523echo "${ECHO_T}yes" >&6
6524 else
6525 echo "$as_me:$LINENO: result: no" >&5
6526echo "${ECHO_T}no" >&6
6527 fi
6528
6529
6530 enablestring=
6531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6532echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6533 no_cache=0
6534 # Check whether --enable-help or --disable-help was given.
6535if test "${enable_help+set}" = set; then
6536 enableval="$enable_help"
6537
6538 if test "$enableval" = yes; then
6539 ac_cv_use_help='wxUSE_HELP=yes'
6540 else
6541 ac_cv_use_help='wxUSE_HELP=no'
6542 fi
6543
6544else
6545
6546 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6547 if test "x$LINE" != x ; then
6548 eval "DEFAULT_$LINE"
6549 else
6550 no_cache=1
6551 fi
6552
6553 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6554
6555fi;
6556
6557 eval "$ac_cv_use_help"
6558 if test "$no_cache" != 1; then
6559 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6560 fi
6561
6562 if test "$wxUSE_HELP" = yes; then
6563 echo "$as_me:$LINENO: result: yes" >&5
6564echo "${ECHO_T}yes" >&6
6565 else
6566 echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6
6568 fi
6569
6570
6571 enablestring=
6572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6573echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6574 no_cache=0
6575 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6576if test "${enable_mshtmlhelp+set}" = set; then
6577 enableval="$enable_mshtmlhelp"
6578
6579 if test "$enableval" = yes; then
6580 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6581 else
6582 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6583 fi
6584
6585else
6586
6587 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6588 if test "x$LINE" != x ; then
6589 eval "DEFAULT_$LINE"
6590 else
6591 no_cache=1
6592 fi
6593
6594 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6595
6596fi;
6597
6598 eval "$ac_cv_use_mshtmlhelp"
6599 if test "$no_cache" != 1; then
6600 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6601 fi
6602
6603 if test "$wxUSE_MS_HTML_HELP" = yes; then
6604 echo "$as_me:$LINENO: result: yes" >&5
6605echo "${ECHO_T}yes" >&6
6606 else
6607 echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6
6609 fi
6610
6611
6612 enablestring=
6613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6614echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6615 no_cache=0
6616 # Check whether --enable-html or --disable-html was given.
6617if test "${enable_html+set}" = set; then
6618 enableval="$enable_html"
6619
6620 if test "$enableval" = yes; then
6621 ac_cv_use_html='wxUSE_HTML=yes'
6622 else
6623 ac_cv_use_html='wxUSE_HTML=no'
6624 fi
6625
6626else
6627
6628 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6629 if test "x$LINE" != x ; then
6630 eval "DEFAULT_$LINE"
6631 else
6632 no_cache=1
6633 fi
6634
6635 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6636
6637fi;
6638
6639 eval "$ac_cv_use_html"
6640 if test "$no_cache" != 1; then
6641 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6642 fi
6643
6644 if test "$wxUSE_HTML" = yes; then
6645 echo "$as_me:$LINENO: result: yes" >&5
6646echo "${ECHO_T}yes" >&6
6647 else
6648 echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6
6650 fi
6651
6652
6653 enablestring=
6654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6655echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6656 no_cache=0
6657 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6658if test "${enable_htmlhelp+set}" = set; then
6659 enableval="$enable_htmlhelp"
6660
6661 if test "$enableval" = yes; then
6662 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6663 else
6664 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6665 fi
6666
6667else
6668
6669 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6677
6678fi;
6679
6680 eval "$ac_cv_use_htmlhelp"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_WXHTML_HELP" = yes; then
6686 echo "$as_me:$LINENO: result: yes" >&5
6687echo "${ECHO_T}yes" >&6
6688 else
6689 echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6
6691 fi
6692
6693
9a8f0513
VS
6694 enablestring=
6695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6696echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6697 no_cache=0
6698 # Check whether --enable-xrc or --disable-xrc was given.
6699if test "${enable_xrc+set}" = set; then
6700 enableval="$enable_xrc"
6701
6702 if test "$enableval" = yes; then
6703 ac_cv_use_xrc='wxUSE_XRC=yes'
6704 else
6705 ac_cv_use_xrc='wxUSE_XRC=no'
6706 fi
6707
6708else
6709
6710 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6711 if test "x$LINE" != x ; then
6712 eval "DEFAULT_$LINE"
6713 else
6714 no_cache=1
6715 fi
6716
6717 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6718
6719fi;
6720
6721 eval "$ac_cv_use_xrc"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6724 fi
6725
6726 if test "$wxUSE_XRC" = yes; then
6727 echo "$as_me:$LINENO: result: yes" >&5
6728echo "${ECHO_T}yes" >&6
6729 else
6730 echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6
6732 fi
6733
6734
a848cd7e
SC
6735 enablestring=
6736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6737echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6738 no_cache=0
6739 # Check whether --enable-constraints or --disable-constraints was given.
6740if test "${enable_constraints+set}" = set; then
6741 enableval="$enable_constraints"
6742
6743 if test "$enableval" = yes; then
6744 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6745 else
6746 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6747 fi
6748
6749else
6750
6751 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6752 if test "x$LINE" != x ; then
6753 eval "DEFAULT_$LINE"
6754 else
6755 no_cache=1
6756 fi
6757
6758 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6759
6760fi;
6761
6762 eval "$ac_cv_use_constraints"
6763 if test "$no_cache" != 1; then
6764 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6765 fi
6766
6767 if test "$wxUSE_CONSTRAINTS" = yes; then
6768 echo "$as_me:$LINENO: result: yes" >&5
6769echo "${ECHO_T}yes" >&6
6770 else
6771 echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6
6773 fi
6774
6775
6776 enablestring=
6777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6778echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6779 no_cache=0
6780 # Check whether --enable-printarch or --disable-printarch was given.
6781if test "${enable_printarch+set}" = set; then
6782 enableval="$enable_printarch"
6783
6784 if test "$enableval" = yes; then
6785 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6786 else
6787 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6788 fi
6789
6790else
6791
6792 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6793 if test "x$LINE" != x ; then
6794 eval "DEFAULT_$LINE"
6795 else
6796 no_cache=1
6797 fi
6798
6799 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6800
6801fi;
6802
6803 eval "$ac_cv_use_printarch"
6804 if test "$no_cache" != 1; then
6805 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6806 fi
6807
6808 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6809 echo "$as_me:$LINENO: result: yes" >&5
6810echo "${ECHO_T}yes" >&6
6811 else
6812 echo "$as_me:$LINENO: result: no" >&5
6813echo "${ECHO_T}no" >&6
6814 fi
6815
6816
6817 enablestring=
6818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6819echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6820 no_cache=0
6821 # Check whether --enable-mdi or --disable-mdi was given.
6822if test "${enable_mdi+set}" = set; then
6823 enableval="$enable_mdi"
6824
6825 if test "$enableval" = yes; then
8a7b1113 6826 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6827 else
8a7b1113 6828 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6829 fi
6830
6831else
6832
8a7b1113 6833 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6834 if test "x$LINE" != x ; then
6835 eval "DEFAULT_$LINE"
6836 else
6837 no_cache=1
6838 fi
6839
8a7b1113 6840 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6841
6842fi;
6843
6844 eval "$ac_cv_use_mdi"
6845 if test "$no_cache" != 1; then
6846 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6847 fi
6848
8a7b1113
VZ
6849 if test "$wxUSE_MDI" = yes; then
6850 echo "$as_me:$LINENO: result: yes" >&5
6851echo "${ECHO_T}yes" >&6
6852 else
6853 echo "$as_me:$LINENO: result: no" >&5
6854echo "${ECHO_T}no" >&6
6855 fi
6856
6857
6858 enablestring=
6859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6860echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6861 no_cache=0
6862 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6863if test "${enable_mdidoc+set}" = set; then
6864 enableval="$enable_mdidoc"
6865
6866 if test "$enableval" = yes; then
6867 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6868 else
6869 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6870 fi
6871
6872else
6873
6874 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6875 if test "x$LINE" != x ; then
6876 eval "DEFAULT_$LINE"
6877 else
6878 no_cache=1
6879 fi
6880
6881 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6882
6883fi;
6884
6885 eval "$ac_cv_use_mdidoc"
6886 if test "$no_cache" != 1; then
6887 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6888 fi
6889
a848cd7e
SC
6890 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6891 echo "$as_me:$LINENO: result: yes" >&5
6892echo "${ECHO_T}yes" >&6
6893 else
6894 echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6
6896 fi
6897
6898
6899 enablestring=
6900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6901echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6902 no_cache=0
6903 # Check whether --enable-loggui or --disable-loggui was given.
6904if test "${enable_loggui+set}" = set; then
6905 enableval="$enable_loggui"
6906
6907 if test "$enableval" = yes; then
6908 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6909 else
6910 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6911 fi
6912
6913else
6914
6915 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6916 if test "x$LINE" != x ; then
6917 eval "DEFAULT_$LINE"
6918 else
6919 no_cache=1
6920 fi
6921
6922 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6923
6924fi;
6925
6926 eval "$ac_cv_use_loggui"
6927 if test "$no_cache" != 1; then
6928 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6929 fi
6930
6931 if test "$wxUSE_LOGGUI" = yes; then
6932 echo "$as_me:$LINENO: result: yes" >&5
6933echo "${ECHO_T}yes" >&6
6934 else
6935 echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6
6937 fi
6938
6939
6940 enablestring=
6941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6942echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6943 no_cache=0
6944 # Check whether --enable-logwin or --disable-logwin was given.
6945if test "${enable_logwin+set}" = set; then
6946 enableval="$enable_logwin"
6947
6948 if test "$enableval" = yes; then
6949 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6950 else
6951 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6952 fi
6953
6954else
6955
6956 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6957 if test "x$LINE" != x ; then
6958 eval "DEFAULT_$LINE"
6959 else
6960 no_cache=1
6961 fi
6962
6963 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6964
6965fi;
6966
6967 eval "$ac_cv_use_logwin"
6968 if test "$no_cache" != 1; then
6969 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6970 fi
6971
6972 if test "$wxUSE_LOGWINDOW" = yes; then
6973 echo "$as_me:$LINENO: result: yes" >&5
6974echo "${ECHO_T}yes" >&6
6975 else
6976 echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6
6978 fi
6979
6980
6981 enablestring=
6982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6983echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6984 no_cache=0
6985 # Check whether --enable-logdialog or --disable-logdialog was given.
6986if test "${enable_logdialog+set}" = set; then
6987 enableval="$enable_logdialog"
6988
6989 if test "$enableval" = yes; then
6990 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6991 else
6992 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6993 fi
6994
6995else
6996
6997 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6998 if test "x$LINE" != x ; then
6999 eval "DEFAULT_$LINE"
7000 else
7001 no_cache=1
7002 fi
7003
7004 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7005
7006fi;
7007
7008 eval "$ac_cv_use_logdialog"
7009 if test "$no_cache" != 1; then
7010 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7011 fi
7012
7013 if test "$wxUSE_LOGDIALOG" = yes; then
7014 echo "$as_me:$LINENO: result: yes" >&5
7015echo "${ECHO_T}yes" >&6
7016 else
7017 echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6
7019 fi
7020
7021
646b6ec1
VS
7022 enablestring=
7023 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7024echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7025 no_cache=0
7026 # Check whether --enable-webkit or --disable-webkit was given.
7027if test "${enable_webkit+set}" = set; then
7028 enableval="$enable_webkit"
7029
7030 if test "$enableval" = yes; then
7031 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7032 else
7033 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7034 fi
7035
7036else
7037
7038 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7039 if test "x$LINE" != x ; then
7040 eval "DEFAULT_$LINE"
7041 else
7042 no_cache=1
7043 fi
7044
7045 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7046
7047fi;
7048
7049 eval "$ac_cv_use_webkit"
7050 if test "$no_cache" != 1; then
7051 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7052 fi
7053
7054 if test "$wxUSE_WEBKIT" = yes; then
7055 echo "$as_me:$LINENO: result: yes" >&5
7056echo "${ECHO_T}yes" >&6
7057 else
7058 echo "$as_me:$LINENO: result: no" >&5
7059echo "${ECHO_T}no" >&6
7060 fi
7061
7062
91dea314
MW
7063 enablestring=
7064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7065echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7066 no_cache=0
7067 # Check whether --enable-html or --disable-html was given.
7068if test "${enable_html+set}" = set; then
7069 enableval="$enable_html"
7070
7071 if test "$enableval" = yes; then
7072 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7073 else
7074 ac_cv_use_html='wxUSE_RICHTEXT=no'
7075 fi
7076
7077else
7078
7079 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7080 if test "x$LINE" != x ; then
7081 eval "DEFAULT_$LINE"
7082 else
7083 no_cache=1
7084 fi
7085
7086 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7087
7088fi;
7089
7090 eval "$ac_cv_use_html"
7091 if test "$no_cache" != 1; then
7092 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7093 fi
7094
7095 if test "$wxUSE_RICHTEXT" = yes; then
7096 echo "$as_me:$LINENO: result: yes" >&5
7097echo "${ECHO_T}yes" >&6
7098 else
7099 echo "$as_me:$LINENO: result: no" >&5
7100echo "${ECHO_T}no" >&6
7101 fi
7102
7103
a848cd7e
SC
7104
7105 enablestring=
7106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7107echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7108 no_cache=0
7109 # Check whether --enable-postscript or --disable-postscript was given.
7110if test "${enable_postscript+set}" = set; then
7111 enableval="$enable_postscript"
7112
7113 if test "$enableval" = yes; then
7114 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7115 else
7116 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7117 fi
7118
7119else
7120
7121 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7122 if test "x$LINE" != x ; then
7123 eval "DEFAULT_$LINE"
7124 else
7125 no_cache=1
7126 fi
7127
7128 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7129
7130fi;
7131
7132 eval "$ac_cv_use_postscript"
7133 if test "$no_cache" != 1; then
7134 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7135 fi
7136
7137 if test "$wxUSE_POSTSCRIPT" = yes; then
7138 echo "$as_me:$LINENO: result: yes" >&5
7139echo "${ECHO_T}yes" >&6
7140 else
7141 echo "$as_me:$LINENO: result: no" >&5
7142echo "${ECHO_T}no" >&6
7143 fi
7144
7145
7146
7147
7148
7149 enablestring=
7150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7151echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7152 no_cache=0
7153 # Check whether --enable-prologio or --disable-prologio was given.
7154if test "${enable_prologio+set}" = set; then
7155 enableval="$enable_prologio"
7156
7157 if test "$enableval" = yes; then
7158 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7159 else
7160 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7161 fi
7162
7163else
7164
7165 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7166 if test "x$LINE" != x ; then
7167 eval "DEFAULT_$LINE"
7168 else
7169 no_cache=1
7170 fi
7171
7172 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7173
7174fi;
7175
7176 eval "$ac_cv_use_prologio"
7177 if test "$no_cache" != 1; then
7178 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7179 fi
7180
7181 if test "$wxUSE_PROLOGIO" = yes; then
7182 echo "$as_me:$LINENO: result: yes" >&5
7183echo "${ECHO_T}yes" >&6
7184 else
7185 echo "$as_me:$LINENO: result: no" >&5
7186echo "${ECHO_T}no" >&6
7187 fi
7188
7189
7190 enablestring=
7191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7192echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7193 no_cache=0
7194 # Check whether --enable-resources or --disable-resources was given.
7195if test "${enable_resources+set}" = set; then
7196 enableval="$enable_resources"
7197
7198 if test "$enableval" = yes; then
7199 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7200 else
7201 ac_cv_use_resources='wxUSE_RESOURCES=no'
7202 fi
7203
7204else
7205
7206 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7207 if test "x$LINE" != x ; then
7208 eval "DEFAULT_$LINE"
7209 else
7210 no_cache=1
7211 fi
7212
7213 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7214
7215fi;
7216
7217 eval "$ac_cv_use_resources"
7218 if test "$no_cache" != 1; then
7219 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7220 fi
7221
7222 if test "$wxUSE_RESOURCES" = yes; then
7223 echo "$as_me:$LINENO: result: yes" >&5
7224echo "${ECHO_T}yes" >&6
7225 else
7226 echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6
7228 fi
7229
7230
7231
7232
7233 enablestring=
7234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7235echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7236 no_cache=0
7237 # Check whether --enable-clipboard or --disable-clipboard was given.
7238if test "${enable_clipboard+set}" = set; then
7239 enableval="$enable_clipboard"
7240
7241 if test "$enableval" = yes; then
7242 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7243 else
7244 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7245 fi
7246
7247else
7248
7249 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7250 if test "x$LINE" != x ; then
7251 eval "DEFAULT_$LINE"
7252 else
7253 no_cache=1
7254 fi
7255
7256 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7257
7258fi;
7259
7260 eval "$ac_cv_use_clipboard"
7261 if test "$no_cache" != 1; then
7262 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7263 fi
7264
7265 if test "$wxUSE_CLIPBOARD" = yes; then
7266 echo "$as_me:$LINENO: result: yes" >&5
7267echo "${ECHO_T}yes" >&6
7268 else
7269 echo "$as_me:$LINENO: result: no" >&5
7270echo "${ECHO_T}no" >&6
7271 fi
7272
7273
7274 enablestring=
7275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7276echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7277 no_cache=0
7278 # Check whether --enable-dnd or --disable-dnd was given.
7279if test "${enable_dnd+set}" = set; then
7280 enableval="$enable_dnd"
7281
7282 if test "$enableval" = yes; then
7283 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7284 else
7285 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7286 fi
7287
7288else
7289
7290 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7291 if test "x$LINE" != x ; then
7292 eval "DEFAULT_$LINE"
7293 else
7294 no_cache=1
7295 fi
7296
7297 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7298
7299fi;
7300
7301 eval "$ac_cv_use_dnd"
7302 if test "$no_cache" != 1; then
7303 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7304 fi
7305
7306 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7307 echo "$as_me:$LINENO: result: yes" >&5
7308echo "${ECHO_T}yes" >&6
7309 else
7310 echo "$as_me:$LINENO: result: no" >&5
7311echo "${ECHO_T}no" >&6
7312 fi
7313
7314
7315 enablestring=
7316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7317echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7318 no_cache=0
7319 # Check whether --enable-metafile or --disable-metafile was given.
7320if test "${enable_metafile+set}" = set; then
7321 enableval="$enable_metafile"
7322
7323 if test "$enableval" = yes; then
7324 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7325 else
7326 ac_cv_use_metafile='wxUSE_METAFILE=no'
7327 fi
7328
7329else
7330
7331 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7332 if test "x$LINE" != x ; then
7333 eval "DEFAULT_$LINE"
7334 else
7335 no_cache=1
7336 fi
7337
7338 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7339
7340fi;
7341
7342 eval "$ac_cv_use_metafile"
7343 if test "$no_cache" != 1; then
7344 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7345 fi
7346
7347 if test "$wxUSE_METAFILE" = yes; then
7348 echo "$as_me:$LINENO: result: yes" >&5
7349echo "${ECHO_T}yes" >&6
7350 else
7351 echo "$as_me:$LINENO: result: no" >&5
7352echo "${ECHO_T}no" >&6
7353 fi
7354
7355
7356
7357
7358
7359 enablestring=
7360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7361echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7362 no_cache=0
7363 # Check whether --enable-controls or --disable-controls was given.
7364if test "${enable_controls+set}" = set; then
7365 enableval="$enable_controls"
7366
7367 if test "$enableval" = yes; then
7368 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7369 else
7370 ac_cv_use_controls='wxUSE_CONTROLS=no'
7371 fi
7372
7373else
7374
7375 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7376 if test "x$LINE" != x ; then
7377 eval "DEFAULT_$LINE"
7378 else
7379 no_cache=1
7380 fi
7381
7382 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7383
7384fi;
7385
7386 eval "$ac_cv_use_controls"
7387 if test "$no_cache" != 1; then
7388 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7389 fi
7390
7391 if test "$wxUSE_CONTROLS" = yes; then
7392 echo "$as_me:$LINENO: result: yes" >&5
7393echo "${ECHO_T}yes" >&6
7394 else
7395 echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6
7397 fi
7398
7399
7400if test "$wxUSE_CONTROLS" = "yes"; then
7401 DEFAULT_wxUSE_ACCEL=yes
7402 DEFAULT_wxUSE_BMPBUTTON=yes
7403 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7404 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7405 DEFAULT_wxUSE_CARET=yes
7406 DEFAULT_wxUSE_COMBOBOX=yes
7407 DEFAULT_wxUSE_CHECKBOX=yes
7408 DEFAULT_wxUSE_CHECKLISTBOX=yes
7409 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7410 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7411 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7412 DEFAULT_wxUSE_GAUGE=yes
7413 DEFAULT_wxUSE_GRID=yes
20e34ecc 7414 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7415 DEFAULT_wxUSE_IMAGLIST=yes
7416 DEFAULT_wxUSE_LISTBOOK=yes
7417 DEFAULT_wxUSE_LISTBOX=yes
7418 DEFAULT_wxUSE_LISTCTRL=yes
7419 DEFAULT_wxUSE_NOTEBOOK=yes
7420 DEFAULT_wxUSE_RADIOBOX=yes
7421 DEFAULT_wxUSE_RADIOBTN=yes
7422 DEFAULT_wxUSE_SASH=yes
7423 DEFAULT_wxUSE_SCROLLBAR=yes
7424 DEFAULT_wxUSE_SLIDER=yes
7425 DEFAULT_wxUSE_SPINBTN=yes
7426 DEFAULT_wxUSE_SPINCTRL=yes
7427 DEFAULT_wxUSE_SPLITTER=yes
7428 DEFAULT_wxUSE_STATBMP=yes
7429 DEFAULT_wxUSE_STATBOX=yes
7430 DEFAULT_wxUSE_STATLINE=yes
7431 DEFAULT_wxUSE_STATUSBAR=yes
7432 DEFAULT_wxUSE_TAB_DIALOG=yes
7433 DEFAULT_wxUSE_TOGGLEBTN=yes
7434 DEFAULT_wxUSE_TOOLBAR=yes
7435 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7436 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7437 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7438 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
7439 DEFAULT_wxUSE_TREECTRL=yes
7440 DEFAULT_wxUSE_POPUPWIN=yes
7441 DEFAULT_wxUSE_TIPWINDOW=yes
7442elif test "$wxUSE_CONTROLS" = "no"; then
7443 DEFAULT_wxUSE_ACCEL=no
7444 DEFAULT_wxUSE_BMPBUTTON=no
7445 DEFAULT_wxUSE_BUTTON=no
7446 DEFAULT_wxUSE_CALCTRL=no
7447 DEFAULT_wxUSE_CARET=no
7448 DEFAULT_wxUSE_COMBOBOX=no
7449 DEFAULT_wxUSE_CHECKBOX=no
7450 DEFAULT_wxUSE_CHECKLISTBOX=no
7451 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7452 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7453 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7454 DEFAULT_wxUSE_GAUGE=no
7455 DEFAULT_wxUSE_GRID=no
20e34ecc 7456 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7457 DEFAULT_wxUSE_IMAGLIST=no
7458 DEFAULT_wxUSE_LISTBOOK=no
7459 DEFAULT_wxUSE_LISTBOX=no
7460 DEFAULT_wxUSE_LISTCTRL=no
7461 DEFAULT_wxUSE_NOTEBOOK=no
7462 DEFAULT_wxUSE_RADIOBOX=no
7463 DEFAULT_wxUSE_RADIOBTN=no
7464 DEFAULT_wxUSE_SASH=no
7465 DEFAULT_wxUSE_SCROLLBAR=no
7466 DEFAULT_wxUSE_SLIDER=no
7467 DEFAULT_wxUSE_SPINBTN=no
7468 DEFAULT_wxUSE_SPINCTRL=no
7469 DEFAULT_wxUSE_SPLITTER=no
7470 DEFAULT_wxUSE_STATBMP=no
7471 DEFAULT_wxUSE_STATBOX=no
7472 DEFAULT_wxUSE_STATLINE=no
7473 DEFAULT_wxUSE_STATUSBAR=no
7474 DEFAULT_wxUSE_TAB_DIALOG=no
7475 DEFAULT_wxUSE_TOGGLEBTN=no
7476 DEFAULT_wxUSE_TOOLBAR=no
7477 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7478 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7479 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7480 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
7481 DEFAULT_wxUSE_TREECTRL=no
7482 DEFAULT_wxUSE_POPUPWIN=no
7483 DEFAULT_wxUSE_TIPWINDOW=no
7484fi
7485
a848cd7e
SC
7486
7487 enablestring=
7488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7489echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7490 no_cache=0
7491 # Check whether --enable-accel or --disable-accel was given.
7492if test "${enable_accel+set}" = set; then
7493 enableval="$enable_accel"
7494
7495 if test "$enableval" = yes; then
7496 ac_cv_use_accel='wxUSE_ACCEL=yes'
7497 else
7498 ac_cv_use_accel='wxUSE_ACCEL=no'
7499 fi
7500
7501else
7502
7503 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7504 if test "x$LINE" != x ; then
7505 eval "DEFAULT_$LINE"
7506 else
7507 no_cache=1
7508 fi
7509
7510 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7511
7512fi;
7513
7514 eval "$ac_cv_use_accel"
7515 if test "$no_cache" != 1; then
7516 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7517 fi
7518
7519 if test "$wxUSE_ACCEL" = yes; then
7520 echo "$as_me:$LINENO: result: yes" >&5
7521echo "${ECHO_T}yes" >&6
7522 else
7523 echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6
7525 fi
7526
7527
7528 enablestring=
7529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7530echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7531 no_cache=0
7532 # Check whether --enable-button or --disable-button was given.
7533if test "${enable_button+set}" = set; then
7534 enableval="$enable_button"
7535
7536 if test "$enableval" = yes; then
7537 ac_cv_use_button='wxUSE_BUTTON=yes'
7538 else
7539 ac_cv_use_button='wxUSE_BUTTON=no'
7540 fi
7541
7542else
7543
7544 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7545 if test "x$LINE" != x ; then
7546 eval "DEFAULT_$LINE"
7547 else
7548 no_cache=1
7549 fi
7550
7551 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7552
7553fi;
7554
7555 eval "$ac_cv_use_button"
7556 if test "$no_cache" != 1; then
7557 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7558 fi
7559
7560 if test "$wxUSE_BUTTON" = yes; then
7561 echo "$as_me:$LINENO: result: yes" >&5
7562echo "${ECHO_T}yes" >&6
7563 else
7564 echo "$as_me:$LINENO: result: no" >&5
7565echo "${ECHO_T}no" >&6
7566 fi
7567
7568
7569 enablestring=
7570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7571echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7572 no_cache=0
7573 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7574if test "${enable_bmpbutton+set}" = set; then
7575 enableval="$enable_bmpbutton"
7576
7577 if test "$enableval" = yes; then
7578 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7579 else
7580 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7581 fi
7582
7583else
7584
7585 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7586 if test "x$LINE" != x ; then
7587 eval "DEFAULT_$LINE"
7588 else
7589 no_cache=1
7590 fi
7591
7592 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7593
7594fi;
7595
7596 eval "$ac_cv_use_bmpbutton"
7597 if test "$no_cache" != 1; then
7598 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7599 fi
7600
7601 if test "$wxUSE_BMPBUTTON" = yes; then
7602 echo "$as_me:$LINENO: result: yes" >&5
7603echo "${ECHO_T}yes" >&6
7604 else
7605 echo "$as_me:$LINENO: result: no" >&5
7606echo "${ECHO_T}no" >&6
7607 fi
7608
7609
7610 enablestring=
7611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7612echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7613 no_cache=0
7614 # Check whether --enable-calendar or --disable-calendar was given.
7615if test "${enable_calendar+set}" = set; then
7616 enableval="$enable_calendar"
7617
7618 if test "$enableval" = yes; then
7619 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7620 else
7621 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7622 fi
7623
7624else
7625
7626 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7627 if test "x$LINE" != x ; then
7628 eval "DEFAULT_$LINE"
7629 else
7630 no_cache=1
7631 fi
7632
7633 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7634
7635fi;
7636
7637 eval "$ac_cv_use_calendar"
7638 if test "$no_cache" != 1; then
7639 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7640 fi
7641
7642 if test "$wxUSE_CALCTRL" = yes; then
7643 echo "$as_me:$LINENO: result: yes" >&5
7644echo "${ECHO_T}yes" >&6
7645 else
7646 echo "$as_me:$LINENO: result: no" >&5
7647echo "${ECHO_T}no" >&6
7648 fi
7649
7650
7651 enablestring=
7652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7653echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7654 no_cache=0
7655 # Check whether --enable-caret or --disable-caret was given.
7656if test "${enable_caret+set}" = set; then
7657 enableval="$enable_caret"
7658
7659 if test "$enableval" = yes; then
7660 ac_cv_use_caret='wxUSE_CARET=yes'
7661 else
7662 ac_cv_use_caret='wxUSE_CARET=no'
7663 fi
7664
7665else
7666
7667 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7668 if test "x$LINE" != x ; then
7669 eval "DEFAULT_$LINE"
7670 else
7671 no_cache=1
7672 fi
7673
7674 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7675
7676fi;
7677
7678 eval "$ac_cv_use_caret"
7679 if test "$no_cache" != 1; then
7680 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7681 fi
7682
7683 if test "$wxUSE_CARET" = yes; then
7684 echo "$as_me:$LINENO: result: yes" >&5
7685echo "${ECHO_T}yes" >&6
7686 else
7687 echo "$as_me:$LINENO: result: no" >&5
7688echo "${ECHO_T}no" >&6
7689 fi
7690
7691
7692 enablestring=
7693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7694echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7695 no_cache=0
7696 # Check whether --enable-checkbox or --disable-checkbox was given.
7697if test "${enable_checkbox+set}" = set; then
7698 enableval="$enable_checkbox"
7699
7700 if test "$enableval" = yes; then
7701 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7702 else
7703 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7704 fi
7705
7706else
7707
7708 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7709 if test "x$LINE" != x ; then
7710 eval "DEFAULT_$LINE"
7711 else
7712 no_cache=1
7713 fi
7714
7715 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7716
7717fi;
7718
7719 eval "$ac_cv_use_checkbox"
7720 if test "$no_cache" != 1; then
7721 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7722 fi
7723
7724 if test "$wxUSE_CHECKBOX" = yes; then
7725 echo "$as_me:$LINENO: result: yes" >&5
7726echo "${ECHO_T}yes" >&6
7727 else
7728 echo "$as_me:$LINENO: result: no" >&5
7729echo "${ECHO_T}no" >&6
7730 fi
7731
7732
7733 enablestring=
7734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7735echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7736 no_cache=0
7737 # Check whether --enable-checklst or --disable-checklst was given.
7738if test "${enable_checklst+set}" = set; then
7739 enableval="$enable_checklst"
7740
7741 if test "$enableval" = yes; then
7742 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7743 else
7744 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7745 fi
7746
7747else
7748
7749 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7750 if test "x$LINE" != x ; then
7751 eval "DEFAULT_$LINE"
7752 else
7753 no_cache=1
7754 fi
7755
7756 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7757
7758fi;
7759
7760 eval "$ac_cv_use_checklst"
7761 if test "$no_cache" != 1; then
7762 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7763 fi
7764
7765 if test "$wxUSE_CHECKLST" = yes; then
7766 echo "$as_me:$LINENO: result: yes" >&5
7767echo "${ECHO_T}yes" >&6
7768 else
7769 echo "$as_me:$LINENO: result: no" >&5
7770echo "${ECHO_T}no" >&6
7771 fi
7772
7773
7774 enablestring=
7775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7776echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7777 no_cache=0
7778 # Check whether --enable-choice or --disable-choice was given.
7779if test "${enable_choice+set}" = set; then
7780 enableval="$enable_choice"
7781
7782 if test "$enableval" = yes; then
7783 ac_cv_use_choice='wxUSE_CHOICE=yes'
7784 else
7785 ac_cv_use_choice='wxUSE_CHOICE=no'
7786 fi
7787
7788else
7789
7790 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7791 if test "x$LINE" != x ; then
7792 eval "DEFAULT_$LINE"
7793 else
7794 no_cache=1
7795 fi
7796
7797 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7798
7799fi;
7800
7801 eval "$ac_cv_use_choice"
7802 if test "$no_cache" != 1; then
7803 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7804 fi
7805
7806 if test "$wxUSE_CHOICE" = yes; then
7807 echo "$as_me:$LINENO: result: yes" >&5
7808echo "${ECHO_T}yes" >&6
7809 else
7810 echo "$as_me:$LINENO: result: no" >&5
7811echo "${ECHO_T}no" >&6
7812 fi
7813
7814
92bbdbcd
WS
7815 enablestring=
7816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7817echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7818 no_cache=0
7819 # Check whether --enable-choicebook or --disable-choicebook was given.
7820if test "${enable_choicebook+set}" = set; then
7821 enableval="$enable_choicebook"
7822
7823 if test "$enableval" = yes; then
7824 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7825 else
7826 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7827 fi
7828
7829else
7830
7831 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7832 if test "x$LINE" != x ; then
7833 eval "DEFAULT_$LINE"
7834 else
7835 no_cache=1
7836 fi
7837
7838 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7839
7840fi;
7841
7842 eval "$ac_cv_use_choicebook"
7843 if test "$no_cache" != 1; then
7844 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7845 fi
7846
7847 if test "$wxUSE_CHOICEBOOK" = yes; then
7848 echo "$as_me:$LINENO: result: yes" >&5
7849echo "${ECHO_T}yes" >&6
7850 else
7851 echo "$as_me:$LINENO: result: no" >&5
7852echo "${ECHO_T}no" >&6
7853 fi
7854
7855
a848cd7e
SC
7856 enablestring=
7857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7858echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7859 no_cache=0
7860 # Check whether --enable-combobox or --disable-combobox was given.
7861if test "${enable_combobox+set}" = set; then
7862 enableval="$enable_combobox"
7863
7864 if test "$enableval" = yes; then
7865 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7866 else
7867 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7868 fi
7869
7870else
7871
7872 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7873 if test "x$LINE" != x ; then
7874 eval "DEFAULT_$LINE"
7875 else
7876 no_cache=1
7877 fi
7878
7879 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7880
7881fi;
7882
7883 eval "$ac_cv_use_combobox"
7884 if test "$no_cache" != 1; then
7885 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7886 fi
7887
7888 if test "$wxUSE_COMBOBOX" = yes; then
7889 echo "$as_me:$LINENO: result: yes" >&5
7890echo "${ECHO_T}yes" >&6
7891 else
7892 echo "$as_me:$LINENO: result: no" >&5
7893echo "${ECHO_T}no" >&6
7894 fi
7895
7896
da98e9be
VZ
7897 enablestring=
7898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7899echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7900 no_cache=0
7901 # Check whether --enable-datepick or --disable-datepick was given.
7902if test "${enable_datepick+set}" = set; then
7903 enableval="$enable_datepick"
7904
7905 if test "$enableval" = yes; then
7906 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7907 else
7908 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7909 fi
7910
7911else
7912
7913 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7914 if test "x$LINE" != x ; then
7915 eval "DEFAULT_$LINE"
7916 else
7917 no_cache=1
7918 fi
7919
7920 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7921
7922fi;
7923
7924 eval "$ac_cv_use_datepick"
7925 if test "$no_cache" != 1; then
7926 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7927 fi
7928
7929 if test "$wxUSE_DATEPICKCTRL" = yes; then
7930 echo "$as_me:$LINENO: result: yes" >&5
7931echo "${ECHO_T}yes" >&6
7932 else
7933 echo "$as_me:$LINENO: result: no" >&5
7934echo "${ECHO_T}no" >&6
7935 fi
7936
7937
a848cd7e
SC
7938 enablestring=
7939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7940echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7941 no_cache=0
7942 # Check whether --enable-display or --disable-display was given.
7943if test "${enable_display+set}" = set; then
7944 enableval="$enable_display"
7945
7946 if test "$enableval" = yes; then
7947 ac_cv_use_display='wxUSE_DISPLAY=yes'
7948 else
7949 ac_cv_use_display='wxUSE_DISPLAY=no'
7950 fi
7951
7952else
7953
7954 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7955 if test "x$LINE" != x ; then
7956 eval "DEFAULT_$LINE"
7957 else
7958 no_cache=1
7959 fi
7960
7961 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7962
7963fi;
7964
7965 eval "$ac_cv_use_display"
7966 if test "$no_cache" != 1; then
7967 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7968 fi
7969
7970 if test "$wxUSE_DISPLAY" = yes; then
7971 echo "$as_me:$LINENO: result: yes" >&5
7972echo "${ECHO_T}yes" >&6
7973 else
7974 echo "$as_me:$LINENO: result: no" >&5
7975echo "${ECHO_T}no" >&6
7976 fi
7977
7978
7979 enablestring=
7980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7981echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7982 no_cache=0
7983 # Check whether --enable-gauge or --disable-gauge was given.
7984if test "${enable_gauge+set}" = set; then
7985 enableval="$enable_gauge"
7986
7987 if test "$enableval" = yes; then
7988 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7989 else
7990 ac_cv_use_gauge='wxUSE_GAUGE=no'
7991 fi
7992
7993else
7994
7995 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7996 if test "x$LINE" != x ; then
7997 eval "DEFAULT_$LINE"
7998 else
7999 no_cache=1
8000 fi
8001
8002 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8003
8004fi;
8005
8006 eval "$ac_cv_use_gauge"
8007 if test "$no_cache" != 1; then
8008 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8009 fi
8010
8011 if test "$wxUSE_GAUGE" = yes; then
8012 echo "$as_me:$LINENO: result: yes" >&5
8013echo "${ECHO_T}yes" >&6
8014 else
8015 echo "$as_me:$LINENO: result: no" >&5
8016echo "${ECHO_T}no" >&6
8017 fi
8018
8019
8020 enablestring=
8021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8022echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8023 no_cache=0
8024 # Check whether --enable-grid or --disable-grid was given.
8025if test "${enable_grid+set}" = set; then
8026 enableval="$enable_grid"
8027
8028 if test "$enableval" = yes; then
8029 ac_cv_use_grid='wxUSE_GRID=yes'
8030 else
8031 ac_cv_use_grid='wxUSE_GRID=no'
8032 fi
8033
8034else
8035
8036 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8037 if test "x$LINE" != x ; then
8038 eval "DEFAULT_$LINE"
8039 else
8040 no_cache=1
8041 fi
8042
8043 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8044
8045fi;
8046
8047 eval "$ac_cv_use_grid"
8048 if test "$no_cache" != 1; then
8049 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8050 fi
8051
8052 if test "$wxUSE_GRID" = yes; then
8053 echo "$as_me:$LINENO: result: yes" >&5
8054echo "${ECHO_T}yes" >&6
8055 else
8056 echo "$as_me:$LINENO: result: no" >&5
8057echo "${ECHO_T}no" >&6
8058 fi
8059
8060
20e34ecc
RR
8061 enablestring=
8062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8063echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8064 no_cache=0
8065 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8066if test "${enable_dataviewctrl+set}" = set; then
8067 enableval="$enable_dataviewctrl"
8068
8069 if test "$enableval" = yes; then
8070 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8071 else
8072 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8073 fi
8074
8075else
8076
8077 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8078 if test "x$LINE" != x ; then
8079 eval "DEFAULT_$LINE"
8080 else
8081 no_cache=1
8082 fi
8083
8084 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8085
8086fi;
8087
8088 eval "$ac_cv_use_dataviewctrl"
8089 if test "$no_cache" != 1; then
8090 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8091 fi
8092
8093 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8094 echo "$as_me:$LINENO: result: yes" >&5
8095echo "${ECHO_T}yes" >&6
8096 else
8097 echo "$as_me:$LINENO: result: no" >&5
8098echo "${ECHO_T}no" >&6
8099 fi
8100
8101
a848cd7e
SC
8102 enablestring=
8103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8104echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8105 no_cache=0
8106 # Check whether --enable-imaglist or --disable-imaglist was given.
8107if test "${enable_imaglist+set}" = set; then
8108 enableval="$enable_imaglist"
8109
8110 if test "$enableval" = yes; then
8111 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8112 else
8113 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8114 fi
8115
8116else
8117
8118 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8119 if test "x$LINE" != x ; then
8120 eval "DEFAULT_$LINE"
8121 else
8122 no_cache=1
8123 fi
8124
8125 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8126
8127fi;
8128
8129 eval "$ac_cv_use_imaglist"
8130 if test "$no_cache" != 1; then
8131 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8132 fi
8133
8134 if test "$wxUSE_IMAGLIST" = yes; then
8135 echo "$as_me:$LINENO: result: yes" >&5
8136echo "${ECHO_T}yes" >&6
8137 else
8138 echo "$as_me:$LINENO: result: no" >&5
8139echo "${ECHO_T}no" >&6
8140 fi
8141
8142
8143 enablestring=
8144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8145echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8146 no_cache=0
8147 # Check whether --enable-listbook or --disable-listbook was given.
8148if test "${enable_listbook+set}" = set; then
8149 enableval="$enable_listbook"
8150
8151 if test "$enableval" = yes; then
8152 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8153 else
8154 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8155 fi
8156
8157else
8158
8159 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8160 if test "x$LINE" != x ; then
8161 eval "DEFAULT_$LINE"
8162 else
8163 no_cache=1
8164 fi
8165
8166 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8167
8168fi;
8169
8170 eval "$ac_cv_use_listbook"
8171 if test "$no_cache" != 1; then
8172 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8173 fi
8174
8175 if test "$wxUSE_LISTBOOK" = yes; then
8176 echo "$as_me:$LINENO: result: yes" >&5
8177echo "${ECHO_T}yes" >&6
8178 else
8179 echo "$as_me:$LINENO: result: no" >&5
8180echo "${ECHO_T}no" >&6
8181 fi
8182
8183
8184 enablestring=
8185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8186echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8187 no_cache=0
8188 # Check whether --enable-listbox or --disable-listbox was given.
8189if test "${enable_listbox+set}" = set; then
8190 enableval="$enable_listbox"
8191
8192 if test "$enableval" = yes; then
8193 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8194 else
8195 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8196 fi
8197
8198else
8199
8200 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8201 if test "x$LINE" != x ; then
8202 eval "DEFAULT_$LINE"
8203 else
8204 no_cache=1
8205 fi
8206
8207 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8208
8209fi;
8210
8211 eval "$ac_cv_use_listbox"
8212 if test "$no_cache" != 1; then
8213 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8214 fi
8215
8216 if test "$wxUSE_LISTBOX" = yes; then
8217 echo "$as_me:$LINENO: result: yes" >&5
8218echo "${ECHO_T}yes" >&6
8219 else
8220 echo "$as_me:$LINENO: result: no" >&5
8221echo "${ECHO_T}no" >&6
8222 fi
8223
8224
8225 enablestring=
8226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8227echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8228 no_cache=0
8229 # Check whether --enable-listctrl or --disable-listctrl was given.
8230if test "${enable_listctrl+set}" = set; then
8231 enableval="$enable_listctrl"
8232
8233 if test "$enableval" = yes; then
8234 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8235 else
8236 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8237 fi
8238
8239else
8240
8241 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8242 if test "x$LINE" != x ; then
8243 eval "DEFAULT_$LINE"
8244 else
8245 no_cache=1
8246 fi
8247
8248 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8249
8250fi;
8251
8252 eval "$ac_cv_use_listctrl"
8253 if test "$no_cache" != 1; then
8254 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8255 fi
8256
8257 if test "$wxUSE_LISTCTRL" = yes; then
8258 echo "$as_me:$LINENO: result: yes" >&5
8259echo "${ECHO_T}yes" >&6
8260 else
8261 echo "$as_me:$LINENO: result: no" >&5
8262echo "${ECHO_T}no" >&6
8263 fi
8264
8265
8266 enablestring=
8267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8268echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8269 no_cache=0
8270 # Check whether --enable-notebook or --disable-notebook was given.
8271if test "${enable_notebook+set}" = set; then
8272 enableval="$enable_notebook"
8273
8274 if test "$enableval" = yes; then
8275 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8276 else
8277 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8278 fi
8279
8280else
8281
8282 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8283 if test "x$LINE" != x ; then
8284 eval "DEFAULT_$LINE"
8285 else
8286 no_cache=1
8287 fi
8288
8289 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8290
8291fi;
8292
8293 eval "$ac_cv_use_notebook"
8294 if test "$no_cache" != 1; then
8295 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8296 fi
8297
8298 if test "$wxUSE_NOTEBOOK" = yes; then
8299 echo "$as_me:$LINENO: result: yes" >&5
8300echo "${ECHO_T}yes" >&6
8301 else
8302 echo "$as_me:$LINENO: result: no" >&5
8303echo "${ECHO_T}no" >&6
8304 fi
8305
8306
8307 enablestring=
8308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8309echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8310 no_cache=0
8311 # Check whether --enable-radiobox or --disable-radiobox was given.
8312if test "${enable_radiobox+set}" = set; then
8313 enableval="$enable_radiobox"
8314
8315 if test "$enableval" = yes; then
8316 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8317 else
8318 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8319 fi
8320
8321else
8322
8323 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8324 if test "x$LINE" != x ; then
8325 eval "DEFAULT_$LINE"
8326 else
8327 no_cache=1
8328 fi
8329
8330 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8331
8332fi;
8333
8334 eval "$ac_cv_use_radiobox"
8335 if test "$no_cache" != 1; then
8336 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8337 fi
8338
8339 if test "$wxUSE_RADIOBOX" = yes; then
8340 echo "$as_me:$LINENO: result: yes" >&5
8341echo "${ECHO_T}yes" >&6
8342 else
8343 echo "$as_me:$LINENO: result: no" >&5
8344echo "${ECHO_T}no" >&6
8345 fi
8346
8347
8348 enablestring=
8349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8350echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8351 no_cache=0
8352 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8353if test "${enable_radiobtn+set}" = set; then
8354 enableval="$enable_radiobtn"
8355
8356 if test "$enableval" = yes; then
8357 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8358 else
8359 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8360 fi
8361
8362else
8363
8364 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8365 if test "x$LINE" != x ; then
8366 eval "DEFAULT_$LINE"
8367 else
8368 no_cache=1
8369 fi
8370
8371 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8372
8373fi;
8374
8375 eval "$ac_cv_use_radiobtn"
8376 if test "$no_cache" != 1; then
8377 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8378 fi
8379
8380 if test "$wxUSE_RADIOBTN" = yes; then
8381 echo "$as_me:$LINENO: result: yes" >&5
8382echo "${ECHO_T}yes" >&6
8383 else
8384 echo "$as_me:$LINENO: result: no" >&5
8385echo "${ECHO_T}no" >&6
8386 fi
8387
8388
8389 enablestring=
8390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8391echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8392 no_cache=0
8393 # Check whether --enable-sash or --disable-sash was given.
8394if test "${enable_sash+set}" = set; then
8395 enableval="$enable_sash"
8396
8397 if test "$enableval" = yes; then
8398 ac_cv_use_sash='wxUSE_SASH=yes'
8399 else
8400 ac_cv_use_sash='wxUSE_SASH=no'
8401 fi
8402
8403else
8404
8405 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8406 if test "x$LINE" != x ; then
8407 eval "DEFAULT_$LINE"
8408 else
8409 no_cache=1
8410 fi
8411
8412 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8413
8414fi;
8415
8416 eval "$ac_cv_use_sash"
8417 if test "$no_cache" != 1; then
8418 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8419 fi
8420
8421 if test "$wxUSE_SASH" = yes; then
8422 echo "$as_me:$LINENO: result: yes" >&5
8423echo "${ECHO_T}yes" >&6
8424 else
8425 echo "$as_me:$LINENO: result: no" >&5
8426echo "${ECHO_T}no" >&6
8427 fi
8428
8429
8430 enablestring=
8431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8432echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8433 no_cache=0
8434 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8435if test "${enable_scrollbar+set}" = set; then
8436 enableval="$enable_scrollbar"
8437
8438 if test "$enableval" = yes; then
8439 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8440 else
8441 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8442 fi
8443
8444else
8445
8446 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8447 if test "x$LINE" != x ; then
8448 eval "DEFAULT_$LINE"
8449 else
8450 no_cache=1
8451 fi
8452
8453 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8454
8455fi;
8456
8457 eval "$ac_cv_use_scrollbar"
8458 if test "$no_cache" != 1; then
8459 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8460 fi
8461
8462 if test "$wxUSE_SCROLLBAR" = yes; then
8463 echo "$as_me:$LINENO: result: yes" >&5
8464echo "${ECHO_T}yes" >&6
8465 else
8466 echo "$as_me:$LINENO: result: no" >&5
8467echo "${ECHO_T}no" >&6
8468 fi
8469
8470
8471 enablestring=
8472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8473echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8474 no_cache=0
8475 # Check whether --enable-slider or --disable-slider was given.
8476if test "${enable_slider+set}" = set; then
8477 enableval="$enable_slider"
8478
8479 if test "$enableval" = yes; then
8480 ac_cv_use_slider='wxUSE_SLIDER=yes'
8481 else
8482 ac_cv_use_slider='wxUSE_SLIDER=no'
8483 fi
8484
8485else
8486
8487 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8488 if test "x$LINE" != x ; then
8489 eval "DEFAULT_$LINE"
8490 else
8491 no_cache=1
8492 fi
8493
8494 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8495
8496fi;
8497
8498 eval "$ac_cv_use_slider"
8499 if test "$no_cache" != 1; then
8500 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8501 fi
8502
8503 if test "$wxUSE_SLIDER" = yes; then
8504 echo "$as_me:$LINENO: result: yes" >&5
8505echo "${ECHO_T}yes" >&6
8506 else
8507 echo "$as_me:$LINENO: result: no" >&5
8508echo "${ECHO_T}no" >&6
8509 fi
8510
8511
8512 enablestring=
8513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8514echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8515 no_cache=0
8516 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8517if test "${enable_spinbtn+set}" = set; then
8518 enableval="$enable_spinbtn"
8519
8520 if test "$enableval" = yes; then
8521 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8522 else
8523 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8524 fi
8525
8526else
8527
8528 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8529 if test "x$LINE" != x ; then
8530 eval "DEFAULT_$LINE"
8531 else
8532 no_cache=1
8533 fi
8534
8535 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8536
8537fi;
8538
8539 eval "$ac_cv_use_spinbtn"
8540 if test "$no_cache" != 1; then
8541 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8542 fi
8543
8544 if test "$wxUSE_SPINBTN" = yes; then
8545 echo "$as_me:$LINENO: result: yes" >&5
8546echo "${ECHO_T}yes" >&6
8547 else
8548 echo "$as_me:$LINENO: result: no" >&5
8549echo "${ECHO_T}no" >&6
8550 fi
8551
8552
8553 enablestring=
8554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8555echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8556 no_cache=0
8557 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8558if test "${enable_spinctrl+set}" = set; then
8559 enableval="$enable_spinctrl"
8560
8561 if test "$enableval" = yes; then
8562 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8563 else
8564 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8565 fi
8566
8567else
8568
8569 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8570 if test "x$LINE" != x ; then
8571 eval "DEFAULT_$LINE"
8572 else
8573 no_cache=1
8574 fi
8575
8576 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8577
8578fi;
8579
8580 eval "$ac_cv_use_spinctrl"
8581 if test "$no_cache" != 1; then
8582 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8583 fi
8584
8585 if test "$wxUSE_SPINCTRL" = yes; then
8586 echo "$as_me:$LINENO: result: yes" >&5
8587echo "${ECHO_T}yes" >&6
8588 else
8589 echo "$as_me:$LINENO: result: no" >&5
8590echo "${ECHO_T}no" >&6
8591 fi
8592
8593
8594 enablestring=
8595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8596echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8597 no_cache=0
8598 # Check whether --enable-splitter or --disable-splitter was given.
8599if test "${enable_splitter+set}" = set; then
8600 enableval="$enable_splitter"
8601
8602 if test "$enableval" = yes; then
8603 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8604 else
8605 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8606 fi
8607
8608else
8609
8610 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8611 if test "x$LINE" != x ; then
8612 eval "DEFAULT_$LINE"
8613 else
8614 no_cache=1
8615 fi
8616
8617 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8618
8619fi;
8620
8621 eval "$ac_cv_use_splitter"
8622 if test "$no_cache" != 1; then
8623 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8624 fi
8625
8626 if test "$wxUSE_SPLITTER" = yes; then
8627 echo "$as_me:$LINENO: result: yes" >&5
8628echo "${ECHO_T}yes" >&6
8629 else
8630 echo "$as_me:$LINENO: result: no" >&5
8631echo "${ECHO_T}no" >&6
8632 fi
8633
8634
8635 enablestring=
8636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8637echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8638 no_cache=0
8639 # Check whether --enable-statbmp or --disable-statbmp was given.
8640if test "${enable_statbmp+set}" = set; then
8641 enableval="$enable_statbmp"
8642
8643 if test "$enableval" = yes; then
8644 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8645 else
8646 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8647 fi
8648
8649else
8650
8651 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8652 if test "x$LINE" != x ; then
8653 eval "DEFAULT_$LINE"
8654 else
8655 no_cache=1
8656 fi
8657
8658 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8659
8660fi;
8661
8662 eval "$ac_cv_use_statbmp"
8663 if test "$no_cache" != 1; then
8664 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8665 fi
8666
8667 if test "$wxUSE_STATBMP" = yes; then
8668 echo "$as_me:$LINENO: result: yes" >&5
8669echo "${ECHO_T}yes" >&6
8670 else
8671 echo "$as_me:$LINENO: result: no" >&5
8672echo "${ECHO_T}no" >&6
8673 fi
8674
8675
8676 enablestring=
8677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8678echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8679 no_cache=0
8680 # Check whether --enable-statbox or --disable-statbox was given.
8681if test "${enable_statbox+set}" = set; then
8682 enableval="$enable_statbox"
8683
8684 if test "$enableval" = yes; then
8685 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8686 else
8687 ac_cv_use_statbox='wxUSE_STATBOX=no'
8688 fi
8689
8690else
8691
8692 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8693 if test "x$LINE" != x ; then
8694 eval "DEFAULT_$LINE"
8695 else
8696 no_cache=1
8697 fi
8698
8699 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8700
8701fi;
8702
8703 eval "$ac_cv_use_statbox"
8704 if test "$no_cache" != 1; then
8705 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8706 fi
8707
8708 if test "$wxUSE_STATBOX" = yes; then
8709 echo "$as_me:$LINENO: result: yes" >&5
8710echo "${ECHO_T}yes" >&6
8711 else
8712 echo "$as_me:$LINENO: result: no" >&5
8713echo "${ECHO_T}no" >&6
8714 fi
8715
8716
8717 enablestring=
8718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8719echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8720 no_cache=0
8721 # Check whether --enable-statline or --disable-statline was given.
8722if test "${enable_statline+set}" = set; then
8723 enableval="$enable_statline"
8724
8725 if test "$enableval" = yes; then
8726 ac_cv_use_statline='wxUSE_STATLINE=yes'
8727 else
8728 ac_cv_use_statline='wxUSE_STATLINE=no'
8729 fi
8730
8731else
8732
8733 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8734 if test "x$LINE" != x ; then
8735 eval "DEFAULT_$LINE"
8736 else
8737 no_cache=1
8738 fi
8739
8740 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8741
8742fi;
8743
8744 eval "$ac_cv_use_statline"
8745 if test "$no_cache" != 1; then
8746 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8747 fi
8748
8749 if test "$wxUSE_STATLINE" = yes; then
8750 echo "$as_me:$LINENO: result: yes" >&5
8751echo "${ECHO_T}yes" >&6
8752 else
8753 echo "$as_me:$LINENO: result: no" >&5
8754echo "${ECHO_T}no" >&6
8755 fi
8756
8757
8758 enablestring=
8759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8760echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8761 no_cache=0
8762 # Check whether --enable-stattext or --disable-stattext was given.
8763if test "${enable_stattext+set}" = set; then
8764 enableval="$enable_stattext"
8765
8766 if test "$enableval" = yes; then
8767 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8768 else
8769 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8770 fi
8771
8772else
8773
8774 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8775 if test "x$LINE" != x ; then
8776 eval "DEFAULT_$LINE"
8777 else
8778 no_cache=1
8779 fi
8780
8781 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8782
8783fi;
8784
8785 eval "$ac_cv_use_stattext"
8786 if test "$no_cache" != 1; then
8787 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8788 fi
8789
8790 if test "$wxUSE_STATTEXT" = yes; then
8791 echo "$as_me:$LINENO: result: yes" >&5
8792echo "${ECHO_T}yes" >&6
8793 else
8794 echo "$as_me:$LINENO: result: no" >&5
8795echo "${ECHO_T}no" >&6
8796 fi
8797
8798
8799 enablestring=
8800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8801echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8802 no_cache=0
8803 # Check whether --enable-statusbar or --disable-statusbar was given.
8804if test "${enable_statusbar+set}" = set; then
8805 enableval="$enable_statusbar"
8806
8807 if test "$enableval" = yes; then
8808 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8809 else
8810 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8811 fi
8812
8813else
8814
8815 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8816 if test "x$LINE" != x ; then
8817 eval "DEFAULT_$LINE"
8818 else
8819 no_cache=1
8820 fi
8821
8822 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8823
8824fi;
8825
8826 eval "$ac_cv_use_statusbar"
8827 if test "$no_cache" != 1; then
8828 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8829 fi
8830
8831 if test "$wxUSE_STATUSBAR" = yes; then
8832 echo "$as_me:$LINENO: result: yes" >&5
8833echo "${ECHO_T}yes" >&6
8834 else
8835 echo "$as_me:$LINENO: result: no" >&5
8836echo "${ECHO_T}no" >&6
8837 fi
8838
8839
8840 enablestring=
8841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8842echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8843 no_cache=0
8844 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8845if test "${enable_tabdialog+set}" = set; then
8846 enableval="$enable_tabdialog"
8847
8848 if test "$enableval" = yes; then
8849 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8850 else
8851 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8852 fi
8853
8854else
8855
8856 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8857 if test "x$LINE" != x ; then
8858 eval "DEFAULT_$LINE"
8859 else
8860 no_cache=1
8861 fi
8862
8863 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8864
8865fi;
8866
8867 eval "$ac_cv_use_tabdialog"
8868 if test "$no_cache" != 1; then
8869 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8870 fi
8871
8872 if test "$wxUSE_TABDIALOG" = yes; then
8873 echo "$as_me:$LINENO: result: yes" >&5
8874echo "${ECHO_T}yes" >&6
8875 else
8876 echo "$as_me:$LINENO: result: no" >&5
8877echo "${ECHO_T}no" >&6
8878 fi
8879
8880
8881 enablestring=
8882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8883echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8884 no_cache=0
8885 # Check whether --enable-textctrl or --disable-textctrl was given.
8886if test "${enable_textctrl+set}" = set; then
8887 enableval="$enable_textctrl"
8888
8889 if test "$enableval" = yes; then
8890 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8891 else
8892 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8893 fi
8894
8895else
8896
8897 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8898 if test "x$LINE" != x ; then
8899 eval "DEFAULT_$LINE"
8900 else
8901 no_cache=1
8902 fi
8903
8904 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8905
8906fi;
8907
8908 eval "$ac_cv_use_textctrl"
8909 if test "$no_cache" != 1; then
8910 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8911 fi
8912
8913 if test "$wxUSE_TEXTCTRL" = yes; then
8914 echo "$as_me:$LINENO: result: yes" >&5
8915echo "${ECHO_T}yes" >&6
8916 else
8917 echo "$as_me:$LINENO: result: no" >&5
8918echo "${ECHO_T}no" >&6
8919 fi
8920
8921
8922 enablestring=
8923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8924echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8925 no_cache=0
8926 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8927if test "${enable_togglebtn+set}" = set; then
8928 enableval="$enable_togglebtn"
8929
8930 if test "$enableval" = yes; then
8931 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8932 else
8933 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8934 fi
8935
8936else
8937
8938 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8939 if test "x$LINE" != x ; then
8940 eval "DEFAULT_$LINE"
8941 else
8942 no_cache=1
8943 fi
8944
8945 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8946
8947fi;
8948
8949 eval "$ac_cv_use_togglebtn"
8950 if test "$no_cache" != 1; then
8951 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8952 fi
8953
8954 if test "$wxUSE_TOGGLEBTN" = yes; then
8955 echo "$as_me:$LINENO: result: yes" >&5
8956echo "${ECHO_T}yes" >&6
8957 else
8958 echo "$as_me:$LINENO: result: no" >&5
8959echo "${ECHO_T}no" >&6
8960 fi
8961
8962
8963 enablestring=
8964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8965echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8966 no_cache=0
8967 # Check whether --enable-toolbar or --disable-toolbar was given.
8968if test "${enable_toolbar+set}" = set; then
8969 enableval="$enable_toolbar"
8970
8971 if test "$enableval" = yes; then
8972 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8973 else
8974 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8975 fi
8976
8977else
8978
8979 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8980 if test "x$LINE" != x ; then
8981 eval "DEFAULT_$LINE"
8982 else
8983 no_cache=1
8984 fi
8985
8986 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8987
8988fi;
8989
8990 eval "$ac_cv_use_toolbar"
8991 if test "$no_cache" != 1; then
8992 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8993 fi
8994
8995 if test "$wxUSE_TOOLBAR" = yes; then
8996 echo "$as_me:$LINENO: result: yes" >&5
8997echo "${ECHO_T}yes" >&6
8998 else
8999 echo "$as_me:$LINENO: result: no" >&5
9000echo "${ECHO_T}no" >&6
9001 fi
9002
9003
9004 enablestring=
9005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9006echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9007 no_cache=0
9008 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9009if test "${enable_tbarnative+set}" = set; then
9010 enableval="$enable_tbarnative"
9011
9012 if test "$enableval" = yes; then
9013 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9014 else
9015 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9016 fi
9017
9018else
9019
9020 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9021 if test "x$LINE" != x ; then
9022 eval "DEFAULT_$LINE"
9023 else
9024 no_cache=1
9025 fi
9026
9027 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9028
9029fi;
9030
9031 eval "$ac_cv_use_tbarnative"
9032 if test "$no_cache" != 1; then
9033 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9034 fi
9035
9036 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9037 echo "$as_me:$LINENO: result: yes" >&5
9038echo "${ECHO_T}yes" >&6
9039 else
9040 echo "$as_me:$LINENO: result: no" >&5
9041echo "${ECHO_T}no" >&6
9042 fi
9043
9044
9045 enablestring=
9046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9047echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9048 no_cache=0
9049 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9050if test "${enable_tbarsmpl+set}" = set; then
9051 enableval="$enable_tbarsmpl"
9052
9053 if test "$enableval" = yes; then
9054 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9055 else
9056 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9057 fi
9058
9059else
9060
9061 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9062 if test "x$LINE" != x ; then
9063 eval "DEFAULT_$LINE"
9064 else
9065 no_cache=1
9066 fi
9067
9068 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9069
9070fi;
9071
9072 eval "$ac_cv_use_tbarsmpl"
9073 if test "$no_cache" != 1; then
9074 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9075 fi
9076
9077 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9078 echo "$as_me:$LINENO: result: yes" >&5
9079echo "${ECHO_T}yes" >&6
9080 else
9081 echo "$as_me:$LINENO: result: no" >&5
9082echo "${ECHO_T}no" >&6
9083 fi
9084
9085
0093c2fc
VZ
9086 enablestring=
9087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9088echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9089 no_cache=0
9090 # Check whether --enable-treebook or --disable-treebook was given.
9091if test "${enable_treebook+set}" = set; then
9092 enableval="$enable_treebook"
9093
9094 if test "$enableval" = yes; then
9095 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9096 else
9097 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9098 fi
9099
9100else
9101
9102 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9103 if test "x$LINE" != x ; then
9104 eval "DEFAULT_$LINE"
9105 else
9106 no_cache=1
9107 fi
9108
9109 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9110
9111fi;
9112
9113 eval "$ac_cv_use_treebook"
9114 if test "$no_cache" != 1; then
9115 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9116 fi
9117
9118 if test "$wxUSE_TREEBOOK" = yes; then
9119 echo "$as_me:$LINENO: result: yes" >&5
9120echo "${ECHO_T}yes" >&6
9121 else
9122 echo "$as_me:$LINENO: result: no" >&5
9123echo "${ECHO_T}no" >&6
9124 fi
9125
9126
a848cd7e
SC
9127 enablestring=
9128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9129echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9130 no_cache=0
9131 # Check whether --enable-treectrl or --disable-treectrl was given.
9132if test "${enable_treectrl+set}" = set; then
9133 enableval="$enable_treectrl"
9134
9135 if test "$enableval" = yes; then
9136 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9137 else
9138 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9139 fi
9140
9141else
9142
9143 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9144 if test "x$LINE" != x ; then
9145 eval "DEFAULT_$LINE"
9146 else
9147 no_cache=1
9148 fi
9149
9150 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9151
9152fi;
9153
9154 eval "$ac_cv_use_treectrl"
9155 if test "$no_cache" != 1; then
9156 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9157 fi
9158
9159 if test "$wxUSE_TREECTRL" = yes; then
9160 echo "$as_me:$LINENO: result: yes" >&5
9161echo "${ECHO_T}yes" >&6
9162 else
9163 echo "$as_me:$LINENO: result: no" >&5
9164echo "${ECHO_T}no" >&6
9165 fi
9166
9167
9168 enablestring=
9169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9170echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9171 no_cache=0
9172 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9173if test "${enable_tipwindow+set}" = set; then
9174 enableval="$enable_tipwindow"
9175
9176 if test "$enableval" = yes; then
9177 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9178 else
9179 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9180 fi
9181
9182else
9183
9184 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9185 if test "x$LINE" != x ; then
9186 eval "DEFAULT_$LINE"
9187 else
9188 no_cache=1
9189 fi
9190
9191 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9192
9193fi;
9194
9195 eval "$ac_cv_use_tipwindow"
9196 if test "$no_cache" != 1; then
9197 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9198 fi
9199
9200 if test "$wxUSE_TIPWINDOW" = yes; then
9201 echo "$as_me:$LINENO: result: yes" >&5
9202echo "${ECHO_T}yes" >&6
9203 else
9204 echo "$as_me:$LINENO: result: no" >&5
9205echo "${ECHO_T}no" >&6
9206 fi
9207
9208
9209 enablestring=
9210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9211echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9212 no_cache=0
9213 # Check whether --enable-popupwin or --disable-popupwin was given.
9214if test "${enable_popupwin+set}" = set; then
9215 enableval="$enable_popupwin"
9216
9217 if test "$enableval" = yes; then
9218 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9219 else
9220 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9221 fi
9222
9223else
9224
9225 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9226 if test "x$LINE" != x ; then
9227 eval "DEFAULT_$LINE"
9228 else
9229 no_cache=1
9230 fi
9231
9232 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9233
9234fi;
9235
9236 eval "$ac_cv_use_popupwin"
9237 if test "$no_cache" != 1; then
9238 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9239 fi
9240
9241 if test "$wxUSE_POPUPWIN" = yes; then
9242 echo "$as_me:$LINENO: result: yes" >&5
9243echo "${ECHO_T}yes" >&6
9244 else
9245 echo "$as_me:$LINENO: result: no" >&5
9246echo "${ECHO_T}no" >&6
9247 fi
9248
9249
9250
9251
9252 enablestring=
9253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9254echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9255 no_cache=0
9256 # Check whether --enable-commondlg or --disable-commondlg was given.
9257if test "${enable_commondlg+set}" = set; then
9258 enableval="$enable_commondlg"
9259
9260 if test "$enableval" = yes; then
9261 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9262 else
9263 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9264 fi
9265
9266else
9267
9268 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9269 if test "x$LINE" != x ; then
9270 eval "DEFAULT_$LINE"
9271 else
9272 no_cache=1
9273 fi
9274
9275 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9276
9277fi;
9278
9279 eval "$ac_cv_use_commondlg"
9280 if test "$no_cache" != 1; then
9281 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9282 fi
9283
9284 if test "$wxUSE_COMMONDLGS" = yes; then
9285 echo "$as_me:$LINENO: result: yes" >&5
9286echo "${ECHO_T}yes" >&6
9287 else
9288 echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
9290 fi
9291
9292
9293 enablestring=
9294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9295echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9296 no_cache=0
9297 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9298if test "${enable_choicedlg+set}" = set; then
9299 enableval="$enable_choicedlg"
9300
9301 if test "$enableval" = yes; then
9302 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9303 else
9304 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9305 fi
9306
9307else
9308
9309 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9310 if test "x$LINE" != x ; then
9311 eval "DEFAULT_$LINE"
9312 else
9313 no_cache=1
9314 fi
9315
9316 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9317
9318fi;
9319
9320 eval "$ac_cv_use_choicedlg"
9321 if test "$no_cache" != 1; then
9322 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9323 fi
9324
9325 if test "$wxUSE_CHOICEDLG" = yes; then
9326 echo "$as_me:$LINENO: result: yes" >&5
9327echo "${ECHO_T}yes" >&6
9328 else
9329 echo "$as_me:$LINENO: result: no" >&5
9330echo "${ECHO_T}no" >&6
9331 fi
9332
9333
9334 enablestring=
9335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9336echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9337 no_cache=0
9338 # Check whether --enable-coldlg or --disable-coldlg was given.
9339if test "${enable_coldlg+set}" = set; then
9340 enableval="$enable_coldlg"
9341
9342 if test "$enableval" = yes; then
9343 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9344 else
9345 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9346 fi
9347
9348else
9349
9350 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9351 if test "x$LINE" != x ; then
9352 eval "DEFAULT_$LINE"
9353 else
9354 no_cache=1
9355 fi
9356
9357 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9358
9359fi;
9360
9361 eval "$ac_cv_use_coldlg"
9362 if test "$no_cache" != 1; then
9363 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9364 fi
9365
9366 if test "$wxUSE_COLOURDLG" = yes; then
9367 echo "$as_me:$LINENO: result: yes" >&5
9368echo "${ECHO_T}yes" >&6
9369 else
9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
9372 fi
9373
9374
9375 enablestring=
9376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9377echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9378 no_cache=0
9379 # Check whether --enable-filedlg or --disable-filedlg was given.
9380if test "${enable_filedlg+set}" = set; then
9381 enableval="$enable_filedlg"
9382
9383 if test "$enableval" = yes; then
9384 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9385 else
9386 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9387 fi
9388
9389else
9390
9391 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9392 if test "x$LINE" != x ; then
9393 eval "DEFAULT_$LINE"
9394 else
9395 no_cache=1
9396 fi
9397
9398 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9399
9400fi;
9401
9402 eval "$ac_cv_use_filedlg"
9403 if test "$no_cache" != 1; then
9404 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9405 fi
9406
9407 if test "$wxUSE_FILEDLG" = yes; then
9408 echo "$as_me:$LINENO: result: yes" >&5
9409echo "${ECHO_T}yes" >&6
9410 else
9411 echo "$as_me:$LINENO: result: no" >&5
9412echo "${ECHO_T}no" >&6
9413 fi
9414
9415
9416 enablestring=
9417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9418echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9419 no_cache=0
9420 # Check whether --enable-finddlg or --disable-finddlg was given.
9421if test "${enable_finddlg+set}" = set; then
9422 enableval="$enable_finddlg"
9423
9424 if test "$enableval" = yes; then
9425 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9426 else
9427 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9428 fi
9429
9430else
9431
9432 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9433 if test "x$LINE" != x ; then
9434 eval "DEFAULT_$LINE"
9435 else
9436 no_cache=1
9437 fi
9438
9439 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9440
9441fi;
9442
9443 eval "$ac_cv_use_finddlg"
9444 if test "$no_cache" != 1; then
9445 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9446 fi
9447
9448 if test "$wxUSE_FINDREPLDLG" = yes; then
9449 echo "$as_me:$LINENO: result: yes" >&5
9450echo "${ECHO_T}yes" >&6
9451 else
9452 echo "$as_me:$LINENO: result: no" >&5
9453echo "${ECHO_T}no" >&6
9454 fi
9455
9456
9457 enablestring=
9458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9459echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9460 no_cache=0
9461 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9462if test "${enable_fontdlg+set}" = set; then
9463 enableval="$enable_fontdlg"
9464
9465 if test "$enableval" = yes; then
9466 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9467 else
9468 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9469 fi
9470
9471else
9472
9473 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9474 if test "x$LINE" != x ; then
9475 eval "DEFAULT_$LINE"
9476 else
9477 no_cache=1
9478 fi
9479
9480 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9481
9482fi;
9483
9484 eval "$ac_cv_use_fontdlg"
9485 if test "$no_cache" != 1; then
9486 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9487 fi
9488
9489 if test "$wxUSE_FONTDLG" = yes; then
9490 echo "$as_me:$LINENO: result: yes" >&5
9491echo "${ECHO_T}yes" >&6
9492 else
9493 echo "$as_me:$LINENO: result: no" >&5
9494echo "${ECHO_T}no" >&6
9495 fi
9496
9497
9498 enablestring=
9499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9500echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9501 no_cache=0
9502 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9503if test "${enable_dirdlg+set}" = set; then
9504 enableval="$enable_dirdlg"
9505
9506 if test "$enableval" = yes; then
9507 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9508 else
9509 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9510 fi
9511
9512else
9513
9514 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9515 if test "x$LINE" != x ; then
9516 eval "DEFAULT_$LINE"
9517 else
9518 no_cache=1
9519 fi
9520
9521 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9522
9523fi;
9524
9525 eval "$ac_cv_use_dirdlg"
9526 if test "$no_cache" != 1; then
9527 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9528 fi
9529
9530 if test "$wxUSE_DIRDLG" = yes; then
9531 echo "$as_me:$LINENO: result: yes" >&5
9532echo "${ECHO_T}yes" >&6
9533 else
9534 echo "$as_me:$LINENO: result: no" >&5
9535echo "${ECHO_T}no" >&6
9536 fi
9537
9538
9539 enablestring=
9540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9541echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9542 no_cache=0
9543 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9544if test "${enable_msgdlg+set}" = set; then
9545 enableval="$enable_msgdlg"
9546
9547 if test "$enableval" = yes; then
9548 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9549 else
9550 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9551 fi
9552
9553else
9554
9555 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9556 if test "x$LINE" != x ; then
9557 eval "DEFAULT_$LINE"
9558 else
9559 no_cache=1
9560 fi
9561
9562 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9563
9564fi;
9565
9566 eval "$ac_cv_use_msgdlg"
9567 if test "$no_cache" != 1; then
9568 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9569 fi
9570
9571 if test "$wxUSE_MSGDLG" = yes; then
9572 echo "$as_me:$LINENO: result: yes" >&5
9573echo "${ECHO_T}yes" >&6
9574 else
9575 echo "$as_me:$LINENO: result: no" >&5
9576echo "${ECHO_T}no" >&6
9577 fi
9578
9579
9580 enablestring=
9581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9582echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9583 no_cache=0
9584 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9585if test "${enable_numberdlg+set}" = set; then
9586 enableval="$enable_numberdlg"
9587
9588 if test "$enableval" = yes; then
9589 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9590 else
9591 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9592 fi
9593
9594else
9595
9596 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9597 if test "x$LINE" != x ; then
9598 eval "DEFAULT_$LINE"
9599 else
9600 no_cache=1
9601 fi
9602
9603 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9604
9605fi;
9606
9607 eval "$ac_cv_use_numberdlg"
9608 if test "$no_cache" != 1; then
9609 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9610 fi
9611
9612 if test "$wxUSE_NUMBERDLG" = yes; then
9613 echo "$as_me:$LINENO: result: yes" >&5
9614echo "${ECHO_T}yes" >&6
9615 else
9616 echo "$as_me:$LINENO: result: no" >&5
9617echo "${ECHO_T}no" >&6
9618 fi
9619
9620
9621 enablestring=
9622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9623echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9624 no_cache=0
9625 # Check whether --enable-splash or --disable-splash was given.
9626if test "${enable_splash+set}" = set; then
9627 enableval="$enable_splash"
9628
9629 if test "$enableval" = yes; then
9630 ac_cv_use_splash='wxUSE_SPLASH=yes'
9631 else
9632 ac_cv_use_splash='wxUSE_SPLASH=no'
9633 fi
9634
9635else
9636
9637 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9638 if test "x$LINE" != x ; then
9639 eval "DEFAULT_$LINE"
9640 else
9641 no_cache=1
9642 fi
9643
9644 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9645
9646fi;
9647
9648 eval "$ac_cv_use_splash"
9649 if test "$no_cache" != 1; then
9650 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9651 fi
9652
9653 if test "$wxUSE_SPLASH" = yes; then
9654 echo "$as_me:$LINENO: result: yes" >&5
9655echo "${ECHO_T}yes" >&6
9656 else
9657 echo "$as_me:$LINENO: result: no" >&5
9658echo "${ECHO_T}no" >&6
9659 fi
9660
9661
9662 enablestring=
9663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9664echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9665 no_cache=0
9666 # Check whether --enable-textdlg or --disable-textdlg was given.
9667if test "${enable_textdlg+set}" = set; then
9668 enableval="$enable_textdlg"
9669
9670 if test "$enableval" = yes; then
9671 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9672 else
9673 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9674 fi
9675
9676else
9677
9678 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9679 if test "x$LINE" != x ; then
9680 eval "DEFAULT_$LINE"
9681 else
9682 no_cache=1
9683 fi
9684
9685 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9686
9687fi;
9688
9689 eval "$ac_cv_use_textdlg"
9690 if test "$no_cache" != 1; then
9691 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9692 fi
9693
9694 if test "$wxUSE_TEXTDLG" = yes; then
9695 echo "$as_me:$LINENO: result: yes" >&5
9696echo "${ECHO_T}yes" >&6
9697 else
9698 echo "$as_me:$LINENO: result: no" >&5
9699echo "${ECHO_T}no" >&6
9700 fi
9701
9702
9703 enablestring=
9704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9705echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9706 no_cache=0
9707 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9708if test "${enable_tipdlg+set}" = set; then
9709 enableval="$enable_tipdlg"
9710
9711 if test "$enableval" = yes; then
9712 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9713 else
9714 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9715 fi
9716
9717else
9718
9719 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9720 if test "x$LINE" != x ; then
9721 eval "DEFAULT_$LINE"
9722 else
9723 no_cache=1
9724 fi
9725
9726 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9727
9728fi;
9729
9730 eval "$ac_cv_use_tipdlg"
9731 if test "$no_cache" != 1; then
9732 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9733 fi
9734
9735 if test "$wxUSE_STARTUP_TIPS" = yes; then
9736 echo "$as_me:$LINENO: result: yes" >&5
9737echo "${ECHO_T}yes" >&6
9738 else
9739 echo "$as_me:$LINENO: result: no" >&5
9740echo "${ECHO_T}no" >&6
9741 fi
9742
9743
9744 enablestring=
9745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9746echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9747 no_cache=0
9748 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9749if test "${enable_progressdlg+set}" = set; then
9750 enableval="$enable_progressdlg"
9751
9752 if test "$enableval" = yes; then
9753 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9754 else
9755 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9756 fi
9757
9758else
9759
9760 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9761 if test "x$LINE" != x ; then
9762 eval "DEFAULT_$LINE"
9763 else
9764 no_cache=1
9765 fi
9766
9767 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9768
9769fi;
9770
9771 eval "$ac_cv_use_progressdlg"
9772 if test "$no_cache" != 1; then
9773 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9774 fi
9775
9776 if test "$wxUSE_PROGRESSDLG" = yes; then
9777 echo "$as_me:$LINENO: result: yes" >&5
9778echo "${ECHO_T}yes" >&6
9779 else
9780 echo "$as_me:$LINENO: result: no" >&5
9781echo "${ECHO_T}no" >&6
9782 fi
9783
9784
9785 enablestring=
9786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9787echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9788 no_cache=0
9789 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9790if test "${enable_wizarddlg+set}" = set; then
9791 enableval="$enable_wizarddlg"
9792
9793 if test "$enableval" = yes; then
9794 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9795 else
9796 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9797 fi
9798
9799else
9800
9801 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9802 if test "x$LINE" != x ; then
9803 eval "DEFAULT_$LINE"
9804 else
9805 no_cache=1
9806 fi
9807
9808 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9809
9810fi;
9811
9812 eval "$ac_cv_use_wizarddlg"
9813 if test "$no_cache" != 1; then
9814 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9815 fi
9816
9817 if test "$wxUSE_WIZARDDLG" = yes; then
9818 echo "$as_me:$LINENO: result: yes" >&5
9819echo "${ECHO_T}yes" >&6
9820 else
9821 echo "$as_me:$LINENO: result: no" >&5
9822echo "${ECHO_T}no" >&6
9823 fi
9824
9825
9826
9827
9828 enablestring=
9829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9830echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9831 no_cache=0
9832 # Check whether --enable-menus or --disable-menus was given.
9833if test "${enable_menus+set}" = set; then
9834 enableval="$enable_menus"
9835
9836 if test "$enableval" = yes; then
9837 ac_cv_use_menus='wxUSE_MENUS=yes'
9838 else
9839 ac_cv_use_menus='wxUSE_MENUS=no'
9840 fi
9841
9842else
9843
9844 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9845 if test "x$LINE" != x ; then
9846 eval "DEFAULT_$LINE"
9847 else
9848 no_cache=1
9849 fi
9850
9851 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9852
9853fi;
9854
9855 eval "$ac_cv_use_menus"
9856 if test "$no_cache" != 1; then
9857 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9858 fi
9859
9860 if test "$wxUSE_MENUS" = yes; then
9861 echo "$as_me:$LINENO: result: yes" >&5
9862echo "${ECHO_T}yes" >&6
9863 else
9864 echo "$as_me:$LINENO: result: no" >&5
9865echo "${ECHO_T}no" >&6
9866 fi
9867
9868
9869 enablestring=
9870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9871echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9872 no_cache=0
9873 # Check whether --enable-miniframe or --disable-miniframe was given.
9874if test "${enable_miniframe+set}" = set; then
9875 enableval="$enable_miniframe"
9876
9877 if test "$enableval" = yes; then
9878 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9879 else
9880 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9881 fi
9882
9883else
9884
9885 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9886 if test "x$LINE" != x ; then
9887 eval "DEFAULT_$LINE"
9888 else
9889 no_cache=1
9890 fi
9891
9892 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9893
9894fi;
9895
9896 eval "$ac_cv_use_miniframe"
9897 if test "$no_cache" != 1; then
9898 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9899 fi
9900
9901 if test "$wxUSE_MINIFRAME" = yes; then
9902 echo "$as_me:$LINENO: result: yes" >&5
9903echo "${ECHO_T}yes" >&6
9904 else
9905 echo "$as_me:$LINENO: result: no" >&5
9906echo "${ECHO_T}no" >&6
9907 fi
9908
9909
9910 enablestring=
9911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9912echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9913 no_cache=0
9914 # Check whether --enable-tooltips or --disable-tooltips was given.
9915if test "${enable_tooltips+set}" = set; then
9916 enableval="$enable_tooltips"
9917
9918 if test "$enableval" = yes; then
9919 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9920 else
9921 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9922 fi
9923
9924else
9925
9926 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9927 if test "x$LINE" != x ; then
9928 eval "DEFAULT_$LINE"
9929 else
9930 no_cache=1
9931 fi
9932
9933 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9934
9935fi;
9936
9937 eval "$ac_cv_use_tooltips"
9938 if test "$no_cache" != 1; then
9939 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9940 fi
9941
9942 if test "$wxUSE_TOOLTIPS" = yes; then
9943 echo "$as_me:$LINENO: result: yes" >&5
9944echo "${ECHO_T}yes" >&6
9945 else
9946 echo "$as_me:$LINENO: result: no" >&5
9947echo "${ECHO_T}no" >&6
9948 fi
9949
9950
9951 enablestring=
9952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9953echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9954 no_cache=0
9955 # Check whether --enable-splines or --disable-splines was given.
9956if test "${enable_splines+set}" = set; then
9957 enableval="$enable_splines"
9958
9959 if test "$enableval" = yes; then
9960 ac_cv_use_splines='wxUSE_SPLINES=yes'
9961 else
9962 ac_cv_use_splines='wxUSE_SPLINES=no'
9963 fi
9964
9965else
9966
9967 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9968 if test "x$LINE" != x ; then
9969 eval "DEFAULT_$LINE"
9970 else
9971 no_cache=1
9972 fi
9973
9974 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9975
9976fi;
9977
9978 eval "$ac_cv_use_splines"
9979 if test "$no_cache" != 1; then
9980 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9981 fi
9982
9983 if test "$wxUSE_SPLINES" = yes; then
9984 echo "$as_me:$LINENO: result: yes" >&5
9985echo "${ECHO_T}yes" >&6
9986 else
9987 echo "$as_me:$LINENO: result: no" >&5
9988echo "${ECHO_T}no" >&6
9989 fi
9990
9991
fbe2ca43
SN
9992 enablestring=
9993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9994echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9995 no_cache=0
9996 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9997if test "${enable_mousewheel+set}" = set; then
9998 enableval="$enable_mousewheel"
9999
10000 if test "$enableval" = yes; then
10001 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10002 else
10003 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10004 fi
10005
10006else
10007
10008 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10009 if test "x$LINE" != x ; then
10010 eval "DEFAULT_$LINE"
10011 else
10012 no_cache=1
10013 fi
10014
10015 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10016
10017fi;
10018
10019 eval "$ac_cv_use_mousewheel"
10020 if test "$no_cache" != 1; then
10021 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10022 fi
10023
10024 if test "$wxUSE_MOUSEWHEEL" = yes; then
10025 echo "$as_me:$LINENO: result: yes" >&5
10026echo "${ECHO_T}yes" >&6
10027 else
10028 echo "$as_me:$LINENO: result: no" >&5
10029echo "${ECHO_T}no" >&6
10030 fi
10031
10032
a848cd7e
SC
10033 enablestring=
10034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10035echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10036 no_cache=0
10037 # Check whether --enable-validators or --disable-validators was given.
10038if test "${enable_validators+set}" = set; then
10039 enableval="$enable_validators"
10040
10041 if test "$enableval" = yes; then
10042 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10043 else
10044 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10045 fi
10046
10047else
10048
10049 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10050 if test "x$LINE" != x ; then
10051 eval "DEFAULT_$LINE"
10052 else
10053 no_cache=1
10054 fi
10055
10056 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10057
10058fi;
10059
10060 eval "$ac_cv_use_validators"
10061 if test "$no_cache" != 1; then
10062 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10063 fi
10064
10065 if test "$wxUSE_VALIDATORS" = yes; then
10066 echo "$as_me:$LINENO: result: yes" >&5
10067echo "${ECHO_T}yes" >&6
10068 else
10069 echo "$as_me:$LINENO: result: no" >&5
10070echo "${ECHO_T}no" >&6
10071 fi
10072
10073
10074 enablestring=
10075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10076echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10077 no_cache=0
10078 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10079if test "${enable_busyinfo+set}" = set; then
10080 enableval="$enable_busyinfo"
10081
10082 if test "$enableval" = yes; then
10083 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10084 else
10085 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10086 fi
10087
10088else
10089
10090 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10091 if test "x$LINE" != x ; then
10092 eval "DEFAULT_$LINE"
10093 else
10094 no_cache=1
10095 fi
10096
10097 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10098
10099fi;
10100
10101 eval "$ac_cv_use_busyinfo"
10102 if test "$no_cache" != 1; then
10103 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10104 fi
10105
10106 if test "$wxUSE_BUSYINFO" = yes; then
10107 echo "$as_me:$LINENO: result: yes" >&5
10108echo "${ECHO_T}yes" >&6
10109 else
10110 echo "$as_me:$LINENO: result: no" >&5
10111echo "${ECHO_T}no" >&6
10112 fi
10113
10114
10115 enablestring=
10116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10117echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10118 no_cache=0
10119 # Check whether --enable-joystick or --disable-joystick was given.
10120if test "${enable_joystick+set}" = set; then
10121 enableval="$enable_joystick"
10122
10123 if test "$enableval" = yes; then
10124 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10125 else
10126 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10127 fi
10128
10129else
10130
10131 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10132 if test "x$LINE" != x ; then
10133 eval "DEFAULT_$LINE"
10134 else
10135 no_cache=1
10136 fi
10137
10138 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10139
10140fi;
10141
10142 eval "$ac_cv_use_joystick"
10143 if test "$no_cache" != 1; then
10144 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10145 fi
10146
10147 if test "$wxUSE_JOYSTICK" = yes; then
10148 echo "$as_me:$LINENO: result: yes" >&5
10149echo "${ECHO_T}yes" >&6
10150 else
10151 echo "$as_me:$LINENO: result: no" >&5
10152echo "${ECHO_T}no" >&6
10153 fi
10154
10155
10156 enablestring=
10157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10158echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10159 no_cache=0
10160 # Check whether --enable-metafile or --disable-metafile was given.
10161if test "${enable_metafile+set}" = set; then
10162 enableval="$enable_metafile"
10163
10164 if test "$enableval" = yes; then
10165 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10166 else
10167 ac_cv_use_metafile='wxUSE_METAFILE=no'
10168 fi
10169
10170else
10171
10172 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10173 if test "x$LINE" != x ; then
10174 eval "DEFAULT_$LINE"
10175 else
10176 no_cache=1
10177 fi
10178
10179 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10180
10181fi;
10182
10183 eval "$ac_cv_use_metafile"
10184 if test "$no_cache" != 1; then
10185 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10186 fi
10187
10188 if test "$wxUSE_METAFILE" = yes; then
10189 echo "$as_me:$LINENO: result: yes" >&5
10190echo "${ECHO_T}yes" >&6
10191 else
10192 echo "$as_me:$LINENO: result: no" >&5
10193echo "${ECHO_T}no" >&6
10194 fi
10195
10196
10197 enablestring=
10198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10199echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10200 no_cache=0
10201 # Check whether --enable-dragimage or --disable-dragimage was given.
10202if test "${enable_dragimage+set}" = set; then
10203 enableval="$enable_dragimage"
10204
10205 if test "$enableval" = yes; then
10206 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10207 else
10208 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10209 fi
10210
10211else
10212
10213 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10214 if test "x$LINE" != x ; then
10215 eval "DEFAULT_$LINE"
10216 else
10217 no_cache=1
10218 fi
10219
10220 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10221
10222fi;
10223
10224 eval "$ac_cv_use_dragimage"
10225 if test "$no_cache" != 1; then
10226 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10227 fi
10228
10229 if test "$wxUSE_DRAGIMAGE" = yes; then
10230 echo "$as_me:$LINENO: result: yes" >&5
10231echo "${ECHO_T}yes" >&6
10232 else
10233 echo "$as_me:$LINENO: result: no" >&5
10234echo "${ECHO_T}no" >&6
10235 fi
10236
10237
10238 enablestring=
10239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10240echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10241 no_cache=0
10242 # Check whether --enable-accessibility or --disable-accessibility was given.
10243if test "${enable_accessibility+set}" = set; then
10244 enableval="$enable_accessibility"
10245
10246 if test "$enableval" = yes; then
10247 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10248 else
10249 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10250 fi
10251
10252else
10253
10254 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10255 if test "x$LINE" != x ; then
10256 eval "DEFAULT_$LINE"
10257 else
10258 no_cache=1
10259 fi
10260
10261 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10262
10263fi;
10264
10265 eval "$ac_cv_use_accessibility"
10266 if test "$no_cache" != 1; then
10267 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10268 fi
10269
10270 if test "$wxUSE_ACCESSIBILITY" = yes; then
10271 echo "$as_me:$LINENO: result: yes" >&5
10272echo "${ECHO_T}yes" >&6
10273 else
10274 echo "$as_me:$LINENO: result: no" >&5
10275echo "${ECHO_T}no" >&6
10276 fi
10277
10278
38b4a946
VZ
10279if test "$wxUSE_MSW" = "1"; then
10280
10281 enablestring=
10282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10283echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10284 no_cache=0
10285 # Check whether --enable-dccache or --disable-dccache was given.
10286if test "${enable_dccache+set}" = set; then
10287 enableval="$enable_dccache"
10288
10289 if test "$enableval" = yes; then
10290 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10291 else
10292 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10293 fi
10294
10295else
10296
10297 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10298 if test "x$LINE" != x ; then
10299 eval "DEFAULT_$LINE"
10300 else
10301 no_cache=1
10302 fi
10303
10304 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10305
10306fi;
10307
10308 eval "$ac_cv_use_dccache"
10309 if test "$no_cache" != 1; then
10310 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10311 fi
10312
10313 if test "$wxUSE_DC_CACHEING" = yes; then
10314 echo "$as_me:$LINENO: result: yes" >&5
10315echo "${ECHO_T}yes" >&6
10316 else
10317 echo "$as_me:$LINENO: result: no" >&5
10318echo "${ECHO_T}no" >&6
10319 fi
10320
10321fi
10322
a848cd7e
SC
10323
10324
10325 enablestring=
10326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10327echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10328 no_cache=0
10329 # Check whether --enable-palette or --disable-palette was given.
10330if test "${enable_palette+set}" = set; then
10331 enableval="$enable_palette"
10332
10333 if test "$enableval" = yes; then
10334 ac_cv_use_palette='wxUSE_PALETTE=yes'
10335 else
10336 ac_cv_use_palette='wxUSE_PALETTE=no'
10337 fi
10338
10339else
10340
10341 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10342 if test "x$LINE" != x ; then
10343 eval "DEFAULT_$LINE"
10344 else
10345 no_cache=1
10346 fi
10347
10348 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10349
10350fi;
10351
10352 eval "$ac_cv_use_palette"
10353 if test "$no_cache" != 1; then
10354 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10355 fi
10356
10357 if test "$wxUSE_PALETTE" = yes; then
10358 echo "$as_me:$LINENO: result: yes" >&5
10359echo "${ECHO_T}yes" >&6
10360 else
10361 echo "$as_me:$LINENO: result: no" >&5
10362echo "${ECHO_T}no" >&6
10363 fi
10364
10365
10366 enablestring=
10367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10368echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10369 no_cache=0
10370 # Check whether --enable-image or --disable-image was given.
10371if test "${enable_image+set}" = set; then
10372 enableval="$enable_image"
10373
10374 if test "$enableval" = yes; then
10375 ac_cv_use_image='wxUSE_IMAGE=yes'
10376 else
10377 ac_cv_use_image='wxUSE_IMAGE=no'
10378 fi
10379
10380else
10381
10382 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10383 if test "x$LINE" != x ; then
10384 eval "DEFAULT_$LINE"
10385 else
10386 no_cache=1
10387 fi
10388
10389 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10390
10391fi;
10392
10393 eval "$ac_cv_use_image"
10394 if test "$no_cache" != 1; then
10395 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10396 fi
10397
10398 if test "$wxUSE_IMAGE" = yes; then
10399 echo "$as_me:$LINENO: result: yes" >&5
10400echo "${ECHO_T}yes" >&6
10401 else
10402 echo "$as_me:$LINENO: result: no" >&5
10403echo "${ECHO_T}no" >&6
10404 fi
10405
10406
10407 enablestring=
10408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10409echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10410 no_cache=0
10411 # Check whether --enable-gif or --disable-gif was given.
10412if test "${enable_gif+set}" = set; then
10413 enableval="$enable_gif"
10414
10415 if test "$enableval" = yes; then
10416 ac_cv_use_gif='wxUSE_GIF=yes'
10417 else
10418 ac_cv_use_gif='wxUSE_GIF=no'
10419 fi
10420
10421else
10422
10423 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10424 if test "x$LINE" != x ; then
10425 eval "DEFAULT_$LINE"
10426 else
10427 no_cache=1
10428 fi
10429
10430 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10431
10432fi;
10433
10434 eval "$ac_cv_use_gif"
10435 if test "$no_cache" != 1; then
10436 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10437 fi
10438
10439 if test "$wxUSE_GIF" = yes; then
10440 echo "$as_me:$LINENO: result: yes" >&5
10441echo "${ECHO_T}yes" >&6
10442 else
10443 echo "$as_me:$LINENO: result: no" >&5
10444echo "${ECHO_T}no" >&6
10445 fi
10446
10447
10448 enablestring=
10449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10450echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10451 no_cache=0
10452 # Check whether --enable-pcx or --disable-pcx was given.
10453if test "${enable_pcx+set}" = set; then
10454 enableval="$enable_pcx"
10455
10456 if test "$enableval" = yes; then
10457 ac_cv_use_pcx='wxUSE_PCX=yes'
10458 else
10459 ac_cv_use_pcx='wxUSE_PCX=no'
10460 fi
10461
10462else
10463
10464 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10465 if test "x$LINE" != x ; then
10466 eval "DEFAULT_$LINE"
10467 else
10468 no_cache=1
10469 fi
10470
10471 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10472
10473fi;
10474
10475 eval "$ac_cv_use_pcx"
10476 if test "$no_cache" != 1; then
10477 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10478 fi
10479
10480 if test "$wxUSE_PCX" = yes; then
10481 echo "$as_me:$LINENO: result: yes" >&5
10482echo "${ECHO_T}yes" >&6
10483 else
10484 echo "$as_me:$LINENO: result: no" >&5
10485echo "${ECHO_T}no" >&6
10486 fi
10487
10488
10489 enablestring=
10490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10491echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10492 no_cache=0
10493 # Check whether --enable-iff or --disable-iff was given.
10494if test "${enable_iff+set}" = set; then
10495 enableval="$enable_iff"
10496
10497 if test "$enableval" = yes; then
10498 ac_cv_use_iff='wxUSE_IFF=yes'
10499 else
10500 ac_cv_use_iff='wxUSE_IFF=no'
10501 fi
10502
10503else
10504
10505 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10506 if test "x$LINE" != x ; then
10507 eval "DEFAULT_$LINE"
10508 else
10509 no_cache=1
10510 fi
10511
10512 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10513
10514fi;
10515
10516 eval "$ac_cv_use_iff"
10517 if test "$no_cache" != 1; then
10518 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10519 fi
10520
10521 if test "$wxUSE_IFF" = yes; then
10522 echo "$as_me:$LINENO: result: yes" >&5
10523echo "${ECHO_T}yes" >&6
10524 else
10525 echo "$as_me:$LINENO: result: no" >&5
10526echo "${ECHO_T}no" >&6
10527 fi
10528
10529
10530 enablestring=
10531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10532echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10533 no_cache=0
10534 # Check whether --enable-pnm or --disable-pnm was given.
10535if test "${enable_pnm+set}" = set; then
10536 enableval="$enable_pnm"
10537
10538 if test "$enableval" = yes; then
10539 ac_cv_use_pnm='wxUSE_PNM=yes'
10540 else
10541 ac_cv_use_pnm='wxUSE_PNM=no'
10542 fi
10543
10544else
10545
10546 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10547 if test "x$LINE" != x ; then
10548 eval "DEFAULT_$LINE"
10549 else
10550 no_cache=1
10551 fi
10552
10553 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10554
10555fi;
10556
10557 eval "$ac_cv_use_pnm"
10558 if test "$no_cache" != 1; then
10559 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10560 fi
10561
10562 if test "$wxUSE_PNM" = yes; then
10563 echo "$as_me:$LINENO: result: yes" >&5
10564echo "${ECHO_T}yes" >&6
10565 else
10566 echo "$as_me:$LINENO: result: no" >&5
10567echo "${ECHO_T}no" >&6
10568 fi
10569
10570
10571 enablestring=
10572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10573echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10574 no_cache=0
10575 # Check whether --enable-xpm or --disable-xpm was given.
10576if test "${enable_xpm+set}" = set; then
10577 enableval="$enable_xpm"
10578
10579 if test "$enableval" = yes; then
10580 ac_cv_use_xpm='wxUSE_XPM=yes'
10581 else
10582 ac_cv_use_xpm='wxUSE_XPM=no'
10583 fi
10584
10585else
10586
10587 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10588 if test "x$LINE" != x ; then
10589 eval "DEFAULT_$LINE"
10590 else
10591 no_cache=1
10592 fi
10593
10594 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10595
10596fi;
10597
10598 eval "$ac_cv_use_xpm"
10599 if test "$no_cache" != 1; then
10600 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10601 fi
10602
10603 if test "$wxUSE_XPM" = yes; then
10604 echo "$as_me:$LINENO: result: yes" >&5
10605echo "${ECHO_T}yes" >&6
10606 else
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
10609 fi
10610
10611
10612 enablestring=
10613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10614echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10615 no_cache=0
10616 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10617if test "${enable_ico_cur+set}" = set; then
10618 enableval="$enable_ico_cur"
10619
10620 if test "$enableval" = yes; then
10621 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10622 else
10623 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10624 fi
10625
10626else
10627
10628 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10629 if test "x$LINE" != x ; then
10630 eval "DEFAULT_$LINE"
10631 else
10632 no_cache=1
10633 fi
10634
10635 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10636
10637fi;
10638
10639 eval "$ac_cv_use_ico_cur"
10640 if test "$no_cache" != 1; then
10641 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10642 fi
10643
10644 if test "$wxUSE_ICO_CUR" = yes; then
10645 echo "$as_me:$LINENO: result: yes" >&5
10646echo "${ECHO_T}yes" >&6
10647 else
10648 echo "$as_me:$LINENO: result: no" >&5
10649echo "${ECHO_T}no" >&6
10650 fi
10651
10652
10653fi
10654
10655
10656
ceec2216
RL
10657# Check whether --with-flavour or --without-flavour was given.
10658if test "${with_flavour+set}" = set; then
10659 withval="$with_flavour"
10660 WX_FLAVOUR="$withval"
10661fi;
10662
10663
10664
a848cd7e
SC
10665 enablestring=
10666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10667echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10668 no_cache=0
10669 # Check whether --enable-official_build or --disable-official_build was given.
10670if test "${enable_official_build+set}" = set; then
10671 enableval="$enable_official_build"
10672
10673 if test "$enableval" = yes; then
10674 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10675 else
10676 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10677 fi
10678
10679else
10680
10681 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10682 if test "x$LINE" != x ; then
10683 eval "DEFAULT_$LINE"
10684 else
10685 no_cache=1
10686 fi
10687
10688 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10689
10690fi;
10691
10692 eval "$ac_cv_use_official_build"
10693 if test "$no_cache" != 1; then
10694 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10695 fi
10696
10697 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10698 echo "$as_me:$LINENO: result: yes" >&5
10699echo "${ECHO_T}yes" >&6
10700 else
10701 echo "$as_me:$LINENO: result: no" >&5
10702echo "${ECHO_T}no" >&6
10703 fi
10704
10705# Check whether --enable-vendor or --disable-vendor was given.
10706if test "${enable_vendor+set}" = set; then
10707 enableval="$enable_vendor"
10708 VENDOR="$enableval"
10709fi;
10710if test "x$VENDOR" = "x"; then
10711 VENDOR="custom"
10712fi
10713
a848cd7e
SC
10714
10715
10716
10717 echo "saving argument cache $wx_arg_cache_file"
10718 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10719
10720
10721
10722echo "$as_me:$LINENO: checking for toolkit" >&5
10723echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10724
10725# In Wine, we need to default to MSW, not GTK or MOTIF
10726if test "$wxUSE_WINE" = "yes"; then
10727 DEFAULT_DEFAULT_wxUSE_GTK=0
10728 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10729 DEFAULT_DEFAULT_wxUSE_MSW=1
10730 wxUSE_SHARED=no
10731fi
10732
f597b41c 10733
a848cd7e
SC
10734if test "$wxUSE_GUI" = "yes"; then
10735
10736 if test "$USE_BEOS" = 1; then
10737 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10738echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10739 { (exit 1); exit 1; }; }
10740 fi
10741
10742 if test "$TOOLKIT_GIVEN" = 1; then
10743 for toolkit in `echo $ALL_TOOLKITS`; do
10744 var=wxUSE_$toolkit
10745 eval "value=\$${var}"
f34ca037
MW
10746 if test "x$value" = "xno"; then
10747 eval "$var=0"
10748 elif test "x$value" != "x"; then
10749 eval "$var=1"
10750 fi
10751
10752 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10753 eval "wx${toolkit}_VERSION=$value"
10754 fi
a848cd7e
SC
10755 done
10756 else
10757 for toolkit in `echo $ALL_TOOLKITS`; do
10758 if test "$has_toolkit_in_cache" != 1; then
10759 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10760 else
10761 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10762
10763 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10764 if test "x$version" != "x"; then
10765 eval "wx${toolkit}_VERSION=$version"
10766 fi
a848cd7e
SC
10767 fi
10768 eval "wxUSE_$toolkit=\$${var}"
10769 done
10770 fi
10771
10772 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10773 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10774 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10775
10776 case "${host}" in
10777 *-pc-os2_emx | *-pc-os2-emx )
10778 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10779 esac
10780
10781 case "$NUM_TOOLKITS" in
10782 1)
10783 ;;
10784 0)
10785 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10786echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10787 { (exit 1); exit 1; }; }
10788 ;;
10789 *)
10790 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10791echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10792 { (exit 1); exit 1; }; }
10793 esac
10794
f34ca037
MW
10795 # to be removed when --disable-gtk2 isn't needed
10796 if test "x$wxUSE_GTK2" = "xyes"; then
10797 wxGTK_VERSION=2
10798 elif test "x$wxUSE_GTK2" = "xno"; then
10799 wxGTK_VERSION=1
10800 fi
10801
a848cd7e
SC
10802 for toolkit in `echo $ALL_TOOLKITS`; do
10803 var=wxUSE_$toolkit
10804 eval "value=\$${var}"
10805 if test "x$value" != x; then
10806 cache_var=CACHE_$toolkit
10807 eval "cache=\$${cache_var}"
10808 if test "$cache" = 1; then
10809 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10810 eval "version=\$wx${toolkit}_VERSION"
10811 if test "x$version" != "x"; then
10812 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10813 fi
a848cd7e
SC
10814 fi
10815 if test "$value" = 1; then
10816 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10817 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10818echo "${ECHO_T}$toolkit_echo" >&6
10819 fi
10820 fi
10821 done
10822else
10823 if test "x$host_alias" != "x"; then
10824 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10825echo "${ECHO_T}base ($host_alias hosted) only" >&6
10826 else
10827 echo "$as_me:$LINENO: result: base only" >&5
10828echo "${ECHO_T}base only" >&6
10829 fi
10830fi
10831
10832wants_win32=0
10833doesnt_want_win32=0
10834case "${host}" in
10835 *-*-cygwin*)
10836 if test "$wxUSE_MSW" = 1 ; then
10837 wants_win32=1
7275146d 10838 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10839 else
10840 doesnt_want_win32=1
10841 fi
10842 ;;
10843 *-*-mingw*)
10844 wants_win32=1
10845 ;;
10846esac
10847
10848if test "$wxUSE_WINE" = "yes"; then
10849 wants_win32=1
10850 CC=winegcc
10851 CXX=wineg++
a848cd7e
SC
10852 LDFLAGS_GUI="-mwindows"
10853fi
10854
10855if test "$wants_win32" = 1 ; then
10856 USE_UNIX=0
10857 USE_WIN32=1
10858 cat >>confdefs.h <<\_ACEOF
10859#define __WIN32__ 1
10860_ACEOF
10861
10862 cat >>confdefs.h <<\_ACEOF
10863#define __WIN95__ 1
10864_ACEOF
10865
10866 cat >>confdefs.h <<\_ACEOF
10867#define __WINDOWS__ 1
10868_ACEOF
10869
10870 cat >>confdefs.h <<\_ACEOF
10871#define __GNUWIN32__ 1
10872_ACEOF
10873
10874 cat >>confdefs.h <<\_ACEOF
10875#define STRICT 1
10876_ACEOF
10877
10878 cat >>confdefs.h <<\_ACEOF
10879#define WINVER 0x0400
10880_ACEOF
10881
10882fi
10883if test "$doesnt_want_win32" = 1 ; then
10884 USE_UNIX=1
10885 USE_WIN32=0
10886fi
10887
10888if test "$USE_UNIX" = 1 ; then
10889 wxUSE_UNIX=yes
10890 cat >>confdefs.h <<\_ACEOF
10891#define __UNIX__ 1
10892_ACEOF
10893
10894fi
10895
10896
10897cat >confcache <<\_ACEOF
10898# This file is a shell script that caches the results of configure
10899# tests run on this system so they can be shared between configure
10900# scripts and configure runs, see configure's option --config-cache.
10901# It is not useful on other systems. If it contains results you don't
10902# want to keep, you may remove or edit it.
10903#
10904# config.status only pays attention to the cache file if you give it
10905# the --recheck option to rerun configure.
10906#
10907# `ac_cv_env_foo' variables (set or unset) will be overridden when
10908# loading this file, other *unset* `ac_cv_foo' will be assigned the
10909# following values.
10910
10911_ACEOF
10912
10913# The following way of writing the cache mishandles newlines in values,
10914# but we know of no workaround that is simple, portable, and efficient.
10915# So, don't put newlines in cache variables' values.
10916# Ultrix sh set writes to stderr and can't be redirected directly,
10917# and sets the high bit in the cache file unless we assign to the vars.
10918{
10919 (set) 2>&1 |
10920 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10921 *ac_space=\ *)
10922 # `set' does not quote correctly, so add quotes (double-quote
10923 # substitution turns \\\\ into \\, and sed turns \\ into \).
10924 sed -n \
ac1cb8d3
VS
10925 "s/'/'\\\\''/g;
10926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10927 ;;
10928 *)
10929 # `set' quotes correctly as required by POSIX, so do not add quotes.
10930 sed -n \
ac1cb8d3 10931 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10932 ;;
10933 esac;
10934} |
10935 sed '
10936 t clear
10937 : clear
10938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10939 t end
10940 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10941 : end' >>confcache
10942if diff $cache_file confcache >/dev/null 2>&1; then :; else
10943 if test -w $cache_file; then
10944 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10945 cat confcache >$cache_file
10946 else
10947 echo "not updating unwritable cache $cache_file"
10948 fi
10949fi
10950rm -f confcache
10951
a848cd7e 10952CFLAGS=${CFLAGS:=}
6dcfc289
DE
10953
10954
3006edc0 10955
6dcfc289 10956 ac_ext=c
a848cd7e
SC
10957ac_cpp='$CPP $CPPFLAGS'
10958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10960ac_compiler_gnu=$ac_cv_c_compiler_gnu
10961if test -n "$ac_tool_prefix"; then
10962 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10963set dummy ${ac_tool_prefix}gcc; ac_word=$2
10964echo "$as_me:$LINENO: checking for $ac_word" >&5
10965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10966if test "${ac_cv_prog_CC+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968else
10969 if test -n "$CC"; then
10970 ac_cv_prog_CC="$CC" # Let the user override the test.
10971else
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 break 2
10982 fi
10983done
10984done
10985
10986fi
10987fi
10988CC=$ac_cv_prog_CC
10989if test -n "$CC"; then
10990 echo "$as_me:$LINENO: result: $CC" >&5
10991echo "${ECHO_T}$CC" >&6
10992else
10993 echo "$as_me:$LINENO: result: no" >&5
10994echo "${ECHO_T}no" >&6
10995fi
10996
10997fi
10998if test -z "$ac_cv_prog_CC"; then
10999 ac_ct_CC=$CC
11000 # Extract the first word of "gcc", so it can be a program name with args.
11001set dummy gcc; ac_word=$2
11002echo "$as_me:$LINENO: checking for $ac_word" >&5
11003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11004if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006else
11007 if test -n "$ac_ct_CC"; then
11008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11009else
11010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011for as_dir in $PATH
11012do
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11017 ac_cv_prog_ac_ct_CC="gcc"
11018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11019 break 2
11020 fi
11021done
11022done
11023
11024fi
11025fi
11026ac_ct_CC=$ac_cv_prog_ac_ct_CC
11027if test -n "$ac_ct_CC"; then
11028 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11029echo "${ECHO_T}$ac_ct_CC" >&6
11030else
11031 echo "$as_me:$LINENO: result: no" >&5
11032echo "${ECHO_T}no" >&6
11033fi
11034
11035 CC=$ac_ct_CC
11036else
11037 CC="$ac_cv_prog_CC"
11038fi
11039
11040if test -z "$CC"; then
11041 if test -n "$ac_tool_prefix"; then
11042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11043set dummy ${ac_tool_prefix}cc; ac_word=$2
11044echo "$as_me:$LINENO: checking for $ac_word" >&5
11045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11046if test "${ac_cv_prog_CC+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048else
11049 if test -n "$CC"; then
11050 ac_cv_prog_CC="$CC" # Let the user override the test.
11051else
11052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053for as_dir in $PATH
11054do
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11059 ac_cv_prog_CC="${ac_tool_prefix}cc"
11060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 break 2
11062 fi
11063done
11064done
11065
11066fi
11067fi
11068CC=$ac_cv_prog_CC
11069if test -n "$CC"; then
11070 echo "$as_me:$LINENO: result: $CC" >&5
11071echo "${ECHO_T}$CC" >&6
11072else
11073 echo "$as_me:$LINENO: result: no" >&5
11074echo "${ECHO_T}no" >&6
11075fi
11076
11077fi
11078if test -z "$ac_cv_prog_CC"; then
11079 ac_ct_CC=$CC
11080 # Extract the first word of "cc", so it can be a program name with args.
11081set dummy cc; ac_word=$2
11082echo "$as_me:$LINENO: checking for $ac_word" >&5
11083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086else
11087 if test -n "$ac_ct_CC"; then
11088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11089else
11090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091for as_dir in $PATH
11092do
11093 IFS=$as_save_IFS
11094 test -z "$as_dir" && as_dir=.
11095 for ac_exec_ext in '' $ac_executable_extensions; do
11096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11097 ac_cv_prog_ac_ct_CC="cc"
11098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11099 break 2
11100 fi
11101done
11102done
11103
11104fi
11105fi
11106ac_ct_CC=$ac_cv_prog_ac_ct_CC
11107if test -n "$ac_ct_CC"; then
11108 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11109echo "${ECHO_T}$ac_ct_CC" >&6
11110else
11111 echo "$as_me:$LINENO: result: no" >&5
11112echo "${ECHO_T}no" >&6
11113fi
11114
11115 CC=$ac_ct_CC
11116else
11117 CC="$ac_cv_prog_CC"
11118fi
11119
11120fi
11121if test -z "$CC"; then
11122 # Extract the first word of "cc", so it can be a program name with args.
11123set dummy cc; ac_word=$2
11124echo "$as_me:$LINENO: checking for $ac_word" >&5
11125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11126if test "${ac_cv_prog_CC+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128else
11129 if test -n "$CC"; then
11130 ac_cv_prog_CC="$CC" # Let the user override the test.
11131else
11132 ac_prog_rejected=no
11133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134for as_dir in $PATH
11135do
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11141 ac_prog_rejected=yes
11142 continue
11143 fi
11144 ac_cv_prog_CC="cc"
11145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11146 break 2
11147 fi
11148done
11149done
11150
11151if test $ac_prog_rejected = yes; then
11152 # We found a bogon in the path, so make sure we never use it.
11153 set dummy $ac_cv_prog_CC
11154 shift
11155 if test $# != 0; then
11156 # We chose a different compiler from the bogus one.
11157 # However, it has the same basename, so the bogon will be chosen
11158 # first if we set CC to just the basename; use the full file name.
11159 shift
11160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11161 fi
11162fi
11163fi
11164fi
11165CC=$ac_cv_prog_CC
11166if test -n "$CC"; then
11167 echo "$as_me:$LINENO: result: $CC" >&5
11168echo "${ECHO_T}$CC" >&6
11169else
11170 echo "$as_me:$LINENO: result: no" >&5
11171echo "${ECHO_T}no" >&6
11172fi
11173
11174fi
11175if test -z "$CC"; then
11176 if test -n "$ac_tool_prefix"; then
11177 for ac_prog in cl
11178 do
11179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11181echo "$as_me:$LINENO: checking for $ac_word" >&5
11182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11183if test "${ac_cv_prog_CC+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185else
11186 if test -n "$CC"; then
11187 ac_cv_prog_CC="$CC" # Let the user override the test.
11188else
11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190for as_dir in $PATH
11191do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11198 break 2
11199 fi
11200done
11201done
11202
11203fi
11204fi
11205CC=$ac_cv_prog_CC
11206if test -n "$CC"; then
11207 echo "$as_me:$LINENO: result: $CC" >&5
11208echo "${ECHO_T}$CC" >&6
11209else
11210 echo "$as_me:$LINENO: result: no" >&5
11211echo "${ECHO_T}no" >&6
11212fi
11213
11214 test -n "$CC" && break
11215 done
11216fi
11217if test -z "$CC"; then
11218 ac_ct_CC=$CC
11219 for ac_prog in cl
11220do
11221 # Extract the first word of "$ac_prog", so it can be a program name with args.
11222set dummy $ac_prog; ac_word=$2
11223echo "$as_me:$LINENO: checking for $ac_word" >&5
11224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11225if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11227else
11228 if test -n "$ac_ct_CC"; then
11229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11230else
11231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232for as_dir in $PATH
11233do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238 ac_cv_prog_ac_ct_CC="$ac_prog"
11239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 break 2
11241 fi
11242done
11243done
11244
11245fi
11246fi
11247ac_ct_CC=$ac_cv_prog_ac_ct_CC
11248if test -n "$ac_ct_CC"; then
11249 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11250echo "${ECHO_T}$ac_ct_CC" >&6
11251else
11252 echo "$as_me:$LINENO: result: no" >&5
11253echo "${ECHO_T}no" >&6
11254fi
11255
11256 test -n "$ac_ct_CC" && break
11257done
11258
11259 CC=$ac_ct_CC
11260fi
11261
11262fi
11263
11264
11265test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11266See \`config.log' for more details." >&5
11267echo "$as_me: error: no acceptable C compiler found in \$PATH
11268See \`config.log' for more details." >&2;}
11269 { (exit 1); exit 1; }; }
11270
11271# Provide some information about the compiler.
11272echo "$as_me:$LINENO:" \
11273 "checking for C compiler version" >&5
11274ac_compiler=`set X $ac_compile; echo $2`
11275{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11276 (eval $ac_compiler --version </dev/null >&5) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }
11280{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11281 (eval $ac_compiler -v </dev/null >&5) 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }
11285{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11286 (eval $ac_compiler -V </dev/null >&5) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }
11290
11291cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297
11298int
11299main ()
11300{
11301
11302 ;
11303 return 0;
11304}
11305_ACEOF
11306ac_clean_files_save=$ac_clean_files
11307ac_clean_files="$ac_clean_files a.out a.exe b.out"
11308# Try to create an executable without -o first, disregard a.out.
11309# It will help us diagnose broken compilers, and finding out an intuition
11310# of exeext.
ac1cb8d3
VS
11311echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11312echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11313ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11314if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11315 (eval $ac_link_default) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; then
11319 # Find the output, starting from the most likely. This scheme is
11320# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11321# resort.
11322
11323# Be careful to initialize this variable, since it used to be cached.
11324# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11325ac_cv_exeext=
11326# b.out is created by i960 compilers.
11327for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11328do
11329 test -f "$ac_file" || continue
11330 case $ac_file in
11331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11332 ;;
a848cd7e 11333 conftest.$ac_ext )
ac1cb8d3
VS
11334 # This is the source file.
11335 ;;
a848cd7e 11336 [ab].out )
ac1cb8d3
VS
11337 # We found the default executable, but exeext='' is most
11338 # certainly right.
11339 break;;
a848cd7e 11340 *.* )
ac1cb8d3
VS
11341 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11342 # FIXME: I believe we export ac_cv_exeext for Libtool,
11343 # but it would be cool to find out if it's true. Does anybody
11344 # maintain Libtool? --akim.
11345 export ac_cv_exeext
11346 break;;
a848cd7e 11347 * )
ac1cb8d3 11348 break;;
a848cd7e
SC
11349 esac
11350done
11351else
11352 echo "$as_me: failed program was:" >&5
11353sed 's/^/| /' conftest.$ac_ext >&5
11354
11355{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11356See \`config.log' for more details." >&5
11357echo "$as_me: error: C compiler cannot create executables
11358See \`config.log' for more details." >&2;}
11359 { (exit 77); exit 77; }; }
11360fi
11361
11362ac_exeext=$ac_cv_exeext
11363echo "$as_me:$LINENO: result: $ac_file" >&5
11364echo "${ECHO_T}$ac_file" >&6
11365
11366# Check the compiler produces executables we can run. If not, either
11367# the compiler is broken, or we cross compile.
11368echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11369echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11370# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11371# If not cross compiling, check that we can run a simple program.
11372if test "$cross_compiling" != yes; then
11373 if { ac_try='./$ac_file'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 cross_compiling=no
11380 else
11381 if test "$cross_compiling" = maybe; then
11382 cross_compiling=yes
11383 else
11384 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11385If you meant to cross compile, use \`--host'.
11386See \`config.log' for more details." >&5
11387echo "$as_me: error: cannot run C compiled programs.
11388If you meant to cross compile, use \`--host'.
11389See \`config.log' for more details." >&2;}
11390 { (exit 1); exit 1; }; }
11391 fi
11392 fi
11393fi
11394echo "$as_me:$LINENO: result: yes" >&5
11395echo "${ECHO_T}yes" >&6
11396
11397rm -f a.out a.exe conftest$ac_cv_exeext b.out
11398ac_clean_files=$ac_clean_files_save
11399# Check the compiler produces executables we can run. If not, either
11400# the compiler is broken, or we cross compile.
11401echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11402echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11403echo "$as_me:$LINENO: result: $cross_compiling" >&5
11404echo "${ECHO_T}$cross_compiling" >&6
11405
11406echo "$as_me:$LINENO: checking for suffix of executables" >&5
11407echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11409 (eval $ac_link) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; then
11413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11414# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11415# work properly (i.e., refer to `conftest.exe'), while it won't with
11416# `rm'.
11417for ac_file in conftest.exe conftest conftest.*; do
11418 test -f "$ac_file" || continue
11419 case $ac_file in
11420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11422 export ac_cv_exeext
11423 break;;
a848cd7e
SC
11424 * ) break;;
11425 esac
11426done
11427else
11428 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11429See \`config.log' for more details." >&5
11430echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11431See \`config.log' for more details." >&2;}
11432 { (exit 1); exit 1; }; }
11433fi
11434
11435rm -f conftest$ac_cv_exeext
11436echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11437echo "${ECHO_T}$ac_cv_exeext" >&6
11438
11439rm -f conftest.$ac_ext
11440EXEEXT=$ac_cv_exeext
11441ac_exeext=$EXEEXT
11442echo "$as_me:$LINENO: checking for suffix of object files" >&5
11443echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11444if test "${ac_cv_objext+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446else
11447 cat >conftest.$ac_ext <<_ACEOF
11448/* confdefs.h. */
11449_ACEOF
11450cat confdefs.h >>conftest.$ac_ext
11451cat >>conftest.$ac_ext <<_ACEOF
11452/* end confdefs.h. */
11453
11454int
11455main ()
11456{
11457
11458 ;
11459 return 0;
11460}
11461_ACEOF
11462rm -f conftest.o conftest.obj
11463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11464 (eval $ac_compile) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; then
11468 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11469 case $ac_file in
11470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11471 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11472 break;;
11473 esac
11474done
11475else
11476 echo "$as_me: failed program was:" >&5
11477sed 's/^/| /' conftest.$ac_ext >&5
11478
11479{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11480See \`config.log' for more details." >&5
11481echo "$as_me: error: cannot compute suffix of object files: cannot compile
11482See \`config.log' for more details." >&2;}
11483 { (exit 1); exit 1; }; }
11484fi
11485
11486rm -f conftest.$ac_cv_objext conftest.$ac_ext
11487fi
11488echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11489echo "${ECHO_T}$ac_cv_objext" >&6
11490OBJEXT=$ac_cv_objext
11491ac_objext=$OBJEXT
11492echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11493echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11494if test "${ac_cv_c_compiler_gnu+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497 cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503
11504int
11505main ()
11506{
11507#ifndef __GNUC__
11508 choke me
11509#endif
11510
11511 ;
11512 return 0;
11513}
11514_ACEOF
11515rm -f conftest.$ac_objext
11516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11517 (eval $ac_compile) 2>conftest.er1
a848cd7e 11518 ac_status=$?
ac1cb8d3
VS
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
a848cd7e
SC
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
3565d135
RR
11524 { ac_try='test -z "$ac_c_werror_flag"
11525 || test ! -s conftest.err'
ac1cb8d3
VS
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; } &&
11531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; }; then
11537 ac_compiler_gnu=yes
11538else
11539 echo "$as_me: failed program was:" >&5
11540sed 's/^/| /' conftest.$ac_ext >&5
11541
11542ac_compiler_gnu=no
11543fi
ac1cb8d3 11544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11545ac_cv_c_compiler_gnu=$ac_compiler_gnu
11546
11547fi
11548echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11549echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11550GCC=`test $ac_compiler_gnu = yes && echo yes`
11551ac_test_CFLAGS=${CFLAGS+set}
11552ac_save_CFLAGS=$CFLAGS
8aeeb05c 11553CFLAGS="-g"
a848cd7e
SC
11554echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11555echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11556if test "${ac_cv_prog_cc_g+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558else
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
11565
11566int
11567main ()
11568{
11569
11570 ;
11571 return 0;
11572}
11573_ACEOF
11574rm -f conftest.$ac_objext
11575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11576 (eval $ac_compile) 2>conftest.er1
a848cd7e 11577 ac_status=$?
ac1cb8d3
VS
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
a848cd7e
SC
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
3565d135
RR
11583 { ac_try='test -z "$ac_c_werror_flag"
11584 || test ! -s conftest.err'
ac1cb8d3
VS
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_cv_prog_cc_g=yes
11597else
11598 echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601ac_cv_prog_cc_g=no
11602fi
ac1cb8d3 11603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11604fi
11605echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11606echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11607if test "$ac_test_CFLAGS" = set; then
11608 CFLAGS=$ac_save_CFLAGS
11609elif test $ac_cv_prog_cc_g = yes; then
11610 if test "$GCC" = yes; then
11611 CFLAGS="-g -O2"
11612 else
11613 CFLAGS="-g"
11614 fi
11615else
11616 if test "$GCC" = yes; then
11617 CFLAGS="-O2"
11618 else
11619 CFLAGS=
11620 fi
11621fi
11622echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11623echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11624if test "${ac_cv_prog_cc_stdc+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11626else
11627 ac_cv_prog_cc_stdc=no
11628ac_save_CC=$CC
11629cat >conftest.$ac_ext <<_ACEOF
11630/* confdefs.h. */
11631_ACEOF
11632cat confdefs.h >>conftest.$ac_ext
11633cat >>conftest.$ac_ext <<_ACEOF
11634/* end confdefs.h. */
11635#include <stdarg.h>
11636#include <stdio.h>
11637#include <sys/types.h>
11638#include <sys/stat.h>
11639/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11640struct buf { int x; };
11641FILE * (*rcsopen) (struct buf *, struct stat *, int);
11642static char *e (p, i)
11643 char **p;
11644 int i;
11645{
11646 return p[i];
11647}
11648static char *f (char * (*g) (char **, int), char **p, ...)
11649{
11650 char *s;
11651 va_list v;
11652 va_start (v,p);
11653 s = g (p, va_arg (v,int));
11654 va_end (v);
11655 return s;
11656}
ac1cb8d3
VS
11657
11658/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11659 function prototypes and stuff, but not '\xHH' hex character constants.
11660 These don't provoke an error unfortunately, instead are silently treated
11661 as 'x'. The following induces an error, until -std1 is added to get
11662 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11663 array size at least. It's necessary to write '\x00'==0 to get something
11664 that's true only with -std1. */
11665int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11666
a848cd7e
SC
11667int test (int i, double x);
11668struct s1 {int (*f) (int a);};
11669struct s2 {int (*f) (double a);};
11670int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11671int argc;
11672char **argv;
11673int
11674main ()
11675{
11676return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11677 ;
11678 return 0;
11679}
11680_ACEOF
11681# Don't try gcc -ansi; that turns off useful extensions and
11682# breaks some systems' header files.
11683# AIX -qlanglvl=ansi
11684# Ultrix and OSF/1 -std1
11685# HP-UX 10.20 and later -Ae
11686# HP-UX older versions -Aa -D_HPUX_SOURCE
11687# SVR4 -Xc -D__EXTENSIONS__
11688for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11689do
11690 CC="$ac_save_CC $ac_arg"
11691 rm -f conftest.$ac_objext
11692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11693 (eval $ac_compile) 2>conftest.er1
a848cd7e 11694 ac_status=$?
ac1cb8d3
VS
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
a848cd7e
SC
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
3565d135
RR
11700 { ac_try='test -z "$ac_c_werror_flag"
11701 || test ! -s conftest.err'
ac1cb8d3
VS
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; } &&
11707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 ac_cv_prog_cc_stdc=$ac_arg
11714break
11715else
11716 echo "$as_me: failed program was:" >&5
11717sed 's/^/| /' conftest.$ac_ext >&5
11718
11719fi
ac1cb8d3 11720rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11721done
11722rm -f conftest.$ac_ext conftest.$ac_objext
11723CC=$ac_save_CC
11724
11725fi
11726
11727case "x$ac_cv_prog_cc_stdc" in
11728 x|xno)
11729 echo "$as_me:$LINENO: result: none needed" >&5
11730echo "${ECHO_T}none needed" >&6 ;;
11731 *)
11732 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11733echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11734 CC="$CC $ac_cv_prog_cc_stdc" ;;
11735esac
11736
11737# Some people use a C++ compiler to compile C. Since we use `exit',
11738# in C++ we need to declare it. In case someone uses the same compiler
11739# for both compiling C and C++ we need to have the C++ compiler decide
11740# the declaration of exit, since it's the most demanding environment.
11741cat >conftest.$ac_ext <<_ACEOF
11742#ifndef __cplusplus
11743 choke me
11744#endif
11745_ACEOF
11746rm -f conftest.$ac_objext
11747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11748 (eval $ac_compile) 2>conftest.er1
a848cd7e 11749 ac_status=$?
ac1cb8d3
VS
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
a848cd7e
SC
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
3565d135
RR
11755 { ac_try='test -z "$ac_c_werror_flag"
11756 || test ! -s conftest.err'
ac1cb8d3
VS
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 for ac_declaration in \
ac1cb8d3 11769 '' \
a848cd7e
SC
11770 'extern "C" void std::exit (int) throw (); using std::exit;' \
11771 'extern "C" void std::exit (int); using std::exit;' \
11772 'extern "C" void exit (int) throw ();' \
11773 'extern "C" void exit (int);' \
11774 'void exit (int);'
11775do
11776 cat >conftest.$ac_ext <<_ACEOF
11777/* confdefs.h. */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h. */
de59c161 11782$ac_declaration
ac1cb8d3 11783#include <stdlib.h>
a848cd7e
SC
11784int
11785main ()
11786{
11787exit (42);
11788 ;
11789 return 0;
11790}
11791_ACEOF
11792rm -f conftest.$ac_objext
11793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11794 (eval $ac_compile) 2>conftest.er1
a848cd7e 11795 ac_status=$?
ac1cb8d3
VS
11796 grep -v '^ *+' conftest.er1 >conftest.err
11797 rm -f conftest.er1
11798 cat conftest.err >&5
a848cd7e
SC
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } &&
3565d135
RR
11801 { ac_try='test -z "$ac_c_werror_flag"
11802 || test ! -s conftest.err'
ac1cb8d3
VS
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 :
11815else
11816 echo "$as_me: failed program was:" >&5
11817sed 's/^/| /' conftest.$ac_ext >&5
11818
11819continue
11820fi
ac1cb8d3 11821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11822 cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828$ac_declaration
11829int
11830main ()
11831{
11832exit (42);
11833 ;
11834 return 0;
11835}
11836_ACEOF
11837rm -f conftest.$ac_objext
11838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11839 (eval $ac_compile) 2>conftest.er1
a848cd7e 11840 ac_status=$?
ac1cb8d3
VS
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
a848cd7e
SC
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
3565d135
RR
11846 { ac_try='test -z "$ac_c_werror_flag"
11847 || test ! -s conftest.err'
ac1cb8d3
VS
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; } &&
11853 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 break
11860else
11861 echo "$as_me: failed program was:" >&5
11862sed 's/^/| /' conftest.$ac_ext >&5
11863
11864fi
ac1cb8d3 11865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11866done
11867rm -f conftest*
11868if test -n "$ac_declaration"; then
11869 echo '#ifdef __cplusplus' >>confdefs.h
11870 echo $ac_declaration >>confdefs.h
11871 echo '#endif' >>confdefs.h
11872fi
11873
11874else
11875 echo "$as_me: failed program was:" >&5
11876sed 's/^/| /' conftest.$ac_ext >&5
11877
11878fi
ac1cb8d3 11879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11880ac_ext=c
11881ac_cpp='$CPP $CPPFLAGS'
11882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884ac_compiler_gnu=$ac_cv_c_compiler_gnu
11885
ab0ad5f1
VZ
11886
11887
11888 ac_ext=c
11889ac_cpp='$CPP $CPPFLAGS'
11890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11892ac_compiler_gnu=$ac_cv_c_compiler_gnu
11893
11894 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11895echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11896if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898else
11899 cat >conftest.$ac_ext <<_ACEOF
11900/* confdefs.h. */
11901_ACEOF
11902cat confdefs.h >>conftest.$ac_ext
11903cat >>conftest.$ac_ext <<_ACEOF
11904/* end confdefs.h. */
11905
11906int
11907main ()
11908{
11909
11910 #ifndef __INTEL_COMPILER
11911 choke me
11912 #endif
11913
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918rm -f conftest.$ac_objext
11919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11920 (eval $ac_compile) 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
3565d135
RR
11927 { ac_try='test -z "$ac_c_werror_flag"
11928 || test ! -s conftest.err'
ab0ad5f1
VZ
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest.$ac_objext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11941else
11942 echo "$as_me: failed program was:" >&5
11943sed 's/^/| /' conftest.$ac_ext >&5
11944
11945bakefile_cv_c_compiler___INTEL_COMPILER=no
11946
11947fi
11948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11949
11950
11951fi
11952echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11953echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11954 ac_ext=c
11955ac_cpp='$CPP $CPPFLAGS'
11956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11958ac_compiler_gnu=$ac_cv_c_compiler_gnu
11959
11960 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11961 :; INTELCC=yes
11962 else
11963 :;
11964 fi
11965
11966
11967 if test "x$GCC" != "xyes"; then
3006edc0
VZ
11968 if test "xCC" = "xC"; then
11969 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 11970echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 11971if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973else
11974 cat >conftest.$ac_ext <<_ACEOF
11975/* confdefs.h. */
11976_ACEOF
11977cat confdefs.h >>conftest.$ac_ext
11978cat >>conftest.$ac_ext <<_ACEOF
11979/* end confdefs.h. */
11980
11981int
11982main ()
11983{
11984
11985 ;
11986 return 0;
11987}
11988_ACEOF
11989rm -f conftest.$ac_objext conftest.$ac_ext.o
11990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; then
11995 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11996 case $ac_file in
11997 conftest.$ac_ext.o)
0093c2fc 11998 bakefile_cv_c_exto="-ext o"
480ccd21
DE
11999 ;;
12000 *)
12001 ;;
12002 esac
12003done
12004else
12005 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12006See \`config.log' for more details." >&5
12007echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12008See \`config.log' for more details." >&2;}
12009 { (exit 1); exit 1; }; }
12010
12011fi
12012
12013rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12014
12015fi
0093c2fc
VZ
12016echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12017echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12018if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12019 if test "c" = "c"; then
0093c2fc 12020 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12021 fi
12022 if test "c" = "cxx"; then
0093c2fc 12023 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12024 fi
12025fi
12026
0093c2fc 12027 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12028 unset ac_cv_prog_cc_g
12029 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12030ac_save_CFLAGS=$CFLAGS
8aeeb05c 12031CFLAGS="-g"
480ccd21
DE
12032echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12033echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12034if test "${ac_cv_prog_cc_g+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036else
12037 cat >conftest.$ac_ext <<_ACEOF
12038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
12043
12044int
12045main ()
12046{
12047
12048 ;
12049 return 0;
12050}
12051_ACEOF
12052rm -f conftest.$ac_objext
12053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054 (eval $ac_compile) 2>conftest.er1
12055 ac_status=$?
12056 grep -v '^ *+' conftest.er1 >conftest.err
12057 rm -f conftest.er1
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
3565d135
RR
12061 { ac_try='test -z "$ac_c_werror_flag"
12062 || test ! -s conftest.err'
480ccd21
DE
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; } &&
12068 { ac_try='test -s conftest.$ac_objext'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; }; then
12074 ac_cv_prog_cc_g=yes
12075else
12076 echo "$as_me: failed program was:" >&5
12077sed 's/^/| /' conftest.$ac_ext >&5
12078
12079ac_cv_prog_cc_g=no
12080fi
12081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12082fi
12083echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12084echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12085if test "$ac_test_CFLAGS" = set; then
12086 CFLAGS=$ac_save_CFLAGS
12087elif test $ac_cv_prog_cc_g = yes; then
12088 if test "$GCC" = yes; then
12089 CFLAGS="-g -O2"
12090 else
12091 CFLAGS="-g"
12092 fi
12093else
12094 if test "$GCC" = yes; then
12095 CFLAGS="-O2"
12096 else
12097 CFLAGS=
12098 fi
12099fi
3006edc0 12100 fi
ab0ad5f1 12101 fi
3006edc0
VZ
12102
12103 case `uname -s` in
12104 AIX*)
12105 ac_ext=c
12106ac_cpp='$CPP $CPPFLAGS'
12107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12109ac_compiler_gnu=$ac_cv_c_compiler_gnu
12110
12111echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12112echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12113if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115else
12116 cat >conftest.$ac_ext <<_ACEOF
12117/* confdefs.h. */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h. */
12122
12123int
12124main ()
12125{
12126#ifndef __xlC__
12127 choke me
12128#endif
12129
12130 ;
12131 return 0;
12132}
12133_ACEOF
12134rm -f conftest.$ac_objext
12135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
3565d135
RR
12143 { ac_try='test -z "$ac_c_werror_flag"
12144 || test ! -s conftest.err'
3006edc0
VZ
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
0093c2fc 12156 bakefile_compiler_xlc=yes
3006edc0
VZ
12157else
12158 echo "$as_me: failed program was:" >&5
12159sed 's/^/| /' conftest.$ac_ext >&5
12160
0093c2fc 12161bakefile_compiler_xlc=no
3006edc0
VZ
12162fi
12163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12164 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12165
12166fi
0093c2fc
VZ
12167echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12168echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12169
0093c2fc 12170XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12171ac_ext=c
12172ac_cpp='$CPP $CPPFLAGS'
12173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12175ac_compiler_gnu=$ac_cv_c_compiler_gnu
12176
12177
12178 ;;
12179
12180 Darwin)
12181 ac_ext=c
95986553
DE
12182ac_cpp='$CPP $CPPFLAGS'
12183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185ac_compiler_gnu=$ac_cv_c_compiler_gnu
12186
12187echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12188echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12189if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192 cat >conftest.$ac_ext <<_ACEOF
12193/* confdefs.h. */
12194_ACEOF
12195cat confdefs.h >>conftest.$ac_ext
12196cat >>conftest.$ac_ext <<_ACEOF
12197/* end confdefs.h. */
12198
12199int
12200main ()
12201{
12202#ifndef __MWERKS__
12203 choke me
12204#endif
12205
12206 ;
12207 return 0;
12208}
12209_ACEOF
12210rm -f conftest.$ac_objext
12211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12212 (eval $ac_compile) 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
3565d135
RR
12219 { ac_try='test -z "$ac_c_werror_flag"
12220 || test ! -s conftest.err'
95986553
DE
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; } &&
12226 { ac_try='test -s conftest.$ac_objext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 bakefile_compiler_mwerks=yes
12233else
12234 echo "$as_me: failed program was:" >&5
12235sed 's/^/| /' conftest.$ac_ext >&5
12236
12237bakefile_compiler_mwerks=no
12238fi
12239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12240 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12241
12242fi
12243echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12244echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12245
0e6fa1d9 12246MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12247ac_ext=c
12248ac_cpp='$CPP $CPPFLAGS'
12249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12251ac_compiler_gnu=$ac_cv_c_compiler_gnu
12252
12253
3006edc0 12254 ac_ext=c
9273ffba
DE
12255ac_cpp='$CPP $CPPFLAGS'
12256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12258ac_compiler_gnu=$ac_cv_c_compiler_gnu
12259
12260echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12261echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12262if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264else
12265 cat >conftest.$ac_ext <<_ACEOF
12266/* confdefs.h. */
12267_ACEOF
12268cat confdefs.h >>conftest.$ac_ext
12269cat >>conftest.$ac_ext <<_ACEOF
12270/* end confdefs.h. */
12271
12272int
12273main ()
12274{
12275#ifndef __xlC__
12276 choke me
12277#endif
12278
12279 ;
12280 return 0;
12281}
12282_ACEOF
12283rm -f conftest.$ac_objext
12284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285 (eval $ac_compile) 2>conftest.er1
12286 ac_status=$?
12287 grep -v '^ *+' conftest.er1 >conftest.err
12288 rm -f conftest.er1
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } &&
3565d135
RR
12292 { ac_try='test -z "$ac_c_werror_flag"
12293 || test ! -s conftest.err'
9273ffba
DE
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest.$ac_objext'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
0093c2fc 12305 bakefile_compiler_xlc=yes
9273ffba
DE
12306else
12307 echo "$as_me: failed program was:" >&5
12308sed 's/^/| /' conftest.$ac_ext >&5
12309
0093c2fc 12310bakefile_compiler_xlc=no
9273ffba
DE
12311fi
12312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12313 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12314
12315fi
0093c2fc
VZ
12316echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12317echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12318
0093c2fc 12319XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12320ac_ext=c
12321ac_cpp='$CPP $CPPFLAGS'
12322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12324ac_compiler_gnu=$ac_cv_c_compiler_gnu
12325
12326
3006edc0
VZ
12327 ;;
12328
12329 IRIX*)
a848cd7e 12330
6dcfc289 12331
0ad5d837
VZ
12332 ac_ext=c
12333ac_cpp='$CPP $CPPFLAGS'
12334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12336ac_compiler_gnu=$ac_cv_c_compiler_gnu
12337
12338 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12339echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12340if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342else
12343 cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349
12350int
12351main ()
12352{
12353
12354 #ifndef _SGI_COMPILER_VERSION
12355 choke me
12356 #endif
12357
12358 ;
12359 return 0;
12360}
12361_ACEOF
12362rm -f conftest.$ac_objext
12363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364 (eval $ac_compile) 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } &&
3565d135
RR
12371 { ac_try='test -z "$ac_c_werror_flag"
12372 || test ! -s conftest.err'
0ad5d837
VZ
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest.$ac_objext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12385else
12386 echo "$as_me: failed program was:" >&5
12387sed 's/^/| /' conftest.$ac_ext >&5
12388
12389bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12390
12391fi
12392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12393
12394
12395fi
12396echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12397echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12398 ac_ext=c
12399ac_cpp='$CPP $CPPFLAGS'
12400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12402ac_compiler_gnu=$ac_cv_c_compiler_gnu
12403
12404 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12405 :; SGICC=yes
12406 else
12407 :;
12408 fi
12409
12410
3006edc0
VZ
12411 ;;
12412
0093c2fc 12413 HP-UX*)
3006edc0
VZ
12414
12415
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 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12423echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12424if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12426else
12427 cat >conftest.$ac_ext <<_ACEOF
12428/* confdefs.h. */
12429_ACEOF
12430cat confdefs.h >>conftest.$ac_ext
12431cat >>conftest.$ac_ext <<_ACEOF
12432/* end confdefs.h. */
12433
12434int
12435main ()
12436{
12437
0093c2fc 12438 #ifndef __HP_cc
3006edc0
VZ
12439 choke me
12440 #endif
12441
12442 ;
12443 return 0;
12444}
12445_ACEOF
12446rm -f conftest.$ac_objext
12447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12448 (eval $ac_compile) 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
3565d135
RR
12455 { ac_try='test -z "$ac_c_werror_flag"
12456 || test ! -s conftest.err'
3006edc0
VZ
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try='test -s conftest.$ac_objext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
0093c2fc 12468 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12469else
12470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
0093c2fc 12473bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12474
12475fi
12476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12477
12478
12479fi
0093c2fc
VZ
12480echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12481echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12482 ac_ext=c
12483ac_cpp='$CPP $CPPFLAGS'
12484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12486ac_compiler_gnu=$ac_cv_c_compiler_gnu
12487
0093c2fc
VZ
12488 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12489 :; HPCC=yes
a1aa0349
VZ
12490 else
12491 :;
12492 fi
12493
12494
12495 ;;
12496
0093c2fc 12497 OSF1)
a1aa0349
VZ
12498
12499
12500 ac_ext=c
12501ac_cpp='$CPP $CPPFLAGS'
12502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12504ac_compiler_gnu=$ac_cv_c_compiler_gnu
12505
0093c2fc
VZ
12506 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12507echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12508if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510else
12511 cat >conftest.$ac_ext <<_ACEOF
12512/* confdefs.h. */
12513_ACEOF
12514cat confdefs.h >>conftest.$ac_ext
12515cat >>conftest.$ac_ext <<_ACEOF
12516/* end confdefs.h. */
12517
12518int
12519main ()
12520{
12521
0093c2fc 12522 #ifndef __DECC
a1aa0349
VZ
12523 choke me
12524 #endif
12525
12526 ;
12527 return 0;
12528}
12529_ACEOF
12530rm -f conftest.$ac_objext
12531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12532 (eval $ac_compile) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
3565d135
RR
12539 { ac_try='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
a1aa0349
VZ
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
0093c2fc 12552 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
0093c2fc 12557bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12558
12559fi
12560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12561
12562
12563fi
0093c2fc
VZ
12564echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12565echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12566 ac_ext=c
12567ac_cpp='$CPP $CPPFLAGS'
12568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12570ac_compiler_gnu=$ac_cv_c_compiler_gnu
12571
0093c2fc
VZ
12572 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12573 :; COMPAQCC=yes
12574 else
12575 :;
12576 fi
12577
12578
12579 ;;
12580
12581 SunOS)
12582
12583
12584 ac_ext=c
12585ac_cpp='$CPP $CPPFLAGS'
12586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12588ac_compiler_gnu=$ac_cv_c_compiler_gnu
12589
12590 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12591echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12592if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594else
12595 cat >conftest.$ac_ext <<_ACEOF
12596/* confdefs.h. */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
12600/* end confdefs.h. */
12601
12602int
12603main ()
12604{
12605
12606 #ifndef __SUNPRO_C
12607 choke me
12608 #endif
12609
12610 ;
12611 return 0;
12612}
12613_ACEOF
12614rm -f conftest.$ac_objext
12615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616 (eval $ac_compile) 2>conftest.er1
12617 ac_status=$?
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
3565d135
RR
12623 { ac_try='test -z "$ac_c_werror_flag"
12624 || test ! -s conftest.err'
0093c2fc
VZ
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 bakefile_cv_c_compiler___SUNPRO_C=yes
12637else
12638 echo "$as_me: failed program was:" >&5
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
12641bakefile_cv_c_compiler___SUNPRO_C=no
12642
12643fi
12644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645
12646
12647fi
12648echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12649echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12650 ac_ext=c
12651ac_cpp='$CPP $CPPFLAGS'
12652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12654ac_compiler_gnu=$ac_cv_c_compiler_gnu
12655
12656 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12657 :; SUNCC=yes
3006edc0
VZ
12658 else
12659 :;
12660 fi
12661
12662
12663 ;;
12664 esac
ab0ad5f1 12665 fi
a9e5b1f0
MW
12666
12667
3006edc0 12668
a848cd7e
SC
12669ac_ext=c
12670ac_cpp='$CPP $CPPFLAGS'
12671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12673ac_compiler_gnu=$ac_cv_c_compiler_gnu
12674echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12675echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12676# On Suns, sometimes $CPP names a directory.
12677if test -n "$CPP" && test -d "$CPP"; then
12678 CPP=
12679fi
12680if test -z "$CPP"; then
12681 if test "${ac_cv_prog_CPP+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12683else
12684 # Double quotes because CPP needs to be expanded
12685 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12686 do
12687 ac_preproc_ok=false
12688for ac_c_preproc_warn_flag in '' yes
12689do
12690 # Use a header file that comes with gcc, so configuring glibc
12691 # with a fresh cross-compiler works.
12692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693 # <limits.h> exists even on freestanding compilers.
12694 # On the NeXT, cc -E runs the code through the compiler's parser,
12695 # not just through cpp. "Syntax error" is here to catch this case.
12696 cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */
12702#ifdef __STDC__
12703# include <limits.h>
12704#else
12705# include <assert.h>
12706#endif
ac1cb8d3 12707 Syntax error
a848cd7e
SC
12708_ACEOF
12709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } >/dev/null; then
12717 if test -s conftest.err; then
12718 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12720 else
12721 ac_cpp_err=
12722 fi
12723else
12724 ac_cpp_err=yes
12725fi
12726if test -z "$ac_cpp_err"; then
12727 :
12728else
12729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
12732 # Broken: fails on valid input.
12733continue
12734fi
12735rm -f conftest.err conftest.$ac_ext
12736
12737 # OK, works on sane cases. Now check whether non-existent headers
12738 # can be detected and how.
12739 cat >conftest.$ac_ext <<_ACEOF
12740/* confdefs.h. */
12741_ACEOF
12742cat confdefs.h >>conftest.$ac_ext
12743cat >>conftest.$ac_ext <<_ACEOF
12744/* end confdefs.h. */
12745#include <ac_nonexistent.h>
12746_ACEOF
12747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } >/dev/null; then
12755 if test -s conftest.err; then
12756 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12758 else
12759 ac_cpp_err=
12760 fi
12761else
12762 ac_cpp_err=yes
12763fi
12764if test -z "$ac_cpp_err"; then
12765 # Broken: success on invalid input.
12766continue
12767else
12768 echo "$as_me: failed program was:" >&5
12769sed 's/^/| /' conftest.$ac_ext >&5
12770
12771 # Passes both tests.
12772ac_preproc_ok=:
12773break
12774fi
12775rm -f conftest.err conftest.$ac_ext
12776
12777done
12778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12779rm -f conftest.err conftest.$ac_ext
12780if $ac_preproc_ok; then
12781 break
12782fi
12783
12784 done
12785 ac_cv_prog_CPP=$CPP
12786
12787fi
12788 CPP=$ac_cv_prog_CPP
12789else
12790 ac_cv_prog_CPP=$CPP
12791fi
12792echo "$as_me:$LINENO: result: $CPP" >&5
12793echo "${ECHO_T}$CPP" >&6
12794ac_preproc_ok=false
12795for ac_c_preproc_warn_flag in '' yes
12796do
12797 # Use a header file that comes with gcc, so configuring glibc
12798 # with a fresh cross-compiler works.
12799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 # <limits.h> exists even on freestanding compilers.
12801 # On the NeXT, cc -E runs the code through the compiler's parser,
12802 # not just through cpp. "Syntax error" is here to catch this case.
12803 cat >conftest.$ac_ext <<_ACEOF
12804/* confdefs.h. */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
12808/* end confdefs.h. */
12809#ifdef __STDC__
12810# include <limits.h>
12811#else
12812# include <assert.h>
12813#endif
ac1cb8d3 12814 Syntax error
a848cd7e
SC
12815_ACEOF
12816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } >/dev/null; then
12824 if test -s conftest.err; then
12825 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12827 else
12828 ac_cpp_err=
12829 fi
12830else
12831 ac_cpp_err=yes
12832fi
12833if test -z "$ac_cpp_err"; then
12834 :
12835else
12836 echo "$as_me: failed program was:" >&5
12837sed 's/^/| /' conftest.$ac_ext >&5
12838
12839 # Broken: fails on valid input.
12840continue
12841fi
12842rm -f conftest.err conftest.$ac_ext
12843
12844 # OK, works on sane cases. Now check whether non-existent headers
12845 # can be detected and how.
12846 cat >conftest.$ac_ext <<_ACEOF
12847/* confdefs.h. */
12848_ACEOF
12849cat confdefs.h >>conftest.$ac_ext
12850cat >>conftest.$ac_ext <<_ACEOF
12851/* end confdefs.h. */
12852#include <ac_nonexistent.h>
12853_ACEOF
12854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } >/dev/null; then
12862 if test -s conftest.err; then
12863 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12865 else
12866 ac_cpp_err=
12867 fi
12868else
12869 ac_cpp_err=yes
12870fi
12871if test -z "$ac_cpp_err"; then
12872 # Broken: success on invalid input.
12873continue
12874else
12875 echo "$as_me: failed program was:" >&5
12876sed 's/^/| /' conftest.$ac_ext >&5
12877
12878 # Passes both tests.
12879ac_preproc_ok=:
12880break
12881fi
12882rm -f conftest.err conftest.$ac_ext
12883
12884done
12885# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12886rm -f conftest.err conftest.$ac_ext
12887if $ac_preproc_ok; then
12888 :
12889else
12890 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12891See \`config.log' for more details." >&5
12892echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12893See \`config.log' for more details." >&2;}
12894 { (exit 1); exit 1; }; }
12895fi
12896
12897ac_ext=c
12898ac_cpp='$CPP $CPPFLAGS'
12899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12901ac_compiler_gnu=$ac_cv_c_compiler_gnu
12902
12903
12904echo "$as_me:$LINENO: checking for egrep" >&5
12905echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12906if test "${ac_cv_prog_egrep+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12908else
12909 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12910 then ac_cv_prog_egrep='grep -E'
12911 else ac_cv_prog_egrep='egrep'
12912 fi
12913fi
12914echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12915echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12916 EGREP=$ac_cv_prog_egrep
12917
12918
12919if test $ac_cv_c_compiler_gnu = yes; then
12920 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12921echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12922if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924else
12925 ac_pattern="Autoconf.*'x'"
12926 cat >conftest.$ac_ext <<_ACEOF
12927/* confdefs.h. */
12928_ACEOF
12929cat confdefs.h >>conftest.$ac_ext
12930cat >>conftest.$ac_ext <<_ACEOF
12931/* end confdefs.h. */
12932#include <sgtty.h>
12933Autoconf TIOCGETP
12934_ACEOF
12935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12936 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12937 ac_cv_prog_gcc_traditional=yes
12938else
12939 ac_cv_prog_gcc_traditional=no
12940fi
12941rm -f conftest*
12942
12943
12944 if test $ac_cv_prog_gcc_traditional = no; then
12945 cat >conftest.$ac_ext <<_ACEOF
12946/* confdefs.h. */
12947_ACEOF
12948cat confdefs.h >>conftest.$ac_ext
12949cat >>conftest.$ac_ext <<_ACEOF
12950/* end confdefs.h. */
12951#include <termio.h>
12952Autoconf TCGETA
12953_ACEOF
12954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12955 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12956 ac_cv_prog_gcc_traditional=yes
12957fi
12958rm -f conftest*
12959
12960 fi
12961fi
12962echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12963echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12964 if test $ac_cv_prog_gcc_traditional = yes; then
12965 CC="$CC -traditional"
12966 fi
12967fi
12968
12969
12970
12971
12972ac_ext=cc
12973ac_cpp='$CXXCPP $CPPFLAGS'
12974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12977
12978
12979CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12980
12981
3006edc0 12982
6dcfc289 12983 ac_ext=cc
a848cd7e
SC
12984ac_cpp='$CXXCPP $CPPFLAGS'
12985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12988if test -n "$ac_tool_prefix"; then
12989 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12990 do
12991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12992set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12993echo "$as_me:$LINENO: checking for $ac_word" >&5
12994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12995if test "${ac_cv_prog_CXX+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12997else
12998 if test -n "$CXX"; then
12999 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13000else
13001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002for as_dir in $PATH
13003do
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13008 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13010 break 2
13011 fi
13012done
13013done
13014
13015fi
13016fi
13017CXX=$ac_cv_prog_CXX
13018if test -n "$CXX"; then
13019 echo "$as_me:$LINENO: result: $CXX" >&5
13020echo "${ECHO_T}$CXX" >&6
13021else
13022 echo "$as_me:$LINENO: result: no" >&5
13023echo "${ECHO_T}no" >&6
13024fi
13025
13026 test -n "$CXX" && break
13027 done
13028fi
13029if test -z "$CXX"; then
13030 ac_ct_CXX=$CXX
13031 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13032do
13033 # Extract the first word of "$ac_prog", so it can be a program name with args.
13034set dummy $ac_prog; ac_word=$2
13035echo "$as_me:$LINENO: checking for $ac_word" >&5
13036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13037if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039else
13040 if test -n "$ac_ct_CXX"; then
13041 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13042else
13043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044for as_dir in $PATH
13045do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13050 ac_cv_prog_ac_ct_CXX="$ac_prog"
13051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054done
13055done
13056
13057fi
13058fi
13059ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13060if test -n "$ac_ct_CXX"; then
13061 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13062echo "${ECHO_T}$ac_ct_CXX" >&6
13063else
13064 echo "$as_me:$LINENO: result: no" >&5
13065echo "${ECHO_T}no" >&6
13066fi
13067
13068 test -n "$ac_ct_CXX" && break
13069done
13070test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13071
13072 CXX=$ac_ct_CXX
13073fi
13074
13075
13076# Provide some information about the compiler.
13077echo "$as_me:$LINENO:" \
13078 "checking for C++ compiler version" >&5
13079ac_compiler=`set X $ac_compile; echo $2`
13080{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13081 (eval $ac_compiler --version </dev/null >&5) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }
13085{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13086 (eval $ac_compiler -v </dev/null >&5) 2>&5
13087 ac_status=$?
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }
13090{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13091 (eval $ac_compiler -V </dev/null >&5) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }
13095
13096echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13097echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13098if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13100else
13101 cat >conftest.$ac_ext <<_ACEOF
13102/* confdefs.h. */
13103_ACEOF
13104cat confdefs.h >>conftest.$ac_ext
13105cat >>conftest.$ac_ext <<_ACEOF
13106/* end confdefs.h. */
13107
13108int
13109main ()
13110{
13111#ifndef __GNUC__
13112 choke me
13113#endif
13114
13115 ;
13116 return 0;
13117}
13118_ACEOF
13119rm -f conftest.$ac_objext
13120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13121 (eval $ac_compile) 2>conftest.er1
a848cd7e 13122 ac_status=$?
ac1cb8d3
VS
13123 grep -v '^ *+' conftest.er1 >conftest.err
13124 rm -f conftest.er1
13125 cat conftest.err >&5
a848cd7e
SC
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
3565d135
RR
13128 { ac_try='test -z "$ac_cxx_werror_flag"
13129 || test ! -s conftest.err'
ac1cb8d3
VS
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; } &&
13135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 ac_compiler_gnu=yes
13142else
13143 echo "$as_me: failed program was:" >&5
13144sed 's/^/| /' conftest.$ac_ext >&5
13145
13146ac_compiler_gnu=no
13147fi
ac1cb8d3 13148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13149ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13150
13151fi
13152echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13153echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13154GXX=`test $ac_compiler_gnu = yes && echo yes`
13155ac_test_CXXFLAGS=${CXXFLAGS+set}
13156ac_save_CXXFLAGS=$CXXFLAGS
13157CXXFLAGS="-g"
13158echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13159echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13160if test "${ac_cv_prog_cxx_g+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162else
13163 cat >conftest.$ac_ext <<_ACEOF
13164/* confdefs.h. */
13165_ACEOF
13166cat confdefs.h >>conftest.$ac_ext
13167cat >>conftest.$ac_ext <<_ACEOF
13168/* end confdefs.h. */
13169
13170int
13171main ()
13172{
13173
13174 ;
13175 return 0;
13176}
13177_ACEOF
13178rm -f conftest.$ac_objext
13179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13180 (eval $ac_compile) 2>conftest.er1
a848cd7e 13181 ac_status=$?
ac1cb8d3
VS
13182 grep -v '^ *+' conftest.er1 >conftest.err
13183 rm -f conftest.er1
13184 cat conftest.err >&5
a848cd7e
SC
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
3565d135
RR
13187 { ac_try='test -z "$ac_cxx_werror_flag"
13188 || test ! -s conftest.err'
ac1cb8d3
VS
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 ac_cv_prog_cxx_g=yes
13201else
13202 echo "$as_me: failed program was:" >&5
13203sed 's/^/| /' conftest.$ac_ext >&5
13204
13205ac_cv_prog_cxx_g=no
13206fi
ac1cb8d3 13207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13208fi
13209echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13210echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13211if test "$ac_test_CXXFLAGS" = set; then
13212 CXXFLAGS=$ac_save_CXXFLAGS
13213elif test $ac_cv_prog_cxx_g = yes; then
13214 if test "$GXX" = yes; then
8aeeb05c 13215 CXXFLAGS="-g -O2"
a848cd7e 13216 else
8aeeb05c 13217 CXXFLAGS="-g"
a848cd7e
SC
13218 fi
13219else
13220 if test "$GXX" = yes; then
13221 CXXFLAGS="-O2"
13222 else
13223 CXXFLAGS=
13224 fi
13225fi
13226for ac_declaration in \
ac1cb8d3 13227 '' \
a848cd7e
SC
13228 'extern "C" void std::exit (int) throw (); using std::exit;' \
13229 'extern "C" void std::exit (int); using std::exit;' \
13230 'extern "C" void exit (int) throw ();' \
13231 'extern "C" void exit (int);' \
13232 'void exit (int);'
13233do
13234 cat >conftest.$ac_ext <<_ACEOF
13235/* confdefs.h. */
13236_ACEOF
13237cat confdefs.h >>conftest.$ac_ext
13238cat >>conftest.$ac_ext <<_ACEOF
13239/* end confdefs.h. */
de59c161 13240$ac_declaration
ac1cb8d3 13241#include <stdlib.h>
a848cd7e
SC
13242int
13243main ()
13244{
13245exit (42);
13246 ;
13247 return 0;
13248}
13249_ACEOF
13250rm -f conftest.$ac_objext
13251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13252 (eval $ac_compile) 2>conftest.er1
a848cd7e 13253 ac_status=$?
ac1cb8d3
VS
13254 grep -v '^ *+' conftest.er1 >conftest.err
13255 rm -f conftest.er1
13256 cat conftest.err >&5
a848cd7e
SC
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
3565d135
RR
13259 { ac_try='test -z "$ac_cxx_werror_flag"
13260 || test ! -s conftest.err'
ac1cb8d3
VS
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13263 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 :
13273else
13274 echo "$as_me: failed program was:" >&5
13275sed 's/^/| /' conftest.$ac_ext >&5
13276
13277continue
13278fi
ac1cb8d3 13279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13280 cat >conftest.$ac_ext <<_ACEOF
13281/* confdefs.h. */
13282_ACEOF
13283cat confdefs.h >>conftest.$ac_ext
13284cat >>conftest.$ac_ext <<_ACEOF
13285/* end confdefs.h. */
13286$ac_declaration
13287int
13288main ()
13289{
13290exit (42);
13291 ;
13292 return 0;
13293}
13294_ACEOF
13295rm -f conftest.$ac_objext
13296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13297 (eval $ac_compile) 2>conftest.er1
a848cd7e 13298 ac_status=$?
ac1cb8d3
VS
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
a848cd7e
SC
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
3565d135
RR
13304 { ac_try='test -z "$ac_cxx_werror_flag"
13305 || test ! -s conftest.err'
ac1cb8d3
VS
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; } &&
13311 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 break
13318else
13319 echo "$as_me: failed program was:" >&5
13320sed 's/^/| /' conftest.$ac_ext >&5
13321
13322fi
ac1cb8d3 13323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13324done
13325rm -f conftest*
13326if test -n "$ac_declaration"; then
13327 echo '#ifdef __cplusplus' >>confdefs.h
13328 echo $ac_declaration >>confdefs.h
13329 echo '#endif' >>confdefs.h
13330fi
13331
13332ac_ext=cc
13333ac_cpp='$CXXCPP $CPPFLAGS'
13334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13337
ab0ad5f1
VZ
13338
13339
13340 ac_ext=cc
13341ac_cpp='$CXXCPP $CPPFLAGS'
13342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13345
13346 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13347echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13348if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350else
13351 cat >conftest.$ac_ext <<_ACEOF
13352/* confdefs.h. */
13353_ACEOF
13354cat confdefs.h >>conftest.$ac_ext
13355cat >>conftest.$ac_ext <<_ACEOF
13356/* end confdefs.h. */
13357
13358int
13359main ()
13360{
13361
13362 #ifndef __INTEL_COMPILER
13363 choke me
13364 #endif
13365
13366 ;
13367 return 0;
13368}
13369_ACEOF
13370rm -f conftest.$ac_objext
13371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372 (eval $ac_compile) 2>conftest.er1
13373 ac_status=$?
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
3565d135
RR
13379 { ac_try='test -z "$ac_cxx_werror_flag"
13380 || test ! -s conftest.err'
ab0ad5f1
VZ
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; } &&
13386 { ac_try='test -s conftest.$ac_objext'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13393else
13394 echo "$as_me: failed program was:" >&5
13395sed 's/^/| /' conftest.$ac_ext >&5
13396
13397bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13398
13399fi
13400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13401
13402
13403fi
13404echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13405echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13406 ac_ext=cc
13407ac_cpp='$CXXCPP $CPPFLAGS'
13408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13411
13412 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13413 :; INTELCXX=yes
13414 else
13415 :;
13416 fi
13417
13418
3006edc0
VZ
13419 if test "x$GCXX" != "xyes"; then
13420 if test "xCXX" = "xC"; then
13421 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13422echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13423if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425else
13426 cat >conftest.$ac_ext <<_ACEOF
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
13431/* end confdefs.h. */
13432
13433int
13434main ()
13435{
13436
13437 ;
13438 return 0;
13439}
13440_ACEOF
13441rm -f conftest.$ac_objext conftest.$ac_ext.o
13442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; then
13447 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13448 case $ac_file in
13449 conftest.$ac_ext.o)
0093c2fc 13450 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13451 ;;
13452 *)
13453 ;;
13454 esac
13455done
13456else
13457 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13458See \`config.log' for more details." >&5
13459echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13460See \`config.log' for more details." >&2;}
13461 { (exit 1); exit 1; }; }
13462
13463fi
13464
13465rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13466
13467fi
0093c2fc
VZ
13468echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13469echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13470if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13471 if test "cxx" = "c"; then
0093c2fc 13472 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13473 fi
13474 if test "cxx" = "cxx"; then
0093c2fc 13475 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13476 fi
13477fi
13478
0093c2fc 13479 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13480 unset ac_cv_prog_cc_g
13481 ac_test_CFLAGS=${CFLAGS+set}
13482ac_save_CFLAGS=$CFLAGS
8aeeb05c 13483CFLAGS="-g"
3006edc0
VZ
13484echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13485echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13486if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13488else
13489 cat >conftest.$ac_ext <<_ACEOF
13490/* confdefs.h. */
13491_ACEOF
13492cat confdefs.h >>conftest.$ac_ext
13493cat >>conftest.$ac_ext <<_ACEOF
13494/* end confdefs.h. */
13495
13496int
13497main ()
13498{
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); } &&
3565d135
RR
13513 { ac_try='test -z "$ac_cxx_werror_flag"
13514 || test ! -s conftest.err'
480ccd21
DE
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest.$ac_objext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
3006edc0 13526 ac_cv_prog_cc_g=yes
480ccd21
DE
13527else
13528 echo "$as_me: failed program was:" >&5
13529sed 's/^/| /' conftest.$ac_ext >&5
13530
3006edc0 13531ac_cv_prog_cc_g=no
480ccd21
DE
13532fi
13533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13534fi
3006edc0
VZ
13535echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13536echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13537if test "$ac_test_CFLAGS" = set; then
13538 CFLAGS=$ac_save_CFLAGS
13539elif test $ac_cv_prog_cc_g = yes; then
13540 if test "$GCC" = yes; then
13541 CFLAGS="-g -O2"
480ccd21 13542 else
3006edc0 13543 CFLAGS="-g"
480ccd21
DE
13544 fi
13545else
3006edc0
VZ
13546 if test "$GCC" = yes; then
13547 CFLAGS="-O2"
480ccd21 13548 else
3006edc0 13549 CFLAGS=
480ccd21
DE
13550 fi
13551fi
3006edc0 13552 fi
ab0ad5f1 13553 fi
3006edc0
VZ
13554
13555 case `uname -s` in
13556 AIX*)
13557 ac_ext=cc
13558ac_cpp='$CXXCPP $CPPFLAGS'
13559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13562
13563echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13564echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13565if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567else
13568 cat >conftest.$ac_ext <<_ACEOF
13569/* confdefs.h. */
13570_ACEOF
13571cat confdefs.h >>conftest.$ac_ext
13572cat >>conftest.$ac_ext <<_ACEOF
13573/* end confdefs.h. */
13574
13575int
13576main ()
13577{
13578#ifndef __xlC__
13579 choke me
13580#endif
13581
13582 ;
13583 return 0;
13584}
13585_ACEOF
13586rm -f conftest.$ac_objext
13587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13588 (eval $ac_compile) 2>conftest.er1
13589 ac_status=$?
13590 grep -v '^ *+' conftest.er1 >conftest.err
13591 rm -f conftest.er1
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
3565d135
RR
13595 { ac_try='test -z "$ac_cxx_werror_flag"
13596 || test ! -s conftest.err'
3006edc0
VZ
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13599 ac_status=$?
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; } &&
13602 { ac_try='test -s conftest.$ac_objext'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
0093c2fc 13608 bakefile_compiler_xlc=yes
3006edc0
VZ
13609else
13610 echo "$as_me: failed program was:" >&5
13611sed 's/^/| /' conftest.$ac_ext >&5
13612
0093c2fc 13613bakefile_compiler_xlc=no
3006edc0
VZ
13614fi
13615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13616 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13617
13618fi
0093c2fc
VZ
13619echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13620echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13621
0093c2fc 13622XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13623ac_ext=cc
13624ac_cpp='$CXXCPP $CPPFLAGS'
13625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13628
13629
13630 ;;
13631
13632 Darwin)
13633 ac_ext=cc
95986553
DE
13634ac_cpp='$CXXCPP $CPPFLAGS'
13635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13638
13639echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13640echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13641if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643else
13644 cat >conftest.$ac_ext <<_ACEOF
13645/* confdefs.h. */
13646_ACEOF
13647cat confdefs.h >>conftest.$ac_ext
13648cat >>conftest.$ac_ext <<_ACEOF
13649/* end confdefs.h. */
13650
13651int
13652main ()
13653{
13654#ifndef __MWERKS__
13655 choke me
13656#endif
13657
13658 ;
13659 return 0;
13660}
13661_ACEOF
13662rm -f conftest.$ac_objext
13663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13664 (eval $ac_compile) 2>conftest.er1
13665 ac_status=$?
13666 grep -v '^ *+' conftest.er1 >conftest.err
13667 rm -f conftest.er1
13668 cat conftest.err >&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
3565d135
RR
13671 { ac_try='test -z "$ac_cxx_werror_flag"
13672 || test ! -s conftest.err'
95986553
DE
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest.$ac_objext'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 bakefile_compiler_mwerks=yes
13685else
13686 echo "$as_me: failed program was:" >&5
13687sed 's/^/| /' conftest.$ac_ext >&5
13688
13689bakefile_compiler_mwerks=no
13690fi
13691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13692 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13693
13694fi
13695echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13696echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13697
0e6fa1d9 13698MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13699ac_ext=cc
13700ac_cpp='$CXXCPP $CPPFLAGS'
13701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13704
13705
3006edc0 13706 ac_ext=cc
9273ffba
DE
13707ac_cpp='$CXXCPP $CPPFLAGS'
13708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13711
13712echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13713echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13714if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13716else
13717 cat >conftest.$ac_ext <<_ACEOF
13718/* confdefs.h. */
13719_ACEOF
13720cat confdefs.h >>conftest.$ac_ext
13721cat >>conftest.$ac_ext <<_ACEOF
13722/* end confdefs.h. */
13723
13724int
13725main ()
13726{
13727#ifndef __xlC__
13728 choke me
13729#endif
13730
13731 ;
13732 return 0;
13733}
13734_ACEOF
13735rm -f conftest.$ac_objext
13736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13737 (eval $ac_compile) 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
3565d135
RR
13744 { ac_try='test -z "$ac_cxx_werror_flag"
13745 || test ! -s conftest.err'
9273ffba
DE
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest.$ac_objext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
0093c2fc 13757 bakefile_compiler_xlc=yes
9273ffba
DE
13758else
13759 echo "$as_me: failed program was:" >&5
13760sed 's/^/| /' conftest.$ac_ext >&5
13761
0093c2fc 13762bakefile_compiler_xlc=no
9273ffba
DE
13763fi
13764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13765 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13766
13767fi
0093c2fc
VZ
13768echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13769echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13770
0093c2fc 13771XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13772ac_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
13778
3006edc0
VZ
13779 ;;
13780
13781 IRIX*)
95986553 13782
6dcfc289 13783
0ad5d837
VZ
13784 ac_ext=cc
13785ac_cpp='$CXXCPP $CPPFLAGS'
13786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13789
13790 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13791echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13792if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13794else
13795 cat >conftest.$ac_ext <<_ACEOF
13796/* confdefs.h. */
13797_ACEOF
13798cat confdefs.h >>conftest.$ac_ext
13799cat >>conftest.$ac_ext <<_ACEOF
13800/* end confdefs.h. */
13801
13802int
13803main ()
13804{
13805
13806 #ifndef _SGI_COMPILER_VERSION
13807 choke me
13808 #endif
13809
13810 ;
13811 return 0;
13812}
13813_ACEOF
13814rm -f conftest.$ac_objext
13815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13816 (eval $ac_compile) 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
3565d135
RR
13823 { ac_try='test -z "$ac_cxx_werror_flag"
13824 || test ! -s conftest.err'
0ad5d837
VZ
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest.$ac_objext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13837else
13838 echo "$as_me: failed program was:" >&5
13839sed 's/^/| /' conftest.$ac_ext >&5
13840
13841bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13842
13843fi
13844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13845
13846
13847fi
13848echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13849echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13850 ac_ext=cc
13851ac_cpp='$CXXCPP $CPPFLAGS'
13852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13855
13856 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13857 :; SGICXX=yes
13858 else
13859 :;
13860 fi
13861
13862
3006edc0
VZ
13863 ;;
13864
0093c2fc 13865 HP-UX*)
3006edc0
VZ
13866
13867
13868 ac_ext=cc
13869ac_cpp='$CXXCPP $CPPFLAGS'
13870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13873
0093c2fc
VZ
13874 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13875echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13876if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13878else
13879 cat >conftest.$ac_ext <<_ACEOF
13880/* confdefs.h. */
13881_ACEOF
13882cat confdefs.h >>conftest.$ac_ext
13883cat >>conftest.$ac_ext <<_ACEOF
13884/* end confdefs.h. */
13885
13886int
13887main ()
13888{
13889
0093c2fc 13890 #ifndef __HP_aCC
3006edc0
VZ
13891 choke me
13892 #endif
13893
13894 ;
13895 return 0;
13896}
13897_ACEOF
13898rm -f conftest.$ac_objext
13899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13900 (eval $ac_compile) 2>conftest.er1
13901 ac_status=$?
13902 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } &&
3565d135
RR
13907 { ac_try='test -z "$ac_cxx_werror_flag"
13908 || test ! -s conftest.err'
3006edc0
VZ
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; } &&
13914 { ac_try='test -s conftest.$ac_objext'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
0093c2fc 13920 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
13921else
13922 echo "$as_me: failed program was:" >&5
13923sed 's/^/| /' conftest.$ac_ext >&5
13924
0093c2fc 13925bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
13926
13927fi
13928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13929
13930
13931fi
0093c2fc
VZ
13932echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13933echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
13934 ac_ext=cc
13935ac_cpp='$CXXCPP $CPPFLAGS'
13936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13939
0093c2fc
VZ
13940 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13941 :; HPCXX=yes
a1aa0349
VZ
13942 else
13943 :;
13944 fi
13945
13946
13947 ;;
13948
0093c2fc 13949 OSF1)
a1aa0349
VZ
13950
13951
13952 ac_ext=cc
13953ac_cpp='$CXXCPP $CPPFLAGS'
13954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13957
0093c2fc
VZ
13958 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
13959echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
13960if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962else
13963 cat >conftest.$ac_ext <<_ACEOF
13964/* confdefs.h. */
13965_ACEOF
13966cat confdefs.h >>conftest.$ac_ext
13967cat >>conftest.$ac_ext <<_ACEOF
13968/* end confdefs.h. */
13969
13970int
13971main ()
13972{
13973
0093c2fc 13974 #ifndef __DECCXX
a1aa0349
VZ
13975 choke me
13976 #endif
13977
13978 ;
13979 return 0;
13980}
13981_ACEOF
13982rm -f conftest.$ac_objext
13983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13984 (eval $ac_compile) 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
3565d135
RR
13991 { ac_try='test -z "$ac_cxx_werror_flag"
13992 || test ! -s conftest.err'
a1aa0349
VZ
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try='test -s conftest.$ac_objext'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
0093c2fc 14004 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14005else
14006 echo "$as_me: failed program was:" >&5
14007sed 's/^/| /' conftest.$ac_ext >&5
14008
0093c2fc 14009bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14010
14011fi
14012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14013
14014
14015fi
0093c2fc
VZ
14016echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14017echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14018 ac_ext=cc
14019ac_cpp='$CXXCPP $CPPFLAGS'
14020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14023
0093c2fc
VZ
14024 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14025 :; COMPAQCXX=yes
14026 else
14027 :;
14028 fi
14029
14030
14031 ;;
14032
14033 SunOS)
14034
14035
14036 ac_ext=cc
14037ac_cpp='$CXXCPP $CPPFLAGS'
14038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14041
14042 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14043echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14044if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14046else
14047 cat >conftest.$ac_ext <<_ACEOF
14048/* confdefs.h. */
14049_ACEOF
14050cat confdefs.h >>conftest.$ac_ext
14051cat >>conftest.$ac_ext <<_ACEOF
14052/* end confdefs.h. */
14053
14054int
14055main ()
14056{
14057
14058 #ifndef __SUNPRO_CC
14059 choke me
14060 #endif
14061
14062 ;
14063 return 0;
14064}
14065_ACEOF
14066rm -f conftest.$ac_objext
14067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068 (eval $ac_compile) 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } &&
3565d135
RR
14075 { ac_try='test -z "$ac_cxx_werror_flag"
14076 || test ! -s conftest.err'
0093c2fc
VZ
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest.$ac_objext'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
14088 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14089else
14090 echo "$as_me: failed program was:" >&5
14091sed 's/^/| /' conftest.$ac_ext >&5
14092
14093bakefile_cv_cxx_compiler___SUNPRO_CC=no
14094
14095fi
14096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14097
14098
14099fi
14100echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14101echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14102 ac_ext=cc
14103ac_cpp='$CXXCPP $CPPFLAGS'
14104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14107
14108 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14109 :; SUNCXX=yes
3006edc0
VZ
14110 else
14111 :;
ab0ad5f1 14112 fi
a9e5b1f0
MW
14113
14114
3006edc0
VZ
14115 ;;
14116 esac
14117 fi
14118
14119
14120
a848cd7e
SC
14121ac_ext=c
14122ac_cpp='$CPP $CPPFLAGS'
14123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14125ac_compiler_gnu=$ac_cv_c_compiler_gnu
14126
14127
a848cd7e
SC
14128if test -n "$ac_tool_prefix"; then
14129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14130set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14131echo "$as_me:$LINENO: checking for $ac_word" >&5
14132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14133if test "${ac_cv_prog_RANLIB+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14135else
14136 if test -n "$RANLIB"; then
14137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14138else
14139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14140for as_dir in $PATH
14141do
14142 IFS=$as_save_IFS
14143 test -z "$as_dir" && as_dir=.
14144 for ac_exec_ext in '' $ac_executable_extensions; do
14145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14146 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14148 break 2
14149 fi
14150done
14151done
14152
14153fi
14154fi
14155RANLIB=$ac_cv_prog_RANLIB
14156if test -n "$RANLIB"; then
14157 echo "$as_me:$LINENO: result: $RANLIB" >&5
14158echo "${ECHO_T}$RANLIB" >&6
14159else
14160 echo "$as_me:$LINENO: result: no" >&5
14161echo "${ECHO_T}no" >&6
14162fi
14163
14164fi
14165if test -z "$ac_cv_prog_RANLIB"; then
14166 ac_ct_RANLIB=$RANLIB
14167 # Extract the first word of "ranlib", so it can be a program name with args.
14168set dummy ranlib; ac_word=$2
14169echo "$as_me:$LINENO: checking for $ac_word" >&5
14170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14171if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174 if test -n "$ac_ct_RANLIB"; then
14175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14176else
14177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178for as_dir in $PATH
14179do
14180 IFS=$as_save_IFS
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14184 ac_cv_prog_ac_ct_RANLIB="ranlib"
14185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14186 break 2
14187 fi
14188done
14189done
14190
14191 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14192fi
14193fi
14194ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14195if test -n "$ac_ct_RANLIB"; then
14196 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14197echo "${ECHO_T}$ac_ct_RANLIB" >&6
14198else
14199 echo "$as_me:$LINENO: result: no" >&5
14200echo "${ECHO_T}no" >&6
14201fi
14202
14203 RANLIB=$ac_ct_RANLIB
14204else
14205 RANLIB="$ac_cv_prog_RANLIB"
14206fi
14207
14208
8c80d384
DE
14209if test -n "$ac_tool_prefix"; then
14210 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14211set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14212echo "$as_me:$LINENO: checking for $ac_word" >&5
14213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14214if test "${ac_cv_prog_AR+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216else
14217 if test -n "$AR"; then
14218 ac_cv_prog_AR="$AR" # Let the user override the test.
14219else
14220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14221for as_dir in $PATH
14222do
14223 IFS=$as_save_IFS
14224 test -z "$as_dir" && as_dir=.
14225 for ac_exec_ext in '' $ac_executable_extensions; do
14226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14227 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14229 break 2
14230 fi
14231done
14232done
14233
14234fi
14235fi
14236AR=$ac_cv_prog_AR
14237if test -n "$AR"; then
14238 echo "$as_me:$LINENO: result: $AR" >&5
14239echo "${ECHO_T}$AR" >&6
14240else
14241 echo "$as_me:$LINENO: result: no" >&5
14242echo "${ECHO_T}no" >&6
14243fi
14244
8c80d384
DE
14245fi
14246if test -z "$ac_cv_prog_AR"; then
14247 ac_ct_AR=$AR
14248 # Extract the first word of "ar", so it can be a program name with args.
14249set dummy ar; ac_word=$2
14250echo "$as_me:$LINENO: checking for $ac_word" >&5
14251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14252if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254else
14255 if test -n "$ac_ct_AR"; then
14256 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14257else
14258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259for as_dir in $PATH
14260do
14261 IFS=$as_save_IFS
14262 test -z "$as_dir" && as_dir=.
14263 for ac_exec_ext in '' $ac_executable_extensions; do
14264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14265 ac_cv_prog_ac_ct_AR="ar"
14266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14267 break 2
14268 fi
14269done
14270done
14271
14272fi
14273fi
14274ac_ct_AR=$ac_cv_prog_ac_ct_AR
14275if test -n "$ac_ct_AR"; then
14276 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14277echo "${ECHO_T}$ac_ct_AR" >&6
14278else
14279 echo "$as_me:$LINENO: result: no" >&5
14280echo "${ECHO_T}no" >&6
14281fi
14282
14283 AR=$ac_ct_AR
14284else
14285 AR="$ac_cv_prog_AR"
14286fi
14287
a848cd7e 14288if test "x$AR" = "x" ; then
77ffb593
JS
14289 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14290echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14291 { (exit 1); exit 1; }; }
14292fi
14293
14294# Find a good install program. We prefer a C program (faster),
14295# so one script is as good as another. But avoid the broken or
14296# incompatible versions:
14297# SysV /etc/install, /usr/sbin/install
14298# SunOS /usr/etc/install
14299# IRIX /sbin/install
14300# AIX /bin/install
14301# AmigaOS /C/install, which installs bootblocks on floppy discs
14302# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14303# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14304# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14305# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14306# ./install, which can be erroneously created by make from ./install.sh.
14307echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14308echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14309if test -z "$INSTALL"; then
14310if test "${ac_cv_path_install+set}" = set; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14312else
14313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314for as_dir in $PATH
14315do
14316 IFS=$as_save_IFS
14317 test -z "$as_dir" && as_dir=.
14318 # Account for people who put trailing slashes in PATH elements.
14319case $as_dir/ in
14320 ./ | .// | /cC/* | \
14321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14322 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14323 /usr/ucb/* ) ;;
14324 *)
14325 # OSF1 and SCO ODT 3.0 have their own names for install.
14326 # Don't use installbsd from OSF since it installs stuff as root
14327 # by default.
14328 for ac_prog in ginstall scoinst install; do
14329 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14330 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14331 if test $ac_prog = install &&
14332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14333 # AIX install. It has an incompatible calling convention.
14334 :
14335 elif test $ac_prog = install &&
14336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14337 # program-specific install script used by HP pwplus--don't use.
14338 :
14339 else
14340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14341 break 3
14342 fi
14343 fi
a848cd7e
SC
14344 done
14345 done
14346 ;;
14347esac
14348done
14349
14350
14351fi
14352 if test "${ac_cv_path_install+set}" = set; then
14353 INSTALL=$ac_cv_path_install
14354 else
14355 # As a last resort, use the slow shell script. We don't cache a
14356 # path for INSTALL within a source directory, because that will
14357 # break other packages using the cache if that directory is
14358 # removed, or if the path is relative.
14359 INSTALL=$ac_install_sh
14360 fi
14361fi
14362echo "$as_me:$LINENO: result: $INSTALL" >&5
14363echo "${ECHO_T}$INSTALL" >&6
14364
14365# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14366# It thinks the first close brace ends the variable substitution.
14367test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14368
14369test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14370
14371test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14372
14373
14374case ${INSTALL} in
14375 /* ) # Absolute
14376 ;;
14377 ?:* ) # Drive letter, considered as absolute.
14378 ;;
14379 *)
14380 INSTALL=`pwd`/${INSTALL} ;;
14381esac
14382
a848cd7e
SC
14383
14384case "${host}" in
14385
cfda0ea8 14386 *-*-darwin* )
a848cd7e
SC
14387 INSTALL_PROGRAM="cp -fp"
14388 INSTALL_DATA="cp -fp"
14389 ;;
14390 *)
14391 ;;
14392esac
14393
8c80d384
DE
14394if test -n "$ac_tool_prefix"; then
14395 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14396set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14397echo "$as_me:$LINENO: checking for $ac_word" >&5
14398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14399if test "${ac_cv_prog_STRIP+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401else
14402 if test -n "$STRIP"; then
14403 ac_cv_prog_STRIP="$STRIP" # 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
8c80d384 14412 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14414 break 2
14415 fi
14416done
14417done
14418
a848cd7e
SC
14419fi
14420fi
14421STRIP=$ac_cv_prog_STRIP
14422if test -n "$STRIP"; then
14423 echo "$as_me:$LINENO: result: $STRIP" >&5
14424echo "${ECHO_T}$STRIP" >&6
14425else
14426 echo "$as_me:$LINENO: result: no" >&5
14427echo "${ECHO_T}no" >&6
14428fi
14429
8c80d384
DE
14430fi
14431if test -z "$ac_cv_prog_STRIP"; then
14432 ac_ct_STRIP=$STRIP
14433 # Extract the first word of "strip", so it can be a program name with args.
14434set dummy strip; 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_STRIP+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14439else
14440 if test -n "$ac_ct_STRIP"; then
14441 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
14451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14452 break 2
14453 fi
14454done
14455done
14456
14457 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14458fi
14459fi
14460ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14461if test -n "$ac_ct_STRIP"; then
14462 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14463echo "${ECHO_T}$ac_ct_STRIP" >&6
14464else
14465 echo "$as_me:$LINENO: result: no" >&5
14466echo "${ECHO_T}no" >&6
14467fi
14468
14469 STRIP=$ac_ct_STRIP
14470else
14471 STRIP="$ac_cv_prog_STRIP"
14472fi
14473
14474
14475if test "$wxUSE_WINE" = "yes"; then
14476 if test -n "$ac_tool_prefix"; then
14477 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14478set dummy ${ac_tool_prefix}wrc; ac_word=$2
14479echo "$as_me:$LINENO: checking for $ac_word" >&5
14480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14481if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483else
8ced02f6
DE
14484 if test -n "$WINDRES"; then
14485 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14486else
14487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488for as_dir in $PATH
14489do
14490 IFS=$as_save_IFS
14491 test -z "$as_dir" && as_dir=.
14492 for ac_exec_ext in '' $ac_executable_extensions; do
14493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14494 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14496 break 2
14497 fi
14498done
14499done
14500
14501fi
14502fi
8ced02f6
DE
14503WINDRES=$ac_cv_prog_WINDRES
14504if test -n "$WINDRES"; then
14505 echo "$as_me:$LINENO: result: $WINDRES" >&5
14506echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14507else
14508 echo "$as_me:$LINENO: result: no" >&5
14509echo "${ECHO_T}no" >&6
14510fi
14511
14512fi
8ced02f6
DE
14513if test -z "$ac_cv_prog_WINDRES"; then
14514 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14515 # Extract the first word of "wrc", so it can be a program name with args.
14516set dummy wrc; ac_word=$2
14517echo "$as_me:$LINENO: checking for $ac_word" >&5
14518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14519if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14521else
8ced02f6
DE
14522 if test -n "$ac_ct_WINDRES"; then
14523 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14524else
14525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14526for as_dir in $PATH
14527do
14528 IFS=$as_save_IFS
14529 test -z "$as_dir" && as_dir=.
14530 for ac_exec_ext in '' $ac_executable_extensions; do
14531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14532 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14534 break 2
14535 fi
14536done
14537done
14538
14539fi
14540fi
8ced02f6
DE
14541ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14542if test -n "$ac_ct_WINDRES"; then
14543 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14544echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14545else
14546 echo "$as_me:$LINENO: result: no" >&5
14547echo "${ECHO_T}no" >&6
14548fi
14549
8ced02f6 14550 WINDRES=$ac_ct_WINDRES
8c80d384 14551else
8ced02f6 14552 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14553fi
14554
004ee6da 14555 RESCOMP="$WINDRES"
8c80d384
DE
14556else
14557 case "${host}" in
14558 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14559 if test -n "$ac_tool_prefix"; then
14560 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14561set dummy ${ac_tool_prefix}windres; ac_word=$2
14562echo "$as_me:$LINENO: checking for $ac_word" >&5
14563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14564if test "${ac_cv_prog_WINDRES+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566else
14567 if test -n "$WINDRES"; then
14568 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14569else
14570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14571for as_dir in $PATH
14572do
14573 IFS=$as_save_IFS
14574 test -z "$as_dir" && as_dir=.
14575 for ac_exec_ext in '' $ac_executable_extensions; do
14576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14577 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14579 break 2
14580 fi
14581done
14582done
14583
14584fi
14585fi
14586WINDRES=$ac_cv_prog_WINDRES
14587if test -n "$WINDRES"; then
14588 echo "$as_me:$LINENO: result: $WINDRES" >&5
14589echo "${ECHO_T}$WINDRES" >&6
14590else
14591 echo "$as_me:$LINENO: result: no" >&5
14592echo "${ECHO_T}no" >&6
14593fi
14594
14595fi
14596if test -z "$ac_cv_prog_WINDRES"; then
14597 ac_ct_WINDRES=$WINDRES
14598 # Extract the first word of "windres", so it can be a program name with args.
14599set dummy windres; ac_word=$2
14600echo "$as_me:$LINENO: checking for $ac_word" >&5
14601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14602if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604else
14605 if test -n "$ac_ct_WINDRES"; then
14606 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14607else
14608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14609for as_dir in $PATH
14610do
14611 IFS=$as_save_IFS
14612 test -z "$as_dir" && as_dir=.
14613 for ac_exec_ext in '' $ac_executable_extensions; do
14614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14615 ac_cv_prog_ac_ct_WINDRES="windres"
14616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14617 break 2
14618 fi
14619done
14620done
14621
14622fi
14623fi
14624ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14625if test -n "$ac_ct_WINDRES"; then
14626 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14627echo "${ECHO_T}$ac_ct_WINDRES" >&6
14628else
14629 echo "$as_me:$LINENO: result: no" >&5
14630echo "${ECHO_T}no" >&6
14631fi
14632
14633 WINDRES=$ac_ct_WINDRES
14634else
14635 WINDRES="$ac_cv_prog_WINDRES"
14636fi
14637
14638 RESCOMP="$WINDRES"
14639 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14640 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14641set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14642echo "$as_me:$LINENO: checking for $ac_word" >&5
14643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14644if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14646else
14647 if test -n "$DLLTOOL"; then
14648 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14649else
14650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651for as_dir in $PATH
14652do
14653 IFS=$as_save_IFS
14654 test -z "$as_dir" && as_dir=.
14655 for ac_exec_ext in '' $ac_executable_extensions; do
14656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14657 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14659 break 2
14660 fi
14661done
14662done
14663
14664fi
14665fi
14666DLLTOOL=$ac_cv_prog_DLLTOOL
14667if test -n "$DLLTOOL"; then
14668 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14669echo "${ECHO_T}$DLLTOOL" >&6
14670else
14671 echo "$as_me:$LINENO: result: no" >&5
14672echo "${ECHO_T}no" >&6
14673fi
14674
14675fi
14676if test -z "$ac_cv_prog_DLLTOOL"; then
14677 ac_ct_DLLTOOL=$DLLTOOL
14678 # Extract the first word of "dlltool", so it can be a program name with args.
14679set dummy dlltool; ac_word=$2
14680echo "$as_me:$LINENO: checking for $ac_word" >&5
14681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14682if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684else
14685 if test -n "$ac_ct_DLLTOOL"; then
14686 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14687else
14688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14689for as_dir in $PATH
14690do
14691 IFS=$as_save_IFS
14692 test -z "$as_dir" && as_dir=.
14693 for ac_exec_ext in '' $ac_executable_extensions; do
14694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14695 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14697 break 2
14698 fi
14699done
14700done
14701
14702fi
14703fi
14704ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14705if test -n "$ac_ct_DLLTOOL"; then
14706 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14707echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14708else
14709 echo "$as_me:$LINENO: result: no" >&5
14710echo "${ECHO_T}no" >&6
14711fi
14712
14713 DLLTOOL=$ac_ct_DLLTOOL
14714else
14715 DLLTOOL="$ac_cv_prog_DLLTOOL"
14716fi
14717
14718 ;;
14719 esac
14720fi
a848cd7e
SC
14721
14722echo "$as_me:$LINENO: checking if make is GNU make" >&5
14723echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14724if test "${wx_cv_prog_makeisgnu+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14726else
14727
14728 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14729 egrep -s GNU > /dev/null); then
14730 wx_cv_prog_makeisgnu="yes"
14731 else
14732 wx_cv_prog_makeisgnu="no"
14733 fi
14734
14735fi
14736echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14737echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14738
14739if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14740 IF_GNU_MAKE=""
14741else
14742 IF_GNU_MAKE="#"
14743fi
14744
14745
14746
14747if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14748echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14749echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14750if test "${wx_cv_prog_makevpath+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
14753
14754cat - << EOF > confMake
14755check : file
14756 cp \$? \$@
14757 cp \$? final_file
14758EOF
14759
14760if test ! -d sub ; then
14761 mkdir sub
14762fi
14763echo dummy > sub/file
14764${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14765RESULT=$?
14766rm -f sub/file check final_file confMake
14767rmdir sub
14768if test "$RESULT" = 0; then
14769 wx_cv_prog_makevpath="yes"
14770else
14771 wx_cv_prog_makevpath="no"
14772fi
14773
14774fi
14775echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14776echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14777
14778if test "x$wx_cv_prog_makevpath" != "xyes"; then
14779{ { echo "$as_me:$LINENO: error:
14780You need a make-utility that is able to use the variable
14781VPATH correctly.
14782If your version of make does not support VPATH correctly,
14783please install GNU-make (possibly as gmake), and start
14784configure with the following command:
14785export MAKE=gmake; ./configure for sh-type shells
14786setenv MAKE gmake; ./configure for csh-type shells
14787Also please do remember to use gmake in this case every time
14788you are trying to compile.
14789" >&5
14790echo "$as_me: error:
14791You need a make-utility that is able to use the variable
14792VPATH correctly.
14793If your version of make does not support VPATH correctly,
14794please install GNU-make (possibly as gmake), and start
14795configure with the following command:
14796export MAKE=gmake; ./configure for sh-type shells
14797setenv MAKE gmake; ./configure for csh-type shells
14798Also please do remember to use gmake in this case every time
14799you are trying to compile.
14800" >&2;}
14801 { (exit 1); exit 1; }; }
14802fi fi
14803echo "$as_me:$LINENO: checking whether ln -s works" >&5
14804echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14805LN_S=$as_ln_s
14806if test "$LN_S" = "ln -s"; then
14807 echo "$as_me:$LINENO: result: yes" >&5
14808echo "${ECHO_T}yes" >&6
14809else
14810 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14811echo "${ECHO_T}no, using $LN_S" >&6
14812fi
14813
14814
bcaab0f9
MW
14815for ac_prog in lndir
14816do
14817 # Extract the first word of "$ac_prog", so it can be a program name with args.
14818set dummy $ac_prog; ac_word=$2
14819echo "$as_me:$LINENO: checking for $ac_word" >&5
14820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14821if test "${ac_cv_prog_LNDIR+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823else
14824 if test -n "$LNDIR"; then
14825 ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test.
14826else
14827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14828for as_dir in $PATH
14829do
14830 IFS=$as_save_IFS
14831 test -z "$as_dir" && as_dir=.
14832 for ac_exec_ext in '' $ac_executable_extensions; do
14833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14834 ac_cv_prog_LNDIR="$ac_prog"
14835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14836 break 2
14837 fi
14838done
14839done
14840
14841fi
14842fi
14843LNDIR=$ac_cv_prog_LNDIR
14844if test -n "$LNDIR"; then
14845 echo "$as_me:$LINENO: result: $LNDIR" >&5
14846echo "${ECHO_T}$LNDIR" >&6
14847else
14848 echo "$as_me:$LINENO: result: no" >&5
14849echo "${ECHO_T}no" >&6
14850fi
14851
14852 test -n "$LNDIR" && break
14853done
91dea314 14854test -n "$LNDIR" || LNDIR="cp -pR"
bcaab0f9
MW
14855
14856
14857
a848cd7e 14858
2113bc77 14859if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 14860 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
14861fi
14862
4d7ec9f1
DE
14863case "${host}" in
14864 powerpc-*-darwin* )
14865 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14866echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14867 cat >conftest.$ac_ext <<_ACEOF
14868/* confdefs.h. */
14869_ACEOF
14870cat confdefs.h >>conftest.$ac_ext
14871cat >>conftest.$ac_ext <<_ACEOF
14872/* end confdefs.h. */
14873
14874int
14875main ()
14876{
14877#ifndef __POWERPC__
14878 choke me for lack of PowerPC
14879#endif
14880
14881 ;
14882 return 0;
14883}
14884_ACEOF
14885rm -f conftest.$ac_objext
14886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14887 (eval $ac_compile) 2>conftest.er1
14888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
3565d135
RR
14894 { ac_try='test -z "$ac_c_werror_flag"
14895 || test ! -s conftest.err'
4d7ec9f1
DE
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest.$ac_objext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 echo "$as_me:$LINENO: result: yes" >&5
14908echo "${ECHO_T}yes" >&6
14909else
14910 echo "$as_me: failed program was:" >&5
14911sed 's/^/| /' conftest.$ac_ext >&5
14912
14913echo "$as_me:$LINENO: result: no" >&5
14914echo "${ECHO_T}no" >&6
14915 cat >>confdefs.h <<\_ACEOF
14916#define __POWERPC__ 1
14917_ACEOF
14918
14919
14920fi
14921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14922 ;;
14923esac
14924
14925case "${host}" in
14926 *-*-darwin* )
4d7ec9f1
DE
14927 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14928echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14930/* confdefs.h. */
14931_ACEOF
14932cat confdefs.h >>conftest.$ac_ext
14933cat >>conftest.$ac_ext <<_ACEOF
14934/* end confdefs.h. */
14935#include <CoreFoundation/CFBase.h>
14936
14937int
14938main ()
14939{
14940
14941 ;
14942 return 0;
14943}
14944_ACEOF
14945rm -f conftest.$ac_objext
14946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14947 (eval $ac_compile) 2>conftest.er1
14948 ac_status=$?
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
3565d135
RR
14954 { ac_try='test -z "$ac_c_werror_flag"
14955 || test ! -s conftest.err'
4d7ec9f1
DE
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; } &&
14961 { ac_try='test -s conftest.$ac_objext'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 echo "$as_me:$LINENO: result: yes" >&5
14968echo "${ECHO_T}yes" >&6
14969else
14970 echo "$as_me: failed program was:" >&5
14971sed 's/^/| /' conftest.$ac_ext >&5
14972
14973echo "$as_me:$LINENO: result: no" >&5
14974echo "${ECHO_T}no" >&6
14975 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14976echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14977 cat >conftest.$ac_ext <<_ACEOF
14978/* confdefs.h. */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
14982/* end confdefs.h. */
14983#define __CF_USE_FRAMEWORK_INCLUDES__
14984#include <CoreFoundation/CFBase.h>
14985
14986int
14987main ()
14988{
14989
14990 ;
14991 return 0;
14992}
14993_ACEOF
14994rm -f conftest.$ac_objext
14995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14996 (eval $ac_compile) 2>conftest.er1
14997 ac_status=$?
14998 grep -v '^ *+' conftest.er1 >conftest.err
14999 rm -f conftest.er1
15000 cat conftest.err >&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } &&
3565d135
RR
15003 { ac_try='test -z "$ac_c_werror_flag"
15004 || test ! -s conftest.err'
4d7ec9f1
DE
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; } &&
15010 { ac_try='test -s conftest.$ac_objext'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15013 ac_status=$?
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
15016 echo "$as_me:$LINENO: result: yes" >&5
15017echo "${ECHO_T}yes" >&6
c92ad099 15018 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15019else
15020 echo "$as_me: failed program was:" >&5
15021sed 's/^/| /' conftest.$ac_ext >&5
15022
15023{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15024See \`config.log' for more details." >&5
15025echo "$as_me: error: no. CoreFoundation not available.
15026See \`config.log' for more details." >&2;}
15027 { (exit 1); exit 1; }; }
15028
15029fi
15030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15031
15032
15033fi
15034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15035 ;;
15036esac
15037
a848cd7e
SC
15038case "${host}" in
15039 *-pc-os2_emx | *-pc-os2-emx )
15040 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15041 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15042echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15043if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15045else
15046 ac_check_lib_save_LIBS=$LIBS
15047LIBS="-lcExt $LIBS"
15048cat >conftest.$ac_ext <<_ACEOF
15049/* confdefs.h. */
15050_ACEOF
15051cat confdefs.h >>conftest.$ac_ext
15052cat >>conftest.$ac_ext <<_ACEOF
15053/* end confdefs.h. */
15054
15055/* Override any gcc2 internal prototype to avoid an error. */
15056#ifdef __cplusplus
15057extern "C"
15058#endif
15059/* We use char because int might match the return type of a gcc2
15060 builtin and then its argument prototype would still apply. */
15061char drand48 ();
15062int
15063main ()
15064{
15065drand48 ();
15066 ;
15067 return 0;
15068}
15069_ACEOF
15070rm -f conftest.$ac_objext conftest$ac_exeext
15071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15072 (eval $ac_link) 2>conftest.er1
a848cd7e 15073 ac_status=$?
ac1cb8d3
VS
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
a848cd7e
SC
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
3565d135
RR
15079 { ac_try='test -z "$ac_c_werror_flag"
15080 || test ! -s conftest.err'
ac1cb8d3
VS
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; } &&
15086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092 ac_cv_lib_cExt_drand48=yes
15093else
15094 echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
15096
15097ac_cv_lib_cExt_drand48=no
15098fi
ac1cb8d3
VS
15099rm -f conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15101LIBS=$ac_check_lib_save_LIBS
15102fi
15103echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15104echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15105if test $ac_cv_lib_cExt_drand48 = yes; then
15106 LIBS="$LIBS -lcExt"
15107fi
15108
15109 else
15110 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15111 fi
69120ee4
VZ
15112 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15113echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15114if test "${wx_cv_gccversion+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15116else
15117
391a765e
VS
15118 if test "$cross_compiling" = yes; then
15119 wx_cv_gccversion="EMX2"
15120
15121else
15122 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15123/* confdefs.h. */
15124_ACEOF
15125cat confdefs.h >>conftest.$ac_ext
15126cat >>conftest.$ac_ext <<_ACEOF
15127/* end confdefs.h. */
15128
391a765e 15129 #include <stdio.h>
a848cd7e 15130
391a765e
VS
15131 int main()
15132 {
15133 FILE *f=fopen("conftestval", "w");
15134 if (!f) exit(1);
15135 fprintf(f,
a848cd7e 15136 #if (__GNUC__ < 3)
391a765e
VS
15137 "EMX2"
15138 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15139 "EMX3"
15140 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15141 "Innotek5"
15142 #else
15143 "Innotek6"
a848cd7e 15144 #endif
391a765e
VS
15145 );
15146 exit(0);
15147 }
a848cd7e 15148
a848cd7e 15149_ACEOF
391a765e
VS
15150rm -f conftest$ac_exeext
15151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15152 (eval $ac_link) 2>&5
ac1cb8d3
VS
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
391a765e 15161 wx_cv_gccversion=`cat conftestval`
a848cd7e 15162else
391a765e
VS
15163 echo "$as_me: program exited with status $ac_status" >&5
15164echo "$as_me: failed program was:" >&5
a848cd7e
SC
15165sed 's/^/| /' conftest.$ac_ext >&5
15166
391a765e
VS
15167( exit $ac_status )
15168wx_cv_gccversion="EMX2"
a848cd7e 15169fi
391a765e 15170rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15171fi
a848cd7e
SC
15172
15173fi
15174echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15175echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15176 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15177 LIBS="$LIBS -lstdcpp"
15178 LDFLAGS="$LDFLAGS -Zsysv-signals"
15179 else
391a765e 15180 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15181 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15182 LDFLAGS="$LDFLAGS -Zsysv-signals"
15183 else
15184 LIBS="$LIBS -lstdc++"
15185 fi
15186 fi
94acd38e
DE
15187 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15188 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15189echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15190 wxUSE_OMF=yes
2da0c077 15191 enable_omf=yes
a848cd7e
SC
15192 fi
15193 ;;
15194 *)
15195
15196
15197
15198 ac_ext=cc
15199ac_cpp='$CXXCPP $CPPFLAGS'
15200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15203
15204
95986553 15205 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15206echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15207if test "${ac_cv_string_strcasecmp+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15209else
15210
15211 cat >conftest.$ac_ext <<_ACEOF
15212/* confdefs.h. */
15213_ACEOF
15214cat confdefs.h >>conftest.$ac_ext
15215cat >>conftest.$ac_ext <<_ACEOF
15216/* end confdefs.h. */
15217
15218 #include <string.h>
15219
15220int
15221main ()
15222{
15223
15224 strcasecmp("foo", "bar");
15225
15226 ;
15227 return 0;
15228}
15229_ACEOF
15230rm -f conftest.$ac_objext conftest$ac_exeext
15231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15232 (eval $ac_link) 2>conftest.er1
a848cd7e 15233 ac_status=$?
ac1cb8d3
VS
15234 grep -v '^ *+' conftest.er1 >conftest.err
15235 rm -f conftest.er1
15236 cat conftest.err >&5
a848cd7e
SC
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
3565d135
RR
15239 { ac_try='test -z "$ac_cxx_werror_flag"
15240 || test ! -s conftest.err'
ac1cb8d3
VS
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 ac_cv_string_strcasecmp=yes
15253else
15254 echo "$as_me: failed program was:" >&5
15255sed 's/^/| /' conftest.$ac_ext >&5
15256
15257ac_cv_string_strcasecmp=no
15258
15259fi
ac1cb8d3
VS
15260rm -f conftest.err conftest.$ac_objext \
15261 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15262
15263fi
15264echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15265echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15266
15267 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15268 cat >>confdefs.h <<\_ACEOF
15269#define HAVE_STRCASECMP_IN_STRING_H 1
15270_ACEOF
15271
15272 else
15273 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15274echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15275if test "${ac_cv_strings_strcasecmp+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277else
15278
15279 cat >conftest.$ac_ext <<_ACEOF
15280/* confdefs.h. */
15281_ACEOF
15282cat confdefs.h >>conftest.$ac_ext
15283cat >>conftest.$ac_ext <<_ACEOF
15284/* end confdefs.h. */
15285
15286 #include <strings.h>
15287
15288int
15289main ()
15290{
15291
15292 strcasecmp("foo", "bar");
15293
15294 ;
15295 return 0;
15296}
15297_ACEOF
15298rm -f conftest.$ac_objext conftest$ac_exeext
15299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15300 (eval $ac_link) 2>conftest.er1
a848cd7e 15301 ac_status=$?
ac1cb8d3
VS
15302 grep -v '^ *+' conftest.er1 >conftest.err
15303 rm -f conftest.er1
15304 cat conftest.err >&5
a848cd7e
SC
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } &&
3565d135
RR
15307 { ac_try='test -z "$ac_cxx_werror_flag"
15308 || test ! -s conftest.err'
ac1cb8d3
VS
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 ac_cv_strings_strcasecmp=yes
15321else
15322 echo "$as_me: failed program was:" >&5
15323sed 's/^/| /' conftest.$ac_ext >&5
15324
15325ac_cv_strings_strcasecmp=no
15326
15327fi
ac1cb8d3
VS
15328rm -f conftest.err conftest.$ac_objext \
15329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15330
15331fi
15332echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15333echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15334
0c3c69fc 15335 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15336 cat >>confdefs.h <<\_ACEOF
15337#define HAVE_STRCASECMP_IN_STRINGS_H 1
15338_ACEOF
15339
15340 else
15341 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15342echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15343 { (exit 1); exit 1; }; }
15344 fi
15345 fi
15346
15347 ac_ext=c
15348ac_cpp='$CPP $CPPFLAGS'
15349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15351ac_compiler_gnu=$ac_cv_c_compiler_gnu
15352
15353 ;;
15354esac
15355
15356
15357echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15358echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15359if test "${ac_cv_header_stdc+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15361else
15362 cat >conftest.$ac_ext <<_ACEOF
15363/* confdefs.h. */
15364_ACEOF
15365cat confdefs.h >>conftest.$ac_ext
15366cat >>conftest.$ac_ext <<_ACEOF
15367/* end confdefs.h. */
15368#include <stdlib.h>
15369#include <stdarg.h>
15370#include <string.h>
15371#include <float.h>
15372
15373int
15374main ()
15375{
15376
15377 ;
15378 return 0;
15379}
15380_ACEOF
15381rm -f conftest.$ac_objext
15382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15383 (eval $ac_compile) 2>conftest.er1
a848cd7e 15384 ac_status=$?
ac1cb8d3
VS
15385 grep -v '^ *+' conftest.er1 >conftest.err
15386 rm -f conftest.er1
15387 cat conftest.err >&5
a848cd7e
SC
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
3565d135
RR
15390 { ac_try='test -z "$ac_c_werror_flag"
15391 || test ! -s conftest.err'
ac1cb8d3
VS
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_cv_header_stdc=yes
15404else
15405 echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
15408ac_cv_header_stdc=no
15409fi
ac1cb8d3 15410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15411
15412if test $ac_cv_header_stdc = yes; then
15413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15414 cat >conftest.$ac_ext <<_ACEOF
15415/* confdefs.h. */
15416_ACEOF
15417cat confdefs.h >>conftest.$ac_ext
15418cat >>conftest.$ac_ext <<_ACEOF
15419/* end confdefs.h. */
15420#include <string.h>
15421
15422_ACEOF
15423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15424 $EGREP "memchr" >/dev/null 2>&1; then
15425 :
15426else
15427 ac_cv_header_stdc=no
15428fi
15429rm -f conftest*
15430
15431fi
15432
15433if test $ac_cv_header_stdc = yes; then
15434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15435 cat >conftest.$ac_ext <<_ACEOF
15436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
15440/* end confdefs.h. */
15441#include <stdlib.h>
15442
15443_ACEOF
15444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15445 $EGREP "free" >/dev/null 2>&1; then
15446 :
15447else
15448 ac_cv_header_stdc=no
15449fi
15450rm -f conftest*
15451
15452fi
15453
15454if test $ac_cv_header_stdc = yes; then
15455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15456 if test "$cross_compiling" = yes; then
15457 :
15458else
15459 cat >conftest.$ac_ext <<_ACEOF
15460/* confdefs.h. */
15461_ACEOF
15462cat confdefs.h >>conftest.$ac_ext
15463cat >>conftest.$ac_ext <<_ACEOF
15464/* end confdefs.h. */
15465#include <ctype.h>
15466#if ((' ' & 0x0FF) == 0x020)
15467# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15468# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15469#else
15470# define ISLOWER(c) \
ac1cb8d3
VS
15471 (('a' <= (c) && (c) <= 'i') \
15472 || ('j' <= (c) && (c) <= 'r') \
15473 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15474# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15475#endif
15476
15477#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15478int
15479main ()
15480{
15481 int i;
15482 for (i = 0; i < 256; i++)
15483 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15484 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15485 exit(2);
15486 exit (0);
15487}
15488_ACEOF
15489rm -f conftest$ac_exeext
15490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15491 (eval $ac_link) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 :
15501else
15502 echo "$as_me: program exited with status $ac_status" >&5
15503echo "$as_me: failed program was:" >&5
15504sed 's/^/| /' conftest.$ac_ext >&5
15505
15506( exit $ac_status )
15507ac_cv_header_stdc=no
15508fi
ac1cb8d3 15509rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15510fi
15511fi
15512fi
15513echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15514echo "${ECHO_T}$ac_cv_header_stdc" >&6
15515if test $ac_cv_header_stdc = yes; then
15516
15517cat >>confdefs.h <<\_ACEOF
15518#define STDC_HEADERS 1
15519_ACEOF
15520
15521fi
15522
15523# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15534 inttypes.h stdint.h unistd.h
a848cd7e
SC
15535do
15536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15537echo "$as_me:$LINENO: checking for $ac_header" >&5
15538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15539if eval "test \"\${$as_ac_Header+set}\" = set"; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6
15541else
15542 cat >conftest.$ac_ext <<_ACEOF
15543/* confdefs.h. */
15544_ACEOF
15545cat confdefs.h >>conftest.$ac_ext
15546cat >>conftest.$ac_ext <<_ACEOF
15547/* end confdefs.h. */
15548$ac_includes_default
15549
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); } &&
3565d135
RR
15561 { ac_try='test -z "$ac_c_werror_flag"
15562 || test ! -s conftest.err'
ac1cb8d3
VS
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; } &&
15568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 eval "$as_ac_Header=yes"
15575else
15576 echo "$as_me: failed program was:" >&5
15577sed 's/^/| /' conftest.$ac_ext >&5
15578
15579eval "$as_ac_Header=no"
15580fi
ac1cb8d3 15581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15582fi
15583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15585if test `eval echo '${'$as_ac_Header'}'` = yes; then
15586 cat >>confdefs.h <<_ACEOF
15587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15588_ACEOF
15589
15590fi
15591
15592done
15593
15594
15595
15596for ac_header in stdlib.h
15597do
15598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15599if eval "test \"\${$as_ac_Header+set}\" = set"; then
15600 echo "$as_me:$LINENO: checking for $ac_header" >&5
15601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15602if eval "test \"\${$as_ac_Header+set}\" = set"; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15604fi
15605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15607else
15608 # Is the header compilable?
15609echo "$as_me:$LINENO: checking $ac_header usability" >&5
15610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15611cat >conftest.$ac_ext <<_ACEOF
15612/* confdefs.h. */
15613_ACEOF
15614cat confdefs.h >>conftest.$ac_ext
15615cat >>conftest.$ac_ext <<_ACEOF
15616/* end confdefs.h. */
15617$ac_includes_default
15618#include <$ac_header>
15619_ACEOF
15620rm -f conftest.$ac_objext
15621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15622 (eval $ac_compile) 2>conftest.er1
a848cd7e 15623 ac_status=$?
ac1cb8d3
VS
15624 grep -v '^ *+' conftest.er1 >conftest.err
15625 rm -f conftest.er1
15626 cat conftest.err >&5
a848cd7e
SC
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } &&
3565d135
RR
15629 { ac_try='test -z "$ac_c_werror_flag"
15630 || test ! -s conftest.err'
ac1cb8d3
VS
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; } &&
15636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 ac_header_compiler=yes
15643else
15644 echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647ac_header_compiler=no
15648fi
ac1cb8d3 15649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15650echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15651echo "${ECHO_T}$ac_header_compiler" >&6
15652
15653# Is the header present?
15654echo "$as_me:$LINENO: checking $ac_header presence" >&5
15655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15656cat >conftest.$ac_ext <<_ACEOF
15657/* confdefs.h. */
15658_ACEOF
15659cat confdefs.h >>conftest.$ac_ext
15660cat >>conftest.$ac_ext <<_ACEOF
15661/* end confdefs.h. */
15662#include <$ac_header>
15663_ACEOF
15664if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15666 ac_status=$?
15667 grep -v '^ *+' conftest.er1 >conftest.err
15668 rm -f conftest.er1
15669 cat conftest.err >&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } >/dev/null; then
15672 if test -s conftest.err; then
15673 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15675 else
15676 ac_cpp_err=
15677 fi
15678else
15679 ac_cpp_err=yes
15680fi
15681if test -z "$ac_cpp_err"; then
15682 ac_header_preproc=yes
15683else
15684 echo "$as_me: failed program was:" >&5
15685sed 's/^/| /' conftest.$ac_ext >&5
15686
15687 ac_header_preproc=no
15688fi
15689rm -f conftest.err conftest.$ac_ext
15690echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15691echo "${ECHO_T}$ac_header_preproc" >&6
15692
15693# So? What about this header?
ac1cb8d3
VS
15694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15695 yes:no: )
a848cd7e
SC
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15700 ac_header_preproc=yes
a848cd7e 15701 ;;
ac1cb8d3 15702 no:yes:* )
a848cd7e
SC
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15715 (
15716 cat <<\_ASBOX
ac1cb8d3
VS
15717## ----------------------------------------- ##
15718## Report this to wx-dev@lists.wxwidgets.org ##
15719## ----------------------------------------- ##
a848cd7e
SC
15720_ASBOX
15721 ) |
15722 sed "s/^/$as_me: WARNING: /" >&2
15723 ;;
15724esac
15725echo "$as_me:$LINENO: checking for $ac_header" >&5
15726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15727if eval "test \"\${$as_ac_Header+set}\" = set"; then
15728 echo $ECHO_N "(cached) $ECHO_C" >&6
15729else
ac1cb8d3 15730 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15731fi
15732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15734
15735fi
15736if test `eval echo '${'$as_ac_Header'}'` = yes; then
15737 cat >>confdefs.h <<_ACEOF
15738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15739_ACEOF
15740
15741fi
15742
15743done
15744
15745
15746for ac_header in malloc.h
15747do
15748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15749if eval "test \"\${$as_ac_Header+set}\" = set"; then
15750 echo "$as_me:$LINENO: checking for $ac_header" >&5
15751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15752if eval "test \"\${$as_ac_Header+set}\" = set"; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15754fi
15755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15756echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15757else
15758 # Is the header compilable?
15759echo "$as_me:$LINENO: checking $ac_header usability" >&5
15760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15761cat >conftest.$ac_ext <<_ACEOF
15762/* confdefs.h. */
15763_ACEOF
15764cat confdefs.h >>conftest.$ac_ext
15765cat >>conftest.$ac_ext <<_ACEOF
15766/* end confdefs.h. */
15767$ac_includes_default
15768#include <$ac_header>
15769_ACEOF
15770rm -f conftest.$ac_objext
15771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15772 (eval $ac_compile) 2>conftest.er1
a848cd7e 15773 ac_status=$?
ac1cb8d3
VS
15774 grep -v '^ *+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
a848cd7e
SC
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
3565d135
RR
15779 { ac_try='test -z "$ac_c_werror_flag"
15780 || test ! -s conftest.err'
ac1cb8d3
VS
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; } &&
15786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 ac_header_compiler=yes
15793else
15794 echo "$as_me: failed program was:" >&5
15795sed 's/^/| /' conftest.$ac_ext >&5
15796
15797ac_header_compiler=no
15798fi
ac1cb8d3 15799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15800echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15801echo "${ECHO_T}$ac_header_compiler" >&6
15802
15803# Is the header present?
15804echo "$as_me:$LINENO: checking $ac_header presence" >&5
15805echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15806cat >conftest.$ac_ext <<_ACEOF
15807/* confdefs.h. */
15808_ACEOF
15809cat confdefs.h >>conftest.$ac_ext
15810cat >>conftest.$ac_ext <<_ACEOF
15811/* end confdefs.h. */
15812#include <$ac_header>
15813_ACEOF
15814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15816 ac_status=$?
15817 grep -v '^ *+' conftest.er1 >conftest.err
15818 rm -f conftest.er1
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } >/dev/null; then
15822 if test -s conftest.err; then
15823 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15825 else
15826 ac_cpp_err=
15827 fi
15828else
15829 ac_cpp_err=yes
15830fi
15831if test -z "$ac_cpp_err"; then
15832 ac_header_preproc=yes
15833else
15834 echo "$as_me: failed program was:" >&5
15835sed 's/^/| /' conftest.$ac_ext >&5
15836
15837 ac_header_preproc=no
15838fi
15839rm -f conftest.err conftest.$ac_ext
15840echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15841echo "${ECHO_T}$ac_header_preproc" >&6
15842
15843# So? What about this header?
ac1cb8d3
VS
15844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15845 yes:no: )
a848cd7e
SC
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15847echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15849echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15850 ac_header_preproc=yes
a848cd7e 15851 ;;
ac1cb8d3 15852 no:yes:* )
a848cd7e
SC
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15854echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15856echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15858echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15860echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15862echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15864echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15865 (
15866 cat <<\_ASBOX
ac1cb8d3
VS
15867## ----------------------------------------- ##
15868## Report this to wx-dev@lists.wxwidgets.org ##
15869## ----------------------------------------- ##
a848cd7e
SC
15870_ASBOX
15871 ) |
15872 sed "s/^/$as_me: WARNING: /" >&2
15873 ;;
15874esac
15875echo "$as_me:$LINENO: checking for $ac_header" >&5
15876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15877if eval "test \"\${$as_ac_Header+set}\" = set"; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879else
ac1cb8d3 15880 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15881fi
15882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15884
15885fi
15886if test `eval echo '${'$as_ac_Header'}'` = yes; then
15887 cat >>confdefs.h <<_ACEOF
15888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15889_ACEOF
15890
15891fi
15892
15893done
15894
15895
15896for ac_header in unistd.h
15897do
15898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15899if eval "test \"\${$as_ac_Header+set}\" = set"; then
15900 echo "$as_me:$LINENO: checking for $ac_header" >&5
15901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15902if eval "test \"\${$as_ac_Header+set}\" = set"; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15904fi
15905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15907else
15908 # Is the header compilable?
15909echo "$as_me:$LINENO: checking $ac_header usability" >&5
15910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15911cat >conftest.$ac_ext <<_ACEOF
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917$ac_includes_default
15918#include <$ac_header>
15919_ACEOF
15920rm -f conftest.$ac_objext
15921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15922 (eval $ac_compile) 2>conftest.er1
a848cd7e 15923 ac_status=$?
ac1cb8d3
VS
15924 grep -v '^ *+' conftest.er1 >conftest.err
15925 rm -f conftest.er1
15926 cat conftest.err >&5
a848cd7e
SC
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } &&
3565d135
RR
15929 { ac_try='test -z "$ac_c_werror_flag"
15930 || test ! -s conftest.err'
ac1cb8d3
VS
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; } &&
15936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15939 ac_status=$?
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; }; then
15942 ac_header_compiler=yes
15943else
15944 echo "$as_me: failed program was:" >&5
15945sed 's/^/| /' conftest.$ac_ext >&5
15946
15947ac_header_compiler=no
15948fi
ac1cb8d3 15949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15951echo "${ECHO_T}$ac_header_compiler" >&6
15952
15953# Is the header present?
15954echo "$as_me:$LINENO: checking $ac_header presence" >&5
15955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15956cat >conftest.$ac_ext <<_ACEOF
15957/* confdefs.h. */
15958_ACEOF
15959cat confdefs.h >>conftest.$ac_ext
15960cat >>conftest.$ac_ext <<_ACEOF
15961/* end confdefs.h. */
15962#include <$ac_header>
15963_ACEOF
15964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15966 ac_status=$?
15967 grep -v '^ *+' conftest.er1 >conftest.err
15968 rm -f conftest.er1
15969 cat conftest.err >&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } >/dev/null; then
15972 if test -s conftest.err; then
15973 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15975 else
15976 ac_cpp_err=
15977 fi
15978else
15979 ac_cpp_err=yes
15980fi
15981if test -z "$ac_cpp_err"; then
15982 ac_header_preproc=yes
15983else
15984 echo "$as_me: failed program was:" >&5
15985sed 's/^/| /' conftest.$ac_ext >&5
15986
15987 ac_header_preproc=no
15988fi
15989rm -f conftest.err conftest.$ac_ext
15990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15991echo "${ECHO_T}$ac_header_preproc" >&6
15992
15993# So? What about this header?
ac1cb8d3
VS
15994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15995 yes:no: )
a848cd7e
SC
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16000 ac_header_preproc=yes
a848cd7e 16001 ;;
ac1cb8d3 16002 no:yes:* )
a848cd7e
SC
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16015 (
16016 cat <<\_ASBOX
ac1cb8d3
VS
16017## ----------------------------------------- ##
16018## Report this to wx-dev@lists.wxwidgets.org ##
16019## ----------------------------------------- ##
a848cd7e
SC
16020_ASBOX
16021 ) |
16022 sed "s/^/$as_me: WARNING: /" >&2
16023 ;;
16024esac
16025echo "$as_me:$LINENO: checking for $ac_header" >&5
16026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16027if eval "test \"\${$as_ac_Header+set}\" = set"; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16029else
ac1cb8d3 16030 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16031fi
16032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16034
16035fi
16036if test `eval echo '${'$as_ac_Header'}'` = yes; then
16037 cat >>confdefs.h <<_ACEOF
16038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16039_ACEOF
16040
16041fi
16042
16043done
16044
16045
16046for ac_header in wchar.h
16047do
16048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16049if eval "test \"\${$as_ac_Header+set}\" = set"; then
16050 echo "$as_me:$LINENO: checking for $ac_header" >&5
16051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16052if eval "test \"\${$as_ac_Header+set}\" = set"; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16054fi
16055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16057else
16058 # Is the header compilable?
16059echo "$as_me:$LINENO: checking $ac_header usability" >&5
16060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16061cat >conftest.$ac_ext <<_ACEOF
16062/* confdefs.h. */
16063_ACEOF
16064cat confdefs.h >>conftest.$ac_ext
16065cat >>conftest.$ac_ext <<_ACEOF
16066/* end confdefs.h. */
16067$ac_includes_default
16068#include <$ac_header>
16069_ACEOF
16070rm -f conftest.$ac_objext
16071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16072 (eval $ac_compile) 2>conftest.er1
a848cd7e 16073 ac_status=$?
ac1cb8d3
VS
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
a848cd7e
SC
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
3565d135
RR
16079 { ac_try='test -z "$ac_c_werror_flag"
16080 || test ! -s conftest.err'
ac1cb8d3
VS
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_header_compiler=yes
16093else
16094 echo "$as_me: failed program was:" >&5
16095sed 's/^/| /' conftest.$ac_ext >&5
16096
16097ac_header_compiler=no
16098fi
ac1cb8d3 16099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16100echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16101echo "${ECHO_T}$ac_header_compiler" >&6
16102
16103# Is the header present?
16104echo "$as_me:$LINENO: checking $ac_header presence" >&5
16105echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16106cat >conftest.$ac_ext <<_ACEOF
16107/* confdefs.h. */
16108_ACEOF
16109cat confdefs.h >>conftest.$ac_ext
16110cat >>conftest.$ac_ext <<_ACEOF
16111/* end confdefs.h. */
16112#include <$ac_header>
16113_ACEOF
16114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16116 ac_status=$?
16117 grep -v '^ *+' conftest.er1 >conftest.err
16118 rm -f conftest.er1
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } >/dev/null; then
16122 if test -s conftest.err; then
16123 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16125 else
16126 ac_cpp_err=
16127 fi
16128else
16129 ac_cpp_err=yes
16130fi
16131if test -z "$ac_cpp_err"; then
16132 ac_header_preproc=yes
16133else
16134 echo "$as_me: failed program was:" >&5
16135sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 ac_header_preproc=no
16138fi
16139rm -f conftest.err conftest.$ac_ext
16140echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16141echo "${ECHO_T}$ac_header_preproc" >&6
16142
16143# So? What about this header?
ac1cb8d3
VS
16144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16145 yes:no: )
a848cd7e
SC
16146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16150 ac_header_preproc=yes
a848cd7e 16151 ;;
ac1cb8d3 16152 no:yes:* )
a848cd7e
SC
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16156echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16160echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16165 (
16166 cat <<\_ASBOX
ac1cb8d3
VS
16167## ----------------------------------------- ##
16168## Report this to wx-dev@lists.wxwidgets.org ##
16169## ----------------------------------------- ##
a848cd7e
SC
16170_ASBOX
16171 ) |
16172 sed "s/^/$as_me: WARNING: /" >&2
16173 ;;
16174esac
16175echo "$as_me:$LINENO: checking for $ac_header" >&5
16176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16177if eval "test \"\${$as_ac_Header+set}\" = set"; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16179else
ac1cb8d3 16180 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16181fi
16182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16184
16185fi
16186if test `eval echo '${'$as_ac_Header'}'` = yes; then
16187 cat >>confdefs.h <<_ACEOF
16188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16189_ACEOF
16190
16191fi
16192
16193done
16194
16195
16196if test "$ac_cv_header_wchar_h" != "yes"; then
16197
16198for ac_header in wcstr.h
16199do
16200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16201if eval "test \"\${$as_ac_Header+set}\" = set"; then
16202 echo "$as_me:$LINENO: checking for $ac_header" >&5
16203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16204if eval "test \"\${$as_ac_Header+set}\" = set"; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16206fi
16207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16209else
16210 # Is the header compilable?
16211echo "$as_me:$LINENO: checking $ac_header usability" >&5
16212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16213cat >conftest.$ac_ext <<_ACEOF
16214/* confdefs.h. */
16215_ACEOF
16216cat confdefs.h >>conftest.$ac_ext
16217cat >>conftest.$ac_ext <<_ACEOF
16218/* end confdefs.h. */
16219$ac_includes_default
16220#include <$ac_header>
16221_ACEOF
16222rm -f conftest.$ac_objext
16223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16224 (eval $ac_compile) 2>conftest.er1
a848cd7e 16225 ac_status=$?
ac1cb8d3
VS
16226 grep -v '^ *+' conftest.er1 >conftest.err
16227 rm -f conftest.er1
16228 cat conftest.err >&5
a848cd7e
SC
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
3565d135
RR
16231 { ac_try='test -z "$ac_c_werror_flag"
16232 || test ! -s conftest.err'
ac1cb8d3
VS
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16244 ac_header_compiler=yes
16245else
16246 echo "$as_me: failed program was:" >&5
16247sed 's/^/| /' conftest.$ac_ext >&5
16248
16249ac_header_compiler=no
16250fi
ac1cb8d3 16251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16252echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16253echo "${ECHO_T}$ac_header_compiler" >&6
16254
16255# Is the header present?
16256echo "$as_me:$LINENO: checking $ac_header presence" >&5
16257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16258cat >conftest.$ac_ext <<_ACEOF
16259/* confdefs.h. */
16260_ACEOF
16261cat confdefs.h >>conftest.$ac_ext
16262cat >>conftest.$ac_ext <<_ACEOF
16263/* end confdefs.h. */
16264#include <$ac_header>
16265_ACEOF
16266if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } >/dev/null; then
16274 if test -s conftest.err; then
16275 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16277 else
16278 ac_cpp_err=
16279 fi
16280else
16281 ac_cpp_err=yes
16282fi
16283if test -z "$ac_cpp_err"; then
16284 ac_header_preproc=yes
16285else
16286 echo "$as_me: failed program was:" >&5
16287sed 's/^/| /' conftest.$ac_ext >&5
16288
16289 ac_header_preproc=no
16290fi
16291rm -f conftest.err conftest.$ac_ext
16292echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16293echo "${ECHO_T}$ac_header_preproc" >&6
16294
16295# So? What about this header?
ac1cb8d3
VS
16296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16297 yes:no: )
a848cd7e
SC
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16299echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16301echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16302 ac_header_preproc=yes
a848cd7e 16303 ;;
ac1cb8d3 16304 no:yes:* )
a848cd7e
SC
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16306echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16308echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16310echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16312echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16314echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16316echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16317 (
16318 cat <<\_ASBOX
ac1cb8d3
VS
16319## ----------------------------------------- ##
16320## Report this to wx-dev@lists.wxwidgets.org ##
16321## ----------------------------------------- ##
a848cd7e
SC
16322_ASBOX
16323 ) |
16324 sed "s/^/$as_me: WARNING: /" >&2
16325 ;;
16326esac
16327echo "$as_me:$LINENO: checking for $ac_header" >&5
16328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16329if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16331else
ac1cb8d3 16332 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16333fi
16334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16336
16337fi
16338if test `eval echo '${'$as_ac_Header'}'` = yes; then
16339 cat >>confdefs.h <<_ACEOF
16340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16341_ACEOF
16342
16343fi
16344
16345done
16346
16347fi
16348
16349
16350for ac_header in fnmatch.h
16351do
16352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16353if eval "test \"\${$as_ac_Header+set}\" = set"; then
16354 echo "$as_me:$LINENO: checking for $ac_header" >&5
16355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16356if eval "test \"\${$as_ac_Header+set}\" = set"; then
16357 echo $ECHO_N "(cached) $ECHO_C" >&6
16358fi
16359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16361else
16362 # Is the header compilable?
16363echo "$as_me:$LINENO: checking $ac_header usability" >&5
16364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16365cat >conftest.$ac_ext <<_ACEOF
16366/* confdefs.h. */
16367_ACEOF
16368cat confdefs.h >>conftest.$ac_ext
16369cat >>conftest.$ac_ext <<_ACEOF
16370/* end confdefs.h. */
16371$ac_includes_default
16372#include <$ac_header>
16373_ACEOF
16374rm -f conftest.$ac_objext
16375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16376 (eval $ac_compile) 2>conftest.er1
a848cd7e 16377 ac_status=$?
ac1cb8d3
VS
16378 grep -v '^ *+' conftest.er1 >conftest.err
16379 rm -f conftest.er1
16380 cat conftest.err >&5
a848cd7e
SC
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
3565d135
RR
16383 { ac_try='test -z "$ac_c_werror_flag"
16384 || test ! -s conftest.err'
ac1cb8d3
VS
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; } &&
16390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; }; then
16396 ac_header_compiler=yes
16397else
16398 echo "$as_me: failed program was:" >&5
16399sed 's/^/| /' conftest.$ac_ext >&5
16400
16401ac_header_compiler=no
16402fi
ac1cb8d3 16403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16404echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16405echo "${ECHO_T}$ac_header_compiler" >&6
16406
16407# Is the header present?
16408echo "$as_me:$LINENO: checking $ac_header presence" >&5
16409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16410cat >conftest.$ac_ext <<_ACEOF
16411/* confdefs.h. */
16412_ACEOF
16413cat confdefs.h >>conftest.$ac_ext
16414cat >>conftest.$ac_ext <<_ACEOF
16415/* end confdefs.h. */
16416#include <$ac_header>
16417_ACEOF
16418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16420 ac_status=$?
16421 grep -v '^ *+' conftest.er1 >conftest.err
16422 rm -f conftest.er1
16423 cat conftest.err >&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } >/dev/null; then
16426 if test -s conftest.err; then
16427 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16429 else
16430 ac_cpp_err=
16431 fi
16432else
16433 ac_cpp_err=yes
16434fi
16435if test -z "$ac_cpp_err"; then
16436 ac_header_preproc=yes
16437else
16438 echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ac_header_preproc=no
16442fi
16443rm -f conftest.err conftest.$ac_ext
16444echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16445echo "${ECHO_T}$ac_header_preproc" >&6
16446
16447# So? What about this header?
ac1cb8d3
VS
16448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16449 yes:no: )
a848cd7e
SC
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16454 ac_header_preproc=yes
a848cd7e 16455 ;;
ac1cb8d3 16456 no:yes:* )
a848cd7e
SC
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16469 (
16470 cat <<\_ASBOX
ac1cb8d3
VS
16471## ----------------------------------------- ##
16472## Report this to wx-dev@lists.wxwidgets.org ##
16473## ----------------------------------------- ##
a848cd7e
SC
16474_ASBOX
16475 ) |
16476 sed "s/^/$as_me: WARNING: /" >&2
16477 ;;
16478esac
16479echo "$as_me:$LINENO: checking for $ac_header" >&5
16480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16481if eval "test \"\${$as_ac_Header+set}\" = set"; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483else
ac1cb8d3 16484 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16485fi
16486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16488
16489fi
16490if test `eval echo '${'$as_ac_Header'}'` = yes; then
16491 cat >>confdefs.h <<_ACEOF
16492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16493_ACEOF
16494
16495fi
16496
16497done
16498
16499
a848cd7e
SC
16500
16501for ac_header in langinfo.h
16502do
16503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16504if eval "test \"\${$as_ac_Header+set}\" = set"; then
16505 echo "$as_me:$LINENO: checking for $ac_header" >&5
16506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16507if eval "test \"\${$as_ac_Header+set}\" = set"; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16509fi
16510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16512else
16513 # Is the header compilable?
16514echo "$as_me:$LINENO: checking $ac_header usability" >&5
16515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16516cat >conftest.$ac_ext <<_ACEOF
16517/* confdefs.h. */
16518_ACEOF
16519cat confdefs.h >>conftest.$ac_ext
16520cat >>conftest.$ac_ext <<_ACEOF
16521/* end confdefs.h. */
16522$ac_includes_default
16523#include <$ac_header>
16524_ACEOF
16525rm -f conftest.$ac_objext
16526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16527 (eval $ac_compile) 2>conftest.er1
a848cd7e 16528 ac_status=$?
ac1cb8d3
VS
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
a848cd7e
SC
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
3565d135
RR
16534 { ac_try='test -z "$ac_c_werror_flag"
16535 || test ! -s conftest.err'
ac1cb8d3
VS
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; } &&
16541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16544 ac_status=$?
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; }; then
16547 ac_header_compiler=yes
16548else
16549 echo "$as_me: failed program was:" >&5
16550sed 's/^/| /' conftest.$ac_ext >&5
16551
16552ac_header_compiler=no
16553fi
ac1cb8d3 16554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16555echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16556echo "${ECHO_T}$ac_header_compiler" >&6
16557
16558# Is the header present?
16559echo "$as_me:$LINENO: checking $ac_header presence" >&5
16560echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16561cat >conftest.$ac_ext <<_ACEOF
16562/* confdefs.h. */
16563_ACEOF
16564cat confdefs.h >>conftest.$ac_ext
16565cat >>conftest.$ac_ext <<_ACEOF
16566/* end confdefs.h. */
16567#include <$ac_header>
16568_ACEOF
16569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16571 ac_status=$?
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } >/dev/null; then
16577 if test -s conftest.err; then
16578 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16580 else
16581 ac_cpp_err=
16582 fi
16583else
16584 ac_cpp_err=yes
16585fi
16586if test -z "$ac_cpp_err"; then
16587 ac_header_preproc=yes
16588else
16589 echo "$as_me: failed program was:" >&5
16590sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 ac_header_preproc=no
16593fi
16594rm -f conftest.err conftest.$ac_ext
16595echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16596echo "${ECHO_T}$ac_header_preproc" >&6
16597
16598# So? What about this header?
ac1cb8d3
VS
16599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16600 yes:no: )
a848cd7e
SC
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16605 ac_header_preproc=yes
a848cd7e 16606 ;;
ac1cb8d3 16607 no:yes:* )
a848cd7e
SC
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16620 (
16621 cat <<\_ASBOX
ac1cb8d3
VS
16622## ----------------------------------------- ##
16623## Report this to wx-dev@lists.wxwidgets.org ##
16624## ----------------------------------------- ##
a848cd7e
SC
16625_ASBOX
16626 ) |
16627 sed "s/^/$as_me: WARNING: /" >&2
16628 ;;
16629esac
16630echo "$as_me:$LINENO: checking for $ac_header" >&5
16631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16632if eval "test \"\${$as_ac_Header+set}\" = set"; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634else
ac1cb8d3 16635 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16636fi
16637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16639
16640fi
16641if test `eval echo '${'$as_ac_Header'}'` = yes; then
16642 cat >>confdefs.h <<_ACEOF
16643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16644_ACEOF
16645
16646fi
16647
16648done
16649
16650
16651case "${host}" in
16652 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16653 if test $ac_cv_header_langinfo_h = "yes" \
16654 -a \( "$wx_cv_gccversion" = "EMX2" \
16655 -o "$wx_cv_gccversion" = "EMX3" \
16656 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16657 LIBS="$LIBS -lintl"
16658 fi
16659 ;;
16660esac
16661
a848cd7e
SC
16662
16663echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16664echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16665if test "${ac_cv_c_const+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16667else
16668 cat >conftest.$ac_ext <<_ACEOF
16669/* confdefs.h. */
16670_ACEOF
16671cat confdefs.h >>conftest.$ac_ext
16672cat >>conftest.$ac_ext <<_ACEOF
16673/* end confdefs.h. */
16674
16675int
16676main ()
16677{
16678/* FIXME: Include the comments suggested by Paul. */
16679#ifndef __cplusplus
16680 /* Ultrix mips cc rejects this. */
16681 typedef int charset[2];
16682 const charset x;
16683 /* SunOS 4.1.1 cc rejects this. */
16684 char const *const *ccp;
16685 char **p;
16686 /* NEC SVR4.0.2 mips cc rejects this. */
16687 struct point {int x, y;};
16688 static struct point const zero = {0,0};
16689 /* AIX XL C 1.02.0.0 rejects this.
16690 It does not let you subtract one const X* pointer from another in
16691 an arm of an if-expression whose if-part is not a constant
16692 expression */
16693 const char *g = "string";
16694 ccp = &g + (g ? g-g : 0);
16695 /* HPUX 7.0 cc rejects these. */
16696 ++ccp;
16697 p = (char**) ccp;
16698 ccp = (char const *const *) p;
16699 { /* SCO 3.2v4 cc rejects this. */
16700 char *t;
16701 char const *s = 0 ? (char *) 0 : (char const *) 0;
16702
16703 *t++ = 0;
16704 }
16705 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16706 int x[] = {25, 17};
16707 const int *foo = &x[0];
16708 ++foo;
16709 }
16710 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16711 typedef const int *iptr;
16712 iptr p = 0;
16713 ++p;
16714 }
16715 { /* AIX XL C 1.02.0.0 rejects this saying
16716 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16717 struct s { int j; const int *ap[3]; };
16718 struct s *b; b->j = 5;
16719 }
16720 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16721 const int foo = 10;
16722 }
16723#endif
16724
16725 ;
16726 return 0;
16727}
16728_ACEOF
16729rm -f conftest.$ac_objext
16730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16731 (eval $ac_compile) 2>conftest.er1
a848cd7e 16732 ac_status=$?
ac1cb8d3
VS
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
a848cd7e
SC
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
3565d135
RR
16738 { ac_try='test -z "$ac_c_werror_flag"
16739 || test ! -s conftest.err'
ac1cb8d3
VS
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 ac_cv_c_const=yes
16752else
16753 echo "$as_me: failed program was:" >&5
16754sed 's/^/| /' conftest.$ac_ext >&5
16755
16756ac_cv_c_const=no
16757fi
ac1cb8d3 16758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16759fi
16760echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16761echo "${ECHO_T}$ac_cv_c_const" >&6
16762if test $ac_cv_c_const = no; then
16763
16764cat >>confdefs.h <<\_ACEOF
16765#define const
16766_ACEOF
16767
16768fi
16769
16770echo "$as_me:$LINENO: checking for inline" >&5
16771echo $ECHO_N "checking for inline... $ECHO_C" >&6
16772if test "${ac_cv_c_inline+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16774else
16775 ac_cv_c_inline=no
16776for ac_kw in inline __inline__ __inline; do
16777 cat >conftest.$ac_ext <<_ACEOF
16778/* confdefs.h. */
16779_ACEOF
16780cat confdefs.h >>conftest.$ac_ext
16781cat >>conftest.$ac_ext <<_ACEOF
16782/* end confdefs.h. */
16783#ifndef __cplusplus
16784typedef int foo_t;
16785static $ac_kw foo_t static_foo () {return 0; }
16786$ac_kw foo_t foo () {return 0; }
16787#endif
16788
16789_ACEOF
16790rm -f conftest.$ac_objext
16791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16792 (eval $ac_compile) 2>conftest.er1
a848cd7e 16793 ac_status=$?
ac1cb8d3
VS
16794 grep -v '^ *+' conftest.er1 >conftest.err
16795 rm -f conftest.er1
16796 cat conftest.err >&5
a848cd7e
SC
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } &&
3565d135
RR
16799 { ac_try='test -z "$ac_c_werror_flag"
16800 || test ! -s conftest.err'
ac1cb8d3
VS
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16803 ac_status=$?
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; } &&
16806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16812 ac_cv_c_inline=$ac_kw; break
16813else
16814 echo "$as_me: failed program was:" >&5
16815sed 's/^/| /' conftest.$ac_ext >&5
16816
16817fi
ac1cb8d3 16818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16819done
16820
16821fi
16822echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16823echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16824
16825
a848cd7e
SC
16826case $ac_cv_c_inline in
16827 inline | yes) ;;
ac1cb8d3
VS
16828 *)
16829 case $ac_cv_c_inline in
16830 no) ac_val=;;
16831 *) ac_val=$ac_cv_c_inline;;
16832 esac
16833 cat >>confdefs.h <<_ACEOF
16834#ifndef __cplusplus
16835#define inline $ac_val
16836#endif
de59c161 16837_ACEOF
ac1cb8d3 16838 ;;
a848cd7e
SC
16839esac
16840
16841
16842echo "$as_me:$LINENO: checking for char" >&5
16843echo $ECHO_N "checking for char... $ECHO_C" >&6
16844if test "${ac_cv_type_char+set}" = set; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16846else
16847 cat >conftest.$ac_ext <<_ACEOF
16848/* confdefs.h. */
16849_ACEOF
16850cat confdefs.h >>conftest.$ac_ext
16851cat >>conftest.$ac_ext <<_ACEOF
16852/* end confdefs.h. */
16853$ac_includes_default
16854int
16855main ()
16856{
16857if ((char *) 0)
16858 return 0;
16859if (sizeof (char))
16860 return 0;
16861 ;
16862 return 0;
16863}
16864_ACEOF
16865rm -f conftest.$ac_objext
16866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16867 (eval $ac_compile) 2>conftest.er1
a848cd7e 16868 ac_status=$?
ac1cb8d3
VS
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
a848cd7e
SC
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
3565d135
RR
16874 { ac_try='test -z "$ac_c_werror_flag"
16875 || test ! -s conftest.err'
ac1cb8d3
VS
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; } &&
16881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 ac_cv_type_char=yes
16888else
16889 echo "$as_me: failed program was:" >&5
16890sed 's/^/| /' conftest.$ac_ext >&5
16891
16892ac_cv_type_char=no
16893fi
ac1cb8d3 16894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16895fi
16896echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16897echo "${ECHO_T}$ac_cv_type_char" >&6
16898
16899echo "$as_me:$LINENO: checking size of char" >&5
16900echo $ECHO_N "checking size of char... $ECHO_C" >&6
16901if test "${ac_cv_sizeof_char+set}" = set; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16903else
16904 if test "$ac_cv_type_char" = yes; then
16905 # The cast to unsigned long works around a bug in the HP C Compiler
16906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16908 # This bug is HP SR number 8606223364.
16909 if test "$cross_compiling" = yes; then
16910 # Depending upon the size, compute the lo and hi bounds.
16911cat >conftest.$ac_ext <<_ACEOF
16912/* confdefs.h. */
16913_ACEOF
16914cat confdefs.h >>conftest.$ac_ext
16915cat >>conftest.$ac_ext <<_ACEOF
16916/* end confdefs.h. */
16917$ac_includes_default
16918int
16919main ()
16920{
16921static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16922test_array [0] = 0
16923
16924 ;
16925 return 0;
16926}
16927_ACEOF
16928rm -f conftest.$ac_objext
16929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16930 (eval $ac_compile) 2>conftest.er1
a848cd7e 16931 ac_status=$?
ac1cb8d3
VS
16932 grep -v '^ *+' conftest.er1 >conftest.err
16933 rm -f conftest.er1
16934 cat conftest.err >&5
a848cd7e
SC
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
3565d135
RR
16937 { ac_try='test -z "$ac_c_werror_flag"
16938 || test ! -s conftest.err'
ac1cb8d3
VS
16939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; } &&
16944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 ac_lo=0 ac_mid=0
16951 while :; do
16952 cat >conftest.$ac_ext <<_ACEOF
16953/* confdefs.h. */
16954_ACEOF
16955cat confdefs.h >>conftest.$ac_ext
16956cat >>conftest.$ac_ext <<_ACEOF
16957/* end confdefs.h. */
16958$ac_includes_default
16959int
16960main ()
16961{
16962static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16963test_array [0] = 0
16964
16965 ;
16966 return 0;
16967}
16968_ACEOF
16969rm -f conftest.$ac_objext
16970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16971 (eval $ac_compile) 2>conftest.er1
a848cd7e 16972 ac_status=$?
ac1cb8d3
VS
16973 grep -v '^ *+' conftest.er1 >conftest.err
16974 rm -f conftest.er1
16975 cat conftest.err >&5
a848cd7e
SC
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
3565d135
RR
16978 { ac_try='test -z "$ac_c_werror_flag"
16979 || test ! -s conftest.err'
ac1cb8d3
VS
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_hi=$ac_mid; break
16992else
16993 echo "$as_me: failed program was:" >&5
16994sed 's/^/| /' conftest.$ac_ext >&5
16995
16996ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16997 if test $ac_lo -le $ac_mid; then
16998 ac_lo= ac_hi=
16999 break
17000 fi
17001 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17002fi
ac1cb8d3 17003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17004 done
17005else
17006 echo "$as_me: failed program was:" >&5
17007sed 's/^/| /' conftest.$ac_ext >&5
17008
17009cat >conftest.$ac_ext <<_ACEOF
17010/* confdefs.h. */
17011_ACEOF
17012cat confdefs.h >>conftest.$ac_ext
17013cat >>conftest.$ac_ext <<_ACEOF
17014/* end confdefs.h. */
17015$ac_includes_default
17016int
17017main ()
17018{
17019static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17020test_array [0] = 0
17021
17022 ;
17023 return 0;
17024}
17025_ACEOF
17026rm -f conftest.$ac_objext
17027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17028 (eval $ac_compile) 2>conftest.er1
a848cd7e 17029 ac_status=$?
ac1cb8d3
VS
17030 grep -v '^ *+' conftest.er1 >conftest.err
17031 rm -f conftest.er1
17032 cat conftest.err >&5
a848cd7e
SC
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } &&
3565d135
RR
17035 { ac_try='test -z "$ac_c_werror_flag"
17036 || test ! -s conftest.err'
ac1cb8d3
VS
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; } &&
17042 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 ac_hi=-1 ac_mid=-1
17049 while :; do
17050 cat >conftest.$ac_ext <<_ACEOF
17051/* confdefs.h. */
17052_ACEOF
17053cat confdefs.h >>conftest.$ac_ext
17054cat >>conftest.$ac_ext <<_ACEOF
17055/* end confdefs.h. */
17056$ac_includes_default
17057int
17058main ()
17059{
17060static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17061test_array [0] = 0
17062
17063 ;
17064 return 0;
17065}
17066_ACEOF
17067rm -f conftest.$ac_objext
17068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17069 (eval $ac_compile) 2>conftest.er1
a848cd7e 17070 ac_status=$?
ac1cb8d3
VS
17071 grep -v '^ *+' conftest.er1 >conftest.err
17072 rm -f conftest.er1
17073 cat conftest.err >&5
a848cd7e
SC
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
3565d135
RR
17076 { ac_try='test -z "$ac_c_werror_flag"
17077 || test ! -s conftest.err'
ac1cb8d3
VS
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; } &&
17083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
17089 ac_lo=$ac_mid; break
17090else
17091 echo "$as_me: failed program was:" >&5
17092sed 's/^/| /' conftest.$ac_ext >&5
17093
17094ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17095 if test $ac_mid -le $ac_hi; then
17096 ac_lo= ac_hi=
17097 break
17098 fi
17099 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17100fi
ac1cb8d3 17101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17102 done
17103else
17104 echo "$as_me: failed program was:" >&5
17105sed 's/^/| /' conftest.$ac_ext >&5
17106
17107ac_lo= ac_hi=
17108fi
ac1cb8d3 17109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17110fi
ac1cb8d3 17111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17112# Binary search between lo and hi bounds.
17113while test "x$ac_lo" != "x$ac_hi"; do
17114 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17115 cat >conftest.$ac_ext <<_ACEOF
17116/* confdefs.h. */
17117_ACEOF
17118cat confdefs.h >>conftest.$ac_ext
17119cat >>conftest.$ac_ext <<_ACEOF
17120/* end confdefs.h. */
17121$ac_includes_default
17122int
17123main ()
17124{
17125static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17126test_array [0] = 0
17127
17128 ;
17129 return 0;
17130}
17131_ACEOF
17132rm -f conftest.$ac_objext
17133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17134 (eval $ac_compile) 2>conftest.er1
a848cd7e 17135 ac_status=$?
ac1cb8d3
VS
17136 grep -v '^ *+' conftest.er1 >conftest.err
17137 rm -f conftest.er1
17138 cat conftest.err >&5
a848cd7e
SC
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
3565d135
RR
17141 { ac_try='test -z "$ac_c_werror_flag"
17142 || test ! -s conftest.err'
ac1cb8d3
VS
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 ac_hi=$ac_mid
17155else
17156 echo "$as_me: failed program was:" >&5
17157sed 's/^/| /' conftest.$ac_ext >&5
17158
17159ac_lo=`expr '(' $ac_mid ')' + 1`
17160fi
ac1cb8d3 17161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17162done
17163case $ac_lo in
17164?*) ac_cv_sizeof_char=$ac_lo;;
17165'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17166See \`config.log' for more details." >&5
17167echo "$as_me: error: cannot compute sizeof (char), 77
17168See \`config.log' for more details." >&2;}
17169 { (exit 1); exit 1; }; } ;;
17170esac
17171else
17172 if test "$cross_compiling" = yes; then
3565d135
RR
17173 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17174See \`config.log' for more details." >&5
17175echo "$as_me: error: cannot run test program while cross compiling
17176See \`config.log' for more details." >&2;}
a848cd7e
SC
17177 { (exit 1); exit 1; }; }
17178else
17179 cat >conftest.$ac_ext <<_ACEOF
17180/* confdefs.h. */
17181_ACEOF
17182cat confdefs.h >>conftest.$ac_ext
17183cat >>conftest.$ac_ext <<_ACEOF
17184/* end confdefs.h. */
17185$ac_includes_default
17186long longval () { return (long) (sizeof (char)); }
17187unsigned long ulongval () { return (long) (sizeof (char)); }
17188#include <stdio.h>
17189#include <stdlib.h>
17190int
17191main ()
17192{
17193
17194 FILE *f = fopen ("conftest.val", "w");
17195 if (! f)
17196 exit (1);
17197 if (((long) (sizeof (char))) < 0)
17198 {
17199 long i = longval ();
17200 if (i != ((long) (sizeof (char))))
17201 exit (1);
17202 fprintf (f, "%ld\n", i);
17203 }
17204 else
17205 {
17206 unsigned long i = ulongval ();
17207 if (i != ((long) (sizeof (char))))
17208 exit (1);
17209 fprintf (f, "%lu\n", i);
17210 }
17211 exit (ferror (f) || fclose (f) != 0);
17212
17213 ;
17214 return 0;
17215}
17216_ACEOF
17217rm -f conftest$ac_exeext
17218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17219 (eval $ac_link) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; }; then
17228 ac_cv_sizeof_char=`cat conftest.val`
17229else
17230 echo "$as_me: program exited with status $ac_status" >&5
17231echo "$as_me: failed program was:" >&5
17232sed 's/^/| /' conftest.$ac_ext >&5
17233
17234( exit $ac_status )
17235{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17236See \`config.log' for more details." >&5
17237echo "$as_me: error: cannot compute sizeof (char), 77
17238See \`config.log' for more details." >&2;}
17239 { (exit 1); exit 1; }; }
17240fi
ac1cb8d3 17241rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17242fi
17243fi
17244rm -f conftest.val
17245else
17246 ac_cv_sizeof_char=0
17247fi
17248fi
17249echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17250echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17251cat >>confdefs.h <<_ACEOF
17252#define SIZEOF_CHAR $ac_cv_sizeof_char
17253_ACEOF
17254
17255
17256echo "$as_me:$LINENO: checking for short" >&5
17257echo $ECHO_N "checking for short... $ECHO_C" >&6
17258if test "${ac_cv_type_short+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17260else
17261 cat >conftest.$ac_ext <<_ACEOF
17262/* confdefs.h. */
17263_ACEOF
17264cat confdefs.h >>conftest.$ac_ext
17265cat >>conftest.$ac_ext <<_ACEOF
17266/* end confdefs.h. */
17267$ac_includes_default
17268int
17269main ()
17270{
17271if ((short *) 0)
17272 return 0;
17273if (sizeof (short))
17274 return 0;
17275 ;
17276 return 0;
17277}
17278_ACEOF
17279rm -f conftest.$ac_objext
17280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17281 (eval $ac_compile) 2>conftest.er1
a848cd7e 17282 ac_status=$?
ac1cb8d3
VS
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
a848cd7e
SC
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
3565d135
RR
17288 { ac_try='test -z "$ac_c_werror_flag"
17289 || test ! -s conftest.err'
ac1cb8d3
VS
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_type_short=yes
17302else
17303 echo "$as_me: failed program was:" >&5
17304sed 's/^/| /' conftest.$ac_ext >&5
17305
17306ac_cv_type_short=no
17307fi
ac1cb8d3 17308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17309fi
17310echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17311echo "${ECHO_T}$ac_cv_type_short" >&6
17312
17313echo "$as_me:$LINENO: checking size of short" >&5
17314echo $ECHO_N "checking size of short... $ECHO_C" >&6
17315if test "${ac_cv_sizeof_short+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17317else
17318 if test "$ac_cv_type_short" = yes; then
17319 # The cast to unsigned long works around a bug in the HP C Compiler
17320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17322 # This bug is HP SR number 8606223364.
17323 if test "$cross_compiling" = yes; then
17324 # Depending upon the size, compute the lo and hi bounds.
17325cat >conftest.$ac_ext <<_ACEOF
17326/* confdefs.h. */
17327_ACEOF
17328cat confdefs.h >>conftest.$ac_ext
17329cat >>conftest.$ac_ext <<_ACEOF
17330/* end confdefs.h. */
17331$ac_includes_default
17332int
17333main ()
17334{
17335static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17336test_array [0] = 0
17337
17338 ;
17339 return 0;
17340}
17341_ACEOF
17342rm -f conftest.$ac_objext
17343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17344 (eval $ac_compile) 2>conftest.er1
a848cd7e 17345 ac_status=$?
ac1cb8d3
VS
17346 grep -v '^ *+' conftest.er1 >conftest.err
17347 rm -f conftest.er1
17348 cat conftest.err >&5
a848cd7e
SC
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } &&
3565d135
RR
17351 { ac_try='test -z "$ac_c_werror_flag"
17352 || test ! -s conftest.err'
ac1cb8d3
VS
17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354 (eval $ac_try) 2>&5
17355 ac_status=$?
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; } &&
17358 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; }; then
17364 ac_lo=0 ac_mid=0
17365 while :; do
17366 cat >conftest.$ac_ext <<_ACEOF
17367/* confdefs.h. */
17368_ACEOF
17369cat confdefs.h >>conftest.$ac_ext
17370cat >>conftest.$ac_ext <<_ACEOF
17371/* end confdefs.h. */
17372$ac_includes_default
17373int
17374main ()
17375{
17376static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17377test_array [0] = 0
17378
17379 ;
17380 return 0;
17381}
17382_ACEOF
17383rm -f conftest.$ac_objext
17384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17385 (eval $ac_compile) 2>conftest.er1
a848cd7e 17386 ac_status=$?
ac1cb8d3
VS
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
a848cd7e
SC
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
3565d135
RR
17392 { ac_try='test -z "$ac_c_werror_flag"
17393 || test ! -s conftest.err'
ac1cb8d3
VS
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17405 ac_hi=$ac_mid; break
17406else
17407 echo "$as_me: failed program was:" >&5
17408sed 's/^/| /' conftest.$ac_ext >&5
17409
17410ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17411 if test $ac_lo -le $ac_mid; then
17412 ac_lo= ac_hi=
17413 break
17414 fi
17415 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17416fi
ac1cb8d3 17417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17418 done
17419else
17420 echo "$as_me: failed program was:" >&5
17421sed 's/^/| /' conftest.$ac_ext >&5
17422
17423cat >conftest.$ac_ext <<_ACEOF
17424/* confdefs.h. */
17425_ACEOF
17426cat confdefs.h >>conftest.$ac_ext
17427cat >>conftest.$ac_ext <<_ACEOF
17428/* end confdefs.h. */
17429$ac_includes_default
17430int
17431main ()
17432{
17433static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17434test_array [0] = 0
17435
17436 ;
17437 return 0;
17438}
17439_ACEOF
17440rm -f conftest.$ac_objext
17441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17442 (eval $ac_compile) 2>conftest.er1
a848cd7e 17443 ac_status=$?
ac1cb8d3
VS
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
a848cd7e
SC
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } &&
3565d135
RR
17449 { ac_try='test -z "$ac_c_werror_flag"
17450 || test ! -s conftest.err'
ac1cb8d3
VS
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; }; then
17462 ac_hi=-1 ac_mid=-1
17463 while :; do
17464 cat >conftest.$ac_ext <<_ACEOF
17465/* confdefs.h. */
17466_ACEOF
17467cat confdefs.h >>conftest.$ac_ext
17468cat >>conftest.$ac_ext <<_ACEOF
17469/* end confdefs.h. */
17470$ac_includes_default
17471int
17472main ()
17473{
17474static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17475test_array [0] = 0
17476
17477 ;
17478 return 0;
17479}
17480_ACEOF
17481rm -f conftest.$ac_objext
17482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17483 (eval $ac_compile) 2>conftest.er1
a848cd7e 17484 ac_status=$?
ac1cb8d3
VS
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
a848cd7e
SC
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
3565d135
RR
17490 { ac_try='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
ac1cb8d3
VS
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_lo=$ac_mid; break
17504else
17505 echo "$as_me: failed program was:" >&5
17506sed 's/^/| /' conftest.$ac_ext >&5
17507
17508ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17509 if test $ac_mid -le $ac_hi; then
17510 ac_lo= ac_hi=
17511 break
17512 fi
17513 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17514fi
ac1cb8d3 17515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17516 done
17517else
17518 echo "$as_me: failed program was:" >&5
17519sed 's/^/| /' conftest.$ac_ext >&5
17520
17521ac_lo= ac_hi=
17522fi
ac1cb8d3 17523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17524fi
ac1cb8d3 17525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17526# Binary search between lo and hi bounds.
17527while test "x$ac_lo" != "x$ac_hi"; do
17528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17529 cat >conftest.$ac_ext <<_ACEOF
17530/* confdefs.h. */
17531_ACEOF
17532cat confdefs.h >>conftest.$ac_ext
17533cat >>conftest.$ac_ext <<_ACEOF
17534/* end confdefs.h. */
17535$ac_includes_default
17536int
17537main ()
17538{
17539static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17540test_array [0] = 0
17541
17542 ;
17543 return 0;
17544}
17545_ACEOF
17546rm -f conftest.$ac_objext
17547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17548 (eval $ac_compile) 2>conftest.er1
a848cd7e 17549 ac_status=$?
ac1cb8d3
VS
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
a848cd7e
SC
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
3565d135
RR
17555 { ac_try='test -z "$ac_c_werror_flag"
17556 || test ! -s conftest.err'
ac1cb8d3
VS
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17568 ac_hi=$ac_mid
17569else
17570 echo "$as_me: failed program was:" >&5
17571sed 's/^/| /' conftest.$ac_ext >&5
17572
17573ac_lo=`expr '(' $ac_mid ')' + 1`
17574fi
ac1cb8d3 17575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17576done
17577case $ac_lo in
17578?*) ac_cv_sizeof_short=$ac_lo;;
17579'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17580See \`config.log' for more details." >&5
17581echo "$as_me: error: cannot compute sizeof (short), 77
17582See \`config.log' for more details." >&2;}
17583 { (exit 1); exit 1; }; } ;;
17584esac
17585else
17586 if test "$cross_compiling" = yes; then
3565d135
RR
17587 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17588See \`config.log' for more details." >&5
17589echo "$as_me: error: cannot run test program while cross compiling
17590See \`config.log' for more details." >&2;}
a848cd7e
SC
17591 { (exit 1); exit 1; }; }
17592else
17593 cat >conftest.$ac_ext <<_ACEOF
17594/* confdefs.h. */
17595_ACEOF
17596cat confdefs.h >>conftest.$ac_ext
17597cat >>conftest.$ac_ext <<_ACEOF
17598/* end confdefs.h. */
17599$ac_includes_default
17600long longval () { return (long) (sizeof (short)); }
17601unsigned long ulongval () { return (long) (sizeof (short)); }
17602#include <stdio.h>
17603#include <stdlib.h>
17604int
17605main ()
17606{
17607
17608 FILE *f = fopen ("conftest.val", "w");
17609 if (! f)
17610 exit (1);
17611 if (((long) (sizeof (short))) < 0)
17612 {
17613 long i = longval ();
17614 if (i != ((long) (sizeof (short))))
17615 exit (1);
17616 fprintf (f, "%ld\n", i);
17617 }
17618 else
17619 {
17620 unsigned long i = ulongval ();
17621 if (i != ((long) (sizeof (short))))
17622 exit (1);
17623 fprintf (f, "%lu\n", i);
17624 }
17625 exit (ferror (f) || fclose (f) != 0);
17626
17627 ;
17628 return 0;
17629}
17630_ACEOF
17631rm -f conftest$ac_exeext
17632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17633 (eval $ac_link) 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; }; then
17642 ac_cv_sizeof_short=`cat conftest.val`
17643else
17644 echo "$as_me: program exited with status $ac_status" >&5
17645echo "$as_me: failed program was:" >&5
17646sed 's/^/| /' conftest.$ac_ext >&5
17647
17648( exit $ac_status )
17649{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17650See \`config.log' for more details." >&5
17651echo "$as_me: error: cannot compute sizeof (short), 77
17652See \`config.log' for more details." >&2;}
17653 { (exit 1); exit 1; }; }
17654fi
ac1cb8d3 17655rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17656fi
17657fi
17658rm -f conftest.val
17659else
17660 ac_cv_sizeof_short=0
17661fi
17662fi
17663echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17664echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17665cat >>confdefs.h <<_ACEOF
17666#define SIZEOF_SHORT $ac_cv_sizeof_short
17667_ACEOF
17668
17669
17670echo "$as_me:$LINENO: checking for void *" >&5
17671echo $ECHO_N "checking for void *... $ECHO_C" >&6
17672if test "${ac_cv_type_void_p+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17674else
17675 cat >conftest.$ac_ext <<_ACEOF
17676/* confdefs.h. */
17677_ACEOF
17678cat confdefs.h >>conftest.$ac_ext
17679cat >>conftest.$ac_ext <<_ACEOF
17680/* end confdefs.h. */
17681$ac_includes_default
17682int
17683main ()
17684{
17685if ((void * *) 0)
17686 return 0;
17687if (sizeof (void *))
17688 return 0;
17689 ;
17690 return 0;
17691}
17692_ACEOF
17693rm -f conftest.$ac_objext
17694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17695 (eval $ac_compile) 2>conftest.er1
a848cd7e 17696 ac_status=$?
ac1cb8d3
VS
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
a848cd7e
SC
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
3565d135
RR
17702 { ac_try='test -z "$ac_c_werror_flag"
17703 || test ! -s conftest.err'
ac1cb8d3
VS
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 ac_cv_type_void_p=yes
17716else
17717 echo "$as_me: failed program was:" >&5
17718sed 's/^/| /' conftest.$ac_ext >&5
17719
17720ac_cv_type_void_p=no
17721fi
ac1cb8d3 17722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17723fi
17724echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17725echo "${ECHO_T}$ac_cv_type_void_p" >&6
17726
17727echo "$as_me:$LINENO: checking size of void *" >&5
17728echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17729if test "${ac_cv_sizeof_void_p+set}" = set; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
17731else
17732 if test "$ac_cv_type_void_p" = yes; then
17733 # The cast to unsigned long works around a bug in the HP C Compiler
17734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17736 # This bug is HP SR number 8606223364.
17737 if test "$cross_compiling" = yes; then
17738 # Depending upon the size, compute the lo and hi bounds.
17739cat >conftest.$ac_ext <<_ACEOF
17740/* confdefs.h. */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h. */
17745$ac_includes_default
17746int
17747main ()
17748{
17749static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17750test_array [0] = 0
17751
17752 ;
17753 return 0;
17754}
17755_ACEOF
17756rm -f conftest.$ac_objext
17757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17758 (eval $ac_compile) 2>conftest.er1
a848cd7e 17759 ac_status=$?
ac1cb8d3
VS
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
a848cd7e
SC
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
3565d135
RR
17765 { ac_try='test -z "$ac_c_werror_flag"
17766 || test ! -s conftest.err'
ac1cb8d3
VS
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_lo=0 ac_mid=0
17779 while :; do
17780 cat >conftest.$ac_ext <<_ACEOF
17781/* confdefs.h. */
17782_ACEOF
17783cat confdefs.h >>conftest.$ac_ext
17784cat >>conftest.$ac_ext <<_ACEOF
17785/* end confdefs.h. */
17786$ac_includes_default
17787int
17788main ()
17789{
17790static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17791test_array [0] = 0
17792
17793 ;
17794 return 0;
17795}
17796_ACEOF
17797rm -f conftest.$ac_objext
17798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17799 (eval $ac_compile) 2>conftest.er1
a848cd7e 17800 ac_status=$?
ac1cb8d3
VS
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
a848cd7e
SC
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } &&
3565d135
RR
17806 { ac_try='test -z "$ac_c_werror_flag"
17807 || test ! -s conftest.err'
ac1cb8d3
VS
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; } &&
17813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 ac_hi=$ac_mid; break
17820else
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17825 if test $ac_lo -le $ac_mid; then
17826 ac_lo= ac_hi=
17827 break
17828 fi
17829 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17830fi
ac1cb8d3 17831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17832 done
17833else
17834 echo "$as_me: failed program was:" >&5
17835sed 's/^/| /' conftest.$ac_ext >&5
17836
17837cat >conftest.$ac_ext <<_ACEOF
17838/* confdefs.h. */
17839_ACEOF
17840cat confdefs.h >>conftest.$ac_ext
17841cat >>conftest.$ac_ext <<_ACEOF
17842/* end confdefs.h. */
17843$ac_includes_default
17844int
17845main ()
17846{
17847static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17848test_array [0] = 0
17849
17850 ;
17851 return 0;
17852}
17853_ACEOF
17854rm -f conftest.$ac_objext
17855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17856 (eval $ac_compile) 2>conftest.er1
a848cd7e 17857 ac_status=$?
ac1cb8d3
VS
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
a848cd7e
SC
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
3565d135
RR
17863 { ac_try='test -z "$ac_c_werror_flag"
17864 || test ! -s conftest.err'
ac1cb8d3
VS
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_hi=-1 ac_mid=-1
17877 while :; do
17878 cat >conftest.$ac_ext <<_ACEOF
17879/* confdefs.h. */
17880_ACEOF
17881cat confdefs.h >>conftest.$ac_ext
17882cat >>conftest.$ac_ext <<_ACEOF
17883/* end confdefs.h. */
17884$ac_includes_default
17885int
17886main ()
17887{
17888static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17889test_array [0] = 0
17890
17891 ;
17892 return 0;
17893}
17894_ACEOF
17895rm -f conftest.$ac_objext
17896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17897 (eval $ac_compile) 2>conftest.er1
a848cd7e 17898 ac_status=$?
ac1cb8d3
VS
17899 grep -v '^ *+' conftest.er1 >conftest.err
17900 rm -f conftest.er1
17901 cat conftest.err >&5
a848cd7e
SC
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
3565d135
RR
17904 { ac_try='test -z "$ac_c_werror_flag"
17905 || test ! -s conftest.err'
ac1cb8d3
VS
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; } &&
17911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 ac_lo=$ac_mid; break
17918else
17919 echo "$as_me: failed program was:" >&5
17920sed 's/^/| /' conftest.$ac_ext >&5
17921
17922ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17923 if test $ac_mid -le $ac_hi; then
17924 ac_lo= ac_hi=
17925 break
17926 fi
17927 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17928fi
ac1cb8d3 17929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17930 done
17931else
17932 echo "$as_me: failed program was:" >&5
17933sed 's/^/| /' conftest.$ac_ext >&5
17934
17935ac_lo= ac_hi=
17936fi
ac1cb8d3 17937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17938fi
ac1cb8d3 17939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17940# Binary search between lo and hi bounds.
17941while test "x$ac_lo" != "x$ac_hi"; do
17942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17943 cat >conftest.$ac_ext <<_ACEOF
17944/* confdefs.h. */
17945_ACEOF
17946cat confdefs.h >>conftest.$ac_ext
17947cat >>conftest.$ac_ext <<_ACEOF
17948/* end confdefs.h. */
17949$ac_includes_default
17950int
17951main ()
17952{
17953static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17954test_array [0] = 0
17955
17956 ;
17957 return 0;
17958}
17959_ACEOF
17960rm -f conftest.$ac_objext
17961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17962 (eval $ac_compile) 2>conftest.er1
a848cd7e 17963 ac_status=$?
ac1cb8d3
VS
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
a848cd7e
SC
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
3565d135
RR
17969 { ac_try='test -z "$ac_c_werror_flag"
17970 || test ! -s conftest.err'
ac1cb8d3
VS
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; } &&
17976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; }; then
17982 ac_hi=$ac_mid
17983else
17984 echo "$as_me: failed program was:" >&5
17985sed 's/^/| /' conftest.$ac_ext >&5
17986
17987ac_lo=`expr '(' $ac_mid ')' + 1`
17988fi
ac1cb8d3 17989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17990done
17991case $ac_lo in
17992?*) ac_cv_sizeof_void_p=$ac_lo;;
17993'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17994See \`config.log' for more details." >&5
17995echo "$as_me: error: cannot compute sizeof (void *), 77
17996See \`config.log' for more details." >&2;}
17997 { (exit 1); exit 1; }; } ;;
17998esac
17999else
18000 if test "$cross_compiling" = yes; then
3565d135
RR
18001 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18002See \`config.log' for more details." >&5
18003echo "$as_me: error: cannot run test program while cross compiling
18004See \`config.log' for more details." >&2;}
a848cd7e
SC
18005 { (exit 1); exit 1; }; }
18006else
18007 cat >conftest.$ac_ext <<_ACEOF
18008/* confdefs.h. */
18009_ACEOF
18010cat confdefs.h >>conftest.$ac_ext
18011cat >>conftest.$ac_ext <<_ACEOF
18012/* end confdefs.h. */
18013$ac_includes_default
18014long longval () { return (long) (sizeof (void *)); }
18015unsigned long ulongval () { return (long) (sizeof (void *)); }
18016#include <stdio.h>
18017#include <stdlib.h>
18018int
18019main ()
18020{
18021
18022 FILE *f = fopen ("conftest.val", "w");
18023 if (! f)
18024 exit (1);
18025 if (((long) (sizeof (void *))) < 0)
18026 {
18027 long i = longval ();
18028 if (i != ((long) (sizeof (void *))))
18029 exit (1);
18030 fprintf (f, "%ld\n", i);
18031 }
18032 else
18033 {
18034 unsigned long i = ulongval ();
18035 if (i != ((long) (sizeof (void *))))
18036 exit (1);
18037 fprintf (f, "%lu\n", i);
18038 }
18039 exit (ferror (f) || fclose (f) != 0);
18040
18041 ;
18042 return 0;
18043}
18044_ACEOF
18045rm -f conftest$ac_exeext
18046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18047 (eval $ac_link) 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 ac_cv_sizeof_void_p=`cat conftest.val`
18057else
18058 echo "$as_me: program exited with status $ac_status" >&5
18059echo "$as_me: failed program was:" >&5
18060sed 's/^/| /' conftest.$ac_ext >&5
18061
18062( exit $ac_status )
18063{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18064See \`config.log' for more details." >&5
18065echo "$as_me: error: cannot compute sizeof (void *), 77
18066See \`config.log' for more details." >&2;}
18067 { (exit 1); exit 1; }; }
18068fi
ac1cb8d3 18069rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18070fi
18071fi
18072rm -f conftest.val
18073else
18074 ac_cv_sizeof_void_p=0
18075fi
18076fi
18077echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18078echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18079cat >>confdefs.h <<_ACEOF
18080#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18081_ACEOF
18082
18083
18084echo "$as_me:$LINENO: checking for int" >&5
18085echo $ECHO_N "checking for int... $ECHO_C" >&6
18086if test "${ac_cv_type_int+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18088else
18089 cat >conftest.$ac_ext <<_ACEOF
18090/* confdefs.h. */
18091_ACEOF
18092cat confdefs.h >>conftest.$ac_ext
18093cat >>conftest.$ac_ext <<_ACEOF
18094/* end confdefs.h. */
18095$ac_includes_default
18096int
18097main ()
18098{
18099if ((int *) 0)
18100 return 0;
18101if (sizeof (int))
18102 return 0;
18103 ;
18104 return 0;
18105}
18106_ACEOF
18107rm -f conftest.$ac_objext
18108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18109 (eval $ac_compile) 2>conftest.er1
a848cd7e 18110 ac_status=$?
ac1cb8d3
VS
18111 grep -v '^ *+' conftest.er1 >conftest.err
18112 rm -f conftest.er1
18113 cat conftest.err >&5
a848cd7e
SC
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
3565d135
RR
18116 { ac_try='test -z "$ac_c_werror_flag"
18117 || test ! -s conftest.err'
ac1cb8d3
VS
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; }; then
18129 ac_cv_type_int=yes
18130else
18131 echo "$as_me: failed program was:" >&5
18132sed 's/^/| /' conftest.$ac_ext >&5
18133
18134ac_cv_type_int=no
18135fi
ac1cb8d3 18136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18137fi
18138echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18139echo "${ECHO_T}$ac_cv_type_int" >&6
18140
18141echo "$as_me:$LINENO: checking size of int" >&5
18142echo $ECHO_N "checking size of int... $ECHO_C" >&6
18143if test "${ac_cv_sizeof_int+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145else
18146 if test "$ac_cv_type_int" = yes; then
18147 # The cast to unsigned long works around a bug in the HP C Compiler
18148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18150 # This bug is HP SR number 8606223364.
18151 if test "$cross_compiling" = yes; then
18152 # Depending upon the size, compute the lo and hi bounds.
18153cat >conftest.$ac_ext <<_ACEOF
18154/* confdefs.h. */
18155_ACEOF
18156cat confdefs.h >>conftest.$ac_ext
18157cat >>conftest.$ac_ext <<_ACEOF
18158/* end confdefs.h. */
18159$ac_includes_default
18160int
18161main ()
18162{
18163static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18164test_array [0] = 0
18165
18166 ;
18167 return 0;
18168}
18169_ACEOF
18170rm -f conftest.$ac_objext
18171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18172 (eval $ac_compile) 2>conftest.er1
a848cd7e 18173 ac_status=$?
ac1cb8d3
VS
18174 grep -v '^ *+' conftest.er1 >conftest.err
18175 rm -f conftest.er1
18176 cat conftest.err >&5
a848cd7e
SC
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
3565d135
RR
18179 { ac_try='test -z "$ac_c_werror_flag"
18180 || test ! -s conftest.err'
ac1cb8d3
VS
18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182 (eval $ac_try) 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 ac_lo=0 ac_mid=0
18193 while :; do
18194 cat >conftest.$ac_ext <<_ACEOF
18195/* confdefs.h. */
18196_ACEOF
18197cat confdefs.h >>conftest.$ac_ext
18198cat >>conftest.$ac_ext <<_ACEOF
18199/* end confdefs.h. */
18200$ac_includes_default
18201int
18202main ()
18203{
18204static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18205test_array [0] = 0
18206
18207 ;
18208 return 0;
18209}
18210_ACEOF
18211rm -f conftest.$ac_objext
18212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18213 (eval $ac_compile) 2>conftest.er1
a848cd7e 18214 ac_status=$?
ac1cb8d3
VS
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
a848cd7e
SC
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } &&
3565d135
RR
18220 { ac_try='test -z "$ac_c_werror_flag"
18221 || test ! -s conftest.err'
ac1cb8d3
VS
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; } &&
18227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
18233 ac_hi=$ac_mid; break
18234else
18235 echo "$as_me: failed program was:" >&5
18236sed 's/^/| /' conftest.$ac_ext >&5
18237
18238ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18239 if test $ac_lo -le $ac_mid; then
18240 ac_lo= ac_hi=
18241 break
18242 fi
18243 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18244fi
ac1cb8d3 18245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18246 done
18247else
18248 echo "$as_me: failed program was:" >&5
18249sed 's/^/| /' conftest.$ac_ext >&5
18250
18251cat >conftest.$ac_ext <<_ACEOF
18252/* confdefs.h. */
18253_ACEOF
18254cat confdefs.h >>conftest.$ac_ext
18255cat >>conftest.$ac_ext <<_ACEOF
18256/* end confdefs.h. */
18257$ac_includes_default
18258int
18259main ()
18260{
18261static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18262test_array [0] = 0
18263
18264 ;
18265 return 0;
18266}
18267_ACEOF
18268rm -f conftest.$ac_objext
18269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18270 (eval $ac_compile) 2>conftest.er1
a848cd7e 18271 ac_status=$?
ac1cb8d3
VS
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
a848cd7e
SC
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
3565d135
RR
18277 { ac_try='test -z "$ac_c_werror_flag"
18278 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 ac_hi=-1 ac_mid=-1
18291 while :; do
18292 cat >conftest.$ac_ext <<_ACEOF
18293/* confdefs.h. */
18294_ACEOF
18295cat confdefs.h >>conftest.$ac_ext
18296cat >>conftest.$ac_ext <<_ACEOF
18297/* end confdefs.h. */
18298$ac_includes_default
18299int
18300main ()
18301{
18302static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18303test_array [0] = 0
18304
18305 ;
18306 return 0;
18307}
18308_ACEOF
18309rm -f conftest.$ac_objext
18310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18311 (eval $ac_compile) 2>conftest.er1
a848cd7e 18312 ac_status=$?
ac1cb8d3
VS
18313 grep -v '^ *+' conftest.er1 >conftest.err
18314 rm -f conftest.er1
18315 cat conftest.err >&5
a848cd7e
SC
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } &&
3565d135
RR
18318 { ac_try='test -z "$ac_c_werror_flag"
18319 || test ! -s conftest.err'
ac1cb8d3
VS
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; } &&
18325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327 (eval $ac_try) 2>&5
18328 ac_status=$?
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; }; then
18331 ac_lo=$ac_mid; break
18332else
18333 echo "$as_me: failed program was:" >&5
18334sed 's/^/| /' conftest.$ac_ext >&5
18335
18336ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18337 if test $ac_mid -le $ac_hi; then
18338 ac_lo= ac_hi=
18339 break
18340 fi
18341 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18342fi
ac1cb8d3 18343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18344 done
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349ac_lo= ac_hi=
18350fi
ac1cb8d3 18351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18352fi
ac1cb8d3 18353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18354# Binary search between lo and hi bounds.
18355while test "x$ac_lo" != "x$ac_hi"; do
18356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18357 cat >conftest.$ac_ext <<_ACEOF
18358/* confdefs.h. */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h. */
18363$ac_includes_default
18364int
18365main ()
18366{
18367static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18368test_array [0] = 0
18369
18370 ;
18371 return 0;
18372}
18373_ACEOF
18374rm -f conftest.$ac_objext
18375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18376 (eval $ac_compile) 2>conftest.er1
a848cd7e 18377 ac_status=$?
ac1cb8d3
VS
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
a848cd7e
SC
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
3565d135
RR
18383 { ac_try='test -z "$ac_c_werror_flag"
18384 || test ! -s conftest.err'
ac1cb8d3
VS
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; } &&
18390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 ac_hi=$ac_mid
18397else
18398 echo "$as_me: failed program was:" >&5
18399sed 's/^/| /' conftest.$ac_ext >&5
18400
18401ac_lo=`expr '(' $ac_mid ')' + 1`
18402fi
ac1cb8d3 18403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18404done
18405case $ac_lo in
18406?*) ac_cv_sizeof_int=$ac_lo;;
18407'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18408See \`config.log' for more details." >&5
18409echo "$as_me: error: cannot compute sizeof (int), 77
18410See \`config.log' for more details." >&2;}
18411 { (exit 1); exit 1; }; } ;;
18412esac
18413else
18414 if test "$cross_compiling" = yes; then
3565d135
RR
18415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18416See \`config.log' for more details." >&5
18417echo "$as_me: error: cannot run test program while cross compiling
18418See \`config.log' for more details." >&2;}
a848cd7e
SC
18419 { (exit 1); exit 1; }; }
18420else
18421 cat >conftest.$ac_ext <<_ACEOF
18422/* confdefs.h. */
18423_ACEOF
18424cat confdefs.h >>conftest.$ac_ext
18425cat >>conftest.$ac_ext <<_ACEOF
18426/* end confdefs.h. */
18427$ac_includes_default
18428long longval () { return (long) (sizeof (int)); }
18429unsigned long ulongval () { return (long) (sizeof (int)); }
18430#include <stdio.h>
18431#include <stdlib.h>
18432int
18433main ()
18434{
18435
18436 FILE *f = fopen ("conftest.val", "w");
18437 if (! f)
18438 exit (1);
18439 if (((long) (sizeof (int))) < 0)
18440 {
18441 long i = longval ();
18442 if (i != ((long) (sizeof (int))))
18443 exit (1);
18444 fprintf (f, "%ld\n", i);
18445 }
18446 else
18447 {
18448 unsigned long i = ulongval ();
18449 if (i != ((long) (sizeof (int))))
18450 exit (1);
18451 fprintf (f, "%lu\n", i);
18452 }
18453 exit (ferror (f) || fclose (f) != 0);
18454
18455 ;
18456 return 0;
18457}
18458_ACEOF
18459rm -f conftest$ac_exeext
18460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18461 (eval $ac_link) 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_cv_sizeof_int=`cat conftest.val`
18471else
18472 echo "$as_me: program exited with status $ac_status" >&5
18473echo "$as_me: failed program was:" >&5
18474sed 's/^/| /' conftest.$ac_ext >&5
18475
18476( exit $ac_status )
18477{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18478See \`config.log' for more details." >&5
18479echo "$as_me: error: cannot compute sizeof (int), 77
18480See \`config.log' for more details." >&2;}
18481 { (exit 1); exit 1; }; }
18482fi
ac1cb8d3 18483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18484fi
18485fi
18486rm -f conftest.val
18487else
18488 ac_cv_sizeof_int=0
18489fi
18490fi
18491echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18492echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18493cat >>confdefs.h <<_ACEOF
18494#define SIZEOF_INT $ac_cv_sizeof_int
18495_ACEOF
18496
18497
18498echo "$as_me:$LINENO: checking for long" >&5
18499echo $ECHO_N "checking for long... $ECHO_C" >&6
18500if test "${ac_cv_type_long+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18502else
18503 cat >conftest.$ac_ext <<_ACEOF
18504/* confdefs.h. */
18505_ACEOF
18506cat confdefs.h >>conftest.$ac_ext
18507cat >>conftest.$ac_ext <<_ACEOF
18508/* end confdefs.h. */
18509$ac_includes_default
18510int
18511main ()
18512{
18513if ((long *) 0)
18514 return 0;
18515if (sizeof (long))
18516 return 0;
18517 ;
18518 return 0;
18519}
18520_ACEOF
18521rm -f conftest.$ac_objext
18522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18523 (eval $ac_compile) 2>conftest.er1
a848cd7e 18524 ac_status=$?
ac1cb8d3
VS
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
a848cd7e
SC
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
3565d135
RR
18530 { ac_try='test -z "$ac_c_werror_flag"
18531 || test ! -s conftest.err'
ac1cb8d3
VS
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_cv_type_long=yes
18544else
18545 echo "$as_me: failed program was:" >&5
18546sed 's/^/| /' conftest.$ac_ext >&5
18547
18548ac_cv_type_long=no
18549fi
ac1cb8d3 18550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18551fi
18552echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18553echo "${ECHO_T}$ac_cv_type_long" >&6
18554
18555echo "$as_me:$LINENO: checking size of long" >&5
18556echo $ECHO_N "checking size of long... $ECHO_C" >&6
18557if test "${ac_cv_sizeof_long+set}" = set; then
18558 echo $ECHO_N "(cached) $ECHO_C" >&6
18559else
18560 if test "$ac_cv_type_long" = yes; then
18561 # The cast to unsigned long works around a bug in the HP C Compiler
18562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18564 # This bug is HP SR number 8606223364.
18565 if test "$cross_compiling" = yes; then
18566 # Depending upon the size, compute the lo and hi bounds.
18567cat >conftest.$ac_ext <<_ACEOF
18568/* confdefs.h. */
18569_ACEOF
18570cat confdefs.h >>conftest.$ac_ext
18571cat >>conftest.$ac_ext <<_ACEOF
18572/* end confdefs.h. */
18573$ac_includes_default
18574int
18575main ()
18576{
18577static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18578test_array [0] = 0
18579
18580 ;
18581 return 0;
18582}
18583_ACEOF
18584rm -f conftest.$ac_objext
18585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18586 (eval $ac_compile) 2>conftest.er1
a848cd7e 18587 ac_status=$?
ac1cb8d3
VS
18588 grep -v '^ *+' conftest.er1 >conftest.err
18589 rm -f conftest.er1
18590 cat conftest.err >&5
a848cd7e
SC
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } &&
3565d135
RR
18593 { ac_try='test -z "$ac_c_werror_flag"
18594 || test ! -s conftest.err'
ac1cb8d3
VS
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18597 ac_status=$?
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; } &&
18600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602 (eval $ac_try) 2>&5
18603 ac_status=$?
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; }; then
18606 ac_lo=0 ac_mid=0
18607 while :; do
18608 cat >conftest.$ac_ext <<_ACEOF
18609/* confdefs.h. */
18610_ACEOF
18611cat confdefs.h >>conftest.$ac_ext
18612cat >>conftest.$ac_ext <<_ACEOF
18613/* end confdefs.h. */
18614$ac_includes_default
18615int
18616main ()
18617{
18618static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18619test_array [0] = 0
18620
18621 ;
18622 return 0;
18623}
18624_ACEOF
18625rm -f conftest.$ac_objext
18626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18627 (eval $ac_compile) 2>conftest.er1
a848cd7e 18628 ac_status=$?
ac1cb8d3
VS
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
a848cd7e
SC
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } &&
3565d135
RR
18634 { ac_try='test -z "$ac_c_werror_flag"
18635 || test ! -s conftest.err'
ac1cb8d3
VS
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643 (eval $ac_try) 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18647 ac_hi=$ac_mid; break
18648else
18649 echo "$as_me: failed program was:" >&5
18650sed 's/^/| /' conftest.$ac_ext >&5
18651
18652ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18653 if test $ac_lo -le $ac_mid; then
18654 ac_lo= ac_hi=
18655 break
18656 fi
18657 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18658fi
ac1cb8d3 18659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18660 done
18661else
18662 echo "$as_me: failed program was:" >&5
18663sed 's/^/| /' conftest.$ac_ext >&5
18664
18665cat >conftest.$ac_ext <<_ACEOF
18666/* confdefs.h. */
18667_ACEOF
18668cat confdefs.h >>conftest.$ac_ext
18669cat >>conftest.$ac_ext <<_ACEOF
18670/* end confdefs.h. */
18671$ac_includes_default
18672int
18673main ()
18674{
18675static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18676test_array [0] = 0
18677
18678 ;
18679 return 0;
18680}
18681_ACEOF
18682rm -f conftest.$ac_objext
18683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18684 (eval $ac_compile) 2>conftest.er1
a848cd7e 18685 ac_status=$?
ac1cb8d3
VS
18686 grep -v '^ *+' conftest.er1 >conftest.err
18687 rm -f conftest.er1
18688 cat conftest.err >&5
a848cd7e
SC
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } &&
3565d135
RR
18691 { ac_try='test -z "$ac_c_werror_flag"
18692 || test ! -s conftest.err'
ac1cb8d3
VS
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 ac_hi=-1 ac_mid=-1
18705 while :; do
18706 cat >conftest.$ac_ext <<_ACEOF
18707/* confdefs.h. */
18708_ACEOF
18709cat confdefs.h >>conftest.$ac_ext
18710cat >>conftest.$ac_ext <<_ACEOF
18711/* end confdefs.h. */
18712$ac_includes_default
18713int
18714main ()
18715{
18716static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18717test_array [0] = 0
18718
18719 ;
18720 return 0;
18721}
18722_ACEOF
18723rm -f conftest.$ac_objext
18724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18725 (eval $ac_compile) 2>conftest.er1
a848cd7e 18726 ac_status=$?
ac1cb8d3
VS
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
a848cd7e
SC
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
3565d135
RR
18732 { ac_try='test -z "$ac_c_werror_flag"
18733 || test ! -s conftest.err'
ac1cb8d3
VS
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; } &&
18739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; }; then
18745 ac_lo=$ac_mid; break
18746else
18747 echo "$as_me: failed program was:" >&5
18748sed 's/^/| /' conftest.$ac_ext >&5
18749
18750ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18751 if test $ac_mid -le $ac_hi; then
18752 ac_lo= ac_hi=
18753 break
18754 fi
18755 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18756fi
ac1cb8d3 18757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18758 done
18759else
18760 echo "$as_me: failed program was:" >&5
18761sed 's/^/| /' conftest.$ac_ext >&5
18762
18763ac_lo= ac_hi=
18764fi
ac1cb8d3 18765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18766fi
ac1cb8d3 18767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18768# Binary search between lo and hi bounds.
18769while test "x$ac_lo" != "x$ac_hi"; do
18770 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18771 cat >conftest.$ac_ext <<_ACEOF
18772/* confdefs.h. */
18773_ACEOF
18774cat confdefs.h >>conftest.$ac_ext
18775cat >>conftest.$ac_ext <<_ACEOF
18776/* end confdefs.h. */
18777$ac_includes_default
18778int
18779main ()
18780{
18781static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18782test_array [0] = 0
18783
18784 ;
18785 return 0;
18786}
18787_ACEOF
18788rm -f conftest.$ac_objext
18789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18790 (eval $ac_compile) 2>conftest.er1
a848cd7e 18791 ac_status=$?
ac1cb8d3
VS
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
a848cd7e
SC
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
3565d135
RR
18797 { ac_try='test -z "$ac_c_werror_flag"
18798 || test ! -s conftest.err'
ac1cb8d3
VS
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 ac_hi=$ac_mid
18811else
18812 echo "$as_me: failed program was:" >&5
18813sed 's/^/| /' conftest.$ac_ext >&5
18814
18815ac_lo=`expr '(' $ac_mid ')' + 1`
18816fi
ac1cb8d3 18817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18818done
18819case $ac_lo in
18820?*) ac_cv_sizeof_long=$ac_lo;;
18821'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18822See \`config.log' for more details." >&5
18823echo "$as_me: error: cannot compute sizeof (long), 77
18824See \`config.log' for more details." >&2;}
18825 { (exit 1); exit 1; }; } ;;
18826esac
18827else
18828 if test "$cross_compiling" = yes; then
3565d135
RR
18829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18830See \`config.log' for more details." >&5
18831echo "$as_me: error: cannot run test program while cross compiling
18832See \`config.log' for more details." >&2;}
a848cd7e
SC
18833 { (exit 1); exit 1; }; }
18834else
18835 cat >conftest.$ac_ext <<_ACEOF
18836/* confdefs.h. */
18837_ACEOF
18838cat confdefs.h >>conftest.$ac_ext
18839cat >>conftest.$ac_ext <<_ACEOF
18840/* end confdefs.h. */
18841$ac_includes_default
18842long longval () { return (long) (sizeof (long)); }
18843unsigned long ulongval () { return (long) (sizeof (long)); }
18844#include <stdio.h>
18845#include <stdlib.h>
18846int
18847main ()
18848{
18849
18850 FILE *f = fopen ("conftest.val", "w");
18851 if (! f)
18852 exit (1);
18853 if (((long) (sizeof (long))) < 0)
18854 {
18855 long i = longval ();
18856 if (i != ((long) (sizeof (long))))
18857 exit (1);
18858 fprintf (f, "%ld\n", i);
18859 }
18860 else
18861 {
18862 unsigned long i = ulongval ();
18863 if (i != ((long) (sizeof (long))))
18864 exit (1);
18865 fprintf (f, "%lu\n", i);
18866 }
18867 exit (ferror (f) || fclose (f) != 0);
18868
18869 ;
18870 return 0;
18871}
18872_ACEOF
18873rm -f conftest$ac_exeext
18874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18875 (eval $ac_link) 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18880 (eval $ac_try) 2>&5
18881 ac_status=$?
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); }; }; then
18884 ac_cv_sizeof_long=`cat conftest.val`
18885else
18886 echo "$as_me: program exited with status $ac_status" >&5
18887echo "$as_me: failed program was:" >&5
18888sed 's/^/| /' conftest.$ac_ext >&5
18889
18890( exit $ac_status )
18891{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18892See \`config.log' for more details." >&5
18893echo "$as_me: error: cannot compute sizeof (long), 77
18894See \`config.log' for more details." >&2;}
18895 { (exit 1); exit 1; }; }
18896fi
ac1cb8d3 18897rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18898fi
18899fi
18900rm -f conftest.val
18901else
18902 ac_cv_sizeof_long=0
18903fi
18904fi
18905echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18906echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18907cat >>confdefs.h <<_ACEOF
18908#define SIZEOF_LONG $ac_cv_sizeof_long
18909_ACEOF
18910
18911
18912echo "$as_me:$LINENO: checking for size_t" >&5
18913echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18914if test "${ac_cv_type_size_t+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916else
18917 cat >conftest.$ac_ext <<_ACEOF
18918/* confdefs.h. */
18919_ACEOF
18920cat confdefs.h >>conftest.$ac_ext
18921cat >>conftest.$ac_ext <<_ACEOF
18922/* end confdefs.h. */
18923$ac_includes_default
18924int
18925main ()
18926{
18927if ((size_t *) 0)
18928 return 0;
18929if (sizeof (size_t))
18930 return 0;
18931 ;
18932 return 0;
18933}
18934_ACEOF
18935rm -f conftest.$ac_objext
18936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18937 (eval $ac_compile) 2>conftest.er1
a848cd7e 18938 ac_status=$?
ac1cb8d3
VS
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
a848cd7e
SC
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
3565d135
RR
18944 { ac_try='test -z "$ac_c_werror_flag"
18945 || test ! -s conftest.err'
ac1cb8d3
VS
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_cv_type_size_t=yes
18958else
18959 echo "$as_me: failed program was:" >&5
18960sed 's/^/| /' conftest.$ac_ext >&5
18961
18962ac_cv_type_size_t=no
18963fi
ac1cb8d3 18964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18965fi
18966echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18967echo "${ECHO_T}$ac_cv_type_size_t" >&6
18968
18969echo "$as_me:$LINENO: checking size of size_t" >&5
18970echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18971if test "${ac_cv_sizeof_size_t+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18973else
18974 if test "$ac_cv_type_size_t" = yes; then
18975 # The cast to unsigned long works around a bug in the HP C Compiler
18976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18978 # This bug is HP SR number 8606223364.
18979 if test "$cross_compiling" = yes; then
18980 # Depending upon the size, compute the lo and hi bounds.
18981cat >conftest.$ac_ext <<_ACEOF
18982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
18987$ac_includes_default
18988int
18989main ()
18990{
18991static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18992test_array [0] = 0
18993
18994 ;
18995 return 0;
18996}
18997_ACEOF
18998rm -f conftest.$ac_objext
18999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19000 (eval $ac_compile) 2>conftest.er1
a848cd7e 19001 ac_status=$?
ac1cb8d3
VS
19002 grep -v '^ *+' conftest.er1 >conftest.err
19003 rm -f conftest.er1
19004 cat conftest.err >&5
a848cd7e
SC
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } &&
3565d135
RR
19007 { ac_try='test -z "$ac_c_werror_flag"
19008 || test ! -s conftest.err'
ac1cb8d3
VS
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; } &&
19014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 ac_lo=0 ac_mid=0
19021 while :; do
19022 cat >conftest.$ac_ext <<_ACEOF
19023/* confdefs.h. */
19024_ACEOF
19025cat confdefs.h >>conftest.$ac_ext
19026cat >>conftest.$ac_ext <<_ACEOF
19027/* end confdefs.h. */
19028$ac_includes_default
19029int
19030main ()
19031{
19032static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19033test_array [0] = 0
19034
19035 ;
19036 return 0;
19037}
19038_ACEOF
19039rm -f conftest.$ac_objext
19040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19041 (eval $ac_compile) 2>conftest.er1
a848cd7e 19042 ac_status=$?
ac1cb8d3
VS
19043 grep -v '^ *+' conftest.er1 >conftest.err
19044 rm -f conftest.er1
19045 cat conftest.err >&5
a848cd7e
SC
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } &&
3565d135
RR
19048 { ac_try='test -z "$ac_c_werror_flag"
19049 || test ! -s conftest.err'
ac1cb8d3
VS
19050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; } &&
19055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19058 ac_status=$?
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
19061 ac_hi=$ac_mid; break
19062else
19063 echo "$as_me: failed program was:" >&5
19064sed 's/^/| /' conftest.$ac_ext >&5
19065
19066ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19067 if test $ac_lo -le $ac_mid; then
19068 ac_lo= ac_hi=
19069 break
19070 fi
19071 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19072fi
ac1cb8d3 19073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19074 done
19075else
19076 echo "$as_me: failed program was:" >&5
19077sed 's/^/| /' conftest.$ac_ext >&5
19078
19079cat >conftest.$ac_ext <<_ACEOF
19080/* confdefs.h. */
19081_ACEOF
19082cat confdefs.h >>conftest.$ac_ext
19083cat >>conftest.$ac_ext <<_ACEOF
19084/* end confdefs.h. */
19085$ac_includes_default
19086int
19087main ()
19088{
19089static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19090test_array [0] = 0
19091
19092 ;
19093 return 0;
19094}
19095_ACEOF
19096rm -f conftest.$ac_objext
19097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19098 (eval $ac_compile) 2>conftest.er1
a848cd7e 19099 ac_status=$?
ac1cb8d3
VS
19100 grep -v '^ *+' conftest.er1 >conftest.err
19101 rm -f conftest.er1
19102 cat conftest.err >&5
a848cd7e
SC
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } &&
3565d135
RR
19105 { ac_try='test -z "$ac_c_werror_flag"
19106 || test ! -s conftest.err'
ac1cb8d3
VS
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; } &&
19112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; }; then
19118 ac_hi=-1 ac_mid=-1
19119 while :; do
19120 cat >conftest.$ac_ext <<_ACEOF
19121/* confdefs.h. */
19122_ACEOF
19123cat confdefs.h >>conftest.$ac_ext
19124cat >>conftest.$ac_ext <<_ACEOF
19125/* end confdefs.h. */
19126$ac_includes_default
19127int
19128main ()
19129{
19130static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19131test_array [0] = 0
19132
19133 ;
19134 return 0;
19135}
19136_ACEOF
19137rm -f conftest.$ac_objext
19138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19139 (eval $ac_compile) 2>conftest.er1
a848cd7e 19140 ac_status=$?
ac1cb8d3
VS
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
a848cd7e
SC
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
3565d135
RR
19146 { ac_try='test -z "$ac_c_werror_flag"
19147 || test ! -s conftest.err'
ac1cb8d3
VS
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; } &&
19153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 ac_lo=$ac_mid; break
19160else
19161 echo "$as_me: failed program was:" >&5
19162sed 's/^/| /' conftest.$ac_ext >&5
19163
19164ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19165 if test $ac_mid -le $ac_hi; then
19166 ac_lo= ac_hi=
19167 break
19168 fi
19169 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19170fi
ac1cb8d3 19171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19172 done
19173else
19174 echo "$as_me: failed program was:" >&5
19175sed 's/^/| /' conftest.$ac_ext >&5
19176
19177ac_lo= ac_hi=
19178fi
ac1cb8d3 19179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19180fi
ac1cb8d3 19181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19182# Binary search between lo and hi bounds.
19183while test "x$ac_lo" != "x$ac_hi"; do
19184 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19185 cat >conftest.$ac_ext <<_ACEOF
19186/* confdefs.h. */
19187_ACEOF
19188cat confdefs.h >>conftest.$ac_ext
19189cat >>conftest.$ac_ext <<_ACEOF
19190/* end confdefs.h. */
19191$ac_includes_default
19192int
19193main ()
19194{
19195static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19196test_array [0] = 0
19197
19198 ;
19199 return 0;
19200}
19201_ACEOF
19202rm -f conftest.$ac_objext
19203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19204 (eval $ac_compile) 2>conftest.er1
a848cd7e 19205 ac_status=$?
ac1cb8d3
VS
19206 grep -v '^ *+' conftest.er1 >conftest.err
19207 rm -f conftest.er1
19208 cat conftest.err >&5
a848cd7e
SC
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } &&
3565d135
RR
19211 { ac_try='test -z "$ac_c_werror_flag"
19212 || test ! -s conftest.err'
ac1cb8d3
VS
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_hi=$ac_mid
19225else
19226 echo "$as_me: failed program was:" >&5
19227sed 's/^/| /' conftest.$ac_ext >&5
19228
19229ac_lo=`expr '(' $ac_mid ')' + 1`
19230fi
ac1cb8d3 19231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19232done
19233case $ac_lo in
19234?*) ac_cv_sizeof_size_t=$ac_lo;;
19235'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19236See \`config.log' for more details." >&5
19237echo "$as_me: error: cannot compute sizeof (size_t), 77
19238See \`config.log' for more details." >&2;}
19239 { (exit 1); exit 1; }; } ;;
19240esac
19241else
19242 if test "$cross_compiling" = yes; then
3565d135
RR
19243 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19244See \`config.log' for more details." >&5
19245echo "$as_me: error: cannot run test program while cross compiling
19246See \`config.log' for more details." >&2;}
a848cd7e
SC
19247 { (exit 1); exit 1; }; }
19248else
19249 cat >conftest.$ac_ext <<_ACEOF
19250/* confdefs.h. */
19251_ACEOF
19252cat confdefs.h >>conftest.$ac_ext
19253cat >>conftest.$ac_ext <<_ACEOF
19254/* end confdefs.h. */
19255$ac_includes_default
19256long longval () { return (long) (sizeof (size_t)); }
19257unsigned long ulongval () { return (long) (sizeof (size_t)); }
19258#include <stdio.h>
19259#include <stdlib.h>
19260int
19261main ()
19262{
19263
19264 FILE *f = fopen ("conftest.val", "w");
19265 if (! f)
19266 exit (1);
19267 if (((long) (sizeof (size_t))) < 0)
19268 {
19269 long i = longval ();
19270 if (i != ((long) (sizeof (size_t))))
19271 exit (1);
19272 fprintf (f, "%ld\n", i);
19273 }
19274 else
19275 {
19276 unsigned long i = ulongval ();
19277 if (i != ((long) (sizeof (size_t))))
19278 exit (1);
19279 fprintf (f, "%lu\n", i);
19280 }
19281 exit (ferror (f) || fclose (f) != 0);
19282
19283 ;
19284 return 0;
19285}
19286_ACEOF
19287rm -f conftest$ac_exeext
19288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19289 (eval $ac_link) 2>&5
19290 ac_status=$?
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_sizeof_size_t=`cat conftest.val`
19299else
19300 echo "$as_me: program exited with status $ac_status" >&5
19301echo "$as_me: failed program was:" >&5
19302sed 's/^/| /' conftest.$ac_ext >&5
19303
19304( exit $ac_status )
19305{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19306See \`config.log' for more details." >&5
19307echo "$as_me: error: cannot compute sizeof (size_t), 77
19308See \`config.log' for more details." >&2;}
19309 { (exit 1); exit 1; }; }
19310fi
ac1cb8d3 19311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19312fi
19313fi
19314rm -f conftest.val
19315else
19316 ac_cv_sizeof_size_t=0
19317fi
19318fi
19319echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19320echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19321cat >>confdefs.h <<_ACEOF
19322#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19323_ACEOF
19324
19325
19326
19327case "${host}" in
19328 arm-*-linux* )
19329 echo "$as_me:$LINENO: checking for long long" >&5
19330echo $ECHO_N "checking for long long... $ECHO_C" >&6
19331if test "${ac_cv_type_long_long+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333else
19334 cat >conftest.$ac_ext <<_ACEOF
19335/* confdefs.h. */
19336_ACEOF
19337cat confdefs.h >>conftest.$ac_ext
19338cat >>conftest.$ac_ext <<_ACEOF
19339/* end confdefs.h. */
19340$ac_includes_default
19341int
19342main ()
19343{
19344if ((long long *) 0)
19345 return 0;
19346if (sizeof (long long))
19347 return 0;
19348 ;
19349 return 0;
19350}
19351_ACEOF
19352rm -f conftest.$ac_objext
19353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19354 (eval $ac_compile) 2>conftest.er1
a848cd7e 19355 ac_status=$?
ac1cb8d3
VS
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
a848cd7e
SC
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
3565d135
RR
19361 { ac_try='test -z "$ac_c_werror_flag"
19362 || test ! -s conftest.err'
ac1cb8d3
VS
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_type_long_long=yes
19375else
19376 echo "$as_me: failed program was:" >&5
19377sed 's/^/| /' conftest.$ac_ext >&5
19378
19379ac_cv_type_long_long=no
19380fi
ac1cb8d3 19381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19382fi
19383echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19384echo "${ECHO_T}$ac_cv_type_long_long" >&6
19385
19386echo "$as_me:$LINENO: checking size of long long" >&5
19387echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19388if test "${ac_cv_sizeof_long_long+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19390else
19391 if test "$ac_cv_type_long_long" = yes; then
19392 # The cast to unsigned long works around a bug in the HP C Compiler
19393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19395 # This bug is HP SR number 8606223364.
19396 if test "$cross_compiling" = yes; then
19397 # Depending upon the size, compute the lo and hi bounds.
19398cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404$ac_includes_default
19405int
19406main ()
19407{
19408static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19409test_array [0] = 0
19410
19411 ;
19412 return 0;
19413}
19414_ACEOF
19415rm -f conftest.$ac_objext
19416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19417 (eval $ac_compile) 2>conftest.er1
a848cd7e 19418 ac_status=$?
ac1cb8d3
VS
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
a848cd7e
SC
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
3565d135
RR
19424 { ac_try='test -z "$ac_c_werror_flag"
19425 || test ! -s conftest.err'
ac1cb8d3
VS
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_lo=0 ac_mid=0
19438 while :; do
19439 cat >conftest.$ac_ext <<_ACEOF
19440/* confdefs.h. */
19441_ACEOF
19442cat confdefs.h >>conftest.$ac_ext
19443cat >>conftest.$ac_ext <<_ACEOF
19444/* end confdefs.h. */
19445$ac_includes_default
19446int
19447main ()
19448{
19449static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19450test_array [0] = 0
19451
19452 ;
19453 return 0;
19454}
19455_ACEOF
19456rm -f conftest.$ac_objext
19457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19458 (eval $ac_compile) 2>conftest.er1
a848cd7e 19459 ac_status=$?
ac1cb8d3
VS
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
a848cd7e
SC
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
3565d135
RR
19465 { ac_try='test -z "$ac_c_werror_flag"
19466 || test ! -s conftest.err'
ac1cb8d3
VS
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_hi=$ac_mid; break
19479else
19480 echo "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
19483ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19484 if test $ac_lo -le $ac_mid; then
19485 ac_lo= ac_hi=
19486 break
19487 fi
19488 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19489fi
ac1cb8d3 19490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19491 done
19492else
19493 echo "$as_me: failed program was:" >&5
19494sed 's/^/| /' conftest.$ac_ext >&5
19495
19496cat >conftest.$ac_ext <<_ACEOF
19497/* confdefs.h. */
19498_ACEOF
19499cat confdefs.h >>conftest.$ac_ext
19500cat >>conftest.$ac_ext <<_ACEOF
19501/* end confdefs.h. */
19502$ac_includes_default
19503int
19504main ()
19505{
19506static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19507test_array [0] = 0
19508
19509 ;
19510 return 0;
19511}
19512_ACEOF
19513rm -f conftest.$ac_objext
19514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19515 (eval $ac_compile) 2>conftest.er1
a848cd7e 19516 ac_status=$?
ac1cb8d3
VS
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
a848cd7e
SC
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
3565d135
RR
19522 { ac_try='test -z "$ac_c_werror_flag"
19523 || test ! -s conftest.err'
ac1cb8d3
VS
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_hi=-1 ac_mid=-1
19536 while :; do
19537 cat >conftest.$ac_ext <<_ACEOF
19538/* confdefs.h. */
19539_ACEOF
19540cat confdefs.h >>conftest.$ac_ext
19541cat >>conftest.$ac_ext <<_ACEOF
19542/* end confdefs.h. */
19543$ac_includes_default
19544int
19545main ()
19546{
19547static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19548test_array [0] = 0
19549
19550 ;
19551 return 0;
19552}
19553_ACEOF
19554rm -f conftest.$ac_objext
19555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19556 (eval $ac_compile) 2>conftest.er1
a848cd7e 19557 ac_status=$?
ac1cb8d3
VS
19558 grep -v '^ *+' conftest.er1 >conftest.err
19559 rm -f conftest.er1
19560 cat conftest.err >&5
a848cd7e
SC
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } &&
3565d135
RR
19563 { ac_try='test -z "$ac_c_werror_flag"
19564 || test ! -s conftest.err'
ac1cb8d3
VS
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } &&
19570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 ac_lo=$ac_mid; break
19577else
19578 echo "$as_me: failed program was:" >&5
19579sed 's/^/| /' conftest.$ac_ext >&5
19580
19581ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19582 if test $ac_mid -le $ac_hi; then
19583 ac_lo= ac_hi=
19584 break
19585 fi
19586 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19587fi
ac1cb8d3 19588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19589 done
19590else
19591 echo "$as_me: failed program was:" >&5
19592sed 's/^/| /' conftest.$ac_ext >&5
19593
19594ac_lo= ac_hi=
19595fi
ac1cb8d3 19596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19597fi
ac1cb8d3 19598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19599# Binary search between lo and hi bounds.
19600while test "x$ac_lo" != "x$ac_hi"; do
19601 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19602 cat >conftest.$ac_ext <<_ACEOF
19603/* confdefs.h. */
19604_ACEOF
19605cat confdefs.h >>conftest.$ac_ext
19606cat >>conftest.$ac_ext <<_ACEOF
19607/* end confdefs.h. */
19608$ac_includes_default
19609int
19610main ()
19611{
19612static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19613test_array [0] = 0
19614
19615 ;
19616 return 0;
19617}
19618_ACEOF
19619rm -f conftest.$ac_objext
19620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19621 (eval $ac_compile) 2>conftest.er1
a848cd7e 19622 ac_status=$?
ac1cb8d3
VS
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
a848cd7e
SC
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
3565d135
RR
19628 { ac_try='test -z "$ac_c_werror_flag"
19629 || test ! -s conftest.err'
ac1cb8d3
VS
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; } &&
19635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19641 ac_hi=$ac_mid
19642else
19643 echo "$as_me: failed program was:" >&5
19644sed 's/^/| /' conftest.$ac_ext >&5
19645
19646ac_lo=`expr '(' $ac_mid ')' + 1`
19647fi
ac1cb8d3 19648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19649done
19650case $ac_lo in
19651?*) ac_cv_sizeof_long_long=$ac_lo;;
19652'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19653See \`config.log' for more details." >&5
19654echo "$as_me: error: cannot compute sizeof (long long), 77
19655See \`config.log' for more details." >&2;}
19656 { (exit 1); exit 1; }; } ;;
19657esac
19658else
19659 if test "$cross_compiling" = yes; then
3565d135
RR
19660 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19661See \`config.log' for more details." >&5
19662echo "$as_me: error: cannot run test program while cross compiling
19663See \`config.log' for more details." >&2;}
a848cd7e
SC
19664 { (exit 1); exit 1; }; }
19665else
19666 cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h. */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h. */
19672$ac_includes_default
19673long longval () { return (long) (sizeof (long long)); }
19674unsigned long ulongval () { return (long) (sizeof (long long)); }
19675#include <stdio.h>
19676#include <stdlib.h>
19677int
19678main ()
19679{
19680
19681 FILE *f = fopen ("conftest.val", "w");
19682 if (! f)
19683 exit (1);
19684 if (((long) (sizeof (long long))) < 0)
19685 {
19686 long i = longval ();
19687 if (i != ((long) (sizeof (long long))))
19688 exit (1);
19689 fprintf (f, "%ld\n", i);
19690 }
19691 else
19692 {
19693 unsigned long i = ulongval ();
19694 if (i != ((long) (sizeof (long long))))
19695 exit (1);
19696 fprintf (f, "%lu\n", i);
19697 }
19698 exit (ferror (f) || fclose (f) != 0);
19699
19700 ;
19701 return 0;
19702}
19703_ACEOF
19704rm -f conftest$ac_exeext
19705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19706 (eval $ac_link) 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711 (eval $ac_try) 2>&5
19712 ac_status=$?
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19715 ac_cv_sizeof_long_long=`cat conftest.val`
19716else
19717 echo "$as_me: program exited with status $ac_status" >&5
19718echo "$as_me: failed program was:" >&5
19719sed 's/^/| /' conftest.$ac_ext >&5
19720
19721( exit $ac_status )
19722{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19723See \`config.log' for more details." >&5
19724echo "$as_me: error: cannot compute sizeof (long long), 77
19725See \`config.log' for more details." >&2;}
19726 { (exit 1); exit 1; }; }
19727fi
ac1cb8d3 19728rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19729fi
19730fi
19731rm -f conftest.val
19732else
19733 ac_cv_sizeof_long_long=0
19734fi
19735fi
19736echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19737echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19738cat >>confdefs.h <<_ACEOF
19739#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19740_ACEOF
19741
19742
19743 ;;
19744 *-hp-hpux* )
19745 echo "$as_me:$LINENO: checking for long long" >&5
19746echo $ECHO_N "checking for long long... $ECHO_C" >&6
19747if test "${ac_cv_type_long_long+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19749else
19750 cat >conftest.$ac_ext <<_ACEOF
19751/* confdefs.h. */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h. */
19756$ac_includes_default
19757int
19758main ()
19759{
19760if ((long long *) 0)
19761 return 0;
19762if (sizeof (long long))
19763 return 0;
19764 ;
19765 return 0;
19766}
19767_ACEOF
19768rm -f conftest.$ac_objext
19769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19770 (eval $ac_compile) 2>conftest.er1
a848cd7e 19771 ac_status=$?
ac1cb8d3
VS
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
a848cd7e
SC
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
3565d135
RR
19777 { ac_try='test -z "$ac_c_werror_flag"
19778 || test ! -s conftest.err'
ac1cb8d3
VS
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } &&
19784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_type_long_long=yes
19791else
19792 echo "$as_me: failed program was:" >&5
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
19795ac_cv_type_long_long=no
19796fi
ac1cb8d3 19797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19798fi
19799echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19800echo "${ECHO_T}$ac_cv_type_long_long" >&6
19801
19802echo "$as_me:$LINENO: checking size of long long" >&5
19803echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19804if test "${ac_cv_sizeof_long_long+set}" = set; then
19805 echo $ECHO_N "(cached) $ECHO_C" >&6
19806else
19807 if test "$ac_cv_type_long_long" = yes; then
19808 # The cast to unsigned long works around a bug in the HP C Compiler
19809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19810 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19811 # This bug is HP SR number 8606223364.
19812 if test "$cross_compiling" = yes; then
19813 # Depending upon the size, compute the lo and hi bounds.
19814cat >conftest.$ac_ext <<_ACEOF
19815/* confdefs.h. */
19816_ACEOF
19817cat confdefs.h >>conftest.$ac_ext
19818cat >>conftest.$ac_ext <<_ACEOF
19819/* end confdefs.h. */
19820$ac_includes_default
19821int
19822main ()
19823{
19824static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19825test_array [0] = 0
19826
19827 ;
19828 return 0;
19829}
19830_ACEOF
19831rm -f conftest.$ac_objext
19832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19833 (eval $ac_compile) 2>conftest.er1
a848cd7e 19834 ac_status=$?
ac1cb8d3
VS
19835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
a848cd7e
SC
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } &&
3565d135
RR
19840 { ac_try='test -z "$ac_c_werror_flag"
19841 || test ! -s conftest.err'
ac1cb8d3
VS
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; } &&
19847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_lo=0 ac_mid=0
19854 while :; do
19855 cat >conftest.$ac_ext <<_ACEOF
19856/* confdefs.h. */
19857_ACEOF
19858cat confdefs.h >>conftest.$ac_ext
19859cat >>conftest.$ac_ext <<_ACEOF
19860/* end confdefs.h. */
19861$ac_includes_default
19862int
19863main ()
19864{
19865static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19866test_array [0] = 0
19867
19868 ;
19869 return 0;
19870}
19871_ACEOF
19872rm -f conftest.$ac_objext
19873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19874 (eval $ac_compile) 2>conftest.er1
a848cd7e 19875 ac_status=$?
ac1cb8d3
VS
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
a848cd7e
SC
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } &&
3565d135
RR
19881 { ac_try='test -z "$ac_c_werror_flag"
19882 || test ! -s conftest.err'
ac1cb8d3
VS
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; } &&
19888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19894 ac_hi=$ac_mid; break
19895else
19896 echo "$as_me: failed program was:" >&5
19897sed 's/^/| /' conftest.$ac_ext >&5
19898
19899ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19900 if test $ac_lo -le $ac_mid; then
19901 ac_lo= ac_hi=
19902 break
19903 fi
19904 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19905fi
ac1cb8d3 19906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19907 done
19908else
19909 echo "$as_me: failed program was:" >&5
19910sed 's/^/| /' conftest.$ac_ext >&5
19911
19912cat >conftest.$ac_ext <<_ACEOF
19913/* confdefs.h. */
19914_ACEOF
19915cat confdefs.h >>conftest.$ac_ext
19916cat >>conftest.$ac_ext <<_ACEOF
19917/* end confdefs.h. */
19918$ac_includes_default
19919int
19920main ()
19921{
19922static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19923test_array [0] = 0
19924
19925 ;
19926 return 0;
19927}
19928_ACEOF
19929rm -f conftest.$ac_objext
19930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19931 (eval $ac_compile) 2>conftest.er1
a848cd7e 19932 ac_status=$?
ac1cb8d3
VS
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
a848cd7e
SC
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
3565d135
RR
19938 { ac_try='test -z "$ac_c_werror_flag"
19939 || test ! -s conftest.err'
ac1cb8d3
VS
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; } &&
19945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 ac_hi=-1 ac_mid=-1
19952 while :; do
19953 cat >conftest.$ac_ext <<_ACEOF
19954/* confdefs.h. */
19955_ACEOF
19956cat confdefs.h >>conftest.$ac_ext
19957cat >>conftest.$ac_ext <<_ACEOF
19958/* end confdefs.h. */
19959$ac_includes_default
19960int
19961main ()
19962{
19963static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19964test_array [0] = 0
19965
19966 ;
19967 return 0;
19968}
19969_ACEOF
19970rm -f conftest.$ac_objext
19971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19972 (eval $ac_compile) 2>conftest.er1
a848cd7e 19973 ac_status=$?
ac1cb8d3
VS
19974 grep -v '^ *+' conftest.er1 >conftest.err
19975 rm -f conftest.er1
19976 cat conftest.err >&5
a848cd7e
SC
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
3565d135
RR
19979 { ac_try='test -z "$ac_c_werror_flag"
19980 || test ! -s conftest.err'
ac1cb8d3
VS
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; } &&
19986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19992 ac_lo=$ac_mid; break
19993else
19994 echo "$as_me: failed program was:" >&5
19995sed 's/^/| /' conftest.$ac_ext >&5
19996
19997ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19998 if test $ac_mid -le $ac_hi; then
19999 ac_lo= ac_hi=
20000 break
20001 fi
20002 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20003fi
ac1cb8d3 20004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20005 done
20006else
20007 echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
20009
20010ac_lo= ac_hi=
20011fi
ac1cb8d3 20012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20013fi
ac1cb8d3 20014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20015# Binary search between lo and hi bounds.
20016while test "x$ac_lo" != "x$ac_hi"; do
20017 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20018 cat >conftest.$ac_ext <<_ACEOF
20019/* confdefs.h. */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
20023/* end confdefs.h. */
20024$ac_includes_default
20025int
20026main ()
20027{
20028static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20029test_array [0] = 0
20030
20031 ;
20032 return 0;
20033}
20034_ACEOF
20035rm -f conftest.$ac_objext
20036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20037 (eval $ac_compile) 2>conftest.er1
a848cd7e 20038 ac_status=$?
ac1cb8d3
VS
20039 grep -v '^ *+' conftest.er1 >conftest.err
20040 rm -f conftest.er1
20041 cat conftest.err >&5
a848cd7e
SC
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } &&
3565d135
RR
20044 { ac_try='test -z "$ac_c_werror_flag"
20045 || test ! -s conftest.err'
ac1cb8d3
VS
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_hi=$ac_mid
20058else
20059 echo "$as_me: failed program was:" >&5
20060sed 's/^/| /' conftest.$ac_ext >&5
20061
20062ac_lo=`expr '(' $ac_mid ')' + 1`
20063fi
ac1cb8d3 20064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20065done
20066case $ac_lo in
20067?*) ac_cv_sizeof_long_long=$ac_lo;;
20068'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20069See \`config.log' for more details." >&5
20070echo "$as_me: error: cannot compute sizeof (long long), 77
20071See \`config.log' for more details." >&2;}
20072 { (exit 1); exit 1; }; } ;;
20073esac
20074else
20075 if test "$cross_compiling" = yes; then
3565d135
RR
20076 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20077See \`config.log' for more details." >&5
20078echo "$as_me: error: cannot run test program while cross compiling
20079See \`config.log' for more details." >&2;}
a848cd7e
SC
20080 { (exit 1); exit 1; }; }
20081else
20082 cat >conftest.$ac_ext <<_ACEOF
20083/* confdefs.h. */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h. */
20088$ac_includes_default
20089long longval () { return (long) (sizeof (long long)); }
20090unsigned long ulongval () { return (long) (sizeof (long long)); }
20091#include <stdio.h>
20092#include <stdlib.h>
20093int
20094main ()
20095{
20096
20097 FILE *f = fopen ("conftest.val", "w");
20098 if (! f)
20099 exit (1);
20100 if (((long) (sizeof (long long))) < 0)
20101 {
20102 long i = longval ();
20103 if (i != ((long) (sizeof (long long))))
20104 exit (1);
20105 fprintf (f, "%ld\n", i);
20106 }
20107 else
20108 {
20109 unsigned long i = ulongval ();
20110 if (i != ((long) (sizeof (long long))))
20111 exit (1);
20112 fprintf (f, "%lu\n", i);
20113 }
20114 exit (ferror (f) || fclose (f) != 0);
20115
20116 ;
20117 return 0;
20118}
20119_ACEOF
20120rm -f conftest$ac_exeext
20121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20122 (eval $ac_link) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127 (eval $ac_try) 2>&5
20128 ac_status=$?
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; }; then
20131 ac_cv_sizeof_long_long=`cat conftest.val`
20132else
20133 echo "$as_me: program exited with status $ac_status" >&5
20134echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
20137( exit $ac_status )
20138{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20139See \`config.log' for more details." >&5
20140echo "$as_me: error: cannot compute sizeof (long long), 77
20141See \`config.log' for more details." >&2;}
20142 { (exit 1); exit 1; }; }
20143fi
ac1cb8d3 20144rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20145fi
20146fi
20147rm -f conftest.val
20148else
20149 ac_cv_sizeof_long_long=0
20150fi
20151fi
20152echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20153echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20154cat >>confdefs.h <<_ACEOF
20155#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20156_ACEOF
20157
20158
20159 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20160 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20161 fi
20162 ;;
20163 * )
20164 echo "$as_me:$LINENO: checking for long long" >&5
20165echo $ECHO_N "checking for long long... $ECHO_C" >&6
20166if test "${ac_cv_type_long_long+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20168else
20169 cat >conftest.$ac_ext <<_ACEOF
20170/* confdefs.h. */
20171_ACEOF
20172cat confdefs.h >>conftest.$ac_ext
20173cat >>conftest.$ac_ext <<_ACEOF
20174/* end confdefs.h. */
20175$ac_includes_default
20176int
20177main ()
20178{
20179if ((long long *) 0)
20180 return 0;
20181if (sizeof (long long))
20182 return 0;
20183 ;
20184 return 0;
20185}
20186_ACEOF
20187rm -f conftest.$ac_objext
20188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20189 (eval $ac_compile) 2>conftest.er1
a848cd7e 20190 ac_status=$?
ac1cb8d3
VS
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
a848cd7e
SC
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
3565d135
RR
20196 { ac_try='test -z "$ac_c_werror_flag"
20197 || test ! -s conftest.err'
ac1cb8d3
VS
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_type_long_long=yes
20210else
20211 echo "$as_me: failed program was:" >&5
20212sed 's/^/| /' conftest.$ac_ext >&5
20213
20214ac_cv_type_long_long=no
20215fi
ac1cb8d3 20216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20217fi
20218echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20219echo "${ECHO_T}$ac_cv_type_long_long" >&6
20220
20221echo "$as_me:$LINENO: checking size of long long" >&5
20222echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20223if test "${ac_cv_sizeof_long_long+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20225else
20226 if test "$ac_cv_type_long_long" = yes; then
20227 # The cast to unsigned long works around a bug in the HP C Compiler
20228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20229 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20230 # This bug is HP SR number 8606223364.
20231 if test "$cross_compiling" = yes; then
20232 # Depending upon the size, compute the lo and hi bounds.
20233cat >conftest.$ac_ext <<_ACEOF
20234/* confdefs.h. */
20235_ACEOF
20236cat confdefs.h >>conftest.$ac_ext
20237cat >>conftest.$ac_ext <<_ACEOF
20238/* end confdefs.h. */
20239$ac_includes_default
20240int
20241main ()
20242{
20243static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20244test_array [0] = 0
20245
20246 ;
20247 return 0;
20248}
20249_ACEOF
20250rm -f conftest.$ac_objext
20251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20252 (eval $ac_compile) 2>conftest.er1
a848cd7e 20253 ac_status=$?
ac1cb8d3
VS
20254 grep -v '^ *+' conftest.er1 >conftest.err
20255 rm -f conftest.er1
20256 cat conftest.err >&5
a848cd7e
SC
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } &&
3565d135
RR
20259 { ac_try='test -z "$ac_c_werror_flag"
20260 || test ! -s conftest.err'
ac1cb8d3
VS
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; } &&
20266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20272 ac_lo=0 ac_mid=0
20273 while :; do
20274 cat >conftest.$ac_ext <<_ACEOF
20275/* confdefs.h. */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
20279/* end confdefs.h. */
20280$ac_includes_default
20281int
20282main ()
20283{
20284static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20285test_array [0] = 0
20286
20287 ;
20288 return 0;
20289}
20290_ACEOF
20291rm -f conftest.$ac_objext
20292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20293 (eval $ac_compile) 2>conftest.er1
a848cd7e 20294 ac_status=$?
ac1cb8d3
VS
20295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
a848cd7e
SC
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
3565d135
RR
20300 { ac_try='test -z "$ac_c_werror_flag"
20301 || test ! -s conftest.err'
ac1cb8d3
VS
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
20313 ac_hi=$ac_mid; break
20314else
20315 echo "$as_me: failed program was:" >&5
20316sed 's/^/| /' conftest.$ac_ext >&5
20317
20318ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20319 if test $ac_lo -le $ac_mid; then
20320 ac_lo= ac_hi=
20321 break
20322 fi
20323 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20324fi
ac1cb8d3 20325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20326 done
20327else
20328 echo "$as_me: failed program was:" >&5
20329sed 's/^/| /' conftest.$ac_ext >&5
20330
20331cat >conftest.$ac_ext <<_ACEOF
20332/* confdefs.h. */
20333_ACEOF
20334cat confdefs.h >>conftest.$ac_ext
20335cat >>conftest.$ac_ext <<_ACEOF
20336/* end confdefs.h. */
20337$ac_includes_default
20338int
20339main ()
20340{
20341static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20342test_array [0] = 0
20343
20344 ;
20345 return 0;
20346}
20347_ACEOF
20348rm -f conftest.$ac_objext
20349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20350 (eval $ac_compile) 2>conftest.er1
a848cd7e 20351 ac_status=$?
ac1cb8d3
VS
20352 grep -v '^ *+' conftest.er1 >conftest.err
20353 rm -f conftest.er1
20354 cat conftest.err >&5
a848cd7e
SC
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } &&
3565d135
RR
20357 { ac_try='test -z "$ac_c_werror_flag"
20358 || test ! -s conftest.err'
ac1cb8d3
VS
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; }; then
20370 ac_hi=-1 ac_mid=-1
20371 while :; do
20372 cat >conftest.$ac_ext <<_ACEOF
20373/* confdefs.h. */
20374_ACEOF
20375cat confdefs.h >>conftest.$ac_ext
20376cat >>conftest.$ac_ext <<_ACEOF
20377/* end confdefs.h. */
20378$ac_includes_default
20379int
20380main ()
20381{
20382static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20383test_array [0] = 0
20384
20385 ;
20386 return 0;
20387}
20388_ACEOF
20389rm -f conftest.$ac_objext
20390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20391 (eval $ac_compile) 2>conftest.er1
a848cd7e 20392 ac_status=$?
ac1cb8d3
VS
20393 grep -v '^ *+' conftest.er1 >conftest.err
20394 rm -f conftest.er1
20395 cat conftest.err >&5
a848cd7e
SC
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } &&
3565d135
RR
20398 { ac_try='test -z "$ac_c_werror_flag"
20399 || test ! -s conftest.err'
ac1cb8d3
VS
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; } &&
20405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 ac_lo=$ac_mid; break
20412else
20413 echo "$as_me: failed program was:" >&5
20414sed 's/^/| /' conftest.$ac_ext >&5
20415
20416ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20417 if test $ac_mid -le $ac_hi; then
20418 ac_lo= ac_hi=
20419 break
20420 fi
20421 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20422fi
ac1cb8d3 20423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20424 done
20425else
20426 echo "$as_me: failed program was:" >&5
20427sed 's/^/| /' conftest.$ac_ext >&5
20428
20429ac_lo= ac_hi=
20430fi
ac1cb8d3 20431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20432fi
ac1cb8d3 20433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20434# Binary search between lo and hi bounds.
20435while test "x$ac_lo" != "x$ac_hi"; do
20436 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20437 cat >conftest.$ac_ext <<_ACEOF
20438/* confdefs.h. */
20439_ACEOF
20440cat confdefs.h >>conftest.$ac_ext
20441cat >>conftest.$ac_ext <<_ACEOF
20442/* end confdefs.h. */
20443$ac_includes_default
20444int
20445main ()
20446{
20447static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20448test_array [0] = 0
20449
20450 ;
20451 return 0;
20452}
20453_ACEOF
20454rm -f conftest.$ac_objext
20455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20456 (eval $ac_compile) 2>conftest.er1
a848cd7e 20457 ac_status=$?
ac1cb8d3
VS
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
a848cd7e
SC
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } &&
3565d135
RR
20463 { ac_try='test -z "$ac_c_werror_flag"
20464 || test ! -s conftest.err'
ac1cb8d3
VS
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; } &&
20470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; }; then
20476 ac_hi=$ac_mid
20477else
20478 echo "$as_me: failed program was:" >&5
20479sed 's/^/| /' conftest.$ac_ext >&5
20480
20481ac_lo=`expr '(' $ac_mid ')' + 1`
20482fi
ac1cb8d3 20483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20484done
20485case $ac_lo in
20486?*) ac_cv_sizeof_long_long=$ac_lo;;
20487'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20488See \`config.log' for more details." >&5
20489echo "$as_me: error: cannot compute sizeof (long long), 77
20490See \`config.log' for more details." >&2;}
20491 { (exit 1); exit 1; }; } ;;
20492esac
20493else
20494 if test "$cross_compiling" = yes; then
3565d135
RR
20495 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20496See \`config.log' for more details." >&5
20497echo "$as_me: error: cannot run test program while cross compiling
20498See \`config.log' for more details." >&2;}
a848cd7e
SC
20499 { (exit 1); exit 1; }; }
20500else
20501 cat >conftest.$ac_ext <<_ACEOF
20502/* confdefs.h. */
20503_ACEOF
20504cat confdefs.h >>conftest.$ac_ext
20505cat >>conftest.$ac_ext <<_ACEOF
20506/* end confdefs.h. */
20507$ac_includes_default
20508long longval () { return (long) (sizeof (long long)); }
20509unsigned long ulongval () { return (long) (sizeof (long long)); }
20510#include <stdio.h>
20511#include <stdlib.h>
20512int
20513main ()
20514{
20515
20516 FILE *f = fopen ("conftest.val", "w");
20517 if (! f)
20518 exit (1);
20519 if (((long) (sizeof (long long))) < 0)
20520 {
20521 long i = longval ();
20522 if (i != ((long) (sizeof (long long))))
20523 exit (1);
20524 fprintf (f, "%ld\n", i);
20525 }
20526 else
20527 {
20528 unsigned long i = ulongval ();
20529 if (i != ((long) (sizeof (long long))))
20530 exit (1);
20531 fprintf (f, "%lu\n", i);
20532 }
20533 exit (ferror (f) || fclose (f) != 0);
20534
20535 ;
20536 return 0;
20537}
20538_ACEOF
20539rm -f conftest$ac_exeext
20540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20541 (eval $ac_link) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; }; then
20550 ac_cv_sizeof_long_long=`cat conftest.val`
20551else
20552 echo "$as_me: program exited with status $ac_status" >&5
20553echo "$as_me: failed program was:" >&5
20554sed 's/^/| /' conftest.$ac_ext >&5
20555
20556( exit $ac_status )
20557{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20558See \`config.log' for more details." >&5
20559echo "$as_me: error: cannot compute sizeof (long long), 77
20560See \`config.log' for more details." >&2;}
20561 { (exit 1); exit 1; }; }
20562fi
ac1cb8d3 20563rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20564fi
20565fi
20566rm -f conftest.val
20567else
20568 ac_cv_sizeof_long_long=0
20569fi
20570fi
20571echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20572echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20573cat >>confdefs.h <<_ACEOF
20574#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20575_ACEOF
20576
20577
20578esac
20579
238ecede
MW
20580echo "$as_me:$LINENO: checking for wchar_t" >&5
20581echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20582if test "${ac_cv_type_wchar_t+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20584else
20585 cat >conftest.$ac_ext <<_ACEOF
20586/* confdefs.h. */
20587_ACEOF
20588cat confdefs.h >>conftest.$ac_ext
20589cat >>conftest.$ac_ext <<_ACEOF
20590/* end confdefs.h. */
20591
83d8eb47
MW
20592 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20593 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20594 # error "fake wchar_t"
20595 #endif
20596 #ifdef HAVE_WCHAR_H
20597 # ifdef __CYGWIN__
20598 # include <stddef.h>
20599 # endif
20600 # include <wchar.h>
20601 #endif
20602 #ifdef HAVE_STDLIB_H
20603 # include <stdlib.h>
20604 #endif
20605 #include <stdio.h>
20606
20607
20608
20609int
20610main ()
20611{
20612if ((wchar_t *) 0)
20613 return 0;
20614if (sizeof (wchar_t))
20615 return 0;
20616 ;
20617 return 0;
20618}
20619_ACEOF
20620rm -f conftest.$ac_objext
20621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20622 (eval $ac_compile) 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
3565d135
RR
20629 { ac_try='test -z "$ac_c_werror_flag"
20630 || test ! -s conftest.err'
238ecede
MW
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; } &&
20636 { ac_try='test -s conftest.$ac_objext'
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20639 ac_status=$?
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; }; then
20642 ac_cv_type_wchar_t=yes
20643else
20644 echo "$as_me: failed program was:" >&5
20645sed 's/^/| /' conftest.$ac_ext >&5
20646
20647ac_cv_type_wchar_t=no
20648fi
20649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20650fi
20651echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20652echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20653
a848cd7e
SC
20654echo "$as_me:$LINENO: checking size of wchar_t" >&5
20655echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20656if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20658else
238ecede
MW
20659 if test "$ac_cv_type_wchar_t" = yes; then
20660 # The cast to unsigned long works around a bug in the HP C Compiler
20661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20663 # This bug is HP SR number 8606223364.
20664 if test "$cross_compiling" = yes; then
20665 # Depending upon the size, compute the lo and hi bounds.
20666cat >conftest.$ac_ext <<_ACEOF
20667/* confdefs.h. */
20668_ACEOF
20669cat confdefs.h >>conftest.$ac_ext
20670cat >>conftest.$ac_ext <<_ACEOF
20671/* end confdefs.h. */
20672
83d8eb47
MW
20673 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20674 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20675 # error "fake wchar_t"
20676 #endif
20677 #ifdef HAVE_WCHAR_H
20678 # ifdef __CYGWIN__
20679 # include <stddef.h>
20680 # endif
20681 # include <wchar.h>
20682 #endif
20683 #ifdef HAVE_STDLIB_H
20684 # include <stdlib.h>
20685 #endif
20686 #include <stdio.h>
20687
20688
20689
20690int
20691main ()
20692{
20693static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20694test_array [0] = 0
20695
20696 ;
20697 return 0;
20698}
20699_ACEOF
20700rm -f conftest.$ac_objext
20701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20702 (eval $ac_compile) 2>conftest.er1
20703 ac_status=$?
20704 grep -v '^ *+' conftest.er1 >conftest.err
20705 rm -f conftest.er1
20706 cat conftest.err >&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } &&
3565d135
RR
20709 { ac_try='test -z "$ac_c_werror_flag"
20710 || test ! -s conftest.err'
238ecede
MW
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; } &&
20716 { ac_try='test -s conftest.$ac_objext'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 ac_lo=0 ac_mid=0
20723 while :; do
20724 cat >conftest.$ac_ext <<_ACEOF
20725/* confdefs.h. */
20726_ACEOF
20727cat confdefs.h >>conftest.$ac_ext
20728cat >>conftest.$ac_ext <<_ACEOF
20729/* end confdefs.h. */
20730
83d8eb47
MW
20731 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20732 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20733 # error "fake wchar_t"
20734 #endif
20735 #ifdef HAVE_WCHAR_H
20736 # ifdef __CYGWIN__
20737 # include <stddef.h>
20738 # endif
20739 # include <wchar.h>
20740 #endif
20741 #ifdef HAVE_STDLIB_H
20742 # include <stdlib.h>
20743 #endif
20744 #include <stdio.h>
20745
20746
20747
20748int
20749main ()
20750{
20751static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20752test_array [0] = 0
20753
20754 ;
20755 return 0;
20756}
20757_ACEOF
20758rm -f conftest.$ac_objext
20759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20760 (eval $ac_compile) 2>conftest.er1
20761 ac_status=$?
20762 grep -v '^ *+' conftest.er1 >conftest.err
20763 rm -f conftest.er1
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } &&
3565d135
RR
20767 { ac_try='test -z "$ac_c_werror_flag"
20768 || test ! -s conftest.err'
238ecede
MW
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try='test -s conftest.$ac_objext'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 ac_hi=$ac_mid; break
20781else
20782 echo "$as_me: failed program was:" >&5
20783sed 's/^/| /' conftest.$ac_ext >&5
20784
20785ac_lo=`expr $ac_mid + 1`
20786 if test $ac_lo -le $ac_mid; then
20787 ac_lo= ac_hi=
20788 break
20789 fi
20790 ac_mid=`expr 2 '*' $ac_mid + 1`
20791fi
20792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20793 done
20794else
20795 echo "$as_me: failed program was:" >&5
20796sed 's/^/| /' conftest.$ac_ext >&5
20797
20798cat >conftest.$ac_ext <<_ACEOF
20799/* confdefs.h. */
20800_ACEOF
20801cat confdefs.h >>conftest.$ac_ext
20802cat >>conftest.$ac_ext <<_ACEOF
20803/* end confdefs.h. */
20804
83d8eb47
MW
20805 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20806 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20807 # error "fake wchar_t"
20808 #endif
20809 #ifdef HAVE_WCHAR_H
20810 # ifdef __CYGWIN__
20811 # include <stddef.h>
20812 # endif
20813 # include <wchar.h>
20814 #endif
20815 #ifdef HAVE_STDLIB_H
20816 # include <stdlib.h>
20817 #endif
20818 #include <stdio.h>
20819
20820
20821
20822int
20823main ()
20824{
20825static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20826test_array [0] = 0
20827
20828 ;
20829 return 0;
20830}
20831_ACEOF
20832rm -f conftest.$ac_objext
20833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20834 (eval $ac_compile) 2>conftest.er1
20835 ac_status=$?
20836 grep -v '^ *+' conftest.er1 >conftest.err
20837 rm -f conftest.er1
20838 cat conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } &&
3565d135
RR
20841 { ac_try='test -z "$ac_c_werror_flag"
20842 || test ! -s conftest.err'
238ecede
MW
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20845 ac_status=$?
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; } &&
20848 { ac_try='test -s conftest.$ac_objext'
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20851 ac_status=$?
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; }; then
20854 ac_hi=-1 ac_mid=-1
20855 while :; do
20856 cat >conftest.$ac_ext <<_ACEOF
20857/* confdefs.h. */
20858_ACEOF
20859cat confdefs.h >>conftest.$ac_ext
20860cat >>conftest.$ac_ext <<_ACEOF
20861/* end confdefs.h. */
20862
83d8eb47
MW
20863 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20864 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20865 # error "fake wchar_t"
20866 #endif
20867 #ifdef HAVE_WCHAR_H
20868 # ifdef __CYGWIN__
20869 # include <stddef.h>
20870 # endif
20871 # include <wchar.h>
20872 #endif
20873 #ifdef HAVE_STDLIB_H
20874 # include <stdlib.h>
20875 #endif
20876 #include <stdio.h>
20877
20878
20879
20880int
20881main ()
20882{
20883static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20884test_array [0] = 0
20885
20886 ;
20887 return 0;
20888}
20889_ACEOF
20890rm -f conftest.$ac_objext
20891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20892 (eval $ac_compile) 2>conftest.er1
20893 ac_status=$?
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
3565d135
RR
20899 { ac_try='test -z "$ac_c_werror_flag"
20900 || test ! -s conftest.err'
238ecede
MW
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try='test -s conftest.$ac_objext'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20909 ac_status=$?
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20912 ac_lo=$ac_mid; break
20913else
20914 echo "$as_me: failed program was:" >&5
20915sed 's/^/| /' conftest.$ac_ext >&5
20916
20917ac_hi=`expr '(' $ac_mid ')' - 1`
20918 if test $ac_mid -le $ac_hi; then
20919 ac_lo= ac_hi=
20920 break
20921 fi
20922 ac_mid=`expr 2 '*' $ac_mid`
20923fi
20924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20925 done
20926else
20927 echo "$as_me: failed program was:" >&5
20928sed 's/^/| /' conftest.$ac_ext >&5
20929
20930ac_lo= ac_hi=
20931fi
20932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20933fi
20934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20935# Binary search between lo and hi bounds.
20936while test "x$ac_lo" != "x$ac_hi"; do
20937 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20938 cat >conftest.$ac_ext <<_ACEOF
20939/* confdefs.h. */
20940_ACEOF
20941cat confdefs.h >>conftest.$ac_ext
20942cat >>conftest.$ac_ext <<_ACEOF
20943/* end confdefs.h. */
20944
83d8eb47
MW
20945 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20946 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20947 # error "fake wchar_t"
20948 #endif
20949 #ifdef HAVE_WCHAR_H
20950 # ifdef __CYGWIN__
20951 # include <stddef.h>
20952 # endif
20953 # include <wchar.h>
20954 #endif
20955 #ifdef HAVE_STDLIB_H
20956 # include <stdlib.h>
20957 #endif
20958 #include <stdio.h>
a848cd7e 20959
a848cd7e 20960
a848cd7e 20961
238ecede
MW
20962int
20963main ()
20964{
20965static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20966test_array [0] = 0
a848cd7e 20967
238ecede
MW
20968 ;
20969 return 0;
20970}
20971_ACEOF
20972rm -f conftest.$ac_objext
20973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20974 (eval $ac_compile) 2>conftest.er1
20975 ac_status=$?
20976 grep -v '^ *+' conftest.er1 >conftest.err
20977 rm -f conftest.er1
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } &&
3565d135
RR
20981 { ac_try='test -z "$ac_c_werror_flag"
20982 || test ! -s conftest.err'
238ecede
MW
20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20985 ac_status=$?
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; } &&
20988 { ac_try='test -s conftest.$ac_objext'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }; then
20994 ac_hi=$ac_mid
20995else
20996 echo "$as_me: failed program was:" >&5
20997sed 's/^/| /' conftest.$ac_ext >&5
20998
20999ac_lo=`expr '(' $ac_mid ')' + 1`
21000fi
21001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21002done
21003case $ac_lo in
21004?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21005'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21006See \`config.log' for more details." >&5
21007echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21008See \`config.log' for more details." >&2;}
21009 { (exit 1); exit 1; }; } ;;
21010esac
21011else
21012 if test "$cross_compiling" = yes; then
3565d135
RR
21013 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21014See \`config.log' for more details." >&5
21015echo "$as_me: error: cannot run test program while cross compiling
21016See \`config.log' for more details." >&2;}
238ecede 21017 { (exit 1); exit 1; }; }
a848cd7e
SC
21018else
21019 cat >conftest.$ac_ext <<_ACEOF
21020/* confdefs.h. */
21021_ACEOF
21022cat confdefs.h >>conftest.$ac_ext
21023cat >>conftest.$ac_ext <<_ACEOF
21024/* end confdefs.h. */
21025
83d8eb47
MW
21026 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21027 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21028 # error "fake wchar_t"
21029 #endif
21030 #ifdef HAVE_WCHAR_H
21031 # ifdef __CYGWIN__
21032 # include <stddef.h>
21033 # endif
21034 # include <wchar.h>
21035 #endif
21036 #ifdef HAVE_STDLIB_H
21037 # include <stdlib.h>
21038 #endif
21039 #include <stdio.h>
21040
21041
21042
21043long longval () { return (long) (sizeof (wchar_t)); }
21044unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21045#include <stdio.h>
21046#include <stdlib.h>
21047int
21048main ()
21049{
a848cd7e 21050
238ecede
MW
21051 FILE *f = fopen ("conftest.val", "w");
21052 if (! f)
21053 exit (1);
21054 if (((long) (sizeof (wchar_t))) < 0)
21055 {
21056 long i = longval ();
21057 if (i != ((long) (sizeof (wchar_t))))
21058 exit (1);
21059 fprintf (f, "%ld\n", i);
21060 }
21061 else
21062 {
21063 unsigned long i = ulongval ();
21064 if (i != ((long) (sizeof (wchar_t))))
21065 exit (1);
21066 fprintf (f, "%lu\n", i);
21067 }
21068 exit (ferror (f) || fclose (f) != 0);
21069
21070 ;
21071 return 0;
21072}
a848cd7e
SC
21073_ACEOF
21074rm -f conftest$ac_exeext
21075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21076 (eval $ac_link) 2>&5
21077 ac_status=$?
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
238ecede 21085 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21086else
21087 echo "$as_me: program exited with status $ac_status" >&5
21088echo "$as_me: failed program was:" >&5
21089sed 's/^/| /' conftest.$ac_ext >&5
21090
21091( exit $ac_status )
238ecede
MW
21092{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21093See \`config.log' for more details." >&5
21094echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21095See \`config.log' for more details." >&2;}
21096 { (exit 1); exit 1; }; }
a848cd7e 21097fi
ac1cb8d3 21098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21099fi
a848cd7e 21100fi
238ecede
MW
21101rm -f conftest.val
21102else
21103 ac_cv_sizeof_wchar_t=0
21104fi
21105fi
21106echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21107echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21108cat >>confdefs.h <<_ACEOF
238ecede 21109#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21110_ACEOF
21111
21112
47a7e797
MW
21113if test "$ac_cv_sizeof_wchar_t" != "0"; then
21114 wxUSE_WCHAR_T=yes
21115else
21116 wxUSE_WCHAR_T=no
21117fi
238ecede 21118
ba3d13e1
VZ
21119echo "$as_me:$LINENO: checking for va_copy" >&5
21120echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21121if test "${wx_cv_func_va_copy+set}" = set; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123else
21124
21125 cat >conftest.$ac_ext <<_ACEOF
21126
21127 #include <stdarg.h>
21128 void foo(char *f, ...)
21129 {
21130 va_list ap1, ap2;
21131 va_start(ap1, f);
21132 va_copy(ap2, ap1);
21133 va_end(ap2);
21134 va_end(ap1);
21135 }
5886b072
VZ
21136 int main()
21137 {
b902e639
VZ
21138 foo("hi", 17);
21139 return 0;
5886b072 21140 }
ba3d13e1
VZ
21141_ACEOF
21142rm -f conftest.$ac_objext conftest$ac_exeext
21143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21144 (eval $ac_link) 2>conftest.er1
21145 ac_status=$?
21146 grep -v '^ *+' conftest.er1 >conftest.err
21147 rm -f conftest.er1
21148 cat conftest.err >&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } &&
3565d135
RR
21151 { ac_try='test -z "$ac_c_werror_flag"
21152 || test ! -s conftest.err'
ba3d13e1
VZ
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_exeext'
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_func_va_copy=yes
21165else
21166 echo "$as_me: failed program was:" >&5
21167sed 's/^/| /' conftest.$ac_ext >&5
21168
21169wx_cv_func_va_copy=no
21170
21171fi
21172rm -f conftest.err conftest.$ac_objext \
21173 conftest$ac_exeext conftest.$ac_ext
21174
21175
21176fi
21177echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21178echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21179
21180if test $wx_cv_func_va_copy = "yes"; then
21181 cat >>confdefs.h <<\_ACEOF
21182#define HAVE_VA_COPY 1
21183_ACEOF
21184
21185else
21186 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21187echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21188if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21189 echo $ECHO_N "(cached) $ECHO_C" >&6
21190else
21191
21192 if test "$cross_compiling" = yes; then
21193 wx_cv_type_va_list_lvalue=yes
21194
21195else
21196 cat >conftest.$ac_ext <<_ACEOF
21197
21198 #include <stdarg.h>
21199 int foo(char *f, ...)
21200 {
21201 va_list ap1, ap2;
21202 va_start(ap1, f);
21203 ap2 = ap1;
21204 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21205 return 1;
21206 va_end(ap2);
21207 va_end(ap1);
21208 return 0;
21209 }
21210 int main()
21211 {
21212 return foo("hi", 17);
21213 }
21214_ACEOF
21215rm -f conftest$ac_exeext
21216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21217 (eval $ac_link) 2>&5
21218 ac_status=$?
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; }; then
21226 wx_cv_type_va_list_lvalue=yes
21227else
21228 echo "$as_me: program exited with status $ac_status" >&5
21229echo "$as_me: failed program was:" >&5
21230sed 's/^/| /' conftest.$ac_ext >&5
21231
21232( exit $ac_status )
21233wx_cv_type_va_list_lvalue=no
21234fi
21235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21236fi
21237
21238
21239fi
21240echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21241echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21242
21243 if test $wx_cv_type_va_list_lvalue != "yes"; then
21244 cat >>confdefs.h <<\_ACEOF
21245#define VA_LIST_IS_ARRAY 1
21246_ACEOF
21247
21248 fi
21249fi
21250
a848cd7e
SC
21251# Check whether --enable-largefile or --disable-largefile was given.
21252if test "${enable_largefile+set}" = set; then
21253 enableval="$enable_largefile"
21254
21255fi;
21256if test "$enable_largefile" != no; then
21257 wx_largefile=no
21258
21259 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21260echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21261if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21263else
21264
21265 cat >conftest.$ac_ext <<_ACEOF
21266/* confdefs.h. */
21267_ACEOF
21268cat confdefs.h >>conftest.$ac_ext
21269cat >>conftest.$ac_ext <<_ACEOF
21270/* end confdefs.h. */
21271#define _FILE_OFFSET_BITS 64
21272 #include <sys/types.h>
21273int
21274main ()
21275{
21276typedef struct {
21277 unsigned int field: sizeof(off_t) == 8;
21278} wxlf;
21279
21280 ;
21281 return 0;
21282}
21283_ACEOF
21284rm -f conftest.$ac_objext
21285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21286 (eval $ac_compile) 2>conftest.er1
a848cd7e 21287 ac_status=$?
ac1cb8d3
VS
21288 grep -v '^ *+' conftest.er1 >conftest.err
21289 rm -f conftest.er1
21290 cat conftest.err >&5
a848cd7e
SC
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } &&
3565d135
RR
21293 { ac_try='test -z "$ac_c_werror_flag"
21294 || test ! -s conftest.err'
ac1cb8d3
VS
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21297 ac_status=$?
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; } &&
21300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; }; then
21306 ac_cv_sys_file_offset_bits=64
21307else
21308 echo "$as_me: failed program was:" >&5
21309sed 's/^/| /' conftest.$ac_ext >&5
21310
21311ac_cv_sys_file_offset_bits=no
21312fi
ac1cb8d3 21313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21314
21315
21316fi
21317echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21318echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21319
21320 if test "$ac_cv_sys_file_offset_bits" != no; then
21321 wx_largefile=yes
21322 cat >>confdefs.h <<_ACEOF
21323#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21324_ACEOF
21325
21326 fi
21327
21328 if test "x$wx_largefile" != "xyes"; then
21329
21330 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21331echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21332if test "${ac_cv_sys_large_files+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21334else
21335
21336 cat >conftest.$ac_ext <<_ACEOF
21337/* confdefs.h. */
21338_ACEOF
21339cat confdefs.h >>conftest.$ac_ext
21340cat >>conftest.$ac_ext <<_ACEOF
21341/* end confdefs.h. */
21342#define _LARGE_FILES 1
21343 #include <sys/types.h>
21344int
21345main ()
21346{
21347typedef struct {
21348 unsigned int field: sizeof(off_t) == 8;
21349} wxlf;
21350
21351 ;
21352 return 0;
21353}
21354_ACEOF
21355rm -f conftest.$ac_objext
21356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21357 (eval $ac_compile) 2>conftest.er1
a848cd7e 21358 ac_status=$?
ac1cb8d3
VS
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
a848cd7e
SC
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
3565d135
RR
21364 { ac_try='test -z "$ac_c_werror_flag"
21365 || test ! -s conftest.err'
ac1cb8d3
VS
21366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367 (eval $ac_try) 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; } &&
21371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 ac_cv_sys_large_files=1
21378else
21379 echo "$as_me: failed program was:" >&5
21380sed 's/^/| /' conftest.$ac_ext >&5
21381
21382ac_cv_sys_large_files=no
21383fi
ac1cb8d3 21384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21385
21386
21387fi
21388echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21389echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21390
21391 if test "$ac_cv_sys_large_files" != no; then
21392 wx_largefile=yes
21393 cat >>confdefs.h <<_ACEOF
21394#define _LARGE_FILES $ac_cv_sys_large_files
21395_ACEOF
21396
21397 fi
21398
21399 fi
21400
21401 echo "$as_me:$LINENO: checking if large file support is available" >&5
21402echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21403 if test "x$wx_largefile" = "xyes"; then
21404 cat >>confdefs.h <<\_ACEOF
21405#define HAVE_LARGEFILE_SUPPORT 1
21406_ACEOF
21407
21408 fi
21409 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21410echo "${ECHO_T}$wx_largefile" >&6
21411fi
21412
5b674b9d
DE
21413
21414if test "x$wx_largefile" = "xyes"; then
21415 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21416 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21417
21418 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21419 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21420echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21421if test "${wx_cv_STDC_EXT_required+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423else
21424
21425
21426
21427 ac_ext=cc
21428ac_cpp='$CXXCPP $CPPFLAGS'
21429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21432
21433 cat >conftest.$ac_ext <<_ACEOF
21434/* confdefs.h. */
21435_ACEOF
21436cat confdefs.h >>conftest.$ac_ext
21437cat >>conftest.$ac_ext <<_ACEOF
21438/* end confdefs.h. */
21439
21440int
21441main ()
21442{
21443
21444 #ifndef __STDC_EXT__
21445 choke me
21446 #endif
21447
21448 ;
21449 return 0;
21450}
21451_ACEOF
21452rm -f conftest.$ac_objext
21453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21454 (eval $ac_compile) 2>conftest.er1
21455 ac_status=$?
21456 grep -v '^ *+' conftest.er1 >conftest.err
21457 rm -f conftest.er1
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } &&
3565d135
RR
21461 { ac_try='test -z "$ac_cxx_werror_flag"
21462 || test ! -s conftest.err'
00421666
MW
21463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464 (eval $ac_try) 2>&5
21465 ac_status=$?
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; } &&
21468 { ac_try='test -s conftest.$ac_objext'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21471 ac_status=$?
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; }; then
21474 wx_cv_STDC_EXT_required=no
21475else
21476 echo "$as_me: failed program was:" >&5
21477sed 's/^/| /' conftest.$ac_ext >&5
21478
21479wx_cv_STDC_EXT_required=yes
21480
21481fi
21482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21483 ac_ext=c
21484ac_cpp='$CPP $CPPFLAGS'
21485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21487ac_compiler_gnu=$ac_cv_c_compiler_gnu
21488
21489
21490
21491fi
21492echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21493echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21494 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21495 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21496 fi
21497 fi
5b674b9d 21498 else
5ff751d6 21499 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21500 fi
21501 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21502echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21503if test "${ac_cv_sys_largefile_source+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21505else
21506 while :; do
21507 ac_cv_sys_largefile_source=no
21508 cat >conftest.$ac_ext <<_ACEOF
21509/* confdefs.h. */
21510_ACEOF
21511cat confdefs.h >>conftest.$ac_ext
21512cat >>conftest.$ac_ext <<_ACEOF
21513/* end confdefs.h. */
21514#include <stdio.h>
21515int
21516main ()
21517{
21518return !fseeko;
21519 ;
21520 return 0;
21521}
21522_ACEOF
21523rm -f conftest.$ac_objext
21524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21525 (eval $ac_compile) 2>conftest.er1
21526 ac_status=$?
21527 grep -v '^ *+' conftest.er1 >conftest.err
21528 rm -f conftest.er1
21529 cat conftest.err >&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } &&
3565d135
RR
21532 { ac_try='test -z "$ac_c_werror_flag"
21533 || test ! -s conftest.err'
5294a27e
VZ
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; } &&
21539 { ac_try='test -s conftest.$ac_objext'
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21542 ac_status=$?
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }; then
21545 break
21546else
21547 echo "$as_me: failed program was:" >&5
21548sed 's/^/| /' conftest.$ac_ext >&5
21549
21550fi
21551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21552 cat >conftest.$ac_ext <<_ACEOF
21553/* confdefs.h. */
21554_ACEOF
21555cat confdefs.h >>conftest.$ac_ext
21556cat >>conftest.$ac_ext <<_ACEOF
21557/* end confdefs.h. */
21558#define _LARGEFILE_SOURCE 1
21559#include <stdio.h>
21560int
21561main ()
21562{
21563return !fseeko;
21564 ;
21565 return 0;
21566}
21567_ACEOF
21568rm -f conftest.$ac_objext
21569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21570 (eval $ac_compile) 2>conftest.er1
21571 ac_status=$?
21572 grep -v '^ *+' conftest.er1 >conftest.err
21573 rm -f conftest.er1
21574 cat conftest.err >&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } &&
3565d135
RR
21577 { ac_try='test -z "$ac_c_werror_flag"
21578 || test ! -s conftest.err'
5294a27e
VZ
21579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580 (eval $ac_try) 2>&5
21581 ac_status=$?
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); }; } &&
21584 { ac_try='test -s conftest.$ac_objext'
21585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586 (eval $ac_try) 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; }; then
21590 ac_cv_sys_largefile_source=1; break
21591else
21592 echo "$as_me: failed program was:" >&5
21593sed 's/^/| /' conftest.$ac_ext >&5
21594
21595fi
21596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21597 break
21598done
21599fi
21600echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21601echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21602if test "$ac_cv_sys_largefile_source" != no; then
21603
21604cat >>confdefs.h <<_ACEOF
21605#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21606_ACEOF
21607
21608fi
21609rm -f conftest*
21610
21611# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21612# in glibc 2.1.3, but that breaks too many other things.
21613# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21614echo "$as_me:$LINENO: checking for fseeko" >&5
21615echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21616if test "${ac_cv_func_fseeko+set}" = set; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21618else
21619 cat >conftest.$ac_ext <<_ACEOF
21620/* confdefs.h. */
21621_ACEOF
21622cat confdefs.h >>conftest.$ac_ext
21623cat >>conftest.$ac_ext <<_ACEOF
21624/* end confdefs.h. */
21625#include <stdio.h>
21626int
21627main ()
21628{
21629return fseeko && fseeko (stdin, 0, 0);
21630 ;
21631 return 0;
21632}
21633_ACEOF
21634rm -f conftest.$ac_objext conftest$ac_exeext
21635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21636 (eval $ac_link) 2>conftest.er1
21637 ac_status=$?
21638 grep -v '^ *+' conftest.er1 >conftest.err
21639 rm -f conftest.er1
21640 cat conftest.err >&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } &&
3565d135
RR
21643 { ac_try='test -z "$ac_c_werror_flag"
21644 || test ! -s conftest.err'
5294a27e
VZ
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; } &&
21650 { ac_try='test -s conftest$ac_exeext'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }; then
21656 ac_cv_func_fseeko=yes
21657else
21658 echo "$as_me: failed program was:" >&5
21659sed 's/^/| /' conftest.$ac_ext >&5
21660
21661ac_cv_func_fseeko=no
21662fi
21663rm -f conftest.err conftest.$ac_objext \
21664 conftest$ac_exeext conftest.$ac_ext
21665fi
21666echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21667echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21668if test $ac_cv_func_fseeko = yes; then
21669
21670cat >>confdefs.h <<\_ACEOF
21671#define HAVE_FSEEKO 1
21672_ACEOF
21673
21674fi
21675
5b674b9d 21676 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21677 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21678 fi
a848cd7e
SC
21679fi
21680
21681echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21682echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21683if test "${ac_cv_c_bigendian+set}" = set; then
21684 echo $ECHO_N "(cached) $ECHO_C" >&6
21685else
21686 ac_cv_c_bigendian=unknown
21687# See if sys/param.h defines the BYTE_ORDER macro.
21688cat >conftest.$ac_ext <<_ACEOF
21689/* confdefs.h. */
21690_ACEOF
21691cat confdefs.h >>conftest.$ac_ext
21692cat >>conftest.$ac_ext <<_ACEOF
21693/* end confdefs.h. */
21694#include <sys/types.h>
21695#include <sys/param.h>
21696int
21697main ()
21698{
21699
21700#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21701 bogus endian macros
21702#endif
21703 ;
21704 return 0;
21705}
21706_ACEOF
21707rm -f conftest.$ac_objext
21708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21709 (eval $ac_compile) 2>conftest.er1
a848cd7e 21710 ac_status=$?
ac1cb8d3
VS
21711 grep -v '^ *+' conftest.er1 >conftest.err
21712 rm -f conftest.er1
21713 cat conftest.err >&5
a848cd7e
SC
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } &&
3565d135
RR
21716 { ac_try='test -z "$ac_c_werror_flag"
21717 || test ! -s conftest.err'
ac1cb8d3
VS
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; } &&
21723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21726 ac_status=$?
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21729 # It does; now see whether it defined to BIG_ENDIAN or not.
21730cat >conftest.$ac_ext <<_ACEOF
21731/* confdefs.h. */
21732_ACEOF
21733cat confdefs.h >>conftest.$ac_ext
21734cat >>conftest.$ac_ext <<_ACEOF
21735/* end confdefs.h. */
21736#include <sys/types.h>
21737#include <sys/param.h>
21738int
21739main ()
21740{
21741
21742#if BYTE_ORDER != BIG_ENDIAN
21743 not big endian
21744#endif
21745 ;
21746 return 0;
21747}
21748_ACEOF
21749rm -f conftest.$ac_objext
21750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21751 (eval $ac_compile) 2>conftest.er1
a848cd7e 21752 ac_status=$?
ac1cb8d3
VS
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
a848cd7e
SC
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
3565d135
RR
21758 { ac_try='test -z "$ac_c_werror_flag"
21759 || test ! -s conftest.err'
ac1cb8d3
VS
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ac_cv_c_bigendian=yes
21772else
21773 echo "$as_me: failed program was:" >&5
21774sed 's/^/| /' conftest.$ac_ext >&5
21775
21776ac_cv_c_bigendian=no
21777fi
ac1cb8d3 21778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21779else
21780 echo "$as_me: failed program was:" >&5
21781sed 's/^/| /' conftest.$ac_ext >&5
21782
21783fi
ac1cb8d3 21784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21785if test $ac_cv_c_bigendian = unknown; then
21786if test "$cross_compiling" = yes; then
21787 ac_cv_c_bigendian=unknown
21788else
21789 cat >conftest.$ac_ext <<_ACEOF
21790/* confdefs.h. */
21791_ACEOF
21792cat confdefs.h >>conftest.$ac_ext
21793cat >>conftest.$ac_ext <<_ACEOF
21794/* end confdefs.h. */
21795main () {
21796 /* Are we little or big endian? From Harbison&Steele. */
21797 union
21798 {
21799 long l;
21800 char c[sizeof (long)];
21801 } u;
21802 u.l = 1;
21803 exit (u.c[sizeof (long) - 1] == 1);
21804}
21805_ACEOF
21806rm -f conftest$ac_exeext
21807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21808 (eval $ac_link) 2>&5
21809 ac_status=$?
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_c_bigendian=no
21818else
21819 echo "$as_me: program exited with status $ac_status" >&5
21820echo "$as_me: failed program was:" >&5
21821sed 's/^/| /' conftest.$ac_ext >&5
21822
21823( exit $ac_status )
21824ac_cv_c_bigendian=yes
21825fi
ac1cb8d3 21826rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21827fi
21828fi
21829fi
21830echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21831echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21832if test $ac_cv_c_bigendian = unknown; then
21833 { 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
21834echo "$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;}
21835fi
21836if test $ac_cv_c_bigendian = yes; then
21837 cat >>confdefs.h <<\_ACEOF
21838#define WORDS_BIGENDIAN 1
21839_ACEOF
21840
21841fi
21842
21843
21844ac_ext=cc
21845ac_cpp='$CXXCPP $CPPFLAGS'
21846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21849echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21850echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21851if test -z "$CXXCPP"; then
21852 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21853 echo $ECHO_N "(cached) $ECHO_C" >&6
21854else
21855 # Double quotes because CXXCPP needs to be expanded
21856 for CXXCPP in "$CXX -E" "/lib/cpp"
21857 do
21858 ac_preproc_ok=false
21859for ac_cxx_preproc_warn_flag in '' yes
21860do
21861 # Use a header file that comes with gcc, so configuring glibc
21862 # with a fresh cross-compiler works.
21863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21864 # <limits.h> exists even on freestanding compilers.
21865 # On the NeXT, cc -E runs the code through the compiler's parser,
21866 # not just through cpp. "Syntax error" is here to catch this case.
21867 cat >conftest.$ac_ext <<_ACEOF
21868/* confdefs.h. */
21869_ACEOF
21870cat confdefs.h >>conftest.$ac_ext
21871cat >>conftest.$ac_ext <<_ACEOF
21872/* end confdefs.h. */
21873#ifdef __STDC__
21874# include <limits.h>
21875#else
21876# include <assert.h>
21877#endif
ac1cb8d3 21878 Syntax error
a848cd7e
SC
21879_ACEOF
21880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21882 ac_status=$?
21883 grep -v '^ *+' conftest.er1 >conftest.err
21884 rm -f conftest.er1
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } >/dev/null; then
21888 if test -s conftest.err; then
21889 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21890 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21891 else
21892 ac_cpp_err=
21893 fi
21894else
21895 ac_cpp_err=yes
21896fi
21897if test -z "$ac_cpp_err"; then
21898 :
21899else
21900 echo "$as_me: failed program was:" >&5
21901sed 's/^/| /' conftest.$ac_ext >&5
21902
21903 # Broken: fails on valid input.
21904continue
21905fi
21906rm -f conftest.err conftest.$ac_ext
21907
21908 # OK, works on sane cases. Now check whether non-existent headers
21909 # can be detected and how.
21910 cat >conftest.$ac_ext <<_ACEOF
21911/* confdefs.h. */
21912_ACEOF
21913cat confdefs.h >>conftest.$ac_ext
21914cat >>conftest.$ac_ext <<_ACEOF
21915/* end confdefs.h. */
21916#include <ac_nonexistent.h>
21917_ACEOF
21918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21920 ac_status=$?
21921 grep -v '^ *+' conftest.er1 >conftest.err
21922 rm -f conftest.er1
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } >/dev/null; then
21926 if test -s conftest.err; then
21927 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21928 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21929 else
21930 ac_cpp_err=
21931 fi
21932else
21933 ac_cpp_err=yes
21934fi
21935if test -z "$ac_cpp_err"; then
21936 # Broken: success on invalid input.
21937continue
21938else
21939 echo "$as_me: failed program was:" >&5
21940sed 's/^/| /' conftest.$ac_ext >&5
21941
21942 # Passes both tests.
21943ac_preproc_ok=:
21944break
21945fi
21946rm -f conftest.err conftest.$ac_ext
21947
21948done
21949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21950rm -f conftest.err conftest.$ac_ext
21951if $ac_preproc_ok; then
21952 break
21953fi
21954
21955 done
21956 ac_cv_prog_CXXCPP=$CXXCPP
21957
21958fi
21959 CXXCPP=$ac_cv_prog_CXXCPP
21960else
21961 ac_cv_prog_CXXCPP=$CXXCPP
21962fi
21963echo "$as_me:$LINENO: result: $CXXCPP" >&5
21964echo "${ECHO_T}$CXXCPP" >&6
21965ac_preproc_ok=false
21966for ac_cxx_preproc_warn_flag in '' yes
21967do
21968 # Use a header file that comes with gcc, so configuring glibc
21969 # with a fresh cross-compiler works.
21970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21971 # <limits.h> exists even on freestanding compilers.
21972 # On the NeXT, cc -E runs the code through the compiler's parser,
21973 # not just through cpp. "Syntax error" is here to catch this case.
21974 cat >conftest.$ac_ext <<_ACEOF
21975/* confdefs.h. */
21976_ACEOF
21977cat confdefs.h >>conftest.$ac_ext
21978cat >>conftest.$ac_ext <<_ACEOF
21979/* end confdefs.h. */
21980#ifdef __STDC__
21981# include <limits.h>
21982#else
21983# include <assert.h>
21984#endif
ac1cb8d3 21985 Syntax error
a848cd7e
SC
21986_ACEOF
21987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21989 ac_status=$?
21990 grep -v '^ *+' conftest.er1 >conftest.err
21991 rm -f conftest.er1
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } >/dev/null; then
21995 if test -s conftest.err; then
21996 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21997 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21998 else
21999 ac_cpp_err=
22000 fi
22001else
22002 ac_cpp_err=yes
22003fi
22004if test -z "$ac_cpp_err"; then
22005 :
22006else
22007 echo "$as_me: failed program was:" >&5
22008sed 's/^/| /' conftest.$ac_ext >&5
22009
22010 # Broken: fails on valid input.
22011continue
22012fi
22013rm -f conftest.err conftest.$ac_ext
22014
22015 # OK, works on sane cases. Now check whether non-existent headers
22016 # can be detected and how.
22017 cat >conftest.$ac_ext <<_ACEOF
22018/* confdefs.h. */
22019_ACEOF
22020cat confdefs.h >>conftest.$ac_ext
22021cat >>conftest.$ac_ext <<_ACEOF
22022/* end confdefs.h. */
22023#include <ac_nonexistent.h>
22024_ACEOF
22025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22027 ac_status=$?
22028 grep -v '^ *+' conftest.er1 >conftest.err
22029 rm -f conftest.er1
22030 cat conftest.err >&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } >/dev/null; then
22033 if test -s conftest.err; then
22034 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22035 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22036 else
22037 ac_cpp_err=
22038 fi
22039else
22040 ac_cpp_err=yes
22041fi
22042if test -z "$ac_cpp_err"; then
22043 # Broken: success on invalid input.
22044continue
22045else
22046 echo "$as_me: failed program was:" >&5
22047sed 's/^/| /' conftest.$ac_ext >&5
22048
22049 # Passes both tests.
22050ac_preproc_ok=:
22051break
22052fi
22053rm -f conftest.err conftest.$ac_ext
22054
22055done
22056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22057rm -f conftest.err conftest.$ac_ext
22058if $ac_preproc_ok; then
22059 :
22060else
22061 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22062See \`config.log' for more details." >&5
22063echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22064See \`config.log' for more details." >&2;}
22065 { (exit 1); exit 1; }; }
22066fi
22067
22068ac_ext=cc
22069ac_cpp='$CXXCPP $CPPFLAGS'
22070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22073
22074
22075
22076
22077
22078 ac_ext=cc
22079ac_cpp='$CXXCPP $CPPFLAGS'
22080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22083
22084
22085
22086for ac_header in iostream
22087do
22088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22089if eval "test \"\${$as_ac_Header+set}\" = set"; then
22090 echo "$as_me:$LINENO: checking for $ac_header" >&5
22091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22092if eval "test \"\${$as_ac_Header+set}\" = set"; then
22093 echo $ECHO_N "(cached) $ECHO_C" >&6
22094fi
22095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22097else
22098 # Is the header compilable?
22099echo "$as_me:$LINENO: checking $ac_header usability" >&5
22100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22101cat >conftest.$ac_ext <<_ACEOF
22102/* confdefs.h. */
22103_ACEOF
22104cat confdefs.h >>conftest.$ac_ext
22105cat >>conftest.$ac_ext <<_ACEOF
22106/* end confdefs.h. */
22107$ac_includes_default
22108#include <$ac_header>
22109_ACEOF
22110rm -f conftest.$ac_objext
22111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22112 (eval $ac_compile) 2>conftest.er1
a848cd7e 22113 ac_status=$?
ac1cb8d3
VS
22114 grep -v '^ *+' conftest.er1 >conftest.err
22115 rm -f conftest.er1
22116 cat conftest.err >&5
a848cd7e
SC
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } &&
3565d135
RR
22119 { ac_try='test -z "$ac_cxx_werror_flag"
22120 || test ! -s conftest.err'
ac1cb8d3
VS
22121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122 (eval $ac_try) 2>&5
22123 ac_status=$?
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); }; } &&
22126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22128 (eval $ac_try) 2>&5
22129 ac_status=$?
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; }; then
22132 ac_header_compiler=yes
22133else
22134 echo "$as_me: failed program was:" >&5
22135sed 's/^/| /' conftest.$ac_ext >&5
22136
22137ac_header_compiler=no
22138fi
ac1cb8d3 22139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22141echo "${ECHO_T}$ac_header_compiler" >&6
22142
22143# Is the header present?
22144echo "$as_me:$LINENO: checking $ac_header presence" >&5
22145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22146cat >conftest.$ac_ext <<_ACEOF
22147/* confdefs.h. */
22148_ACEOF
22149cat confdefs.h >>conftest.$ac_ext
22150cat >>conftest.$ac_ext <<_ACEOF
22151/* end confdefs.h. */
22152#include <$ac_header>
22153_ACEOF
22154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22156 ac_status=$?
22157 grep -v '^ *+' conftest.er1 >conftest.err
22158 rm -f conftest.er1
22159 cat conftest.err >&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); } >/dev/null; then
22162 if test -s conftest.err; then
22163 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22164 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22165 else
22166 ac_cpp_err=
22167 fi
22168else
22169 ac_cpp_err=yes
22170fi
22171if test -z "$ac_cpp_err"; then
22172 ac_header_preproc=yes
22173else
22174 echo "$as_me: failed program was:" >&5
22175sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 ac_header_preproc=no
22178fi
22179rm -f conftest.err conftest.$ac_ext
22180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22181echo "${ECHO_T}$ac_header_preproc" >&6
22182
22183# So? What about this header?
ac1cb8d3
VS
22184case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22185 yes:no: )
a848cd7e
SC
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22189echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22190 ac_header_preproc=yes
a848cd7e 22191 ;;
ac1cb8d3 22192 no:yes:* )
a848cd7e
SC
22193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22194echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22196echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22198echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22200echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22204echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22205 (
22206 cat <<\_ASBOX
ac1cb8d3
VS
22207## ----------------------------------------- ##
22208## Report this to wx-dev@lists.wxwidgets.org ##
22209## ----------------------------------------- ##
a848cd7e
SC
22210_ASBOX
22211 ) |
22212 sed "s/^/$as_me: WARNING: /" >&2
22213 ;;
22214esac
22215echo "$as_me:$LINENO: checking for $ac_header" >&5
22216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22217if eval "test \"\${$as_ac_Header+set}\" = set"; then
22218 echo $ECHO_N "(cached) $ECHO_C" >&6
22219else
ac1cb8d3 22220 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22221fi
22222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22224
22225fi
22226if test `eval echo '${'$as_ac_Header'}'` = yes; then
22227 cat >>confdefs.h <<_ACEOF
22228#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22229_ACEOF
22230
22231fi
22232
22233done
22234
22235
22236 if test "$ac_cv_header_iostream" = "yes" ; then
22237 :
22238 else
22239 cat >>confdefs.h <<\_ACEOF
22240#define wxUSE_IOSTREAMH 1
22241_ACEOF
22242
22243 fi
22244
22245 ac_ext=c
22246ac_cpp='$CPP $CPPFLAGS'
22247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22249ac_compiler_gnu=$ac_cv_c_compiler_gnu
22250
22251
22252
22253
22254 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22255echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22256if test "${wx_cv_cpp_bool+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22258else
22259
22260
22261
22262 ac_ext=cc
22263ac_cpp='$CXXCPP $CPPFLAGS'
22264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22267
22268
22269 cat >conftest.$ac_ext <<_ACEOF
22270/* confdefs.h. */
22271_ACEOF
22272cat confdefs.h >>conftest.$ac_ext
22273cat >>conftest.$ac_ext <<_ACEOF
22274/* end confdefs.h. */
22275
22276
22277int
22278main ()
22279{
22280
22281 bool b = true;
22282
22283 return 0;
22284
22285 ;
22286 return 0;
22287}
22288_ACEOF
22289rm -f conftest.$ac_objext
22290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22291 (eval $ac_compile) 2>conftest.er1
a848cd7e 22292 ac_status=$?
ac1cb8d3
VS
22293 grep -v '^ *+' conftest.er1 >conftest.err
22294 rm -f conftest.er1
22295 cat conftest.err >&5
a848cd7e
SC
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } &&
3565d135
RR
22298 { ac_try='test -z "$ac_cxx_werror_flag"
22299 || test ! -s conftest.err'
ac1cb8d3
VS
22300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301 (eval $ac_try) 2>&5
22302 ac_status=$?
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; } &&
22305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307 (eval $ac_try) 2>&5
22308 ac_status=$?
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); }; }; then
22311
22312 wx_cv_cpp_bool=yes
22313
22314else
22315 echo "$as_me: failed program was:" >&5
22316sed 's/^/| /' conftest.$ac_ext >&5
22317
22318
22319 wx_cv_cpp_bool=no
22320
22321
22322fi
ac1cb8d3 22323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22324
22325 ac_ext=c
22326ac_cpp='$CPP $CPPFLAGS'
22327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22329ac_compiler_gnu=$ac_cv_c_compiler_gnu
22330
22331
22332fi
22333echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22334echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22335
22336 if test "$wx_cv_cpp_bool" = "yes"; then
22337 cat >>confdefs.h <<\_ACEOF
22338#define HAVE_BOOL 1
22339_ACEOF
22340
22341 fi
22342
22343
22344
22345 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22346echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22347if test "${wx_cv_explicit+set}" = set; then
22348 echo $ECHO_N "(cached) $ECHO_C" >&6
22349else
22350
22351
22352
22353 ac_ext=cc
22354ac_cpp='$CXXCPP $CPPFLAGS'
22355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22358
22359
22360 cat >conftest.$ac_ext <<_ACEOF
22361/* confdefs.h. */
22362_ACEOF
22363cat confdefs.h >>conftest.$ac_ext
22364cat >>conftest.$ac_ext <<_ACEOF
22365/* end confdefs.h. */
22366
22367 class Foo { public: explicit Foo(int) {} };
22368
22369int
22370main ()
22371{
22372
22373 return 0;
22374
22375 ;
22376 return 0;
22377}
22378_ACEOF
22379rm -f conftest.$ac_objext
22380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22381 (eval $ac_compile) 2>conftest.er1
a848cd7e 22382 ac_status=$?
ac1cb8d3
VS
22383 grep -v '^ *+' conftest.er1 >conftest.err
22384 rm -f conftest.er1
22385 cat conftest.err >&5
a848cd7e
SC
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } &&
3565d135
RR
22388 { ac_try='test -z "$ac_cxx_werror_flag"
22389 || test ! -s conftest.err'
ac1cb8d3
VS
22390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391 (eval $ac_try) 2>&5
22392 ac_status=$?
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; } &&
22395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22398 ac_status=$?
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; }; then
22401
22402 cat >conftest.$ac_ext <<_ACEOF
22403/* confdefs.h. */
22404_ACEOF
22405cat confdefs.h >>conftest.$ac_ext
22406cat >>conftest.$ac_ext <<_ACEOF
22407/* end confdefs.h. */
22408
22409 class Foo { public: explicit Foo(int) {} };
22410 static void TakeFoo(const Foo& foo) { }
22411
22412int
22413main ()
22414{
22415
22416 TakeFoo(17);
22417 return 0;
22418
22419 ;
22420 return 0;
22421}
22422_ACEOF
22423rm -f conftest.$ac_objext
22424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22425 (eval $ac_compile) 2>conftest.er1
a848cd7e 22426 ac_status=$?
ac1cb8d3
VS
22427 grep -v '^ *+' conftest.er1 >conftest.err
22428 rm -f conftest.er1
22429 cat conftest.err >&5
a848cd7e
SC
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } &&
3565d135
RR
22432 { ac_try='test -z "$ac_cxx_werror_flag"
22433 || test ! -s conftest.err'
ac1cb8d3
VS
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; } &&
22439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445 wx_cv_explicit=no
22446else
22447 echo "$as_me: failed program was:" >&5
22448sed 's/^/| /' conftest.$ac_ext >&5
22449
22450wx_cv_explicit=yes
22451
22452fi
ac1cb8d3 22453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22454
22455else
22456 echo "$as_me: failed program was:" >&5
22457sed 's/^/| /' conftest.$ac_ext >&5
22458
22459wx_cv_explicit=no
22460
22461fi
ac1cb8d3 22462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22463
22464 ac_ext=c
22465ac_cpp='$CPP $CPPFLAGS'
22466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22468ac_compiler_gnu=$ac_cv_c_compiler_gnu
22469
22470
22471fi
22472echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22473echo "${ECHO_T}$wx_cv_explicit" >&6
22474
22475 if test "$wx_cv_explicit" = "yes"; then
22476 cat >>confdefs.h <<\_ACEOF
22477#define HAVE_EXPLICIT 1
22478_ACEOF
22479
22480 fi
22481
22482
22483echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22484echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22485if test "${ac_cv_cxx_const_cast+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22487else
22488
22489
22490 ac_ext=cc
22491ac_cpp='$CXXCPP $CPPFLAGS'
22492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22495
22496 cat >conftest.$ac_ext <<_ACEOF
22497/* confdefs.h. */
22498_ACEOF
22499cat confdefs.h >>conftest.$ac_ext
22500cat >>conftest.$ac_ext <<_ACEOF
22501/* end confdefs.h. */
22502
22503int
22504main ()
22505{
22506int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22507 ;
22508 return 0;
22509}
22510_ACEOF
22511rm -f conftest.$ac_objext
22512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22513 (eval $ac_compile) 2>conftest.er1
a848cd7e 22514 ac_status=$?
ac1cb8d3
VS
22515 grep -v '^ *+' conftest.er1 >conftest.err
22516 rm -f conftest.er1
22517 cat conftest.err >&5
a848cd7e
SC
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } &&
3565d135
RR
22520 { ac_try='test -z "$ac_cxx_werror_flag"
22521 || test ! -s conftest.err'
ac1cb8d3
VS
22522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22523 (eval $ac_try) 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); }; } &&
22527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; }; then
22533 ac_cv_cxx_const_cast=yes
22534else
22535 echo "$as_me: failed program was:" >&5
22536sed 's/^/| /' conftest.$ac_ext >&5
22537
22538ac_cv_cxx_const_cast=no
22539fi
ac1cb8d3 22540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22541 ac_ext=c
22542ac_cpp='$CPP $CPPFLAGS'
22543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22545ac_compiler_gnu=$ac_cv_c_compiler_gnu
22546
22547
22548fi
22549echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22550echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22551if test "$ac_cv_cxx_const_cast" = yes; then
22552
22553cat >>confdefs.h <<\_ACEOF
22554#define HAVE_CONST_CAST
22555_ACEOF
22556
22557fi
22558
7714864e
RL
22559echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22560echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22561if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563else
22564
22565
22566 ac_ext=cc
22567ac_cpp='$CXXCPP $CPPFLAGS'
22568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22571
22572 cat >conftest.$ac_ext <<_ACEOF
22573/* confdefs.h. */
22574_ACEOF
22575cat confdefs.h >>conftest.$ac_ext
22576cat >>conftest.$ac_ext <<_ACEOF
22577/* end confdefs.h. */
22578#include <typeinfo>
22579class Base { public : Base () {} virtual void f () = 0;};
22580class Derived : public Base { public : Derived () {} virtual void f () {} };
22581class Unrelated { public : Unrelated () {} };
22582int g (Unrelated&) { return 0; }
22583int
22584main ()
22585{
22586
22587Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22588 ;
22589 return 0;
22590}
22591_ACEOF
22592rm -f conftest.$ac_objext
22593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22594 (eval $ac_compile) 2>conftest.er1
22595 ac_status=$?
22596 grep -v '^ *+' conftest.er1 >conftest.err
22597 rm -f conftest.er1
22598 cat conftest.err >&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } &&
3565d135
RR
22601 { ac_try='test -z "$ac_cxx_werror_flag"
22602 || test ! -s conftest.err'
7714864e
RL
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; } &&
22608 { ac_try='test -s conftest.$ac_objext'
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22611 ac_status=$?
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; }; then
22614 ac_cv_cxx_reinterpret_cast=yes
22615else
22616 echo "$as_me: failed program was:" >&5
22617sed 's/^/| /' conftest.$ac_ext >&5
22618
22619ac_cv_cxx_reinterpret_cast=no
22620fi
22621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22622 ac_ext=c
22623ac_cpp='$CPP $CPPFLAGS'
22624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22626ac_compiler_gnu=$ac_cv_c_compiler_gnu
22627
22628
22629fi
22630echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22631echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22632if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22633
22634cat >>confdefs.h <<\_ACEOF
22635#define HAVE_REINTERPRET_CAST
22636_ACEOF
22637
22638fi
22639
a848cd7e
SC
22640echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22641echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22642if test "${ac_cv_cxx_static_cast+set}" = set; then
22643 echo $ECHO_N "(cached) $ECHO_C" >&6
22644else
22645
22646
22647 ac_ext=cc
22648ac_cpp='$CXXCPP $CPPFLAGS'
22649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22652
22653 cat >conftest.$ac_ext <<_ACEOF
22654/* confdefs.h. */
22655_ACEOF
22656cat confdefs.h >>conftest.$ac_ext
22657cat >>conftest.$ac_ext <<_ACEOF
22658/* end confdefs.h. */
22659#include <typeinfo>
22660class Base { public : Base () {} virtual void f () = 0; };
22661class Derived : public Base { public : Derived () {} virtual void f () {} };
22662int g (Derived&) { return 0; }
22663int
22664main ()
22665{
22666
22667Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22668 ;
22669 return 0;
22670}
22671_ACEOF
22672rm -f conftest.$ac_objext
22673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22674 (eval $ac_compile) 2>conftest.er1
a848cd7e 22675 ac_status=$?
ac1cb8d3
VS
22676 grep -v '^ *+' conftest.er1 >conftest.err
22677 rm -f conftest.er1
22678 cat conftest.err >&5
a848cd7e
SC
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); } &&
3565d135
RR
22681 { ac_try='test -z "$ac_cxx_werror_flag"
22682 || test ! -s conftest.err'
ac1cb8d3
VS
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; } &&
22688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22691 ac_status=$?
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; }; then
22694 ac_cv_cxx_static_cast=yes
22695else
22696 echo "$as_me: failed program was:" >&5
22697sed 's/^/| /' conftest.$ac_ext >&5
22698
22699ac_cv_cxx_static_cast=no
22700fi
ac1cb8d3 22701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22702 ac_ext=c
22703ac_cpp='$CPP $CPPFLAGS'
22704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22706ac_compiler_gnu=$ac_cv_c_compiler_gnu
22707
22708
22709fi
22710echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22711echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22712if test "$ac_cv_cxx_static_cast" = yes; then
22713
22714cat >>confdefs.h <<\_ACEOF
22715#define HAVE_STATIC_CAST
22716_ACEOF
22717
22718fi
22719
22720
3c28b7cb 22721if test "x$SUNCXX" = xyes; then
c92ad099 22722 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22723fi
22724
9122d155 22725if test "x$SUNCC" = xyes; then
c92ad099 22726 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22727fi
22728
0ad5d837 22729if test "x$SGICC" = "xyes"; then
c92ad099 22730 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22731fi
22732if test "x$SGICXX" = "xyes"; then
c92ad099 22733 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22734fi
22735
2eef8513 22736if test "x$HPCC" = "xyes"; then
c92ad099 22737 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22738fi
22739if test "x$HPCXX" = "xyes"; then
c92ad099 22740 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22741fi
22742
22743if test "x$COMPAQCXX" = "xyes"; then
22744 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22745fi
22746
f56c22b4 22747if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22748 ac_ext=cc
22749ac_cpp='$CXXCPP $CPPFLAGS'
22750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22753
22754
f56c22b4
MW
22755 if test "$wxUSE_UNICODE" = "yes"; then
22756 std_string="std::wstring"
22757 char_type="wchar_t"
22758 else
22759 std_string="std::string"
22760 char_type="char"
22761 fi
22762
22763 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22764echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22765 cat >conftest.$ac_ext <<_ACEOF
22766/* confdefs.h. */
22767_ACEOF
22768cat confdefs.h >>conftest.$ac_ext
22769cat >>conftest.$ac_ext <<_ACEOF
22770/* end confdefs.h. */
22771#include <string>
a848cd7e
SC
22772int
22773main ()
22774{
f56c22b4 22775$std_string foo;
a848cd7e
SC
22776 ;
22777 return 0;
22778}
22779_ACEOF
22780rm -f conftest.$ac_objext
22781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22782 (eval $ac_compile) 2>conftest.er1
a848cd7e 22783 ac_status=$?
ac1cb8d3
VS
22784 grep -v '^ *+' conftest.er1 >conftest.err
22785 rm -f conftest.er1
22786 cat conftest.err >&5
a848cd7e
SC
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } &&
3565d135
RR
22789 { ac_try='test -z "$ac_cxx_werror_flag"
22790 || test ! -s conftest.err'
ac1cb8d3
VS
22791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22792 (eval $ac_try) 2>&5
22793 ac_status=$?
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); }; } &&
22796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; }; then
22802 echo "$as_me:$LINENO: result: yes" >&5
22803echo "${ECHO_T}yes" >&6
0a08f02a
MB
22804 cat >>confdefs.h <<\_ACEOF
22805#define HAVE_STD_WSTRING 1
22806_ACEOF
22807
a848cd7e
SC
22808else
22809 echo "$as_me: failed program was:" >&5
22810sed 's/^/| /' conftest.$ac_ext >&5
22811
22812echo "$as_me:$LINENO: result: no" >&5
22813echo "${ECHO_T}no" >&6
f56c22b4
MW
22814 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22815echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22816 cat >conftest.$ac_ext <<_ACEOF
22817/* confdefs.h. */
22818_ACEOF
22819cat confdefs.h >>conftest.$ac_ext
22820cat >>conftest.$ac_ext <<_ACEOF
22821/* end confdefs.h. */
22822
22823 #ifdef HAVE_WCHAR_H
22824 # ifdef __CYGWIN__
22825 # include <stddef.h>
22826 # endif
22827 # include <wchar.h>
22828 #endif
22829 #ifdef HAVE_STDLIB_H
22830 # include <stdlib.h>
22831 #endif
22832 #include <stdio.h>
22833 #include <string>
22834
22835int
22836main ()
22837{
f56c22b4
MW
22838std::basic_string<$char_type> foo;
22839 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22840 ;
22841 return 0;
22842}
22843_ACEOF
22844rm -f conftest.$ac_objext
22845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22846 (eval $ac_compile) 2>conftest.er1
22847 ac_status=$?
22848 grep -v '^ *+' conftest.er1 >conftest.err
22849 rm -f conftest.er1
22850 cat conftest.err >&5
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); } &&
3565d135
RR
22853 { ac_try='test -z "$ac_cxx_werror_flag"
22854 || test ! -s conftest.err'
0a08f02a
MB
22855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856 (eval $ac_try) 2>&5
22857 ac_status=$?
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); }; } &&
22860 { ac_try='test -s conftest.$ac_objext'
22861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; }; then
22866 echo "$as_me:$LINENO: result: yes" >&5
22867echo "${ECHO_T}yes" >&6
22868else
22869 echo "$as_me: failed program was:" >&5
22870sed 's/^/| /' conftest.$ac_ext >&5
22871
22872echo "$as_me:$LINENO: result: no" >&5
22873echo "${ECHO_T}no" >&6
f56c22b4 22874 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22875 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22876echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22877 { (exit 1); exit 1; }; }
22878 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22879 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22880echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22881 { (exit 1); exit 1; }; }
f56c22b4
MW
22882 else
22883 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22884echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22885 wxUSE_STD_STRING=no
22886 fi
22887
0a08f02a 22888
a848cd7e 22889fi
ac1cb8d3 22890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22891
0a08f02a
MB
22892fi
22893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22894
22895 ac_ext=c
22896ac_cpp='$CPP $CPPFLAGS'
22897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22899ac_compiler_gnu=$ac_cv_c_compiler_gnu
22900
22901fi
22902
22903if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22904 ac_ext=cc
22905ac_cpp='$CXXCPP $CPPFLAGS'
22906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22909
22910
22911 echo "$as_me:$LINENO: checking for std::istream" >&5
22912echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22913if test "${ac_cv_type_std__istream+set}" = set; then
22914 echo $ECHO_N "(cached) $ECHO_C" >&6
22915else
22916 cat >conftest.$ac_ext <<_ACEOF
22917/* confdefs.h. */
22918_ACEOF
22919cat confdefs.h >>conftest.$ac_ext
22920cat >>conftest.$ac_ext <<_ACEOF
22921/* end confdefs.h. */
22922#include <iostream>
22923
22924int
22925main ()
22926{
22927if ((std::istream *) 0)
22928 return 0;
22929if (sizeof (std::istream))
22930 return 0;
22931 ;
22932 return 0;
22933}
22934_ACEOF
22935rm -f conftest.$ac_objext
22936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22937 (eval $ac_compile) 2>conftest.er1
22938 ac_status=$?
22939 grep -v '^ *+' conftest.er1 >conftest.err
22940 rm -f conftest.er1
22941 cat conftest.err >&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } &&
3565d135
RR
22944 { ac_try='test -z "$ac_cxx_werror_flag"
22945 || test ! -s conftest.err'
f56c22b4
MW
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22948 ac_status=$?
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; } &&
22951 { ac_try='test -s conftest.$ac_objext'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22954 ac_status=$?
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22957 ac_cv_type_std__istream=yes
22958else
22959 echo "$as_me: failed program was:" >&5
22960sed 's/^/| /' conftest.$ac_ext >&5
22961
22962ac_cv_type_std__istream=no
22963fi
22964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22965fi
22966echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22967echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22968if test $ac_cv_type_std__istream = yes; then
22969
22970cat >>confdefs.h <<_ACEOF
22971#define HAVE_STD__ISTREAM 1
22972_ACEOF
22973
22974
22975else
22976 wxUSE_STD_IOSTREAM=no
22977fi
22978echo "$as_me:$LINENO: checking for std::ostream" >&5
22979echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22980if test "${ac_cv_type_std__ostream+set}" = set; then
22981 echo $ECHO_N "(cached) $ECHO_C" >&6
22982else
22983 cat >conftest.$ac_ext <<_ACEOF
22984/* confdefs.h. */
22985_ACEOF
22986cat confdefs.h >>conftest.$ac_ext
22987cat >>conftest.$ac_ext <<_ACEOF
22988/* end confdefs.h. */
22989#include <iostream>
22990
22991int
22992main ()
22993{
22994if ((std::ostream *) 0)
22995 return 0;
22996if (sizeof (std::ostream))
22997 return 0;
22998 ;
22999 return 0;
23000}
23001_ACEOF
23002rm -f conftest.$ac_objext
23003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23004 (eval $ac_compile) 2>conftest.er1
23005 ac_status=$?
23006 grep -v '^ *+' conftest.er1 >conftest.err
23007 rm -f conftest.er1
23008 cat conftest.err >&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } &&
3565d135
RR
23011 { ac_try='test -z "$ac_cxx_werror_flag"
23012 || test ! -s conftest.err'
f56c22b4
MW
23013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23015 ac_status=$?
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; } &&
23018 { ac_try='test -s conftest.$ac_objext'
23019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020 (eval $ac_try) 2>&5
23021 ac_status=$?
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); }; }; then
23024 ac_cv_type_std__ostream=yes
23025else
23026 echo "$as_me: failed program was:" >&5
23027sed 's/^/| /' conftest.$ac_ext >&5
23028
23029ac_cv_type_std__ostream=no
23030fi
23031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23032fi
23033echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23034echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23035if test $ac_cv_type_std__ostream = yes; then
23036
23037cat >>confdefs.h <<_ACEOF
23038#define HAVE_STD__OSTREAM 1
23039_ACEOF
23040
23041
23042else
23043 wxUSE_STD_IOSTREAM=no
23044fi
23045
23046
23047 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23048 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23049 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23050echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23051 { (exit 1); exit 1; }; }
23052 else
23053 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23054echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23055 fi
f56c22b4
MW
23056 fi
23057
23058 ac_ext=c
23059ac_cpp='$CPP $CPPFLAGS'
23060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
23062ac_compiler_gnu=$ac_cv_c_compiler_gnu
23063
23064fi
23065
23066if test "$wxUSE_STL" = "yes"; then
23067 ac_ext=cc
23068ac_cpp='$CXXCPP $CPPFLAGS'
23069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23072
23073
23074 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23075echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23076 cat >conftest.$ac_ext <<_ACEOF
23077/* confdefs.h. */
23078_ACEOF
23079cat confdefs.h >>conftest.$ac_ext
23080cat >>conftest.$ac_ext <<_ACEOF
23081/* end confdefs.h. */
23082#include <string>
0a08f02a
MB
23083 #include <functional>
23084 #include <algorithm>
23085 #include <vector>
23086 #include <list>
a848cd7e
SC
23087int
23088main ()
23089{
0a08f02a
MB
23090std::vector<int> moo;
23091 std::list<int> foo;
23092 std::vector<int>::iterator it =
23093 std::find_if(moo.begin(), moo.end(),
23094 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23095 ;
23096 return 0;
23097}
23098_ACEOF
23099rm -f conftest.$ac_objext
23100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23101 (eval $ac_compile) 2>conftest.er1
a848cd7e 23102 ac_status=$?
ac1cb8d3
VS
23103 grep -v '^ *+' conftest.er1 >conftest.err
23104 rm -f conftest.er1
23105 cat conftest.err >&5
a848cd7e
SC
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } &&
3565d135
RR
23108 { ac_try='test -z "$ac_cxx_werror_flag"
23109 || test ! -s conftest.err'
ac1cb8d3
VS
23110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111 (eval $ac_try) 2>&5
23112 ac_status=$?
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; } &&
23115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117 (eval $ac_try) 2>&5
23118 ac_status=$?
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); }; }; then
23121 echo "$as_me:$LINENO: result: yes" >&5
23122echo "${ECHO_T}yes" >&6
a848cd7e
SC
23123else
23124 echo "$as_me: failed program was:" >&5
23125sed 's/^/| /' conftest.$ac_ext >&5
23126
23127echo "$as_me:$LINENO: result: no" >&5
23128echo "${ECHO_T}no" >&6
0a08f02a
MB
23129 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23130echo "$as_me: error: Basic STL functionality missing" >&2;}
23131 { (exit 1); exit 1; }; }
a848cd7e 23132fi
ac1cb8d3 23133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23134
23135 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23136echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23137 cat >conftest.$ac_ext <<_ACEOF
23138/* confdefs.h. */
23139_ACEOF
23140cat confdefs.h >>conftest.$ac_ext
23141cat >>conftest.$ac_ext <<_ACEOF
23142/* end confdefs.h. */
23143#include <string>
23144int
23145main ()
23146{
23147std::string foo, bar;
23148 foo.compare(bar);
23149 foo.compare(1, 1, bar);
23150 foo.compare(1, 1, bar, 1, 1);
23151 foo.compare("");
23152 foo.compare(1, 1, "");
23153 foo.compare(1, 1, "", 2);
23154 ;
23155 return 0;
23156}
23157_ACEOF
23158rm -f conftest.$ac_objext
23159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23160 (eval $ac_compile) 2>conftest.er1
a848cd7e 23161 ac_status=$?
ac1cb8d3
VS
23162 grep -v '^ *+' conftest.er1 >conftest.err
23163 rm -f conftest.er1
23164 cat conftest.err >&5
a848cd7e
SC
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } &&
3565d135
RR
23167 { ac_try='test -z "$ac_cxx_werror_flag"
23168 || test ! -s conftest.err'
ac1cb8d3
VS
23169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170 (eval $ac_try) 2>&5
23171 ac_status=$?
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; } &&
23174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23176 (eval $ac_try) 2>&5
23177 ac_status=$?
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); }; }; then
23180 echo "$as_me:$LINENO: result: yes" >&5
23181echo "${ECHO_T}yes" >&6
23182 cat >>confdefs.h <<\_ACEOF
23183#define HAVE_STD_STRING_COMPARE 1
23184_ACEOF
23185
23186else
23187 echo "$as_me: failed program was:" >&5
23188sed 's/^/| /' conftest.$ac_ext >&5
23189
23190echo "$as_me:$LINENO: result: no" >&5
23191echo "${ECHO_T}no" >&6
23192fi
ac1cb8d3 23193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23194
23195 if test "${ac_cv_header_hash_map+set}" = set; then
23196 echo "$as_me:$LINENO: checking for hash_map" >&5
23197echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23198if test "${ac_cv_header_hash_map+set}" = set; then
23199 echo $ECHO_N "(cached) $ECHO_C" >&6
23200fi
23201echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23202echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23203else
23204 # Is the header compilable?
23205echo "$as_me:$LINENO: checking hash_map usability" >&5
23206echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23207cat >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$ac_includes_default
23214#include <hash_map>
23215_ACEOF
23216rm -f conftest.$ac_objext
23217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23218 (eval $ac_compile) 2>conftest.er1
bdcade0a 23219 ac_status=$?
ac1cb8d3
VS
23220 grep -v '^ *+' conftest.er1 >conftest.err
23221 rm -f conftest.er1
23222 cat conftest.err >&5
bdcade0a
MB
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } &&
3565d135
RR
23225 { ac_try='test -z "$ac_cxx_werror_flag"
23226 || test ! -s conftest.err'
ac1cb8d3
VS
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23229 ac_status=$?
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; } &&
23232 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234 (eval $ac_try) 2>&5
23235 ac_status=$?
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); }; }; then
23238 ac_header_compiler=yes
23239else
23240 echo "$as_me: failed program was:" >&5
23241sed 's/^/| /' conftest.$ac_ext >&5
23242
23243ac_header_compiler=no
23244fi
ac1cb8d3 23245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23247echo "${ECHO_T}$ac_header_compiler" >&6
23248
23249# Is the header present?
23250echo "$as_me:$LINENO: checking hash_map presence" >&5
23251echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23252cat >conftest.$ac_ext <<_ACEOF
23253/* confdefs.h. */
23254_ACEOF
23255cat confdefs.h >>conftest.$ac_ext
23256cat >>conftest.$ac_ext <<_ACEOF
23257/* end confdefs.h. */
23258#include <hash_map>
23259_ACEOF
23260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23262 ac_status=$?
23263 grep -v '^ *+' conftest.er1 >conftest.err
23264 rm -f conftest.er1
23265 cat conftest.err >&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } >/dev/null; then
23268 if test -s conftest.err; then
23269 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23270 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23271 else
23272 ac_cpp_err=
23273 fi
23274else
23275 ac_cpp_err=yes
23276fi
23277if test -z "$ac_cpp_err"; then
23278 ac_header_preproc=yes
23279else
23280 echo "$as_me: failed program was:" >&5
23281sed 's/^/| /' conftest.$ac_ext >&5
23282
23283 ac_header_preproc=no
23284fi
23285rm -f conftest.err conftest.$ac_ext
23286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23287echo "${ECHO_T}$ac_header_preproc" >&6
23288
23289# So? What about this header?
ac1cb8d3
VS
23290case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23291 yes:no: )
bdcade0a
MB
23292 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23293echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23294 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23295echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23296 ac_header_preproc=yes
bdcade0a 23297 ;;
ac1cb8d3 23298 no:yes:* )
bdcade0a
MB
23299 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23300echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23301 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23302echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23303 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23304echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23305 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23306echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23307 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23308echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23309 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23310echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23311 (
23312 cat <<\_ASBOX
ac1cb8d3
VS
23313## ----------------------------------------- ##
23314## Report this to wx-dev@lists.wxwidgets.org ##
23315## ----------------------------------------- ##
bdcade0a
MB
23316_ASBOX
23317 ) |
23318 sed "s/^/$as_me: WARNING: /" >&2
23319 ;;
23320esac
23321echo "$as_me:$LINENO: checking for hash_map" >&5
23322echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23323if test "${ac_cv_header_hash_map+set}" = set; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325else
23326 ac_cv_header_hash_map=$ac_header_preproc
23327fi
23328echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23329echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23330
23331fi
23332if test $ac_cv_header_hash_map = yes; then
23333 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23334echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23335 cat >conftest.$ac_ext <<_ACEOF
23336/* confdefs.h. */
23337_ACEOF
23338cat confdefs.h >>conftest.$ac_ext
23339cat >>conftest.$ac_ext <<_ACEOF
23340/* end confdefs.h. */
23341#include <hash_map>
23342 #include <hash_set>
23343int
23344main ()
23345{
23346std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23347 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23348 ;
23349 return 0;
23350}
23351_ACEOF
23352rm -f conftest.$ac_objext
23353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23354 (eval $ac_compile) 2>conftest.er1
bdcade0a 23355 ac_status=$?
ac1cb8d3
VS
23356 grep -v '^ *+' conftest.er1 >conftest.err
23357 rm -f conftest.er1
23358 cat conftest.err >&5
bdcade0a
MB
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } &&
3565d135
RR
23361 { ac_try='test -z "$ac_cxx_werror_flag"
23362 || test ! -s conftest.err'
ac1cb8d3
VS
23363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364 (eval $ac_try) 2>&5
23365 ac_status=$?
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); }; } &&
23368 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370 (eval $ac_try) 2>&5
23371 ac_status=$?
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); }; }; then
23374 echo "$as_me:$LINENO: result: yes" >&5
23375echo "${ECHO_T}yes" >&6
23376 cat >>confdefs.h <<\_ACEOF
23377#define HAVE_HASH_MAP 1
23378_ACEOF
23379
23380 cat >>confdefs.h <<\_ACEOF
23381#define HAVE_STD_HASH_MAP 1
23382_ACEOF
23383
23384else
23385 echo "$as_me: failed program was:" >&5
23386sed 's/^/| /' conftest.$ac_ext >&5
23387
23388echo "$as_me:$LINENO: result: no" >&5
23389echo "${ECHO_T}no" >&6
23390fi
ac1cb8d3 23391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23392
23393fi
23394
23395
23396
23397 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23398 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23399echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23400if test "${ac_cv_header_ext_hash_map+set}" = set; then
23401 echo $ECHO_N "(cached) $ECHO_C" >&6
23402fi
23403echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23404echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23405else
23406 # Is the header compilable?
23407echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23408echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23409cat >conftest.$ac_ext <<_ACEOF
23410/* confdefs.h. */
23411_ACEOF
23412cat confdefs.h >>conftest.$ac_ext
23413cat >>conftest.$ac_ext <<_ACEOF
23414/* end confdefs.h. */
23415$ac_includes_default
23416#include <ext/hash_map>
23417_ACEOF
23418rm -f conftest.$ac_objext
23419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23420 (eval $ac_compile) 2>conftest.er1
bdcade0a 23421 ac_status=$?
ac1cb8d3
VS
23422 grep -v '^ *+' conftest.er1 >conftest.err
23423 rm -f conftest.er1
23424 cat conftest.err >&5
bdcade0a
MB
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); } &&
3565d135
RR
23427 { ac_try='test -z "$ac_cxx_werror_flag"
23428 || test ! -s conftest.err'
ac1cb8d3
VS
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23431 ac_status=$?
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; } &&
23434 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23437 ac_status=$?
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; }; then
23440 ac_header_compiler=yes
23441else
23442 echo "$as_me: failed program was:" >&5
23443sed 's/^/| /' conftest.$ac_ext >&5
23444
23445ac_header_compiler=no
23446fi
ac1cb8d3 23447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23449echo "${ECHO_T}$ac_header_compiler" >&6
23450
23451# Is the header present?
23452echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23453echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23454cat >conftest.$ac_ext <<_ACEOF
23455/* confdefs.h. */
23456_ACEOF
23457cat confdefs.h >>conftest.$ac_ext
23458cat >>conftest.$ac_ext <<_ACEOF
23459/* end confdefs.h. */
23460#include <ext/hash_map>
23461_ACEOF
23462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23464 ac_status=$?
23465 grep -v '^ *+' conftest.er1 >conftest.err
23466 rm -f conftest.er1
23467 cat conftest.err >&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } >/dev/null; then
23470 if test -s conftest.err; then
23471 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23472 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23473 else
23474 ac_cpp_err=
23475 fi
23476else
23477 ac_cpp_err=yes
23478fi
23479if test -z "$ac_cpp_err"; then
23480 ac_header_preproc=yes
23481else
23482 echo "$as_me: failed program was:" >&5
23483sed 's/^/| /' conftest.$ac_ext >&5
23484
23485 ac_header_preproc=no
23486fi
23487rm -f conftest.err conftest.$ac_ext
23488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23489echo "${ECHO_T}$ac_header_preproc" >&6
23490
23491# So? What about this header?
ac1cb8d3
VS
23492case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23493 yes:no: )
bdcade0a
MB
23494 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23495echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23496 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23497echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23498 ac_header_preproc=yes
bdcade0a 23499 ;;
ac1cb8d3 23500 no:yes:* )
bdcade0a
MB
23501 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23502echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23503 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23504echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23505 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23506echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23507 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23508echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23509 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23510echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23511 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23512echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23513 (
23514 cat <<\_ASBOX
ac1cb8d3
VS
23515## ----------------------------------------- ##
23516## Report this to wx-dev@lists.wxwidgets.org ##
23517## ----------------------------------------- ##
bdcade0a
MB
23518_ASBOX
23519 ) |
23520 sed "s/^/$as_me: WARNING: /" >&2
23521 ;;
23522esac
23523echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23524echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23525if test "${ac_cv_header_ext_hash_map+set}" = set; then
23526 echo $ECHO_N "(cached) $ECHO_C" >&6
23527else
23528 ac_cv_header_ext_hash_map=$ac_header_preproc
23529fi
23530echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23531echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23532
23533fi
23534if test $ac_cv_header_ext_hash_map = yes; then
23535 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23536echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23537 cat >conftest.$ac_ext <<_ACEOF
23538/* confdefs.h. */
23539_ACEOF
23540cat confdefs.h >>conftest.$ac_ext
23541cat >>conftest.$ac_ext <<_ACEOF
23542/* end confdefs.h. */
23543#include <ext/hash_map>
23544 #include <ext/hash_set>
23545int
23546main ()
23547{
23548__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23549 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23550 ;
23551 return 0;
23552}
23553_ACEOF
23554rm -f conftest.$ac_objext
23555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23556 (eval $ac_compile) 2>conftest.er1
bdcade0a 23557 ac_status=$?
ac1cb8d3
VS
23558 grep -v '^ *+' conftest.er1 >conftest.err
23559 rm -f conftest.er1
23560 cat conftest.err >&5
bdcade0a
MB
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } &&
3565d135
RR
23563 { ac_try='test -z "$ac_cxx_werror_flag"
23564 || test ! -s conftest.err'
ac1cb8d3
VS
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23567 ac_status=$?
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; } &&
23570 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572 (eval $ac_try) 2>&5
23573 ac_status=$?
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); }; }; then
23576 echo "$as_me:$LINENO: result: yes" >&5
23577echo "${ECHO_T}yes" >&6
23578 cat >>confdefs.h <<\_ACEOF
23579#define HAVE_EXT_HASH_MAP 1
23580_ACEOF
23581
23582 cat >>confdefs.h <<\_ACEOF
23583#define HAVE_GNU_CXX_HASH_MAP 1
23584_ACEOF
23585
23586else
23587 echo "$as_me: failed program was:" >&5
23588sed 's/^/| /' conftest.$ac_ext >&5
23589
23590echo "$as_me:$LINENO: result: no" >&5
23591echo "${ECHO_T}no" >&6
23592fi
ac1cb8d3 23593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23594
23595fi
23596
23597
a848cd7e
SC
23598
23599 ac_ext=c
23600ac_cpp='$CPP $CPPFLAGS'
23601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23603ac_compiler_gnu=$ac_cv_c_compiler_gnu
23604
23605fi
23606
23607
23608SEARCH_INCLUDE="\
23609 /usr/local/include \
23610 \
23611 /usr/Motif-2.1/include \
23612 /usr/Motif-1.2/include \
23613 /usr/include/Motif1.2 \
a848cd7e
SC
23614 \
23615 /usr/dt/include \
23616 /usr/openwin/include \
23617 \
23618 /usr/include/Xm \
23619 \
23620 /usr/X11R6/include \
23621 /usr/X11R6.4/include \
23622 /usr/X11R5/include \
23623 /usr/X11R4/include \
23624 \
23625 /usr/include/X11R6 \
23626 /usr/include/X11R5 \
23627 /usr/include/X11R4 \
23628 \
23629 /usr/local/X11R6/include \
23630 /usr/local/X11R5/include \
23631 /usr/local/X11R4/include \
23632 \
23633 /usr/local/include/X11R6 \
23634 /usr/local/include/X11R5 \
23635 /usr/local/include/X11R4 \
23636 \
23637 /usr/X11/include \
23638 /usr/include/X11 \
23639 /usr/local/X11/include \
23640 /usr/local/include/X11 \
23641 \
a848cd7e 23642 /usr/XFree86/include/X11 \
e051b34e
MW
23643 /usr/pkg/include \
23644 \
a848cd7e
SC
23645 /usr/openwin/share/include"
23646
6f9cf1e6 23647echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23648echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23649
23650case "${host}" in
23651 *-*-irix6* )
23652 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23653 echo $ECHO_N "(cached) $ECHO_C" >&6
23654else
23655
c687b303
VZ
23656 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23657 for e in a so sl dylib dll.a; do
23658 libc="$d/libc.$e"
23659 if test -f $libc; then
23660 save_LIBS="$LIBS"
23661 LIBS="$libc"
23662 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23663int main() { return 0; }
23664_ACEOF
23665rm -f conftest.$ac_objext conftest$ac_exeext
23666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23667 (eval $ac_link) 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); } &&
3565d135
RR
23674 { ac_try='test -z "$ac_c_werror_flag"
23675 || test ! -s conftest.err'
0ad5d837
VZ
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; } &&
23681 { ac_try='test -s conftest$ac_exeext'
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23684 ac_status=$?
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; }; then
23687 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23688else
23689 echo "$as_me: failed program was:" >&5
23690sed 's/^/| /' conftest.$ac_ext >&5
23691
23692fi
23693rm -f conftest.err conftest.$ac_objext \
23694 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23695 LIBS="$save_LIBS"
23696 if test "x$wx_cv_std_libpath" != "x"; then
23697 break 2
23698 fi
23699 fi
23700 done
23701 done
23702 if test "x$wx_cv_std_libpath" = "x"; then
23703 wx_cv_std_libpath="lib"
0ad5d837 23704 fi
0ad5d837
VZ
23705
23706
23707fi
6f9cf1e6
MW
23708
23709 ;;
23710
23711 *-*-solaris2* )
23712 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23713 wx_cv_std_libpath="lib/64"
23714 else
23715 wx_cv_std_libpath="lib"
23716 fi
23717 ;;
23718
23719 *-*-linux* )
23720 if test "$ac_cv_sizeof_void_p" = 8 -a \
23721 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23722 wx_cv_std_libpath="lib64"
23723 else
23724 wx_cv_std_libpath="lib"
23725 fi
c687b303
VZ
23726 ;;
23727
23728 *)
23729 wx_cv_std_libpath="lib";
23730 ;;
23731esac
0ad5d837 23732
6f9cf1e6
MW
23733echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23734echo "${ECHO_T}$wx_cv_std_libpath" >&6
23735
23736SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23737
3eca31dc
MW
23738if test "$build" != "$host" -a "$GCC" = yes; then
23739 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23740 cross_root=`dirname $cross_root`
23741 cross_root=`dirname $cross_root`
23742
23743 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23744 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23745 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23746
23747 if test -z "$PKG_CONFIG_PATH"; then
23748 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23749 export PKG_CONFIG_PATH
23750 fi
23751
23752 if test -z "$x_includes" -o "$x_includes" = NONE; then
23753
23754ac_find_includes=
23755for ac_dir in $SEARCH_INCLUDE /usr/include;
23756 do
23757 if test -f "$ac_dir/X11/Intrinsic.h"; then
23758 ac_find_includes=$ac_dir
23759 break
23760 fi
23761 done
23762
23763 x_includes=$ac_find_includes
23764 fi
23765 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23766
0ad5d837
VZ
23767 ac_find_libraries=
23768 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23769 do
23770 for ac_extension in a so sl dylib dll.a; do
23771 if test -f "$ac_dir/libXt.$ac_extension"; then
23772 ac_find_libraries=$ac_dir
23773 break 2
23774 fi
23775 done
23776 done
23777
23778 x_libraries=$ac_find_libraries
23779 fi
23780 fi
23781fi
23782
a848cd7e
SC
23783
23784cat >confcache <<\_ACEOF
23785# This file is a shell script that caches the results of configure
23786# tests run on this system so they can be shared between configure
23787# scripts and configure runs, see configure's option --config-cache.
23788# It is not useful on other systems. If it contains results you don't
23789# want to keep, you may remove or edit it.
23790#
23791# config.status only pays attention to the cache file if you give it
23792# the --recheck option to rerun configure.
23793#
23794# `ac_cv_env_foo' variables (set or unset) will be overridden when
23795# loading this file, other *unset* `ac_cv_foo' will be assigned the
23796# following values.
23797
23798_ACEOF
23799
23800# The following way of writing the cache mishandles newlines in values,
23801# but we know of no workaround that is simple, portable, and efficient.
23802# So, don't put newlines in cache variables' values.
23803# Ultrix sh set writes to stderr and can't be redirected directly,
23804# and sets the high bit in the cache file unless we assign to the vars.
23805{
23806 (set) 2>&1 |
23807 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23808 *ac_space=\ *)
23809 # `set' does not quote correctly, so add quotes (double-quote
23810 # substitution turns \\\\ into \\, and sed turns \\ into \).
23811 sed -n \
ac1cb8d3
VS
23812 "s/'/'\\\\''/g;
23813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23814 ;;
23815 *)
23816 # `set' quotes correctly as required by POSIX, so do not add quotes.
23817 sed -n \
ac1cb8d3 23818 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23819 ;;
23820 esac;
23821} |
23822 sed '
23823 t clear
23824 : clear
23825 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23826 t end
23827 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23828 : end' >>confcache
23829if diff $cache_file confcache >/dev/null 2>&1; then :; else
23830 if test -w $cache_file; then
23831 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23832 cat confcache >$cache_file
23833 else
23834 echo "not updating unwritable cache $cache_file"
23835 fi
23836fi
23837rm -f confcache
23838
23839if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23840 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23841echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23842if test "${wx_cv_lib_glibc21+set}" = set; then
23843 echo $ECHO_N "(cached) $ECHO_C" >&6
23844else
23845
23846 cat >conftest.$ac_ext <<_ACEOF
23847/* confdefs.h. */
23848_ACEOF
23849cat confdefs.h >>conftest.$ac_ext
23850cat >>conftest.$ac_ext <<_ACEOF
23851/* end confdefs.h. */
23852#include <features.h>
23853int
23854main ()
23855{
23856
23857 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23858 not glibc 2.1
a848cd7e
SC
23859 #endif
23860
23861 ;
23862 return 0;
23863}
23864_ACEOF
23865rm -f conftest.$ac_objext
23866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23867 (eval $ac_compile) 2>conftest.er1
a848cd7e 23868 ac_status=$?
ac1cb8d3
VS
23869 grep -v '^ *+' conftest.er1 >conftest.err
23870 rm -f conftest.er1
23871 cat conftest.err >&5
a848cd7e
SC
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); } &&
3565d135
RR
23874 { ac_try='test -z "$ac_c_werror_flag"
23875 || test ! -s conftest.err'
ac1cb8d3
VS
23876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 (eval $ac_try) 2>&5
23878 ac_status=$?
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; } &&
23881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23883 (eval $ac_try) 2>&5
23884 ac_status=$?
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); }; }; then
23887
23888 wx_cv_lib_glibc21=yes
23889
23890else
23891 echo "$as_me: failed program was:" >&5
23892sed 's/^/| /' conftest.$ac_ext >&5
23893
23894
23895 wx_cv_lib_glibc21=no
23896
23897
23898fi
ac1cb8d3 23899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23900
23901fi
23902echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23903echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23904 if test "$wx_cv_lib_glibc21" = "yes"; then
23905 cat >>confdefs.h <<\_ACEOF
23906#define wxHAVE_GLIBC2 1
23907_ACEOF
23908
23909 fi
23910fi
23911
23912if test "x$wx_cv_lib_glibc21" = "xyes"; then
23913 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23914 cat >>confdefs.h <<\_ACEOF
23915#define _GNU_SOURCE 1
23916_ACEOF
23917
23918 fi
23919fi
23920
23921
23922
23923if test "$wxUSE_REGEX" != "no"; then
23924 cat >>confdefs.h <<\_ACEOF
23925#define wxUSE_REGEX 1
23926_ACEOF
23927
23928
23929 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23930 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23931echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23932 wxUSE_REGEX=builtin
23933 fi
23934
23935 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23936 if test "${ac_cv_header_regex_h+set}" = set; then
23937 echo "$as_me:$LINENO: checking for regex.h" >&5
23938echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23939if test "${ac_cv_header_regex_h+set}" = set; then
23940 echo $ECHO_N "(cached) $ECHO_C" >&6
23941fi
23942echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23943echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23944else
23945 # Is the header compilable?
23946echo "$as_me:$LINENO: checking regex.h usability" >&5
23947echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23948cat >conftest.$ac_ext <<_ACEOF
23949/* confdefs.h. */
23950_ACEOF
23951cat confdefs.h >>conftest.$ac_ext
23952cat >>conftest.$ac_ext <<_ACEOF
23953/* end confdefs.h. */
23954$ac_includes_default
23955#include <regex.h>
23956_ACEOF
23957rm -f conftest.$ac_objext
23958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23959 (eval $ac_compile) 2>conftest.er1
a848cd7e 23960 ac_status=$?
ac1cb8d3
VS
23961 grep -v '^ *+' conftest.er1 >conftest.err
23962 rm -f conftest.er1
23963 cat conftest.err >&5
a848cd7e
SC
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); } &&
3565d135
RR
23966 { ac_try='test -z "$ac_c_werror_flag"
23967 || test ! -s conftest.err'
ac1cb8d3
VS
23968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23969 (eval $ac_try) 2>&5
23970 ac_status=$?
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); }; } &&
23973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23975 (eval $ac_try) 2>&5
23976 ac_status=$?
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); }; }; then
23979 ac_header_compiler=yes
23980else
23981 echo "$as_me: failed program was:" >&5
23982sed 's/^/| /' conftest.$ac_ext >&5
23983
23984ac_header_compiler=no
23985fi
ac1cb8d3 23986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23987echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23988echo "${ECHO_T}$ac_header_compiler" >&6
23989
23990# Is the header present?
23991echo "$as_me:$LINENO: checking regex.h presence" >&5
23992echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23993cat >conftest.$ac_ext <<_ACEOF
23994/* confdefs.h. */
23995_ACEOF
23996cat confdefs.h >>conftest.$ac_ext
23997cat >>conftest.$ac_ext <<_ACEOF
23998/* end confdefs.h. */
23999#include <regex.h>
24000_ACEOF
24001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24003 ac_status=$?
24004 grep -v '^ *+' conftest.er1 >conftest.err
24005 rm -f conftest.er1
24006 cat conftest.err >&5
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); } >/dev/null; then
24009 if test -s conftest.err; then
24010 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24012 else
24013 ac_cpp_err=
24014 fi
24015else
24016 ac_cpp_err=yes
24017fi
24018if test -z "$ac_cpp_err"; then
24019 ac_header_preproc=yes
24020else
24021 echo "$as_me: failed program was:" >&5
24022sed 's/^/| /' conftest.$ac_ext >&5
24023
24024 ac_header_preproc=no
24025fi
24026rm -f conftest.err conftest.$ac_ext
24027echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24028echo "${ECHO_T}$ac_header_preproc" >&6
24029
24030# So? What about this header?
ac1cb8d3
VS
24031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24032 yes:no: )
a848cd7e
SC
24033 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24034echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24035 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24036echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24037 ac_header_preproc=yes
a848cd7e 24038 ;;
ac1cb8d3 24039 no:yes:* )
a848cd7e
SC
24040 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24041echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24042 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24043echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24044 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24045echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24046 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24047echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24048 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24049echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24050 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24051echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24052 (
24053 cat <<\_ASBOX
ac1cb8d3
VS
24054## ----------------------------------------- ##
24055## Report this to wx-dev@lists.wxwidgets.org ##
24056## ----------------------------------------- ##
a848cd7e
SC
24057_ASBOX
24058 ) |
24059 sed "s/^/$as_me: WARNING: /" >&2
24060 ;;
24061esac
24062echo "$as_me:$LINENO: checking for regex.h" >&5
24063echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24064if test "${ac_cv_header_regex_h+set}" = set; then
24065 echo $ECHO_N "(cached) $ECHO_C" >&6
24066else
24067 ac_cv_header_regex_h=$ac_header_preproc
24068fi
24069echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24070echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24071
24072fi
24073if test $ac_cv_header_regex_h = yes; then
24074
ab0f0edd
MW
24075
24076for ac_func in regcomp re_search
a848cd7e
SC
24077do
24078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24079echo "$as_me:$LINENO: checking for $ac_func" >&5
24080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24081if eval "test \"\${$as_ac_var+set}\" = set"; then
24082 echo $ECHO_N "(cached) $ECHO_C" >&6
24083else
24084 cat >conftest.$ac_ext <<_ACEOF
24085/* confdefs.h. */
24086_ACEOF
24087cat confdefs.h >>conftest.$ac_ext
24088cat >>conftest.$ac_ext <<_ACEOF
24089/* end confdefs.h. */
ac1cb8d3
VS
24090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24092#define $ac_func innocuous_$ac_func
24093
a848cd7e
SC
24094/* System header to define __stub macros and hopefully few prototypes,
24095 which can conflict with char $ac_func (); below.
24096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24097 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24098
a848cd7e
SC
24099#ifdef __STDC__
24100# include <limits.h>
24101#else
24102# include <assert.h>
24103#endif
ac1cb8d3
VS
24104
24105#undef $ac_func
24106
a848cd7e
SC
24107/* Override any gcc2 internal prototype to avoid an error. */
24108#ifdef __cplusplus
24109extern "C"
24110{
24111#endif
24112/* We use char because int might match the return type of a gcc2
24113 builtin and then its argument prototype would still apply. */
24114char $ac_func ();
24115/* The GNU C library defines this for functions which it implements
24116 to always fail with ENOSYS. Some functions are actually named
24117 something starting with __ and the normal name is an alias. */
24118#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24119choke me
24120#else
24121char (*f) () = $ac_func;
24122#endif
24123#ifdef __cplusplus
24124}
24125#endif
24126
24127int
24128main ()
24129{
24130return f != $ac_func;
24131 ;
24132 return 0;
24133}
24134_ACEOF
24135rm -f conftest.$ac_objext conftest$ac_exeext
24136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24137 (eval $ac_link) 2>conftest.er1
a848cd7e 24138 ac_status=$?
ac1cb8d3
VS
24139 grep -v '^ *+' conftest.er1 >conftest.err
24140 rm -f conftest.er1
24141 cat conftest.err >&5
a848cd7e
SC
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); } &&
3565d135
RR
24144 { ac_try='test -z "$ac_c_werror_flag"
24145 || test ! -s conftest.err'
ac1cb8d3
VS
24146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24147 (eval $ac_try) 2>&5
24148 ac_status=$?
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); }; } &&
24151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24154 ac_status=$?
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; }; then
24157 eval "$as_ac_var=yes"
24158else
24159 echo "$as_me: failed program was:" >&5
24160sed 's/^/| /' conftest.$ac_ext >&5
24161
24162eval "$as_ac_var=no"
24163fi
ac1cb8d3
VS
24164rm -f conftest.err conftest.$ac_objext \
24165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24166fi
24167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24168echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24169if test `eval echo '${'$as_ac_var'}'` = yes; then
24170 cat >>confdefs.h <<_ACEOF
24171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24172_ACEOF
24173
24174fi
24175done
24176
24177fi
24178
24179
24180
24181 if test "x$ac_cv_func_regcomp" != "xyes"; then
24182 if test "$wxUSE_REGEX" = "sys" ; then
24183 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24184echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24185 { (exit 1); exit 1; }; }
24186 else
24187 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24188echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24189 wxUSE_REGEX=builtin
24190 fi
24191 else
24192 wxUSE_REGEX=sys
24193 cat >>confdefs.h <<\_ACEOF
24194#define WX_NO_REGEX_ADVANCED 1
24195_ACEOF
24196
24197 fi
24198 fi
24199fi
24200
24201
24202ZLIB_LINK=
24203if test "$wxUSE_ZLIB" != "no" ; then
24204 cat >>confdefs.h <<\_ACEOF
24205#define wxUSE_ZLIB 1
24206_ACEOF
24207
24208
24209 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24210 if test "$USE_DARWIN" = 1; then
24211 system_zlib_h_ok="yes"
24212 else
24213 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24214echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24215if test "${ac_cv_header_zlib_h+set}" = set; then
24216 echo $ECHO_N "(cached) $ECHO_C" >&6
24217else
24218 if test "$cross_compiling" = yes; then
24219 unset ac_cv_header_zlib_h
24220
24221else
24222 cat >conftest.$ac_ext <<_ACEOF
24223/* confdefs.h. */
24224_ACEOF
24225cat confdefs.h >>conftest.$ac_ext
24226cat >>conftest.$ac_ext <<_ACEOF
24227/* end confdefs.h. */
24228
24229 #include <zlib.h>
24230 #include <stdio.h>
24231
24232 int main()
24233 {
24234 FILE *f=fopen("conftestval", "w");
24235 if (!f) exit(1);
24236 fprintf(f, "%s",
24237 ZLIB_VERSION[0] == '1' &&
24238 (ZLIB_VERSION[2] > '1' ||
24239 (ZLIB_VERSION[2] == '1' &&
24240 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24241 exit(0);
24242 }
24243
24244_ACEOF
24245rm -f conftest$ac_exeext
24246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24247 (eval $ac_link) 2>&5
24248 ac_status=$?
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252 (eval $ac_try) 2>&5
24253 ac_status=$?
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; }; then
24256 ac_cv_header_zlib_h=`cat conftestval`
24257else
24258 echo "$as_me: program exited with status $ac_status" >&5
24259echo "$as_me: failed program was:" >&5
24260sed 's/^/| /' conftest.$ac_ext >&5
24261
24262( exit $ac_status )
24263ac_cv_header_zlib_h=no
24264fi
ac1cb8d3 24265rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24266fi
24267
24268fi
24269echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24270echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24271 if test "${ac_cv_header_zlib_h+set}" = set; then
24272 echo "$as_me:$LINENO: checking for zlib.h" >&5
24273echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24274if test "${ac_cv_header_zlib_h+set}" = set; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24276fi
24277echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24278echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24279else
24280 # Is the header compilable?
24281echo "$as_me:$LINENO: checking zlib.h usability" >&5
24282echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24283cat >conftest.$ac_ext <<_ACEOF
24284/* confdefs.h. */
24285_ACEOF
24286cat confdefs.h >>conftest.$ac_ext
24287cat >>conftest.$ac_ext <<_ACEOF
24288/* end confdefs.h. */
24289$ac_includes_default
24290#include <zlib.h>
24291_ACEOF
24292rm -f conftest.$ac_objext
24293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24294 (eval $ac_compile) 2>conftest.er1
a848cd7e 24295 ac_status=$?
ac1cb8d3
VS
24296 grep -v '^ *+' conftest.er1 >conftest.err
24297 rm -f conftest.er1
24298 cat conftest.err >&5
a848cd7e
SC
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); } &&
3565d135
RR
24301 { ac_try='test -z "$ac_c_werror_flag"
24302 || test ! -s conftest.err'
ac1cb8d3
VS
24303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24304 (eval $ac_try) 2>&5
24305 ac_status=$?
24306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); }; } &&
24308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24310 (eval $ac_try) 2>&5
24311 ac_status=$?
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); }; }; then
24314 ac_header_compiler=yes
24315else
24316 echo "$as_me: failed program was:" >&5
24317sed 's/^/| /' conftest.$ac_ext >&5
24318
24319ac_header_compiler=no
24320fi
ac1cb8d3 24321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24322echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24323echo "${ECHO_T}$ac_header_compiler" >&6
24324
24325# Is the header present?
24326echo "$as_me:$LINENO: checking zlib.h presence" >&5
24327echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24328cat >conftest.$ac_ext <<_ACEOF
24329/* confdefs.h. */
24330_ACEOF
24331cat confdefs.h >>conftest.$ac_ext
24332cat >>conftest.$ac_ext <<_ACEOF
24333/* end confdefs.h. */
24334#include <zlib.h>
24335_ACEOF
24336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24338 ac_status=$?
24339 grep -v '^ *+' conftest.er1 >conftest.err
24340 rm -f conftest.er1
24341 cat conftest.err >&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); } >/dev/null; then
24344 if test -s conftest.err; then
24345 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24347 else
24348 ac_cpp_err=
24349 fi
24350else
24351 ac_cpp_err=yes
24352fi
24353if test -z "$ac_cpp_err"; then
24354 ac_header_preproc=yes
24355else
24356 echo "$as_me: failed program was:" >&5
24357sed 's/^/| /' conftest.$ac_ext >&5
24358
24359 ac_header_preproc=no
24360fi
24361rm -f conftest.err conftest.$ac_ext
24362echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24363echo "${ECHO_T}$ac_header_preproc" >&6
24364
24365# So? What about this header?
ac1cb8d3
VS
24366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24367 yes:no: )
a848cd7e
SC
24368 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24369echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24370 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24371echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24372 ac_header_preproc=yes
a848cd7e 24373 ;;
ac1cb8d3 24374 no:yes:* )
a848cd7e
SC
24375 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24376echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24377 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24378echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24379 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24380echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24381 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24382echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24383 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24384echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24385 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24386echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24387 (
24388 cat <<\_ASBOX
ac1cb8d3
VS
24389## ----------------------------------------- ##
24390## Report this to wx-dev@lists.wxwidgets.org ##
24391## ----------------------------------------- ##
a848cd7e
SC
24392_ASBOX
24393 ) |
24394 sed "s/^/$as_me: WARNING: /" >&2
24395 ;;
24396esac
24397echo "$as_me:$LINENO: checking for zlib.h" >&5
24398echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24399if test "${ac_cv_header_zlib_h+set}" = set; then
24400 echo $ECHO_N "(cached) $ECHO_C" >&6
24401else
24402 ac_cv_header_zlib_h=$ac_header_preproc
24403fi
24404echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24405echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24406
24407fi
24408
24409
24410
24411 system_zlib_h_ok=$ac_cv_header_zlib_h
24412 fi
24413
24414 if test "$system_zlib_h_ok" = "yes"; then
24415 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24416echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24417if test "${ac_cv_lib_z_deflate+set}" = set; then
24418 echo $ECHO_N "(cached) $ECHO_C" >&6
24419else
24420 ac_check_lib_save_LIBS=$LIBS
24421LIBS="-lz $LIBS"
24422cat >conftest.$ac_ext <<_ACEOF
24423/* confdefs.h. */
24424_ACEOF
24425cat confdefs.h >>conftest.$ac_ext
24426cat >>conftest.$ac_ext <<_ACEOF
24427/* end confdefs.h. */
24428
24429/* Override any gcc2 internal prototype to avoid an error. */
24430#ifdef __cplusplus
24431extern "C"
24432#endif
24433/* We use char because int might match the return type of a gcc2
24434 builtin and then its argument prototype would still apply. */
24435char deflate ();
24436int
24437main ()
24438{
24439deflate ();
24440 ;
24441 return 0;
24442}
24443_ACEOF
24444rm -f conftest.$ac_objext conftest$ac_exeext
24445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24446 (eval $ac_link) 2>conftest.er1
a848cd7e 24447 ac_status=$?
ac1cb8d3
VS
24448 grep -v '^ *+' conftest.er1 >conftest.err
24449 rm -f conftest.er1
24450 cat conftest.err >&5
a848cd7e
SC
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } &&
3565d135
RR
24453 { ac_try='test -z "$ac_c_werror_flag"
24454 || test ! -s conftest.err'
ac1cb8d3
VS
24455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24456 (eval $ac_try) 2>&5
24457 ac_status=$?
24458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); }; } &&
24460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24462 (eval $ac_try) 2>&5
24463 ac_status=$?
24464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465 (exit $ac_status); }; }; then
24466 ac_cv_lib_z_deflate=yes
24467else
24468 echo "$as_me: failed program was:" >&5
24469sed 's/^/| /' conftest.$ac_ext >&5
24470
24471ac_cv_lib_z_deflate=no
24472fi
ac1cb8d3
VS
24473rm -f conftest.err conftest.$ac_objext \
24474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24475LIBS=$ac_check_lib_save_LIBS
24476fi
24477echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24478echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24479if test $ac_cv_lib_z_deflate = yes; then
24480 ZLIB_LINK=" -lz"
24481fi
24482
24483 fi
24484
24485 if test "x$ZLIB_LINK" = "x" ; then
24486 if test "$wxUSE_ZLIB" = "sys" ; then
24487 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24488echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24489 { (exit 1); exit 1; }; }
24490 else
24491 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24492echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24493 wxUSE_ZLIB=builtin
24494 fi
24495 else
24496 wxUSE_ZLIB=sys
24497 fi
24498 fi
24499fi
24500
24501
24502PNG_LINK=
24503if test "$wxUSE_LIBPNG" != "no" ; then
24504 cat >>confdefs.h <<\_ACEOF
24505#define wxUSE_LIBPNG 1
24506_ACEOF
24507
24508
24509 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24510 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24511echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24512 wxUSE_LIBPNG=sys
24513 fi
24514
24515 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24516 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24517echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24518 wxUSE_LIBPNG=builtin
24519 fi
24520
24521 if test "$wxUSE_MGL" != 1 ; then
24522 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24523 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24524echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24525if test "${ac_cv_header_png_h+set}" = set; then
24526 echo $ECHO_N "(cached) $ECHO_C" >&6
24527else
24528 if test "$cross_compiling" = yes; then
24529 unset ac_cv_header_png_h
24530
24531else
24532 cat >conftest.$ac_ext <<_ACEOF
24533/* confdefs.h. */
24534_ACEOF
24535cat confdefs.h >>conftest.$ac_ext
24536cat >>conftest.$ac_ext <<_ACEOF
24537/* end confdefs.h. */
24538
24539 #include <png.h>
24540 #include <stdio.h>
24541
24542 int main()
24543 {
24544 FILE *f=fopen("conftestval", "w");
24545 if (!f) exit(1);
24546 fprintf(f, "%s",
24547 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24548 exit(0);
24549 }
24550
24551_ACEOF
24552rm -f conftest$ac_exeext
24553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24554 (eval $ac_link) 2>&5
24555 ac_status=$?
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559 (eval $ac_try) 2>&5
24560 ac_status=$?
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); }; }; then
24563 ac_cv_header_png_h=`cat conftestval`
24564else
24565 echo "$as_me: program exited with status $ac_status" >&5
24566echo "$as_me: failed program was:" >&5
24567sed 's/^/| /' conftest.$ac_ext >&5
24568
24569( exit $ac_status )
24570ac_cv_header_png_h=no
24571fi
ac1cb8d3 24572rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24573fi
24574
24575fi
24576echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24577echo "${ECHO_T}$ac_cv_header_png_h" >&6
24578 if test "${ac_cv_header_png_h+set}" = set; then
24579 echo "$as_me:$LINENO: checking for png.h" >&5
24580echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24581if test "${ac_cv_header_png_h+set}" = set; then
24582 echo $ECHO_N "(cached) $ECHO_C" >&6
24583fi
24584echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24585echo "${ECHO_T}$ac_cv_header_png_h" >&6
24586else
24587 # Is the header compilable?
24588echo "$as_me:$LINENO: checking png.h usability" >&5
24589echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24590cat >conftest.$ac_ext <<_ACEOF
24591/* confdefs.h. */
24592_ACEOF
24593cat confdefs.h >>conftest.$ac_ext
24594cat >>conftest.$ac_ext <<_ACEOF
24595/* end confdefs.h. */
24596$ac_includes_default
24597#include <png.h>
24598_ACEOF
24599rm -f conftest.$ac_objext
24600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24601 (eval $ac_compile) 2>conftest.er1
a848cd7e 24602 ac_status=$?
ac1cb8d3
VS
24603 grep -v '^ *+' conftest.er1 >conftest.err
24604 rm -f conftest.er1
24605 cat conftest.err >&5
a848cd7e
SC
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); } &&
3565d135
RR
24608 { ac_try='test -z "$ac_c_werror_flag"
24609 || test ! -s conftest.err'
ac1cb8d3
VS
24610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24611 (eval $ac_try) 2>&5
24612 ac_status=$?
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); }; } &&
24615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617 (eval $ac_try) 2>&5
24618 ac_status=$?
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); }; }; then
24621 ac_header_compiler=yes
24622else
24623 echo "$as_me: failed program was:" >&5
24624sed 's/^/| /' conftest.$ac_ext >&5
24625
24626ac_header_compiler=no
24627fi
ac1cb8d3 24628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24629echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24630echo "${ECHO_T}$ac_header_compiler" >&6
24631
24632# Is the header present?
24633echo "$as_me:$LINENO: checking png.h presence" >&5
24634echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24635cat >conftest.$ac_ext <<_ACEOF
24636/* confdefs.h. */
24637_ACEOF
24638cat confdefs.h >>conftest.$ac_ext
24639cat >>conftest.$ac_ext <<_ACEOF
24640/* end confdefs.h. */
24641#include <png.h>
24642_ACEOF
24643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24645 ac_status=$?
24646 grep -v '^ *+' conftest.er1 >conftest.err
24647 rm -f conftest.er1
24648 cat conftest.err >&5
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } >/dev/null; then
24651 if test -s conftest.err; then
24652 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24654 else
24655 ac_cpp_err=
24656 fi
24657else
24658 ac_cpp_err=yes
24659fi
24660if test -z "$ac_cpp_err"; then
24661 ac_header_preproc=yes
24662else
24663 echo "$as_me: failed program was:" >&5
24664sed 's/^/| /' conftest.$ac_ext >&5
24665
24666 ac_header_preproc=no
24667fi
24668rm -f conftest.err conftest.$ac_ext
24669echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24670echo "${ECHO_T}$ac_header_preproc" >&6
24671
24672# So? What about this header?
ac1cb8d3
VS
24673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24674 yes:no: )
a848cd7e
SC
24675 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24676echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24677 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24678echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24679 ac_header_preproc=yes
a848cd7e 24680 ;;
ac1cb8d3 24681 no:yes:* )
a848cd7e
SC
24682 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24683echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24684 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24685echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24686 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24687echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24688 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24689echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24690 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24691echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24692 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24693echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24694 (
24695 cat <<\_ASBOX
ac1cb8d3
VS
24696## ----------------------------------------- ##
24697## Report this to wx-dev@lists.wxwidgets.org ##
24698## ----------------------------------------- ##
a848cd7e
SC
24699_ASBOX
24700 ) |
24701 sed "s/^/$as_me: WARNING: /" >&2
24702 ;;
24703esac
24704echo "$as_me:$LINENO: checking for png.h" >&5
24705echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24706if test "${ac_cv_header_png_h+set}" = set; then
24707 echo $ECHO_N "(cached) $ECHO_C" >&6
24708else
24709 ac_cv_header_png_h=$ac_header_preproc
24710fi
24711echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24712echo "${ECHO_T}$ac_cv_header_png_h" >&6
24713
24714fi
24715
24716
24717
24718 if test "$ac_cv_header_png_h" = "yes"; then
24719 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24720echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24721if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24722 echo $ECHO_N "(cached) $ECHO_C" >&6
24723else
24724 ac_check_lib_save_LIBS=$LIBS
24725LIBS="-lpng -lz -lm $LIBS"
24726cat >conftest.$ac_ext <<_ACEOF
24727/* confdefs.h. */
24728_ACEOF
24729cat confdefs.h >>conftest.$ac_ext
24730cat >>conftest.$ac_ext <<_ACEOF
24731/* end confdefs.h. */
24732
24733/* Override any gcc2 internal prototype to avoid an error. */
24734#ifdef __cplusplus
24735extern "C"
24736#endif
24737/* We use char because int might match the return type of a gcc2
24738 builtin and then its argument prototype would still apply. */
24739char png_check_sig ();
24740int
24741main ()
24742{
24743png_check_sig ();
24744 ;
24745 return 0;
24746}
24747_ACEOF
24748rm -f conftest.$ac_objext conftest$ac_exeext
24749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24750 (eval $ac_link) 2>conftest.er1
a848cd7e 24751 ac_status=$?
ac1cb8d3
VS
24752 grep -v '^ *+' conftest.er1 >conftest.err
24753 rm -f conftest.er1
24754 cat conftest.err >&5
a848cd7e
SC
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); } &&
3565d135
RR
24757 { ac_try='test -z "$ac_c_werror_flag"
24758 || test ! -s conftest.err'
ac1cb8d3
VS
24759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24760 (eval $ac_try) 2>&5
24761 ac_status=$?
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); }; } &&
24764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24766 (eval $ac_try) 2>&5
24767 ac_status=$?
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); }; }; then
24770 ac_cv_lib_png_png_check_sig=yes
24771else
24772 echo "$as_me: failed program was:" >&5
24773sed 's/^/| /' conftest.$ac_ext >&5
24774
24775ac_cv_lib_png_png_check_sig=no
24776fi
ac1cb8d3
VS
24777rm -f conftest.err conftest.$ac_objext \
24778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24779LIBS=$ac_check_lib_save_LIBS
24780fi
24781echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24782echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24783if test $ac_cv_lib_png_png_check_sig = yes; then
24784 PNG_LINK=" -lpng -lz"
24785fi
24786
24787 fi
24788
24789 if test "x$PNG_LINK" = "x" ; then
24790 if test "$wxUSE_LIBPNG" = "sys" ; then
24791 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24792echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24793 { (exit 1); exit 1; }; }
24794 else
24795 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24796echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24797 wxUSE_LIBPNG=builtin
24798 fi
24799 else
24800 wxUSE_LIBPNG=sys
24801 fi
24802 fi
24803 fi
24804
24805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24806fi
24807
24808
24809JPEG_LINK=
24810if test "$wxUSE_LIBJPEG" != "no" ; then
24811 cat >>confdefs.h <<\_ACEOF
24812#define wxUSE_LIBJPEG 1
24813_ACEOF
24814
24815
24816 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24817 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24818echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24819 wxUSE_LIBJPEG=sys
24820 fi
24821
24822 if test "$wxUSE_MGL" != 1 ; then
24823 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24824 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24825echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24826 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24827 echo $ECHO_N "(cached) $ECHO_C" >&6
24828else
24829 cat >conftest.$ac_ext <<_ACEOF
24830/* confdefs.h. */
24831_ACEOF
24832cat confdefs.h >>conftest.$ac_ext
24833cat >>conftest.$ac_ext <<_ACEOF
24834/* end confdefs.h. */
24835
24836 #undef HAVE_STDLIB_H
24837 #include <stdio.h>
24838 #include <jpeglib.h>
24839
24840int
24841main ()
24842{
24843
24844
24845 ;
24846 return 0;
24847}
24848_ACEOF
24849rm -f conftest.$ac_objext
24850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24851 (eval $ac_compile) 2>conftest.er1
a848cd7e 24852 ac_status=$?
ac1cb8d3
VS
24853 grep -v '^ *+' conftest.er1 >conftest.err
24854 rm -f conftest.er1
24855 cat conftest.err >&5
a848cd7e
SC
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); } &&
3565d135
RR
24858 { ac_try='test -z "$ac_c_werror_flag"
24859 || test ! -s conftest.err'
ac1cb8d3
VS
24860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24861 (eval $ac_try) 2>&5
24862 ac_status=$?
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; } &&
24865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24867 (eval $ac_try) 2>&5
24868 ac_status=$?
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); }; }; then
24871 ac_cv_header_jpeglib_h=yes
24872else
24873 echo "$as_me: failed program was:" >&5
24874sed 's/^/| /' conftest.$ac_ext >&5
24875
24876ac_cv_header_jpeglib_h=no
24877
24878fi
ac1cb8d3 24879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24880
24881fi
24882
24883 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24884echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24885
24886 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24887 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24888echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24889if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24890 echo $ECHO_N "(cached) $ECHO_C" >&6
24891else
24892 ac_check_lib_save_LIBS=$LIBS
24893LIBS="-ljpeg $LIBS"
24894cat >conftest.$ac_ext <<_ACEOF
24895/* confdefs.h. */
24896_ACEOF
24897cat confdefs.h >>conftest.$ac_ext
24898cat >>conftest.$ac_ext <<_ACEOF
24899/* end confdefs.h. */
24900
24901/* Override any gcc2 internal prototype to avoid an error. */
24902#ifdef __cplusplus
24903extern "C"
24904#endif
24905/* We use char because int might match the return type of a gcc2
24906 builtin and then its argument prototype would still apply. */
24907char jpeg_read_header ();
24908int
24909main ()
24910{
24911jpeg_read_header ();
24912 ;
24913 return 0;
24914}
24915_ACEOF
24916rm -f conftest.$ac_objext conftest$ac_exeext
24917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24918 (eval $ac_link) 2>conftest.er1
a848cd7e 24919 ac_status=$?
ac1cb8d3
VS
24920 grep -v '^ *+' conftest.er1 >conftest.err
24921 rm -f conftest.er1
24922 cat conftest.err >&5
a848cd7e
SC
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
3565d135
RR
24925 { ac_try='test -z "$ac_c_werror_flag"
24926 || test ! -s conftest.err'
ac1cb8d3
VS
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24929 ac_status=$?
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; } &&
24932 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 ac_cv_lib_jpeg_jpeg_read_header=yes
24939else
24940 echo "$as_me: failed program was:" >&5
24941sed 's/^/| /' conftest.$ac_ext >&5
24942
24943ac_cv_lib_jpeg_jpeg_read_header=no
24944fi
ac1cb8d3
VS
24945rm -f conftest.err conftest.$ac_objext \
24946 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24947LIBS=$ac_check_lib_save_LIBS
24948fi
24949echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24950echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24951if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24952 JPEG_LINK=" -ljpeg"
24953fi
24954
24955 fi
24956
24957 if test "x$JPEG_LINK" = "x" ; then
24958 if test "$wxUSE_LIBJPEG" = "sys" ; then
24959 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24960echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24961 { (exit 1); exit 1; }; }
24962 else
24963 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24964echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24965 wxUSE_LIBJPEG=builtin
24966 fi
24967 else
24968 wxUSE_LIBJPEG=sys
24969 fi
24970 fi
24971 fi
24972fi
24973
24974
24975TIFF_LINK=
24976TIFF_PREREQ_LINKS=-lm
24977if test "$wxUSE_LIBTIFF" != "no" ; then
24978 cat >>confdefs.h <<\_ACEOF
24979#define wxUSE_LIBTIFF 1
24980_ACEOF
24981
24982
24983 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24984 if test "$wxUSE_LIBJPEG" = "sys"; then
24985 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24986 fi
24987 if test "$wxUSE_ZLIB" = "sys"; then
24988 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24989 fi
24990 if test "${ac_cv_header_tiffio_h+set}" = set; then
24991 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24992echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24993if test "${ac_cv_header_tiffio_h+set}" = set; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24995fi
24996echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24997echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24998else
24999 # Is the header compilable?
25000echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25001echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25002cat >conftest.$ac_ext <<_ACEOF
25003/* confdefs.h. */
25004_ACEOF
25005cat confdefs.h >>conftest.$ac_ext
25006cat >>conftest.$ac_ext <<_ACEOF
25007/* end confdefs.h. */
25008$ac_includes_default
25009#include <tiffio.h>
25010_ACEOF
25011rm -f conftest.$ac_objext
25012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25013 (eval $ac_compile) 2>conftest.er1
a848cd7e 25014 ac_status=$?
ac1cb8d3
VS
25015 grep -v '^ *+' conftest.er1 >conftest.err
25016 rm -f conftest.er1
25017 cat conftest.err >&5
a848cd7e
SC
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } &&
3565d135
RR
25020 { ac_try='test -z "$ac_c_werror_flag"
25021 || test ! -s conftest.err'
ac1cb8d3
VS
25022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25023 (eval $ac_try) 2>&5
25024 ac_status=$?
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; } &&
25027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25029 (eval $ac_try) 2>&5
25030 ac_status=$?
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); }; }; then
25033 ac_header_compiler=yes
25034else
25035 echo "$as_me: failed program was:" >&5
25036sed 's/^/| /' conftest.$ac_ext >&5
25037
25038ac_header_compiler=no
25039fi
ac1cb8d3 25040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25042echo "${ECHO_T}$ac_header_compiler" >&6
25043
25044# Is the header present?
25045echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25046echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25047cat >conftest.$ac_ext <<_ACEOF
25048/* confdefs.h. */
25049_ACEOF
25050cat confdefs.h >>conftest.$ac_ext
25051cat >>conftest.$ac_ext <<_ACEOF
25052/* end confdefs.h. */
25053#include <tiffio.h>
25054_ACEOF
25055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25057 ac_status=$?
25058 grep -v '^ *+' conftest.er1 >conftest.err
25059 rm -f conftest.er1
25060 cat conftest.err >&5
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } >/dev/null; then
25063 if test -s conftest.err; then
25064 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25066 else
25067 ac_cpp_err=
25068 fi
25069else
25070 ac_cpp_err=yes
25071fi
25072if test -z "$ac_cpp_err"; then
25073 ac_header_preproc=yes
25074else
25075 echo "$as_me: failed program was:" >&5
25076sed 's/^/| /' conftest.$ac_ext >&5
25077
25078 ac_header_preproc=no
25079fi
25080rm -f conftest.err conftest.$ac_ext
25081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25082echo "${ECHO_T}$ac_header_preproc" >&6
25083
25084# So? What about this header?
ac1cb8d3
VS
25085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25086 yes:no: )
a848cd7e
SC
25087 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25088echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25089 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25090echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25091 ac_header_preproc=yes
a848cd7e 25092 ;;
ac1cb8d3 25093 no:yes:* )
a848cd7e
SC
25094 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25095echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25096 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25097echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25098 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25099echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25100 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25101echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25102 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25103echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25104 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25105echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25106 (
25107 cat <<\_ASBOX
ac1cb8d3
VS
25108## ----------------------------------------- ##
25109## Report this to wx-dev@lists.wxwidgets.org ##
25110## ----------------------------------------- ##
a848cd7e
SC
25111_ASBOX
25112 ) |
25113 sed "s/^/$as_me: WARNING: /" >&2
25114 ;;
25115esac
25116echo "$as_me:$LINENO: checking for tiffio.h" >&5
25117echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25118if test "${ac_cv_header_tiffio_h+set}" = set; then
25119 echo $ECHO_N "(cached) $ECHO_C" >&6
25120else
25121 ac_cv_header_tiffio_h=$ac_header_preproc
25122fi
25123echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25124echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25125
25126fi
25127if test $ac_cv_header_tiffio_h = yes; then
25128
25129 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25130echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25131if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25132 echo $ECHO_N "(cached) $ECHO_C" >&6
25133else
25134 ac_check_lib_save_LIBS=$LIBS
25135LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25136cat >conftest.$ac_ext <<_ACEOF
25137/* confdefs.h. */
25138_ACEOF
25139cat confdefs.h >>conftest.$ac_ext
25140cat >>conftest.$ac_ext <<_ACEOF
25141/* end confdefs.h. */
25142
25143/* Override any gcc2 internal prototype to avoid an error. */
25144#ifdef __cplusplus
25145extern "C"
25146#endif
25147/* We use char because int might match the return type of a gcc2
25148 builtin and then its argument prototype would still apply. */
25149char TIFFError ();
25150int
25151main ()
25152{
25153TIFFError ();
25154 ;
25155 return 0;
25156}
25157_ACEOF
25158rm -f conftest.$ac_objext conftest$ac_exeext
25159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25160 (eval $ac_link) 2>conftest.er1
a848cd7e 25161 ac_status=$?
ac1cb8d3
VS
25162 grep -v '^ *+' conftest.er1 >conftest.err
25163 rm -f conftest.er1
25164 cat conftest.err >&5
a848cd7e
SC
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); } &&
3565d135
RR
25167 { ac_try='test -z "$ac_c_werror_flag"
25168 || test ! -s conftest.err'
ac1cb8d3
VS
25169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; } &&
25174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176 (eval $ac_try) 2>&5
25177 ac_status=$?
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); }; }; then
25180 ac_cv_lib_tiff_TIFFError=yes
25181else
25182 echo "$as_me: failed program was:" >&5
25183sed 's/^/| /' conftest.$ac_ext >&5
25184
25185ac_cv_lib_tiff_TIFFError=no
25186fi
ac1cb8d3
VS
25187rm -f conftest.err conftest.$ac_objext \
25188 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25189LIBS=$ac_check_lib_save_LIBS
25190fi
25191echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25192echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25193if test $ac_cv_lib_tiff_TIFFError = yes; then
25194 TIFF_LINK=" -ltiff"
25195fi
25196
25197
25198
25199fi
25200
25201
25202
25203 if test "x$TIFF_LINK" = "x" ; then
25204 if test "$wxUSE_LIBTIFF" = "sys" ; then
25205 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25206echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25207 { (exit 1); exit 1; }; }
25208 else
25209 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25210echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25211 wxUSE_LIBTIFF=builtin
25212 fi
25213 else
25214 wxUSE_LIBTIFF=sys
25215 fi
25216 fi
25217fi
25218
25219
47a7e797
MW
25220if test "$wxUSE_WCHAR_T" != "yes"; then
25221 if test "$wxUSE_EXPAT" != "no"; then
25222 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25223echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25224 wxUSE_EXPAT=no
25225 fi
25226 if test "$wxUSE_XML" != "no"; then
25227 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25228echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25229 wxUSE_XML=no
25230 fi
25231fi
25232
a848cd7e
SC
25233if test "$wxUSE_EXPAT" != "no"; then
25234 wxUSE_XML=yes
25235 cat >>confdefs.h <<\_ACEOF
25236#define wxUSE_EXPAT 1
25237_ACEOF
25238
25239 cat >>confdefs.h <<\_ACEOF
25240#define wxUSE_XML 1
25241_ACEOF
25242
25243
25244 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25245 if test "${ac_cv_header_expat_h+set}" = set; then
25246 echo "$as_me:$LINENO: checking for expat.h" >&5
25247echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25248if test "${ac_cv_header_expat_h+set}" = set; then
25249 echo $ECHO_N "(cached) $ECHO_C" >&6
25250fi
25251echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25252echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25253else
25254 # Is the header compilable?
25255echo "$as_me:$LINENO: checking expat.h usability" >&5
25256echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25257cat >conftest.$ac_ext <<_ACEOF
25258/* confdefs.h. */
25259_ACEOF
25260cat confdefs.h >>conftest.$ac_ext
25261cat >>conftest.$ac_ext <<_ACEOF
25262/* end confdefs.h. */
25263$ac_includes_default
25264#include <expat.h>
25265_ACEOF
25266rm -f conftest.$ac_objext
25267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25268 (eval $ac_compile) 2>conftest.er1
a848cd7e 25269 ac_status=$?
ac1cb8d3
VS
25270 grep -v '^ *+' conftest.er1 >conftest.err
25271 rm -f conftest.er1
25272 cat conftest.err >&5
a848cd7e
SC
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274 (exit $ac_status); } &&
3565d135
RR
25275 { ac_try='test -z "$ac_c_werror_flag"
25276 || test ! -s conftest.err'
ac1cb8d3
VS
25277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25278 (eval $ac_try) 2>&5
25279 ac_status=$?
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); }; } &&
25282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25284 (eval $ac_try) 2>&5
25285 ac_status=$?
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); }; }; then
25288 ac_header_compiler=yes
25289else
25290 echo "$as_me: failed program was:" >&5
25291sed 's/^/| /' conftest.$ac_ext >&5
25292
25293ac_header_compiler=no
25294fi
ac1cb8d3 25295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25297echo "${ECHO_T}$ac_header_compiler" >&6
25298
25299# Is the header present?
25300echo "$as_me:$LINENO: checking expat.h presence" >&5
25301echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25302cat >conftest.$ac_ext <<_ACEOF
25303/* confdefs.h. */
25304_ACEOF
25305cat confdefs.h >>conftest.$ac_ext
25306cat >>conftest.$ac_ext <<_ACEOF
25307/* end confdefs.h. */
25308#include <expat.h>
25309_ACEOF
25310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25312 ac_status=$?
25313 grep -v '^ *+' conftest.er1 >conftest.err
25314 rm -f conftest.er1
25315 cat conftest.err >&5
25316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); } >/dev/null; then
25318 if test -s conftest.err; then
25319 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25321 else
25322 ac_cpp_err=
25323 fi
25324else
25325 ac_cpp_err=yes
25326fi
25327if test -z "$ac_cpp_err"; then
25328 ac_header_preproc=yes
25329else
25330 echo "$as_me: failed program was:" >&5
25331sed 's/^/| /' conftest.$ac_ext >&5
25332
25333 ac_header_preproc=no
25334fi
25335rm -f conftest.err conftest.$ac_ext
25336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25337echo "${ECHO_T}$ac_header_preproc" >&6
25338
25339# So? What about this header?
ac1cb8d3
VS
25340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25341 yes:no: )
a848cd7e
SC
25342 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25343echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25344 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25345echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25346 ac_header_preproc=yes
a848cd7e 25347 ;;
ac1cb8d3 25348 no:yes:* )
a848cd7e
SC
25349 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25350echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25351 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25352echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25353 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25354echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25355 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25356echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25357 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25358echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25359 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25360echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25361 (
25362 cat <<\_ASBOX
ac1cb8d3
VS
25363## ----------------------------------------- ##
25364## Report this to wx-dev@lists.wxwidgets.org ##
25365## ----------------------------------------- ##
a848cd7e
SC
25366_ASBOX
25367 ) |
25368 sed "s/^/$as_me: WARNING: /" >&2
25369 ;;
25370esac
25371echo "$as_me:$LINENO: checking for expat.h" >&5
25372echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25373if test "${ac_cv_header_expat_h+set}" = set; then
25374 echo $ECHO_N "(cached) $ECHO_C" >&6
25375else
25376 ac_cv_header_expat_h=$ac_header_preproc
25377fi
25378echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25379echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25380
25381fi
25382if test $ac_cv_header_expat_h = yes; then
25383 found_expat_h=1
25384fi
25385
25386
25387 if test "x$found_expat_h" = "x1"; then
25388 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25389echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25390if test "${wx_cv_expat_is_not_broken+set}" = set; then
25391 echo $ECHO_N "(cached) $ECHO_C" >&6
25392else
25393
25394
25395
25396 ac_ext=cc
25397ac_cpp='$CXXCPP $CPPFLAGS'
25398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25401
25402 cat >conftest.$ac_ext <<_ACEOF
25403/* confdefs.h. */
25404_ACEOF
25405cat confdefs.h >>conftest.$ac_ext
25406cat >>conftest.$ac_ext <<_ACEOF
25407/* end confdefs.h. */
25408#include <expat.h>
25409int
25410main ()
25411{
25412
25413 ;
25414 return 0;
25415}
25416_ACEOF
25417rm -f conftest.$ac_objext
25418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25419 (eval $ac_compile) 2>conftest.er1
a848cd7e 25420 ac_status=$?
ac1cb8d3
VS
25421 grep -v '^ *+' conftest.er1 >conftest.err
25422 rm -f conftest.er1
25423 cat conftest.err >&5
a848cd7e
SC
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); } &&
3565d135
RR
25426 { ac_try='test -z "$ac_cxx_werror_flag"
25427 || test ! -s conftest.err'
ac1cb8d3
VS
25428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429 (eval $ac_try) 2>&5
25430 ac_status=$?
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); }; } &&
25433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25435 (eval $ac_try) 2>&5
25436 ac_status=$?
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); }; }; then
25439 wx_cv_expat_is_not_broken=yes
25440else
25441 echo "$as_me: failed program was:" >&5
25442sed 's/^/| /' conftest.$ac_ext >&5
25443
25444wx_cv_expat_is_not_broken=no
25445
25446fi
ac1cb8d3 25447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25448 ac_ext=c
25449ac_cpp='$CPP $CPPFLAGS'
25450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25452ac_compiler_gnu=$ac_cv_c_compiler_gnu
25453
25454
25455
25456fi
25457echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25458echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25459 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25460 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25461echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25462if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25464else
25465 ac_check_lib_save_LIBS=$LIBS
25466LIBS="-lexpat $LIBS"
25467cat >conftest.$ac_ext <<_ACEOF
25468/* confdefs.h. */
25469_ACEOF
25470cat confdefs.h >>conftest.$ac_ext
25471cat >>conftest.$ac_ext <<_ACEOF
25472/* end confdefs.h. */
25473
25474/* Override any gcc2 internal prototype to avoid an error. */
25475#ifdef __cplusplus
25476extern "C"
25477#endif
25478/* We use char because int might match the return type of a gcc2
25479 builtin and then its argument prototype would still apply. */
25480char XML_ParserCreate ();
25481int
25482main ()
25483{
25484XML_ParserCreate ();
25485 ;
25486 return 0;
25487}
25488_ACEOF
25489rm -f conftest.$ac_objext conftest$ac_exeext
25490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25491 (eval $ac_link) 2>conftest.er1
a848cd7e 25492 ac_status=$?
ac1cb8d3
VS
25493 grep -v '^ *+' conftest.er1 >conftest.err
25494 rm -f conftest.er1
25495 cat conftest.err >&5
a848cd7e
SC
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); } &&
3565d135
RR
25498 { ac_try='test -z "$ac_c_werror_flag"
25499 || test ! -s conftest.err'
ac1cb8d3
VS
25500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501 (eval $ac_try) 2>&5
25502 ac_status=$?
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; } &&
25505 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25507 (eval $ac_try) 2>&5
25508 ac_status=$?
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); }; }; then
25511 ac_cv_lib_expat_XML_ParserCreate=yes
25512else
25513 echo "$as_me: failed program was:" >&5
25514sed 's/^/| /' conftest.$ac_ext >&5
25515
25516ac_cv_lib_expat_XML_ParserCreate=no
25517fi
ac1cb8d3
VS
25518rm -f conftest.err conftest.$ac_objext \
25519 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25520LIBS=$ac_check_lib_save_LIBS
25521fi
25522echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25523echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25524if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25525 EXPAT_LINK=" -lexpat"
25526fi
25527
25528 fi
25529 fi
25530 if test "x$EXPAT_LINK" = "x" ; then
25531 if test "$wxUSE_EXPAT" = "sys" ; then
25532 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25533echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25534 { (exit 1); exit 1; }; }
25535 else
25536 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25537echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25538 wxUSE_EXPAT=builtin
25539 fi
25540 else
25541 wxUSE_EXPAT=sys
25542 fi
25543 fi
25544 if test "$wxUSE_EXPAT" = "builtin" ; then
25545
25546
25547subdirs="$subdirs src/expat"
25548
25549 fi
25550fi
25551
25552
25553
25554if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25555 if test "${ac_cv_header_mspack_h+set}" = set; then
25556 echo "$as_me:$LINENO: checking for mspack.h" >&5
25557echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25558if test "${ac_cv_header_mspack_h+set}" = set; then
25559 echo $ECHO_N "(cached) $ECHO_C" >&6
25560fi
25561echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25562echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25563else
25564 # Is the header compilable?
25565echo "$as_me:$LINENO: checking mspack.h usability" >&5
25566echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25567cat >conftest.$ac_ext <<_ACEOF
25568/* confdefs.h. */
25569_ACEOF
25570cat confdefs.h >>conftest.$ac_ext
25571cat >>conftest.$ac_ext <<_ACEOF
25572/* end confdefs.h. */
25573$ac_includes_default
25574#include <mspack.h>
25575_ACEOF
25576rm -f conftest.$ac_objext
25577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25578 (eval $ac_compile) 2>conftest.er1
a848cd7e 25579 ac_status=$?
ac1cb8d3
VS
25580 grep -v '^ *+' conftest.er1 >conftest.err
25581 rm -f conftest.er1
25582 cat conftest.err >&5
a848cd7e
SC
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); } &&
3565d135
RR
25585 { ac_try='test -z "$ac_c_werror_flag"
25586 || test ! -s conftest.err'
ac1cb8d3
VS
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; } &&
25592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25594 (eval $ac_try) 2>&5
25595 ac_status=$?
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); }; }; then
25598 ac_header_compiler=yes
25599else
25600 echo "$as_me: failed program was:" >&5
25601sed 's/^/| /' conftest.$ac_ext >&5
25602
25603ac_header_compiler=no
25604fi
ac1cb8d3 25605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25606echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25607echo "${ECHO_T}$ac_header_compiler" >&6
25608
25609# Is the header present?
25610echo "$as_me:$LINENO: checking mspack.h presence" >&5
25611echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25612cat >conftest.$ac_ext <<_ACEOF
25613/* confdefs.h. */
25614_ACEOF
25615cat confdefs.h >>conftest.$ac_ext
25616cat >>conftest.$ac_ext <<_ACEOF
25617/* end confdefs.h. */
25618#include <mspack.h>
25619_ACEOF
25620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25622 ac_status=$?
25623 grep -v '^ *+' conftest.er1 >conftest.err
25624 rm -f conftest.er1
25625 cat conftest.err >&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); } >/dev/null; then
25628 if test -s conftest.err; then
25629 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25631 else
25632 ac_cpp_err=
25633 fi
25634else
25635 ac_cpp_err=yes
25636fi
25637if test -z "$ac_cpp_err"; then
25638 ac_header_preproc=yes
25639else
25640 echo "$as_me: failed program was:" >&5
25641sed 's/^/| /' conftest.$ac_ext >&5
25642
25643 ac_header_preproc=no
25644fi
25645rm -f conftest.err conftest.$ac_ext
25646echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25647echo "${ECHO_T}$ac_header_preproc" >&6
25648
25649# So? What about this header?
ac1cb8d3
VS
25650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25651 yes:no: )
a848cd7e
SC
25652 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25653echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25654 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25655echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25656 ac_header_preproc=yes
a848cd7e 25657 ;;
ac1cb8d3 25658 no:yes:* )
a848cd7e
SC
25659 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25660echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25661 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25662echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25663 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25664echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25665 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25666echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25667 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25668echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25669 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25670echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25671 (
25672 cat <<\_ASBOX
ac1cb8d3
VS
25673## ----------------------------------------- ##
25674## Report this to wx-dev@lists.wxwidgets.org ##
25675## ----------------------------------------- ##
a848cd7e
SC
25676_ASBOX
25677 ) |
25678 sed "s/^/$as_me: WARNING: /" >&2
25679 ;;
25680esac
25681echo "$as_me:$LINENO: checking for mspack.h" >&5
25682echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25683if test "${ac_cv_header_mspack_h+set}" = set; then
25684 echo $ECHO_N "(cached) $ECHO_C" >&6
25685else
25686 ac_cv_header_mspack_h=$ac_header_preproc
25687fi
25688echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25689echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25690
25691fi
25692if test $ac_cv_header_mspack_h = yes; then
25693 found_mspack_h=1
25694fi
25695
25696
25697 if test "x$found_mspack_h" = "x1"; then
25698 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25699echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25700if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25701 echo $ECHO_N "(cached) $ECHO_C" >&6
25702else
25703 ac_check_lib_save_LIBS=$LIBS
25704LIBS="-lmspack $LIBS"
25705cat >conftest.$ac_ext <<_ACEOF
25706/* confdefs.h. */
25707_ACEOF
25708cat confdefs.h >>conftest.$ac_ext
25709cat >>conftest.$ac_ext <<_ACEOF
25710/* end confdefs.h. */
25711
25712/* Override any gcc2 internal prototype to avoid an error. */
25713#ifdef __cplusplus
25714extern "C"
25715#endif
25716/* We use char because int might match the return type of a gcc2
25717 builtin and then its argument prototype would still apply. */
25718char mspack_create_chm_decompressor ();
25719int
25720main ()
25721{
25722mspack_create_chm_decompressor ();
25723 ;
25724 return 0;
25725}
25726_ACEOF
25727rm -f conftest.$ac_objext conftest$ac_exeext
25728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25729 (eval $ac_link) 2>conftest.er1
a848cd7e 25730 ac_status=$?
ac1cb8d3
VS
25731 grep -v '^ *+' conftest.er1 >conftest.err
25732 rm -f conftest.er1
25733 cat conftest.err >&5
a848cd7e
SC
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } &&
3565d135
RR
25736 { ac_try='test -z "$ac_c_werror_flag"
25737 || test ! -s conftest.err'
ac1cb8d3
VS
25738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }; } &&
25743 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745 (eval $ac_try) 2>&5
25746 ac_status=$?
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; }; then
25749 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25750else
25751 echo "$as_me: failed program was:" >&5
25752sed 's/^/| /' conftest.$ac_ext >&5
25753
25754ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25755fi
ac1cb8d3
VS
25756rm -f conftest.err conftest.$ac_objext \
25757 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25758LIBS=$ac_check_lib_save_LIBS
25759fi
25760echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25761echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25762if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25763 MSPACK_LINK=" -lmspack"
25764fi
25765
25766 fi
25767 if test "x$MSPACK_LINK" = "x" ; then
25768 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25769 fi
25770fi
25771
25772if test "$wxUSE_LIBMSPACK" != "no"; then
25773 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25774#define wxUSE_LIBMSPACK 1
25775_ACEOF
25776
a848cd7e
SC
25777fi
25778
25779
25780
25781AFMINSTALL=
25782WIN32INSTALL=
25783
25784TOOLKIT=
25785TOOLKIT_INCLUDE=
25786WIDGET_SET=
25787
25788if test "$USE_WIN32" = 1 ; then
25789
25790for ac_header in w32api.h
25791do
25792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25793if eval "test \"\${$as_ac_Header+set}\" = set"; then
25794 echo "$as_me:$LINENO: checking for $ac_header" >&5
25795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25796if eval "test \"\${$as_ac_Header+set}\" = set"; then
25797 echo $ECHO_N "(cached) $ECHO_C" >&6
25798fi
25799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25801else
25802 # Is the header compilable?
25803echo "$as_me:$LINENO: checking $ac_header usability" >&5
25804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25805cat >conftest.$ac_ext <<_ACEOF
25806/* confdefs.h. */
25807_ACEOF
25808cat confdefs.h >>conftest.$ac_ext
25809cat >>conftest.$ac_ext <<_ACEOF
25810/* end confdefs.h. */
25811$ac_includes_default
25812#include <$ac_header>
25813_ACEOF
25814rm -f conftest.$ac_objext
25815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25816 (eval $ac_compile) 2>conftest.er1
a848cd7e 25817 ac_status=$?
ac1cb8d3
VS
25818 grep -v '^ *+' conftest.er1 >conftest.err
25819 rm -f conftest.er1
25820 cat conftest.err >&5
a848cd7e
SC
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); } &&
3565d135
RR
25823 { ac_try='test -z "$ac_c_werror_flag"
25824 || test ! -s conftest.err'
ac1cb8d3
VS
25825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826 (eval $ac_try) 2>&5
25827 ac_status=$?
25828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); }; } &&
25830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25833 ac_status=$?
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; }; then
25836 ac_header_compiler=yes
25837else
25838 echo "$as_me: failed program was:" >&5
25839sed 's/^/| /' conftest.$ac_ext >&5
25840
25841ac_header_compiler=no
25842fi
ac1cb8d3 25843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25845echo "${ECHO_T}$ac_header_compiler" >&6
25846
25847# Is the header present?
25848echo "$as_me:$LINENO: checking $ac_header presence" >&5
25849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25850cat >conftest.$ac_ext <<_ACEOF
25851/* confdefs.h. */
25852_ACEOF
25853cat confdefs.h >>conftest.$ac_ext
25854cat >>conftest.$ac_ext <<_ACEOF
25855/* end confdefs.h. */
25856#include <$ac_header>
25857_ACEOF
25858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25860 ac_status=$?
25861 grep -v '^ *+' conftest.er1 >conftest.err
25862 rm -f conftest.er1
25863 cat conftest.err >&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } >/dev/null; then
25866 if test -s conftest.err; then
25867 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25869 else
25870 ac_cpp_err=
25871 fi
25872else
25873 ac_cpp_err=yes
25874fi
25875if test -z "$ac_cpp_err"; then
25876 ac_header_preproc=yes
25877else
25878 echo "$as_me: failed program was:" >&5
25879sed 's/^/| /' conftest.$ac_ext >&5
25880
25881 ac_header_preproc=no
25882fi
25883rm -f conftest.err conftest.$ac_ext
25884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25885echo "${ECHO_T}$ac_header_preproc" >&6
25886
25887# So? What about this header?
ac1cb8d3
VS
25888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25889 yes:no: )
a848cd7e
SC
25890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25894 ac_header_preproc=yes
a848cd7e 25895 ;;
ac1cb8d3 25896 no:yes:* )
a848cd7e
SC
25897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25909 (
25910 cat <<\_ASBOX
ac1cb8d3
VS
25911## ----------------------------------------- ##
25912## Report this to wx-dev@lists.wxwidgets.org ##
25913## ----------------------------------------- ##
a848cd7e
SC
25914_ASBOX
25915 ) |
25916 sed "s/^/$as_me: WARNING: /" >&2
25917 ;;
25918esac
25919echo "$as_me:$LINENO: checking for $ac_header" >&5
25920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25921if eval "test \"\${$as_ac_Header+set}\" = set"; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25923else
ac1cb8d3 25924 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25925fi
25926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25928
25929fi
25930if test `eval echo '${'$as_ac_Header'}'` = yes; then
25931 cat >>confdefs.h <<_ACEOF
25932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25933_ACEOF
25934
25935fi
25936
25937done
25938
25939 if test "${ac_cv_header_windows_h+set}" = set; then
25940 echo "$as_me:$LINENO: checking for windows.h" >&5
25941echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25942if test "${ac_cv_header_windows_h+set}" = set; then
25943 echo $ECHO_N "(cached) $ECHO_C" >&6
25944fi
25945echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25946echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25947else
25948 # Is the header compilable?
25949echo "$as_me:$LINENO: checking windows.h usability" >&5
25950echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25951cat >conftest.$ac_ext <<_ACEOF
25952/* confdefs.h. */
25953_ACEOF
25954cat confdefs.h >>conftest.$ac_ext
25955cat >>conftest.$ac_ext <<_ACEOF
25956/* end confdefs.h. */
25957$ac_includes_default
25958#include <windows.h>
25959_ACEOF
25960rm -f conftest.$ac_objext
25961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25962 (eval $ac_compile) 2>conftest.er1
a848cd7e 25963 ac_status=$?
ac1cb8d3
VS
25964 grep -v '^ *+' conftest.er1 >conftest.err
25965 rm -f conftest.er1
25966 cat conftest.err >&5
a848cd7e
SC
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); } &&
3565d135
RR
25969 { ac_try='test -z "$ac_c_werror_flag"
25970 || test ! -s conftest.err'
ac1cb8d3
VS
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25973 ac_status=$?
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; } &&
25976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25979 ac_status=$?
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); }; }; then
25982 ac_header_compiler=yes
25983else
25984 echo "$as_me: failed program was:" >&5
25985sed 's/^/| /' conftest.$ac_ext >&5
25986
25987ac_header_compiler=no
25988fi
ac1cb8d3 25989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25991echo "${ECHO_T}$ac_header_compiler" >&6
25992
25993# Is the header present?
25994echo "$as_me:$LINENO: checking windows.h presence" >&5
25995echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25996cat >conftest.$ac_ext <<_ACEOF
25997/* confdefs.h. */
25998_ACEOF
25999cat confdefs.h >>conftest.$ac_ext
26000cat >>conftest.$ac_ext <<_ACEOF
26001/* end confdefs.h. */
26002#include <windows.h>
26003_ACEOF
26004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26006 ac_status=$?
26007 grep -v '^ *+' conftest.er1 >conftest.err
26008 rm -f conftest.er1
26009 cat conftest.err >&5
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } >/dev/null; then
26012 if test -s conftest.err; then
26013 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26015 else
26016 ac_cpp_err=
26017 fi
26018else
26019 ac_cpp_err=yes
26020fi
26021if test -z "$ac_cpp_err"; then
26022 ac_header_preproc=yes
26023else
26024 echo "$as_me: failed program was:" >&5
26025sed 's/^/| /' conftest.$ac_ext >&5
26026
26027 ac_header_preproc=no
26028fi
26029rm -f conftest.err conftest.$ac_ext
26030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26031echo "${ECHO_T}$ac_header_preproc" >&6
26032
26033# So? What about this header?
ac1cb8d3
VS
26034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26035 yes:no: )
a848cd7e
SC
26036 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26037echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26038 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26039echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26040 ac_header_preproc=yes
a848cd7e 26041 ;;
ac1cb8d3 26042 no:yes:* )
a848cd7e
SC
26043 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26044echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26045 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26046echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26047 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26048echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26050echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26051 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26052echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26053 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26054echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26055 (
26056 cat <<\_ASBOX
ac1cb8d3
VS
26057## ----------------------------------------- ##
26058## Report this to wx-dev@lists.wxwidgets.org ##
26059## ----------------------------------------- ##
a848cd7e
SC
26060_ASBOX
26061 ) |
26062 sed "s/^/$as_me: WARNING: /" >&2
26063 ;;
26064esac
26065echo "$as_me:$LINENO: checking for windows.h" >&5
26066echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26067if test "${ac_cv_header_windows_h+set}" = set; then
26068 echo $ECHO_N "(cached) $ECHO_C" >&6
26069else
26070 ac_cv_header_windows_h=$ac_header_preproc
26071fi
26072echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26073echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26074
26075fi
26076if test $ac_cv_header_windows_h = yes; then
26077 :
26078else
26079
26080 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26081echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26082 { (exit 1); exit 1; }; }
26083
26084fi
26085
26086
26087
26088 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26089
26090 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26091 LIBS="$LIBS -loleacc"
26092 fi
26093
26094 case "${host}" in
26095 *-*-cygwin* )
26096 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26097 esac
26098
26099 if test "$wxUSE_ODBC" = "sys" ; then
26100 wxUSE_ODBC = "yes"
26101 fi
26102 if test "$wxUSE_ODBC" = "yes" ; then
26103 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26104 cat >>confdefs.h <<\_ACEOF
26105#define wxUSE_ODBC 1
26106_ACEOF
26107
26108 fi
26109
370d2fd7 26110 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26111 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26112
004ee6da 26113 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26114
a848cd7e
SC
26115 WIN32INSTALL=win32install
26116fi
26117
26118if test "$wxUSE_GUI" = "yes"; then
26119 USE_GUI=1
26120
26121 GUI_TK_LIBRARY=
26122
26123 WXGTK12=
26124 WXGTK127=
26125 WXGTK20=
26126 WXGPE=
26127
207bc66c
RN
26128 if test "$wxUSE_COCOA" = 1 ; then
26129 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26130 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26131echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26132 wxUSE_PRINTING_ARCHITECTURE=no
26133 fi
26134 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26135 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26136echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26137 wxUSE_DRAG_AND_DROP=no
26138 fi
26139 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26140 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26141echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26142 wxUSE_DRAGIMAGE=no
26143 fi
26144 fi
26145
a848cd7e
SC
26146 if test "$wxUSE_MSW" = 1 ; then
26147 TOOLKIT=MSW
26148 GUIDIST=MSW_DIST
26149
ceec2216 26150 case "${host}" in
a848cd7e
SC
26151 *-*-mingw32* )
26152 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26153 esac
26154 fi
26155
26156 if test "$wxUSE_GTK" = 1; then
26157 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26158echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26159
26160 gtk_version_cached=1
26161 if test "${wx_cv_lib_gtk+set}" = set; then
26162 echo $ECHO_N "(cached) $ECHO_C" >&6
26163else
26164
26165 gtk_version_cached=0
26166 echo "$as_me:$LINENO: result: " >&5
26167echo "${ECHO_T}" >&6
26168
26169 GTK_MODULES=
26170 if test "$wxUSE_THREADS" = "yes"; then
26171 GTK_MODULES=gthread
26172 fi
26173
f597b41c 26174 wx_cv_lib_gtk=
5001df0d
MW
26175 if test "x$wxGTK_VERSION" != "x1"
26176 then
26177 case "${host}" in
26178 *-*-solaris2* )
26179 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26180 enable_gtktest=no
5001df0d
MW
26181 fi
26182 esac
26183
a848cd7e
SC
26184 # Check whether --enable-gtktest or --disable-gtktest was given.
26185if test "${enable_gtktest+set}" = set; then
26186 enableval="$enable_gtktest"
26187
26188else
26189 enable_gtktest=yes
26190fi;
26191
26192 pkg_config_args=gtk+-2.0
26193 for module in . $GTK_MODULES
26194 do
26195 case "$module" in
26196 gthread)
26197 pkg_config_args="$pkg_config_args gthread-2.0"
26198 ;;
26199 esac
26200 done
26201
26202 no_gtk=""
26203
26204 # Extract the first word of "pkg-config", so it can be a program name with args.
26205set dummy pkg-config; ac_word=$2
26206echo "$as_me:$LINENO: checking for $ac_word" >&5
26207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26208if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26209 echo $ECHO_N "(cached) $ECHO_C" >&6
26210else
26211 case $PKG_CONFIG in
26212 [\\/]* | ?:[\\/]*)
26213 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26214 ;;
26215 *)
26216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26217for as_dir in $PATH
26218do
26219 IFS=$as_save_IFS
26220 test -z "$as_dir" && as_dir=.
26221 for ac_exec_ext in '' $ac_executable_extensions; do
26222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26223 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26225 break 2
26226 fi
26227done
26228done
26229
26230 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26231 ;;
26232esac
26233fi
26234PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26235
26236if test -n "$PKG_CONFIG"; then
26237 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26238echo "${ECHO_T}$PKG_CONFIG" >&6
26239else
26240 echo "$as_me:$LINENO: result: no" >&5
26241echo "${ECHO_T}no" >&6
26242fi
26243
26244
26245 if test x$PKG_CONFIG != xno ; then
26246 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26247 :
26248 else
c2218763 26249 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26250 no_gtk=yes
26251 PKG_CONFIG=no
26252 fi
26253 else
26254 no_gtk=yes
26255 fi
26256
26257 min_gtk_version=2.0.0
26258 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26259echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26260
26261 if test x$PKG_CONFIG != xno ; then
26262 ## don't try to run the test against uninstalled libtool libs
26263 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26264 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26265 enable_gtktest=no
26266 fi
26267
26268 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26269 :
26270 else
26271 no_gtk=yes
26272 fi
26273 fi
26274
26275 if test x"$no_gtk" = x ; then
26276 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26277 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26278 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26279 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26280 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26281 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26282 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26283 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26284 if test "x$enable_gtktest" = "xyes" ; then
26285 ac_save_CFLAGS="$CFLAGS"
26286 ac_save_LIBS="$LIBS"
26287 CFLAGS="$CFLAGS $GTK_CFLAGS"
26288 LIBS="$GTK_LIBS $LIBS"
26289 rm -f conf.gtktest
26290 if test "$cross_compiling" = yes; then
26291 echo $ac_n "cross compiling; assumed OK... $ac_c"
26292else
26293 cat >conftest.$ac_ext <<_ACEOF
26294/* confdefs.h. */
26295_ACEOF
26296cat confdefs.h >>conftest.$ac_ext
26297cat >>conftest.$ac_ext <<_ACEOF
26298/* end confdefs.h. */
26299
26300#include <gtk/gtk.h>
26301#include <stdio.h>
26302#include <stdlib.h>
26303
26304int
26305main ()
26306{
26307 int major, minor, micro;
26308 char *tmp_version;
26309
26310 system ("touch conf.gtktest");
26311
26312 /* HP/UX 9 (%@#!) writes to sscanf strings */
26313 tmp_version = g_strdup("$min_gtk_version");
26314 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26315 printf("%s, bad version string\n", "$min_gtk_version");
26316 exit(1);
26317 }
26318
26319 if ((gtk_major_version != $gtk_config_major_version) ||
26320 (gtk_minor_version != $gtk_config_minor_version) ||
26321 (gtk_micro_version != $gtk_config_micro_version))
26322 {
26323 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26324 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26325 gtk_major_version, gtk_minor_version, gtk_micro_version);
26326 printf ("*** was found! If pkg-config was correct, then it is best\n");
26327 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26328 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26329 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26330 printf("*** required on your system.\n");
26331 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26332 printf("*** to point to the correct configuration files\n");
26333 }
26334 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26335 (gtk_minor_version != GTK_MINOR_VERSION) ||
26336 (gtk_micro_version != GTK_MICRO_VERSION))
26337 {
26338 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26339 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26340 printf("*** library (version %d.%d.%d)\n",
26341 gtk_major_version, gtk_minor_version, gtk_micro_version);
26342 }
26343 else
26344 {
26345 if ((gtk_major_version > major) ||
26346 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26347 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26348 {
26349 return 0;
26350 }
26351 else
26352 {
26353 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26354 gtk_major_version, gtk_minor_version, gtk_micro_version);
26355 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26356 major, minor, micro);
26357 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26358 printf("***\n");
26359 printf("*** If you have already installed a sufficiently new version, this error\n");
26360 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26361 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26362 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26363 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26364 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26365 printf("*** so that the correct libraries are found at run-time))\n");
26366 }
26367 }
26368 return 1;
26369}
26370
26371_ACEOF
26372rm -f conftest$ac_exeext
26373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26374 (eval $ac_link) 2>&5
26375 ac_status=$?
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26379 (eval $ac_try) 2>&5
26380 ac_status=$?
26381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); }; }; then
26383 :
26384else
26385 echo "$as_me: program exited with status $ac_status" >&5
26386echo "$as_me: failed program was:" >&5
26387sed 's/^/| /' conftest.$ac_ext >&5
26388
26389( exit $ac_status )
26390no_gtk=yes
26391fi
ac1cb8d3 26392rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26393fi
26394 CFLAGS="$ac_save_CFLAGS"
26395 LIBS="$ac_save_LIBS"
26396 fi
26397 fi
26398 if test "x$no_gtk" = x ; then
26399 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26400echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26401 wx_cv_lib_gtk=2.0
26402 else
26403 echo "$as_me:$LINENO: result: no" >&5
26404echo "${ECHO_T}no" >&6
26405 if test "$PKG_CONFIG" = "no" ; then
26406 echo "*** A new enough version of pkg-config was not found."
26407 echo "*** See http://pkgconfig.sourceforge.net"
26408 else
26409 if test -f conf.gtktest ; then
26410 :
26411 else
26412 echo "*** Could not run GTK+ test program, checking why..."
26413 ac_save_CFLAGS="$CFLAGS"
26414 ac_save_LIBS="$LIBS"
26415 CFLAGS="$CFLAGS $GTK_CFLAGS"
26416 LIBS="$LIBS $GTK_LIBS"
26417 cat >conftest.$ac_ext <<_ACEOF
26418/* confdefs.h. */
26419_ACEOF
26420cat confdefs.h >>conftest.$ac_ext
26421cat >>conftest.$ac_ext <<_ACEOF
26422/* end confdefs.h. */
26423
26424#include <gtk/gtk.h>
26425#include <stdio.h>
26426
26427int
26428main ()
26429{
26430 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26431 ;
26432 return 0;
26433}
26434_ACEOF
26435rm -f conftest.$ac_objext conftest$ac_exeext
26436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26437 (eval $ac_link) 2>conftest.er1
a848cd7e 26438 ac_status=$?
ac1cb8d3
VS
26439 grep -v '^ *+' conftest.er1 >conftest.err
26440 rm -f conftest.er1
26441 cat conftest.err >&5
a848cd7e
SC
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); } &&
3565d135
RR
26444 { ac_try='test -z "$ac_c_werror_flag"
26445 || test ! -s conftest.err'
ac1cb8d3
VS
26446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447 (eval $ac_try) 2>&5
26448 ac_status=$?
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); }; } &&
26451 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453 (eval $ac_try) 2>&5
26454 ac_status=$?
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; }; then
26457 echo "*** The test program compiled, but did not run. This usually means"
26458 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26459 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26460 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26461 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26462 echo "*** is required on your system"
26463 echo "***"
26464 echo "*** If you have an old version installed, it is best to remove it, although"
26465 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26466else
26467 echo "$as_me: failed program was:" >&5
26468sed 's/^/| /' conftest.$ac_ext >&5
26469
26470 echo "*** The test program failed to compile or link. See the file config.log for the"
26471 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26472fi
ac1cb8d3
VS
26473rm -f conftest.err conftest.$ac_objext \
26474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26475 CFLAGS="$ac_save_CFLAGS"
26476 LIBS="$ac_save_LIBS"
26477 fi
26478 fi
26479 GTK_CFLAGS=""
26480 GTK_LIBS=""
26481 :
26482 fi
26483
26484
26485 rm -f conf.gtktest
26486
5001df0d
MW
26487
26488 case "${host}" in
26489 *-*-solaris2* )
26490 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26491 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26492 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26493 fi
26494 if test "$wxUSE_SHARED" != "yes"; then
26495 GTK_LIBS="$GTK_LIBS -lX11"
26496 fi
26497 esac
f597b41c
MW
26498 fi
26499
f34ca037
MW
26500 if test -z "$wx_cv_lib_gtk"; then
26501 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26502
26503# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26504if test "${with_gtk_prefix+set}" = set; then
26505 withval="$with_gtk_prefix"
26506 gtk_config_prefix="$withval"
26507else
26508 gtk_config_prefix=""
26509fi;
26510
26511# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26512if test "${with_gtk_exec_prefix+set}" = set; then
26513 withval="$with_gtk_exec_prefix"
26514 gtk_config_exec_prefix="$withval"
26515else
26516 gtk_config_exec_prefix=""
26517fi;
26518# Check whether --enable-gtktest or --disable-gtktest was given.
26519if test "${enable_gtktest+set}" = set; then
26520 enableval="$enable_gtktest"
26521
26522else
26523 enable_gtktest=yes
26524fi;
26525
26526 for module in . $GTK_MODULES
26527 do
26528 case "$module" in
26529 gthread)
26530 gtk_config_args="$gtk_config_args gthread"
26531 ;;
26532 esac
26533 done
26534
26535 if test x$gtk_config_exec_prefix != x ; then
26536 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26537 if test x${GTK_CONFIG+set} != xset ; then
26538 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26539 fi
26540 fi
26541 if test x$gtk_config_prefix != x ; then
26542 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26543 if test x${GTK_CONFIG+set} != xset ; then
26544 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26545 fi
26546 fi
26547
26548 # Extract the first word of "gtk-config", so it can be a program name with args.
26549set dummy gtk-config; ac_word=$2
26550echo "$as_me:$LINENO: checking for $ac_word" >&5
26551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26552if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26553 echo $ECHO_N "(cached) $ECHO_C" >&6
26554else
26555 case $GTK_CONFIG in
26556 [\\/]* | ?:[\\/]*)
26557 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26558 ;;
26559 *)
26560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26561for as_dir in $PATH
26562do
26563 IFS=$as_save_IFS
26564 test -z "$as_dir" && as_dir=.
26565 for ac_exec_ext in '' $ac_executable_extensions; do
26566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26567 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26569 break 2
26570 fi
26571done
26572done
26573
26574 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26575 ;;
26576esac
26577fi
26578GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26579
26580if test -n "$GTK_CONFIG"; then
26581 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26582echo "${ECHO_T}$GTK_CONFIG" >&6
26583else
26584 echo "$as_me:$LINENO: result: no" >&5
26585echo "${ECHO_T}no" >&6
26586fi
26587
26588 min_gtk_version=1.2.7
26589 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26590echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26591 no_gtk=""
26592 if test "$GTK_CONFIG" = "no" ; then
26593 no_gtk=yes
26594 else
26595 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26596 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26597 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26598 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26599 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26600 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26601 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26602 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26603 if test "x$enable_gtktest" = "xyes" ; then
26604 ac_save_CFLAGS="$CFLAGS"
26605 ac_save_LIBS="$LIBS"
26606 CFLAGS="$CFLAGS $GTK_CFLAGS"
26607 LIBS="$GTK_LIBS $LIBS"
26608 rm -f conf.gtktest
26609 if test "$cross_compiling" = yes; then
26610 echo $ac_n "cross compiling; assumed OK... $ac_c"
26611else
26612 cat >conftest.$ac_ext <<_ACEOF
26613/* confdefs.h. */
26614_ACEOF
26615cat confdefs.h >>conftest.$ac_ext
26616cat >>conftest.$ac_ext <<_ACEOF
26617/* end confdefs.h. */
26618
26619#include <gtk/gtk.h>
26620#include <stdio.h>
26621#include <stdlib.h>
26622
26623int
26624main ()
26625{
26626 int major, minor, micro;
26627 char *tmp_version;
26628
26629 system ("touch conf.gtktest");
26630
26631 /* HP/UX 9 (%@#!) writes to sscanf strings */
26632 tmp_version = g_strdup("$min_gtk_version");
26633 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26634 printf("%s, bad version string\n", "$min_gtk_version");
26635 exit(1);
26636 }
26637
26638 if ((gtk_major_version != $gtk_config_major_version) ||
26639 (gtk_minor_version != $gtk_config_minor_version) ||
26640 (gtk_micro_version != $gtk_config_micro_version))
26641 {
26642 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26643 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26644 gtk_major_version, gtk_minor_version, gtk_micro_version);
26645 printf ("*** was found! If gtk-config was correct, then it is best\n");
26646 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26647 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26648 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26649 printf("*** required on your system.\n");
26650 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26651 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26652 printf("*** before re-running configure\n");
26653 }
26654#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26655 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26656 (gtk_minor_version != GTK_MINOR_VERSION) ||
26657 (gtk_micro_version != GTK_MICRO_VERSION))
26658 {
26659 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26660 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26661 printf("*** library (version %d.%d.%d)\n",
26662 gtk_major_version, gtk_minor_version, gtk_micro_version);
26663 }
26664#endif /* defined (GTK_MAJOR_VERSION) ... */
26665 else
26666 {
26667 if ((gtk_major_version > major) ||
26668 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26669 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26670 {
26671 return 0;
26672 }
26673 else
26674 {
26675 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26676 gtk_major_version, gtk_minor_version, gtk_micro_version);
26677 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26678 major, minor, micro);
26679 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26680 printf("***\n");
26681 printf("*** If you have already installed a sufficiently new version, this error\n");
26682 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26683 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26684 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26685 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26686 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26687 printf("*** so that the correct libraries are found at run-time))\n");
26688 }
26689 }
26690 return 1;
26691}
26692
26693_ACEOF
26694rm -f conftest$ac_exeext
26695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26696 (eval $ac_link) 2>&5
26697 ac_status=$?
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26701 (eval $ac_try) 2>&5
26702 ac_status=$?
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); }; }; then
26705 :
26706else
26707 echo "$as_me: program exited with status $ac_status" >&5
26708echo "$as_me: failed program was:" >&5
26709sed 's/^/| /' conftest.$ac_ext >&5
26710
26711( exit $ac_status )
26712no_gtk=yes
26713fi
ac1cb8d3 26714rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26715fi
26716 CFLAGS="$ac_save_CFLAGS"
26717 LIBS="$ac_save_LIBS"
26718 fi
26719 fi
26720 if test "x$no_gtk" = x ; then
26721 echo "$as_me:$LINENO: result: yes" >&5
26722echo "${ECHO_T}yes" >&6
26723 wx_cv_lib_gtk=1.2.7
26724 else
26725 echo "$as_me:$LINENO: result: no" >&5
26726echo "${ECHO_T}no" >&6
26727 if test "$GTK_CONFIG" = "no" ; then
26728 echo "*** The gtk-config script installed by GTK could not be found"
26729 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26730 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26731 echo "*** full path to gtk-config."
26732 else
26733 if test -f conf.gtktest ; then
26734 :
26735 else
26736 echo "*** Could not run GTK test program, checking why..."
26737 CFLAGS="$CFLAGS $GTK_CFLAGS"
26738 LIBS="$LIBS $GTK_LIBS"
26739 cat >conftest.$ac_ext <<_ACEOF
26740/* confdefs.h. */
26741_ACEOF
26742cat confdefs.h >>conftest.$ac_ext
26743cat >>conftest.$ac_ext <<_ACEOF
26744/* end confdefs.h. */
26745
26746#include <gtk/gtk.h>
26747#include <stdio.h>
26748
26749int
26750main ()
26751{
26752 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26753 ;
26754 return 0;
26755}
26756_ACEOF
26757rm -f conftest.$ac_objext conftest$ac_exeext
26758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26759 (eval $ac_link) 2>conftest.er1
a848cd7e 26760 ac_status=$?
ac1cb8d3
VS
26761 grep -v '^ *+' conftest.er1 >conftest.err
26762 rm -f conftest.er1
26763 cat conftest.err >&5
a848cd7e
SC
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); } &&
3565d135
RR
26766 { ac_try='test -z "$ac_c_werror_flag"
26767 || test ! -s conftest.err'
ac1cb8d3
VS
26768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26769 (eval $ac_try) 2>&5
26770 ac_status=$?
26771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772 (exit $ac_status); }; } &&
26773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26775 (eval $ac_try) 2>&5
26776 ac_status=$?
26777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778 (exit $ac_status); }; }; then
26779 echo "*** The test program compiled, but did not run. This usually means"
26780 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26781 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26782 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26783 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26784 echo "*** is required on your system"
26785 echo "***"
26786 echo "*** If you have an old version installed, it is best to remove it, although"
26787 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26788 echo "***"
26789 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26790 echo "*** came with the system with the command"
26791 echo "***"
26792 echo "*** rpm --erase --nodeps gtk gtk-devel"
26793else
26794 echo "$as_me: failed program was:" >&5
26795sed 's/^/| /' conftest.$ac_ext >&5
26796
26797 echo "*** The test program failed to compile or link. See the file config.log for the"
26798 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26799 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26800 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26801fi
ac1cb8d3
VS
26802rm -f conftest.err conftest.$ac_objext \
26803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26804 CFLAGS="$ac_save_CFLAGS"
26805 LIBS="$ac_save_LIBS"
26806 fi
26807 fi
26808 GTK_CFLAGS=""
26809 GTK_LIBS=""
26810 :
26811 fi
26812
26813
26814 rm -f conf.gtktest
26815
26816
f34ca037 26817 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26818
26819# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26820if test "${with_gtk_prefix+set}" = set; then
26821 withval="$with_gtk_prefix"
26822 gtk_config_prefix="$withval"
26823else
26824 gtk_config_prefix=""
26825fi;
26826
26827# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26828if test "${with_gtk_exec_prefix+set}" = set; then
26829 withval="$with_gtk_exec_prefix"
26830 gtk_config_exec_prefix="$withval"
26831else
26832 gtk_config_exec_prefix=""
26833fi;
26834# Check whether --enable-gtktest or --disable-gtktest was given.
26835if test "${enable_gtktest+set}" = set; then
26836 enableval="$enable_gtktest"
26837
26838else
26839 enable_gtktest=yes
26840fi;
26841
26842 for module in . $GTK_MODULES
26843 do
26844 case "$module" in
26845 gthread)
26846 gtk_config_args="$gtk_config_args gthread"
26847 ;;
26848 esac
26849 done
26850
26851 if test x$gtk_config_exec_prefix != x ; then
26852 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26853 if test x${GTK_CONFIG+set} != xset ; then
26854 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26855 fi
26856 fi
26857 if test x$gtk_config_prefix != x ; then
26858 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26859 if test x${GTK_CONFIG+set} != xset ; then
26860 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26861 fi
26862 fi
26863
26864 # Extract the first word of "gtk-config", so it can be a program name with args.
26865set dummy gtk-config; ac_word=$2
26866echo "$as_me:$LINENO: checking for $ac_word" >&5
26867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26868if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26869 echo $ECHO_N "(cached) $ECHO_C" >&6
26870else
26871 case $GTK_CONFIG in
26872 [\\/]* | ?:[\\/]*)
26873 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26874 ;;
26875 *)
26876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26877for as_dir in $PATH
26878do
26879 IFS=$as_save_IFS
26880 test -z "$as_dir" && as_dir=.
26881 for ac_exec_ext in '' $ac_executable_extensions; do
26882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26883 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26885 break 2
26886 fi
26887done
26888done
26889
26890 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26891 ;;
26892esac
26893fi
26894GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26895
26896if test -n "$GTK_CONFIG"; then
26897 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26898echo "${ECHO_T}$GTK_CONFIG" >&6
26899else
26900 echo "$as_me:$LINENO: result: no" >&5
26901echo "${ECHO_T}no" >&6
26902fi
26903
26904 min_gtk_version=1.2.3
26905 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26906echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26907 no_gtk=""
26908 if test "$GTK_CONFIG" = "no" ; then
26909 no_gtk=yes
26910 else
26911 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26912 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26913 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26914 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26915 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26916 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26917 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26918 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26919 if test "x$enable_gtktest" = "xyes" ; then
26920 ac_save_CFLAGS="$CFLAGS"
26921 ac_save_LIBS="$LIBS"
26922 CFLAGS="$CFLAGS $GTK_CFLAGS"
26923 LIBS="$GTK_LIBS $LIBS"
26924 rm -f conf.gtktest
26925 if test "$cross_compiling" = yes; then
26926 echo $ac_n "cross compiling; assumed OK... $ac_c"
26927else
26928 cat >conftest.$ac_ext <<_ACEOF
26929/* confdefs.h. */
26930_ACEOF
26931cat confdefs.h >>conftest.$ac_ext
26932cat >>conftest.$ac_ext <<_ACEOF
26933/* end confdefs.h. */
26934
26935#include <gtk/gtk.h>
26936#include <stdio.h>
26937#include <stdlib.h>
26938
26939int
26940main ()
26941{
26942 int major, minor, micro;
26943 char *tmp_version;
26944
26945 system ("touch conf.gtktest");
26946
26947 /* HP/UX 9 (%@#!) writes to sscanf strings */
26948 tmp_version = g_strdup("$min_gtk_version");
26949 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26950 printf("%s, bad version string\n", "$min_gtk_version");
26951 exit(1);
26952 }
26953
26954 if ((gtk_major_version != $gtk_config_major_version) ||
26955 (gtk_minor_version != $gtk_config_minor_version) ||
26956 (gtk_micro_version != $gtk_config_micro_version))
26957 {
26958 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26959 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26960 gtk_major_version, gtk_minor_version, gtk_micro_version);
26961 printf ("*** was found! If gtk-config was correct, then it is best\n");
26962 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26963 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26964 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26965 printf("*** required on your system.\n");
26966 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26967 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26968 printf("*** before re-running configure\n");
26969 }
26970#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26971 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26972 (gtk_minor_version != GTK_MINOR_VERSION) ||
26973 (gtk_micro_version != GTK_MICRO_VERSION))
26974 {
26975 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26976 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26977 printf("*** library (version %d.%d.%d)\n",
26978 gtk_major_version, gtk_minor_version, gtk_micro_version);
26979 }
26980#endif /* defined (GTK_MAJOR_VERSION) ... */
26981 else
26982 {
26983 if ((gtk_major_version > major) ||
26984 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26985 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26986 {
26987 return 0;
26988 }
26989 else
26990 {
26991 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26992 gtk_major_version, gtk_minor_version, gtk_micro_version);
26993 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26994 major, minor, micro);
26995 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26996 printf("***\n");
26997 printf("*** If you have already installed a sufficiently new version, this error\n");
26998 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26999 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27000 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27001 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27002 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27003 printf("*** so that the correct libraries are found at run-time))\n");
27004 }
27005 }
27006 return 1;
27007}
27008
27009_ACEOF
27010rm -f conftest$ac_exeext
27011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27012 (eval $ac_link) 2>&5
27013 ac_status=$?
27014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017 (eval $ac_try) 2>&5
27018 ac_status=$?
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; }; then
27021 :
27022else
27023 echo "$as_me: program exited with status $ac_status" >&5
27024echo "$as_me: failed program was:" >&5
27025sed 's/^/| /' conftest.$ac_ext >&5
27026
27027( exit $ac_status )
27028no_gtk=yes
27029fi
ac1cb8d3 27030rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27031fi
27032 CFLAGS="$ac_save_CFLAGS"
27033 LIBS="$ac_save_LIBS"
27034 fi
27035 fi
27036 if test "x$no_gtk" = x ; then
27037 echo "$as_me:$LINENO: result: yes" >&5
27038echo "${ECHO_T}yes" >&6
27039 wx_cv_lib_gtk=1.2.3
27040 else
27041 echo "$as_me:$LINENO: result: no" >&5
27042echo "${ECHO_T}no" >&6
27043 if test "$GTK_CONFIG" = "no" ; then
27044 echo "*** The gtk-config script installed by GTK could not be found"
27045 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27046 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27047 echo "*** full path to gtk-config."
27048 else
27049 if test -f conf.gtktest ; then
27050 :
27051 else
27052 echo "*** Could not run GTK test program, checking why..."
27053 CFLAGS="$CFLAGS $GTK_CFLAGS"
27054 LIBS="$LIBS $GTK_LIBS"
27055 cat >conftest.$ac_ext <<_ACEOF
27056/* confdefs.h. */
27057_ACEOF
27058cat confdefs.h >>conftest.$ac_ext
27059cat >>conftest.$ac_ext <<_ACEOF
27060/* end confdefs.h. */
27061
27062#include <gtk/gtk.h>
27063#include <stdio.h>
27064
27065int
27066main ()
27067{
27068 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27069 ;
27070 return 0;
27071}
27072_ACEOF
27073rm -f conftest.$ac_objext conftest$ac_exeext
27074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27075 (eval $ac_link) 2>conftest.er1
a848cd7e 27076 ac_status=$?
ac1cb8d3
VS
27077 grep -v '^ *+' conftest.er1 >conftest.err
27078 rm -f conftest.er1
27079 cat conftest.err >&5
a848cd7e
SC
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); } &&
3565d135
RR
27082 { ac_try='test -z "$ac_c_werror_flag"
27083 || test ! -s conftest.err'
ac1cb8d3
VS
27084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085 (eval $ac_try) 2>&5
27086 ac_status=$?
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; } &&
27089 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27091 (eval $ac_try) 2>&5
27092 ac_status=$?
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); }; }; then
27095 echo "*** The test program compiled, but did not run. This usually means"
27096 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27097 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27098 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27099 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27100 echo "*** is required on your system"
27101 echo "***"
27102 echo "*** If you have an old version installed, it is best to remove it, although"
27103 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27104 echo "***"
27105 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27106 echo "*** came with the system with the command"
27107 echo "***"
27108 echo "*** rpm --erase --nodeps gtk gtk-devel"
27109else
27110 echo "$as_me: failed program was:" >&5
27111sed 's/^/| /' conftest.$ac_ext >&5
27112
27113 echo "*** The test program failed to compile or link. See the file config.log for the"
27114 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27115 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27116 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27117fi
ac1cb8d3
VS
27118rm -f conftest.err conftest.$ac_objext \
27119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27120 CFLAGS="$ac_save_CFLAGS"
27121 LIBS="$ac_save_LIBS"
27122 fi
27123 fi
27124 GTK_CFLAGS=""
27125 GTK_LIBS=""
27126 :
27127 fi
27128
27129
27130 rm -f conf.gtktest
27131
f34ca037 27132 fi
a848cd7e
SC
27133 fi
27134 fi
27135
27136 if test -z "$wx_cv_lib_gtk"; then
27137 wx_cv_lib_gtk=none
27138 else
27139 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27140 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27141 fi
27142
27143
27144fi
27145
27146
27147 if test "$gtk_version_cached" = 1; then
27148 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27149echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27150 fi
27151
27152 case "$wx_cv_lib_gtk" in
27153 2.0) WXGTK20=1
27154 TOOLKIT_VERSION=2
27155 ;;
27156 1.2.7) WXGTK127=1
27157 WXGTK12=1
27158 ;;
27159 1.2.3) WXGTK12=1
27160 ;;
27161 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27162The development files for GTK+ were not found. For GTK+ 2, please
27163ensure that pkg-config is in the path and that gtk+-2.0.pc is
27164installed. For GTK+ 1.2 please check that gtk-config is in the path,
27165and that the version is 1.2.3 or above. Also check that the
27166libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27167--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27168 " >&5
27169echo "$as_me: error:
f597b41c
MW
27170The development files for GTK+ were not found. For GTK+ 2, please
27171ensure that pkg-config is in the path and that gtk+-2.0.pc is
27172installed. For GTK+ 1.2 please check that gtk-config is in the path,
27173and that the version is 1.2.3 or above. Also check that the
27174libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27175--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27176 " >&2;}
27177 { (exit 1); exit 1; }; }
27178 ;;
27179 esac
27180
27181 if test "$WXGTK20" = 1; then
304205f1
VS
27182 save_CFLAGS="$CFLAGS"
27183 save_LIBS="$LIBS"
c92ad099 27184 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27185 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27186
d12aef51
VZ
27187 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27188echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27189 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27190/* confdefs.h. */
27191_ACEOF
27192cat confdefs.h >>conftest.$ac_ext
27193cat >>conftest.$ac_ext <<_ACEOF
27194/* end confdefs.h. */
304205f1 27195
d12aef51 27196 #include <gtk/gtk.h>
304205f1 27197
d12aef51
VZ
27198int
27199main ()
27200{
304205f1 27201
d12aef51 27202 void *f = gtk_icon_size_lookup;
abc736fd
MW
27203
27204 ;
27205 return 0;
27206}
27207_ACEOF
27208rm -f conftest.$ac_objext
27209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27210 (eval $ac_compile) 2>conftest.er1
27211 ac_status=$?
27212 grep -v '^ *+' conftest.er1 >conftest.err
27213 rm -f conftest.er1
27214 cat conftest.err >&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); } &&
3565d135
RR
27217 { ac_try='test -z "$ac_c_werror_flag"
27218 || test ! -s conftest.err'
abc736fd
MW
27219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27220 (eval $ac_try) 2>&5
27221 ac_status=$?
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); }; } &&
27224 { ac_try='test -s conftest.$ac_objext'
27225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27226 (eval $ac_try) 2>&5
27227 ac_status=$?
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); }; }; then
27230
27231 echo "$as_me:$LINENO: result: no" >&5
27232echo "${ECHO_T}no" >&6
27233
27234else
27235 echo "$as_me: failed program was:" >&5
27236sed 's/^/| /' conftest.$ac_ext >&5
27237
27238
27239 cat >>confdefs.h <<\_ACEOF
27240#define NEED_GTK_ICON_SIZE_LOOKUP 1
27241_ACEOF
27242
27243 echo "$as_me:$LINENO: result: yes" >&5
27244echo "${ECHO_T}yes" >&6
27245
27246fi
27247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27248
9755e73b
VS
27249 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27250echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27251 cat >conftest.$ac_ext <<_ACEOF
27252/* confdefs.h. */
27253_ACEOF
27254cat confdefs.h >>conftest.$ac_ext
27255cat >>conftest.$ac_ext <<_ACEOF
27256/* end confdefs.h. */
27257
27258 #include <gtk/gtk.h>
27259
27260int
27261main ()
27262{
27263
27264 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27265 Not GTK+ 2.4
9755e73b
VS
27266 #endif
27267
27268 ;
27269 return 0;
27270}
27271_ACEOF
27272rm -f conftest.$ac_objext
27273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27274 (eval $ac_compile) 2>conftest.er1
27275 ac_status=$?
27276 grep -v '^ *+' conftest.er1 >conftest.err
27277 rm -f conftest.er1
27278 cat conftest.err >&5
27279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); } &&
3565d135
RR
27281 { ac_try='test -z "$ac_c_werror_flag"
27282 || test ! -s conftest.err'
9755e73b
VS
27283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27284 (eval $ac_try) 2>&5
27285 ac_status=$?
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); }; } &&
27288 { ac_try='test -s conftest.$ac_objext'
27289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27290 (eval $ac_try) 2>&5
27291 ac_status=$?
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); }; }; then
27294
27295 cat >>confdefs.h <<\_ACEOF
27296#define __WXGTK24__ 1
27297_ACEOF
27298
27299 echo "$as_me:$LINENO: result: yes" >&5
27300echo "${ECHO_T}yes" >&6
27301
27302else
27303 echo "$as_me: failed program was:" >&5
27304sed 's/^/| /' conftest.$ac_ext >&5
27305
27306
27307 echo "$as_me:$LINENO: result: no" >&5
27308echo "${ECHO_T}no" >&6
27309
27310fi
27311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27312
304205f1
VS
27313 CFLAGS="$save_CFLAGS"
27314 LIBS="$save_LIBS"
a848cd7e
SC
27315 else
27316 if test "$wxUSE_UNICODE" = "yes"; then
27317 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27318echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27319 wxUSE_UNICODE=no
27320 fi
27321 fi
27322
27323 if test "$USE_DARWIN" != 1; then
27324
27325for ac_func in poll
27326do
27327as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27328echo "$as_me:$LINENO: checking for $ac_func" >&5
27329echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27330if eval "test \"\${$as_ac_var+set}\" = set"; then
27331 echo $ECHO_N "(cached) $ECHO_C" >&6
27332else
27333 cat >conftest.$ac_ext <<_ACEOF
27334/* confdefs.h. */
27335_ACEOF
27336cat confdefs.h >>conftest.$ac_ext
27337cat >>conftest.$ac_ext <<_ACEOF
27338/* end confdefs.h. */
ac1cb8d3
VS
27339/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27341#define $ac_func innocuous_$ac_func
27342
a848cd7e
SC
27343/* System header to define __stub macros and hopefully few prototypes,
27344 which can conflict with char $ac_func (); below.
27345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27346 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27347
a848cd7e
SC
27348#ifdef __STDC__
27349# include <limits.h>
27350#else
27351# include <assert.h>
27352#endif
ac1cb8d3
VS
27353
27354#undef $ac_func
27355
a848cd7e
SC
27356/* Override any gcc2 internal prototype to avoid an error. */
27357#ifdef __cplusplus
27358extern "C"
27359{
27360#endif
27361/* We use char because int might match the return type of a gcc2
27362 builtin and then its argument prototype would still apply. */
27363char $ac_func ();
27364/* The GNU C library defines this for functions which it implements
27365 to always fail with ENOSYS. Some functions are actually named
27366 something starting with __ and the normal name is an alias. */
27367#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27368choke me
27369#else
27370char (*f) () = $ac_func;
27371#endif
27372#ifdef __cplusplus
27373}
27374#endif
27375
27376int
27377main ()
27378{
27379return f != $ac_func;
27380 ;
27381 return 0;
27382}
27383_ACEOF
27384rm -f conftest.$ac_objext conftest$ac_exeext
27385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27386 (eval $ac_link) 2>conftest.er1
a848cd7e 27387 ac_status=$?
ac1cb8d3
VS
27388 grep -v '^ *+' conftest.er1 >conftest.err
27389 rm -f conftest.er1
27390 cat conftest.err >&5
a848cd7e
SC
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); } &&
3565d135
RR
27393 { ac_try='test -z "$ac_c_werror_flag"
27394 || test ! -s conftest.err'
ac1cb8d3
VS
27395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27396 (eval $ac_try) 2>&5
27397 ac_status=$?
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); }; } &&
27400 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27402 (eval $ac_try) 2>&5
27403 ac_status=$?
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); }; }; then
27406 eval "$as_ac_var=yes"
27407else
27408 echo "$as_me: failed program was:" >&5
27409sed 's/^/| /' conftest.$ac_ext >&5
27410
27411eval "$as_ac_var=no"
27412fi
ac1cb8d3
VS
27413rm -f conftest.err conftest.$ac_objext \
27414 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27415fi
27416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27417echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27418if test `eval echo '${'$as_ac_var'}'` = yes; then
27419 cat >>confdefs.h <<_ACEOF
27420#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27421_ACEOF
27422
27423fi
27424done
27425
27426 fi
27427
27428 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27429 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27430
27431 AFMINSTALL=afminstall
27432 TOOLKIT=GTK
27433 GUIDIST=GTK_DIST
27434
27435 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27436echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27437if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27438 echo $ECHO_N "(cached) $ECHO_C" >&6
27439else
27440 ac_check_lib_save_LIBS=$LIBS
27441LIBS="-lgdk $LIBS"
27442cat >conftest.$ac_ext <<_ACEOF
27443/* confdefs.h. */
27444_ACEOF
27445cat confdefs.h >>conftest.$ac_ext
27446cat >>conftest.$ac_ext <<_ACEOF
27447/* end confdefs.h. */
27448
27449/* Override any gcc2 internal prototype to avoid an error. */
27450#ifdef __cplusplus
27451extern "C"
27452#endif
27453/* We use char because int might match the return type of a gcc2
27454 builtin and then its argument prototype would still apply. */
27455char gdk_im_open ();
27456int
27457main ()
27458{
27459gdk_im_open ();
27460 ;
27461 return 0;
27462}
27463_ACEOF
27464rm -f conftest.$ac_objext conftest$ac_exeext
27465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27466 (eval $ac_link) 2>conftest.er1
a848cd7e 27467 ac_status=$?
ac1cb8d3
VS
27468 grep -v '^ *+' conftest.er1 >conftest.err
27469 rm -f conftest.er1
27470 cat conftest.err >&5
a848cd7e
SC
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); } &&
3565d135
RR
27473 { ac_try='test -z "$ac_c_werror_flag"
27474 || test ! -s conftest.err'
ac1cb8d3
VS
27475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27476 (eval $ac_try) 2>&5
27477 ac_status=$?
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; } &&
27480 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27482 (eval $ac_try) 2>&5
27483 ac_status=$?
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); }; }; then
27486 ac_cv_lib_gdk_gdk_im_open=yes
27487else
27488 echo "$as_me: failed program was:" >&5
27489sed 's/^/| /' conftest.$ac_ext >&5
27490
27491ac_cv_lib_gdk_gdk_im_open=no
27492fi
ac1cb8d3
VS
27493rm -f conftest.err conftest.$ac_objext \
27494 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27495LIBS=$ac_check_lib_save_LIBS
27496fi
27497echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27498echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27499if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27500 cat >>confdefs.h <<\_ACEOF
27501#define HAVE_XIM 1
27502_ACEOF
27503
27504fi
27505
27506
27507
27508 if test "$wxUSE_GPE" = "yes"; then
27509 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27510echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27511
0ad5d837
VZ
27512 ac_find_libraries=
27513 for ac_dir in $SEARCH_LIB;
a848cd7e 27514 do
3eca31dc 27515 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27516 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27517 ac_find_libraries=$ac_dir
27518 break 2
27519 fi
27520 done
27521 done
27522
27523 if test "$ac_find_libraries" != "" ; then
27524
0ad5d837 27525 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27526 ac_path_to_link=""
27527 else
0ad5d837
VZ
27528 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27529 result=$?
27530 if test $result = 0; then
27531 ac_path_to_link=""
27532 else
27533 ac_path_to_link=" -L$ac_find_libraries"
27534 fi
a848cd7e
SC
27535 fi
27536
27537 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27538 WXGPE=1
0ad5d837
VZ
27539 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27540echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27541 else
27542 echo "$as_me:$LINENO: result: not found" >&5
27543echo "${ECHO_T}not found" >&6
27544 fi
27545
27546 fi
27547 fi
27548
27549 if test "$wxUSE_MGL" = 1; then
27550 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27551echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27552 if test "x$MGL_ROOT" = x ; then
27553 echo "$as_me:$LINENO: result: not found" >&5
27554echo "${ECHO_T}not found" >&6
27555 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27556echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27557 { (exit 1); exit 1; }; }
27558 else
27559 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27560echo "${ECHO_T}$MGL_ROOT" >&6
27561 fi
27562
27563 echo "$as_me:$LINENO: checking for libmgl location" >&5
27564echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27565 case "${host}" in
27566 *-*-linux* )
27567 if test "x$wxUSE_SHARED" = xyes ; then
27568 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27569 else
27570 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27571 fi
27572 ;;
27573 *-pc-msdosdjgpp )
27574 mgl_os_candidates="dos32/dj2"
27575 ;;
27576 *)
27577 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27578echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27579 { (exit 1); exit 1; }; }
27580 esac
27581
27582 mgl_lib_type=""
27583 mgl_os=""
27584
27585 for mgl_os_i in $mgl_os_candidates ; do
27586 if test "x$mgl_os" = x ; then
27587 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27588 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27589 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27590 mgl_lib_type=debug
27591 mgl_os=$mgl_os_i
27592 fi
27593 fi
27594 if test "x$mgl_lib_type" = x ; then
27595 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27596 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27597 mgl_lib_type=release
27598 mgl_os=$mgl_os_i
27599 fi
27600 fi
27601 fi
27602 done
27603
27604 if test "x$mgl_os" = x ; then
27605 echo "$as_me:$LINENO: result: not found" >&5
27606echo "${ECHO_T}not found" >&6
27607 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27608echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27609 { (exit 1); exit 1; }; }
27610 fi
27611 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27612echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27613
27614 wxUSE_UNIVERSAL="yes"
27615
27616 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27617 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27618
27619 AFMINSTALL=afminstall
27620 TOOLKIT=MGL
27621 GUIDIST=MGL_DIST
27622 fi
27623
27624 if test "$wxUSE_MICROWIN" = 1; then
27625 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27626echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27627 if test "x$MICROWINDOWS" = x ; then
27628 echo "$as_me:$LINENO: result: not found" >&5
27629echo "${ECHO_T}not found" >&6
27630 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27631echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27632 { (exit 1); exit 1; }; }
27633 else
27634 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27635echo "${ECHO_T}$MICROWINDOWS" >&6
27636 fi
27637
27638 if test -f $MICROWINDOWS/lib/libmwin.a; then
27639 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27640echo "${ECHO_T}MicroWindows' libraries found." >&6
27641 else
27642 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27643echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27644 { (exit 1); exit 1; }; }
27645 fi
27646
27647 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27648 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27649
27650 wxUSE_UNIVERSAL="yes"
27651
27652 AFMINSTALL=afminstall
27653 TOOLKIT=MICROWIN
27654 GUIDIST=MICROWIN_DIST
27655
27656 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27657 fi
27658
74b84332 27659 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
3565d135 27660 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27661echo $ECHO_N "checking for X... $ECHO_C" >&6
27662
27663
27664# Check whether --with-x or --without-x was given.
27665if test "${with_x+set}" = set; then
27666 withval="$with_x"
27667
27668fi;
27669# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27670if test "x$with_x" = xno; then
27671 # The user explicitly disabled X.
27672 have_x=disabled
27673else
27674 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27675 # Both variables are already set.
27676 have_x=yes
27677 else
27678 if test "${ac_cv_have_x+set}" = set; then
27679 echo $ECHO_N "(cached) $ECHO_C" >&6
27680else
27681 # One or both of the vars are not set, and there is no cached value.
27682ac_x_includes=no ac_x_libraries=no
27683rm -fr conftest.dir
27684if mkdir conftest.dir; then
27685 cd conftest.dir
27686 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27687 cat >Imakefile <<'_ACEOF'
27688acfindx:
27689 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27690_ACEOF
27691 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27692 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27693 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27694 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27695 for ac_extension in a so sl; do
27696 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27697 test -f $ac_im_libdir/libX11.$ac_extension; then
27698 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27699 fi
27700 done
27701 # Screen out bogus values from the imake configuration. They are
27702 # bogus both because they are the default anyway, and because
27703 # using them would break gcc on systems where it needs fixed includes.
27704 case $ac_im_incroot in
27705 /usr/include) ;;
27706 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27707 esac
27708 case $ac_im_usrlibdir in
27709 /usr/lib | /lib) ;;
27710 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27711 esac
27712 fi
27713 cd ..
27714 rm -fr conftest.dir
27715fi
27716
27717# Standard set of common directories for X headers.
27718# Check X11 before X11Rn because it is often a symlink to the current release.
27719ac_x_header_dirs='
27720/usr/X11/include
27721/usr/X11R6/include
27722/usr/X11R5/include
27723/usr/X11R4/include
27724
27725/usr/include/X11
27726/usr/include/X11R6
27727/usr/include/X11R5
27728/usr/include/X11R4
27729
27730/usr/local/X11/include
27731/usr/local/X11R6/include
27732/usr/local/X11R5/include
27733/usr/local/X11R4/include
27734
27735/usr/local/include/X11
27736/usr/local/include/X11R6
27737/usr/local/include/X11R5
27738/usr/local/include/X11R4
27739
27740/usr/X386/include
27741/usr/x386/include
27742/usr/XFree86/include/X11
27743
27744/usr/include
27745/usr/local/include
27746/usr/unsupported/include
27747/usr/athena/include
27748/usr/local/x11r5/include
27749/usr/lpp/Xamples/include
27750
27751/usr/openwin/include
27752/usr/openwin/share/include'
27753
27754if test "$ac_x_includes" = no; then
3565d135 27755 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
27756 # First, try using that file with no special directory specified.
27757 cat >conftest.$ac_ext <<_ACEOF
27758/* confdefs.h. */
27759_ACEOF
27760cat confdefs.h >>conftest.$ac_ext
27761cat >>conftest.$ac_ext <<_ACEOF
27762/* end confdefs.h. */
3565d135 27763#include <X11/Intrinsic.h>
a848cd7e
SC
27764_ACEOF
27765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27767 ac_status=$?
27768 grep -v '^ *+' conftest.er1 >conftest.err
27769 rm -f conftest.er1
27770 cat conftest.err >&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); } >/dev/null; then
27773 if test -s conftest.err; then
27774 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27776 else
27777 ac_cpp_err=
27778 fi
27779else
27780 ac_cpp_err=yes
27781fi
27782if test -z "$ac_cpp_err"; then
27783 # We can compile using X headers with no special include directory.
27784ac_x_includes=
27785else
27786 echo "$as_me: failed program was:" >&5
27787sed 's/^/| /' conftest.$ac_ext >&5
27788
27789 for ac_dir in $ac_x_header_dirs; do
3565d135 27790 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
27791 ac_x_includes=$ac_dir
27792 break
27793 fi
27794done
27795fi
27796rm -f conftest.err conftest.$ac_ext
27797fi # $ac_x_includes = no
27798
27799if test "$ac_x_libraries" = no; then
27800 # Check for the libraries.
27801 # See if we find them without any special options.
27802 # Don't add to $LIBS permanently.
27803 ac_save_LIBS=$LIBS
3565d135 27804 LIBS="-lXt $LIBS"
a848cd7e
SC
27805 cat >conftest.$ac_ext <<_ACEOF
27806/* confdefs.h. */
27807_ACEOF
27808cat confdefs.h >>conftest.$ac_ext
27809cat >>conftest.$ac_ext <<_ACEOF
27810/* end confdefs.h. */
3565d135 27811#include <X11/Intrinsic.h>
a848cd7e
SC
27812int
27813main ()
27814{
3565d135 27815XtMalloc (0)
a848cd7e
SC
27816 ;
27817 return 0;
27818}
27819_ACEOF
27820rm -f conftest.$ac_objext conftest$ac_exeext
27821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27822 (eval $ac_link) 2>conftest.er1
a848cd7e 27823 ac_status=$?
ac1cb8d3
VS
27824 grep -v '^ *+' conftest.er1 >conftest.err
27825 rm -f conftest.er1
27826 cat conftest.err >&5
a848cd7e
SC
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); } &&
3565d135
RR
27829 { ac_try='test -z "$ac_c_werror_flag"
27830 || test ! -s conftest.err'
ac1cb8d3
VS
27831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27832 (eval $ac_try) 2>&5
27833 ac_status=$?
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); }; } &&
27836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27838 (eval $ac_try) 2>&5
27839 ac_status=$?
27840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); }; }; then
27842 LIBS=$ac_save_LIBS
27843# We can link X programs with no special library path.
27844ac_x_libraries=
27845else
27846 echo "$as_me: failed program was:" >&5
27847sed 's/^/| /' conftest.$ac_ext >&5
27848
27849LIBS=$ac_save_LIBS
27850for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27851do
27852 # Don't even attempt the hair of trying to link an X program!
27853 for ac_extension in a so sl; do
3565d135 27854 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
27855 ac_x_libraries=$ac_dir
27856 break 2
27857 fi
27858 done
27859done
27860fi
ac1cb8d3
VS
27861rm -f conftest.err conftest.$ac_objext \
27862 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27863fi # $ac_x_libraries = no
27864
27865if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27866 # Didn't find X anywhere. Cache the known absence of X.
27867 ac_cv_have_x="have_x=no"
27868else
27869 # Record where we found X for the cache.
27870 ac_cv_have_x="have_x=yes \
ac1cb8d3 27871 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27872fi
27873fi
27874
27875 fi
27876 eval "$ac_cv_have_x"
27877fi # $with_x != no
27878
27879if test "$have_x" != yes; then
27880 echo "$as_me:$LINENO: result: $have_x" >&5
27881echo "${ECHO_T}$have_x" >&6
27882 no_x=yes
27883else
27884 # If each of the values was on the command line, it overrides each guess.
27885 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27886 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27887 # Update the cache value to reflect the command line values.
27888 ac_cv_have_x="have_x=yes \
27889 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3565d135
RR
27890 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27891echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
27892fi
27893
27894if test "$no_x" = yes; then
27895 # Not all programs may use this symbol, but it does not hurt to define it.
27896
27897cat >>confdefs.h <<\_ACEOF
27898#define X_DISPLAY_MISSING 1
27899_ACEOF
27900
27901 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27902else
27903 if test -n "$x_includes"; then
27904 X_CFLAGS="$X_CFLAGS -I$x_includes"
27905 fi
27906
27907 # It would also be nice to do this for all -L options, not just this one.
27908 if test -n "$x_libraries"; then
27909 X_LIBS="$X_LIBS -L$x_libraries"
27910 # For Solaris; some versions of Sun CC require a space after -R and
27911 # others require no space. Words are not sufficient . . . .
27912 case `(uname -sr) 2>/dev/null` in
27913 "SunOS 5"*)
27914 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27915echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27916 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27917 cat >conftest.$ac_ext <<_ACEOF
27918/* confdefs.h. */
27919_ACEOF
27920cat confdefs.h >>conftest.$ac_ext
27921cat >>conftest.$ac_ext <<_ACEOF
27922/* end confdefs.h. */
27923
27924int
27925main ()
27926{
27927
27928 ;
27929 return 0;
27930}
27931_ACEOF
27932rm -f conftest.$ac_objext conftest$ac_exeext
27933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27934 (eval $ac_link) 2>conftest.er1
a848cd7e 27935 ac_status=$?
ac1cb8d3
VS
27936 grep -v '^ *+' conftest.er1 >conftest.err
27937 rm -f conftest.er1
27938 cat conftest.err >&5
a848cd7e
SC
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } &&
3565d135
RR
27941 { ac_try='test -z "$ac_c_werror_flag"
27942 || test ! -s conftest.err'
ac1cb8d3
VS
27943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944 (eval $ac_try) 2>&5
27945 ac_status=$?
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); }; } &&
27948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27951 ac_status=$?
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
27954 ac_R_nospace=yes
27955else
27956 echo "$as_me: failed program was:" >&5
27957sed 's/^/| /' conftest.$ac_ext >&5
27958
27959ac_R_nospace=no
27960fi
ac1cb8d3
VS
27961rm -f conftest.err conftest.$ac_objext \
27962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27963 if test $ac_R_nospace = yes; then
27964 echo "$as_me:$LINENO: result: no" >&5
27965echo "${ECHO_T}no" >&6
27966 X_LIBS="$X_LIBS -R$x_libraries"
27967 else
27968 LIBS="$ac_xsave_LIBS -R $x_libraries"
27969 cat >conftest.$ac_ext <<_ACEOF
27970/* confdefs.h. */
27971_ACEOF
27972cat confdefs.h >>conftest.$ac_ext
27973cat >>conftest.$ac_ext <<_ACEOF
27974/* end confdefs.h. */
27975
27976int
27977main ()
27978{
27979
27980 ;
27981 return 0;
27982}
27983_ACEOF
27984rm -f conftest.$ac_objext conftest$ac_exeext
27985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27986 (eval $ac_link) 2>conftest.er1
a848cd7e 27987 ac_status=$?
ac1cb8d3
VS
27988 grep -v '^ *+' conftest.er1 >conftest.err
27989 rm -f conftest.er1
27990 cat conftest.err >&5
a848cd7e
SC
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); } &&
3565d135
RR
27993 { ac_try='test -z "$ac_c_werror_flag"
27994 || test ! -s conftest.err'
ac1cb8d3
VS
27995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996 (eval $ac_try) 2>&5
27997 ac_status=$?
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; } &&
28000 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28002 (eval $ac_try) 2>&5
28003 ac_status=$?
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); }; }; then
28006 ac_R_space=yes
28007else
28008 echo "$as_me: failed program was:" >&5
28009sed 's/^/| /' conftest.$ac_ext >&5
28010
28011ac_R_space=no
28012fi
ac1cb8d3
VS
28013rm -f conftest.err conftest.$ac_objext \
28014 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28015 if test $ac_R_space = yes; then
28016 echo "$as_me:$LINENO: result: yes" >&5
28017echo "${ECHO_T}yes" >&6
28018 X_LIBS="$X_LIBS -R $x_libraries"
28019 else
28020 echo "$as_me:$LINENO: result: neither works" >&5
28021echo "${ECHO_T}neither works" >&6
28022 fi
28023 fi
28024 LIBS=$ac_xsave_LIBS
28025 esac
28026 fi
28027
28028 # Check for system-dependent libraries X programs must link with.
28029 # Do this before checking for the system-independent R6 libraries
28030 # (-lICE), since we may need -lsocket or whatever for X linking.
28031
28032 if test "$ISC" = yes; then
28033 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28034 else
28035 # Martyn Johnson says this is needed for Ultrix, if the X
28036 # libraries were built with DECnet support. And Karl Berry says
28037 # the Alpha needs dnet_stub (dnet does not exist).
28038 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28039 cat >conftest.$ac_ext <<_ACEOF
28040/* confdefs.h. */
28041_ACEOF
28042cat confdefs.h >>conftest.$ac_ext
28043cat >>conftest.$ac_ext <<_ACEOF
28044/* end confdefs.h. */
28045
28046/* Override any gcc2 internal prototype to avoid an error. */
28047#ifdef __cplusplus
28048extern "C"
28049#endif
28050/* We use char because int might match the return type of a gcc2
28051 builtin and then its argument prototype would still apply. */
28052char XOpenDisplay ();
28053int
28054main ()
28055{
28056XOpenDisplay ();
28057 ;
28058 return 0;
28059}
28060_ACEOF
28061rm -f conftest.$ac_objext conftest$ac_exeext
28062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28063 (eval $ac_link) 2>conftest.er1
a848cd7e 28064 ac_status=$?
ac1cb8d3
VS
28065 grep -v '^ *+' conftest.er1 >conftest.err
28066 rm -f conftest.er1
28067 cat conftest.err >&5
a848cd7e
SC
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); } &&
3565d135
RR
28070 { ac_try='test -z "$ac_c_werror_flag"
28071 || test ! -s conftest.err'
ac1cb8d3
VS
28072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28073 (eval $ac_try) 2>&5
28074 ac_status=$?
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); }; } &&
28077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28079 (eval $ac_try) 2>&5
28080 ac_status=$?
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); }; }; then
28083 :
28084else
28085 echo "$as_me: failed program was:" >&5
28086sed 's/^/| /' conftest.$ac_ext >&5
28087
28088echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28089echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28090if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
28092else
28093 ac_check_lib_save_LIBS=$LIBS
28094LIBS="-ldnet $LIBS"
28095cat >conftest.$ac_ext <<_ACEOF
28096/* confdefs.h. */
28097_ACEOF
28098cat confdefs.h >>conftest.$ac_ext
28099cat >>conftest.$ac_ext <<_ACEOF
28100/* end confdefs.h. */
28101
28102/* Override any gcc2 internal prototype to avoid an error. */
28103#ifdef __cplusplus
28104extern "C"
28105#endif
28106/* We use char because int might match the return type of a gcc2
28107 builtin and then its argument prototype would still apply. */
28108char dnet_ntoa ();
28109int
28110main ()
28111{
28112dnet_ntoa ();
28113 ;
28114 return 0;
28115}
28116_ACEOF
28117rm -f conftest.$ac_objext conftest$ac_exeext
28118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28119 (eval $ac_link) 2>conftest.er1
a848cd7e 28120 ac_status=$?
ac1cb8d3
VS
28121 grep -v '^ *+' conftest.er1 >conftest.err
28122 rm -f conftest.er1
28123 cat conftest.err >&5
a848cd7e
SC
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); } &&
3565d135
RR
28126 { ac_try='test -z "$ac_c_werror_flag"
28127 || test ! -s conftest.err'
ac1cb8d3
VS
28128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28129 (eval $ac_try) 2>&5
28130 ac_status=$?
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); }; } &&
28133 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28135 (eval $ac_try) 2>&5
28136 ac_status=$?
28137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138 (exit $ac_status); }; }; then
28139 ac_cv_lib_dnet_dnet_ntoa=yes
28140else
28141 echo "$as_me: failed program was:" >&5
28142sed 's/^/| /' conftest.$ac_ext >&5
28143
28144ac_cv_lib_dnet_dnet_ntoa=no
28145fi
ac1cb8d3
VS
28146rm -f conftest.err conftest.$ac_objext \
28147 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28148LIBS=$ac_check_lib_save_LIBS
28149fi
28150echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28151echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28152if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28153 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28154fi
28155
28156 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28157 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28158echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28159if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28161else
28162 ac_check_lib_save_LIBS=$LIBS
28163LIBS="-ldnet_stub $LIBS"
28164cat >conftest.$ac_ext <<_ACEOF
28165/* confdefs.h. */
28166_ACEOF
28167cat confdefs.h >>conftest.$ac_ext
28168cat >>conftest.$ac_ext <<_ACEOF
28169/* end confdefs.h. */
28170
28171/* Override any gcc2 internal prototype to avoid an error. */
28172#ifdef __cplusplus
28173extern "C"
28174#endif
28175/* We use char because int might match the return type of a gcc2
28176 builtin and then its argument prototype would still apply. */
28177char dnet_ntoa ();
28178int
28179main ()
28180{
28181dnet_ntoa ();
28182 ;
28183 return 0;
28184}
28185_ACEOF
28186rm -f conftest.$ac_objext conftest$ac_exeext
28187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28188 (eval $ac_link) 2>conftest.er1
a848cd7e 28189 ac_status=$?
ac1cb8d3
VS
28190 grep -v '^ *+' conftest.er1 >conftest.err
28191 rm -f conftest.er1
28192 cat conftest.err >&5
a848cd7e
SC
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); } &&
3565d135
RR
28195 { ac_try='test -z "$ac_c_werror_flag"
28196 || test ! -s conftest.err'
ac1cb8d3
VS
28197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198 (eval $ac_try) 2>&5
28199 ac_status=$?
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; } &&
28202 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28204 (eval $ac_try) 2>&5
28205 ac_status=$?
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); }; }; then
28208 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28209else
28210 echo "$as_me: failed program was:" >&5
28211sed 's/^/| /' conftest.$ac_ext >&5
28212
28213ac_cv_lib_dnet_stub_dnet_ntoa=no
28214fi
ac1cb8d3
VS
28215rm -f conftest.err conftest.$ac_objext \
28216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28217LIBS=$ac_check_lib_save_LIBS
28218fi
28219echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28220echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28221if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28222 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28223fi
28224
28225 fi
28226fi
ac1cb8d3
VS
28227rm -f conftest.err conftest.$ac_objext \
28228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28229 LIBS="$ac_xsave_LIBS"
28230
28231 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28232 # to get the SysV transport functions.
28233 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28234 # needs -lnsl.
28235 # The nsl library prevents programs from opening the X display
28236 # on Irix 5.2, according to T.E. Dickey.
28237 # The functions gethostbyname, getservbyname, and inet_addr are
28238 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28239 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28240echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28241if test "${ac_cv_func_gethostbyname+set}" = set; then
28242 echo $ECHO_N "(cached) $ECHO_C" >&6
28243else
28244 cat >conftest.$ac_ext <<_ACEOF
28245/* confdefs.h. */
28246_ACEOF
28247cat confdefs.h >>conftest.$ac_ext
28248cat >>conftest.$ac_ext <<_ACEOF
28249/* end confdefs.h. */
ac1cb8d3
VS
28250/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28252#define gethostbyname innocuous_gethostbyname
28253
a848cd7e
SC
28254/* System header to define __stub macros and hopefully few prototypes,
28255 which can conflict with char gethostbyname (); below.
28256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28257 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28258
a848cd7e
SC
28259#ifdef __STDC__
28260# include <limits.h>
28261#else
28262# include <assert.h>
28263#endif
ac1cb8d3
VS
28264
28265#undef gethostbyname
28266
a848cd7e
SC
28267/* Override any gcc2 internal prototype to avoid an error. */
28268#ifdef __cplusplus
28269extern "C"
28270{
28271#endif
28272/* We use char because int might match the return type of a gcc2
28273 builtin and then its argument prototype would still apply. */
28274char gethostbyname ();
28275/* The GNU C library defines this for functions which it implements
28276 to always fail with ENOSYS. Some functions are actually named
28277 something starting with __ and the normal name is an alias. */
28278#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28279choke me
28280#else
28281char (*f) () = gethostbyname;
28282#endif
28283#ifdef __cplusplus
28284}
28285#endif
28286
28287int
28288main ()
28289{
28290return f != gethostbyname;
28291 ;
28292 return 0;
28293}
28294_ACEOF
28295rm -f conftest.$ac_objext conftest$ac_exeext
28296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28297 (eval $ac_link) 2>conftest.er1
a848cd7e 28298 ac_status=$?
ac1cb8d3
VS
28299 grep -v '^ *+' conftest.er1 >conftest.err
28300 rm -f conftest.er1
28301 cat conftest.err >&5
a848cd7e
SC
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); } &&
3565d135
RR
28304 { ac_try='test -z "$ac_c_werror_flag"
28305 || test ! -s conftest.err'
ac1cb8d3
VS
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; } &&
28311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313 (eval $ac_try) 2>&5
28314 ac_status=$?
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
28317 ac_cv_func_gethostbyname=yes
28318else
28319 echo "$as_me: failed program was:" >&5
28320sed 's/^/| /' conftest.$ac_ext >&5
28321
28322ac_cv_func_gethostbyname=no
28323fi
ac1cb8d3
VS
28324rm -f conftest.err conftest.$ac_objext \
28325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28326fi
28327echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28328echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28329
28330 if test $ac_cv_func_gethostbyname = no; then
28331 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28332echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28333if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28334 echo $ECHO_N "(cached) $ECHO_C" >&6
28335else
28336 ac_check_lib_save_LIBS=$LIBS
28337LIBS="-lnsl $LIBS"
28338cat >conftest.$ac_ext <<_ACEOF
28339/* confdefs.h. */
28340_ACEOF
28341cat confdefs.h >>conftest.$ac_ext
28342cat >>conftest.$ac_ext <<_ACEOF
28343/* end confdefs.h. */
28344
28345/* Override any gcc2 internal prototype to avoid an error. */
28346#ifdef __cplusplus
28347extern "C"
28348#endif
28349/* We use char because int might match the return type of a gcc2
28350 builtin and then its argument prototype would still apply. */
28351char gethostbyname ();
28352int
28353main ()
28354{
28355gethostbyname ();
28356 ;
28357 return 0;
28358}
28359_ACEOF
28360rm -f conftest.$ac_objext conftest$ac_exeext
28361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28362 (eval $ac_link) 2>conftest.er1
28363 ac_status=$?
28364 grep -v '^ *+' conftest.er1 >conftest.err
28365 rm -f conftest.er1
28366 cat conftest.err >&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } &&
3565d135
RR
28369 { ac_try='test -z "$ac_c_werror_flag"
28370 || test ! -s conftest.err'
ac1cb8d3
VS
28371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372 (eval $ac_try) 2>&5
28373 ac_status=$?
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; } &&
28376 { ac_try='test -s conftest$ac_exeext'
28377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378 (eval $ac_try) 2>&5
28379 ac_status=$?
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; }; then
28382 ac_cv_lib_nsl_gethostbyname=yes
28383else
28384 echo "$as_me: failed program was:" >&5
28385sed 's/^/| /' conftest.$ac_ext >&5
28386
28387ac_cv_lib_nsl_gethostbyname=no
28388fi
28389rm -f conftest.err conftest.$ac_objext \
28390 conftest$ac_exeext conftest.$ac_ext
28391LIBS=$ac_check_lib_save_LIBS
28392fi
28393echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28394echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28395if test $ac_cv_lib_nsl_gethostbyname = yes; then
28396 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28397fi
28398
28399 if test $ac_cv_lib_nsl_gethostbyname = no; then
28400 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28401echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28402if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28403 echo $ECHO_N "(cached) $ECHO_C" >&6
28404else
28405 ac_check_lib_save_LIBS=$LIBS
28406LIBS="-lbsd $LIBS"
28407cat >conftest.$ac_ext <<_ACEOF
28408/* confdefs.h. */
28409_ACEOF
28410cat confdefs.h >>conftest.$ac_ext
28411cat >>conftest.$ac_ext <<_ACEOF
28412/* end confdefs.h. */
28413
28414/* Override any gcc2 internal prototype to avoid an error. */
28415#ifdef __cplusplus
28416extern "C"
28417#endif
28418/* We use char because int might match the return type of a gcc2
28419 builtin and then its argument prototype would still apply. */
28420char gethostbyname ();
28421int
28422main ()
28423{
28424gethostbyname ();
28425 ;
28426 return 0;
28427}
28428_ACEOF
28429rm -f conftest.$ac_objext conftest$ac_exeext
28430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28431 (eval $ac_link) 2>conftest.er1
a848cd7e 28432 ac_status=$?
ac1cb8d3
VS
28433 grep -v '^ *+' conftest.er1 >conftest.err
28434 rm -f conftest.er1
28435 cat conftest.err >&5
a848cd7e
SC
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); } &&
3565d135
RR
28438 { ac_try='test -z "$ac_c_werror_flag"
28439 || test ! -s conftest.err'
a848cd7e
SC
28440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441 (eval $ac_try) 2>&5
28442 ac_status=$?
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28444 (exit $ac_status); }; } &&
28445 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447 (eval $ac_try) 2>&5
28448 ac_status=$?
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; }; then
28451 ac_cv_lib_bsd_gethostbyname=yes
28452else
28453 echo "$as_me: failed program was:" >&5
28454sed 's/^/| /' conftest.$ac_ext >&5
28455
28456ac_cv_lib_bsd_gethostbyname=no
28457fi
ac1cb8d3
VS
28458rm -f conftest.err conftest.$ac_objext \
28459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28460LIBS=$ac_check_lib_save_LIBS
28461fi
28462echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28463echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28464if test $ac_cv_lib_bsd_gethostbyname = yes; then
28465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28466fi
28467
28468 fi
28469 fi
28470
28471 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28472 # socket/setsockopt and other routines are undefined under SCO ODT
28473 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28474 # on later versions), says Simon Leinen: it contains gethostby*
28475 # variants that don't use the name server (or something). -lsocket
28476 # must be given before -lnsl if both are needed. We assume that
28477 # if connect needs -lnsl, so does gethostbyname.
28478 echo "$as_me:$LINENO: checking for connect" >&5
28479echo $ECHO_N "checking for connect... $ECHO_C" >&6
28480if test "${ac_cv_func_connect+set}" = set; then
28481 echo $ECHO_N "(cached) $ECHO_C" >&6
28482else
28483 cat >conftest.$ac_ext <<_ACEOF
28484/* confdefs.h. */
28485_ACEOF
28486cat confdefs.h >>conftest.$ac_ext
28487cat >>conftest.$ac_ext <<_ACEOF
28488/* end confdefs.h. */
ac1cb8d3
VS
28489/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28491#define connect innocuous_connect
28492
a848cd7e
SC
28493/* System header to define __stub macros and hopefully few prototypes,
28494 which can conflict with char connect (); below.
28495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28496 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28497
a848cd7e
SC
28498#ifdef __STDC__
28499# include <limits.h>
28500#else
28501# include <assert.h>
28502#endif
ac1cb8d3
VS
28503
28504#undef connect
28505
a848cd7e
SC
28506/* Override any gcc2 internal prototype to avoid an error. */
28507#ifdef __cplusplus
28508extern "C"
28509{
28510#endif
28511/* We use char because int might match the return type of a gcc2
28512 builtin and then its argument prototype would still apply. */
28513char connect ();
28514/* The GNU C library defines this for functions which it implements
28515 to always fail with ENOSYS. Some functions are actually named
28516 something starting with __ and the normal name is an alias. */
28517#if defined (__stub_connect) || defined (__stub___connect)
28518choke me
28519#else
28520char (*f) () = connect;
28521#endif
28522#ifdef __cplusplus
28523}
28524#endif
28525
28526int
28527main ()
28528{
28529return f != connect;
28530 ;
28531 return 0;
28532}
28533_ACEOF
28534rm -f conftest.$ac_objext conftest$ac_exeext
28535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28536 (eval $ac_link) 2>conftest.er1
a848cd7e 28537 ac_status=$?
ac1cb8d3
VS
28538 grep -v '^ *+' conftest.er1 >conftest.err
28539 rm -f conftest.er1
28540 cat conftest.err >&5
a848cd7e
SC
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } &&
3565d135
RR
28543 { ac_try='test -z "$ac_c_werror_flag"
28544 || test ! -s conftest.err'
ac1cb8d3
VS
28545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28546 (eval $ac_try) 2>&5
28547 ac_status=$?
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; } &&
28550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28552 (eval $ac_try) 2>&5
28553 ac_status=$?
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); }; }; then
28556 ac_cv_func_connect=yes
28557else
28558 echo "$as_me: failed program was:" >&5
28559sed 's/^/| /' conftest.$ac_ext >&5
28560
28561ac_cv_func_connect=no
28562fi
ac1cb8d3
VS
28563rm -f conftest.err conftest.$ac_objext \
28564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28565fi
28566echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28567echo "${ECHO_T}$ac_cv_func_connect" >&6
28568
28569 if test $ac_cv_func_connect = no; then
28570 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28571echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28572if test "${ac_cv_lib_socket_connect+set}" = set; then
28573 echo $ECHO_N "(cached) $ECHO_C" >&6
28574else
28575 ac_check_lib_save_LIBS=$LIBS
28576LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28577cat >conftest.$ac_ext <<_ACEOF
28578/* confdefs.h. */
28579_ACEOF
28580cat confdefs.h >>conftest.$ac_ext
28581cat >>conftest.$ac_ext <<_ACEOF
28582/* end confdefs.h. */
28583
28584/* Override any gcc2 internal prototype to avoid an error. */
28585#ifdef __cplusplus
28586extern "C"
28587#endif
28588/* We use char because int might match the return type of a gcc2
28589 builtin and then its argument prototype would still apply. */
28590char connect ();
28591int
28592main ()
28593{
28594connect ();
28595 ;
28596 return 0;
28597}
28598_ACEOF
28599rm -f conftest.$ac_objext conftest$ac_exeext
28600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28601 (eval $ac_link) 2>conftest.er1
a848cd7e 28602 ac_status=$?
ac1cb8d3
VS
28603 grep -v '^ *+' conftest.er1 >conftest.err
28604 rm -f conftest.er1
28605 cat conftest.err >&5
a848cd7e
SC
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } &&
3565d135
RR
28608 { ac_try='test -z "$ac_c_werror_flag"
28609 || test ! -s conftest.err'
ac1cb8d3
VS
28610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611 (eval $ac_try) 2>&5
28612 ac_status=$?
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; } &&
28615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28617 (eval $ac_try) 2>&5
28618 ac_status=$?
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); }; }; then
28621 ac_cv_lib_socket_connect=yes
28622else
28623 echo "$as_me: failed program was:" >&5
28624sed 's/^/| /' conftest.$ac_ext >&5
28625
28626ac_cv_lib_socket_connect=no
28627fi
ac1cb8d3
VS
28628rm -f conftest.err conftest.$ac_objext \
28629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28630LIBS=$ac_check_lib_save_LIBS
28631fi
28632echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28633echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28634if test $ac_cv_lib_socket_connect = yes; then
28635 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28636fi
28637
28638 fi
28639
28640 # Guillermo Gomez says -lposix is necessary on A/UX.
28641 echo "$as_me:$LINENO: checking for remove" >&5
28642echo $ECHO_N "checking for remove... $ECHO_C" >&6
28643if test "${ac_cv_func_remove+set}" = set; then
28644 echo $ECHO_N "(cached) $ECHO_C" >&6
28645else
28646 cat >conftest.$ac_ext <<_ACEOF
28647/* confdefs.h. */
28648_ACEOF
28649cat confdefs.h >>conftest.$ac_ext
28650cat >>conftest.$ac_ext <<_ACEOF
28651/* end confdefs.h. */
ac1cb8d3
VS
28652/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28654#define remove innocuous_remove
28655
a848cd7e
SC
28656/* System header to define __stub macros and hopefully few prototypes,
28657 which can conflict with char remove (); below.
28658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28659 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28660
a848cd7e
SC
28661#ifdef __STDC__
28662# include <limits.h>
28663#else
28664# include <assert.h>
28665#endif
ac1cb8d3
VS
28666
28667#undef remove
28668
a848cd7e
SC
28669/* Override any gcc2 internal prototype to avoid an error. */
28670#ifdef __cplusplus
28671extern "C"
28672{
28673#endif
28674/* We use char because int might match the return type of a gcc2
28675 builtin and then its argument prototype would still apply. */
28676char remove ();
28677/* The GNU C library defines this for functions which it implements
28678 to always fail with ENOSYS. Some functions are actually named
28679 something starting with __ and the normal name is an alias. */
28680#if defined (__stub_remove) || defined (__stub___remove)
28681choke me
28682#else
28683char (*f) () = remove;
28684#endif
28685#ifdef __cplusplus
28686}
28687#endif
28688
28689int
28690main ()
28691{
28692return f != remove;
28693 ;
28694 return 0;
28695}
28696_ACEOF
28697rm -f conftest.$ac_objext conftest$ac_exeext
28698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28699 (eval $ac_link) 2>conftest.er1
a848cd7e 28700 ac_status=$?
ac1cb8d3
VS
28701 grep -v '^ *+' conftest.er1 >conftest.err
28702 rm -f conftest.er1
28703 cat conftest.err >&5
a848cd7e
SC
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); } &&
3565d135
RR
28706 { ac_try='test -z "$ac_c_werror_flag"
28707 || test ! -s conftest.err'
ac1cb8d3
VS
28708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28709 (eval $ac_try) 2>&5
28710 ac_status=$?
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); }; } &&
28713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715 (eval $ac_try) 2>&5
28716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); }; }; then
28719 ac_cv_func_remove=yes
28720else
28721 echo "$as_me: failed program was:" >&5
28722sed 's/^/| /' conftest.$ac_ext >&5
28723
28724ac_cv_func_remove=no
28725fi
ac1cb8d3
VS
28726rm -f conftest.err conftest.$ac_objext \
28727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28728fi
28729echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28730echo "${ECHO_T}$ac_cv_func_remove" >&6
28731
28732 if test $ac_cv_func_remove = no; then
28733 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28734echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28735if test "${ac_cv_lib_posix_remove+set}" = set; then
28736 echo $ECHO_N "(cached) $ECHO_C" >&6
28737else
28738 ac_check_lib_save_LIBS=$LIBS
28739LIBS="-lposix $LIBS"
28740cat >conftest.$ac_ext <<_ACEOF
28741/* confdefs.h. */
28742_ACEOF
28743cat confdefs.h >>conftest.$ac_ext
28744cat >>conftest.$ac_ext <<_ACEOF
28745/* end confdefs.h. */
28746
28747/* Override any gcc2 internal prototype to avoid an error. */
28748#ifdef __cplusplus
28749extern "C"
28750#endif
28751/* We use char because int might match the return type of a gcc2
28752 builtin and then its argument prototype would still apply. */
28753char remove ();
28754int
28755main ()
28756{
28757remove ();
28758 ;
28759 return 0;
28760}
28761_ACEOF
28762rm -f conftest.$ac_objext conftest$ac_exeext
28763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28764 (eval $ac_link) 2>conftest.er1
a848cd7e 28765 ac_status=$?
ac1cb8d3
VS
28766 grep -v '^ *+' conftest.er1 >conftest.err
28767 rm -f conftest.er1
28768 cat conftest.err >&5
a848cd7e
SC
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } &&
3565d135
RR
28771 { ac_try='test -z "$ac_c_werror_flag"
28772 || test ! -s conftest.err'
ac1cb8d3
VS
28773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774 (eval $ac_try) 2>&5
28775 ac_status=$?
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); }; } &&
28778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780 (eval $ac_try) 2>&5
28781 ac_status=$?
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; }; then
28784 ac_cv_lib_posix_remove=yes
28785else
28786 echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
28789ac_cv_lib_posix_remove=no
28790fi
ac1cb8d3
VS
28791rm -f conftest.err conftest.$ac_objext \
28792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28793LIBS=$ac_check_lib_save_LIBS
28794fi
28795echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28796echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28797if test $ac_cv_lib_posix_remove = yes; then
28798 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28799fi
28800
28801 fi
28802
28803 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28804 echo "$as_me:$LINENO: checking for shmat" >&5
28805echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28806if test "${ac_cv_func_shmat+set}" = set; then
28807 echo $ECHO_N "(cached) $ECHO_C" >&6
28808else
28809 cat >conftest.$ac_ext <<_ACEOF
28810/* confdefs.h. */
28811_ACEOF
28812cat confdefs.h >>conftest.$ac_ext
28813cat >>conftest.$ac_ext <<_ACEOF
28814/* end confdefs.h. */
ac1cb8d3
VS
28815/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28817#define shmat innocuous_shmat
28818
a848cd7e
SC
28819/* System header to define __stub macros and hopefully few prototypes,
28820 which can conflict with char shmat (); below.
28821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28822 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28823
a848cd7e
SC
28824#ifdef __STDC__
28825# include <limits.h>
28826#else
28827# include <assert.h>
28828#endif
ac1cb8d3
VS
28829
28830#undef shmat
28831
a848cd7e
SC
28832/* Override any gcc2 internal prototype to avoid an error. */
28833#ifdef __cplusplus
28834extern "C"
28835{
28836#endif
28837/* We use char because int might match the return type of a gcc2
28838 builtin and then its argument prototype would still apply. */
28839char shmat ();
28840/* The GNU C library defines this for functions which it implements
28841 to always fail with ENOSYS. Some functions are actually named
28842 something starting with __ and the normal name is an alias. */
28843#if defined (__stub_shmat) || defined (__stub___shmat)
28844choke me
28845#else
28846char (*f) () = shmat;
28847#endif
28848#ifdef __cplusplus
28849}
28850#endif
28851
28852int
28853main ()
28854{
28855return f != shmat;
28856 ;
28857 return 0;
28858}
28859_ACEOF
28860rm -f conftest.$ac_objext conftest$ac_exeext
28861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28862 (eval $ac_link) 2>conftest.er1
a848cd7e 28863 ac_status=$?
ac1cb8d3
VS
28864 grep -v '^ *+' conftest.er1 >conftest.err
28865 rm -f conftest.er1
28866 cat conftest.err >&5
a848cd7e
SC
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); } &&
3565d135
RR
28869 { ac_try='test -z "$ac_c_werror_flag"
28870 || test ! -s conftest.err'
ac1cb8d3
VS
28871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28872 (eval $ac_try) 2>&5
28873 ac_status=$?
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); }; } &&
28876 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28878 (eval $ac_try) 2>&5
28879 ac_status=$?
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); }; }; then
28882 ac_cv_func_shmat=yes
28883else
28884 echo "$as_me: failed program was:" >&5
28885sed 's/^/| /' conftest.$ac_ext >&5
28886
28887ac_cv_func_shmat=no
28888fi
ac1cb8d3
VS
28889rm -f conftest.err conftest.$ac_objext \
28890 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28891fi
28892echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28893echo "${ECHO_T}$ac_cv_func_shmat" >&6
28894
28895 if test $ac_cv_func_shmat = no; then
28896 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28897echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28898if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28899 echo $ECHO_N "(cached) $ECHO_C" >&6
28900else
28901 ac_check_lib_save_LIBS=$LIBS
28902LIBS="-lipc $LIBS"
28903cat >conftest.$ac_ext <<_ACEOF
28904/* confdefs.h. */
28905_ACEOF
28906cat confdefs.h >>conftest.$ac_ext
28907cat >>conftest.$ac_ext <<_ACEOF
28908/* end confdefs.h. */
28909
28910/* Override any gcc2 internal prototype to avoid an error. */
28911#ifdef __cplusplus
28912extern "C"
28913#endif
28914/* We use char because int might match the return type of a gcc2
28915 builtin and then its argument prototype would still apply. */
28916char shmat ();
28917int
28918main ()
28919{
28920shmat ();
28921 ;
28922 return 0;
28923}
28924_ACEOF
28925rm -f conftest.$ac_objext conftest$ac_exeext
28926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28927 (eval $ac_link) 2>conftest.er1
a848cd7e 28928 ac_status=$?
ac1cb8d3
VS
28929 grep -v '^ *+' conftest.er1 >conftest.err
28930 rm -f conftest.er1
28931 cat conftest.err >&5
a848cd7e
SC
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); } &&
3565d135
RR
28934 { ac_try='test -z "$ac_c_werror_flag"
28935 || test ! -s conftest.err'
ac1cb8d3
VS
28936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28937 (eval $ac_try) 2>&5
28938 ac_status=$?
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); }; } &&
28941 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943 (eval $ac_try) 2>&5
28944 ac_status=$?
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); }; }; then
28947 ac_cv_lib_ipc_shmat=yes
28948else
28949 echo "$as_me: failed program was:" >&5
28950sed 's/^/| /' conftest.$ac_ext >&5
28951
28952ac_cv_lib_ipc_shmat=no
28953fi
ac1cb8d3
VS
28954rm -f conftest.err conftest.$ac_objext \
28955 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28956LIBS=$ac_check_lib_save_LIBS
28957fi
28958echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28959echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28960if test $ac_cv_lib_ipc_shmat = yes; then
28961 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28962fi
28963
28964 fi
28965 fi
28966
28967 # Check for libraries that X11R6 Xt/Xaw programs need.
28968 ac_save_LDFLAGS=$LDFLAGS
28969 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28970 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28971 # check for ICE first), but we must link in the order -lSM -lICE or
28972 # we get undefined symbols. So assume we have SM if we have ICE.
28973 # These have to be linked with before -lX11, unlike the other
28974 # libraries we check for below, so use a different variable.
28975 # John Interrante, Karl Berry
28976 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28977echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28978if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28980else
28981 ac_check_lib_save_LIBS=$LIBS
28982LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28983cat >conftest.$ac_ext <<_ACEOF
28984/* confdefs.h. */
28985_ACEOF
28986cat confdefs.h >>conftest.$ac_ext
28987cat >>conftest.$ac_ext <<_ACEOF
28988/* end confdefs.h. */
28989
28990/* Override any gcc2 internal prototype to avoid an error. */
28991#ifdef __cplusplus
28992extern "C"
28993#endif
28994/* We use char because int might match the return type of a gcc2
28995 builtin and then its argument prototype would still apply. */
28996char IceConnectionNumber ();
28997int
28998main ()
28999{
29000IceConnectionNumber ();
29001 ;
29002 return 0;
29003}
29004_ACEOF
29005rm -f conftest.$ac_objext conftest$ac_exeext
29006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29007 (eval $ac_link) 2>conftest.er1
a848cd7e 29008 ac_status=$?
ac1cb8d3
VS
29009 grep -v '^ *+' conftest.er1 >conftest.err
29010 rm -f conftest.er1
29011 cat conftest.err >&5
a848cd7e
SC
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); } &&
3565d135
RR
29014 { ac_try='test -z "$ac_c_werror_flag"
29015 || test ! -s conftest.err'
ac1cb8d3
VS
29016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29017 (eval $ac_try) 2>&5
29018 ac_status=$?
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); }; } &&
29021 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023 (eval $ac_try) 2>&5
29024 ac_status=$?
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); }; }; then
29027 ac_cv_lib_ICE_IceConnectionNumber=yes
29028else
29029 echo "$as_me: failed program was:" >&5
29030sed 's/^/| /' conftest.$ac_ext >&5
29031
29032ac_cv_lib_ICE_IceConnectionNumber=no
29033fi
ac1cb8d3
VS
29034rm -f conftest.err conftest.$ac_objext \
29035 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29036LIBS=$ac_check_lib_save_LIBS
29037fi
29038echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29039echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29040if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29041 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29042fi
29043
29044 LDFLAGS=$ac_save_LDFLAGS
29045
29046fi
29047
29048
29049 if test "$no_x" = "yes"; then
89d90d6d
VZ
29050 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29051echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29052 { (exit 1); exit 1; }; }
a848cd7e
SC
29053 fi
29054
74b84332
VS
29055 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29056 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29057 AFMINSTALL=afminstall
29058 COMPILED_X_PROGRAM=0
29059
74b84332
VS
29060 fi
29061
29062 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29063 if test "$wxUSE_NANOX" = "yes"; then
29064 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29065echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29066 if test "x$MICROWIN" = x ; then
29067 echo "$as_me:$LINENO: result: not found" >&5
29068echo "${ECHO_T}not found" >&6
29069 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29070echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29071 { (exit 1); exit 1; }; }
29072 else
29073 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29074echo "${ECHO_T}$MICROWIN" >&6
29075 cat >>confdefs.h <<\_ACEOF
29076#define wxUSE_NANOX 1
29077_ACEOF
29078
29079 fi
29080 fi
29081
29082 if test "$wxUSE_UNICODE" = "yes"; then
29083
29084 succeeded=no
29085
29086 if test -z "$PKG_CONFIG"; then
29087 # Extract the first word of "pkg-config", so it can be a program name with args.
29088set dummy pkg-config; ac_word=$2
29089echo "$as_me:$LINENO: checking for $ac_word" >&5
29090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29091if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29092 echo $ECHO_N "(cached) $ECHO_C" >&6
29093else
29094 case $PKG_CONFIG in
29095 [\\/]* | ?:[\\/]*)
29096 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29097 ;;
29098 *)
29099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29100for as_dir in $PATH
29101do
29102 IFS=$as_save_IFS
29103 test -z "$as_dir" && as_dir=.
29104 for ac_exec_ext in '' $ac_executable_extensions; do
29105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29106 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29108 break 2
29109 fi
29110done
29111done
29112
29113 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29114 ;;
29115esac
29116fi
29117PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29118
29119if test -n "$PKG_CONFIG"; then
29120 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29121echo "${ECHO_T}$PKG_CONFIG" >&6
29122else
29123 echo "$as_me:$LINENO: result: no" >&5
29124echo "${ECHO_T}no" >&6
29125fi
29126
29127 fi
29128
29129 if test "$PKG_CONFIG" = "no" ; then
29130 echo "*** The pkg-config script could not be found. Make sure it is"
29131 echo "*** in your path, or set the PKG_CONFIG environment variable"
29132 echo "*** to the full path to pkg-config."
29133 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29134 else
29135 PKG_CONFIG_MIN_VERSION=0.9.0
29136 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29137 echo "$as_me:$LINENO: checking for pangox" >&5
29138echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29139
29140 if $PKG_CONFIG --exists "pangox" ; then
29141 echo "$as_me:$LINENO: result: yes" >&5
29142echo "${ECHO_T}yes" >&6
29143 succeeded=yes
29144
29145 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29146echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29147 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29148 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29149echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29150
29151 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29152echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29153 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29154 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29155echo "${ECHO_T}$PANGOX_LIBS" >&6
29156 else
29157 PANGOX_CFLAGS=""
29158 PANGOX_LIBS=""
29159 ## If we have a custom action on failure, don't print errors, but
29160 ## do set a variable so people can do so.
29161 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29162
29163 fi
29164
29165
29166
29167 else
29168 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29169 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29170 fi
29171 fi
29172
29173 if test $succeeded = yes; then
29174
c92ad099 29175 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29176 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29177
29178 else
29179
29180 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29181echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29182 { (exit 1); exit 1; }; }
29183
29184
29185 fi
29186
29187
29188 succeeded=no
29189
29190 if test -z "$PKG_CONFIG"; then
29191 # Extract the first word of "pkg-config", so it can be a program name with args.
29192set dummy pkg-config; ac_word=$2
29193echo "$as_me:$LINENO: checking for $ac_word" >&5
29194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29195if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29196 echo $ECHO_N "(cached) $ECHO_C" >&6
29197else
29198 case $PKG_CONFIG in
29199 [\\/]* | ?:[\\/]*)
29200 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29201 ;;
29202 *)
29203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29204for as_dir in $PATH
29205do
29206 IFS=$as_save_IFS
29207 test -z "$as_dir" && as_dir=.
29208 for ac_exec_ext in '' $ac_executable_extensions; do
29209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29210 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29212 break 2
29213 fi
29214done
29215done
29216
29217 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29218 ;;
29219esac
29220fi
29221PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29222
29223if test -n "$PKG_CONFIG"; then
29224 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29225echo "${ECHO_T}$PKG_CONFIG" >&6
29226else
29227 echo "$as_me:$LINENO: result: no" >&5
29228echo "${ECHO_T}no" >&6
29229fi
29230
29231 fi
29232
29233 if test "$PKG_CONFIG" = "no" ; then
29234 echo "*** The pkg-config script could not be found. Make sure it is"
29235 echo "*** in your path, or set the PKG_CONFIG environment variable"
29236 echo "*** to the full path to pkg-config."
29237 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29238 else
29239 PKG_CONFIG_MIN_VERSION=0.9.0
29240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29241 echo "$as_me:$LINENO: checking for pangoft2" >&5
29242echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29243
29244 if $PKG_CONFIG --exists "pangoft2" ; then
29245 echo "$as_me:$LINENO: result: yes" >&5
29246echo "${ECHO_T}yes" >&6
29247 succeeded=yes
29248
29249 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29250echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29251 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29252 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29253echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29254
29255 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29256echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29257 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29258 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29259echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29260 else
29261 PANGOFT2_CFLAGS=""
29262 PANGOFT2_LIBS=""
29263 ## If we have a custom action on failure, don't print errors, but
29264 ## do set a variable so people can do so.
29265 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29266
29267 fi
29268
29269
29270
29271 else
29272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29274 fi
29275 fi
29276
29277 if test $succeeded = yes; then
29278
c92ad099 29279 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29280 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29281
29282 else
29283
29284 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29285echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29286 wxUSE_PRINTING_ARCHITECTURE="no"
29287
29288
29289 fi
29290
29291
29292 succeeded=no
29293
29294 if test -z "$PKG_CONFIG"; then
29295 # Extract the first word of "pkg-config", so it can be a program name with args.
29296set dummy pkg-config; ac_word=$2
29297echo "$as_me:$LINENO: checking for $ac_word" >&5
29298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29299if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29300 echo $ECHO_N "(cached) $ECHO_C" >&6
29301else
29302 case $PKG_CONFIG in
29303 [\\/]* | ?:[\\/]*)
29304 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29305 ;;
29306 *)
29307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29308for as_dir in $PATH
29309do
29310 IFS=$as_save_IFS
29311 test -z "$as_dir" && as_dir=.
29312 for ac_exec_ext in '' $ac_executable_extensions; do
29313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29314 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29316 break 2
29317 fi
29318done
29319done
29320
29321 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29322 ;;
29323esac
29324fi
29325PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29326
29327if test -n "$PKG_CONFIG"; then
29328 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29329echo "${ECHO_T}$PKG_CONFIG" >&6
29330else
29331 echo "$as_me:$LINENO: result: no" >&5
29332echo "${ECHO_T}no" >&6
29333fi
29334
29335 fi
29336
29337 if test "$PKG_CONFIG" = "no" ; then
29338 echo "*** The pkg-config script could not be found. Make sure it is"
29339 echo "*** in your path, or set the PKG_CONFIG environment variable"
29340 echo "*** to the full path to pkg-config."
29341 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29342 else
29343 PKG_CONFIG_MIN_VERSION=0.9.0
29344 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29345 echo "$as_me:$LINENO: checking for pangoxft" >&5
29346echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29347
29348 if $PKG_CONFIG --exists "pangoxft" ; then
29349 echo "$as_me:$LINENO: result: yes" >&5
29350echo "${ECHO_T}yes" >&6
29351 succeeded=yes
29352
29353 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29354echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29355 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29356 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29357echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29358
29359 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29360echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29361 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29362 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29363echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29364 else
29365 PANGOXFT_CFLAGS=""
29366 PANGOXFT_LIBS=""
29367 ## If we have a custom action on failure, don't print errors, but
29368 ## do set a variable so people can do so.
29369 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29370
29371 fi
29372
29373
29374
29375 else
29376 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29377 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29378 fi
29379 fi
29380
29381 if test $succeeded = yes; then
29382
4ae1af05
MB
29383 cat >>confdefs.h <<\_ACEOF
29384#define HAVE_PANGO_XFT 1
29385_ACEOF
29386
c92ad099 29387 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29388 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29389
29390 else
29391
29392 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29393echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29394
29395
29396 fi
29397
304205f1
VS
29398 save_CFLAGS="$CFLAGS"
29399 save_LIBS="$LIBS"
c92ad099 29400 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
304205f1
VS
29401 LIBS="$LIBS $PANGOX_LIBS"
29402
29403for ac_func in pango_font_family_is_monospace
29404do
29405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29406echo "$as_me:$LINENO: checking for $ac_func" >&5
29407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29408if eval "test \"\${$as_ac_var+set}\" = set"; then
29409 echo $ECHO_N "(cached) $ECHO_C" >&6
29410else
29411 cat >conftest.$ac_ext <<_ACEOF
29412/* confdefs.h. */
29413_ACEOF
29414cat confdefs.h >>conftest.$ac_ext
29415cat >>conftest.$ac_ext <<_ACEOF
29416/* end confdefs.h. */
29417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29419#define $ac_func innocuous_$ac_func
29420
29421/* System header to define __stub macros and hopefully few prototypes,
29422 which can conflict with char $ac_func (); below.
29423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29424 <limits.h> exists even on freestanding compilers. */
29425
29426#ifdef __STDC__
29427# include <limits.h>
29428#else
29429# include <assert.h>
29430#endif
29431
29432#undef $ac_func
29433
29434/* Override any gcc2 internal prototype to avoid an error. */
29435#ifdef __cplusplus
29436extern "C"
29437{
29438#endif
29439/* We use char because int might match the return type of a gcc2
29440 builtin and then its argument prototype would still apply. */
29441char $ac_func ();
29442/* The GNU C library defines this for functions which it implements
29443 to always fail with ENOSYS. Some functions are actually named
29444 something starting with __ and the normal name is an alias. */
29445#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29446choke me
29447#else
29448char (*f) () = $ac_func;
29449#endif
29450#ifdef __cplusplus
29451}
29452#endif
29453
29454int
29455main ()
29456{
29457return f != $ac_func;
29458 ;
29459 return 0;
29460}
29461_ACEOF
29462rm -f conftest.$ac_objext conftest$ac_exeext
29463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29464 (eval $ac_link) 2>conftest.er1
29465 ac_status=$?
29466 grep -v '^ *+' conftest.er1 >conftest.err
29467 rm -f conftest.er1
29468 cat conftest.err >&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); } &&
3565d135
RR
29471 { ac_try='test -z "$ac_c_werror_flag"
29472 || test ! -s conftest.err'
304205f1
VS
29473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474 (eval $ac_try) 2>&5
29475 ac_status=$?
29476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); }; } &&
29478 { ac_try='test -s conftest$ac_exeext'
29479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29480 (eval $ac_try) 2>&5
29481 ac_status=$?
29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483 (exit $ac_status); }; }; then
29484 eval "$as_ac_var=yes"
29485else
29486 echo "$as_me: failed program was:" >&5
29487sed 's/^/| /' conftest.$ac_ext >&5
29488
29489eval "$as_ac_var=no"
29490fi
29491rm -f conftest.err conftest.$ac_objext \
29492 conftest$ac_exeext conftest.$ac_ext
29493fi
29494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29495echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29496if test `eval echo '${'$as_ac_var'}'` = yes; then
29497 cat >>confdefs.h <<_ACEOF
29498#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29499_ACEOF
29500
29501fi
29502done
29503
29504 CFLAGS="$save_CFLAGS"
29505 LIBS="$save_LIBS"
a848cd7e
SC
29506 fi
29507
29508 wxUSE_UNIVERSAL="yes"
29509
29510 if test "$wxUSE_NANOX" = "yes"; then
29511 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29512 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"
29513 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29514 else
29515 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29516 fi
29517
a848cd7e
SC
29518 TOOLKIT=X11
29519 GUIDIST=X11_DIST
29520 fi
29521
29522 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29523 if test "$wxUSE_UNICODE" = "yes"; then
29524 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29525echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29526 { (exit 1); exit 1; }; }
29527 fi
29528
74b84332
VS
29529 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29530echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29531
74b84332
VS
29532ac_find_includes=
29533for ac_dir in $SEARCH_INCLUDE /usr/include;
29534 do
29535 if test -f "$ac_dir/Xm/Xm.h"; then
29536 ac_find_includes=$ac_dir
29537 break
29538 fi
29539 done
a848cd7e 29540
74b84332
VS
29541 if test "$ac_find_includes" != "" ; then
29542 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29543echo "${ECHO_T}found in $ac_find_includes" >&6
29544
29545 if test "x$ac_find_includes" = "x/usr/include"; then
29546 ac_path_to_include=""
29547 else
29548 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29549 result=$?
29550 if test $result = 0; then
29551 ac_path_to_include=""
29552 else
29553 ac_path_to_include=" -I$ac_find_includes"
29554 fi
a848cd7e
SC
29555 fi
29556
74b84332
VS
29557 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29558 else
e051b34e 29559 save_CFLAGS=$CFLAGS
c92ad099 29560 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 29561
74b84332 29562 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29563/* confdefs.h. */
29564_ACEOF
29565cat confdefs.h >>conftest.$ac_ext
29566cat >>conftest.$ac_ext <<_ACEOF
29567/* end confdefs.h. */
29568
74b84332
VS
29569 #include <Xm/Xm.h>
29570
a848cd7e
SC
29571int
29572main ()
29573{
29574
74b84332
VS
29575 int version;
29576 version = xmUseVersion;
29577
a848cd7e
SC
29578 ;
29579 return 0;
29580}
29581_ACEOF
74b84332
VS
29582rm -f conftest.$ac_objext
29583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29584 (eval $ac_compile) 2>conftest.er1
a848cd7e 29585 ac_status=$?
ac1cb8d3
VS
29586 grep -v '^ *+' conftest.er1 >conftest.err
29587 rm -f conftest.er1
29588 cat conftest.err >&5
a848cd7e
SC
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); } &&
3565d135
RR
29591 { ac_try='test -z "$ac_c_werror_flag"
29592 || test ! -s conftest.err'
ac1cb8d3
VS
29593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29594 (eval $ac_try) 2>&5
29595 ac_status=$?
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); }; } &&
74b84332 29598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29600 (eval $ac_try) 2>&5
29601 ac_status=$?
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); }; }; then
74b84332
VS
29604
29605 echo "$as_me:$LINENO: result: found in default search path" >&5
29606echo "${ECHO_T}found in default search path" >&6
29607 COMPILED_X_PROGRAM=1
29608
a848cd7e
SC
29609else
29610 echo "$as_me: failed program was:" >&5
29611sed 's/^/| /' conftest.$ac_ext >&5
29612
a848cd7e 29613
74b84332
VS
29614 echo "$as_me:$LINENO: result: no" >&5
29615echo "${ECHO_T}no" >&6
e051b34e
MW
29616 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29617echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29618 { (exit 1); exit 1; }; }
a848cd7e 29619
a848cd7e 29620
a848cd7e 29621fi
74b84332 29622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29623
29624 CFLAGS=$save_CFLAGS
74b84332
VS
29625 fi
29626
0ad5d837
VZ
29627
29628 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29629echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29630
0ad5d837
VZ
29631 ac_find_libraries=
29632 for ac_dir in $SEARCH_LIB;
74b84332 29633 do
3eca31dc 29634 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29635 if test -f "$ac_dir/libXm.$ac_extension"; then
29636 ac_find_libraries=$ac_dir
29637 break 2
a848cd7e 29638 fi
74b84332
VS
29639 done
29640 done
a848cd7e 29641
0ad5d837
VZ
29642
29643 if test "x$ac_find_libraries" != "x" ; then
29644 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29645echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29646
74b84332 29647
0ad5d837 29648 if test "$ac_find_libraries" = "default location"; then
74b84332 29649 ac_path_to_link=""
a848cd7e 29650 else
0ad5d837
VZ
29651 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29652 result=$?
29653 if test $result = 0; then
29654 ac_path_to_link=""
29655 else
29656 ac_path_to_link=" -L$ac_find_libraries"
29657 fi
74b84332
VS
29658 fi
29659
0ad5d837
VZ
29660 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29661 else
29662 save_CFLAGS=$CFLAGS
c92ad099 29663 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
29664 save_LIBS="$LIBS"
29665 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29666
0ad5d837 29667 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29668/* confdefs.h. */
29669_ACEOF
29670cat confdefs.h >>conftest.$ac_ext
29671cat >>conftest.$ac_ext <<_ACEOF
29672/* end confdefs.h. */
29673
0ad5d837 29674 #include <Xm/Xm.h>
74b84332 29675
a848cd7e
SC
29676int
29677main ()
29678{
74b84332 29679
0ad5d837
VZ
29680 int version;
29681 version = xmUseVersion;
74b84332 29682
a848cd7e
SC
29683 ;
29684 return 0;
29685}
29686_ACEOF
0ad5d837
VZ
29687rm -f conftest.$ac_objext conftest$ac_exeext
29688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29689 (eval $ac_link) 2>conftest.er1
a848cd7e 29690 ac_status=$?
ac1cb8d3
VS
29691 grep -v '^ *+' conftest.er1 >conftest.err
29692 rm -f conftest.er1
29693 cat conftest.err >&5
a848cd7e
SC
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); } &&
3565d135
RR
29696 { ac_try='test -z "$ac_c_werror_flag"
29697 || test ! -s conftest.err'
ac1cb8d3
VS
29698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29699 (eval $ac_try) 2>&5
29700 ac_status=$?
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); }; } &&
0ad5d837 29703 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29705 (eval $ac_try) 2>&5
29706 ac_status=$?
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); }; }; then
74b84332 29709
0ad5d837 29710 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29711echo "${ECHO_T}found in default search path" >&6
0ad5d837 29712 COMPILED_X_PROGRAM=1
74b84332 29713
a848cd7e
SC
29714else
29715 echo "$as_me: failed program was:" >&5
29716sed 's/^/| /' conftest.$ac_ext >&5
29717
74b84332 29718
6f9cf1e6 29719 echo "$as_me:$LINENO: result: no" >&5
74b84332 29720echo "${ECHO_T}no" >&6
6f9cf1e6 29721 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29722echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29723 { (exit 1); exit 1; }; }
29724
29725
29726fi
0ad5d837
VZ
29727rm -f conftest.err conftest.$ac_objext \
29728 conftest$ac_exeext conftest.$ac_ext
74b84332 29729
0ad5d837 29730 CFLAGS=$save_CFLAGS
6f9cf1e6 29731 LIBS="$save_LIBS"
74b84332
VS
29732 fi
29733
29734 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29735echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29736 libp_link=""
29737 libsm_ice_link=""
29738 libs_found=0
29739 for libp in "" " -lXp"; do
29740 if test "$libs_found" = "0"; then
29741 for libsm_ice in "" " -lSM -lICE"; do
29742 if test "$libs_found" = "0"; then
29743 save_LIBS="$LIBS"
29744 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29745 save_CFLAGS=$CFLAGS
c92ad099 29746 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
29747
29748 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29749/* confdefs.h. */
29750_ACEOF
29751cat confdefs.h >>conftest.$ac_ext
29752cat >>conftest.$ac_ext <<_ACEOF
29753/* end confdefs.h. */
29754
74b84332
VS
29755 #include <Xm/Xm.h>
29756 #include <Xm/List.h>
29757
a848cd7e
SC
29758int
29759main ()
29760{
74b84332
VS
29761
29762 XmString string = NULL;
29763 Widget w = NULL;
29764 int position = 0;
29765 XmListAddItem(w, string, position);
29766
a848cd7e
SC
29767 ;
29768 return 0;
29769}
29770_ACEOF
29771rm -f conftest.$ac_objext conftest$ac_exeext
29772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29773 (eval $ac_link) 2>conftest.er1
a848cd7e 29774 ac_status=$?
ac1cb8d3
VS
29775 grep -v '^ *+' conftest.er1 >conftest.err
29776 rm -f conftest.er1
29777 cat conftest.err >&5
a848cd7e
SC
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); } &&
3565d135
RR
29780 { ac_try='test -z "$ac_c_werror_flag"
29781 || test ! -s conftest.err'
ac1cb8d3
VS
29782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29783 (eval $ac_try) 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; } &&
29787 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29789 (eval $ac_try) 2>&5
29790 ac_status=$?
29791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); }; }; then
29793
29794 libp_link="$libp"
29795 libsm_ice_link="$libsm_ice"
29796 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29797echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29798 libs_found=1
29799
29800else
29801 echo "$as_me: failed program was:" >&5
29802sed 's/^/| /' conftest.$ac_ext >&5
29803
29804
29805
29806fi
ac1cb8d3
VS
29807rm -f conftest.err conftest.$ac_objext \
29808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29809
29810 LIBS="$save_LIBS"
29811 CFLAGS=$save_CFLAGS
29812 fi
29813 done
29814 fi
29815 done
29816
29817 if test "$libs_found" = "0"; then
29818 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29819echo "${ECHO_T}can't find the right libraries" >&6
29820 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29821echo "$as_me: error: can't link a simple motif program" >&2;}
29822 { (exit 1); exit 1; }; }
29823 fi
29824
62fa8b3a
MW
29825 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29826echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29827if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29828 echo $ECHO_N "(cached) $ECHO_C" >&6
29829else
29830 ac_check_lib_save_LIBS=$LIBS
29831LIBS="-lSgm $LIBS"
29832cat >conftest.$ac_ext <<_ACEOF
29833/* confdefs.h. */
29834_ACEOF
29835cat confdefs.h >>conftest.$ac_ext
29836cat >>conftest.$ac_ext <<_ACEOF
29837/* end confdefs.h. */
29838
29839/* Override any gcc2 internal prototype to avoid an error. */
29840#ifdef __cplusplus
29841extern "C"
29842#endif
29843/* We use char because int might match the return type of a gcc2
29844 builtin and then its argument prototype would still apply. */
29845char SgCreateList ();
29846int
29847main ()
29848{
29849SgCreateList ();
29850 ;
29851 return 0;
29852}
29853_ACEOF
29854rm -f conftest.$ac_objext conftest$ac_exeext
29855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29856 (eval $ac_link) 2>conftest.er1
29857 ac_status=$?
29858 grep -v '^ *+' conftest.er1 >conftest.err
29859 rm -f conftest.er1
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); } &&
3565d135
RR
29863 { ac_try='test -z "$ac_c_werror_flag"
29864 || test ! -s conftest.err'
62fa8b3a
MW
29865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29866 (eval $ac_try) 2>&5
29867 ac_status=$?
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); }; } &&
29870 { ac_try='test -s conftest$ac_exeext'
29871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872 (eval $ac_try) 2>&5
29873 ac_status=$?
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; }; then
29876 ac_cv_lib_Sgm_SgCreateList=yes
29877else
29878 echo "$as_me: failed program was:" >&5
29879sed 's/^/| /' conftest.$ac_ext >&5
29880
29881ac_cv_lib_Sgm_SgCreateList=no
29882fi
29883rm -f conftest.err conftest.$ac_objext \
29884 conftest$ac_exeext conftest.$ac_ext
29885LIBS=$ac_check_lib_save_LIBS
29886fi
29887echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29888echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29889if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29890 libsgm_link=" -lSgm"
29891fi
29892
29893
a848cd7e 29894 save_CFLAGS=$CFLAGS
c92ad099 29895 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 29896
a848cd7e
SC
29897 echo "$as_me:$LINENO: checking for Motif 2" >&5
29898echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29899if test "${wx_cv_lib_motif2+set}" = set; then
29900 echo $ECHO_N "(cached) $ECHO_C" >&6
29901else
29902 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29903/* confdefs.h. */
29904_ACEOF
29905cat confdefs.h >>conftest.$ac_ext
29906cat >>conftest.$ac_ext <<_ACEOF
29907/* end confdefs.h. */
29908
0ad5d837 29909 #include <Xm/Xm.h>
a848cd7e
SC
29910
29911int
29912main ()
29913{
29914
0ad5d837
VZ
29915 #if XmVersion < 2000
29916 Not Motif 2
29917 #endif
a848cd7e
SC
29918
29919 ;
29920 return 0;
29921}
29922_ACEOF
29923rm -f conftest.$ac_objext
29924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29925 (eval $ac_compile) 2>conftest.er1
a848cd7e 29926 ac_status=$?
ac1cb8d3
VS
29927 grep -v '^ *+' conftest.er1 >conftest.err
29928 rm -f conftest.er1
29929 cat conftest.err >&5
a848cd7e
SC
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); } &&
3565d135
RR
29932 { ac_try='test -z "$ac_c_werror_flag"
29933 || test ! -s conftest.err'
ac1cb8d3
VS
29934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935 (eval $ac_try) 2>&5
29936 ac_status=$?
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); }; } &&
29939 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941 (eval $ac_try) 2>&5
29942 ac_status=$?
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); }; }; then
0ad5d837 29945 wx_cv_lib_motif2="yes"
a848cd7e
SC
29946else
29947 echo "$as_me: failed program was:" >&5
29948sed 's/^/| /' conftest.$ac_ext >&5
29949
0ad5d837
VZ
29950wx_cv_lib_motif2="no"
29951fi
29952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29953fi
29954echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29955echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29956 if test "$wx_cv_lib_motif2" = "yes"; then
29957 cat >>confdefs.h <<\_ACEOF
29958#define __WXMOTIF20__ 1
29959_ACEOF
a848cd7e 29960
0ad5d837
VZ
29961 else
29962 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29963#define __WXMOTIF20__ 0
29964_ACEOF
29965
0ad5d837 29966 fi
2113bc77
MW
29967
29968 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29969echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29970if test "${wx_cv_lib_lesstif+set}" = set; then
29971 echo $ECHO_N "(cached) $ECHO_C" >&6
29972else
29973 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29974/* confdefs.h. */
29975_ACEOF
29976cat confdefs.h >>conftest.$ac_ext
29977cat >>conftest.$ac_ext <<_ACEOF
29978/* end confdefs.h. */
29979
0ad5d837 29980 #include <Xm/Xm.h>
2113bc77
MW
29981
29982int
29983main ()
29984{
29985
0ad5d837
VZ
29986 #if !defined(LesstifVersion) || LesstifVersion <= 0
29987 Not Lesstif
29988 #endif
2113bc77
MW
29989
29990 ;
29991 return 0;
29992}
29993_ACEOF
29994rm -f conftest.$ac_objext
29995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29996 (eval $ac_compile) 2>conftest.er1
29997 ac_status=$?
29998 grep -v '^ *+' conftest.er1 >conftest.err
29999 rm -f conftest.er1
30000 cat conftest.err >&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); } &&
3565d135
RR
30003 { ac_try='test -z "$ac_c_werror_flag"
30004 || test ! -s conftest.err'
2113bc77
MW
30005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30006 (eval $ac_try) 2>&5
30007 ac_status=$?
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; } &&
30010 { ac_try='test -s conftest.$ac_objext'
30011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012 (eval $ac_try) 2>&5
30013 ac_status=$?
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); }; }; then
0ad5d837 30016 wx_cv_lib_lesstif="yes"
2113bc77
MW
30017else
30018 echo "$as_me: failed program was:" >&5
30019sed 's/^/| /' conftest.$ac_ext >&5
30020
0ad5d837
VZ
30021wx_cv_lib_lesstif="no"
30022fi
30023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30024
0ad5d837
VZ
30025fi
30026echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30027echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30028 if test "$wx_cv_lib_lesstif" = "yes"; then
30029 cat >>confdefs.h <<\_ACEOF
30030#define __WXLESSTIF__ 1
30031_ACEOF
30032
30033 else
30034 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30035#define __WXLESSTIF__ 0
30036_ACEOF
30037
0ad5d837 30038 fi
2113bc77 30039
a848cd7e
SC
30040 CFLAGS=$save_CFLAGS
30041
62fa8b3a 30042 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30043 TOOLKIT=MOTIF
30044 GUIDIST=MOTIF_DIST
30045 fi
30046
74b84332 30047 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30048 if test "$wxUSE_LIBXPM" = "sys"; then
30049 echo "$as_me:$LINENO: checking for Xpm library" >&5
30050echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30051
0ad5d837
VZ
30052 ac_find_libraries=
30053 for ac_dir in $SEARCH_LIB;
a848cd7e 30054 do
3eca31dc 30055 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30056 if test -f "$ac_dir/libXpm.$ac_extension"; then
30057 ac_find_libraries=$ac_dir
30058 break 2
30059 fi
30060 done
30061 done
30062
30063 if test "$ac_find_libraries" != "" ; then
30064
0ad5d837 30065 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30066 ac_path_to_link=""
30067 else
0ad5d837
VZ
30068 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30069 result=$?
30070 if test $result = 0; then
30071 ac_path_to_link=""
30072 else
30073 ac_path_to_link=" -L$ac_find_libraries"
30074 fi
a848cd7e
SC
30075 fi
30076
30077 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30078 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30079echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30080
30081 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30082echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30083if test "${wx_cv_x11_xpm_h+set}" = set; then
30084 echo $ECHO_N "(cached) $ECHO_C" >&6
30085else
30086
30087 save_CFLAGS=$CFLAGS
c92ad099 30088 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30089
30090 cat >conftest.$ac_ext <<_ACEOF
30091/* confdefs.h. */
30092_ACEOF
30093cat confdefs.h >>conftest.$ac_ext
30094cat >>conftest.$ac_ext <<_ACEOF
30095/* end confdefs.h. */
30096
30097 #include <X11/xpm.h>
30098
30099int
30100main ()
30101{
30102
30103 int version;
30104 version = XpmLibraryVersion();
30105
30106 ;
30107 return 0;
30108}
30109_ACEOF
30110rm -f conftest.$ac_objext
30111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30112 (eval $ac_compile) 2>conftest.er1
a848cd7e 30113 ac_status=$?
ac1cb8d3
VS
30114 grep -v '^ *+' conftest.er1 >conftest.err
30115 rm -f conftest.er1
30116 cat conftest.err >&5
a848cd7e
SC
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); } &&
3565d135
RR
30119 { ac_try='test -z "$ac_c_werror_flag"
30120 || test ! -s conftest.err'
ac1cb8d3
VS
30121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30122 (eval $ac_try) 2>&5
30123 ac_status=$?
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; } &&
30126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30128 (eval $ac_try) 2>&5
30129 ac_status=$?
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); }; }; then
30132 wx_cv_x11_xpm_h=yes
30133else
30134 echo "$as_me: failed program was:" >&5
30135sed 's/^/| /' conftest.$ac_ext >&5
30136
30137wx_cv_x11_xpm_h=no
30138
30139fi
ac1cb8d3 30140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30141
30142 CFLAGS=$save_CFLAGS
30143
30144
30145fi
30146echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30147echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30148
30149 if test $wx_cv_x11_xpm_h = "yes"; then
30150 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30151 cat >>confdefs.h <<\_ACEOF
30152#define wxHAVE_LIB_XPM 1
30153_ACEOF
30154
30155 else
30156 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30157echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30158 fi
30159 fi
30160
30161 fi
30162
30163 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30164echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30165if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30166 echo $ECHO_N "(cached) $ECHO_C" >&6
30167else
30168 ac_check_lib_save_LIBS=$LIBS
30169LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30170cat >conftest.$ac_ext <<_ACEOF
30171/* confdefs.h. */
30172_ACEOF
30173cat confdefs.h >>conftest.$ac_ext
30174cat >>conftest.$ac_ext <<_ACEOF
30175/* end confdefs.h. */
30176
30177/* Override any gcc2 internal prototype to avoid an error. */
30178#ifdef __cplusplus
30179extern "C"
30180#endif
30181/* We use char because int might match the return type of a gcc2
30182 builtin and then its argument prototype would still apply. */
30183char XShapeQueryExtension ();
30184int
30185main ()
30186{
30187XShapeQueryExtension ();
30188 ;
30189 return 0;
30190}
30191_ACEOF
30192rm -f conftest.$ac_objext conftest$ac_exeext
30193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30194 (eval $ac_link) 2>conftest.er1
a848cd7e 30195 ac_status=$?
ac1cb8d3
VS
30196 grep -v '^ *+' conftest.er1 >conftest.err
30197 rm -f conftest.er1
30198 cat conftest.err >&5
a848cd7e
SC
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); } &&
3565d135
RR
30201 { ac_try='test -z "$ac_c_werror_flag"
30202 || test ! -s conftest.err'
ac1cb8d3
VS
30203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30204 (eval $ac_try) 2>&5
30205 ac_status=$?
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); }; } &&
30208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30210 (eval $ac_try) 2>&5
30211 ac_status=$?
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); }; }; then
30214 ac_cv_lib_Xext_XShapeQueryExtension=yes
30215else
30216 echo "$as_me: failed program was:" >&5
30217sed 's/^/| /' conftest.$ac_ext >&5
30218
30219ac_cv_lib_Xext_XShapeQueryExtension=no
30220fi
ac1cb8d3
VS
30221rm -f conftest.err conftest.$ac_objext \
30222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30223LIBS=$ac_check_lib_save_LIBS
30224fi
30225echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30226echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30227if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30228
30229 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30230 wxHAVE_XEXT_LIB=1
30231
30232fi
30233
30234
30235 if test "$wxHAVE_XEXT_LIB" = 1; then
30236 save_CFLAGS="$CFLAGS"
c92ad099 30237 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30238
30239 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30240echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30241 cat >conftest.$ac_ext <<_ACEOF
30242/* confdefs.h. */
30243_ACEOF
30244cat confdefs.h >>conftest.$ac_ext
30245cat >>conftest.$ac_ext <<_ACEOF
30246/* end confdefs.h. */
30247
30248 #include <X11/Xlib.h>
30249 #include <X11/extensions/shape.h>
30250
30251int
30252main ()
30253{
30254
30255 int dummy1, dummy2;
30256 XShapeQueryExtension((Display*)NULL,
30257 (int*)NULL, (int*)NULL);
30258
30259 ;
30260 return 0;
30261}
30262_ACEOF
30263rm -f conftest.$ac_objext
30264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30265 (eval $ac_compile) 2>conftest.er1
a848cd7e 30266 ac_status=$?
ac1cb8d3
VS
30267 grep -v '^ *+' conftest.er1 >conftest.err
30268 rm -f conftest.er1
30269 cat conftest.err >&5
a848cd7e
SC
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); } &&
3565d135
RR
30272 { ac_try='test -z "$ac_c_werror_flag"
30273 || test ! -s conftest.err'
ac1cb8d3
VS
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; } &&
30279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281 (eval $ac_try) 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; }; then
30285
30286 cat >>confdefs.h <<\_ACEOF
30287#define HAVE_XSHAPE 1
30288_ACEOF
30289
30290 echo "$as_me:$LINENO: result: found" >&5
30291echo "${ECHO_T}found" >&6
30292
30293else
30294 echo "$as_me: failed program was:" >&5
30295sed 's/^/| /' conftest.$ac_ext >&5
30296
30297
30298 echo "$as_me:$LINENO: result: not found" >&5
30299echo "${ECHO_T}not found" >&6
30300
30301fi
ac1cb8d3 30302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30303 CFLAGS="$save_CFLAGS"
30304
30305 fi
30306 fi
30307
30308 if test "$wxUSE_MAC" = 1; then
30309 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30310echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30311 if test "$GCC" = yes; then
30312 echo "$as_me:$LINENO: result: gcc" >&5
30313echo "${ECHO_T}gcc" >&6
30314 CPPFLAGS_PASCAL="-fpascal-strings"
30315 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30316 echo "$as_me:$LINENO: result: xlc" >&5
30317echo "${ECHO_T}xlc" >&6
30318 CPPFLAGS_PASCAL="-qmacpstr"
30319 else
30320 echo "$as_me:$LINENO: result: none" >&5
30321echo "${ECHO_T}none" >&6
30322 fi
30323
1e9e8aba 30324 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30325 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30326 else
c92ad099 30327 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30328 fi
a848cd7e 30329
a848cd7e
SC
30330 TOOLKIT=MAC
30331 GUIDIST=MACX_DIST
dd21ced8 30332 WXBASEPORT="_carbon"
a848cd7e
SC
30333 fi
30334
30335 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30336 TOOLKIT=COCOA
30337 GUIDIST=COCOA_DIST
30338 fi
30339
30340 if test "$wxUSE_PM" = 1; then
30341 TOOLKIT=PM
de59c161
RD
30342 GUIDIST=PM_DIST
30343 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30344echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30345if test "${wx_cv_spbcdata+set}" = set; then
30346 echo $ECHO_N "(cached) $ECHO_C" >&6
30347else
30348
30349 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30350/* confdefs.h. */
30351_ACEOF
30352cat confdefs.h >>conftest.$ac_ext
30353cat >>conftest.$ac_ext <<_ACEOF
30354/* end confdefs.h. */
30355
30356 #define INCL_PM
30357 #include <os2.h>
30358
30359int
30360main ()
30361{
30362
30363 SPBCDATA test;
30364
30365 ;
30366 return 0;
30367}
30368_ACEOF
30369rm -f conftest.$ac_objext
30370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30371 (eval $ac_compile) 2>conftest.er1
de59c161 30372 ac_status=$?
ac1cb8d3
VS
30373 grep -v '^ *+' conftest.er1 >conftest.err
30374 rm -f conftest.er1
30375 cat conftest.err >&5
de59c161
RD
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); } &&
3565d135
RR
30378 { ac_try='test -z "$ac_c_werror_flag"
30379 || test ! -s conftest.err'
ac1cb8d3
VS
30380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30381 (eval $ac_try) 2>&5
30382 ac_status=$?
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; } &&
30385 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30387 (eval $ac_try) 2>&5
30388 ac_status=$?
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); }; }; then
30391 wx_cv_spbcdata=yes
30392else
30393 echo "$as_me: failed program was:" >&5
30394sed 's/^/| /' conftest.$ac_ext >&5
30395
30396wx_cv_spbcdata=no
30397
30398fi
ac1cb8d3 30399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30400
30401
30402fi
30403echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30404echo "${ECHO_T}$wx_cv_spbcdata" >&6
30405
30406 if test $wx_cv_spbcdata = "yes"; then
30407 cat >>confdefs.h <<\_ACEOF
30408#define HAVE_SPBCDATA 1
30409_ACEOF
30410
30411 fi
a848cd7e
SC
30412 fi
30413
30414 if test "$TOOLKIT" = "PM" ; then
30415 TOOLKIT_DIR="os2"
30416 else
30417 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30418 fi
30419
a848cd7e 30420 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30421 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30422 WIDGET_SET=univ
a848cd7e
SC
30423 fi
30424
30425 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30426 DISTDIR="wx\$(TOOLKIT)"
30427else
30428 USE_GUI=0
30429
30430 TOOLKIT_DIR="base"
30431
30432 if test "$USE_WIN32" = 1 ; then
a848cd7e 30433 TOOLKIT="MSW"
a848cd7e
SC
30434 fi
30435
a848cd7e
SC
30436 GUIDIST="BASE_DIST"
30437 DISTDIR="wxBase"
30438fi
30439
30440
d12aef51
VZ
30441if test "$wxUSE_GUI" = "yes"; then
30442 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30443
30444for ac_header in X11/Xlib.h
30445do
30446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30447if eval "test \"\${$as_ac_Header+set}\" = set"; then
30448 echo "$as_me:$LINENO: checking for $ac_header" >&5
30449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30450if eval "test \"\${$as_ac_Header+set}\" = set"; then
30451 echo $ECHO_N "(cached) $ECHO_C" >&6
30452fi
30453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30454echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30455else
30456 # Is the header compilable?
30457echo "$as_me:$LINENO: checking $ac_header usability" >&5
30458echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30459cat >conftest.$ac_ext <<_ACEOF
30460/* confdefs.h. */
30461_ACEOF
30462cat confdefs.h >>conftest.$ac_ext
30463cat >>conftest.$ac_ext <<_ACEOF
30464/* end confdefs.h. */
30465$ac_includes_default
30466#include <$ac_header>
30467_ACEOF
30468rm -f conftest.$ac_objext
30469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30470 (eval $ac_compile) 2>conftest.er1
30471 ac_status=$?
30472 grep -v '^ *+' conftest.er1 >conftest.err
30473 rm -f conftest.er1
30474 cat conftest.err >&5
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); } &&
3565d135
RR
30477 { ac_try='test -z "$ac_c_werror_flag"
30478 || test ! -s conftest.err'
d12aef51
VZ
30479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30480 (eval $ac_try) 2>&5
30481 ac_status=$?
30482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483 (exit $ac_status); }; } &&
30484 { ac_try='test -s conftest.$ac_objext'
30485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30486 (eval $ac_try) 2>&5
30487 ac_status=$?
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); }; }; then
30490 ac_header_compiler=yes
30491else
30492 echo "$as_me: failed program was:" >&5
30493sed 's/^/| /' conftest.$ac_ext >&5
30494
30495ac_header_compiler=no
30496fi
30497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30498echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30499echo "${ECHO_T}$ac_header_compiler" >&6
30500
30501# Is the header present?
30502echo "$as_me:$LINENO: checking $ac_header presence" >&5
30503echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30504cat >conftest.$ac_ext <<_ACEOF
30505/* confdefs.h. */
30506_ACEOF
30507cat confdefs.h >>conftest.$ac_ext
30508cat >>conftest.$ac_ext <<_ACEOF
30509/* end confdefs.h. */
30510#include <$ac_header>
30511_ACEOF
30512if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30514 ac_status=$?
30515 grep -v '^ *+' conftest.er1 >conftest.err
30516 rm -f conftest.er1
30517 cat conftest.err >&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } >/dev/null; then
30520 if test -s conftest.err; then
30521 ac_cpp_err=$ac_c_preproc_warn_flag
30522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30523 else
30524 ac_cpp_err=
30525 fi
30526else
30527 ac_cpp_err=yes
30528fi
30529if test -z "$ac_cpp_err"; then
30530 ac_header_preproc=yes
30531else
30532 echo "$as_me: failed program was:" >&5
30533sed 's/^/| /' conftest.$ac_ext >&5
30534
30535 ac_header_preproc=no
30536fi
30537rm -f conftest.err conftest.$ac_ext
30538echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30539echo "${ECHO_T}$ac_header_preproc" >&6
30540
30541# So? What about this header?
30542case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30543 yes:no: )
30544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30545echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30547echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30548 ac_header_preproc=yes
30549 ;;
30550 no:yes:* )
30551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30552echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30554echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30556echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30558echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30560echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30562echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30563 (
30564 cat <<\_ASBOX
30565## ----------------------------------------- ##
30566## Report this to wx-dev@lists.wxwidgets.org ##
30567## ----------------------------------------- ##
30568_ASBOX
30569 ) |
30570 sed "s/^/$as_me: WARNING: /" >&2
30571 ;;
30572esac
30573echo "$as_me:$LINENO: checking for $ac_header" >&5
30574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30575if eval "test \"\${$as_ac_Header+set}\" = set"; then
30576 echo $ECHO_N "(cached) $ECHO_C" >&6
30577else
30578 eval "$as_ac_Header=\$ac_header_preproc"
30579fi
30580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30582
30583fi
30584if test `eval echo '${'$as_ac_Header'}'` = yes; then
30585 cat >>confdefs.h <<_ACEOF
30586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30587_ACEOF
30588
30589fi
30590
30591done
30592
30593
30594for ac_header in X11/XKBlib.h
30595do
30596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30597echo "$as_me:$LINENO: checking for $ac_header" >&5
30598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30599if eval "test \"\${$as_ac_Header+set}\" = set"; then
30600 echo $ECHO_N "(cached) $ECHO_C" >&6
30601else
30602 cat >conftest.$ac_ext <<_ACEOF
30603/* confdefs.h. */
30604_ACEOF
30605cat confdefs.h >>conftest.$ac_ext
30606cat >>conftest.$ac_ext <<_ACEOF
30607/* end confdefs.h. */
30608
30609 #if HAVE_X11_XLIB_H
30610 #include <X11/Xlib.h>
30611 #endif
30612
30613
30614#include <$ac_header>
30615_ACEOF
30616rm -f conftest.$ac_objext
30617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30618 (eval $ac_compile) 2>conftest.er1
30619 ac_status=$?
30620 grep -v '^ *+' conftest.er1 >conftest.err
30621 rm -f conftest.er1
30622 cat conftest.err >&5
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); } &&
3565d135
RR
30625 { ac_try='test -z "$ac_c_werror_flag"
30626 || test ! -s conftest.err'
d12aef51
VZ
30627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30628 (eval $ac_try) 2>&5
30629 ac_status=$?
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); }; } &&
30632 { ac_try='test -s conftest.$ac_objext'
30633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30634 (eval $ac_try) 2>&5
30635 ac_status=$?
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); }; }; then
30638 eval "$as_ac_Header=yes"
30639else
30640 echo "$as_me: failed program was:" >&5
30641sed 's/^/| /' conftest.$ac_ext >&5
30642
30643eval "$as_ac_Header=no"
30644fi
30645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30646fi
30647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30649if test `eval echo '${'$as_ac_Header'}'` = yes; then
30650 cat >>confdefs.h <<_ACEOF
30651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30652_ACEOF
30653
30654fi
30655
30656done
30657
30658 fi
30659fi
30660
a848cd7e
SC
30661
30662
30663IODBC_C_SRC=""
30664
30665
30666if test "$TOOLKIT" != "MSW" ; then
30667
30668 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30669
30670 if test "${ac_cv_header_sql_h+set}" = set; then
30671 echo "$as_me:$LINENO: checking for sql.h" >&5
30672echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30673if test "${ac_cv_header_sql_h+set}" = set; then
30674 echo $ECHO_N "(cached) $ECHO_C" >&6
30675fi
30676echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30677echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30678else
30679 # Is the header compilable?
30680echo "$as_me:$LINENO: checking sql.h usability" >&5
30681echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30682cat >conftest.$ac_ext <<_ACEOF
30683/* confdefs.h. */
30684_ACEOF
30685cat confdefs.h >>conftest.$ac_ext
30686cat >>conftest.$ac_ext <<_ACEOF
30687/* end confdefs.h. */
30688$ac_includes_default
30689#include <sql.h>
30690_ACEOF
30691rm -f conftest.$ac_objext
30692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30693 (eval $ac_compile) 2>conftest.er1
a848cd7e 30694 ac_status=$?
ac1cb8d3
VS
30695 grep -v '^ *+' conftest.er1 >conftest.err
30696 rm -f conftest.er1
30697 cat conftest.err >&5
a848cd7e
SC
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); } &&
3565d135
RR
30700 { ac_try='test -z "$ac_c_werror_flag"
30701 || test ! -s conftest.err'
ac1cb8d3
VS
30702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30703 (eval $ac_try) 2>&5
30704 ac_status=$?
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); }; } &&
30707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30709 (eval $ac_try) 2>&5
30710 ac_status=$?
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); }; }; then
30713 ac_header_compiler=yes
30714else
30715 echo "$as_me: failed program was:" >&5
30716sed 's/^/| /' conftest.$ac_ext >&5
30717
30718ac_header_compiler=no
30719fi
ac1cb8d3 30720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30721echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30722echo "${ECHO_T}$ac_header_compiler" >&6
30723
30724# Is the header present?
30725echo "$as_me:$LINENO: checking sql.h presence" >&5
30726echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30727cat >conftest.$ac_ext <<_ACEOF
30728/* confdefs.h. */
30729_ACEOF
30730cat confdefs.h >>conftest.$ac_ext
30731cat >>conftest.$ac_ext <<_ACEOF
30732/* end confdefs.h. */
30733#include <sql.h>
30734_ACEOF
30735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30737 ac_status=$?
30738 grep -v '^ *+' conftest.er1 >conftest.err
30739 rm -f conftest.er1
30740 cat conftest.err >&5
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); } >/dev/null; then
30743 if test -s conftest.err; then
30744 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30746 else
30747 ac_cpp_err=
30748 fi
30749else
30750 ac_cpp_err=yes
30751fi
30752if test -z "$ac_cpp_err"; then
30753 ac_header_preproc=yes
30754else
30755 echo "$as_me: failed program was:" >&5
30756sed 's/^/| /' conftest.$ac_ext >&5
30757
30758 ac_header_preproc=no
30759fi
30760rm -f conftest.err conftest.$ac_ext
30761echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30762echo "${ECHO_T}$ac_header_preproc" >&6
30763
30764# So? What about this header?
ac1cb8d3
VS
30765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30766 yes:no: )
a848cd7e
SC
30767 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30768echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30769 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30770echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30771 ac_header_preproc=yes
a848cd7e 30772 ;;
ac1cb8d3 30773 no:yes:* )
a848cd7e
SC
30774 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30775echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30776 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30777echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30778 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30779echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30780 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30781echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30782 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30783echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30784 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30785echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30786 (
30787 cat <<\_ASBOX
ac1cb8d3
VS
30788## ----------------------------------------- ##
30789## Report this to wx-dev@lists.wxwidgets.org ##
30790## ----------------------------------------- ##
a848cd7e
SC
30791_ASBOX
30792 ) |
30793 sed "s/^/$as_me: WARNING: /" >&2
30794 ;;
30795esac
30796echo "$as_me:$LINENO: checking for sql.h" >&5
30797echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30798if test "${ac_cv_header_sql_h+set}" = set; then
30799 echo $ECHO_N "(cached) $ECHO_C" >&6
30800else
30801 ac_cv_header_sql_h=$ac_header_preproc
30802fi
30803echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30804echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30805
30806fi
30807if test $ac_cv_header_sql_h = yes; then
30808 found_sql_h=1
30809fi
30810
30811
30812 if test "x$found_sql_h" = "x1" ; then
30813 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30814echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30815if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30816 echo $ECHO_N "(cached) $ECHO_C" >&6
30817else
30818 ac_check_lib_save_LIBS=$LIBS
30819LIBS="-liodbc $LIBS"
30820cat >conftest.$ac_ext <<_ACEOF
30821/* confdefs.h. */
30822_ACEOF
30823cat confdefs.h >>conftest.$ac_ext
30824cat >>conftest.$ac_ext <<_ACEOF
30825/* end confdefs.h. */
30826
30827/* Override any gcc2 internal prototype to avoid an error. */
30828#ifdef __cplusplus
30829extern "C"
30830#endif
30831/* We use char because int might match the return type of a gcc2
30832 builtin and then its argument prototype would still apply. */
30833char SQLAllocEnv ();
30834int
30835main ()
30836{
30837SQLAllocEnv ();
30838 ;
30839 return 0;
30840}
30841_ACEOF
30842rm -f conftest.$ac_objext conftest$ac_exeext
30843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30844 (eval $ac_link) 2>conftest.er1
a848cd7e 30845 ac_status=$?
ac1cb8d3
VS
30846 grep -v '^ *+' conftest.er1 >conftest.err
30847 rm -f conftest.er1
30848 cat conftest.err >&5
a848cd7e
SC
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); } &&
3565d135
RR
30851 { ac_try='test -z "$ac_c_werror_flag"
30852 || test ! -s conftest.err'
ac1cb8d3
VS
30853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30854 (eval $ac_try) 2>&5
30855 ac_status=$?
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); }; } &&
30858 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30860 (eval $ac_try) 2>&5
30861 ac_status=$?
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); }; }; then
30864 ac_cv_lib_iodbc_SQLAllocEnv=yes
30865else
30866 echo "$as_me: failed program was:" >&5
30867sed 's/^/| /' conftest.$ac_ext >&5
30868
30869ac_cv_lib_iodbc_SQLAllocEnv=no
30870fi
ac1cb8d3
VS
30871rm -f conftest.err conftest.$ac_objext \
30872 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30873LIBS=$ac_check_lib_save_LIBS
30874fi
30875echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30876echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30877if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30878 ODBC_LINK=" -liodbc"
30879else
30880
30881 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30882echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30883if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30884 echo $ECHO_N "(cached) $ECHO_C" >&6
30885else
30886 ac_check_lib_save_LIBS=$LIBS
30887LIBS="-lunixodbc $LIBS"
30888cat >conftest.$ac_ext <<_ACEOF
30889/* confdefs.h. */
30890_ACEOF
30891cat confdefs.h >>conftest.$ac_ext
30892cat >>conftest.$ac_ext <<_ACEOF
30893/* end confdefs.h. */
30894
30895/* Override any gcc2 internal prototype to avoid an error. */
30896#ifdef __cplusplus
30897extern "C"
30898#endif
30899/* We use char because int might match the return type of a gcc2
30900 builtin and then its argument prototype would still apply. */
30901char SQLAllocEnv ();
30902int
30903main ()
30904{
30905SQLAllocEnv ();
30906 ;
30907 return 0;
30908}
30909_ACEOF
30910rm -f conftest.$ac_objext conftest$ac_exeext
30911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30912 (eval $ac_link) 2>conftest.er1
a848cd7e 30913 ac_status=$?
ac1cb8d3
VS
30914 grep -v '^ *+' conftest.er1 >conftest.err
30915 rm -f conftest.er1
30916 cat conftest.err >&5
a848cd7e
SC
30917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918 (exit $ac_status); } &&
3565d135
RR
30919 { ac_try='test -z "$ac_c_werror_flag"
30920 || test ! -s conftest.err'
ac1cb8d3
VS
30921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30922 (eval $ac_try) 2>&5
30923 ac_status=$?
30924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30925 (exit $ac_status); }; } &&
30926 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928 (eval $ac_try) 2>&5
30929 ac_status=$?
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); }; }; then
30932 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30933else
30934 echo "$as_me: failed program was:" >&5
30935sed 's/^/| /' conftest.$ac_ext >&5
30936
30937ac_cv_lib_unixodbc_SQLAllocEnv=no
30938fi
ac1cb8d3
VS
30939rm -f conftest.err conftest.$ac_objext \
30940 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30941LIBS=$ac_check_lib_save_LIBS
30942fi
30943echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30944echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30945if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30946 ODBC_LINK=" -lunixodbc"
30947else
30948
30949 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30950echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30951if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30952 echo $ECHO_N "(cached) $ECHO_C" >&6
30953else
30954 ac_check_lib_save_LIBS=$LIBS
30955LIBS="-lodbc $LIBS"
30956cat >conftest.$ac_ext <<_ACEOF
30957/* confdefs.h. */
30958_ACEOF
30959cat confdefs.h >>conftest.$ac_ext
30960cat >>conftest.$ac_ext <<_ACEOF
30961/* end confdefs.h. */
30962
30963/* Override any gcc2 internal prototype to avoid an error. */
30964#ifdef __cplusplus
30965extern "C"
30966#endif
30967/* We use char because int might match the return type of a gcc2
30968 builtin and then its argument prototype would still apply. */
30969char SQLAllocEnv ();
30970int
30971main ()
30972{
30973SQLAllocEnv ();
30974 ;
30975 return 0;
30976}
30977_ACEOF
30978rm -f conftest.$ac_objext conftest$ac_exeext
30979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30980 (eval $ac_link) 2>conftest.er1
a848cd7e 30981 ac_status=$?
ac1cb8d3
VS
30982 grep -v '^ *+' conftest.er1 >conftest.err
30983 rm -f conftest.er1
30984 cat conftest.err >&5
a848cd7e
SC
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); } &&
3565d135
RR
30987 { ac_try='test -z "$ac_c_werror_flag"
30988 || test ! -s conftest.err'
ac1cb8d3
VS
30989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30990 (eval $ac_try) 2>&5
30991 ac_status=$?
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); }; } &&
30994 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30996 (eval $ac_try) 2>&5
30997 ac_status=$?
30998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999 (exit $ac_status); }; }; then
31000 ac_cv_lib_odbc_SQLAllocEnv=yes
31001else
31002 echo "$as_me: failed program was:" >&5
31003sed 's/^/| /' conftest.$ac_ext >&5
31004
31005ac_cv_lib_odbc_SQLAllocEnv=no
31006fi
ac1cb8d3
VS
31007rm -f conftest.err conftest.$ac_objext \
31008 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31009LIBS=$ac_check_lib_save_LIBS
31010fi
31011echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31012echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31013if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31014 ODBC_LINK=" -lodbc"
31015fi
31016
31017
31018fi
31019
31020
31021fi
31022
31023 fi
31024 if test "x$ODBC_LINK" = "x" ; then
31025 if test "$wxUSE_ODBC" = "sys" ; then
31026 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31027echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31028 { (exit 1); exit 1; }; }
31029 else
31030 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31031echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31032 wxUSE_ODBC=builtin
31033 fi
31034 else
31035 wxUSE_ODBC=sys
31036 fi
31037 fi
a848cd7e 31038
2da0c077
RD
31039 if test "$wxUSE_ODBC" = "builtin" ; then
31040 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31041#define wxUSE_BUILTIN_IODBC 1
31042_ACEOF
31043
a848cd7e
SC
31044 fi
31045fi
31046
2da0c077
RD
31047if test "$wxUSE_ODBC" != "no" ; then
31048 cat >>confdefs.h <<\_ACEOF
31049#define wxUSE_ODBC 1
31050_ACEOF
31051
31052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31053
5ff751d6 31054 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31055fi
a848cd7e 31056
01cb68df 31057
a848cd7e 31058if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31059 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31060 echo "$as_me:$LINENO: checking for Xinerama" >&5
31061echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31062
0ad5d837
VZ
31063 ac_find_libraries=
31064 for ac_dir in $SEARCH_LIB;
31065 do
31066 for ac_extension in a so sl dylib dll.a; do
31067 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31068 ac_find_libraries=$ac_dir
31069 break 2
31070 fi
31071 done
31072 done
31073
a848cd7e
SC
31074 if test "$ac_find_libraries" != "" ; then
31075
0ad5d837 31076 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31077 ac_path_to_link=""
31078 else
0ad5d837
VZ
31079 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31080 result=$?
31081 if test $result = 0; then
31082 ac_path_to_link=""
31083 else
31084 ac_path_to_link=" -L$ac_find_libraries"
31085 fi
a848cd7e
SC
31086 fi
31087
31088 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31089 LDFLAGS="$LDFLAGS $ac_path_to_link"
31090 fi
31091 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31092 echo "$as_me:$LINENO: result: yes" >&5
31093echo "${ECHO_T}yes" >&6
31094
31095 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31096echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31097
0ad5d837
VZ
31098 ac_find_libraries=
31099 for ac_dir in $SEARCH_LIB;
a848cd7e 31100 do
3eca31dc 31101 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31102 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31103 ac_find_libraries=$ac_dir
31104 break 2
31105 fi
31106 done
31107 done
31108
31109 if test "$ac_find_libraries" != "" ; then
31110 echo "$as_me:$LINENO: result: yes" >&5
31111echo "${ECHO_T}yes" >&6
31112
31113for ac_header in X11/extensions/xf86vmode.h
31114do
31115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31116echo "$as_me:$LINENO: checking for $ac_header" >&5
31117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31118if eval "test \"\${$as_ac_Header+set}\" = set"; then
31119 echo $ECHO_N "(cached) $ECHO_C" >&6
31120else
31121 cat >conftest.$ac_ext <<_ACEOF
31122/* confdefs.h. */
31123_ACEOF
31124cat confdefs.h >>conftest.$ac_ext
31125cat >>conftest.$ac_ext <<_ACEOF
31126/* end confdefs.h. */
31127
31128 #if HAVE_X11_XLIB_H
31129 #include <X11/Xlib.h>
31130 #endif
31131
31132
31133#include <$ac_header>
31134_ACEOF
31135rm -f conftest.$ac_objext
31136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31137 (eval $ac_compile) 2>conftest.er1
a848cd7e 31138 ac_status=$?
ac1cb8d3
VS
31139 grep -v '^ *+' conftest.er1 >conftest.err
31140 rm -f conftest.er1
31141 cat conftest.err >&5
a848cd7e
SC
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } &&
3565d135
RR
31144 { ac_try='test -z "$ac_c_werror_flag"
31145 || test ! -s conftest.err'
ac1cb8d3
VS
31146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31147 (eval $ac_try) 2>&5
31148 ac_status=$?
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; } &&
31151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31153 (eval $ac_try) 2>&5
31154 ac_status=$?
31155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); }; }; then
31157 eval "$as_ac_Header=yes"
31158else
31159 echo "$as_me: failed program was:" >&5
31160sed 's/^/| /' conftest.$ac_ext >&5
31161
31162eval "$as_ac_Header=no"
31163fi
ac1cb8d3 31164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31165fi
31166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31167echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31168if test `eval echo '${'$as_ac_Header'}'` = yes; then
31169 cat >>confdefs.h <<_ACEOF
31170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31171_ACEOF
31172
31173 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31174
31175fi
31176
31177done
31178
31179 else
31180 echo "$as_me:$LINENO: result: no" >&5
31181echo "${ECHO_T}no" >&6
31182 fi
31183
31184 else
31185 echo "$as_me:$LINENO: result: no" >&5
31186echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31187 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31188echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31189 wxUSE_DISPLAY="no"
31190 fi
01cb68df
RG
31191 elif test "$wxUSE_MSW" = 1; then
31192
31193
31194for ac_header in multimon.h ddraw.h
31195do
31196as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31197echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31199if eval "test \"\${$as_ac_Header+set}\" = set"; then
31200 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31201else
5294a27e 31202 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31203/* confdefs.h. */
31204_ACEOF
31205cat confdefs.h >>conftest.$ac_ext
31206cat >>conftest.$ac_ext <<_ACEOF
31207/* end confdefs.h. */
5294a27e
VZ
31208#include <windows.h>
31209
01cb68df
RG
31210#include <$ac_header>
31211_ACEOF
31212rm -f conftest.$ac_objext
31213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31214 (eval $ac_compile) 2>conftest.er1
01cb68df 31215 ac_status=$?
ac1cb8d3
VS
31216 grep -v '^ *+' conftest.er1 >conftest.err
31217 rm -f conftest.er1
31218 cat conftest.err >&5
01cb68df
RG
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); } &&
3565d135
RR
31221 { ac_try='test -z "$ac_c_werror_flag"
31222 || test ! -s conftest.err'
ac1cb8d3
VS
31223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31224 (eval $ac_try) 2>&5
31225 ac_status=$?
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; } &&
31228 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31230 (eval $ac_try) 2>&5
31231 ac_status=$?
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; }; then
5294a27e 31234 eval "$as_ac_Header=yes"
01cb68df
RG
31235else
31236 echo "$as_me: failed program was:" >&5
31237sed 's/^/| /' conftest.$ac_ext >&5
31238
5294a27e 31239eval "$as_ac_Header=no"
01cb68df 31240fi
ac1cb8d3 31241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31242fi
31243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31245if test `eval echo '${'$as_ac_Header'}'` = yes; then
31246 cat >>confdefs.h <<_ACEOF
31247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31248_ACEOF
31249
31250else
31251
5294a27e
VZ
31252 wxUSE_DISPLAY="no"
31253 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 31254echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
31255
31256fi
31257
31258done
31259
a848cd7e
SC
31260 fi
31261fi
31262
31263
31264USE_OPENGL=0
31265if test "$wxUSE_OPENGL" = "yes"; then
31266 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31267 OPENGL_LIBS="-framework OpenGL -framework AGL"
31268 elif test "$wxUSE_MSW" = 1; then
31269 OPENGL_LIBS="-lopengl32 -lglu32"
31270 else
31271
31272
31273ac_find_includes=
31274for ac_dir in $SEARCH_INCLUDE /usr/include;
31275 do
31276 if test -f "$ac_dir/GL/gl.h"; then
31277 ac_find_includes=$ac_dir
31278 break
31279 fi
31280 done
31281
31282 if test "$ac_find_includes" != "" ; then
31283 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31284echo "${ECHO_T}found in $ac_find_includes" >&6
31285
31286 if test "x$ac_find_includes" = "x/usr/include"; then
31287 ac_path_to_include=""
31288 else
31289 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31290 result=$?
31291 if test $result = 0; then
31292 ac_path_to_include=""
31293 else
31294 ac_path_to_include=" -I$ac_find_includes"
31295 fi
31296 fi
31297
c92ad099 31298 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31299 fi
31300
31301 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31302 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31303echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31304if test "${ac_cv_header_GL_gl_h+set}" = set; then
31305 echo $ECHO_N "(cached) $ECHO_C" >&6
31306fi
31307echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31308echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31309else
31310 # Is the header compilable?
31311echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31312echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31313cat >conftest.$ac_ext <<_ACEOF
31314/* confdefs.h. */
31315_ACEOF
31316cat confdefs.h >>conftest.$ac_ext
31317cat >>conftest.$ac_ext <<_ACEOF
31318/* end confdefs.h. */
31319$ac_includes_default
31320#include <GL/gl.h>
31321_ACEOF
31322rm -f conftest.$ac_objext
31323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31324 (eval $ac_compile) 2>conftest.er1
a848cd7e 31325 ac_status=$?
ac1cb8d3
VS
31326 grep -v '^ *+' conftest.er1 >conftest.err
31327 rm -f conftest.er1
31328 cat conftest.err >&5
a848cd7e
SC
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); } &&
3565d135
RR
31331 { ac_try='test -z "$ac_c_werror_flag"
31332 || test ! -s conftest.err'
ac1cb8d3
VS
31333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31334 (eval $ac_try) 2>&5
31335 ac_status=$?
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); }; } &&
31338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
31344 ac_header_compiler=yes
31345else
31346 echo "$as_me: failed program was:" >&5
31347sed 's/^/| /' conftest.$ac_ext >&5
31348
31349ac_header_compiler=no
31350fi
ac1cb8d3 31351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31353echo "${ECHO_T}$ac_header_compiler" >&6
31354
31355# Is the header present?
31356echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31357echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31358cat >conftest.$ac_ext <<_ACEOF
31359/* confdefs.h. */
31360_ACEOF
31361cat confdefs.h >>conftest.$ac_ext
31362cat >>conftest.$ac_ext <<_ACEOF
31363/* end confdefs.h. */
31364#include <GL/gl.h>
31365_ACEOF
31366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31368 ac_status=$?
31369 grep -v '^ *+' conftest.er1 >conftest.err
31370 rm -f conftest.er1
31371 cat conftest.err >&5
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); } >/dev/null; then
31374 if test -s conftest.err; then
31375 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31377 else
31378 ac_cpp_err=
31379 fi
31380else
31381 ac_cpp_err=yes
31382fi
31383if test -z "$ac_cpp_err"; then
31384 ac_header_preproc=yes
31385else
31386 echo "$as_me: failed program was:" >&5
31387sed 's/^/| /' conftest.$ac_ext >&5
31388
31389 ac_header_preproc=no
31390fi
31391rm -f conftest.err conftest.$ac_ext
31392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31393echo "${ECHO_T}$ac_header_preproc" >&6
31394
31395# So? What about this header?
ac1cb8d3
VS
31396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31397 yes:no: )
a848cd7e
SC
31398 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31399echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31400 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31401echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31402 ac_header_preproc=yes
a848cd7e 31403 ;;
ac1cb8d3 31404 no:yes:* )
a848cd7e
SC
31405 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31406echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31407 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31408echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31409 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31410echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31411 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31412echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31413 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31414echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31415 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31416echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31417 (
31418 cat <<\_ASBOX
ac1cb8d3
VS
31419## ----------------------------------------- ##
31420## Report this to wx-dev@lists.wxwidgets.org ##
31421## ----------------------------------------- ##
a848cd7e
SC
31422_ASBOX
31423 ) |
31424 sed "s/^/$as_me: WARNING: /" >&2
31425 ;;
31426esac
31427echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31428echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31429if test "${ac_cv_header_GL_gl_h+set}" = set; then
31430 echo $ECHO_N "(cached) $ECHO_C" >&6
31431else
31432 ac_cv_header_GL_gl_h=$ac_header_preproc
31433fi
31434echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31435echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31436
31437fi
31438if test $ac_cv_header_GL_gl_h = yes; then
31439
31440 found_gl=0
31441
31442 echo "$as_me:$LINENO: checking for -lGL" >&5
31443echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31444
0ad5d837
VZ
31445 ac_find_libraries=
31446 for ac_dir in $SEARCH_LIB;
a848cd7e 31447 do
3eca31dc 31448 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31449 if test -f "$ac_dir/libGL.$ac_extension"; then
31450 ac_find_libraries=$ac_dir
31451 break 2
31452 fi
31453 done
31454 done
31455
31456 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31457 echo "$as_me:$LINENO: result: yes" >&5
31458echo "${ECHO_T}yes" >&6
31459
a848cd7e 31460
0ad5d837 31461 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31462 ac_path_to_link=""
31463 else
0ad5d837
VZ
31464 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31465 result=$?
31466 if test $result = 0; then
31467 ac_path_to_link=""
31468 else
31469 ac_path_to_link=" -L$ac_find_libraries"
31470 fi
a848cd7e
SC
31471 fi
31472
31473 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31474 LDFLAGS_GL="$ac_path_to_link"
31475 fi
31476
69120ee4
VZ
31477 echo "$as_me:$LINENO: checking for -lGLU" >&5
31478echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31479
0ad5d837
VZ
31480 ac_find_libraries=
31481 for ac_dir in $SEARCH_LIB;
31482 do
31483 for ac_extension in a so sl dylib dll.a; do
31484 if test -f "$ac_dir/libGLU.$ac_extension"; then
31485 ac_find_libraries=$ac_dir
31486 break 2
31487 fi
31488 done
31489 done
31490
a848cd7e
SC
31491 if test "$ac_find_libraries" != "" ; then
31492
0ad5d837 31493 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31494 ac_path_to_link=""
31495 else
0ad5d837
VZ
31496 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31497 result=$?
31498 if test $result = 0; then
31499 ac_path_to_link=""
31500 else
31501 ac_path_to_link=" -L$ac_find_libraries"
31502 fi
a848cd7e
SC
31503 fi
31504
31505 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31506 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31507 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31508 fi
31509
31510 found_gl=1
31511 OPENGL_LIBS="-lGL -lGLU"
31512 echo "$as_me:$LINENO: result: yes" >&5
31513echo "${ECHO_T}yes" >&6
69120ee4
VZ
31514 else
31515 echo "$as_me:$LINENO: result: no" >&5
31516echo "${ECHO_T}no" >&6
a848cd7e 31517 fi
69120ee4
VZ
31518 else
31519 echo "$as_me:$LINENO: result: no" >&5
31520echo "${ECHO_T}no" >&6
a848cd7e
SC
31521 fi
31522
31523 if test "$found_gl" != 1; then
a848cd7e
SC
31524 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31525echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31526
0ad5d837
VZ
31527 ac_find_libraries=
31528 for ac_dir in $SEARCH_LIB;
a848cd7e 31529 do
3eca31dc 31530 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31531 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31532 ac_find_libraries=$ac_dir
31533 break 2
31534 fi
31535 done
31536 done
31537
31538 if test "$ac_find_libraries" != "" ; then
31539
0ad5d837 31540 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31541 ac_path_to_link=""
31542 else
0ad5d837
VZ
31543 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31544 result=$?
31545 if test $result = 0; then
31546 ac_path_to_link=""
31547 else
31548 ac_path_to_link=" -L$ac_find_libraries"
31549 fi
a848cd7e
SC
31550 fi
31551
31552 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31553 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31554 echo "$as_me:$LINENO: result: yes" >&5
31555echo "${ECHO_T}yes" >&6
31556 else
31557 echo "$as_me:$LINENO: result: no" >&5
31558echo "${ECHO_T}no" >&6
31559 fi
31560 fi
31561
31562fi
31563
31564
31565
31566 if test "x$OPENGL_LIBS" = "x"; then
31567 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31568echo "$as_me: error: OpenGL libraries not available" >&2;}
31569 { (exit 1); exit 1; }; }
31570 fi
31571 fi
31572
31573 if test "$wxUSE_OPENGL" = "yes"; then
31574 USE_OPENGL=1
31575 cat >>confdefs.h <<\_ACEOF
31576#define wxUSE_OPENGL 1
31577_ACEOF
31578
31579 cat >>confdefs.h <<\_ACEOF
31580#define wxUSE_GLCANVAS 1
31581_ACEOF
31582
31583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31584 fi
31585fi
31586
a848cd7e
SC
31587
31588if test -n "$TOOLKIT" ; then
31589 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31590fi
31591
a848cd7e
SC
31592
31593
31594if test "$wxUSE_SHARED" = "yes"; then
31595 case "${host}" in
31596 *-pc-msdosdjgpp )
31597 wxUSE_SHARED=no
31598 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31599echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31600 ;;
31601 esac
31602fi
31603
a848cd7e 31604if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31605
31606
31607 found_versioning=no
31608
31609
31610 if test $found_versioning = no ; then
31611 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31612echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31613if test "${wx_cv_version_script+set}" = set; then
31614 echo $ECHO_N "(cached) $ECHO_C" >&6
31615else
31616
31617 echo "VER_1 { *; };" >conftest.sym
31618 echo "int main() { return 0; }" >conftest.cpp
31619
31620 if { ac_try='
31621 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31622 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31624 (eval $ac_try) 2>&5
31625 ac_status=$?
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); }; } ; then
31628 if test -s conftest.stderr ; then
31629 wx_cv_version_script=no
31630 else
31631 wx_cv_version_script=yes
31632 fi
31633 else
31634 wx_cv_version_script=no
31635 fi
e5d4b470
MW
31636
31637 if test $wx_cv_version_script = yes
31638 then
31639 echo "struct B { virtual ~B() { } }; \
31640 struct D : public B { }; \
31641 void F() { D d; }" > conftest.cpp
31642
31643 if { ac_try='
31644 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31645 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31647 (eval $ac_try) 2>&5
31648 ac_status=$?
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); }; } &&
31651 { ac_try='
31652 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31653 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31655 (eval $ac_try) 2>&5
31656 ac_status=$?
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); }; }
31659 then
31660 if { ac_try='
31661 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31662 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31664 (eval $ac_try) 2>&5
31665 ac_status=$?
31666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667 (exit $ac_status); }; }
31668 then
31669 wx_cv_version_script=yes
31670 else
31671 wx_cv_version_script=no
31672 fi
31673 fi
31674 fi
31675
a848cd7e 31676 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31677 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31678
31679fi
31680echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31681echo "${ECHO_T}$wx_cv_version_script" >&6
31682 if test $wx_cv_version_script = yes ; then
31683 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31684 fi
31685 fi
31686
31687
31688 case "${host}" in
31689 *-*-linux* | *-*-gnu* )
31690 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31691 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31692 ;;
a848cd7e
SC
31693
31694 *-*-solaris2* )
31695 if test "$GCC" = yes ; then
c92ad099 31696 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
31697
31698 saveLdflags="$LDFLAGS"
31699 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31700 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31701echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31702 cat >conftest.$ac_ext <<_ACEOF
31703/* confdefs.h. */
31704_ACEOF
31705cat confdefs.h >>conftest.$ac_ext
31706cat >>conftest.$ac_ext <<_ACEOF
31707/* end confdefs.h. */
31708
31709int
31710main ()
31711{
31712
31713 ;
31714 return 0;
31715}
31716_ACEOF
31717rm -f conftest.$ac_objext conftest$ac_exeext
31718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31719 (eval $ac_link) 2>conftest.er1
a848cd7e 31720 ac_status=$?
ac1cb8d3
VS
31721 grep -v '^ *+' conftest.er1 >conftest.err
31722 rm -f conftest.er1
31723 cat conftest.err >&5
a848cd7e
SC
31724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725 (exit $ac_status); } &&
3565d135
RR
31726 { ac_try='test -z "$ac_c_werror_flag"
31727 || test ! -s conftest.err'
ac1cb8d3
VS
31728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31729 (eval $ac_try) 2>&5
31730 ac_status=$?
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); }; } &&
31733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31735 (eval $ac_try) 2>&5
31736 ac_status=$?
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); }; }; then
31739
31740 echo "$as_me:$LINENO: result: yes" >&5
31741echo "${ECHO_T}yes" >&6
31742 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31743 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31744
31745else
31746 echo "$as_me: failed program was:" >&5
31747sed 's/^/| /' conftest.$ac_ext >&5
31748
31749
31750 echo "$as_me:$LINENO: result: no" >&5
31751echo "${ECHO_T}no" >&6
31752 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31753echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31754 LDFLAGS="$saveLdflags -Wl,-R,/"
31755 cat >conftest.$ac_ext <<_ACEOF
31756/* confdefs.h. */
31757_ACEOF
31758cat confdefs.h >>conftest.$ac_ext
31759cat >>conftest.$ac_ext <<_ACEOF
31760/* end confdefs.h. */
31761
31762int
31763main ()
31764{
31765
31766 ;
31767 return 0;
31768}
31769_ACEOF
31770rm -f conftest.$ac_objext conftest$ac_exeext
31771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31772 (eval $ac_link) 2>conftest.er1
a848cd7e 31773 ac_status=$?
ac1cb8d3
VS
31774 grep -v '^ *+' conftest.er1 >conftest.err
31775 rm -f conftest.er1
31776 cat conftest.err >&5
a848cd7e
SC
31777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); } &&
3565d135
RR
31779 { ac_try='test -z "$ac_c_werror_flag"
31780 || test ! -s conftest.err'
ac1cb8d3
VS
31781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31782 (eval $ac_try) 2>&5
31783 ac_status=$?
31784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); }; } &&
31786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31788 (eval $ac_try) 2>&5
31789 ac_status=$?
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); }; }; then
31792
ffa0583f 31793 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31794echo "${ECHO_T}yes" >&6
ffa0583f
RL
31795 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31796 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31797
a848cd7e
SC
31798else
31799 echo "$as_me: failed program was:" >&5
31800sed 's/^/| /' conftest.$ac_ext >&5
31801
31802
31803 echo "$as_me:$LINENO: result: no" >&5
31804echo "${ECHO_T}no" >&6
31805
31806fi
ac1cb8d3
VS
31807rm -f conftest.err conftest.$ac_objext \
31808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31809
31810fi
ac1cb8d3
VS
31811rm -f conftest.err conftest.$ac_objext \
31812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31813 LDFLAGS="$saveLdflags"
31814 else
a848cd7e 31815 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31816 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31817 fi
31818 ;;
31819
cfda0ea8 31820 *-*-darwin* )
0caebc27
MW
31821 install_name_tool=`which install_name_tool`
31822 if test "$install_name_tool" -a -x "$install_name_tool"; then
31823 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31824 cat <<EOF >change-install-names
a848cd7e
SC
31825#!/bin/sh
31826libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31827inst_cmd="install_name_tool "
31828for i in \${libnames} ; do
31829 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31830done
31831\${inst_cmd} \${3}
31832EOF
0caebc27
MW
31833 chmod +x change-install-names
31834 fi
a848cd7e
SC
31835 ;;
31836
31837 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
31838 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
31839 ;;
a848cd7e 31840
81f90336
MW
31841 *-*-hpux* )
31842 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31843 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 31844 ;;
81f90336 31845
a848cd7e 31846 esac
ceec2216 31847
ffa0583f
RL
31848 if test $wxUSE_RPATH = "no"; then
31849 SAMPLES_RPATH_FLAG=''
31850 SAMPLES_RPATH_POSTLINK=''
31851 WXCONFIG_RPATH=''
31852 fi
31853
31854 SHARED=1
31855
31856else
31857
ceec2216
RL
31858 config_linkage_component="-static"
31859 SHARED=0
ffa0583f 31860
ceec2216 31861fi
a848cd7e 31862
a848cd7e 31863
ceec2216
RL
31864UNICODE=0
31865lib_unicode_suffix=
31866WX_CHARTYPE="ansi"
31867if test "$wxUSE_UNICODE" = "yes"; then
31868 lib_unicode_suffix=u
31869 WX_CHARTYPE="unicode"
31870 UNICODE=1
a848cd7e
SC
31871fi
31872
ceec2216
RL
31873lib_debug_suffix=
31874WX_DEBUGTYPE="release"
31875DEBUG_FLAG=0
31876if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31877 lib_debug_suffix=d
31878 WX_DEBUGTYPE="debug"
31879 DEBUG_FLAG=1
31880fi
a848cd7e 31881
ceec2216
RL
31882WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31883WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31884
ceec2216
RL
31885DEBUG_INFO=0
31886if test "$wxUSE_DEBUG_INFO" = "yes"; then
31887 DEBUG_INFO=1
31888fi
a848cd7e 31889
ceec2216 31890WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31891
ceec2216 31892TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31893
ceec2216 31894TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31895
ceec2216
RL
31896if test "$cross_compiling" = "yes"; then
31897 HOST_SUFFIX="-$host_alias"
31898 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31899 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31900fi
31901
dd21ced8 31902WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31903if test "${TOOLKIT_DIR}" = "os2"; then
31904 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31905else
31906 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31907fi
ceec2216
RL
31908
31909
31910
1d1af5ea
DE
31911if test "$wxUSE_COCOA" = 1; then
31912
31913
31914 ac_ext=c
31915ac_cpp='$CPP $CPPFLAGS'
31916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31918ac_compiler_gnu=$ac_cv_c_compiler_gnu
31919
31920ac_ext=m
31921
31922 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31923echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
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#include <AppKit/NSEvent.h>
31931#include <CoreFoundation/CoreFoundation.h>
31932
31933int
31934main ()
31935{
31936
31937 ;
31938 return 0;
31939}
31940_ACEOF
31941rm -f conftest.$ac_objext
31942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31943 (eval $ac_compile) 2>conftest.er1
31944 ac_status=$?
31945 grep -v '^ *+' conftest.er1 >conftest.err
31946 rm -f conftest.er1
31947 cat conftest.err >&5
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); } &&
3565d135
RR
31950 { ac_try='test -z "$ac_c_werror_flag"
31951 || test ! -s conftest.err'
1d1af5ea
DE
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'
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 echo "$as_me:$LINENO: result: no" >&5
31964echo "${ECHO_T}no" >&6
31965else
31966 echo "$as_me: failed program was:" >&5
31967sed 's/^/| /' conftest.$ac_ext >&5
31968
31969echo "$as_me:$LINENO: result: yes" >&5
31970echo "${ECHO_T}yes" >&6
31971 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31972echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31973 cat >conftest.$ac_ext <<_ACEOF
31974/* confdefs.h. */
31975_ACEOF
31976cat confdefs.h >>conftest.$ac_ext
31977cat >>conftest.$ac_ext <<_ACEOF
31978/* end confdefs.h. */
31979#define __Point__ 1
31980#include <AppKit/NSEvent.h>
31981#include <CoreFoundation/CoreFoundation.h>
31982
31983int
31984main ()
31985{
31986
31987 ;
31988 return 0;
31989}
31990_ACEOF
31991rm -f conftest.$ac_objext
31992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31993 (eval $ac_compile) 2>conftest.er1
31994 ac_status=$?
31995 grep -v '^ *+' conftest.er1 >conftest.err
31996 rm -f conftest.er1
31997 cat conftest.err >&5
31998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999 (exit $ac_status); } &&
3565d135
RR
32000 { ac_try='test -z "$ac_c_werror_flag"
32001 || test ! -s conftest.err'
1d1af5ea
DE
32002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32003 (eval $ac_try) 2>&5
32004 ac_status=$?
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); }; } &&
32007 { ac_try='test -s conftest.$ac_objext'
32008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32009 (eval $ac_try) 2>&5
32010 ac_status=$?
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); }; }; then
32013 echo "$as_me:$LINENO: result: yes" >&5
32014echo "${ECHO_T}yes" >&6
32015 cat >>confdefs.h <<\_ACEOF
32016#define __Point__ 1
32017_ACEOF
32018
32019
32020else
32021 echo "$as_me: failed program was:" >&5
32022sed 's/^/| /' conftest.$ac_ext >&5
32023
32024{ { echo "$as_me:$LINENO: error: no
32025See \`config.log' for more details." >&5
32026echo "$as_me: error: no
32027See \`config.log' for more details." >&2;}
32028 { (exit 1); exit 1; }; }
32029
32030fi
32031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32032
32033fi
32034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32035 ac_ext=c
32036ac_cpp='$CPP $CPPFLAGS'
32037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32039ac_compiler_gnu=$ac_cv_c_compiler_gnu
32040
32041fi
32042
a848cd7e 32043if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32044 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32045 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32046
a848cd7e 32047 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32048
32049 # Extract the first word of "Rez", so it can be a program name with args.
32050set dummy Rez; ac_word=$2
32051echo "$as_me:$LINENO: checking for $ac_word" >&5
32052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32053if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32054 echo $ECHO_N "(cached) $ECHO_C" >&6
32055else
8ced02f6
DE
32056 if test -n "$REZ"; then
32057 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32058else
32059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32060for as_dir in $PATH
32061do
32062 IFS=$as_save_IFS
32063 test -z "$as_dir" && as_dir=.
32064 for ac_exec_ext in '' $ac_executable_extensions; do
32065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32066 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32068 break 2
32069 fi
32070done
32071done
32072
8ced02f6 32073 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32074fi
32075fi
8ced02f6
DE
32076REZ=$ac_cv_prog_REZ
32077if test -n "$REZ"; then
32078 echo "$as_me:$LINENO: result: $REZ" >&5
32079echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32080else
32081 echo "$as_me:$LINENO: result: no" >&5
32082echo "${ECHO_T}no" >&6
32083fi
32084
32085 # Extract the first word of "DeRez", so it can be a program name with args.
32086set dummy DeRez; ac_word=$2
32087echo "$as_me:$LINENO: checking for $ac_word" >&5
32088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32089if test "${ac_cv_prog_DEREZ+set}" = set; then
32090 echo $ECHO_N "(cached) $ECHO_C" >&6
32091else
32092 if test -n "$DEREZ"; then
32093 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32094else
32095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32096for as_dir in $PATH
32097do
32098 IFS=$as_save_IFS
32099 test -z "$as_dir" && as_dir=.
32100 for ac_exec_ext in '' $ac_executable_extensions; do
32101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32102 ac_cv_prog_DEREZ="DeRez"
32103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32104 break 2
32105 fi
32106done
32107done
32108
32109 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32110fi
32111fi
32112DEREZ=$ac_cv_prog_DEREZ
32113if test -n "$DEREZ"; then
32114 echo "$as_me:$LINENO: result: $DEREZ" >&5
32115echo "${ECHO_T}$DEREZ" >&6
32116else
32117 echo "$as_me:$LINENO: result: no" >&5
32118echo "${ECHO_T}no" >&6
32119fi
32120
32121 # Extract the first word of "SetFile", so it can be a program name with args.
32122set dummy SetFile; ac_word=$2
32123echo "$as_me:$LINENO: checking for $ac_word" >&5
32124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32125if test "${ac_cv_prog_SETFILE+set}" = set; then
32126 echo $ECHO_N "(cached) $ECHO_C" >&6
32127else
32128 if test -n "$SETFILE"; then
32129 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32130else
32131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32132for as_dir in $PATH
32133do
32134 IFS=$as_save_IFS
32135 test -z "$as_dir" && as_dir=.
32136 for ac_exec_ext in '' $ac_executable_extensions; do
32137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32138 ac_cv_prog_SETFILE="SetFile"
32139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32140 break 2
32141 fi
32142done
32143done
32144
32145 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32146fi
32147fi
32148SETFILE=$ac_cv_prog_SETFILE
32149if test -n "$SETFILE"; then
32150 echo "$as_me:$LINENO: result: $SETFILE" >&5
32151echo "${ECHO_T}$SETFILE" >&6
32152else
32153 echo "$as_me:$LINENO: result: no" >&5
32154echo "${ECHO_T}no" >&6
32155fi
32156
32157
32158 MACSETFILE="\$(SETFILE)"
32159
32160 if test "$wxUSE_MAC" = 1; then
8ced02f6 32161 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32162 RESCOMP="$REZ"
32163 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32164 else
004ee6da
RL
32165 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32166 RESCOMP="echo -n \| $REZ"
32167 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32168 fi
004ee6da 32169
a848cd7e 32170else
ffa0583f 32171 MACSETFILE="@true"
a848cd7e 32172
8ced02f6 32173 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32174 RESCOMP="emxbind"
32175 WXCONFIG_RESFLAGS="-ep"
32176
32177 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32178 else
8ced02f6 32179 POSTLINK_COMMAND="@true"
a848cd7e 32180 fi
004ee6da 32181
a848cd7e
SC
32182fi
32183
32184
32185
32186echo "$as_me:$LINENO: checking for mode_t" >&5
32187echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32188if test "${ac_cv_type_mode_t+set}" = set; then
32189 echo $ECHO_N "(cached) $ECHO_C" >&6
32190else
32191 cat >conftest.$ac_ext <<_ACEOF
32192/* confdefs.h. */
32193_ACEOF
32194cat confdefs.h >>conftest.$ac_ext
32195cat >>conftest.$ac_ext <<_ACEOF
32196/* end confdefs.h. */
32197$ac_includes_default
32198int
32199main ()
32200{
32201if ((mode_t *) 0)
32202 return 0;
32203if (sizeof (mode_t))
32204 return 0;
32205 ;
32206 return 0;
32207}
32208_ACEOF
32209rm -f conftest.$ac_objext
32210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32211 (eval $ac_compile) 2>conftest.er1
a848cd7e 32212 ac_status=$?
ac1cb8d3
VS
32213 grep -v '^ *+' conftest.er1 >conftest.err
32214 rm -f conftest.er1
32215 cat conftest.err >&5
a848cd7e
SC
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); } &&
3565d135
RR
32218 { ac_try='test -z "$ac_c_werror_flag"
32219 || test ! -s conftest.err'
ac1cb8d3
VS
32220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32221 (eval $ac_try) 2>&5
32222 ac_status=$?
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); }; } &&
32225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32227 (eval $ac_try) 2>&5
32228 ac_status=$?
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); }; }; then
32231 ac_cv_type_mode_t=yes
32232else
32233 echo "$as_me: failed program was:" >&5
32234sed 's/^/| /' conftest.$ac_ext >&5
32235
32236ac_cv_type_mode_t=no
32237fi
ac1cb8d3 32238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32239fi
32240echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32241echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32242if test $ac_cv_type_mode_t = yes; then
32243 :
32244else
32245
32246cat >>confdefs.h <<_ACEOF
32247#define mode_t int
32248_ACEOF
32249
32250fi
32251
32252echo "$as_me:$LINENO: checking for off_t" >&5
32253echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32254if test "${ac_cv_type_off_t+set}" = set; then
32255 echo $ECHO_N "(cached) $ECHO_C" >&6
32256else
32257 cat >conftest.$ac_ext <<_ACEOF
32258/* confdefs.h. */
32259_ACEOF
32260cat confdefs.h >>conftest.$ac_ext
32261cat >>conftest.$ac_ext <<_ACEOF
32262/* end confdefs.h. */
32263$ac_includes_default
32264int
32265main ()
32266{
32267if ((off_t *) 0)
32268 return 0;
32269if (sizeof (off_t))
32270 return 0;
32271 ;
32272 return 0;
32273}
32274_ACEOF
32275rm -f conftest.$ac_objext
32276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32277 (eval $ac_compile) 2>conftest.er1
a848cd7e 32278 ac_status=$?
ac1cb8d3
VS
32279 grep -v '^ *+' conftest.er1 >conftest.err
32280 rm -f conftest.er1
32281 cat conftest.err >&5
a848cd7e
SC
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); } &&
3565d135
RR
32284 { ac_try='test -z "$ac_c_werror_flag"
32285 || test ! -s conftest.err'
ac1cb8d3
VS
32286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32287 (eval $ac_try) 2>&5
32288 ac_status=$?
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); }; } &&
32291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32293 (eval $ac_try) 2>&5
32294 ac_status=$?
32295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); }; }; then
32297 ac_cv_type_off_t=yes
32298else
32299 echo "$as_me: failed program was:" >&5
32300sed 's/^/| /' conftest.$ac_ext >&5
32301
32302ac_cv_type_off_t=no
32303fi
ac1cb8d3 32304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32305fi
32306echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32307echo "${ECHO_T}$ac_cv_type_off_t" >&6
32308if test $ac_cv_type_off_t = yes; then
32309 :
32310else
32311
32312cat >>confdefs.h <<_ACEOF
32313#define off_t long
32314_ACEOF
32315
32316fi
32317
32318echo "$as_me:$LINENO: checking for pid_t" >&5
32319echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32320if test "${ac_cv_type_pid_t+set}" = set; then
32321 echo $ECHO_N "(cached) $ECHO_C" >&6
32322else
32323 cat >conftest.$ac_ext <<_ACEOF
32324/* confdefs.h. */
32325_ACEOF
32326cat confdefs.h >>conftest.$ac_ext
32327cat >>conftest.$ac_ext <<_ACEOF
32328/* end confdefs.h. */
32329$ac_includes_default
32330int
32331main ()
32332{
32333if ((pid_t *) 0)
32334 return 0;
32335if (sizeof (pid_t))
32336 return 0;
32337 ;
32338 return 0;
32339}
32340_ACEOF
32341rm -f conftest.$ac_objext
32342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32343 (eval $ac_compile) 2>conftest.er1
a848cd7e 32344 ac_status=$?
ac1cb8d3
VS
32345 grep -v '^ *+' conftest.er1 >conftest.err
32346 rm -f conftest.er1
32347 cat conftest.err >&5
a848cd7e
SC
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); } &&
3565d135
RR
32350 { ac_try='test -z "$ac_c_werror_flag"
32351 || test ! -s conftest.err'
ac1cb8d3
VS
32352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32353 (eval $ac_try) 2>&5
32354 ac_status=$?
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); }; } &&
32357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32359 (eval $ac_try) 2>&5
32360 ac_status=$?
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); }; }; then
32363 ac_cv_type_pid_t=yes
32364else
32365 echo "$as_me: failed program was:" >&5
32366sed 's/^/| /' conftest.$ac_ext >&5
32367
32368ac_cv_type_pid_t=no
32369fi
ac1cb8d3 32370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32371fi
32372echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32373echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32374if test $ac_cv_type_pid_t = yes; then
32375 :
32376else
32377
32378cat >>confdefs.h <<_ACEOF
32379#define pid_t int
32380_ACEOF
32381
32382fi
32383
32384echo "$as_me:$LINENO: checking for size_t" >&5
32385echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32386if test "${ac_cv_type_size_t+set}" = set; then
32387 echo $ECHO_N "(cached) $ECHO_C" >&6
32388else
32389 cat >conftest.$ac_ext <<_ACEOF
32390/* confdefs.h. */
32391_ACEOF
32392cat confdefs.h >>conftest.$ac_ext
32393cat >>conftest.$ac_ext <<_ACEOF
32394/* end confdefs.h. */
32395$ac_includes_default
32396int
32397main ()
32398{
32399if ((size_t *) 0)
32400 return 0;
32401if (sizeof (size_t))
32402 return 0;
32403 ;
32404 return 0;
32405}
32406_ACEOF
32407rm -f conftest.$ac_objext
32408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32409 (eval $ac_compile) 2>conftest.er1
a848cd7e 32410 ac_status=$?
ac1cb8d3
VS
32411 grep -v '^ *+' conftest.er1 >conftest.err
32412 rm -f conftest.er1
32413 cat conftest.err >&5
a848cd7e
SC
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); } &&
3565d135
RR
32416 { ac_try='test -z "$ac_c_werror_flag"
32417 || test ! -s conftest.err'
ac1cb8d3
VS
32418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419 (eval $ac_try) 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; } &&
32423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32425 (eval $ac_try) 2>&5
32426 ac_status=$?
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; }; then
32429 ac_cv_type_size_t=yes
32430else
32431 echo "$as_me: failed program was:" >&5
32432sed 's/^/| /' conftest.$ac_ext >&5
32433
32434ac_cv_type_size_t=no
32435fi
ac1cb8d3 32436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32437fi
32438echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32439echo "${ECHO_T}$ac_cv_type_size_t" >&6
32440if test $ac_cv_type_size_t = yes; then
32441 :
32442else
32443
32444cat >>confdefs.h <<_ACEOF
32445#define size_t unsigned
32446_ACEOF
32447
32448fi
32449
32450echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32451echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32452if test "${ac_cv_type_uid_t+set}" = set; then
32453 echo $ECHO_N "(cached) $ECHO_C" >&6
32454else
32455 cat >conftest.$ac_ext <<_ACEOF
32456/* confdefs.h. */
32457_ACEOF
32458cat confdefs.h >>conftest.$ac_ext
32459cat >>conftest.$ac_ext <<_ACEOF
32460/* end confdefs.h. */
32461#include <sys/types.h>
32462
32463_ACEOF
32464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32465 $EGREP "uid_t" >/dev/null 2>&1; then
32466 ac_cv_type_uid_t=yes
32467else
32468 ac_cv_type_uid_t=no
32469fi
32470rm -f conftest*
32471
32472fi
32473echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32474echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32475if test $ac_cv_type_uid_t = no; then
32476
32477cat >>confdefs.h <<\_ACEOF
32478#define uid_t int
32479_ACEOF
32480
32481
32482cat >>confdefs.h <<\_ACEOF
32483#define gid_t int
32484_ACEOF
32485
32486fi
32487
32488
d51253e8
RL
32489echo "$as_me:$LINENO: checking for ssize_t" >&5
32490echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32491if test "${ac_cv_type_ssize_t+set}" = set; then
32492 echo $ECHO_N "(cached) $ECHO_C" >&6
32493else
32494 cat >conftest.$ac_ext <<_ACEOF
32495/* confdefs.h. */
32496_ACEOF
32497cat confdefs.h >>conftest.$ac_ext
32498cat >>conftest.$ac_ext <<_ACEOF
32499/* end confdefs.h. */
32500$ac_includes_default
32501int
32502main ()
32503{
32504if ((ssize_t *) 0)
32505 return 0;
32506if (sizeof (ssize_t))
32507 return 0;
32508 ;
32509 return 0;
32510}
32511_ACEOF
32512rm -f conftest.$ac_objext
32513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32514 (eval $ac_compile) 2>conftest.er1
32515 ac_status=$?
32516 grep -v '^ *+' conftest.er1 >conftest.err
32517 rm -f conftest.er1
32518 cat conftest.err >&5
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); } &&
3565d135
RR
32521 { ac_try='test -z "$ac_c_werror_flag"
32522 || test ! -s conftest.err'
d51253e8
RL
32523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32524 (eval $ac_try) 2>&5
32525 ac_status=$?
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 (exit $ac_status); }; } &&
32528 { ac_try='test -s conftest.$ac_objext'
32529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32530 (eval $ac_try) 2>&5
32531 ac_status=$?
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); }; }; then
32534 ac_cv_type_ssize_t=yes
32535else
32536 echo "$as_me: failed program was:" >&5
32537sed 's/^/| /' conftest.$ac_ext >&5
32538
32539ac_cv_type_ssize_t=no
32540fi
32541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32542fi
32543echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32544echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32545if test $ac_cv_type_ssize_t = yes; then
32546
32547cat >>confdefs.h <<_ACEOF
32548#define HAVE_SSIZE_T 1
32549_ACEOF
32550
32551
32552fi
32553
32554
a848cd7e
SC
32555
32556
32557ac_ext=cc
32558ac_cpp='$CXXCPP $CPPFLAGS'
32559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32562
32563echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32564echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32565if test "${wx_cv_size_t_is_uint+set}" = set; then
32566 echo $ECHO_N "(cached) $ECHO_C" >&6
32567else
32568
32569 cat >conftest.$ac_ext <<_ACEOF
32570/* confdefs.h. */
32571_ACEOF
32572cat confdefs.h >>conftest.$ac_ext
32573cat >>conftest.$ac_ext <<_ACEOF
32574/* end confdefs.h. */
32575#include <stddef.h>
32576int
32577main ()
32578{
32579
32580 return 0; }
32581
32582 struct Foo { void foo(size_t); void foo(unsigned int); };
32583
32584 int bar() {
32585
32586 ;
32587 return 0;
32588}
32589_ACEOF
32590rm -f conftest.$ac_objext
32591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32592 (eval $ac_compile) 2>conftest.er1
a848cd7e 32593 ac_status=$?
ac1cb8d3
VS
32594 grep -v '^ *+' conftest.er1 >conftest.err
32595 rm -f conftest.er1
32596 cat conftest.err >&5
a848cd7e
SC
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); } &&
3565d135
RR
32599 { ac_try='test -z "$ac_cxx_werror_flag"
32600 || test ! -s conftest.err'
ac1cb8d3
VS
32601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32602 (eval $ac_try) 2>&5
32603 ac_status=$?
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); }; } &&
32606 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32608 (eval $ac_try) 2>&5
32609 ac_status=$?
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); }; }; then
32612 wx_cv_size_t_is_uint=no
32613else
32614 echo "$as_me: failed program was:" >&5
32615sed 's/^/| /' conftest.$ac_ext >&5
32616
32617wx_cv_size_t_is_uint=yes
32618
32619fi
ac1cb8d3 32620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32621
32622
32623fi
32624echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32625echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32626
32627if test "$wx_cv_size_t_is_uint" = "yes"; then
32628 cat >>confdefs.h <<\_ACEOF
32629#define wxSIZE_T_IS_UINT 1
32630_ACEOF
32631
32632else
32633 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32634echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32635if test "${wx_cv_size_t_is_ulong+set}" = set; then
32636 echo $ECHO_N "(cached) $ECHO_C" >&6
32637else
32638 cat >conftest.$ac_ext <<_ACEOF
32639/* confdefs.h. */
32640_ACEOF
32641cat confdefs.h >>conftest.$ac_ext
32642cat >>conftest.$ac_ext <<_ACEOF
32643/* end confdefs.h. */
32644#include <stddef.h>
32645int
32646main ()
32647{
32648
32649 return 0; }
32650
32651 struct Foo { void foo(size_t); void foo(unsigned long); };
32652
32653 int bar() {
32654
32655 ;
32656 return 0;
32657}
32658_ACEOF
32659rm -f conftest.$ac_objext
32660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32661 (eval $ac_compile) 2>conftest.er1
a848cd7e 32662 ac_status=$?
ac1cb8d3
VS
32663 grep -v '^ *+' conftest.er1 >conftest.err
32664 rm -f conftest.er1
32665 cat conftest.err >&5
a848cd7e
SC
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); } &&
3565d135
RR
32668 { ac_try='test -z "$ac_cxx_werror_flag"
32669 || test ! -s conftest.err'
ac1cb8d3
VS
32670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32671 (eval $ac_try) 2>&5
32672 ac_status=$?
32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674 (exit $ac_status); }; } &&
32675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32677 (eval $ac_try) 2>&5
32678 ac_status=$?
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); }; }; then
32681 wx_cv_size_t_is_ulong=no
32682else
32683 echo "$as_me: failed program was:" >&5
32684sed 's/^/| /' conftest.$ac_ext >&5
32685
32686wx_cv_size_t_is_ulong=yes
32687
32688fi
ac1cb8d3 32689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32690
32691fi
32692echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32693echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32694
32695 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32696 cat >>confdefs.h <<\_ACEOF
32697#define wxSIZE_T_IS_ULONG 1
32698_ACEOF
32699
32700 fi
32701fi
32702
32703ac_ext=c
32704ac_cpp='$CPP $CPPFLAGS'
32705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32707ac_compiler_gnu=$ac_cv_c_compiler_gnu
32708
32709
32710
32711echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32712echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32713if test "${wx_cv_struct_pw_gecos+set}" = set; then
32714 echo $ECHO_N "(cached) $ECHO_C" >&6
32715else
32716
32717 cat >conftest.$ac_ext <<_ACEOF
32718/* confdefs.h. */
32719_ACEOF
32720cat confdefs.h >>conftest.$ac_ext
32721cat >>conftest.$ac_ext <<_ACEOF
32722/* end confdefs.h. */
32723#include <pwd.h>
32724int
32725main ()
32726{
32727
32728 char *p;
32729 struct passwd *pw;
32730 p = pw->pw_gecos;
32731
32732 ;
32733 return 0;
32734}
32735_ACEOF
32736rm -f conftest.$ac_objext
32737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32738 (eval $ac_compile) 2>conftest.er1
a848cd7e 32739 ac_status=$?
ac1cb8d3
VS
32740 grep -v '^ *+' conftest.er1 >conftest.err
32741 rm -f conftest.er1
32742 cat conftest.err >&5
a848cd7e
SC
32743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744 (exit $ac_status); } &&
3565d135
RR
32745 { ac_try='test -z "$ac_c_werror_flag"
32746 || test ! -s conftest.err'
ac1cb8d3
VS
32747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32748 (eval $ac_try) 2>&5
32749 ac_status=$?
32750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751 (exit $ac_status); }; } &&
32752 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32754 (eval $ac_try) 2>&5
32755 ac_status=$?
32756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32757 (exit $ac_status); }; }; then
32758
32759 wx_cv_struct_pw_gecos=yes
32760
32761else
32762 echo "$as_me: failed program was:" >&5
32763sed 's/^/| /' conftest.$ac_ext >&5
32764
32765
32766 wx_cv_struct_pw_gecos=no
32767
32768
32769fi
ac1cb8d3 32770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32771
32772
32773fi
32774echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32775echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32776
32777if test "$wx_cv_struct_pw_gecos" = "yes"; then
32778 cat >>confdefs.h <<\_ACEOF
32779#define HAVE_PW_GECOS 1
32780_ACEOF
32781
32782fi
32783
32784
47a7e797 32785if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32786 cat >>confdefs.h <<\_ACEOF
32787#define wxUSE_WCHAR_T 1
32788_ACEOF
32789
32790
32791 WCSLEN_FOUND=0
32792 WCHAR_LINK=
32793
32794for ac_func in wcslen
32795do
32796as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32797echo "$as_me:$LINENO: checking for $ac_func" >&5
32798echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32799if eval "test \"\${$as_ac_var+set}\" = set"; then
32800 echo $ECHO_N "(cached) $ECHO_C" >&6
32801else
32802 cat >conftest.$ac_ext <<_ACEOF
32803/* confdefs.h. */
32804_ACEOF
32805cat confdefs.h >>conftest.$ac_ext
32806cat >>conftest.$ac_ext <<_ACEOF
32807/* end confdefs.h. */
ac1cb8d3
VS
32808/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32810#define $ac_func innocuous_$ac_func
32811
a848cd7e
SC
32812/* System header to define __stub macros and hopefully few prototypes,
32813 which can conflict with char $ac_func (); below.
32814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32815 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32816
a848cd7e
SC
32817#ifdef __STDC__
32818# include <limits.h>
32819#else
32820# include <assert.h>
32821#endif
ac1cb8d3
VS
32822
32823#undef $ac_func
32824
a848cd7e
SC
32825/* Override any gcc2 internal prototype to avoid an error. */
32826#ifdef __cplusplus
32827extern "C"
32828{
32829#endif
32830/* We use char because int might match the return type of a gcc2
32831 builtin and then its argument prototype would still apply. */
32832char $ac_func ();
32833/* The GNU C library defines this for functions which it implements
32834 to always fail with ENOSYS. Some functions are actually named
32835 something starting with __ and the normal name is an alias. */
32836#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32837choke me
32838#else
32839char (*f) () = $ac_func;
32840#endif
32841#ifdef __cplusplus
32842}
32843#endif
32844
32845int
32846main ()
32847{
32848return f != $ac_func;
32849 ;
32850 return 0;
32851}
32852_ACEOF
32853rm -f conftest.$ac_objext conftest$ac_exeext
32854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32855 (eval $ac_link) 2>conftest.er1
a848cd7e 32856 ac_status=$?
ac1cb8d3
VS
32857 grep -v '^ *+' conftest.er1 >conftest.err
32858 rm -f conftest.er1
32859 cat conftest.err >&5
a848cd7e
SC
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); } &&
3565d135
RR
32862 { ac_try='test -z "$ac_c_werror_flag"
32863 || test ! -s conftest.err'
ac1cb8d3
VS
32864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32865 (eval $ac_try) 2>&5
32866 ac_status=$?
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); }; } &&
32869 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32871 (eval $ac_try) 2>&5
32872 ac_status=$?
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874 (exit $ac_status); }; }; then
32875 eval "$as_ac_var=yes"
32876else
32877 echo "$as_me: failed program was:" >&5
32878sed 's/^/| /' conftest.$ac_ext >&5
32879
32880eval "$as_ac_var=no"
32881fi
ac1cb8d3
VS
32882rm -f conftest.err conftest.$ac_objext \
32883 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32884fi
32885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32887if test `eval echo '${'$as_ac_var'}'` = yes; then
32888 cat >>confdefs.h <<_ACEOF
32889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32890_ACEOF
32891 WCSLEN_FOUND=1
32892fi
32893done
32894
32895
32896 if test "$WCSLEN_FOUND" = 0; then
32897 if test "$TOOLKIT" = "MSW"; then
32898 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32899echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32900if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32901 echo $ECHO_N "(cached) $ECHO_C" >&6
32902else
32903 ac_check_lib_save_LIBS=$LIBS
32904LIBS="-lmsvcrt $LIBS"
32905cat >conftest.$ac_ext <<_ACEOF
32906/* confdefs.h. */
32907_ACEOF
32908cat confdefs.h >>conftest.$ac_ext
32909cat >>conftest.$ac_ext <<_ACEOF
32910/* end confdefs.h. */
32911
32912/* Override any gcc2 internal prototype to avoid an error. */
32913#ifdef __cplusplus
32914extern "C"
32915#endif
32916/* We use char because int might match the return type of a gcc2
32917 builtin and then its argument prototype would still apply. */
32918char wcslen ();
32919int
32920main ()
32921{
32922wcslen ();
32923 ;
32924 return 0;
32925}
32926_ACEOF
32927rm -f conftest.$ac_objext conftest$ac_exeext
32928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32929 (eval $ac_link) 2>conftest.er1
a848cd7e 32930 ac_status=$?
ac1cb8d3
VS
32931 grep -v '^ *+' conftest.er1 >conftest.err
32932 rm -f conftest.er1
32933 cat conftest.err >&5
a848cd7e
SC
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); } &&
3565d135
RR
32936 { ac_try='test -z "$ac_c_werror_flag"
32937 || test ! -s conftest.err'
ac1cb8d3
VS
32938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32939 (eval $ac_try) 2>&5
32940 ac_status=$?
32941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942 (exit $ac_status); }; } &&
32943 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32945 (eval $ac_try) 2>&5
32946 ac_status=$?
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); }; }; then
32949 ac_cv_lib_msvcrt_wcslen=yes
32950else
32951 echo "$as_me: failed program was:" >&5
32952sed 's/^/| /' conftest.$ac_ext >&5
32953
32954ac_cv_lib_msvcrt_wcslen=no
32955fi
ac1cb8d3
VS
32956rm -f conftest.err conftest.$ac_objext \
32957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32958LIBS=$ac_check_lib_save_LIBS
32959fi
32960echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32961echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32962if test $ac_cv_lib_msvcrt_wcslen = yes; then
32963 WCHAR_OK=1
32964fi
32965
32966 else
32967 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32968echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32969if test "${ac_cv_lib_w_wcslen+set}" = set; then
32970 echo $ECHO_N "(cached) $ECHO_C" >&6
32971else
32972 ac_check_lib_save_LIBS=$LIBS
32973LIBS="-lw $LIBS"
32974cat >conftest.$ac_ext <<_ACEOF
32975/* confdefs.h. */
32976_ACEOF
32977cat confdefs.h >>conftest.$ac_ext
32978cat >>conftest.$ac_ext <<_ACEOF
32979/* end confdefs.h. */
32980
32981/* Override any gcc2 internal prototype to avoid an error. */
32982#ifdef __cplusplus
32983extern "C"
32984#endif
32985/* We use char because int might match the return type of a gcc2
32986 builtin and then its argument prototype would still apply. */
32987char wcslen ();
32988int
32989main ()
32990{
32991wcslen ();
32992 ;
32993 return 0;
32994}
32995_ACEOF
32996rm -f conftest.$ac_objext conftest$ac_exeext
32997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32998 (eval $ac_link) 2>conftest.er1
a848cd7e 32999 ac_status=$?
ac1cb8d3
VS
33000 grep -v '^ *+' conftest.er1 >conftest.err
33001 rm -f conftest.er1
33002 cat conftest.err >&5
a848cd7e
SC
33003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004 (exit $ac_status); } &&
3565d135
RR
33005 { ac_try='test -z "$ac_c_werror_flag"
33006 || test ! -s conftest.err'
ac1cb8d3
VS
33007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33008 (eval $ac_try) 2>&5
33009 ac_status=$?
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); }; } &&
33012 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33014 (eval $ac_try) 2>&5
33015 ac_status=$?
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); }; }; then
33018 ac_cv_lib_w_wcslen=yes
33019else
33020 echo "$as_me: failed program was:" >&5
33021sed 's/^/| /' conftest.$ac_ext >&5
33022
33023ac_cv_lib_w_wcslen=no
33024fi
ac1cb8d3
VS
33025rm -f conftest.err conftest.$ac_objext \
33026 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33027LIBS=$ac_check_lib_save_LIBS
33028fi
33029echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33030echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33031if test $ac_cv_lib_w_wcslen = yes; then
33032
33033 WCHAR_LINK=" -lw"
33034 WCSLEN_FOUND=1
33035
33036fi
33037
33038 fi
33039 fi
33040
33041 if test "$WCSLEN_FOUND" = 1; then
33042 cat >>confdefs.h <<\_ACEOF
33043#define HAVE_WCSLEN 1
33044_ACEOF
33045
33046 fi
33047
efdf6afe 33048 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33049 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33050 fi
33051
efdf6afe
VZ
33052 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33053echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33054if test "${ac_cv_type_mbstate_t+set}" = set; then
33055 echo $ECHO_N "(cached) $ECHO_C" >&6
33056else
33057 cat >conftest.$ac_ext <<_ACEOF
33058/* confdefs.h. */
33059_ACEOF
33060cat confdefs.h >>conftest.$ac_ext
33061cat >>conftest.$ac_ext <<_ACEOF
33062/* end confdefs.h. */
33063#include <wchar.h>
33064
33065int
33066main ()
33067{
33068if ((mbstate_t *) 0)
33069 return 0;
33070if (sizeof (mbstate_t))
33071 return 0;
33072 ;
33073 return 0;
33074}
33075_ACEOF
33076rm -f conftest.$ac_objext
33077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33078 (eval $ac_compile) 2>conftest.er1
33079 ac_status=$?
33080 grep -v '^ *+' conftest.er1 >conftest.err
33081 rm -f conftest.er1
33082 cat conftest.err >&5
33083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); } &&
3565d135
RR
33085 { ac_try='test -z "$ac_c_werror_flag"
33086 || test ! -s conftest.err'
efdf6afe
VZ
33087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33088 (eval $ac_try) 2>&5
33089 ac_status=$?
33090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091 (exit $ac_status); }; } &&
33092 { ac_try='test -s conftest.$ac_objext'
33093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33094 (eval $ac_try) 2>&5
33095 ac_status=$?
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); }; }; then
33098 ac_cv_type_mbstate_t=yes
33099else
33100 echo "$as_me: failed program was:" >&5
33101sed 's/^/| /' conftest.$ac_ext >&5
33102
33103ac_cv_type_mbstate_t=no
33104fi
33105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33106fi
33107echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33108echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33109if test $ac_cv_type_mbstate_t = yes; then
33110
33111cat >>confdefs.h <<_ACEOF
33112#define HAVE_MBSTATE_T 1
33113_ACEOF
33114
a848cd7e
SC
33115
33116for ac_func in wcsrtombs
33117do
33118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33119echo "$as_me:$LINENO: checking for $ac_func" >&5
33120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33121if eval "test \"\${$as_ac_var+set}\" = set"; then
33122 echo $ECHO_N "(cached) $ECHO_C" >&6
33123else
33124 cat >conftest.$ac_ext <<_ACEOF
33125/* confdefs.h. */
33126_ACEOF
33127cat confdefs.h >>conftest.$ac_ext
33128cat >>conftest.$ac_ext <<_ACEOF
33129/* end confdefs.h. */
ac1cb8d3
VS
33130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33132#define $ac_func innocuous_$ac_func
33133
a848cd7e
SC
33134/* System header to define __stub macros and hopefully few prototypes,
33135 which can conflict with char $ac_func (); below.
33136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33137 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33138
a848cd7e
SC
33139#ifdef __STDC__
33140# include <limits.h>
33141#else
33142# include <assert.h>
33143#endif
ac1cb8d3
VS
33144
33145#undef $ac_func
33146
a848cd7e
SC
33147/* Override any gcc2 internal prototype to avoid an error. */
33148#ifdef __cplusplus
33149extern "C"
33150{
33151#endif
33152/* We use char because int might match the return type of a gcc2
33153 builtin and then its argument prototype would still apply. */
33154char $ac_func ();
33155/* The GNU C library defines this for functions which it implements
33156 to always fail with ENOSYS. Some functions are actually named
33157 something starting with __ and the normal name is an alias. */
33158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33159choke me
33160#else
33161char (*f) () = $ac_func;
33162#endif
33163#ifdef __cplusplus
33164}
33165#endif
33166
33167int
33168main ()
33169{
33170return f != $ac_func;
33171 ;
33172 return 0;
33173}
33174_ACEOF
33175rm -f conftest.$ac_objext conftest$ac_exeext
33176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33177 (eval $ac_link) 2>conftest.er1
a848cd7e 33178 ac_status=$?
ac1cb8d3
VS
33179 grep -v '^ *+' conftest.er1 >conftest.err
33180 rm -f conftest.er1
33181 cat conftest.err >&5
a848cd7e
SC
33182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183 (exit $ac_status); } &&
3565d135
RR
33184 { ac_try='test -z "$ac_c_werror_flag"
33185 || test ! -s conftest.err'
ac1cb8d3
VS
33186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33187 (eval $ac_try) 2>&5
33188 ac_status=$?
33189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190 (exit $ac_status); }; } &&
33191 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33193 (eval $ac_try) 2>&5
33194 ac_status=$?
33195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33196 (exit $ac_status); }; }; then
33197 eval "$as_ac_var=yes"
33198else
33199 echo "$as_me: failed program was:" >&5
33200sed 's/^/| /' conftest.$ac_ext >&5
33201
33202eval "$as_ac_var=no"
33203fi
ac1cb8d3
VS
33204rm -f conftest.err conftest.$ac_objext \
33205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33206fi
33207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33209if test `eval echo '${'$as_ac_var'}'` = yes; then
33210 cat >>confdefs.h <<_ACEOF
33211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33212_ACEOF
33213
33214fi
33215done
33216
efdf6afe
VZ
33217fi
33218
a848cd7e
SC
33219else
33220 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33221echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33222fi
33223
33224
33225
33226ac_ext=cc
33227ac_cpp='$CXXCPP $CPPFLAGS'
33228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33231
33232
33233
4a767dd5
VZ
33234
33235for ac_func in snprintf vsnprintf
a848cd7e
SC
33236do
33237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33238echo "$as_me:$LINENO: checking for $ac_func" >&5
33239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33240if eval "test \"\${$as_ac_var+set}\" = set"; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33242else
33243 cat >conftest.$ac_ext <<_ACEOF
33244/* confdefs.h. */
33245_ACEOF
33246cat confdefs.h >>conftest.$ac_ext
33247cat >>conftest.$ac_ext <<_ACEOF
33248/* end confdefs.h. */
ac1cb8d3
VS
33249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33251#define $ac_func innocuous_$ac_func
33252
a848cd7e
SC
33253/* System header to define __stub macros and hopefully few prototypes,
33254 which can conflict with char $ac_func (); below.
33255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33256 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33257
a848cd7e
SC
33258#ifdef __STDC__
33259# include <limits.h>
33260#else
33261# include <assert.h>
33262#endif
ac1cb8d3
VS
33263
33264#undef $ac_func
33265
a848cd7e
SC
33266/* Override any gcc2 internal prototype to avoid an error. */
33267#ifdef __cplusplus
33268extern "C"
33269{
33270#endif
33271/* We use char because int might match the return type of a gcc2
33272 builtin and then its argument prototype would still apply. */
33273char $ac_func ();
33274/* The GNU C library defines this for functions which it implements
33275 to always fail with ENOSYS. Some functions are actually named
33276 something starting with __ and the normal name is an alias. */
33277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33278choke me
33279#else
33280char (*f) () = $ac_func;
33281#endif
33282#ifdef __cplusplus
33283}
33284#endif
33285
33286int
33287main ()
33288{
33289return f != $ac_func;
33290 ;
33291 return 0;
33292}
33293_ACEOF
33294rm -f conftest.$ac_objext conftest$ac_exeext
33295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33296 (eval $ac_link) 2>conftest.er1
a848cd7e 33297 ac_status=$?
ac1cb8d3
VS
33298 grep -v '^ *+' conftest.er1 >conftest.err
33299 rm -f conftest.er1
33300 cat conftest.err >&5
a848cd7e
SC
33301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302 (exit $ac_status); } &&
3565d135
RR
33303 { ac_try='test -z "$ac_cxx_werror_flag"
33304 || test ! -s conftest.err'
ac1cb8d3
VS
33305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33306 (eval $ac_try) 2>&5
33307 ac_status=$?
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); }; } &&
33310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33312 (eval $ac_try) 2>&5
33313 ac_status=$?
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); }; }; then
33316 eval "$as_ac_var=yes"
33317else
33318 echo "$as_me: failed program was:" >&5
33319sed 's/^/| /' conftest.$ac_ext >&5
33320
33321eval "$as_ac_var=no"
33322fi
ac1cb8d3
VS
33323rm -f conftest.err conftest.$ac_objext \
33324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33325fi
33326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33327echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33328if test `eval echo '${'$as_ac_var'}'` = yes; then
33329 cat >>confdefs.h <<_ACEOF
33330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33331_ACEOF
33332
33333fi
33334done
33335
33336
33337if test "$ac_cv_func_vsnprintf" = "yes"; then
33338 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33339echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33340if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33341 echo $ECHO_N "(cached) $ECHO_C" >&6
33342else
33343
efdf6afe 33344 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33345/* confdefs.h. */
33346_ACEOF
33347cat confdefs.h >>conftest.$ac_ext
33348cat >>conftest.$ac_ext <<_ACEOF
33349/* end confdefs.h. */
33350
33351 #include <stdio.h>
33352 #include <stdarg.h>
efdf6afe
VZ
33353 #ifdef __MSL__
33354 #if __MSL__ >= 0x6000
33355 namespace std {}
33356 using namespace std;
33357 #endif
33358 #endif
a848cd7e
SC
33359
33360int
33361main ()
33362{
33363
33364 char *buf;
33365 va_list ap;
62fa8b3a 33366 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33367
33368 ;
33369 return 0;
33370}
33371_ACEOF
33372rm -f conftest.$ac_objext
33373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33374 (eval $ac_compile) 2>conftest.er1
33375 ac_status=$?
33376 grep -v '^ *+' conftest.er1 >conftest.err
33377 rm -f conftest.er1
33378 cat conftest.err >&5
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); } &&
3565d135
RR
33381 { ac_try='test -z "$ac_cxx_werror_flag"
33382 || test ! -s conftest.err'
c122b164
DE
33383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33384 (eval $ac_try) 2>&5
33385 ac_status=$?
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 (exit $ac_status); }; } &&
33388 { ac_try='test -s conftest.$ac_objext'
33389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33390 (eval $ac_try) 2>&5
33391 ac_status=$?
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; }; then
33394 wx_cv_func_vsnprintf_decl=yes
33395else
33396 echo "$as_me: failed program was:" >&5
33397sed 's/^/| /' conftest.$ac_ext >&5
33398
a848cd7e
SC
33399wx_cv_func_vsnprintf_decl=no
33400
33401fi
ac1cb8d3 33402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33403
33404
33405fi
33406echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33407echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33408
33409 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33410 cat >>confdefs.h <<\_ACEOF
33411#define HAVE_VSNPRINTF_DECL 1
33412_ACEOF
33413
62fa8b3a
MW
33414
33415 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33416echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33417if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33418 echo $ECHO_N "(cached) $ECHO_C" >&6
33419else
33420
33421 cat >conftest.$ac_ext <<_ACEOF
33422/* confdefs.h. */
33423_ACEOF
33424cat confdefs.h >>conftest.$ac_ext
33425cat >>conftest.$ac_ext <<_ACEOF
33426/* end confdefs.h. */
33427
33428 #include <stdio.h>
33429 #include <stdarg.h>
33430 #ifdef __MSL__
33431 #if __MSL__ >= 0x6000
33432 namespace std {}
33433 using namespace std;
33434 #endif
33435 #endif
33436
33437int
33438main ()
33439{
33440
33441 char *buf;
33442 va_list ap;
33443 const char *fmt = "%s";
33444 vsnprintf(buf, 10u, fmt, ap);
33445
33446 ;
33447 return 0;
33448}
33449_ACEOF
33450rm -f conftest.$ac_objext
33451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33452 (eval $ac_compile) 2>conftest.er1
33453 ac_status=$?
33454 grep -v '^ *+' conftest.er1 >conftest.err
33455 rm -f conftest.er1
33456 cat conftest.err >&5
33457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33458 (exit $ac_status); } &&
3565d135
RR
33459 { ac_try='test -z "$ac_cxx_werror_flag"
33460 || test ! -s conftest.err'
62fa8b3a
MW
33461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33462 (eval $ac_try) 2>&5
33463 ac_status=$?
33464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465 (exit $ac_status); }; } &&
33466 { ac_try='test -s conftest.$ac_objext'
33467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33468 (eval $ac_try) 2>&5
33469 ac_status=$?
33470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471 (exit $ac_status); }; }; then
33472 wx_cv_func_broken_vsnprintf_decl=no
33473else
33474 echo "$as_me: failed program was:" >&5
33475sed 's/^/| /' conftest.$ac_ext >&5
33476
33477wx_cv_func_broken_vsnprintf_decl=yes
33478
33479fi
33480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33481
33482
33483fi
33484echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33485echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33486
33487 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33488 cat >>confdefs.h <<\_ACEOF
33489#define HAVE_BROKEN_VSNPRINTF_DECL 1
33490_ACEOF
33491
33492 fi
a848cd7e
SC
33493 fi
33494fi
33495
4a767dd5
VZ
33496if test "$ac_cv_func_snprintf" = "yes"; then
33497 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33498echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33499if test "${wx_cv_func_snprintf_decl+set}" = set; then
33500 echo $ECHO_N "(cached) $ECHO_C" >&6
33501else
33502
33503 cat >conftest.$ac_ext <<_ACEOF
33504/* confdefs.h. */
33505_ACEOF
33506cat confdefs.h >>conftest.$ac_ext
33507cat >>conftest.$ac_ext <<_ACEOF
33508/* end confdefs.h. */
33509
33510 #include <stdio.h>
33511 #include <stdarg.h>
33512 #ifdef __MSL__
33513 #if __MSL__ >= 0x6000
33514 namespace std {}
33515 using namespace std;
33516 #endif
33517 #endif
33518
33519int
33520main ()
33521{
33522
33523 char *buf;
62fa8b3a 33524 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33525
33526 ;
33527 return 0;
33528}
33529_ACEOF
33530rm -f conftest.$ac_objext
33531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33532 (eval $ac_compile) 2>conftest.er1
33533 ac_status=$?
33534 grep -v '^ *+' conftest.er1 >conftest.err
33535 rm -f conftest.er1
33536 cat conftest.err >&5
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); } &&
3565d135
RR
33539 { ac_try='test -z "$ac_cxx_werror_flag"
33540 || test ! -s conftest.err'
4a767dd5
VZ
33541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542 (eval $ac_try) 2>&5
33543 ac_status=$?
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); }; } &&
33546 { ac_try='test -s conftest.$ac_objext'
33547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33548 (eval $ac_try) 2>&5
33549 ac_status=$?
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; }; then
33552 wx_cv_func_snprintf_decl=yes
33553else
33554 echo "$as_me: failed program was:" >&5
33555sed 's/^/| /' conftest.$ac_ext >&5
33556
33557wx_cv_func_snprintf_decl=no
33558
33559fi
33560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33561
33562
33563fi
33564echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33565echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33566
33567 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33568 cat >>confdefs.h <<\_ACEOF
33569#define HAVE_SNPRINTF_DECL 1
33570_ACEOF
33571
62fa8b3a
MW
33572
33573 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33574echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33575if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33576 echo $ECHO_N "(cached) $ECHO_C" >&6
33577else
33578
33579 cat >conftest.$ac_ext <<_ACEOF
33580/* confdefs.h. */
33581_ACEOF
33582cat confdefs.h >>conftest.$ac_ext
33583cat >>conftest.$ac_ext <<_ACEOF
33584/* end confdefs.h. */
33585
33586 #include <stdio.h>
33587 #include <stdarg.h>
33588 #ifdef __MSL__
33589 #if __MSL__ >= 0x6000
33590 namespace std {}
33591 using namespace std;
33592 #endif
33593 #endif
33594
33595int
33596main ()
33597{
33598
33599 char *buf;
33600 const char *fmt = "%s";
33601 snprintf(buf, 10u, fmt, "wx");
33602
33603 ;
33604 return 0;
33605}
33606_ACEOF
33607rm -f conftest.$ac_objext
33608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33609 (eval $ac_compile) 2>conftest.er1
33610 ac_status=$?
33611 grep -v '^ *+' conftest.er1 >conftest.err
33612 rm -f conftest.er1
33613 cat conftest.err >&5
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); } &&
3565d135
RR
33616 { ac_try='test -z "$ac_cxx_werror_flag"
33617 || test ! -s conftest.err'
62fa8b3a
MW
33618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33619 (eval $ac_try) 2>&5
33620 ac_status=$?
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); }; } &&
33623 { ac_try='test -s conftest.$ac_objext'
33624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33625 (eval $ac_try) 2>&5
33626 ac_status=$?
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); }; }; then
33629 wx_cv_func_broken_snprintf_decl=no
33630else
33631 echo "$as_me: failed program was:" >&5
33632sed 's/^/| /' conftest.$ac_ext >&5
33633
33634wx_cv_func_broken_snprintf_decl=yes
33635
33636fi
33637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33638
33639
33640fi
33641echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33642echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33643
33644 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33645 cat >>confdefs.h <<\_ACEOF
33646#define HAVE_BROKEN_SNPRINTF_DECL 1
33647_ACEOF
33648
33649 fi
4a767dd5
VZ
33650 fi
33651fi
33652
a848cd7e
SC
33653if test "$wxUSE_UNICODE" = yes; then
33654
33655
33656
fbe47c7b
VS
33657
33658
33659
33660for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33661do
33662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33663echo "$as_me:$LINENO: checking for $ac_func" >&5
33664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33665if eval "test \"\${$as_ac_var+set}\" = set"; then
33666 echo $ECHO_N "(cached) $ECHO_C" >&6
33667else
33668 cat >conftest.$ac_ext <<_ACEOF
33669/* confdefs.h. */
33670_ACEOF
33671cat confdefs.h >>conftest.$ac_ext
33672cat >>conftest.$ac_ext <<_ACEOF
33673/* end confdefs.h. */
ac1cb8d3
VS
33674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33676#define $ac_func innocuous_$ac_func
33677
a848cd7e
SC
33678/* System header to define __stub macros and hopefully few prototypes,
33679 which can conflict with char $ac_func (); below.
33680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33681 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33682
a848cd7e
SC
33683#ifdef __STDC__
33684# include <limits.h>
33685#else
33686# include <assert.h>
33687#endif
ac1cb8d3
VS
33688
33689#undef $ac_func
33690
a848cd7e
SC
33691/* Override any gcc2 internal prototype to avoid an error. */
33692#ifdef __cplusplus
33693extern "C"
33694{
33695#endif
33696/* We use char because int might match the return type of a gcc2
33697 builtin and then its argument prototype would still apply. */
33698char $ac_func ();
33699/* The GNU C library defines this for functions which it implements
33700 to always fail with ENOSYS. Some functions are actually named
33701 something starting with __ and the normal name is an alias. */
33702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33703choke me
33704#else
33705char (*f) () = $ac_func;
33706#endif
33707#ifdef __cplusplus
33708}
33709#endif
33710
33711int
33712main ()
33713{
33714return f != $ac_func;
33715 ;
33716 return 0;
33717}
33718_ACEOF
33719rm -f conftest.$ac_objext conftest$ac_exeext
33720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33721 (eval $ac_link) 2>conftest.er1
a848cd7e 33722 ac_status=$?
ac1cb8d3
VS
33723 grep -v '^ *+' conftest.er1 >conftest.err
33724 rm -f conftest.er1
33725 cat conftest.err >&5
a848cd7e
SC
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); } &&
3565d135
RR
33728 { ac_try='test -z "$ac_cxx_werror_flag"
33729 || test ! -s conftest.err'
ac1cb8d3
VS
33730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33731 (eval $ac_try) 2>&5
33732 ac_status=$?
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); }; } &&
33735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33737 (eval $ac_try) 2>&5
33738 ac_status=$?
33739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740 (exit $ac_status); }; }; then
33741 eval "$as_ac_var=yes"
33742else
33743 echo "$as_me: failed program was:" >&5
33744sed 's/^/| /' conftest.$ac_ext >&5
33745
33746eval "$as_ac_var=no"
33747fi
ac1cb8d3
VS
33748rm -f conftest.err conftest.$ac_objext \
33749 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33750fi
33751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33752echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33753if test `eval echo '${'$as_ac_var'}'` = yes; then
33754 cat >>confdefs.h <<_ACEOF
33755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33756_ACEOF
33757
33758fi
33759done
33760
33761
33762 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33763echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
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#include <wchar.h>
33771int
33772main ()
33773{
33774&_vsnwprintf;
33775 ;
33776 return 0;
33777}
33778_ACEOF
33779rm -f conftest.$ac_objext
33780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33781 (eval $ac_compile) 2>conftest.er1
a848cd7e 33782 ac_status=$?
ac1cb8d3
VS
33783 grep -v '^ *+' conftest.er1 >conftest.err
33784 rm -f conftest.er1
33785 cat conftest.err >&5
a848cd7e
SC
33786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787 (exit $ac_status); } &&
3565d135
RR
33788 { ac_try='test -z "$ac_cxx_werror_flag"
33789 || test ! -s conftest.err'
ac1cb8d3
VS
33790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33791 (eval $ac_try) 2>&5
33792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; } &&
33795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797 (eval $ac_try) 2>&5
33798 ac_status=$?
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
33801 echo "$as_me:$LINENO: result: yes" >&5
33802echo "${ECHO_T}yes" >&6
33803 cat >>confdefs.h <<\_ACEOF
33804#define HAVE__VSNWPRINTF 1
33805_ACEOF
33806
33807else
33808 echo "$as_me: failed program was:" >&5
33809sed 's/^/| /' conftest.$ac_ext >&5
33810
33811echo "$as_me:$LINENO: result: no" >&5
33812echo "${ECHO_T}no" >&6
33813fi
ac1cb8d3 33814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33815fi
33816
33817ac_ext=c
33818ac_cpp='$CPP $CPPFLAGS'
33819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33821ac_compiler_gnu=$ac_cv_c_compiler_gnu
33822
33823
6ebeb4c7
VZ
33824if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33825
33826for ac_func in fnmatch
33827do
33828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33829echo "$as_me:$LINENO: checking for $ac_func" >&5
33830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33831if eval "test \"\${$as_ac_var+set}\" = set"; then
33832 echo $ECHO_N "(cached) $ECHO_C" >&6
33833else
33834 cat >conftest.$ac_ext <<_ACEOF
33835/* confdefs.h. */
33836_ACEOF
33837cat confdefs.h >>conftest.$ac_ext
33838cat >>conftest.$ac_ext <<_ACEOF
33839/* end confdefs.h. */
33840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33842#define $ac_func innocuous_$ac_func
33843
33844/* System header to define __stub macros and hopefully few prototypes,
33845 which can conflict with char $ac_func (); below.
33846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33847 <limits.h> exists even on freestanding compilers. */
33848
33849#ifdef __STDC__
33850# include <limits.h>
33851#else
33852# include <assert.h>
33853#endif
33854
33855#undef $ac_func
33856
33857/* Override any gcc2 internal prototype to avoid an error. */
33858#ifdef __cplusplus
33859extern "C"
33860{
33861#endif
33862/* We use char because int might match the return type of a gcc2
33863 builtin and then its argument prototype would still apply. */
33864char $ac_func ();
33865/* The GNU C library defines this for functions which it implements
33866 to always fail with ENOSYS. Some functions are actually named
33867 something starting with __ and the normal name is an alias. */
33868#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33869choke me
33870#else
33871char (*f) () = $ac_func;
33872#endif
33873#ifdef __cplusplus
33874}
33875#endif
33876
33877int
33878main ()
33879{
33880return f != $ac_func;
33881 ;
33882 return 0;
33883}
33884_ACEOF
33885rm -f conftest.$ac_objext conftest$ac_exeext
33886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33887 (eval $ac_link) 2>conftest.er1
33888 ac_status=$?
33889 grep -v '^ *+' conftest.er1 >conftest.err
33890 rm -f conftest.er1
33891 cat conftest.err >&5
33892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33893 (exit $ac_status); } &&
3565d135
RR
33894 { ac_try='test -z "$ac_c_werror_flag"
33895 || test ! -s conftest.err'
6ebeb4c7
VZ
33896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33897 (eval $ac_try) 2>&5
33898 ac_status=$?
33899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900 (exit $ac_status); }; } &&
33901 { ac_try='test -s conftest$ac_exeext'
33902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33903 (eval $ac_try) 2>&5
33904 ac_status=$?
33905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906 (exit $ac_status); }; }; then
33907 eval "$as_ac_var=yes"
33908else
33909 echo "$as_me: failed program was:" >&5
33910sed 's/^/| /' conftest.$ac_ext >&5
33911
33912eval "$as_ac_var=no"
33913fi
33914rm -f conftest.err conftest.$ac_objext \
33915 conftest$ac_exeext conftest.$ac_ext
33916fi
33917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33918echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33919if test `eval echo '${'$as_ac_var'}'` = yes; then
33920 cat >>confdefs.h <<_ACEOF
33921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33922_ACEOF
33923
33924fi
33925done
33926
33927fi
33928
33929if test "$wxUSE_FILE" = "yes"; then
33930
33931for ac_func in fsync
33932do
33933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33934echo "$as_me:$LINENO: checking for $ac_func" >&5
33935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33936if eval "test \"\${$as_ac_var+set}\" = set"; then
33937 echo $ECHO_N "(cached) $ECHO_C" >&6
33938else
33939 cat >conftest.$ac_ext <<_ACEOF
33940/* confdefs.h. */
33941_ACEOF
33942cat confdefs.h >>conftest.$ac_ext
33943cat >>conftest.$ac_ext <<_ACEOF
33944/* end confdefs.h. */
33945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33947#define $ac_func innocuous_$ac_func
33948
33949/* System header to define __stub macros and hopefully few prototypes,
33950 which can conflict with char $ac_func (); below.
33951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33952 <limits.h> exists even on freestanding compilers. */
33953
33954#ifdef __STDC__
33955# include <limits.h>
33956#else
33957# include <assert.h>
33958#endif
33959
33960#undef $ac_func
33961
33962/* Override any gcc2 internal prototype to avoid an error. */
33963#ifdef __cplusplus
33964extern "C"
33965{
33966#endif
33967/* We use char because int might match the return type of a gcc2
33968 builtin and then its argument prototype would still apply. */
33969char $ac_func ();
33970/* The GNU C library defines this for functions which it implements
33971 to always fail with ENOSYS. Some functions are actually named
33972 something starting with __ and the normal name is an alias. */
33973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33974choke me
33975#else
33976char (*f) () = $ac_func;
33977#endif
33978#ifdef __cplusplus
33979}
33980#endif
33981
33982int
33983main ()
33984{
33985return f != $ac_func;
33986 ;
33987 return 0;
33988}
33989_ACEOF
33990rm -f conftest.$ac_objext conftest$ac_exeext
33991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33992 (eval $ac_link) 2>conftest.er1
33993 ac_status=$?
33994 grep -v '^ *+' conftest.er1 >conftest.err
33995 rm -f conftest.er1
33996 cat conftest.err >&5
33997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998 (exit $ac_status); } &&
3565d135
RR
33999 { ac_try='test -z "$ac_c_werror_flag"
34000 || test ! -s conftest.err'
6ebeb4c7
VZ
34001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002 (eval $ac_try) 2>&5
34003 ac_status=$?
34004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005 (exit $ac_status); }; } &&
34006 { ac_try='test -s conftest$ac_exeext'
34007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34008 (eval $ac_try) 2>&5
34009 ac_status=$?
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); }; }; then
34012 eval "$as_ac_var=yes"
34013else
34014 echo "$as_me: failed program was:" >&5
34015sed 's/^/| /' conftest.$ac_ext >&5
34016
34017eval "$as_ac_var=no"
34018fi
34019rm -f conftest.err conftest.$ac_objext \
34020 conftest$ac_exeext conftest.$ac_ext
34021fi
34022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34024if test `eval echo '${'$as_ac_var'}'` = yes; then
34025 cat >>confdefs.h <<_ACEOF
34026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34027_ACEOF
34028
34029fi
34030done
34031
34032fi
a848cd7e
SC
34033
34034
34035if test "$TOOLKIT" != "MSW"; then
34036
34037
34038
34039
34040ac_ext=cc
34041ac_cpp='$CXXCPP $CPPFLAGS'
34042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34045
34046
34047
34048
34049# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34050if test "${with_libiconv_prefix+set}" = set; then
34051 withval="$with_libiconv_prefix"
34052
34053 for dir in `echo "$withval" | tr : ' '`; do
34054 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34055 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34056 done
34057
34058fi;
34059
34060 echo "$as_me:$LINENO: checking for iconv" >&5
34061echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34062if test "${am_cv_func_iconv+set}" = set; then
34063 echo $ECHO_N "(cached) $ECHO_C" >&6
34064else
34065
34066 am_cv_func_iconv="no, consider installing GNU libiconv"
34067 am_cv_lib_iconv=no
34068 cat >conftest.$ac_ext <<_ACEOF
34069/* confdefs.h. */
34070_ACEOF
34071cat confdefs.h >>conftest.$ac_ext
34072cat >>conftest.$ac_ext <<_ACEOF
34073/* end confdefs.h. */
34074#include <stdlib.h>
34075#include <iconv.h>
34076int
34077main ()
34078{
34079iconv_t cd = iconv_open("","");
34080 iconv(cd,NULL,NULL,NULL,NULL);
34081 iconv_close(cd);
34082 ;
34083 return 0;
34084}
34085_ACEOF
34086rm -f conftest.$ac_objext conftest$ac_exeext
34087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34088 (eval $ac_link) 2>conftest.er1
a848cd7e 34089 ac_status=$?
ac1cb8d3
VS
34090 grep -v '^ *+' conftest.er1 >conftest.err
34091 rm -f conftest.er1
34092 cat conftest.err >&5
a848cd7e
SC
34093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094 (exit $ac_status); } &&
3565d135
RR
34095 { ac_try='test -z "$ac_cxx_werror_flag"
34096 || test ! -s conftest.err'
ac1cb8d3
VS
34097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34098 (eval $ac_try) 2>&5
34099 ac_status=$?
34100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101 (exit $ac_status); }; } &&
34102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34104 (eval $ac_try) 2>&5
34105 ac_status=$?
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); }; }; then
34108 am_cv_func_iconv=yes
34109else
34110 echo "$as_me: failed program was:" >&5
34111sed 's/^/| /' conftest.$ac_ext >&5
34112
34113fi
ac1cb8d3
VS
34114rm -f conftest.err conftest.$ac_objext \
34115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34116 if test "$am_cv_func_iconv" != yes; then
34117 am_save_LIBS="$LIBS"
34118 LIBS="$LIBS -liconv"
34119 cat >conftest.$ac_ext <<_ACEOF
34120/* confdefs.h. */
34121_ACEOF
34122cat confdefs.h >>conftest.$ac_ext
34123cat >>conftest.$ac_ext <<_ACEOF
34124/* end confdefs.h. */
34125#include <stdlib.h>
34126#include <iconv.h>
34127int
34128main ()
34129{
34130iconv_t cd = iconv_open("","");
34131 iconv(cd,NULL,NULL,NULL,NULL);
34132 iconv_close(cd);
34133 ;
34134 return 0;
34135}
34136_ACEOF
34137rm -f conftest.$ac_objext conftest$ac_exeext
34138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34139 (eval $ac_link) 2>conftest.er1
a848cd7e 34140 ac_status=$?
ac1cb8d3
VS
34141 grep -v '^ *+' conftest.er1 >conftest.err
34142 rm -f conftest.er1
34143 cat conftest.err >&5
a848cd7e
SC
34144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 (exit $ac_status); } &&
3565d135
RR
34146 { ac_try='test -z "$ac_cxx_werror_flag"
34147 || test ! -s conftest.err'
ac1cb8d3
VS
34148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34149 (eval $ac_try) 2>&5
34150 ac_status=$?
34151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152 (exit $ac_status); }; } &&
34153 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34155 (eval $ac_try) 2>&5
34156 ac_status=$?
34157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34158 (exit $ac_status); }; }; then
34159 am_cv_lib_iconv=yes
34160 am_cv_func_iconv=yes
34161else
34162 echo "$as_me: failed program was:" >&5
34163sed 's/^/| /' conftest.$ac_ext >&5
34164
34165fi
ac1cb8d3
VS
34166rm -f conftest.err conftest.$ac_objext \
34167 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34168 LIBS="$am_save_LIBS"
34169 fi
34170
34171fi
34172echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34173echo "${ECHO_T}$am_cv_func_iconv" >&6
34174 if test "$am_cv_func_iconv" = yes; then
34175
34176cat >>confdefs.h <<\_ACEOF
34177#define HAVE_ICONV 1
34178_ACEOF
34179
34180 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34181echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34182if test "${wx_cv_func_iconv_const+set}" = set; then
34183 echo $ECHO_N "(cached) $ECHO_C" >&6
34184else
34185 cat >conftest.$ac_ext <<_ACEOF
34186/* confdefs.h. */
34187_ACEOF
34188cat confdefs.h >>conftest.$ac_ext
34189cat >>conftest.$ac_ext <<_ACEOF
34190/* end confdefs.h. */
34191
34192#include <stdlib.h>
34193#include <iconv.h>
34194extern
34195#ifdef __cplusplus
34196"C"
34197#endif
34198#if defined(__STDC__) || defined(__cplusplus)
34199size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34200#else
34201size_t iconv();
34202#endif
34203
34204int
34205main ()
34206{
34207
34208 ;
34209 return 0;
34210}
34211_ACEOF
34212rm -f conftest.$ac_objext
34213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34214 (eval $ac_compile) 2>conftest.er1
a848cd7e 34215 ac_status=$?
ac1cb8d3
VS
34216 grep -v '^ *+' conftest.er1 >conftest.err
34217 rm -f conftest.er1
34218 cat conftest.err >&5
a848cd7e
SC
34219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220 (exit $ac_status); } &&
3565d135
RR
34221 { ac_try='test -z "$ac_cxx_werror_flag"
34222 || test ! -s conftest.err'
ac1cb8d3
VS
34223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34224 (eval $ac_try) 2>&5
34225 ac_status=$?
34226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227 (exit $ac_status); }; } &&
34228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34230 (eval $ac_try) 2>&5
34231 ac_status=$?
34232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34233 (exit $ac_status); }; }; then
34234 wx_cv_func_iconv_const="no"
34235else
34236 echo "$as_me: failed program was:" >&5
34237sed 's/^/| /' conftest.$ac_ext >&5
34238
34239wx_cv_func_iconv_const="yes"
34240
34241fi
ac1cb8d3 34242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34243
34244fi
34245echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34246echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34247
34248 iconv_const=
34249 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34250 iconv_const="const"
34251 fi
34252
34253
34254cat >>confdefs.h <<_ACEOF
34255#define ICONV_CONST $iconv_const
34256_ACEOF
34257
34258 fi
34259 LIBICONV=
34260 if test "$am_cv_lib_iconv" = yes; then
34261 LIBICONV="-liconv"
34262 fi
34263
34264
34265LIBS="$LIBICONV $LIBS"
34266ac_ext=c
34267ac_cpp='$CPP $CPPFLAGS'
34268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34270ac_compiler_gnu=$ac_cv_c_compiler_gnu
34271
34272
34273if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34274
34275for ac_func in sigaction
34276do
34277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34278echo "$as_me:$LINENO: checking for $ac_func" >&5
34279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34280if eval "test \"\${$as_ac_var+set}\" = set"; then
34281 echo $ECHO_N "(cached) $ECHO_C" >&6
34282else
34283 cat >conftest.$ac_ext <<_ACEOF
34284/* confdefs.h. */
34285_ACEOF
34286cat confdefs.h >>conftest.$ac_ext
34287cat >>conftest.$ac_ext <<_ACEOF
34288/* end confdefs.h. */
ac1cb8d3
VS
34289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34291#define $ac_func innocuous_$ac_func
34292
a848cd7e
SC
34293/* System header to define __stub macros and hopefully few prototypes,
34294 which can conflict with char $ac_func (); below.
34295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34296 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34297
a848cd7e
SC
34298#ifdef __STDC__
34299# include <limits.h>
34300#else
34301# include <assert.h>
34302#endif
ac1cb8d3
VS
34303
34304#undef $ac_func
34305
a848cd7e
SC
34306/* Override any gcc2 internal prototype to avoid an error. */
34307#ifdef __cplusplus
34308extern "C"
34309{
34310#endif
34311/* We use char because int might match the return type of a gcc2
34312 builtin and then its argument prototype would still apply. */
34313char $ac_func ();
34314/* The GNU C library defines this for functions which it implements
34315 to always fail with ENOSYS. Some functions are actually named
34316 something starting with __ and the normal name is an alias. */
34317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34318choke me
34319#else
34320char (*f) () = $ac_func;
34321#endif
34322#ifdef __cplusplus
34323}
34324#endif
34325
34326int
34327main ()
34328{
34329return f != $ac_func;
34330 ;
34331 return 0;
34332}
34333_ACEOF
34334rm -f conftest.$ac_objext conftest$ac_exeext
34335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34336 (eval $ac_link) 2>conftest.er1
a848cd7e 34337 ac_status=$?
ac1cb8d3
VS
34338 grep -v '^ *+' conftest.er1 >conftest.err
34339 rm -f conftest.er1
34340 cat conftest.err >&5
a848cd7e
SC
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); } &&
3565d135
RR
34343 { ac_try='test -z "$ac_c_werror_flag"
34344 || test ! -s conftest.err'
ac1cb8d3
VS
34345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34346 (eval $ac_try) 2>&5
34347 ac_status=$?
34348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349 (exit $ac_status); }; } &&
34350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34352 (eval $ac_try) 2>&5
34353 ac_status=$?
34354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355 (exit $ac_status); }; }; then
34356 eval "$as_ac_var=yes"
34357else
34358 echo "$as_me: failed program was:" >&5
34359sed 's/^/| /' conftest.$ac_ext >&5
34360
34361eval "$as_ac_var=no"
34362fi
ac1cb8d3
VS
34363rm -f conftest.err conftest.$ac_objext \
34364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34365fi
34366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34368if test `eval echo '${'$as_ac_var'}'` = yes; then
34369 cat >>confdefs.h <<_ACEOF
34370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34371_ACEOF
34372
34373fi
34374done
34375
34376
34377 if test "$ac_cv_func_sigaction" = "no"; then
34378 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34379echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34380 wxUSE_ON_FATAL_EXCEPTION=no
34381 fi
34382
34383 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
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
34393 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34394echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34395if test "${wx_cv_type_sa_handler+set}" = set; then
34396 echo $ECHO_N "(cached) $ECHO_C" >&6
34397else
34398
34399 cat >conftest.$ac_ext <<_ACEOF
34400/* confdefs.h. */
34401_ACEOF
34402cat confdefs.h >>conftest.$ac_ext
34403cat >>conftest.$ac_ext <<_ACEOF
34404/* end confdefs.h. */
34405#include <signal.h>
34406int
34407main ()
34408{
34409
34410 extern void testSigHandler(int);
34411
34412 struct sigaction sa;
34413 sa.sa_handler = testSigHandler;
34414
34415 ;
34416 return 0;
34417}
34418_ACEOF
34419rm -f conftest.$ac_objext
34420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34421 (eval $ac_compile) 2>conftest.er1
a848cd7e 34422 ac_status=$?
ac1cb8d3
VS
34423 grep -v '^ *+' conftest.er1 >conftest.err
34424 rm -f conftest.er1
34425 cat conftest.err >&5
a848cd7e
SC
34426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34427 (exit $ac_status); } &&
3565d135
RR
34428 { ac_try='test -z "$ac_cxx_werror_flag"
34429 || test ! -s conftest.err'
ac1cb8d3
VS
34430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34431 (eval $ac_try) 2>&5
34432 ac_status=$?
34433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34434 (exit $ac_status); }; } &&
34435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34437 (eval $ac_try) 2>&5
34438 ac_status=$?
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); }; }; then
34441
34442 wx_cv_type_sa_handler=int
34443
34444else
34445 echo "$as_me: failed program was:" >&5
34446sed 's/^/| /' conftest.$ac_ext >&5
34447
34448
34449 wx_cv_type_sa_handler=void
34450
34451fi
ac1cb8d3 34452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34453
34454fi
34455echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34456echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34457
34458 ac_ext=c
34459ac_cpp='$CPP $CPPFLAGS'
34460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34462ac_compiler_gnu=$ac_cv_c_compiler_gnu
34463
34464
34465 cat >>confdefs.h <<_ACEOF
34466#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34467_ACEOF
34468
34469 fi
34470fi
34471
eaff0f0d
VZ
34472if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34473
34474
34475 ac_ext=cc
34476ac_cpp='$CXXCPP $CPPFLAGS'
34477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34480
34481
34482 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34483echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34484if test "${wx_cv_func_backtrace+set}" = set; then
34485 echo $ECHO_N "(cached) $ECHO_C" >&6
34486else
34487
34488 cat >conftest.$ac_ext <<_ACEOF
34489/* confdefs.h. */
34490_ACEOF
34491cat confdefs.h >>conftest.$ac_ext
34492cat >>conftest.$ac_ext <<_ACEOF
34493/* end confdefs.h. */
34494#include <execinfo.h>
34495int
34496main ()
34497{
34498
34499 void *trace[1];
34500 char **messages;
34501
34502 backtrace(trace, 1);
34503 messages = backtrace_symbols(trace, 1);
34504
34505 ;
34506 return 0;
34507}
34508_ACEOF
34509rm -f conftest.$ac_objext
34510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34511 (eval $ac_compile) 2>conftest.er1
34512 ac_status=$?
34513 grep -v '^ *+' conftest.er1 >conftest.err
34514 rm -f conftest.er1
34515 cat conftest.err >&5
34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517 (exit $ac_status); } &&
3565d135
RR
34518 { ac_try='test -z "$ac_cxx_werror_flag"
34519 || test ! -s conftest.err'
eaff0f0d
VZ
34520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34521 (eval $ac_try) 2>&5
34522 ac_status=$?
34523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524 (exit $ac_status); }; } &&
34525 { ac_try='test -s conftest.$ac_objext'
34526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34527 (eval $ac_try) 2>&5
34528 ac_status=$?
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); }; }; then
34531 wx_cv_func_backtrace=yes
34532else
34533 echo "$as_me: failed program was:" >&5
34534sed 's/^/| /' conftest.$ac_ext >&5
34535
34536wx_cv_func_backtrace=no
34537
34538fi
34539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34540
34541
34542fi
34543echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34544echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34545
34546
34547 if test "$wx_cv_func_backtrace" = "no"; then
34548 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34549echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34550 wxUSE_STACKWALKER=no
34551 else
34552 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34553echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34554if test "${wx_cv_func_cxa_demangle+set}" = set; then
34555 echo $ECHO_N "(cached) $ECHO_C" >&6
34556else
34557
34558 cat >conftest.$ac_ext <<_ACEOF
34559/* confdefs.h. */
34560_ACEOF
34561cat confdefs.h >>conftest.$ac_ext
34562cat >>conftest.$ac_ext <<_ACEOF
34563/* end confdefs.h. */
34564#include <cxxabi.h>
34565int
34566main ()
34567{
34568
34569 int rc;
34570 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34571
34572 ;
34573 return 0;
34574}
34575_ACEOF
dfe0c803
JS
34576rm -f conftest.$ac_objext conftest$ac_exeext
34577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34578 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34579 ac_status=$?
34580 grep -v '^ *+' conftest.er1 >conftest.err
34581 rm -f conftest.er1
34582 cat conftest.err >&5
34583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584 (exit $ac_status); } &&
3565d135
RR
34585 { ac_try='test -z "$ac_cxx_werror_flag"
34586 || test ! -s conftest.err'
eaff0f0d
VZ
34587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34588 (eval $ac_try) 2>&5
34589 ac_status=$?
34590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591 (exit $ac_status); }; } &&
dfe0c803 34592 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34594 (eval $ac_try) 2>&5
34595 ac_status=$?
34596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597 (exit $ac_status); }; }; then
34598 wx_cv_func_cxa_demangle=yes
34599else
34600 echo "$as_me: failed program was:" >&5
34601sed 's/^/| /' conftest.$ac_ext >&5
34602
34603wx_cv_func_cxa_demangle=no
34604
34605fi
dfe0c803
JS
34606rm -f conftest.err conftest.$ac_objext \
34607 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34608
34609
34610fi
34611echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34612echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34613
34614 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34615 cat >>confdefs.h <<\_ACEOF
34616#define HAVE_CXA_DEMANGLE 1
34617_ACEOF
34618
34619 fi
34620 fi
34621
34622 ac_ext=c
34623ac_cpp='$CPP $CPPFLAGS'
34624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34626ac_compiler_gnu=$ac_cv_c_compiler_gnu
34627
34628fi
34629
898beab1
DE
34630if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34631 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34632echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34633 wxUSE_STACKWALKER=no
34634fi
34635
34636
a848cd7e
SC
34637
34638
34639for ac_func in mkstemp mktemp
34640do
34641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34642echo "$as_me:$LINENO: checking for $ac_func" >&5
34643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34644if eval "test \"\${$as_ac_var+set}\" = set"; then
34645 echo $ECHO_N "(cached) $ECHO_C" >&6
34646else
34647 cat >conftest.$ac_ext <<_ACEOF
34648/* confdefs.h. */
34649_ACEOF
34650cat confdefs.h >>conftest.$ac_ext
34651cat >>conftest.$ac_ext <<_ACEOF
34652/* end confdefs.h. */
ac1cb8d3
VS
34653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34655#define $ac_func innocuous_$ac_func
34656
a848cd7e
SC
34657/* System header to define __stub macros and hopefully few prototypes,
34658 which can conflict with char $ac_func (); below.
34659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34660 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34661
a848cd7e
SC
34662#ifdef __STDC__
34663# include <limits.h>
34664#else
34665# include <assert.h>
34666#endif
ac1cb8d3
VS
34667
34668#undef $ac_func
34669
a848cd7e
SC
34670/* Override any gcc2 internal prototype to avoid an error. */
34671#ifdef __cplusplus
34672extern "C"
34673{
34674#endif
34675/* We use char because int might match the return type of a gcc2
34676 builtin and then its argument prototype would still apply. */
34677char $ac_func ();
34678/* The GNU C library defines this for functions which it implements
34679 to always fail with ENOSYS. Some functions are actually named
34680 something starting with __ and the normal name is an alias. */
34681#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34682choke me
34683#else
34684char (*f) () = $ac_func;
34685#endif
34686#ifdef __cplusplus
34687}
34688#endif
34689
34690int
34691main ()
34692{
34693return f != $ac_func;
34694 ;
34695 return 0;
34696}
34697_ACEOF
34698rm -f conftest.$ac_objext conftest$ac_exeext
34699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34700 (eval $ac_link) 2>conftest.er1
a848cd7e 34701 ac_status=$?
ac1cb8d3
VS
34702 grep -v '^ *+' conftest.er1 >conftest.err
34703 rm -f conftest.er1
34704 cat conftest.err >&5
a848cd7e
SC
34705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706 (exit $ac_status); } &&
3565d135
RR
34707 { ac_try='test -z "$ac_c_werror_flag"
34708 || test ! -s conftest.err'
ac1cb8d3
VS
34709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34710 (eval $ac_try) 2>&5
34711 ac_status=$?
34712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 (exit $ac_status); }; } &&
34714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34716 (eval $ac_try) 2>&5
34717 ac_status=$?
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); }; }; then
34720 eval "$as_ac_var=yes"
34721else
34722 echo "$as_me: failed program was:" >&5
34723sed 's/^/| /' conftest.$ac_ext >&5
34724
34725eval "$as_ac_var=no"
34726fi
ac1cb8d3
VS
34727rm -f conftest.err conftest.$ac_objext \
34728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34729fi
34730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34731echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34732if test `eval echo '${'$as_ac_var'}'` = yes; then
34733 cat >>confdefs.h <<_ACEOF
34734#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34735_ACEOF
34736 break
34737fi
34738done
34739
34740
34741echo "$as_me:$LINENO: checking for statfs" >&5
34742echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34743if test "${wx_cv_func_statfs+set}" = set; then
34744 echo $ECHO_N "(cached) $ECHO_C" >&6
34745else
34746 cat >conftest.$ac_ext <<_ACEOF
34747/* confdefs.h. */
34748_ACEOF
34749cat confdefs.h >>conftest.$ac_ext
34750cat >>conftest.$ac_ext <<_ACEOF
34751/* end confdefs.h. */
34752
34753 #if defined(__BSD__)
84ae7ca4
VZ
34754 #include <sys/param.h>
34755 #include <sys/mount.h>
a848cd7e 34756 #else
84ae7ca4 34757 #include <sys/vfs.h>
a848cd7e
SC
34758 #endif
34759
34760int
34761main ()
34762{
34763
34764 long l;
34765 struct statfs fs;
34766 statfs("/", &fs);
34767 l = fs.f_bsize;
34768 l += fs.f_blocks;
34769 l += fs.f_bavail;
34770
34771 ;
34772 return 0;
34773}
34774_ACEOF
34775rm -f conftest.$ac_objext
34776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34777 (eval $ac_compile) 2>conftest.er1
a848cd7e 34778 ac_status=$?
ac1cb8d3
VS
34779 grep -v '^ *+' conftest.er1 >conftest.err
34780 rm -f conftest.er1
34781 cat conftest.err >&5
a848cd7e
SC
34782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783 (exit $ac_status); } &&
3565d135
RR
34784 { ac_try='test -z "$ac_c_werror_flag"
34785 || test ! -s conftest.err'
ac1cb8d3
VS
34786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34787 (eval $ac_try) 2>&5
34788 ac_status=$?
34789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790 (exit $ac_status); }; } &&
34791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34793 (eval $ac_try) 2>&5
34794 ac_status=$?
34795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796 (exit $ac_status); }; }; then
84ae7ca4 34797 wx_cv_func_statfs=yes
a848cd7e
SC
34798else
34799 echo "$as_me: failed program was:" >&5
34800sed 's/^/| /' conftest.$ac_ext >&5
34801
84ae7ca4 34802wx_cv_func_statfs=no
a848cd7e
SC
34803
34804fi
ac1cb8d3 34805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34806
34807fi
34808echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34809echo "${ECHO_T}$wx_cv_func_statfs" >&6
34810
34811if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34812
34813
34814 ac_ext=cc
34815ac_cpp='$CXXCPP $CPPFLAGS'
34816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34819
34820 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34821echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34822if test "${wx_cv_func_statfs_decl+set}" = set; then
34823 echo $ECHO_N "(cached) $ECHO_C" >&6
34824else
0683aca6
VZ
34825 cat >conftest.$ac_ext <<_ACEOF
34826/* confdefs.h. */
34827_ACEOF
34828cat confdefs.h >>conftest.$ac_ext
34829cat >>conftest.$ac_ext <<_ACEOF
34830/* end confdefs.h. */
84ae7ca4 34831
0683aca6
VZ
34832 #if defined(__BSD__)
34833 #include <sys/param.h>
34834 #include <sys/mount.h>
34835 #else
34836 #include <sys/vfs.h>
34837 #endif
34838
34839int
34840main ()
34841{
34842
34843 struct statfs fs;
34844 statfs("", &fs);
34845
34846 ;
34847 return 0;
34848}
34849_ACEOF
34850rm -f conftest.$ac_objext
34851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34852 (eval $ac_compile) 2>conftest.er1
34853 ac_status=$?
34854 grep -v '^ *+' conftest.er1 >conftest.err
34855 rm -f conftest.er1
34856 cat conftest.err >&5
34857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34858 (exit $ac_status); } &&
3565d135
RR
34859 { ac_try='test -z "$ac_cxx_werror_flag"
34860 || test ! -s conftest.err'
0683aca6
VZ
34861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34862 (eval $ac_try) 2>&5
34863 ac_status=$?
34864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); }; } &&
34866 { ac_try='test -s conftest.$ac_objext'
34867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34868 (eval $ac_try) 2>&5
34869 ac_status=$?
34870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871 (exit $ac_status); }; }; then
34872 wx_cv_func_statfs_decl=yes
34873else
34874 echo "$as_me: failed program was:" >&5
34875sed 's/^/| /' conftest.$ac_ext >&5
34876
34877wx_cv_func_statfs_decl=no
34878
34879fi
34880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34881
34882fi
34883echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34884echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34885 ac_ext=c
34886ac_cpp='$CPP $CPPFLAGS'
34887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34889ac_compiler_gnu=$ac_cv_c_compiler_gnu
34890
34891
34892 if test "$wx_cv_func_statfs_decl" = "yes"; then
34893 cat >>confdefs.h <<\_ACEOF
34894#define HAVE_STATFS_DECL 1
34895_ACEOF
34896
34897 fi
34898
a848cd7e
SC
34899 wx_cv_type_statvfs_t="struct statfs"
34900 cat >>confdefs.h <<\_ACEOF
34901#define HAVE_STATFS 1
34902_ACEOF
34903
34904else
34905 echo "$as_me:$LINENO: checking for statvfs" >&5
34906echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34907if test "${wx_cv_func_statvfs+set}" = set; then
34908 echo $ECHO_N "(cached) $ECHO_C" >&6
34909else
34910 cat >conftest.$ac_ext <<_ACEOF
34911/* confdefs.h. */
34912_ACEOF
34913cat confdefs.h >>conftest.$ac_ext
34914cat >>conftest.$ac_ext <<_ACEOF
34915/* end confdefs.h. */
34916
34917 #include <stddef.h>
34918 #include <sys/statvfs.h>
34919
34920int
34921main ()
34922{
34923
34924 statvfs("/", NULL);
34925
34926 ;
34927 return 0;
34928}
34929_ACEOF
34930rm -f conftest.$ac_objext
34931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34932 (eval $ac_compile) 2>conftest.er1
a848cd7e 34933 ac_status=$?
ac1cb8d3
VS
34934 grep -v '^ *+' conftest.er1 >conftest.err
34935 rm -f conftest.er1
34936 cat conftest.err >&5
a848cd7e
SC
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); } &&
3565d135
RR
34939 { ac_try='test -z "$ac_c_werror_flag"
34940 || test ! -s conftest.err'
ac1cb8d3
VS
34941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34942 (eval $ac_try) 2>&5
34943 ac_status=$?
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); }; } &&
34946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34948 (eval $ac_try) 2>&5
34949 ac_status=$?
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); }; }; then
34952 wx_cv_func_statvfs=yes
34953else
34954 echo "$as_me: failed program was:" >&5
34955sed 's/^/| /' conftest.$ac_ext >&5
34956
34957wx_cv_func_statvfs=no
34958
34959fi
ac1cb8d3 34960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34961
34962fi
34963echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34964echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34965
34966 if test "$wx_cv_func_statvfs" = "yes"; then
34967
34968
34969 ac_ext=cc
34970ac_cpp='$CXXCPP $CPPFLAGS'
34971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34974
34975
34976 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34977echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34978if test "${wx_cv_type_statvfs_t+set}" = set; then
34979 echo $ECHO_N "(cached) $ECHO_C" >&6
34980else
34981 cat >conftest.$ac_ext <<_ACEOF
34982/* confdefs.h. */
34983_ACEOF
34984cat confdefs.h >>conftest.$ac_ext
34985cat >>conftest.$ac_ext <<_ACEOF
34986/* end confdefs.h. */
34987
34988 #include <sys/statvfs.h>
34989
34990int
34991main ()
34992{
34993
34994 long l;
34995 statvfs_t fs;
34996 statvfs("/", &fs);
34997 l = fs.f_bsize;
34998 l += fs.f_blocks;
34999 l += fs.f_bavail;
35000
35001 ;
35002 return 0;
35003}
35004_ACEOF
35005rm -f conftest.$ac_objext
35006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35007 (eval $ac_compile) 2>conftest.er1
a848cd7e 35008 ac_status=$?
ac1cb8d3
VS
35009 grep -v '^ *+' conftest.er1 >conftest.err
35010 rm -f conftest.er1
35011 cat conftest.err >&5
a848cd7e
SC
35012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013 (exit $ac_status); } &&
3565d135
RR
35014 { ac_try='test -z "$ac_cxx_werror_flag"
35015 || test ! -s conftest.err'
ac1cb8d3
VS
35016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35017 (eval $ac_try) 2>&5
35018 ac_status=$?
35019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020 (exit $ac_status); }; } &&
35021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35023 (eval $ac_try) 2>&5
35024 ac_status=$?
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); }; }; then
35027 wx_cv_type_statvfs_t=statvfs_t
35028else
35029 echo "$as_me: failed program was:" >&5
35030sed 's/^/| /' conftest.$ac_ext >&5
35031
35032
35033 cat >conftest.$ac_ext <<_ACEOF
35034/* confdefs.h. */
35035_ACEOF
35036cat confdefs.h >>conftest.$ac_ext
35037cat >>conftest.$ac_ext <<_ACEOF
35038/* end confdefs.h. */
35039
35040 #include <sys/statvfs.h>
35041
35042int
35043main ()
35044{
35045
35046 long l;
35047 struct statvfs fs;
35048 statvfs("/", &fs);
35049 l = fs.f_bsize;
35050 l += fs.f_blocks;
35051 l += fs.f_bavail;
35052
35053 ;
35054 return 0;
35055}
35056_ACEOF
35057rm -f conftest.$ac_objext
35058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35059 (eval $ac_compile) 2>conftest.er1
a848cd7e 35060 ac_status=$?
ac1cb8d3
VS
35061 grep -v '^ *+' conftest.er1 >conftest.err
35062 rm -f conftest.er1
35063 cat conftest.err >&5
a848cd7e
SC
35064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065 (exit $ac_status); } &&
3565d135
RR
35066 { ac_try='test -z "$ac_cxx_werror_flag"
35067 || test ! -s conftest.err'
ac1cb8d3
VS
35068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35069 (eval $ac_try) 2>&5
35070 ac_status=$?
35071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072 (exit $ac_status); }; } &&
35073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35075 (eval $ac_try) 2>&5
35076 ac_status=$?
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); }; }; then
35079 wx_cv_type_statvfs_t="struct statvfs"
35080else
35081 echo "$as_me: failed program was:" >&5
35082sed 's/^/| /' conftest.$ac_ext >&5
35083
35084wx_cv_type_statvfs_t="unknown"
35085
35086fi
ac1cb8d3 35087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35088
35089
35090fi
ac1cb8d3 35091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35092
35093fi
35094echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35095echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35096
35097 ac_ext=c
35098ac_cpp='$CPP $CPPFLAGS'
35099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35101ac_compiler_gnu=$ac_cv_c_compiler_gnu
35102
35103
35104 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35105 cat >>confdefs.h <<\_ACEOF
35106#define HAVE_STATVFS 1
35107_ACEOF
35108
35109 fi
35110 else
35111 wx_cv_type_statvfs_t="unknown"
35112 fi
35113fi
35114
35115if test "$wx_cv_type_statvfs_t" != "unknown"; then
35116 cat >>confdefs.h <<_ACEOF
35117#define WX_STATFS_T $wx_cv_type_statvfs_t
35118_ACEOF
35119
35120else
35121 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35122echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35123fi
35124
35125if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35126
35127
35128for ac_func in fcntl flock
35129do
35130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35131echo "$as_me:$LINENO: checking for $ac_func" >&5
35132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35133if eval "test \"\${$as_ac_var+set}\" = set"; then
35134 echo $ECHO_N "(cached) $ECHO_C" >&6
35135else
35136 cat >conftest.$ac_ext <<_ACEOF
35137/* confdefs.h. */
35138_ACEOF
35139cat confdefs.h >>conftest.$ac_ext
35140cat >>conftest.$ac_ext <<_ACEOF
35141/* end confdefs.h. */
ac1cb8d3
VS
35142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35144#define $ac_func innocuous_$ac_func
35145
a848cd7e
SC
35146/* System header to define __stub macros and hopefully few prototypes,
35147 which can conflict with char $ac_func (); below.
35148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35149 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35150
a848cd7e
SC
35151#ifdef __STDC__
35152# include <limits.h>
35153#else
35154# include <assert.h>
35155#endif
ac1cb8d3
VS
35156
35157#undef $ac_func
35158
a848cd7e
SC
35159/* Override any gcc2 internal prototype to avoid an error. */
35160#ifdef __cplusplus
35161extern "C"
35162{
35163#endif
35164/* We use char because int might match the return type of a gcc2
35165 builtin and then its argument prototype would still apply. */
35166char $ac_func ();
35167/* The GNU C library defines this for functions which it implements
35168 to always fail with ENOSYS. Some functions are actually named
35169 something starting with __ and the normal name is an alias. */
35170#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35171choke me
35172#else
35173char (*f) () = $ac_func;
35174#endif
35175#ifdef __cplusplus
35176}
35177#endif
35178
35179int
35180main ()
35181{
35182return f != $ac_func;
35183 ;
35184 return 0;
35185}
35186_ACEOF
35187rm -f conftest.$ac_objext conftest$ac_exeext
35188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35189 (eval $ac_link) 2>conftest.er1
a848cd7e 35190 ac_status=$?
ac1cb8d3
VS
35191 grep -v '^ *+' conftest.er1 >conftest.err
35192 rm -f conftest.er1
35193 cat conftest.err >&5
a848cd7e
SC
35194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195 (exit $ac_status); } &&
3565d135
RR
35196 { ac_try='test -z "$ac_c_werror_flag"
35197 || test ! -s conftest.err'
ac1cb8d3
VS
35198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35199 (eval $ac_try) 2>&5
35200 ac_status=$?
35201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202 (exit $ac_status); }; } &&
35203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35205 (eval $ac_try) 2>&5
35206 ac_status=$?
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); }; }; then
35209 eval "$as_ac_var=yes"
35210else
35211 echo "$as_me: failed program was:" >&5
35212sed 's/^/| /' conftest.$ac_ext >&5
35213
35214eval "$as_ac_var=no"
35215fi
ac1cb8d3
VS
35216rm -f conftest.err conftest.$ac_objext \
35217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35218fi
35219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35220echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35221if test `eval echo '${'$as_ac_var'}'` = yes; then
35222 cat >>confdefs.h <<_ACEOF
35223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35224_ACEOF
35225 break
35226fi
35227done
35228
35229
35230 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35231 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35232echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35233 wxUSE_SNGLINST_CHECKER=no
35234 fi
35235fi
35236
35237
35238for ac_func in timegm
35239do
35240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35241echo "$as_me:$LINENO: checking for $ac_func" >&5
35242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35243if eval "test \"\${$as_ac_var+set}\" = set"; then
35244 echo $ECHO_N "(cached) $ECHO_C" >&6
35245else
35246 cat >conftest.$ac_ext <<_ACEOF
35247/* confdefs.h. */
35248_ACEOF
35249cat confdefs.h >>conftest.$ac_ext
35250cat >>conftest.$ac_ext <<_ACEOF
35251/* end confdefs.h. */
ac1cb8d3
VS
35252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35254#define $ac_func innocuous_$ac_func
35255
a848cd7e
SC
35256/* System header to define __stub macros and hopefully few prototypes,
35257 which can conflict with char $ac_func (); below.
35258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35259 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35260
a848cd7e
SC
35261#ifdef __STDC__
35262# include <limits.h>
35263#else
35264# include <assert.h>
35265#endif
ac1cb8d3
VS
35266
35267#undef $ac_func
35268
a848cd7e
SC
35269/* Override any gcc2 internal prototype to avoid an error. */
35270#ifdef __cplusplus
35271extern "C"
35272{
35273#endif
35274/* We use char because int might match the return type of a gcc2
35275 builtin and then its argument prototype would still apply. */
35276char $ac_func ();
35277/* The GNU C library defines this for functions which it implements
35278 to always fail with ENOSYS. Some functions are actually named
35279 something starting with __ and the normal name is an alias. */
35280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35281choke me
35282#else
35283char (*f) () = $ac_func;
35284#endif
35285#ifdef __cplusplus
35286}
35287#endif
35288
35289int
35290main ()
35291{
35292return f != $ac_func;
35293 ;
35294 return 0;
35295}
35296_ACEOF
35297rm -f conftest.$ac_objext conftest$ac_exeext
35298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35299 (eval $ac_link) 2>conftest.er1
a848cd7e 35300 ac_status=$?
ac1cb8d3
VS
35301 grep -v '^ *+' conftest.er1 >conftest.err
35302 rm -f conftest.er1
35303 cat conftest.err >&5
a848cd7e
SC
35304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35305 (exit $ac_status); } &&
3565d135
RR
35306 { ac_try='test -z "$ac_c_werror_flag"
35307 || test ! -s conftest.err'
ac1cb8d3
VS
35308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35309 (eval $ac_try) 2>&5
35310 ac_status=$?
35311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35312 (exit $ac_status); }; } &&
35313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35315 (eval $ac_try) 2>&5
35316 ac_status=$?
35317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318 (exit $ac_status); }; }; then
35319 eval "$as_ac_var=yes"
35320else
35321 echo "$as_me: failed program was:" >&5
35322sed 's/^/| /' conftest.$ac_ext >&5
35323
35324eval "$as_ac_var=no"
35325fi
ac1cb8d3
VS
35326rm -f conftest.err conftest.$ac_objext \
35327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35328fi
35329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35331if test `eval echo '${'$as_ac_var'}'` = yes; then
35332 cat >>confdefs.h <<_ACEOF
35333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35334_ACEOF
35335
35336fi
35337done
35338
35339
35340
35341
35342for ac_func in putenv setenv
35343do
35344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35345echo "$as_me:$LINENO: checking for $ac_func" >&5
35346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35347if eval "test \"\${$as_ac_var+set}\" = set"; then
35348 echo $ECHO_N "(cached) $ECHO_C" >&6
35349else
35350 cat >conftest.$ac_ext <<_ACEOF
35351/* confdefs.h. */
35352_ACEOF
35353cat confdefs.h >>conftest.$ac_ext
35354cat >>conftest.$ac_ext <<_ACEOF
35355/* end confdefs.h. */
ac1cb8d3
VS
35356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35358#define $ac_func innocuous_$ac_func
35359
a848cd7e
SC
35360/* System header to define __stub macros and hopefully few prototypes,
35361 which can conflict with char $ac_func (); below.
35362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35363 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35364
a848cd7e
SC
35365#ifdef __STDC__
35366# include <limits.h>
35367#else
35368# include <assert.h>
35369#endif
ac1cb8d3
VS
35370
35371#undef $ac_func
35372
a848cd7e
SC
35373/* Override any gcc2 internal prototype to avoid an error. */
35374#ifdef __cplusplus
35375extern "C"
35376{
35377#endif
35378/* We use char because int might match the return type of a gcc2
35379 builtin and then its argument prototype would still apply. */
35380char $ac_func ();
35381/* The GNU C library defines this for functions which it implements
35382 to always fail with ENOSYS. Some functions are actually named
35383 something starting with __ and the normal name is an alias. */
35384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35385choke me
35386#else
35387char (*f) () = $ac_func;
35388#endif
35389#ifdef __cplusplus
35390}
35391#endif
35392
35393int
35394main ()
35395{
35396return f != $ac_func;
35397 ;
35398 return 0;
35399}
35400_ACEOF
35401rm -f conftest.$ac_objext conftest$ac_exeext
35402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35403 (eval $ac_link) 2>conftest.er1
a848cd7e 35404 ac_status=$?
ac1cb8d3
VS
35405 grep -v '^ *+' conftest.er1 >conftest.err
35406 rm -f conftest.er1
35407 cat conftest.err >&5
a848cd7e
SC
35408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409 (exit $ac_status); } &&
3565d135
RR
35410 { ac_try='test -z "$ac_c_werror_flag"
35411 || test ! -s conftest.err'
ac1cb8d3
VS
35412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35413 (eval $ac_try) 2>&5
35414 ac_status=$?
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); }; } &&
35417 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35419 (eval $ac_try) 2>&5
35420 ac_status=$?
35421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35422 (exit $ac_status); }; }; then
35423 eval "$as_ac_var=yes"
35424else
35425 echo "$as_me: failed program was:" >&5
35426sed 's/^/| /' conftest.$ac_ext >&5
35427
35428eval "$as_ac_var=no"
35429fi
ac1cb8d3
VS
35430rm -f conftest.err conftest.$ac_objext \
35431 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35432fi
35433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35435if test `eval echo '${'$as_ac_var'}'` = yes; then
35436 cat >>confdefs.h <<_ACEOF
35437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35438_ACEOF
35439 break
35440fi
35441done
35442
35443
35444HAVE_SOME_SLEEP_FUNC=0
35445if test "$USE_BEOS" = 1; then
35446 cat >>confdefs.h <<\_ACEOF
35447#define HAVE_SLEEP 1
35448_ACEOF
35449
35450 HAVE_SOME_SLEEP_FUNC=1
35451fi
35452
35453if test "$USE_DARWIN" = 1; then
35454 cat >>confdefs.h <<\_ACEOF
35455#define HAVE_USLEEP 1
35456_ACEOF
35457
35458 HAVE_SOME_SLEEP_FUNC=1
35459fi
35460
35461if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35462 POSIX4_LINK=
35463
35464for ac_func in nanosleep
35465do
35466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35467echo "$as_me:$LINENO: checking for $ac_func" >&5
35468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35469if eval "test \"\${$as_ac_var+set}\" = set"; then
35470 echo $ECHO_N "(cached) $ECHO_C" >&6
35471else
35472 cat >conftest.$ac_ext <<_ACEOF
35473/* confdefs.h. */
35474_ACEOF
35475cat confdefs.h >>conftest.$ac_ext
35476cat >>conftest.$ac_ext <<_ACEOF
35477/* end confdefs.h. */
ac1cb8d3
VS
35478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35480#define $ac_func innocuous_$ac_func
35481
a848cd7e
SC
35482/* System header to define __stub macros and hopefully few prototypes,
35483 which can conflict with char $ac_func (); below.
35484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35485 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35486
a848cd7e
SC
35487#ifdef __STDC__
35488# include <limits.h>
35489#else
35490# include <assert.h>
35491#endif
ac1cb8d3
VS
35492
35493#undef $ac_func
35494
a848cd7e
SC
35495/* Override any gcc2 internal prototype to avoid an error. */
35496#ifdef __cplusplus
35497extern "C"
35498{
35499#endif
35500/* We use char because int might match the return type of a gcc2
35501 builtin and then its argument prototype would still apply. */
35502char $ac_func ();
35503/* The GNU C library defines this for functions which it implements
35504 to always fail with ENOSYS. Some functions are actually named
35505 something starting with __ and the normal name is an alias. */
35506#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35507choke me
35508#else
35509char (*f) () = $ac_func;
35510#endif
35511#ifdef __cplusplus
35512}
35513#endif
35514
35515int
35516main ()
35517{
35518return f != $ac_func;
35519 ;
35520 return 0;
35521}
35522_ACEOF
35523rm -f conftest.$ac_objext conftest$ac_exeext
35524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35525 (eval $ac_link) 2>conftest.er1
a848cd7e 35526 ac_status=$?
ac1cb8d3
VS
35527 grep -v '^ *+' conftest.er1 >conftest.err
35528 rm -f conftest.er1
35529 cat conftest.err >&5
a848cd7e
SC
35530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531 (exit $ac_status); } &&
3565d135
RR
35532 { ac_try='test -z "$ac_c_werror_flag"
35533 || test ! -s conftest.err'
ac1cb8d3
VS
35534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35535 (eval $ac_try) 2>&5
35536 ac_status=$?
35537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538 (exit $ac_status); }; } &&
35539 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35541 (eval $ac_try) 2>&5
35542 ac_status=$?
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); }; }; then
35545 eval "$as_ac_var=yes"
35546else
35547 echo "$as_me: failed program was:" >&5
35548sed 's/^/| /' conftest.$ac_ext >&5
35549
35550eval "$as_ac_var=no"
35551fi
ac1cb8d3
VS
35552rm -f conftest.err conftest.$ac_objext \
35553 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35554fi
35555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35556echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35557if test `eval echo '${'$as_ac_var'}'` = yes; then
35558 cat >>confdefs.h <<_ACEOF
35559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35560_ACEOF
35561 cat >>confdefs.h <<\_ACEOF
35562#define HAVE_NANOSLEEP 1
35563_ACEOF
35564
35565else
35566
35567 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35568echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35569if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35570 echo $ECHO_N "(cached) $ECHO_C" >&6
35571else
35572 ac_check_lib_save_LIBS=$LIBS
35573LIBS="-lposix4 $LIBS"
35574cat >conftest.$ac_ext <<_ACEOF
35575/* confdefs.h. */
35576_ACEOF
35577cat confdefs.h >>conftest.$ac_ext
35578cat >>conftest.$ac_ext <<_ACEOF
35579/* end confdefs.h. */
35580
35581/* Override any gcc2 internal prototype to avoid an error. */
35582#ifdef __cplusplus
35583extern "C"
35584#endif
35585/* We use char because int might match the return type of a gcc2
35586 builtin and then its argument prototype would still apply. */
35587char nanosleep ();
35588int
35589main ()
35590{
35591nanosleep ();
35592 ;
35593 return 0;
35594}
35595_ACEOF
35596rm -f conftest.$ac_objext conftest$ac_exeext
35597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35598 (eval $ac_link) 2>conftest.er1
a848cd7e 35599 ac_status=$?
ac1cb8d3
VS
35600 grep -v '^ *+' conftest.er1 >conftest.err
35601 rm -f conftest.er1
35602 cat conftest.err >&5
a848cd7e
SC
35603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604 (exit $ac_status); } &&
3565d135
RR
35605 { ac_try='test -z "$ac_c_werror_flag"
35606 || test ! -s conftest.err'
ac1cb8d3
VS
35607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35608 (eval $ac_try) 2>&5
35609 ac_status=$?
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); }; } &&
35612 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35614 (eval $ac_try) 2>&5
35615 ac_status=$?
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); }; }; then
35618 ac_cv_lib_posix4_nanosleep=yes
35619else
35620 echo "$as_me: failed program was:" >&5
35621sed 's/^/| /' conftest.$ac_ext >&5
35622
35623ac_cv_lib_posix4_nanosleep=no
35624fi
ac1cb8d3
VS
35625rm -f conftest.err conftest.$ac_objext \
35626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35627LIBS=$ac_check_lib_save_LIBS
35628fi
35629echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35630echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35631if test $ac_cv_lib_posix4_nanosleep = yes; then
35632
35633 cat >>confdefs.h <<\_ACEOF
35634#define HAVE_NANOSLEEP 1
35635_ACEOF
35636
35637 POSIX4_LINK=" -lposix4"
35638
35639else
35640
35641
35642for ac_func in usleep
35643do
35644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35645echo "$as_me:$LINENO: checking for $ac_func" >&5
35646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35647if eval "test \"\${$as_ac_var+set}\" = set"; then
35648 echo $ECHO_N "(cached) $ECHO_C" >&6
35649else
35650 cat >conftest.$ac_ext <<_ACEOF
35651/* confdefs.h. */
35652_ACEOF
35653cat confdefs.h >>conftest.$ac_ext
35654cat >>conftest.$ac_ext <<_ACEOF
35655/* end confdefs.h. */
ac1cb8d3
VS
35656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35658#define $ac_func innocuous_$ac_func
35659
a848cd7e
SC
35660/* System header to define __stub macros and hopefully few prototypes,
35661 which can conflict with char $ac_func (); below.
35662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35663 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35664
a848cd7e
SC
35665#ifdef __STDC__
35666# include <limits.h>
35667#else
35668# include <assert.h>
35669#endif
ac1cb8d3
VS
35670
35671#undef $ac_func
35672
a848cd7e
SC
35673/* Override any gcc2 internal prototype to avoid an error. */
35674#ifdef __cplusplus
35675extern "C"
35676{
35677#endif
35678/* We use char because int might match the return type of a gcc2
35679 builtin and then its argument prototype would still apply. */
35680char $ac_func ();
35681/* The GNU C library defines this for functions which it implements
35682 to always fail with ENOSYS. Some functions are actually named
35683 something starting with __ and the normal name is an alias. */
35684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35685choke me
35686#else
35687char (*f) () = $ac_func;
35688#endif
35689#ifdef __cplusplus
35690}
35691#endif
35692
35693int
35694main ()
35695{
35696return f != $ac_func;
35697 ;
35698 return 0;
35699}
35700_ACEOF
35701rm -f conftest.$ac_objext conftest$ac_exeext
35702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35703 (eval $ac_link) 2>conftest.er1
a848cd7e 35704 ac_status=$?
ac1cb8d3
VS
35705 grep -v '^ *+' conftest.er1 >conftest.err
35706 rm -f conftest.er1
35707 cat conftest.err >&5
a848cd7e
SC
35708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709 (exit $ac_status); } &&
3565d135
RR
35710 { ac_try='test -z "$ac_c_werror_flag"
35711 || test ! -s conftest.err'
ac1cb8d3
VS
35712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35713 (eval $ac_try) 2>&5
35714 ac_status=$?
35715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35716 (exit $ac_status); }; } &&
35717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35719 (eval $ac_try) 2>&5
35720 ac_status=$?
35721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35722 (exit $ac_status); }; }; then
35723 eval "$as_ac_var=yes"
35724else
35725 echo "$as_me: failed program was:" >&5
35726sed 's/^/| /' conftest.$ac_ext >&5
35727
35728eval "$as_ac_var=no"
35729fi
ac1cb8d3
VS
35730rm -f conftest.err conftest.$ac_objext \
35731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35732fi
35733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35735if test `eval echo '${'$as_ac_var'}'` = yes; then
35736 cat >>confdefs.h <<_ACEOF
35737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35738_ACEOF
35739 cat >>confdefs.h <<\_ACEOF
35740#define HAVE_USLEEP 1
35741_ACEOF
35742
35743else
35744 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35745echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35746
35747fi
35748done
35749
35750
35751
35752fi
35753
35754
35755
35756fi
35757done
35758
35759fi
35760
35761
35762
35763for ac_func in uname gethostname
35764do
35765as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35766echo "$as_me:$LINENO: checking for $ac_func" >&5
35767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35768if eval "test \"\${$as_ac_var+set}\" = set"; then
35769 echo $ECHO_N "(cached) $ECHO_C" >&6
35770else
35771 cat >conftest.$ac_ext <<_ACEOF
35772/* confdefs.h. */
35773_ACEOF
35774cat confdefs.h >>conftest.$ac_ext
35775cat >>conftest.$ac_ext <<_ACEOF
35776/* end confdefs.h. */
ac1cb8d3
VS
35777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35779#define $ac_func innocuous_$ac_func
35780
a848cd7e
SC
35781/* System header to define __stub macros and hopefully few prototypes,
35782 which can conflict with char $ac_func (); below.
35783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35784 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35785
a848cd7e
SC
35786#ifdef __STDC__
35787# include <limits.h>
35788#else
35789# include <assert.h>
35790#endif
ac1cb8d3
VS
35791
35792#undef $ac_func
35793
a848cd7e
SC
35794/* Override any gcc2 internal prototype to avoid an error. */
35795#ifdef __cplusplus
35796extern "C"
35797{
35798#endif
35799/* We use char because int might match the return type of a gcc2
35800 builtin and then its argument prototype would still apply. */
35801char $ac_func ();
35802/* The GNU C library defines this for functions which it implements
35803 to always fail with ENOSYS. Some functions are actually named
35804 something starting with __ and the normal name is an alias. */
35805#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35806choke me
35807#else
35808char (*f) () = $ac_func;
35809#endif
35810#ifdef __cplusplus
35811}
35812#endif
35813
35814int
35815main ()
35816{
35817return f != $ac_func;
35818 ;
35819 return 0;
35820}
35821_ACEOF
35822rm -f conftest.$ac_objext conftest$ac_exeext
35823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35824 (eval $ac_link) 2>conftest.er1
a848cd7e 35825 ac_status=$?
ac1cb8d3
VS
35826 grep -v '^ *+' conftest.er1 >conftest.err
35827 rm -f conftest.er1
35828 cat conftest.err >&5
a848cd7e
SC
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); } &&
3565d135
RR
35831 { ac_try='test -z "$ac_c_werror_flag"
35832 || test ! -s conftest.err'
ac1cb8d3
VS
35833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35834 (eval $ac_try) 2>&5
35835 ac_status=$?
35836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837 (exit $ac_status); }; } &&
35838 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840 (eval $ac_try) 2>&5
35841 ac_status=$?
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); }; }; then
35844 eval "$as_ac_var=yes"
35845else
35846 echo "$as_me: failed program was:" >&5
35847sed 's/^/| /' conftest.$ac_ext >&5
35848
35849eval "$as_ac_var=no"
35850fi
ac1cb8d3
VS
35851rm -f conftest.err conftest.$ac_objext \
35852 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35853fi
35854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35855echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35856if test `eval echo '${'$as_ac_var'}'` = yes; then
35857 cat >>confdefs.h <<_ACEOF
35858#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35859_ACEOF
35860 break
35861fi
35862done
35863
35864
35865
35866
35867ac_ext=cc
35868ac_cpp='$CXXCPP $CPPFLAGS'
35869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35872
35873
35874
35875for ac_func in strtok_r
35876do
35877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35878echo "$as_me:$LINENO: checking for $ac_func" >&5
35879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35880if eval "test \"\${$as_ac_var+set}\" = set"; then
35881 echo $ECHO_N "(cached) $ECHO_C" >&6
35882else
35883 cat >conftest.$ac_ext <<_ACEOF
35884/* confdefs.h. */
35885_ACEOF
35886cat confdefs.h >>conftest.$ac_ext
35887cat >>conftest.$ac_ext <<_ACEOF
35888/* end confdefs.h. */
ac1cb8d3
VS
35889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35891#define $ac_func innocuous_$ac_func
35892
a848cd7e
SC
35893/* System header to define __stub macros and hopefully few prototypes,
35894 which can conflict with char $ac_func (); below.
35895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35896 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35897
a848cd7e
SC
35898#ifdef __STDC__
35899# include <limits.h>
35900#else
35901# include <assert.h>
35902#endif
ac1cb8d3
VS
35903
35904#undef $ac_func
35905
a848cd7e
SC
35906/* Override any gcc2 internal prototype to avoid an error. */
35907#ifdef __cplusplus
35908extern "C"
35909{
35910#endif
35911/* We use char because int might match the return type of a gcc2
35912 builtin and then its argument prototype would still apply. */
35913char $ac_func ();
35914/* The GNU C library defines this for functions which it implements
35915 to always fail with ENOSYS. Some functions are actually named
35916 something starting with __ and the normal name is an alias. */
35917#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35918choke me
35919#else
35920char (*f) () = $ac_func;
35921#endif
35922#ifdef __cplusplus
35923}
35924#endif
35925
35926int
35927main ()
35928{
35929return f != $ac_func;
35930 ;
35931 return 0;
35932}
35933_ACEOF
35934rm -f conftest.$ac_objext conftest$ac_exeext
35935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35936 (eval $ac_link) 2>conftest.er1
a848cd7e 35937 ac_status=$?
ac1cb8d3
VS
35938 grep -v '^ *+' conftest.er1 >conftest.err
35939 rm -f conftest.er1
35940 cat conftest.err >&5
a848cd7e
SC
35941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942 (exit $ac_status); } &&
3565d135
RR
35943 { ac_try='test -z "$ac_cxx_werror_flag"
35944 || test ! -s conftest.err'
ac1cb8d3
VS
35945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35946 (eval $ac_try) 2>&5
35947 ac_status=$?
35948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35949 (exit $ac_status); }; } &&
35950 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35952 (eval $ac_try) 2>&5
35953 ac_status=$?
35954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35955 (exit $ac_status); }; }; then
35956 eval "$as_ac_var=yes"
35957else
35958 echo "$as_me: failed program was:" >&5
35959sed 's/^/| /' conftest.$ac_ext >&5
35960
35961eval "$as_ac_var=no"
35962fi
ac1cb8d3
VS
35963rm -f conftest.err conftest.$ac_objext \
35964 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35965fi
35966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35967echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35968if test `eval echo '${'$as_ac_var'}'` = yes; then
35969 cat >>confdefs.h <<_ACEOF
35970#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35971_ACEOF
35972
35973fi
35974done
35975
35976
35977ac_ext=c
35978ac_cpp='$CPP $CPPFLAGS'
35979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35981ac_compiler_gnu=$ac_cv_c_compiler_gnu
35982
35983
35984INET_LINK=
35985
35986for ac_func in inet_addr
35987do
35988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35989echo "$as_me:$LINENO: checking for $ac_func" >&5
35990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35991if eval "test \"\${$as_ac_var+set}\" = set"; then
35992 echo $ECHO_N "(cached) $ECHO_C" >&6
35993else
35994 cat >conftest.$ac_ext <<_ACEOF
35995/* confdefs.h. */
35996_ACEOF
35997cat confdefs.h >>conftest.$ac_ext
35998cat >>conftest.$ac_ext <<_ACEOF
35999/* end confdefs.h. */
ac1cb8d3
VS
36000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36002#define $ac_func innocuous_$ac_func
36003
a848cd7e
SC
36004/* System header to define __stub macros and hopefully few prototypes,
36005 which can conflict with char $ac_func (); below.
36006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36007 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36008
a848cd7e
SC
36009#ifdef __STDC__
36010# include <limits.h>
36011#else
36012# include <assert.h>
36013#endif
ac1cb8d3
VS
36014
36015#undef $ac_func
36016
a848cd7e
SC
36017/* Override any gcc2 internal prototype to avoid an error. */
36018#ifdef __cplusplus
36019extern "C"
36020{
36021#endif
36022/* We use char because int might match the return type of a gcc2
36023 builtin and then its argument prototype would still apply. */
36024char $ac_func ();
36025/* The GNU C library defines this for functions which it implements
36026 to always fail with ENOSYS. Some functions are actually named
36027 something starting with __ and the normal name is an alias. */
36028#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36029choke me
36030#else
36031char (*f) () = $ac_func;
36032#endif
36033#ifdef __cplusplus
36034}
36035#endif
36036
36037int
36038main ()
36039{
36040return f != $ac_func;
36041 ;
36042 return 0;
36043}
36044_ACEOF
36045rm -f conftest.$ac_objext conftest$ac_exeext
36046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36047 (eval $ac_link) 2>conftest.er1
a848cd7e 36048 ac_status=$?
ac1cb8d3
VS
36049 grep -v '^ *+' conftest.er1 >conftest.err
36050 rm -f conftest.er1
36051 cat conftest.err >&5
a848cd7e
SC
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); } &&
3565d135
RR
36054 { ac_try='test -z "$ac_c_werror_flag"
36055 || test ! -s conftest.err'
ac1cb8d3
VS
36056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36057 (eval $ac_try) 2>&5
36058 ac_status=$?
36059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 (exit $ac_status); }; } &&
36061 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36063 (eval $ac_try) 2>&5
36064 ac_status=$?
36065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066 (exit $ac_status); }; }; then
36067 eval "$as_ac_var=yes"
36068else
36069 echo "$as_me: failed program was:" >&5
36070sed 's/^/| /' conftest.$ac_ext >&5
36071
36072eval "$as_ac_var=no"
36073fi
ac1cb8d3
VS
36074rm -f conftest.err conftest.$ac_objext \
36075 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36076fi
36077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36078echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36079if test `eval echo '${'$as_ac_var'}'` = yes; then
36080 cat >>confdefs.h <<_ACEOF
36081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36082_ACEOF
36083 cat >>confdefs.h <<\_ACEOF
36084#define HAVE_INET_ADDR 1
36085_ACEOF
36086
36087else
36088
36089 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36090echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36091if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36092 echo $ECHO_N "(cached) $ECHO_C" >&6
36093else
36094 ac_check_lib_save_LIBS=$LIBS
36095LIBS="-lnsl $LIBS"
36096cat >conftest.$ac_ext <<_ACEOF
36097/* confdefs.h. */
36098_ACEOF
36099cat confdefs.h >>conftest.$ac_ext
36100cat >>conftest.$ac_ext <<_ACEOF
36101/* end confdefs.h. */
36102
36103/* Override any gcc2 internal prototype to avoid an error. */
36104#ifdef __cplusplus
36105extern "C"
36106#endif
36107/* We use char because int might match the return type of a gcc2
36108 builtin and then its argument prototype would still apply. */
36109char inet_addr ();
36110int
36111main ()
36112{
36113inet_addr ();
36114 ;
36115 return 0;
36116}
36117_ACEOF
36118rm -f conftest.$ac_objext conftest$ac_exeext
36119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36120 (eval $ac_link) 2>conftest.er1
a848cd7e 36121 ac_status=$?
ac1cb8d3
VS
36122 grep -v '^ *+' conftest.er1 >conftest.err
36123 rm -f conftest.er1
36124 cat conftest.err >&5
a848cd7e
SC
36125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126 (exit $ac_status); } &&
3565d135
RR
36127 { ac_try='test -z "$ac_c_werror_flag"
36128 || test ! -s conftest.err'
ac1cb8d3
VS
36129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130 (eval $ac_try) 2>&5
36131 ac_status=$?
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); }; } &&
36134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36136 (eval $ac_try) 2>&5
36137 ac_status=$?
36138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 (exit $ac_status); }; }; then
36140 ac_cv_lib_nsl_inet_addr=yes
36141else
36142 echo "$as_me: failed program was:" >&5
36143sed 's/^/| /' conftest.$ac_ext >&5
36144
36145ac_cv_lib_nsl_inet_addr=no
36146fi
ac1cb8d3
VS
36147rm -f conftest.err conftest.$ac_objext \
36148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36149LIBS=$ac_check_lib_save_LIBS
36150fi
36151echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36152echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36153if test $ac_cv_lib_nsl_inet_addr = yes; then
36154 INET_LINK="nsl"
36155else
36156
36157 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36158echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36159if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36160 echo $ECHO_N "(cached) $ECHO_C" >&6
36161else
36162 ac_check_lib_save_LIBS=$LIBS
36163LIBS="-lresolv $LIBS"
36164cat >conftest.$ac_ext <<_ACEOF
36165/* confdefs.h. */
36166_ACEOF
36167cat confdefs.h >>conftest.$ac_ext
36168cat >>conftest.$ac_ext <<_ACEOF
36169/* end confdefs.h. */
36170
36171/* Override any gcc2 internal prototype to avoid an error. */
36172#ifdef __cplusplus
36173extern "C"
36174#endif
36175/* We use char because int might match the return type of a gcc2
36176 builtin and then its argument prototype would still apply. */
36177char inet_addr ();
36178int
36179main ()
36180{
36181inet_addr ();
36182 ;
36183 return 0;
36184}
36185_ACEOF
36186rm -f conftest.$ac_objext conftest$ac_exeext
36187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36188 (eval $ac_link) 2>conftest.er1
a848cd7e 36189 ac_status=$?
ac1cb8d3
VS
36190 grep -v '^ *+' conftest.er1 >conftest.err
36191 rm -f conftest.er1
36192 cat conftest.err >&5
a848cd7e
SC
36193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36194 (exit $ac_status); } &&
3565d135
RR
36195 { ac_try='test -z "$ac_c_werror_flag"
36196 || test ! -s conftest.err'
ac1cb8d3
VS
36197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36198 (eval $ac_try) 2>&5
36199 ac_status=$?
36200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36201 (exit $ac_status); }; } &&
36202 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36204 (eval $ac_try) 2>&5
36205 ac_status=$?
36206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36207 (exit $ac_status); }; }; then
36208 ac_cv_lib_resolv_inet_addr=yes
36209else
36210 echo "$as_me: failed program was:" >&5
36211sed 's/^/| /' conftest.$ac_ext >&5
36212
36213ac_cv_lib_resolv_inet_addr=no
36214fi
ac1cb8d3
VS
36215rm -f conftest.err conftest.$ac_objext \
36216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36217LIBS=$ac_check_lib_save_LIBS
36218fi
36219echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36220echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36221if test $ac_cv_lib_resolv_inet_addr = yes; then
36222 INET_LINK="resolv"
36223else
36224
36225 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36226echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36227if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36228 echo $ECHO_N "(cached) $ECHO_C" >&6
36229else
36230 ac_check_lib_save_LIBS=$LIBS
36231LIBS="-lsocket $LIBS"
36232cat >conftest.$ac_ext <<_ACEOF
36233/* confdefs.h. */
36234_ACEOF
36235cat confdefs.h >>conftest.$ac_ext
36236cat >>conftest.$ac_ext <<_ACEOF
36237/* end confdefs.h. */
36238
36239/* Override any gcc2 internal prototype to avoid an error. */
36240#ifdef __cplusplus
36241extern "C"
36242#endif
36243/* We use char because int might match the return type of a gcc2
36244 builtin and then its argument prototype would still apply. */
36245char inet_addr ();
36246int
36247main ()
36248{
36249inet_addr ();
36250 ;
36251 return 0;
36252}
36253_ACEOF
36254rm -f conftest.$ac_objext conftest$ac_exeext
36255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36256 (eval $ac_link) 2>conftest.er1
a848cd7e 36257 ac_status=$?
ac1cb8d3
VS
36258 grep -v '^ *+' conftest.er1 >conftest.err
36259 rm -f conftest.er1
36260 cat conftest.err >&5
a848cd7e
SC
36261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262 (exit $ac_status); } &&
3565d135
RR
36263 { ac_try='test -z "$ac_c_werror_flag"
36264 || test ! -s conftest.err'
ac1cb8d3
VS
36265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36266 (eval $ac_try) 2>&5
36267 ac_status=$?
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); }; } &&
36270 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36272 (eval $ac_try) 2>&5
36273 ac_status=$?
36274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36275 (exit $ac_status); }; }; then
36276 ac_cv_lib_socket_inet_addr=yes
36277else
36278 echo "$as_me: failed program was:" >&5
36279sed 's/^/| /' conftest.$ac_ext >&5
36280
36281ac_cv_lib_socket_inet_addr=no
36282fi
ac1cb8d3
VS
36283rm -f conftest.err conftest.$ac_objext \
36284 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36285LIBS=$ac_check_lib_save_LIBS
36286fi
36287echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36288echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36289if test $ac_cv_lib_socket_inet_addr = yes; then
36290 INET_LINK="socket"
36291
36292fi
36293
36294
36295
36296fi
36297
36298
36299
36300fi
36301
36302
36303
36304fi
36305done
36306
36307
36308
36309for ac_func in inet_aton
36310do
36311as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36312echo "$as_me:$LINENO: checking for $ac_func" >&5
36313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36314if eval "test \"\${$as_ac_var+set}\" = set"; then
36315 echo $ECHO_N "(cached) $ECHO_C" >&6
36316else
36317 cat >conftest.$ac_ext <<_ACEOF
36318/* confdefs.h. */
36319_ACEOF
36320cat confdefs.h >>conftest.$ac_ext
36321cat >>conftest.$ac_ext <<_ACEOF
36322/* end confdefs.h. */
ac1cb8d3
VS
36323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36325#define $ac_func innocuous_$ac_func
36326
a848cd7e
SC
36327/* System header to define __stub macros and hopefully few prototypes,
36328 which can conflict with char $ac_func (); below.
36329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36330 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36331
a848cd7e
SC
36332#ifdef __STDC__
36333# include <limits.h>
36334#else
36335# include <assert.h>
36336#endif
ac1cb8d3
VS
36337
36338#undef $ac_func
36339
a848cd7e
SC
36340/* Override any gcc2 internal prototype to avoid an error. */
36341#ifdef __cplusplus
36342extern "C"
36343{
36344#endif
36345/* We use char because int might match the return type of a gcc2
36346 builtin and then its argument prototype would still apply. */
36347char $ac_func ();
36348/* The GNU C library defines this for functions which it implements
36349 to always fail with ENOSYS. Some functions are actually named
36350 something starting with __ and the normal name is an alias. */
36351#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36352choke me
36353#else
36354char (*f) () = $ac_func;
36355#endif
36356#ifdef __cplusplus
36357}
36358#endif
36359
36360int
36361main ()
36362{
36363return f != $ac_func;
36364 ;
36365 return 0;
36366}
36367_ACEOF
36368rm -f conftest.$ac_objext conftest$ac_exeext
36369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36370 (eval $ac_link) 2>conftest.er1
a848cd7e 36371 ac_status=$?
ac1cb8d3
VS
36372 grep -v '^ *+' conftest.er1 >conftest.err
36373 rm -f conftest.er1
36374 cat conftest.err >&5
a848cd7e
SC
36375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); } &&
3565d135
RR
36377 { ac_try='test -z "$ac_c_werror_flag"
36378 || test ! -s conftest.err'
ac1cb8d3
VS
36379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36380 (eval $ac_try) 2>&5
36381 ac_status=$?
36382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383 (exit $ac_status); }; } &&
36384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36386 (eval $ac_try) 2>&5
36387 ac_status=$?
36388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389 (exit $ac_status); }; }; then
36390 eval "$as_ac_var=yes"
36391else
36392 echo "$as_me: failed program was:" >&5
36393sed 's/^/| /' conftest.$ac_ext >&5
36394
36395eval "$as_ac_var=no"
36396fi
ac1cb8d3
VS
36397rm -f conftest.err conftest.$ac_objext \
36398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36399fi
36400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36402if test `eval echo '${'$as_ac_var'}'` = yes; then
36403 cat >>confdefs.h <<_ACEOF
36404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36405_ACEOF
36406 cat >>confdefs.h <<\_ACEOF
36407#define HAVE_INET_ATON 1
36408_ACEOF
36409
36410else
36411
36412 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36413echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36414echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36415if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36416 echo $ECHO_N "(cached) $ECHO_C" >&6
36417else
36418 ac_check_lib_save_LIBS=$LIBS
36419LIBS="-l$INET_LINK $LIBS"
36420cat >conftest.$ac_ext <<_ACEOF
36421/* confdefs.h. */
36422_ACEOF
36423cat confdefs.h >>conftest.$ac_ext
36424cat >>conftest.$ac_ext <<_ACEOF
36425/* end confdefs.h. */
36426
36427/* Override any gcc2 internal prototype to avoid an error. */
36428#ifdef __cplusplus
36429extern "C"
36430#endif
36431/* We use char because int might match the return type of a gcc2
36432 builtin and then its argument prototype would still apply. */
36433char inet_aton ();
36434int
36435main ()
36436{
36437inet_aton ();
36438 ;
36439 return 0;
36440}
36441_ACEOF
36442rm -f conftest.$ac_objext conftest$ac_exeext
36443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36444 (eval $ac_link) 2>conftest.er1
a848cd7e 36445 ac_status=$?
ac1cb8d3
VS
36446 grep -v '^ *+' conftest.er1 >conftest.err
36447 rm -f conftest.er1
36448 cat conftest.err >&5
a848cd7e
SC
36449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); } &&
3565d135
RR
36451 { ac_try='test -z "$ac_c_werror_flag"
36452 || test ! -s conftest.err'
ac1cb8d3
VS
36453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36454 (eval $ac_try) 2>&5
36455 ac_status=$?
36456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457 (exit $ac_status); }; } &&
36458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36460 (eval $ac_try) 2>&5
36461 ac_status=$?
36462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463 (exit $ac_status); }; }; then
36464 eval "$as_ac_Lib=yes"
36465else
36466 echo "$as_me: failed program was:" >&5
36467sed 's/^/| /' conftest.$ac_ext >&5
36468
36469eval "$as_ac_Lib=no"
36470fi
ac1cb8d3
VS
36471rm -f conftest.err conftest.$ac_objext \
36472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36473LIBS=$ac_check_lib_save_LIBS
36474fi
36475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36476echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36477if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36478 cat >>confdefs.h <<\_ACEOF
36479#define HAVE_INET_ATON 1
36480_ACEOF
36481
36482fi
36483
36484
36485fi
36486done
36487
36488
36489if test "x$INET_LINK" != "x"; then
36490 cat >>confdefs.h <<\_ACEOF
36491#define HAVE_INET_ADDR 1
36492_ACEOF
36493
36494 INET_LINK=" -l$INET_LINK"
36495fi
36496
36497fi
36498
36499
36500
36501EXTRALIBS_ESD=
36502echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36503echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36504if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36505 echo $ECHO_N "(cached) $ECHO_C" >&6
36506else
36507 ac_check_lib_save_LIBS=$LIBS
36508LIBS="-lesd $LIBS"
36509cat >conftest.$ac_ext <<_ACEOF
36510/* confdefs.h. */
36511_ACEOF
36512cat confdefs.h >>conftest.$ac_ext
36513cat >>conftest.$ac_ext <<_ACEOF
36514/* end confdefs.h. */
36515
36516/* Override any gcc2 internal prototype to avoid an error. */
36517#ifdef __cplusplus
36518extern "C"
36519#endif
36520/* We use char because int might match the return type of a gcc2
36521 builtin and then its argument prototype would still apply. */
36522char esd_close ();
36523int
36524main ()
36525{
36526esd_close ();
36527 ;
36528 return 0;
36529}
36530_ACEOF
36531rm -f conftest.$ac_objext conftest$ac_exeext
36532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36533 (eval $ac_link) 2>conftest.er1
a848cd7e 36534 ac_status=$?
ac1cb8d3
VS
36535 grep -v '^ *+' conftest.er1 >conftest.err
36536 rm -f conftest.er1
36537 cat conftest.err >&5
a848cd7e
SC
36538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539 (exit $ac_status); } &&
3565d135
RR
36540 { ac_try='test -z "$ac_c_werror_flag"
36541 || test ! -s conftest.err'
ac1cb8d3
VS
36542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36543 (eval $ac_try) 2>&5
36544 ac_status=$?
36545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); }; } &&
36547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36549 (eval $ac_try) 2>&5
36550 ac_status=$?
36551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36552 (exit $ac_status); }; }; then
36553 ac_cv_lib_esd_esd_close=yes
36554else
36555 echo "$as_me: failed program was:" >&5
36556sed 's/^/| /' conftest.$ac_ext >&5
36557
36558ac_cv_lib_esd_esd_close=no
36559fi
ac1cb8d3
VS
36560rm -f conftest.err conftest.$ac_objext \
36561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36562LIBS=$ac_check_lib_save_LIBS
36563fi
36564echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36565echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36566if test $ac_cv_lib_esd_esd_close = yes; then
36567
36568
36569for ac_header in esd.h
36570do
36571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36572if eval "test \"\${$as_ac_Header+set}\" = set"; then
36573 echo "$as_me:$LINENO: checking for $ac_header" >&5
36574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36575if eval "test \"\${$as_ac_Header+set}\" = set"; then
36576 echo $ECHO_N "(cached) $ECHO_C" >&6
36577fi
36578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36580else
36581 # Is the header compilable?
36582echo "$as_me:$LINENO: checking $ac_header usability" >&5
36583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36584cat >conftest.$ac_ext <<_ACEOF
36585/* confdefs.h. */
36586_ACEOF
36587cat confdefs.h >>conftest.$ac_ext
36588cat >>conftest.$ac_ext <<_ACEOF
36589/* end confdefs.h. */
36590$ac_includes_default
36591#include <$ac_header>
36592_ACEOF
36593rm -f conftest.$ac_objext
36594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36595 (eval $ac_compile) 2>conftest.er1
a848cd7e 36596 ac_status=$?
ac1cb8d3
VS
36597 grep -v '^ *+' conftest.er1 >conftest.err
36598 rm -f conftest.er1
36599 cat conftest.err >&5
a848cd7e
SC
36600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36601 (exit $ac_status); } &&
3565d135
RR
36602 { ac_try='test -z "$ac_c_werror_flag"
36603 || test ! -s conftest.err'
ac1cb8d3
VS
36604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36605 (eval $ac_try) 2>&5
36606 ac_status=$?
36607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608 (exit $ac_status); }; } &&
36609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36611 (eval $ac_try) 2>&5
36612 ac_status=$?
36613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36614 (exit $ac_status); }; }; then
36615 ac_header_compiler=yes
36616else
36617 echo "$as_me: failed program was:" >&5
36618sed 's/^/| /' conftest.$ac_ext >&5
36619
36620ac_header_compiler=no
36621fi
ac1cb8d3 36622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36624echo "${ECHO_T}$ac_header_compiler" >&6
36625
36626# Is the header present?
36627echo "$as_me:$LINENO: checking $ac_header presence" >&5
36628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36629cat >conftest.$ac_ext <<_ACEOF
36630/* confdefs.h. */
36631_ACEOF
36632cat confdefs.h >>conftest.$ac_ext
36633cat >>conftest.$ac_ext <<_ACEOF
36634/* end confdefs.h. */
36635#include <$ac_header>
36636_ACEOF
36637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36639 ac_status=$?
36640 grep -v '^ *+' conftest.er1 >conftest.err
36641 rm -f conftest.er1
36642 cat conftest.err >&5
36643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644 (exit $ac_status); } >/dev/null; then
36645 if test -s conftest.err; then
36646 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36648 else
36649 ac_cpp_err=
36650 fi
36651else
36652 ac_cpp_err=yes
36653fi
36654if test -z "$ac_cpp_err"; then
36655 ac_header_preproc=yes
36656else
36657 echo "$as_me: failed program was:" >&5
36658sed 's/^/| /' conftest.$ac_ext >&5
36659
36660 ac_header_preproc=no
36661fi
36662rm -f conftest.err conftest.$ac_ext
36663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36664echo "${ECHO_T}$ac_header_preproc" >&6
36665
36666# So? What about this header?
ac1cb8d3
VS
36667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36668 yes:no: )
a848cd7e
SC
36669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36673 ac_header_preproc=yes
a848cd7e 36674 ;;
ac1cb8d3 36675 no:yes:* )
a848cd7e
SC
36676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36679echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36683echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36688 (
36689 cat <<\_ASBOX
ac1cb8d3
VS
36690## ----------------------------------------- ##
36691## Report this to wx-dev@lists.wxwidgets.org ##
36692## ----------------------------------------- ##
a848cd7e
SC
36693_ASBOX
36694 ) |
36695 sed "s/^/$as_me: WARNING: /" >&2
36696 ;;
36697esac
36698echo "$as_me:$LINENO: checking for $ac_header" >&5
36699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36700if eval "test \"\${$as_ac_Header+set}\" = set"; then
36701 echo $ECHO_N "(cached) $ECHO_C" >&6
36702else
ac1cb8d3 36703 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36704fi
36705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36707
36708fi
36709if test `eval echo '${'$as_ac_Header'}'` = yes; then
36710 cat >>confdefs.h <<_ACEOF
36711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36712_ACEOF
36713
36714 EXTRALIBS_ESD="-lesd"
36715
36716fi
36717
36718done
36719
36720
36721fi
36722
36723
36724
36725echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36726echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36727cat >conftest.$ac_ext <<_ACEOF
36728/* confdefs.h. */
36729_ACEOF
36730cat confdefs.h >>conftest.$ac_ext
36731cat >>conftest.$ac_ext <<_ACEOF
36732/* end confdefs.h. */
36733#ifdef __linux__
36734 #include <linux/cdrom.h>
36735 #else
36736 /* For Solaris */
36737 #include <sys/cdio.h>
36738 #endif
36739
36740int
36741main ()
36742{
36743struct cdrom_tocentry entry, old_entry;
36744 ;
36745 return 0;
36746}
36747_ACEOF
36748rm -f conftest.$ac_objext
36749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36750 (eval $ac_compile) 2>conftest.er1
a848cd7e 36751 ac_status=$?
ac1cb8d3
VS
36752 grep -v '^ *+' conftest.er1 >conftest.err
36753 rm -f conftest.er1
36754 cat conftest.err >&5
a848cd7e
SC
36755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756 (exit $ac_status); } &&
3565d135
RR
36757 { ac_try='test -z "$ac_c_werror_flag"
36758 || test ! -s conftest.err'
ac1cb8d3
VS
36759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36760 (eval $ac_try) 2>&5
36761 ac_status=$?
36762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36763 (exit $ac_status); }; } &&
36764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36766 (eval $ac_try) 2>&5
36767 ac_status=$?
36768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769 (exit $ac_status); }; }; then
36770 echo "$as_me:$LINENO: result: yes" >&5
36771echo "${ECHO_T}yes" >&6
36772 cat >>confdefs.h <<\_ACEOF
36773#define HAVE_KNOWN_CDROM_INTERFACE 1
36774_ACEOF
36775
36776else
36777 echo "$as_me: failed program was:" >&5
36778sed 's/^/| /' conftest.$ac_ext >&5
36779
36780echo "$as_me:$LINENO: result: no" >&5
36781echo "${ECHO_T}no" >&6
36782fi
ac1cb8d3 36783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36784
36785
36786cat >confcache <<\_ACEOF
36787# This file is a shell script that caches the results of configure
36788# tests run on this system so they can be shared between configure
36789# scripts and configure runs, see configure's option --config-cache.
36790# It is not useful on other systems. If it contains results you don't
36791# want to keep, you may remove or edit it.
36792#
36793# config.status only pays attention to the cache file if you give it
36794# the --recheck option to rerun configure.
36795#
36796# `ac_cv_env_foo' variables (set or unset) will be overridden when
36797# loading this file, other *unset* `ac_cv_foo' will be assigned the
36798# following values.
36799
36800_ACEOF
36801
36802# The following way of writing the cache mishandles newlines in values,
36803# but we know of no workaround that is simple, portable, and efficient.
36804# So, don't put newlines in cache variables' values.
36805# Ultrix sh set writes to stderr and can't be redirected directly,
36806# and sets the high bit in the cache file unless we assign to the vars.
36807{
36808 (set) 2>&1 |
36809 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36810 *ac_space=\ *)
36811 # `set' does not quote correctly, so add quotes (double-quote
36812 # substitution turns \\\\ into \\, and sed turns \\ into \).
36813 sed -n \
ac1cb8d3
VS
36814 "s/'/'\\\\''/g;
36815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36816 ;;
36817 *)
36818 # `set' quotes correctly as required by POSIX, so do not add quotes.
36819 sed -n \
ac1cb8d3 36820 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36821 ;;
36822 esac;
36823} |
36824 sed '
36825 t clear
36826 : clear
36827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36828 t end
36829 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36830 : end' >>confcache
36831if diff $cache_file confcache >/dev/null 2>&1; then :; else
36832 if test -w $cache_file; then
36833 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36834 cat confcache >$cache_file
36835 else
36836 echo "not updating unwritable cache $cache_file"
36837 fi
36838fi
36839rm -f confcache
36840
36841
a848cd7e
SC
36842if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36843
36844
36845 THREADS_LINK=
36846 THREADS_CFLAGS=
36847
36848 if test "$wxUSE_THREADS" = "yes" ; then
36849 if test "$USE_BEOS" = 1; then
36850 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36851echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36852 wxUSE_THREADS="no"
36853 fi
36854 fi
36855
36856 if test "$wxUSE_THREADS" = "yes" ; then
36857
36858
36859 THREAD_OPTS="-pthread"
36860 case "${host}" in
36861 *-*-solaris2* | *-*-sunos4* )
36862 if test "x$GCC" = "xyes"; then
36863 THREAD_OPTS="-pthreads $THREAD_OPTS"
36864 else
36865 THREAD_OPTS="-mt $THREAD_OPTS"
36866 fi
36867 ;;
36868 *-*-freebsd*)
36869 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36870 ;;
36871 *-*-darwin* | *-*-cygwin* )
36872 THREAD_OPTS=""
36873 ;;
36874 *-*-aix*)
36875 THREAD_OPTS="pthreads"
36876 ;;
36877 *-hp-hpux* )
00421666
MW
36878 if test "x$GCC" = "xyes"; then
36879 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36880 THREAD_OPTS=""
36881 else
0093c2fc 36882 THREAD_OPTS="-mt"
a848cd7e
SC
36883 fi
36884 ;;
36885
36886 *-*-irix* )
36887 if test "x$GCC" = "xyes"; then
36888 THREAD_OPTS=""
36889 fi
36890 ;;
36891
36892 *-*-*UnixWare*)
36893 if test "x$GCC" != "xyes"; then
36894 THREAD_OPTS="-Ethread"
36895 fi
36896 ;;
36897 esac
36898
36899 THREAD_OPTS="$THREAD_OPTS pthread none"
36900
36901 THREADS_OK=no
36902 for flag in $THREAD_OPTS; do
36903 case $flag in
36904 none)
36905 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36906echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36907 ;;
36908
36909 -*)
36910 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36911echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36912 THREADS_CFLAGS="$flag"
36913 ;;
36914
36915 *)
36916 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36917echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36918 THREADS_LINK="-l$flag"
36919 ;;
36920 esac
36921
36922 save_LIBS="$LIBS"
36923 save_CFLAGS="$CFLAGS"
36924 LIBS="$THREADS_LINK $LIBS"
36925 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36926
36927 cat >conftest.$ac_ext <<_ACEOF
36928/* confdefs.h. */
36929_ACEOF
36930cat confdefs.h >>conftest.$ac_ext
36931cat >>conftest.$ac_ext <<_ACEOF
36932/* end confdefs.h. */
36933#include <pthread.h>
36934int
36935main ()
36936{
36937pthread_create(0,0,0,0);
36938 ;
36939 return 0;
36940}
36941_ACEOF
36942rm -f conftest.$ac_objext conftest$ac_exeext
36943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36944 (eval $ac_link) 2>conftest.er1
a848cd7e 36945 ac_status=$?
ac1cb8d3
VS
36946 grep -v '^ *+' conftest.er1 >conftest.err
36947 rm -f conftest.er1
36948 cat conftest.err >&5
a848cd7e
SC
36949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950 (exit $ac_status); } &&
3565d135
RR
36951 { ac_try='test -z "$ac_c_werror_flag"
36952 || test ! -s conftest.err'
ac1cb8d3
VS
36953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36954 (eval $ac_try) 2>&5
36955 ac_status=$?
36956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36957 (exit $ac_status); }; } &&
36958 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36960 (eval $ac_try) 2>&5
36961 ac_status=$?
36962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36963 (exit $ac_status); }; }; then
36964 THREADS_OK=yes
36965else
36966 echo "$as_me: failed program was:" >&5
36967sed 's/^/| /' conftest.$ac_ext >&5
36968
36969fi
ac1cb8d3
VS
36970rm -f conftest.err conftest.$ac_objext \
36971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36972
36973 LIBS="$save_LIBS"
36974 CFLAGS="$save_CFLAGS"
36975
36976 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36977echo "${ECHO_T}$THREADS_OK" >&6
36978 if test "x$THREADS_OK" = "xyes"; then
36979 break;
36980 fi
36981
36982 THREADS_LINK=""
36983 THREADS_CFLAGS=""
36984 done
36985
36986 if test "x$THREADS_OK" != "xyes"; then
36987 wxUSE_THREADS=no
36988 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36989echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36990 else
36991 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36992 LIBS="$THREADS_LINK $LIBS"
36993
36994 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36995echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36996 flag=no
36997 case "${host}" in
36998 *-aix*)
36999 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37000 flag="-D_THREAD_SAFE"
37001 ;;
37002 *-freebsd*)
37003 flag="-D_THREAD_SAFE"
37004 ;;
37005 *-hp-hpux* )
37006 flag="-D_REENTRANT"
37007 if test "x$GCC" != "xyes"; then
37008 flag="$flag -D_RWSTD_MULTI_THREAD"
37009 fi
37010 ;;
37011 *solaris* | alpha*-osf*)
37012 flag="-D_REENTRANT"
37013 ;;
37014 esac
37015 echo "$as_me:$LINENO: result: ${flag}" >&5
37016echo "${ECHO_T}${flag}" >&6
37017 if test "x$flag" != xno; then
37018 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
37019 fi
37020
5ff751d6 37021 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
37022 fi
37023 fi
37024
37025 if test "$wxUSE_THREADS" = "yes" ; then
37026
37027for ac_func in thr_setconcurrency
37028do
37029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37030echo "$as_me:$LINENO: checking for $ac_func" >&5
37031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37032if eval "test \"\${$as_ac_var+set}\" = set"; then
37033 echo $ECHO_N "(cached) $ECHO_C" >&6
37034else
37035 cat >conftest.$ac_ext <<_ACEOF
37036/* confdefs.h. */
37037_ACEOF
37038cat confdefs.h >>conftest.$ac_ext
37039cat >>conftest.$ac_ext <<_ACEOF
37040/* end confdefs.h. */
ac1cb8d3
VS
37041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37043#define $ac_func innocuous_$ac_func
37044
a848cd7e
SC
37045/* System header to define __stub macros and hopefully few prototypes,
37046 which can conflict with char $ac_func (); below.
37047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37048 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37049
a848cd7e
SC
37050#ifdef __STDC__
37051# include <limits.h>
37052#else
37053# include <assert.h>
37054#endif
ac1cb8d3
VS
37055
37056#undef $ac_func
37057
a848cd7e
SC
37058/* Override any gcc2 internal prototype to avoid an error. */
37059#ifdef __cplusplus
37060extern "C"
37061{
37062#endif
37063/* We use char because int might match the return type of a gcc2
37064 builtin and then its argument prototype would still apply. */
37065char $ac_func ();
37066/* The GNU C library defines this for functions which it implements
37067 to always fail with ENOSYS. Some functions are actually named
37068 something starting with __ and the normal name is an alias. */
37069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37070choke me
37071#else
37072char (*f) () = $ac_func;
37073#endif
37074#ifdef __cplusplus
37075}
37076#endif
37077
37078int
37079main ()
37080{
37081return f != $ac_func;
37082 ;
37083 return 0;
37084}
37085_ACEOF
37086rm -f conftest.$ac_objext conftest$ac_exeext
37087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37088 (eval $ac_link) 2>conftest.er1
a848cd7e 37089 ac_status=$?
ac1cb8d3
VS
37090 grep -v '^ *+' conftest.er1 >conftest.err
37091 rm -f conftest.er1
37092 cat conftest.err >&5
a848cd7e
SC
37093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37094 (exit $ac_status); } &&
3565d135
RR
37095 { ac_try='test -z "$ac_c_werror_flag"
37096 || test ! -s conftest.err'
ac1cb8d3
VS
37097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37098 (eval $ac_try) 2>&5
37099 ac_status=$?
37100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37101 (exit $ac_status); }; } &&
37102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37104 (eval $ac_try) 2>&5
37105 ac_status=$?
37106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37107 (exit $ac_status); }; }; then
37108 eval "$as_ac_var=yes"
37109else
37110 echo "$as_me: failed program was:" >&5
37111sed 's/^/| /' conftest.$ac_ext >&5
37112
37113eval "$as_ac_var=no"
37114fi
ac1cb8d3
VS
37115rm -f conftest.err conftest.$ac_objext \
37116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37117fi
37118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37120if test `eval echo '${'$as_ac_var'}'` = yes; then
37121 cat >>confdefs.h <<_ACEOF
37122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37123_ACEOF
37124
37125fi
37126done
37127
37128
6ebeb4c7
VZ
37129 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37130echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37131if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37132 echo $ECHO_N "(cached) $ECHO_C" >&6
37133else
37134
37135 cat >conftest.$ac_ext <<_ACEOF
37136/* confdefs.h. */
37137_ACEOF
37138cat confdefs.h >>conftest.$ac_ext
37139cat >>conftest.$ac_ext <<_ACEOF
37140/* end confdefs.h. */
37141#include <pthread.h>
37142 void ThreadCleanupFunc(void *p);
37143
37144int
37145main ()
37146{
37147
37148 void *p;
37149 pthread_cleanup_push(ThreadCleanupFunc, p);
37150 pthread_cleanup_pop(0);
37151
37152 ;
37153 return 0;
37154}
37155_ACEOF
37156rm -f conftest.$ac_objext
37157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37158 (eval $ac_compile) 2>conftest.er1
37159 ac_status=$?
37160 grep -v '^ *+' conftest.er1 >conftest.err
37161 rm -f conftest.er1
37162 cat conftest.err >&5
37163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37164 (exit $ac_status); } &&
3565d135
RR
37165 { ac_try='test -z "$ac_c_werror_flag"
37166 || test ! -s conftest.err'
6ebeb4c7
VZ
37167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37168 (eval $ac_try) 2>&5
37169 ac_status=$?
37170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171 (exit $ac_status); }; } &&
37172 { ac_try='test -s conftest.$ac_objext'
37173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37174 (eval $ac_try) 2>&5
37175 ac_status=$?
37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); }; }; then
37178
37179 wx_cv_func_pthread_cleanup=yes
37180
37181else
37182 echo "$as_me: failed program was:" >&5
37183sed 's/^/| /' conftest.$ac_ext >&5
37184
37185
37186 wx_cv_func_pthread_cleanup=no
37187
37188
37189fi
37190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37191
37192fi
37193echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37194echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37195 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37196 cat >>confdefs.h <<\_ACEOF
37197#define wxHAVE_PTHREAD_CLEANUP 1
37198_ACEOF
37199
37200 fi
37201
a848cd7e
SC
37202
37203for ac_header in sched.h
37204do
37205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37206if eval "test \"\${$as_ac_Header+set}\" = set"; then
37207 echo "$as_me:$LINENO: checking for $ac_header" >&5
37208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37209if eval "test \"\${$as_ac_Header+set}\" = set"; then
37210 echo $ECHO_N "(cached) $ECHO_C" >&6
37211fi
37212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37214else
37215 # Is the header compilable?
37216echo "$as_me:$LINENO: checking $ac_header usability" >&5
37217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37218cat >conftest.$ac_ext <<_ACEOF
37219/* confdefs.h. */
37220_ACEOF
37221cat confdefs.h >>conftest.$ac_ext
37222cat >>conftest.$ac_ext <<_ACEOF
37223/* end confdefs.h. */
37224$ac_includes_default
37225#include <$ac_header>
37226_ACEOF
37227rm -f conftest.$ac_objext
37228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37229 (eval $ac_compile) 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); } &&
3565d135
RR
37236 { ac_try='test -z "$ac_c_werror_flag"
37237 || test ! -s conftest.err'
ac1cb8d3
VS
37238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37239 (eval $ac_try) 2>&5
37240 ac_status=$?
37241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37242 (exit $ac_status); }; } &&
37243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37245 (eval $ac_try) 2>&5
37246 ac_status=$?
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); }; }; then
37249 ac_header_compiler=yes
37250else
37251 echo "$as_me: failed program was:" >&5
37252sed 's/^/| /' conftest.$ac_ext >&5
37253
37254ac_header_compiler=no
37255fi
ac1cb8d3 37256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37258echo "${ECHO_T}$ac_header_compiler" >&6
37259
37260# Is the header present?
37261echo "$as_me:$LINENO: checking $ac_header presence" >&5
37262echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37263cat >conftest.$ac_ext <<_ACEOF
37264/* confdefs.h. */
37265_ACEOF
37266cat confdefs.h >>conftest.$ac_ext
37267cat >>conftest.$ac_ext <<_ACEOF
37268/* end confdefs.h. */
37269#include <$ac_header>
37270_ACEOF
37271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37273 ac_status=$?
37274 grep -v '^ *+' conftest.er1 >conftest.err
37275 rm -f conftest.er1
37276 cat conftest.err >&5
37277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278 (exit $ac_status); } >/dev/null; then
37279 if test -s conftest.err; then
37280 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37282 else
37283 ac_cpp_err=
37284 fi
37285else
37286 ac_cpp_err=yes
37287fi
37288if test -z "$ac_cpp_err"; then
37289 ac_header_preproc=yes
37290else
37291 echo "$as_me: failed program was:" >&5
37292sed 's/^/| /' conftest.$ac_ext >&5
37293
37294 ac_header_preproc=no
37295fi
37296rm -f conftest.err conftest.$ac_ext
37297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37298echo "${ECHO_T}$ac_header_preproc" >&6
37299
37300# So? What about this header?
ac1cb8d3
VS
37301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37302 yes:no: )
a848cd7e
SC
37303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37306echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37307 ac_header_preproc=yes
a848cd7e 37308 ;;
ac1cb8d3 37309 no:yes:* )
a848cd7e
SC
37310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37311echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37313echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37315echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37317echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37321echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37322 (
37323 cat <<\_ASBOX
ac1cb8d3
VS
37324## ----------------------------------------- ##
37325## Report this to wx-dev@lists.wxwidgets.org ##
37326## ----------------------------------------- ##
a848cd7e
SC
37327_ASBOX
37328 ) |
37329 sed "s/^/$as_me: WARNING: /" >&2
37330 ;;
37331esac
37332echo "$as_me:$LINENO: checking for $ac_header" >&5
37333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37334if eval "test \"\${$as_ac_Header+set}\" = set"; then
37335 echo $ECHO_N "(cached) $ECHO_C" >&6
37336else
ac1cb8d3 37337 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37338fi
37339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37341
37342fi
37343if test `eval echo '${'$as_ac_Header'}'` = yes; then
37344 cat >>confdefs.h <<_ACEOF
37345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37346_ACEOF
37347
37348fi
37349
37350done
37351
37352 if test "$ac_cv_header_sched_h" = "yes"; then
37353 echo "$as_me:$LINENO: checking for sched_yield" >&5
37354echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37355if test "${ac_cv_func_sched_yield+set}" = set; then
37356 echo $ECHO_N "(cached) $ECHO_C" >&6
37357else
37358 cat >conftest.$ac_ext <<_ACEOF
37359/* confdefs.h. */
37360_ACEOF
37361cat confdefs.h >>conftest.$ac_ext
37362cat >>conftest.$ac_ext <<_ACEOF
37363/* end confdefs.h. */
ac1cb8d3
VS
37364/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37366#define sched_yield innocuous_sched_yield
37367
a848cd7e
SC
37368/* System header to define __stub macros and hopefully few prototypes,
37369 which can conflict with char sched_yield (); below.
37370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37371 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37372
a848cd7e
SC
37373#ifdef __STDC__
37374# include <limits.h>
37375#else
37376# include <assert.h>
37377#endif
ac1cb8d3
VS
37378
37379#undef sched_yield
37380
a848cd7e
SC
37381/* Override any gcc2 internal prototype to avoid an error. */
37382#ifdef __cplusplus
37383extern "C"
37384{
37385#endif
37386/* We use char because int might match the return type of a gcc2
37387 builtin and then its argument prototype would still apply. */
37388char sched_yield ();
37389/* The GNU C library defines this for functions which it implements
37390 to always fail with ENOSYS. Some functions are actually named
37391 something starting with __ and the normal name is an alias. */
37392#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37393choke me
37394#else
37395char (*f) () = sched_yield;
37396#endif
37397#ifdef __cplusplus
37398}
37399#endif
37400
37401int
37402main ()
37403{
37404return f != sched_yield;
37405 ;
37406 return 0;
37407}
37408_ACEOF
37409rm -f conftest.$ac_objext conftest$ac_exeext
37410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37411 (eval $ac_link) 2>conftest.er1
a848cd7e 37412 ac_status=$?
ac1cb8d3
VS
37413 grep -v '^ *+' conftest.er1 >conftest.err
37414 rm -f conftest.er1
37415 cat conftest.err >&5
a848cd7e
SC
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); } &&
3565d135
RR
37418 { ac_try='test -z "$ac_c_werror_flag"
37419 || test ! -s conftest.err'
ac1cb8d3
VS
37420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37421 (eval $ac_try) 2>&5
37422 ac_status=$?
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); }; } &&
37425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37427 (eval $ac_try) 2>&5
37428 ac_status=$?
37429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430 (exit $ac_status); }; }; then
37431 ac_cv_func_sched_yield=yes
37432else
37433 echo "$as_me: failed program was:" >&5
37434sed 's/^/| /' conftest.$ac_ext >&5
37435
37436ac_cv_func_sched_yield=no
37437fi
ac1cb8d3
VS
37438rm -f conftest.err conftest.$ac_objext \
37439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37440fi
37441echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37442echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37443if test $ac_cv_func_sched_yield = yes; then
37444 cat >>confdefs.h <<\_ACEOF
37445#define HAVE_SCHED_YIELD 1
37446_ACEOF
37447
37448else
37449
37450 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37451echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37452if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37453 echo $ECHO_N "(cached) $ECHO_C" >&6
37454else
37455 ac_check_lib_save_LIBS=$LIBS
37456LIBS="-lposix4 $LIBS"
37457cat >conftest.$ac_ext <<_ACEOF
37458/* confdefs.h. */
37459_ACEOF
37460cat confdefs.h >>conftest.$ac_ext
37461cat >>conftest.$ac_ext <<_ACEOF
37462/* end confdefs.h. */
37463
37464/* Override any gcc2 internal prototype to avoid an error. */
37465#ifdef __cplusplus
37466extern "C"
37467#endif
37468/* We use char because int might match the return type of a gcc2
37469 builtin and then its argument prototype would still apply. */
37470char sched_yield ();
37471int
37472main ()
37473{
37474sched_yield ();
37475 ;
37476 return 0;
37477}
37478_ACEOF
37479rm -f conftest.$ac_objext conftest$ac_exeext
37480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37481 (eval $ac_link) 2>conftest.er1
a848cd7e 37482 ac_status=$?
ac1cb8d3
VS
37483 grep -v '^ *+' conftest.er1 >conftest.err
37484 rm -f conftest.er1
37485 cat conftest.err >&5
a848cd7e
SC
37486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37487 (exit $ac_status); } &&
3565d135
RR
37488 { ac_try='test -z "$ac_c_werror_flag"
37489 || test ! -s conftest.err'
ac1cb8d3
VS
37490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37491 (eval $ac_try) 2>&5
37492 ac_status=$?
37493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494 (exit $ac_status); }; } &&
37495 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37497 (eval $ac_try) 2>&5
37498 ac_status=$?
37499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37500 (exit $ac_status); }; }; then
37501 ac_cv_lib_posix4_sched_yield=yes
37502else
37503 echo "$as_me: failed program was:" >&5
37504sed 's/^/| /' conftest.$ac_ext >&5
37505
37506ac_cv_lib_posix4_sched_yield=no
37507fi
ac1cb8d3
VS
37508rm -f conftest.err conftest.$ac_objext \
37509 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37510LIBS=$ac_check_lib_save_LIBS
37511fi
37512echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37513echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37514if test $ac_cv_lib_posix4_sched_yield = yes; then
37515 cat >>confdefs.h <<\_ACEOF
37516#define HAVE_SCHED_YIELD 1
37517_ACEOF
37518 POSIX4_LINK=" -lposix4"
37519else
37520 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37521echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37522
37523fi
37524
37525
37526
37527fi
37528
37529 fi
37530
37531 HAVE_PRIOR_FUNCS=0
37532 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37533echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37534if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37535 echo $ECHO_N "(cached) $ECHO_C" >&6
37536else
37537 cat >conftest.$ac_ext <<_ACEOF
37538/* confdefs.h. */
37539_ACEOF
37540cat confdefs.h >>conftest.$ac_ext
37541cat >>conftest.$ac_ext <<_ACEOF
37542/* end confdefs.h. */
ac1cb8d3
VS
37543/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37545#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37546
a848cd7e
SC
37547/* System header to define __stub macros and hopefully few prototypes,
37548 which can conflict with char pthread_attr_getschedpolicy (); below.
37549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37550 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37551
a848cd7e
SC
37552#ifdef __STDC__
37553# include <limits.h>
37554#else
37555# include <assert.h>
37556#endif
ac1cb8d3
VS
37557
37558#undef pthread_attr_getschedpolicy
37559
a848cd7e
SC
37560/* Override any gcc2 internal prototype to avoid an error. */
37561#ifdef __cplusplus
37562extern "C"
37563{
37564#endif
37565/* We use char because int might match the return type of a gcc2
37566 builtin and then its argument prototype would still apply. */
37567char pthread_attr_getschedpolicy ();
37568/* The GNU C library defines this for functions which it implements
37569 to always fail with ENOSYS. Some functions are actually named
37570 something starting with __ and the normal name is an alias. */
37571#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37572choke me
37573#else
37574char (*f) () = pthread_attr_getschedpolicy;
37575#endif
37576#ifdef __cplusplus
37577}
37578#endif
37579
37580int
37581main ()
37582{
37583return f != pthread_attr_getschedpolicy;
37584 ;
37585 return 0;
37586}
37587_ACEOF
37588rm -f conftest.$ac_objext conftest$ac_exeext
37589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37590 (eval $ac_link) 2>conftest.er1
a848cd7e 37591 ac_status=$?
ac1cb8d3
VS
37592 grep -v '^ *+' conftest.er1 >conftest.err
37593 rm -f conftest.er1
37594 cat conftest.err >&5
a848cd7e
SC
37595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37596 (exit $ac_status); } &&
3565d135
RR
37597 { ac_try='test -z "$ac_c_werror_flag"
37598 || test ! -s conftest.err'
ac1cb8d3
VS
37599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37600 (eval $ac_try) 2>&5
37601 ac_status=$?
37602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603 (exit $ac_status); }; } &&
37604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37606 (eval $ac_try) 2>&5
37607 ac_status=$?
37608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609 (exit $ac_status); }; }; then
37610 ac_cv_func_pthread_attr_getschedpolicy=yes
37611else
37612 echo "$as_me: failed program was:" >&5
37613sed 's/^/| /' conftest.$ac_ext >&5
37614
37615ac_cv_func_pthread_attr_getschedpolicy=no
37616fi
ac1cb8d3
VS
37617rm -f conftest.err conftest.$ac_objext \
37618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37619fi
37620echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37621echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37622if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37623 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37624echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37625if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37626 echo $ECHO_N "(cached) $ECHO_C" >&6
37627else
37628 cat >conftest.$ac_ext <<_ACEOF
37629/* confdefs.h. */
37630_ACEOF
37631cat confdefs.h >>conftest.$ac_ext
37632cat >>conftest.$ac_ext <<_ACEOF
37633/* end confdefs.h. */
ac1cb8d3
VS
37634/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37636#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37637
a848cd7e
SC
37638/* System header to define __stub macros and hopefully few prototypes,
37639 which can conflict with char pthread_attr_setschedparam (); below.
37640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37641 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37642
a848cd7e
SC
37643#ifdef __STDC__
37644# include <limits.h>
37645#else
37646# include <assert.h>
37647#endif
ac1cb8d3
VS
37648
37649#undef pthread_attr_setschedparam
37650
a848cd7e
SC
37651/* Override any gcc2 internal prototype to avoid an error. */
37652#ifdef __cplusplus
37653extern "C"
37654{
37655#endif
37656/* We use char because int might match the return type of a gcc2
37657 builtin and then its argument prototype would still apply. */
37658char pthread_attr_setschedparam ();
37659/* The GNU C library defines this for functions which it implements
37660 to always fail with ENOSYS. Some functions are actually named
37661 something starting with __ and the normal name is an alias. */
37662#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37663choke me
37664#else
37665char (*f) () = pthread_attr_setschedparam;
37666#endif
37667#ifdef __cplusplus
37668}
37669#endif
37670
37671int
37672main ()
37673{
37674return f != pthread_attr_setschedparam;
37675 ;
37676 return 0;
37677}
37678_ACEOF
37679rm -f conftest.$ac_objext conftest$ac_exeext
37680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37681 (eval $ac_link) 2>conftest.er1
a848cd7e 37682 ac_status=$?
ac1cb8d3
VS
37683 grep -v '^ *+' conftest.er1 >conftest.err
37684 rm -f conftest.er1
37685 cat conftest.err >&5
a848cd7e
SC
37686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37687 (exit $ac_status); } &&
3565d135
RR
37688 { ac_try='test -z "$ac_c_werror_flag"
37689 || test ! -s conftest.err'
ac1cb8d3
VS
37690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37691 (eval $ac_try) 2>&5
37692 ac_status=$?
37693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694 (exit $ac_status); }; } &&
37695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37697 (eval $ac_try) 2>&5
37698 ac_status=$?
37699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37700 (exit $ac_status); }; }; then
37701 ac_cv_func_pthread_attr_setschedparam=yes
37702else
37703 echo "$as_me: failed program was:" >&5
37704sed 's/^/| /' conftest.$ac_ext >&5
37705
37706ac_cv_func_pthread_attr_setschedparam=no
37707fi
ac1cb8d3
VS
37708rm -f conftest.err conftest.$ac_objext \
37709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37710fi
37711echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37712echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37713if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37714 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37715echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37716if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37717 echo $ECHO_N "(cached) $ECHO_C" >&6
37718else
37719 cat >conftest.$ac_ext <<_ACEOF
37720/* confdefs.h. */
37721_ACEOF
37722cat confdefs.h >>conftest.$ac_ext
37723cat >>conftest.$ac_ext <<_ACEOF
37724/* end confdefs.h. */
ac1cb8d3
VS
37725/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37727#define sched_get_priority_max innocuous_sched_get_priority_max
37728
a848cd7e
SC
37729/* System header to define __stub macros and hopefully few prototypes,
37730 which can conflict with char sched_get_priority_max (); below.
37731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37732 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37733
a848cd7e
SC
37734#ifdef __STDC__
37735# include <limits.h>
37736#else
37737# include <assert.h>
37738#endif
ac1cb8d3
VS
37739
37740#undef sched_get_priority_max
37741
a848cd7e
SC
37742/* Override any gcc2 internal prototype to avoid an error. */
37743#ifdef __cplusplus
37744extern "C"
37745{
37746#endif
37747/* We use char because int might match the return type of a gcc2
37748 builtin and then its argument prototype would still apply. */
37749char sched_get_priority_max ();
37750/* The GNU C library defines this for functions which it implements
37751 to always fail with ENOSYS. Some functions are actually named
37752 something starting with __ and the normal name is an alias. */
37753#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37754choke me
37755#else
37756char (*f) () = sched_get_priority_max;
37757#endif
37758#ifdef __cplusplus
37759}
37760#endif
37761
37762int
37763main ()
37764{
37765return f != sched_get_priority_max;
37766 ;
37767 return 0;
37768}
37769_ACEOF
37770rm -f conftest.$ac_objext conftest$ac_exeext
37771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37772 (eval $ac_link) 2>conftest.er1
a848cd7e 37773 ac_status=$?
ac1cb8d3
VS
37774 grep -v '^ *+' conftest.er1 >conftest.err
37775 rm -f conftest.er1
37776 cat conftest.err >&5
a848cd7e
SC
37777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37778 (exit $ac_status); } &&
3565d135
RR
37779 { ac_try='test -z "$ac_c_werror_flag"
37780 || test ! -s conftest.err'
ac1cb8d3
VS
37781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37782 (eval $ac_try) 2>&5
37783 ac_status=$?
37784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37785 (exit $ac_status); }; } &&
37786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37788 (eval $ac_try) 2>&5
37789 ac_status=$?
37790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37791 (exit $ac_status); }; }; then
37792 ac_cv_func_sched_get_priority_max=yes
37793else
37794 echo "$as_me: failed program was:" >&5
37795sed 's/^/| /' conftest.$ac_ext >&5
37796
37797ac_cv_func_sched_get_priority_max=no
37798fi
ac1cb8d3
VS
37799rm -f conftest.err conftest.$ac_objext \
37800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37801fi
37802echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37803echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37804if test $ac_cv_func_sched_get_priority_max = yes; then
37805 HAVE_PRIOR_FUNCS=1
37806else
37807 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37808echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37809if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37810 echo $ECHO_N "(cached) $ECHO_C" >&6
37811else
37812 ac_check_lib_save_LIBS=$LIBS
37813LIBS="-lposix4 $LIBS"
37814cat >conftest.$ac_ext <<_ACEOF
37815/* confdefs.h. */
37816_ACEOF
37817cat confdefs.h >>conftest.$ac_ext
37818cat >>conftest.$ac_ext <<_ACEOF
37819/* end confdefs.h. */
37820
37821/* Override any gcc2 internal prototype to avoid an error. */
37822#ifdef __cplusplus
37823extern "C"
37824#endif
37825/* We use char because int might match the return type of a gcc2
37826 builtin and then its argument prototype would still apply. */
37827char sched_get_priority_max ();
37828int
37829main ()
37830{
37831sched_get_priority_max ();
37832 ;
37833 return 0;
37834}
37835_ACEOF
37836rm -f conftest.$ac_objext conftest$ac_exeext
37837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37838 (eval $ac_link) 2>conftest.er1
a848cd7e 37839 ac_status=$?
ac1cb8d3
VS
37840 grep -v '^ *+' conftest.er1 >conftest.err
37841 rm -f conftest.er1
37842 cat conftest.err >&5
a848cd7e
SC
37843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37844 (exit $ac_status); } &&
3565d135
RR
37845 { ac_try='test -z "$ac_c_werror_flag"
37846 || test ! -s conftest.err'
ac1cb8d3
VS
37847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37848 (eval $ac_try) 2>&5
37849 ac_status=$?
37850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37851 (exit $ac_status); }; } &&
37852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37854 (eval $ac_try) 2>&5
37855 ac_status=$?
37856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37857 (exit $ac_status); }; }; then
37858 ac_cv_lib_posix4_sched_get_priority_max=yes
37859else
37860 echo "$as_me: failed program was:" >&5
37861sed 's/^/| /' conftest.$ac_ext >&5
37862
37863ac_cv_lib_posix4_sched_get_priority_max=no
37864fi
ac1cb8d3
VS
37865rm -f conftest.err conftest.$ac_objext \
37866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37867LIBS=$ac_check_lib_save_LIBS
37868fi
37869echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37870echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37871if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37872
37873 HAVE_PRIOR_FUNCS=1
37874 POSIX4_LINK=" -lposix4"
37875
37876fi
37877
37878
37879fi
37880
37881
37882fi
37883
37884
37885fi
37886
37887
37888 if test "$HAVE_PRIOR_FUNCS" = 1; then
37889 cat >>confdefs.h <<\_ACEOF
37890#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37891_ACEOF
37892
37893 else
37894 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37895echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37896 fi
37897
37898 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37899echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37900if test "${ac_cv_func_pthread_cancel+set}" = set; then
37901 echo $ECHO_N "(cached) $ECHO_C" >&6
37902else
37903 cat >conftest.$ac_ext <<_ACEOF
37904/* confdefs.h. */
37905_ACEOF
37906cat confdefs.h >>conftest.$ac_ext
37907cat >>conftest.$ac_ext <<_ACEOF
37908/* end confdefs.h. */
ac1cb8d3
VS
37909/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37911#define pthread_cancel innocuous_pthread_cancel
37912
a848cd7e
SC
37913/* System header to define __stub macros and hopefully few prototypes,
37914 which can conflict with char pthread_cancel (); below.
37915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37916 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37917
a848cd7e
SC
37918#ifdef __STDC__
37919# include <limits.h>
37920#else
37921# include <assert.h>
37922#endif
ac1cb8d3
VS
37923
37924#undef pthread_cancel
37925
a848cd7e
SC
37926/* Override any gcc2 internal prototype to avoid an error. */
37927#ifdef __cplusplus
37928extern "C"
37929{
37930#endif
37931/* We use char because int might match the return type of a gcc2
37932 builtin and then its argument prototype would still apply. */
37933char pthread_cancel ();
37934/* The GNU C library defines this for functions which it implements
37935 to always fail with ENOSYS. Some functions are actually named
37936 something starting with __ and the normal name is an alias. */
37937#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37938choke me
37939#else
37940char (*f) () = pthread_cancel;
37941#endif
37942#ifdef __cplusplus
37943}
37944#endif
37945
37946int
37947main ()
37948{
37949return f != pthread_cancel;
37950 ;
37951 return 0;
37952}
37953_ACEOF
37954rm -f conftest.$ac_objext conftest$ac_exeext
37955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37956 (eval $ac_link) 2>conftest.er1
a848cd7e 37957 ac_status=$?
ac1cb8d3
VS
37958 grep -v '^ *+' conftest.er1 >conftest.err
37959 rm -f conftest.er1
37960 cat conftest.err >&5
a848cd7e
SC
37961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962 (exit $ac_status); } &&
3565d135
RR
37963 { ac_try='test -z "$ac_c_werror_flag"
37964 || test ! -s conftest.err'
ac1cb8d3
VS
37965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37966 (eval $ac_try) 2>&5
37967 ac_status=$?
37968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37969 (exit $ac_status); }; } &&
37970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37972 (eval $ac_try) 2>&5
37973 ac_status=$?
37974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975 (exit $ac_status); }; }; then
37976 ac_cv_func_pthread_cancel=yes
37977else
37978 echo "$as_me: failed program was:" >&5
37979sed 's/^/| /' conftest.$ac_ext >&5
37980
37981ac_cv_func_pthread_cancel=no
37982fi
ac1cb8d3
VS
37983rm -f conftest.err conftest.$ac_objext \
37984 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37985fi
37986echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37987echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37988if test $ac_cv_func_pthread_cancel = yes; then
37989 cat >>confdefs.h <<\_ACEOF
37990#define HAVE_PTHREAD_CANCEL 1
37991_ACEOF
37992
37993else
37994 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37995echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37996fi
37997
37998
abc736fd
MW
37999 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38000echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38001if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38002 echo $ECHO_N "(cached) $ECHO_C" >&6
38003else
38004 cat >conftest.$ac_ext <<_ACEOF
38005/* confdefs.h. */
38006_ACEOF
38007cat confdefs.h >>conftest.$ac_ext
38008cat >>conftest.$ac_ext <<_ACEOF
38009/* end confdefs.h. */
38010/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38012#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38013
38014/* System header to define __stub macros and hopefully few prototypes,
38015 which can conflict with char pthread_attr_setstacksize (); below.
38016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38017 <limits.h> exists even on freestanding compilers. */
38018
38019#ifdef __STDC__
38020# include <limits.h>
38021#else
38022# include <assert.h>
38023#endif
38024
38025#undef pthread_attr_setstacksize
38026
38027/* Override any gcc2 internal prototype to avoid an error. */
38028#ifdef __cplusplus
38029extern "C"
38030{
38031#endif
38032/* We use char because int might match the return type of a gcc2
38033 builtin and then its argument prototype would still apply. */
38034char pthread_attr_setstacksize ();
38035/* The GNU C library defines this for functions which it implements
38036 to always fail with ENOSYS. Some functions are actually named
38037 something starting with __ and the normal name is an alias. */
38038#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38039choke me
38040#else
38041char (*f) () = pthread_attr_setstacksize;
38042#endif
38043#ifdef __cplusplus
38044}
38045#endif
38046
38047int
38048main ()
38049{
38050return f != pthread_attr_setstacksize;
38051 ;
38052 return 0;
38053}
38054_ACEOF
38055rm -f conftest.$ac_objext conftest$ac_exeext
38056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38057 (eval $ac_link) 2>conftest.er1
38058 ac_status=$?
38059 grep -v '^ *+' conftest.er1 >conftest.err
38060 rm -f conftest.er1
38061 cat conftest.err >&5
38062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063 (exit $ac_status); } &&
3565d135
RR
38064 { ac_try='test -z "$ac_c_werror_flag"
38065 || test ! -s conftest.err'
abc736fd
MW
38066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38067 (eval $ac_try) 2>&5
38068 ac_status=$?
38069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38070 (exit $ac_status); }; } &&
38071 { ac_try='test -s conftest$ac_exeext'
38072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38073 (eval $ac_try) 2>&5
38074 ac_status=$?
38075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38076 (exit $ac_status); }; }; then
38077 ac_cv_func_pthread_attr_setstacksize=yes
38078else
38079 echo "$as_me: failed program was:" >&5
38080sed 's/^/| /' conftest.$ac_ext >&5
38081
38082ac_cv_func_pthread_attr_setstacksize=no
38083fi
38084rm -f conftest.err conftest.$ac_objext \
38085 conftest$ac_exeext conftest.$ac_ext
38086fi
38087echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38088echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38089if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38090 cat >>confdefs.h <<\_ACEOF
38091#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38092_ACEOF
38093
38094fi
38095
a848cd7e
SC
38096
38097
38098 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38099echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38100if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38101 echo $ECHO_N "(cached) $ECHO_C" >&6
38102else
38103
38104 cat >conftest.$ac_ext <<_ACEOF
38105/* confdefs.h. */
38106_ACEOF
38107cat confdefs.h >>conftest.$ac_ext
38108cat >>conftest.$ac_ext <<_ACEOF
38109/* end confdefs.h. */
38110#include <pthread.h>
38111int
38112main ()
38113{
38114
38115 pthread_mutexattr_t attr;
38116 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38117
38118 ;
38119 return 0;
38120}
38121_ACEOF
38122rm -f conftest.$ac_objext
38123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38124 (eval $ac_compile) 2>conftest.er1
a848cd7e 38125 ac_status=$?
ac1cb8d3
VS
38126 grep -v '^ *+' conftest.er1 >conftest.err
38127 rm -f conftest.er1
38128 cat conftest.err >&5
a848cd7e
SC
38129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38130 (exit $ac_status); } &&
3565d135
RR
38131 { ac_try='test -z "$ac_c_werror_flag"
38132 || test ! -s conftest.err'
ac1cb8d3
VS
38133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38134 (eval $ac_try) 2>&5
38135 ac_status=$?
38136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137 (exit $ac_status); }; } &&
38138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38140 (eval $ac_try) 2>&5
38141 ac_status=$?
38142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38143 (exit $ac_status); }; }; then
123dca7d 38144 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38145else
38146 echo "$as_me: failed program was:" >&5
38147sed 's/^/| /' conftest.$ac_ext >&5
38148
123dca7d 38149wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38150
38151fi
ac1cb8d3 38152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38153
38154fi
38155echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38156echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38157
38158 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38159 cat >>confdefs.h <<\_ACEOF
38160#define HAVE_PTHREAD_MUTEXATTR_T 1
38161_ACEOF
38162
123dca7d
VZ
38163
38164 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38165echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38166if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38167 echo $ECHO_N "(cached) $ECHO_C" >&6
38168else
38169
38170 cat >conftest.$ac_ext <<_ACEOF
38171/* confdefs.h. */
38172_ACEOF
38173cat confdefs.h >>conftest.$ac_ext
38174cat >>conftest.$ac_ext <<_ACEOF
38175/* end confdefs.h. */
38176#include <pthread.h>
38177int
38178main ()
38179{
38180
38181 pthread_mutexattr_t attr;
38182 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38183
38184 ;
38185 return 0;
38186}
38187_ACEOF
38188rm -f conftest.$ac_objext
38189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38190 (eval $ac_compile) 2>conftest.er1
38191 ac_status=$?
38192 grep -v '^ *+' conftest.er1 >conftest.err
38193 rm -f conftest.er1
38194 cat conftest.err >&5
38195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38196 (exit $ac_status); } &&
3565d135
RR
38197 { ac_try='test -z "$ac_c_werror_flag"
38198 || test ! -s conftest.err'
123dca7d
VZ
38199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38200 (eval $ac_try) 2>&5
38201 ac_status=$?
38202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38203 (exit $ac_status); }; } &&
38204 { ac_try='test -s conftest.$ac_objext'
38205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38206 (eval $ac_try) 2>&5
38207 ac_status=$?
38208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38209 (exit $ac_status); }; }; then
38210 wx_cv_func_pthread_mutexattr_settype_decl=yes
38211else
38212 echo "$as_me: failed program was:" >&5
38213sed 's/^/| /' conftest.$ac_ext >&5
38214
38215wx_cv_func_pthread_mutexattr_settype_decl=no
38216
38217fi
38218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38219
38220fi
38221echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38222echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38223 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38224 cat >>confdefs.h <<\_ACEOF
38225#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38226_ACEOF
38227
38228 fi
a848cd7e
SC
38229 else
38230 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38231echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38232if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38233 echo $ECHO_N "(cached) $ECHO_C" >&6
38234else
38235
38236 cat >conftest.$ac_ext <<_ACEOF
38237/* confdefs.h. */
38238_ACEOF
38239cat confdefs.h >>conftest.$ac_ext
38240cat >>conftest.$ac_ext <<_ACEOF
38241/* end confdefs.h. */
38242#include <pthread.h>
38243int
38244main ()
38245{
38246
38247 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38248
38249 ;
38250 return 0;
38251}
38252_ACEOF
38253rm -f conftest.$ac_objext
38254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38255 (eval $ac_compile) 2>conftest.er1
a848cd7e 38256 ac_status=$?
ac1cb8d3
VS
38257 grep -v '^ *+' conftest.er1 >conftest.err
38258 rm -f conftest.er1
38259 cat conftest.err >&5
a848cd7e
SC
38260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38261 (exit $ac_status); } &&
3565d135
RR
38262 { ac_try='test -z "$ac_c_werror_flag"
38263 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
38269 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38271 (eval $ac_try) 2>&5
38272 ac_status=$?
38273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38274 (exit $ac_status); }; }; then
38275
38276 wx_cv_type_pthread_rec_mutex_init=yes
38277
38278else
38279 echo "$as_me: failed program was:" >&5
38280sed 's/^/| /' conftest.$ac_ext >&5
38281
38282
38283 wx_cv_type_pthread_rec_mutex_init=no
38284
38285
38286fi
ac1cb8d3 38287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38288
38289fi
38290echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38291echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38292 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38293 cat >>confdefs.h <<\_ACEOF
38294#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38295_ACEOF
38296
38297 else
38298 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38299echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38300 fi
38301 fi
38302 fi
38303
38304else
38305 if test "$wxUSE_THREADS" = "yes" ; then
38306 case "${host}" in
38307 *-*-mingw32* )
38308 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38309echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38310if test "${wx_cv_cflags_mthread+set}" = set; then
38311 echo $ECHO_N "(cached) $ECHO_C" >&6
38312else
38313
38314 CFLAGS_OLD="$CFLAGS"
c92ad099 38315 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
38316 cat >conftest.$ac_ext <<_ACEOF
38317/* confdefs.h. */
38318_ACEOF
38319cat confdefs.h >>conftest.$ac_ext
38320cat >>conftest.$ac_ext <<_ACEOF
38321/* end confdefs.h. */
38322
38323int
38324main ()
38325{
38326
38327 ;
38328 return 0;
38329}
38330_ACEOF
38331rm -f conftest.$ac_objext
38332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38333 (eval $ac_compile) 2>conftest.er1
a848cd7e 38334 ac_status=$?
ac1cb8d3
VS
38335 grep -v '^ *+' conftest.er1 >conftest.err
38336 rm -f conftest.er1
38337 cat conftest.err >&5
a848cd7e
SC
38338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339 (exit $ac_status); } &&
3565d135
RR
38340 { ac_try='test -z "$ac_c_werror_flag"
38341 || test ! -s conftest.err'
ac1cb8d3
VS
38342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38343 (eval $ac_try) 2>&5
38344 ac_status=$?
38345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346 (exit $ac_status); }; } &&
38347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38349 (eval $ac_try) 2>&5
38350 ac_status=$?
38351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38352 (exit $ac_status); }; }; then
38353 wx_cv_cflags_mthread=yes
38354else
38355 echo "$as_me: failed program was:" >&5
38356sed 's/^/| /' conftest.$ac_ext >&5
38357
38358wx_cv_cflags_mthread=no
38359
38360fi
ac1cb8d3 38361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38362
38363
38364fi
38365echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38366echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38367
38368 if test "$wx_cv_cflags_mthread" = "yes"; then
5ff751d6 38369 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
38370 LDFLAGS="$LDFLAGS -mthreads"
38371 else
38372 CFLAGS="$CFLAGS_OLD"
38373 fi
38374 ;;
38375 *-pc-os2*emx )
5ff751d6
VZ
38376 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38377 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38378 LDFLAGS="$LDFLAGS -Zmt"
38379 ;;
38380 esac
38381 fi
38382fi
38383
004ee6da
RL
38384echo "$as_me:$LINENO: checking for localtime_r" >&5
38385echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38386if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38387 echo $ECHO_N "(cached) $ECHO_C" >&6
38388else
38389 cat >conftest.$ac_ext <<_ACEOF
38390/* confdefs.h. */
38391_ACEOF
38392cat confdefs.h >>conftest.$ac_ext
38393cat >>conftest.$ac_ext <<_ACEOF
38394/* end confdefs.h. */
004ee6da 38395/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38397#define localtime_r innocuous_localtime_r
ac1cb8d3 38398
a848cd7e 38399/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38400 which can conflict with char localtime_r (); below.
a848cd7e
SC
38401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38402 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38403
a848cd7e
SC
38404#ifdef __STDC__
38405# include <limits.h>
38406#else
38407# include <assert.h>
38408#endif
ac1cb8d3 38409
004ee6da 38410#undef localtime_r
ac1cb8d3 38411
a848cd7e
SC
38412/* Override any gcc2 internal prototype to avoid an error. */
38413#ifdef __cplusplus
38414extern "C"
38415{
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. */
004ee6da 38419char localtime_r ();
a848cd7e
SC
38420/* The GNU C library defines this for functions which it implements
38421 to always fail with ENOSYS. Some functions are actually named
38422 something starting with __ and the normal name is an alias. */
004ee6da 38423#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38424choke me
38425#else
004ee6da 38426char (*f) () = localtime_r;
a848cd7e
SC
38427#endif
38428#ifdef __cplusplus
38429}
38430#endif
38431
38432int
38433main ()
38434{
004ee6da
RL
38435return f != localtime_r;
38436 ;
38437 return 0;
38438}
38439_ACEOF
38440rm -f conftest.$ac_objext conftest$ac_exeext
38441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38442 (eval $ac_link) 2>conftest.er1
38443 ac_status=$?
38444 grep -v '^ *+' conftest.er1 >conftest.err
38445 rm -f conftest.er1
38446 cat conftest.err >&5
38447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448 (exit $ac_status); } &&
3565d135
RR
38449 { ac_try='test -z "$ac_c_werror_flag"
38450 || test ! -s conftest.err'
004ee6da
RL
38451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38452 (eval $ac_try) 2>&5
38453 ac_status=$?
38454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38455 (exit $ac_status); }; } &&
38456 { ac_try='test -s conftest$ac_exeext'
38457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38458 (eval $ac_try) 2>&5
38459 ac_status=$?
38460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38461 (exit $ac_status); }; }; then
38462 ac_cv_func_localtime_r=yes
38463else
38464 echo "$as_me: failed program was:" >&5
38465sed 's/^/| /' conftest.$ac_ext >&5
38466
38467ac_cv_func_localtime_r=no
38468fi
38469rm -f conftest.err conftest.$ac_objext \
38470 conftest$ac_exeext conftest.$ac_ext
38471fi
38472echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38473echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38474if test $ac_cv_func_localtime_r = yes; then
38475 cat >>confdefs.h <<\_ACEOF
38476#define HAVE_LOCALTIME_R 1
38477_ACEOF
38478
38479fi
38480
38481echo "$as_me:$LINENO: checking for gmtime_r" >&5
38482echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38483if test "${ac_cv_func_gmtime_r+set}" = set; then
38484 echo $ECHO_N "(cached) $ECHO_C" >&6
38485else
38486 cat >conftest.$ac_ext <<_ACEOF
38487/* confdefs.h. */
38488_ACEOF
38489cat confdefs.h >>conftest.$ac_ext
38490cat >>conftest.$ac_ext <<_ACEOF
38491/* end confdefs.h. */
38492/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38494#define gmtime_r innocuous_gmtime_r
38495
38496/* System header to define __stub macros and hopefully few prototypes,
38497 which can conflict with char gmtime_r (); below.
38498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38499 <limits.h> exists even on freestanding compilers. */
38500
38501#ifdef __STDC__
38502# include <limits.h>
38503#else
38504# include <assert.h>
38505#endif
38506
38507#undef gmtime_r
38508
38509/* Override any gcc2 internal prototype to avoid an error. */
38510#ifdef __cplusplus
38511extern "C"
38512{
38513#endif
38514/* We use char because int might match the return type of a gcc2
38515 builtin and then its argument prototype would still apply. */
38516char gmtime_r ();
38517/* The GNU C library defines this for functions which it implements
38518 to always fail with ENOSYS. Some functions are actually named
38519 something starting with __ and the normal name is an alias. */
38520#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38521choke me
38522#else
38523char (*f) () = gmtime_r;
38524#endif
38525#ifdef __cplusplus
38526}
38527#endif
38528
38529int
38530main ()
38531{
38532return f != gmtime_r;
38533 ;
38534 return 0;
38535}
38536_ACEOF
38537rm -f conftest.$ac_objext conftest$ac_exeext
38538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38539 (eval $ac_link) 2>conftest.er1
38540 ac_status=$?
38541 grep -v '^ *+' conftest.er1 >conftest.err
38542 rm -f conftest.er1
38543 cat conftest.err >&5
38544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38545 (exit $ac_status); } &&
3565d135
RR
38546 { ac_try='test -z "$ac_c_werror_flag"
38547 || test ! -s conftest.err'
004ee6da
RL
38548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38549 (eval $ac_try) 2>&5
38550 ac_status=$?
38551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552 (exit $ac_status); }; } &&
38553 { ac_try='test -s conftest$ac_exeext'
38554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38555 (eval $ac_try) 2>&5
38556 ac_status=$?
38557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558 (exit $ac_status); }; }; then
38559 ac_cv_func_gmtime_r=yes
38560else
38561 echo "$as_me: failed program was:" >&5
38562sed 's/^/| /' conftest.$ac_ext >&5
38563
38564ac_cv_func_gmtime_r=no
38565fi
38566rm -f conftest.err conftest.$ac_objext \
38567 conftest$ac_exeext conftest.$ac_ext
38568fi
38569echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38570echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38571if test $ac_cv_func_gmtime_r = yes; then
38572 cat >>confdefs.h <<\_ACEOF
38573#define HAVE_GMTIME_R 1
38574_ACEOF
38575
38576fi
38577
38578echo "$as_me:$LINENO: checking for readdir_r" >&5
38579echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38580if test "${ac_cv_func_readdir_r+set}" = set; then
38581 echo $ECHO_N "(cached) $ECHO_C" >&6
38582else
38583 cat >conftest.$ac_ext <<_ACEOF
38584/* confdefs.h. */
38585_ACEOF
38586cat confdefs.h >>conftest.$ac_ext
38587cat >>conftest.$ac_ext <<_ACEOF
38588/* end confdefs.h. */
38589/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38591#define readdir_r innocuous_readdir_r
38592
38593/* System header to define __stub macros and hopefully few prototypes,
38594 which can conflict with char readdir_r (); below.
38595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38596 <limits.h> exists even on freestanding compilers. */
38597
38598#ifdef __STDC__
38599# include <limits.h>
38600#else
38601# include <assert.h>
38602#endif
38603
38604#undef readdir_r
38605
38606/* Override any gcc2 internal prototype to avoid an error. */
38607#ifdef __cplusplus
38608extern "C"
38609{
38610#endif
38611/* We use char because int might match the return type of a gcc2
38612 builtin and then its argument prototype would still apply. */
38613char readdir_r ();
38614/* The GNU C library defines this for functions which it implements
38615 to always fail with ENOSYS. Some functions are actually named
38616 something starting with __ and the normal name is an alias. */
38617#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38618choke me
38619#else
38620char (*f) () = readdir_r;
38621#endif
38622#ifdef __cplusplus
38623}
38624#endif
38625
38626int
38627main ()
38628{
38629return f != readdir_r;
38630 ;
38631 return 0;
38632}
38633_ACEOF
38634rm -f conftest.$ac_objext conftest$ac_exeext
38635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38636 (eval $ac_link) 2>conftest.er1
38637 ac_status=$?
38638 grep -v '^ *+' conftest.er1 >conftest.err
38639 rm -f conftest.er1
38640 cat conftest.err >&5
38641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38642 (exit $ac_status); } &&
3565d135
RR
38643 { ac_try='test -z "$ac_c_werror_flag"
38644 || test ! -s conftest.err'
004ee6da
RL
38645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38646 (eval $ac_try) 2>&5
38647 ac_status=$?
38648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649 (exit $ac_status); }; } &&
38650 { ac_try='test -s conftest$ac_exeext'
38651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38652 (eval $ac_try) 2>&5
38653 ac_status=$?
38654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655 (exit $ac_status); }; }; then
38656 ac_cv_func_readdir_r=yes
38657else
38658 echo "$as_me: failed program was:" >&5
38659sed 's/^/| /' conftest.$ac_ext >&5
38660
38661ac_cv_func_readdir_r=no
38662fi
38663rm -f conftest.err conftest.$ac_objext \
38664 conftest$ac_exeext conftest.$ac_ext
38665fi
38666echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38667echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38668if test $ac_cv_func_readdir_r = yes; then
38669 cat >>confdefs.h <<\_ACEOF
38670#define HAVE_READDIR_R 1
38671_ACEOF
38672
38673fi
38674
004ee6da 38675
004ee6da
RL
38676
38677
38678 ac_ext=c
38679ac_cpp='$CPP $CPPFLAGS'
38680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38682ac_compiler_gnu=$ac_cv_c_compiler_gnu
38683
38684 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38685echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38686
38687 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38688 echo $ECHO_N "(cached) $ECHO_C" >&6
38689else
38690
38691
38692################################################################
38693
38694ac_cv_func_which_gethostbyname_r=unknown
38695
38696#
38697# ONE ARGUMENT (sanity check)
38698#
38699
38700# This should fail, as there is no variant of gethostbyname_r() that takes
38701# a single argument. If it actually compiles, then we can assume that
38702# netdb.h is not declaring the function, and the compiler is thereby
38703# assuming an implicit prototype. In which case, we're out of luck.
38704#
38705cat >conftest.$ac_ext <<_ACEOF
38706/* confdefs.h. */
38707_ACEOF
38708cat confdefs.h >>conftest.$ac_ext
38709cat >>conftest.$ac_ext <<_ACEOF
38710/* end confdefs.h. */
38711#include <netdb.h>
38712int
38713main ()
38714{
38715
38716 char *name = "www.gnu.org";
38717 (void)gethostbyname_r(name) /* ; */
38718
38719 ;
38720 return 0;
38721}
38722_ACEOF
38723rm -f conftest.$ac_objext
38724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38725 (eval $ac_compile) 2>conftest.er1
38726 ac_status=$?
38727 grep -v '^ *+' conftest.er1 >conftest.err
38728 rm -f conftest.er1
38729 cat conftest.err >&5
38730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731 (exit $ac_status); } &&
3565d135
RR
38732 { ac_try='test -z "$ac_c_werror_flag"
38733 || test ! -s conftest.err'
004ee6da
RL
38734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38735 (eval $ac_try) 2>&5
38736 ac_status=$?
38737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38738 (exit $ac_status); }; } &&
38739 { ac_try='test -s conftest.$ac_objext'
38740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38741 (eval $ac_try) 2>&5
38742 ac_status=$?
38743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38744 (exit $ac_status); }; }; then
38745 ac_cv_func_which_gethostbyname_r=no
38746else
38747 echo "$as_me: failed program was:" >&5
38748sed 's/^/| /' conftest.$ac_ext >&5
38749
38750fi
38751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38752
38753#
38754# SIX ARGUMENTS
38755# (e.g. Linux)
38756#
38757
38758if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38759
38760cat >conftest.$ac_ext <<_ACEOF
38761/* confdefs.h. */
38762_ACEOF
38763cat confdefs.h >>conftest.$ac_ext
38764cat >>conftest.$ac_ext <<_ACEOF
38765/* end confdefs.h. */
38766#include <netdb.h>
38767int
38768main ()
38769{
38770
38771 char *name = "www.gnu.org";
38772 struct hostent ret, *retp;
38773 char buf[1024];
38774 int buflen = 1024;
38775 int my_h_errno;
38776 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
38777
38778 ;
38779 return 0;
38780}
38781_ACEOF
38782rm -f conftest.$ac_objext
38783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38784 (eval $ac_compile) 2>conftest.er1
38785 ac_status=$?
38786 grep -v '^ *+' conftest.er1 >conftest.err
38787 rm -f conftest.er1
38788 cat conftest.err >&5
38789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38790 (exit $ac_status); } &&
3565d135
RR
38791 { ac_try='test -z "$ac_c_werror_flag"
38792 || test ! -s conftest.err'
004ee6da
RL
38793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38794 (eval $ac_try) 2>&5
38795 ac_status=$?
38796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38797 (exit $ac_status); }; } &&
38798 { ac_try='test -s conftest.$ac_objext'
38799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38800 (eval $ac_try) 2>&5
38801 ac_status=$?
38802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38803 (exit $ac_status); }; }; then
38804 ac_cv_func_which_gethostbyname_r=six
38805else
38806 echo "$as_me: failed program was:" >&5
38807sed 's/^/| /' conftest.$ac_ext >&5
38808
38809fi
38810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38811
38812fi
38813
38814#
38815# FIVE ARGUMENTS
38816# (e.g. Solaris)
38817#
38818
38819if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38820
38821cat >conftest.$ac_ext <<_ACEOF
38822/* confdefs.h. */
38823_ACEOF
38824cat confdefs.h >>conftest.$ac_ext
38825cat >>conftest.$ac_ext <<_ACEOF
38826/* end confdefs.h. */
38827#include <netdb.h>
38828int
38829main ()
38830{
38831
38832 char *name = "www.gnu.org";
38833 struct hostent ret;
38834 char buf[1024];
38835 int buflen = 1024;
38836 int my_h_errno;
38837 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
38838
38839 ;
38840 return 0;
38841}
38842_ACEOF
38843rm -f conftest.$ac_objext
38844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38845 (eval $ac_compile) 2>conftest.er1
38846 ac_status=$?
38847 grep -v '^ *+' conftest.er1 >conftest.err
38848 rm -f conftest.er1
38849 cat conftest.err >&5
38850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38851 (exit $ac_status); } &&
3565d135
RR
38852 { ac_try='test -z "$ac_c_werror_flag"
38853 || test ! -s conftest.err'
004ee6da
RL
38854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38855 (eval $ac_try) 2>&5
38856 ac_status=$?
38857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858 (exit $ac_status); }; } &&
38859 { ac_try='test -s conftest.$ac_objext'
38860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38861 (eval $ac_try) 2>&5
38862 ac_status=$?
38863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38864 (exit $ac_status); }; }; then
38865 ac_cv_func_which_gethostbyname_r=five
38866else
38867 echo "$as_me: failed program was:" >&5
38868sed 's/^/| /' conftest.$ac_ext >&5
38869
38870fi
38871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38872
38873fi
38874
38875#
38876# THREE ARGUMENTS
38877# (e.g. AIX, HP-UX, Tru64)
38878#
38879
38880if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38881
38882cat >conftest.$ac_ext <<_ACEOF
38883/* confdefs.h. */
38884_ACEOF
38885cat confdefs.h >>conftest.$ac_ext
38886cat >>conftest.$ac_ext <<_ACEOF
38887/* end confdefs.h. */
38888#include <netdb.h>
38889int
38890main ()
38891{
38892
38893 char *name = "www.gnu.org";
38894 struct hostent ret;
38895 struct hostent_data data;
38896 (void)gethostbyname_r(name, &ret, &data) /* ; */
38897
38898 ;
38899 return 0;
38900}
38901_ACEOF
38902rm -f conftest.$ac_objext
38903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38904 (eval $ac_compile) 2>conftest.er1
38905 ac_status=$?
38906 grep -v '^ *+' conftest.er1 >conftest.err
38907 rm -f conftest.er1
38908 cat conftest.err >&5
38909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38910 (exit $ac_status); } &&
3565d135
RR
38911 { ac_try='test -z "$ac_c_werror_flag"
38912 || test ! -s conftest.err'
004ee6da
RL
38913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38914 (eval $ac_try) 2>&5
38915 ac_status=$?
38916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38917 (exit $ac_status); }; } &&
38918 { ac_try='test -s conftest.$ac_objext'
38919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38920 (eval $ac_try) 2>&5
38921 ac_status=$?
38922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38923 (exit $ac_status); }; }; then
38924 ac_cv_func_which_gethostbyname_r=three
38925else
38926 echo "$as_me: failed program was:" >&5
38927sed 's/^/| /' conftest.$ac_ext >&5
38928
38929fi
38930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38931
38932fi
38933
38934################################################################
38935
38936
38937fi
38938
38939case "$ac_cv_func_which_gethostbyname_r" in
38940 three)
38941 echo "$as_me:$LINENO: result: three" >&5
38942echo "${ECHO_T}three" >&6
38943 cat >>confdefs.h <<\_ACEOF
38944#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
38945_ACEOF
38946
38947 ;;
38948
38949 five)
38950 echo "$as_me:$LINENO: result: five" >&5
38951echo "${ECHO_T}five" >&6
38952 cat >>confdefs.h <<\_ACEOF
38953#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
38954_ACEOF
38955
38956 ;;
38957
38958 six)
38959 echo "$as_me:$LINENO: result: six" >&5
38960echo "${ECHO_T}six" >&6
38961 cat >>confdefs.h <<\_ACEOF
38962#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
38963_ACEOF
38964
38965 ;;
38966
38967 no)
38968 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
38969echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
38970 ;;
38971
38972 unknown)
38973 echo "$as_me:$LINENO: result: can't tell" >&5
38974echo "${ECHO_T}can't tell" >&6
38975 ;;
38976
38977 *)
38978 { { echo "$as_me:$LINENO: error: internal error" >&5
38979echo "$as_me: error: internal error" >&2;}
38980 { (exit 1); exit 1; }; }
38981 ;;
38982esac
38983
38984ac_ext=c
38985ac_cpp='$CPP $CPPFLAGS'
38986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38988ac_compiler_gnu=$ac_cv_c_compiler_gnu
38989
38990
38991
38992 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
38993 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
38994 echo "$as_me:$LINENO: checking for gethostbyname" >&5
38995echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
38996if test "${ac_cv_func_gethostbyname+set}" = set; then
38997 echo $ECHO_N "(cached) $ECHO_C" >&6
38998else
38999 cat >conftest.$ac_ext <<_ACEOF
39000/* confdefs.h. */
39001_ACEOF
39002cat confdefs.h >>conftest.$ac_ext
39003cat >>conftest.$ac_ext <<_ACEOF
39004/* end confdefs.h. */
39005/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39007#define gethostbyname innocuous_gethostbyname
39008
39009/* System header to define __stub macros and hopefully few prototypes,
39010 which can conflict with char gethostbyname (); below.
39011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39012 <limits.h> exists even on freestanding compilers. */
39013
39014#ifdef __STDC__
39015# include <limits.h>
39016#else
39017# include <assert.h>
39018#endif
39019
39020#undef gethostbyname
39021
39022/* Override any gcc2 internal prototype to avoid an error. */
39023#ifdef __cplusplus
39024extern "C"
39025{
39026#endif
39027/* We use char because int might match the return type of a gcc2
39028 builtin and then its argument prototype would still apply. */
39029char gethostbyname ();
39030/* The GNU C library defines this for functions which it implements
39031 to always fail with ENOSYS. Some functions are actually named
39032 something starting with __ and the normal name is an alias. */
39033#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39034choke me
39035#else
39036char (*f) () = gethostbyname;
39037#endif
39038#ifdef __cplusplus
39039}
39040#endif
39041
39042int
39043main ()
39044{
39045return f != gethostbyname;
39046 ;
39047 return 0;
39048}
39049_ACEOF
39050rm -f conftest.$ac_objext conftest$ac_exeext
39051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39052 (eval $ac_link) 2>conftest.er1
39053 ac_status=$?
39054 grep -v '^ *+' conftest.er1 >conftest.err
39055 rm -f conftest.er1
39056 cat conftest.err >&5
39057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058 (exit $ac_status); } &&
3565d135
RR
39059 { ac_try='test -z "$ac_c_werror_flag"
39060 || test ! -s conftest.err'
004ee6da
RL
39061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39062 (eval $ac_try) 2>&5
39063 ac_status=$?
39064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065 (exit $ac_status); }; } &&
39066 { ac_try='test -s conftest$ac_exeext'
39067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39068 (eval $ac_try) 2>&5
39069 ac_status=$?
39070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39071 (exit $ac_status); }; }; then
39072 ac_cv_func_gethostbyname=yes
39073else
39074 echo "$as_me: failed program was:" >&5
39075sed 's/^/| /' conftest.$ac_ext >&5
39076
39077ac_cv_func_gethostbyname=no
39078fi
39079rm -f conftest.err conftest.$ac_objext \
39080 conftest$ac_exeext conftest.$ac_ext
39081fi
39082echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39083echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39084if test $ac_cv_func_gethostbyname = yes; then
39085 cat >>confdefs.h <<\_ACEOF
39086#define HAVE_GETHOSTBYNAME 1
39087_ACEOF
39088
39089fi
39090
39091 fi
39092 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39093echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39094if test "${ac_cv_func_getservbyname_r+set}" = set; then
39095 echo $ECHO_N "(cached) $ECHO_C" >&6
39096else
39097 cat >conftest.$ac_ext <<_ACEOF
39098/* confdefs.h. */
39099_ACEOF
39100cat confdefs.h >>conftest.$ac_ext
39101cat >>conftest.$ac_ext <<_ACEOF
39102/* end confdefs.h. */
39103/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39105#define getservbyname_r innocuous_getservbyname_r
39106
39107/* System header to define __stub macros and hopefully few prototypes,
39108 which can conflict with char getservbyname_r (); below.
39109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39110 <limits.h> exists even on freestanding compilers. */
39111
39112#ifdef __STDC__
39113# include <limits.h>
39114#else
39115# include <assert.h>
39116#endif
39117
39118#undef getservbyname_r
39119
39120/* Override any gcc2 internal prototype to avoid an error. */
39121#ifdef __cplusplus
39122extern "C"
39123{
39124#endif
39125/* We use char because int might match the return type of a gcc2
39126 builtin and then its argument prototype would still apply. */
39127char getservbyname_r ();
39128/* The GNU C library defines this for functions which it implements
39129 to always fail with ENOSYS. Some functions are actually named
39130 something starting with __ and the normal name is an alias. */
39131#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39132choke me
39133#else
39134char (*f) () = getservbyname_r;
39135#endif
39136#ifdef __cplusplus
39137}
39138#endif
39139
39140int
39141main ()
39142{
39143return f != getservbyname_r;
39144 ;
39145 return 0;
39146}
39147_ACEOF
39148rm -f conftest.$ac_objext conftest$ac_exeext
39149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39150 (eval $ac_link) 2>conftest.er1
39151 ac_status=$?
39152 grep -v '^ *+' conftest.er1 >conftest.err
39153 rm -f conftest.er1
39154 cat conftest.err >&5
39155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156 (exit $ac_status); } &&
3565d135
RR
39157 { ac_try='test -z "$ac_c_werror_flag"
39158 || test ! -s conftest.err'
004ee6da
RL
39159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39160 (eval $ac_try) 2>&5
39161 ac_status=$?
39162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39163 (exit $ac_status); }; } &&
39164 { ac_try='test -s conftest$ac_exeext'
39165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39166 (eval $ac_try) 2>&5
39167 ac_status=$?
39168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39169 (exit $ac_status); }; }; then
39170 ac_cv_func_getservbyname_r=yes
39171else
39172 echo "$as_me: failed program was:" >&5
39173sed 's/^/| /' conftest.$ac_ext >&5
39174
39175ac_cv_func_getservbyname_r=no
39176fi
39177rm -f conftest.err conftest.$ac_objext \
39178 conftest$ac_exeext conftest.$ac_ext
39179fi
39180echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39181echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39182if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39183 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39184/* confdefs.h. */
39185_ACEOF
39186cat confdefs.h >>conftest.$ac_ext
39187cat >>conftest.$ac_ext <<_ACEOF
39188/* end confdefs.h. */
99879bbf 39189#include <netdb.h>
004ee6da
RL
39190int
39191main ()
39192{
39193
99879bbf
MR
39194 char *name;
39195 char *proto;
39196 struct servent *se;
39197 struct servent_data data;
39198 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39199
39200 ;
39201 return 0;
39202}
39203_ACEOF
39204rm -f conftest.$ac_objext
39205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39206 (eval $ac_compile) 2>conftest.er1
39207 ac_status=$?
39208 grep -v '^ *+' conftest.er1 >conftest.err
39209 rm -f conftest.er1
39210 cat conftest.err >&5
39211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212 (exit $ac_status); } &&
3565d135
RR
39213 { ac_try='test -z "$ac_c_werror_flag"
39214 || test ! -s conftest.err'
004ee6da
RL
39215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216 (eval $ac_try) 2>&5
39217 ac_status=$?
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); }; } &&
39220 { ac_try='test -s conftest.$ac_objext'
39221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222 (eval $ac_try) 2>&5
39223 ac_status=$?
39224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 (exit $ac_status); }; }; then
39226 ac_cv_func_which_getservbyname_r=four
39227else
39228 echo "$as_me: failed program was:" >&5
39229sed 's/^/| /' conftest.$ac_ext >&5
39230
99879bbf 39231cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39232/* confdefs.h. */
39233_ACEOF
39234cat confdefs.h >>conftest.$ac_ext
39235cat >>conftest.$ac_ext <<_ACEOF
39236/* end confdefs.h. */
99879bbf 39237#include <netdb.h>
004ee6da
RL
39238int
39239main ()
39240{
39241
99879bbf
MR
39242 char *name;
39243 char *proto;
39244 struct servent *se, *res;
39245 char buffer[2048];
39246 int buflen = 2048;
39247 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39248
39249 ;
39250 return 0;
39251}
39252_ACEOF
39253rm -f conftest.$ac_objext
39254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39255 (eval $ac_compile) 2>conftest.er1
39256 ac_status=$?
39257 grep -v '^ *+' conftest.er1 >conftest.err
39258 rm -f conftest.er1
39259 cat conftest.err >&5
39260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39261 (exit $ac_status); } &&
3565d135
RR
39262 { ac_try='test -z "$ac_c_werror_flag"
39263 || test ! -s conftest.err'
004ee6da
RL
39264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39265 (eval $ac_try) 2>&5
39266 ac_status=$?
39267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268 (exit $ac_status); }; } &&
39269 { ac_try='test -s conftest.$ac_objext'
39270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39271 (eval $ac_try) 2>&5
39272 ac_status=$?
39273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274 (exit $ac_status); }; }; then
39275 ac_cv_func_which_getservbyname_r=six
39276else
39277 echo "$as_me: failed program was:" >&5
39278sed 's/^/| /' conftest.$ac_ext >&5
39279
99879bbf 39280cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39281/* confdefs.h. */
39282_ACEOF
39283cat confdefs.h >>conftest.$ac_ext
39284cat >>conftest.$ac_ext <<_ACEOF
39285/* end confdefs.h. */
99879bbf 39286#include <netdb.h>
004ee6da
RL
39287int
39288main ()
39289{
39290
99879bbf
MR
39291 char *name;
39292 char *proto;
39293 struct servent *se;
39294 char buffer[2048];
39295 int buflen = 2048;
39296 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39297
39298 ;
39299 return 0;
39300}
39301_ACEOF
39302rm -f conftest.$ac_objext
39303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39304 (eval $ac_compile) 2>conftest.er1
39305 ac_status=$?
39306 grep -v '^ *+' conftest.er1 >conftest.err
39307 rm -f conftest.er1
39308 cat conftest.err >&5
39309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39310 (exit $ac_status); } &&
3565d135
RR
39311 { ac_try='test -z "$ac_c_werror_flag"
39312 || test ! -s conftest.err'
004ee6da
RL
39313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39314 (eval $ac_try) 2>&5
39315 ac_status=$?
39316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39317 (exit $ac_status); }; } &&
39318 { ac_try='test -s conftest.$ac_objext'
39319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39320 (eval $ac_try) 2>&5
39321 ac_status=$?
39322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39323 (exit $ac_status); }; }; then
39324 ac_cv_func_which_getservbyname_r=five
39325else
39326 echo "$as_me: failed program was:" >&5
39327sed 's/^/| /' conftest.$ac_ext >&5
39328
39329ac_cv_func_which_getservbyname_r=no
99879bbf 39330
004ee6da
RL
39331fi
39332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39333
004ee6da
RL
39334fi
39335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39336
004ee6da
RL
39337fi
39338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39339else
39340 ac_cv_func_which_getservbyname_r=no
39341fi
39342
004ee6da
RL
39343
39344if test $ac_cv_func_which_getservbyname_r = six; then
39345 cat >>confdefs.h <<\_ACEOF
39346#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39347_ACEOF
39348
39349elif test $ac_cv_func_which_getservbyname_r = five; then
39350 cat >>confdefs.h <<\_ACEOF
39351#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39352_ACEOF
39353
39354elif test $ac_cv_func_which_getservbyname_r = four; then
39355 cat >>confdefs.h <<\_ACEOF
39356#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39357_ACEOF
39358
004ee6da
RL
39359fi
39360
39361
39362 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39363 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39364
39365for ac_func in getservbyname
39366do
39367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39368echo "$as_me:$LINENO: checking for $ac_func" >&5
39369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39370if eval "test \"\${$as_ac_var+set}\" = set"; then
39371 echo $ECHO_N "(cached) $ECHO_C" >&6
39372else
39373 cat >conftest.$ac_ext <<_ACEOF
39374/* confdefs.h. */
39375_ACEOF
39376cat confdefs.h >>conftest.$ac_ext
39377cat >>conftest.$ac_ext <<_ACEOF
39378/* end confdefs.h. */
39379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39381#define $ac_func innocuous_$ac_func
39382
39383/* System header to define __stub macros and hopefully few prototypes,
39384 which can conflict with char $ac_func (); below.
39385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39386 <limits.h> exists even on freestanding compilers. */
39387
39388#ifdef __STDC__
39389# include <limits.h>
39390#else
39391# include <assert.h>
39392#endif
39393
39394#undef $ac_func
39395
39396/* Override any gcc2 internal prototype to avoid an error. */
39397#ifdef __cplusplus
39398extern "C"
39399{
39400#endif
39401/* We use char because int might match the return type of a gcc2
39402 builtin and then its argument prototype would still apply. */
39403char $ac_func ();
39404/* The GNU C library defines this for functions which it implements
39405 to always fail with ENOSYS. Some functions are actually named
39406 something starting with __ and the normal name is an alias. */
39407#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39408choke me
39409#else
39410char (*f) () = $ac_func;
39411#endif
39412#ifdef __cplusplus
39413}
39414#endif
39415
39416int
39417main ()
39418{
39419return f != $ac_func;
39420 ;
39421 return 0;
39422}
39423_ACEOF
39424rm -f conftest.$ac_objext conftest$ac_exeext
39425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39426 (eval $ac_link) 2>conftest.er1
39427 ac_status=$?
39428 grep -v '^ *+' conftest.er1 >conftest.err
39429 rm -f conftest.er1
39430 cat conftest.err >&5
39431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432 (exit $ac_status); } &&
3565d135
RR
39433 { ac_try='test -z "$ac_c_werror_flag"
39434 || test ! -s conftest.err'
004ee6da
RL
39435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39436 (eval $ac_try) 2>&5
39437 ac_status=$?
39438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39439 (exit $ac_status); }; } &&
39440 { ac_try='test -s conftest$ac_exeext'
39441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39442 (eval $ac_try) 2>&5
39443 ac_status=$?
39444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445 (exit $ac_status); }; }; then
39446 eval "$as_ac_var=yes"
39447else
39448 echo "$as_me: failed program was:" >&5
39449sed 's/^/| /' conftest.$ac_ext >&5
39450
39451eval "$as_ac_var=no"
39452fi
39453rm -f conftest.err conftest.$ac_objext \
39454 conftest$ac_exeext conftest.$ac_ext
39455fi
39456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39457echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39458if test `eval echo '${'$as_ac_var'}'` = yes; then
39459 cat >>confdefs.h <<_ACEOF
39460#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39461_ACEOF
39462 cat >>confdefs.h <<\_ACEOF
39463#define HAVE_GETSERVBYNAME 1
39464_ACEOF
39465
39466fi
39467done
39468
39469 fi
39470
004ee6da
RL
39471if test "$wxUSE_THREADS" = "yes"; then
39472 cat >>confdefs.h <<\_ACEOF
39473#define wxUSE_THREADS 1
39474_ACEOF
39475
39476
39477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39478else
39479 if test "$ac_cv_func_strtok_r" = "yes"; then
39480 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39481echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39482 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39483 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39484 echo "$as_me:$LINENO: result: yes" >&5
39485echo "${ECHO_T}yes" >&6
39486 else
39487 echo "$as_me:$LINENO: result: no" >&5
39488echo "${ECHO_T}no" >&6
39489 fi
39490 fi
39491fi
39492
39493if test "$WXGTK20" = 1 ; then
39494 cat >>confdefs.h <<_ACEOF
39495#define __WXGTK20__ $WXGTK20
39496_ACEOF
39497
39498 WXGTK12=1
39499fi
39500
39501if test "$WXGTK12" = 1 ; then
39502 cat >>confdefs.h <<_ACEOF
39503#define __WXGTK12__ $WXGTK12
39504_ACEOF
39505
39506fi
39507
39508if test "$WXGTK127" = 1 ; then
39509 cat >>confdefs.h <<_ACEOF
39510#define __WXGTK127__ $WXGTK127
39511_ACEOF
39512
39513fi
39514
39515if test "$WXGPE" = 1 ; then
39516 cat >>confdefs.h <<_ACEOF
39517#define __WXGPE__ $WXGPE
39518_ACEOF
39519
39520fi
39521
39522DEBUG_CFLAGS=
39523if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39524 DEBUG_CFLAGS="-g"
39525 wxUSE_OPTIMISE=no
39526fi
39527
39528if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39529 wxUSE_DEBUG_INFO=yes
39530 if test "$GCC" = yes; then
39531 DEBUG_CFLAGS="-ggdb"
39532 fi
39533fi
39534
39535if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39536 cat >>confdefs.h <<\_ACEOF
39537#define WXDEBUG 1
39538_ACEOF
39539
39540 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39541else
39542 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
39543 if test "x$wxGTK_VERSION" = "x1" ; then
39544 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
39545 fi
004ee6da
RL
39546 fi
39547fi
39548
39549if test "$wxUSE_MEM_TRACING" = "yes" ; then
39550 cat >>confdefs.h <<\_ACEOF
39551#define wxUSE_MEMORY_TRACING 1
39552_ACEOF
39553
39554 cat >>confdefs.h <<\_ACEOF
39555#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39556_ACEOF
39557
39558 cat >>confdefs.h <<\_ACEOF
39559#define wxUSE_DEBUG_NEW_ALWAYS 1
39560_ACEOF
39561
39562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39563fi
39564
39565if test "$wxUSE_DMALLOC" = "yes" ; then
39566 DMALLOC_LIBS="-ldmallocthcxx"
39567fi
39568
39569PROFILE_FLAGS=
39570if test "$wxUSE_PROFILE" = "yes" ; then
39571 PROFILE_FLAGS=" -pg"
39572fi
39573
39574if test "$GCC" = "yes" ; then
39575 if test "$wxUSE_NO_RTTI" = "yes" ; then
39576 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39577 fi
39578 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39579 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39580 fi
39581 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39582 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39583 fi
39584
39585 case "${host}" in
39586 powerpc*-*-aix* )
39587 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39588 ;;
39589 *-hppa* )
39590 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39591 ;;
39592 esac
39593fi
39594
39595OPTIMISE_CFLAGS=
39596if test "$wxUSE_OPTIMISE" = "no" ; then
39597 if test "$GCC" = yes ; then
39598 OPTIMISE_CFLAGS="-O0"
39599 fi
39600else
39601 if test "$GCC" = yes ; then
39602 OPTIMISE_CFLAGS="-O2"
39603 else
39604 OPTIMISE_CFLAGS="-O"
39605 fi
39606fi
39607
39608
39609if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39610 cat >>confdefs.h <<\_ACEOF
39611#define WXWIN_COMPATIBILITY_2_4 1
39612_ACEOF
39613
39614
39615 WXWIN_COMPATIBILITY_2_6="yes"
39616fi
39617
39618if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39619 cat >>confdefs.h <<\_ACEOF
39620#define WXWIN_COMPATIBILITY_2_6 1
39621_ACEOF
39622
39623fi
39624
39625
39626if test "$wxUSE_GUI" = "yes"; then
39627 cat >>confdefs.h <<\_ACEOF
39628#define wxUSE_GUI 1
39629_ACEOF
39630
39631
39632 fi
39633
39634
39635if test "$wxUSE_UNIX" = "yes"; then
39636 cat >>confdefs.h <<\_ACEOF
39637#define wxUSE_UNIX 1
39638_ACEOF
39639
39640fi
39641
39642
39643if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39644
39645 HAVE_DL_FUNCS=0
39646 HAVE_SHL_FUNCS=0
39647 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39648 if test "$USE_DARWIN" = 1; then
39649 HAVE_DL_FUNCS=1
39650 elif test "$USE_DOS" = 1; then
39651 HAVE_DL_FUNCS=0
39652 else
39653
39654for ac_func in dlopen
39655do
39656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39657echo "$as_me:$LINENO: checking for $ac_func" >&5
39658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39659if eval "test \"\${$as_ac_var+set}\" = set"; then
39660 echo $ECHO_N "(cached) $ECHO_C" >&6
39661else
39662 cat >conftest.$ac_ext <<_ACEOF
39663/* confdefs.h. */
39664_ACEOF
39665cat confdefs.h >>conftest.$ac_ext
39666cat >>conftest.$ac_ext <<_ACEOF
39667/* end confdefs.h. */
39668/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39670#define $ac_func innocuous_$ac_func
39671
39672/* System header to define __stub macros and hopefully few prototypes,
39673 which can conflict with char $ac_func (); below.
39674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39675 <limits.h> exists even on freestanding compilers. */
39676
39677#ifdef __STDC__
39678# include <limits.h>
39679#else
39680# include <assert.h>
39681#endif
39682
39683#undef $ac_func
39684
39685/* Override any gcc2 internal prototype to avoid an error. */
39686#ifdef __cplusplus
39687extern "C"
39688{
39689#endif
39690/* We use char because int might match the return type of a gcc2
39691 builtin and then its argument prototype would still apply. */
39692char $ac_func ();
39693/* The GNU C library defines this for functions which it implements
39694 to always fail with ENOSYS. Some functions are actually named
39695 something starting with __ and the normal name is an alias. */
39696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39697choke me
39698#else
39699char (*f) () = $ac_func;
39700#endif
39701#ifdef __cplusplus
39702}
39703#endif
39704
39705int
39706main ()
39707{
39708return f != $ac_func;
a848cd7e
SC
39709 ;
39710 return 0;
39711}
39712_ACEOF
39713rm -f conftest.$ac_objext conftest$ac_exeext
39714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39715 (eval $ac_link) 2>conftest.er1
a848cd7e 39716 ac_status=$?
ac1cb8d3
VS
39717 grep -v '^ *+' conftest.er1 >conftest.err
39718 rm -f conftest.er1
39719 cat conftest.err >&5
a848cd7e
SC
39720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39721 (exit $ac_status); } &&
3565d135
RR
39722 { ac_try='test -z "$ac_c_werror_flag"
39723 || test ! -s conftest.err'
ac1cb8d3
VS
39724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39725 (eval $ac_try) 2>&5
39726 ac_status=$?
39727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39728 (exit $ac_status); }; } &&
39729 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39731 (eval $ac_try) 2>&5
39732 ac_status=$?
39733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39734 (exit $ac_status); }; }; then
39735 eval "$as_ac_var=yes"
39736else
39737 echo "$as_me: failed program was:" >&5
39738sed 's/^/| /' conftest.$ac_ext >&5
39739
39740eval "$as_ac_var=no"
39741fi
ac1cb8d3
VS
39742rm -f conftest.err conftest.$ac_objext \
39743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39744fi
39745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39746echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39747if test `eval echo '${'$as_ac_var'}'` = yes; then
39748 cat >>confdefs.h <<_ACEOF
39749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39750_ACEOF
39751
39752 cat >>confdefs.h <<\_ACEOF
39753#define HAVE_DLOPEN 1
39754_ACEOF
39755
39756 HAVE_DL_FUNCS=1
39757
39758else
39759
39760 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39761echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39762if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39763 echo $ECHO_N "(cached) $ECHO_C" >&6
39764else
39765 ac_check_lib_save_LIBS=$LIBS
39766LIBS="-ldl $LIBS"
39767cat >conftest.$ac_ext <<_ACEOF
39768/* confdefs.h. */
39769_ACEOF
39770cat confdefs.h >>conftest.$ac_ext
39771cat >>conftest.$ac_ext <<_ACEOF
39772/* end confdefs.h. */
39773
39774/* Override any gcc2 internal prototype to avoid an error. */
39775#ifdef __cplusplus
39776extern "C"
39777#endif
39778/* We use char because int might match the return type of a gcc2
39779 builtin and then its argument prototype would still apply. */
39780char dlopen ();
39781int
39782main ()
39783{
39784dlopen ();
39785 ;
39786 return 0;
39787}
39788_ACEOF
39789rm -f conftest.$ac_objext conftest$ac_exeext
39790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39791 (eval $ac_link) 2>conftest.er1
a848cd7e 39792 ac_status=$?
ac1cb8d3
VS
39793 grep -v '^ *+' conftest.er1 >conftest.err
39794 rm -f conftest.er1
39795 cat conftest.err >&5
a848cd7e
SC
39796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39797 (exit $ac_status); } &&
3565d135
RR
39798 { ac_try='test -z "$ac_c_werror_flag"
39799 || test ! -s conftest.err'
ac1cb8d3
VS
39800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39801 (eval $ac_try) 2>&5
39802 ac_status=$?
39803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804 (exit $ac_status); }; } &&
39805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39807 (eval $ac_try) 2>&5
39808 ac_status=$?
39809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810 (exit $ac_status); }; }; then
39811 ac_cv_lib_dl_dlopen=yes
39812else
39813 echo "$as_me: failed program was:" >&5
39814sed 's/^/| /' conftest.$ac_ext >&5
39815
39816ac_cv_lib_dl_dlopen=no
39817fi
ac1cb8d3
VS
39818rm -f conftest.err conftest.$ac_objext \
39819 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39820LIBS=$ac_check_lib_save_LIBS
39821fi
39822echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39823echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
39824if test $ac_cv_lib_dl_dlopen = yes; then
39825
39826 cat >>confdefs.h <<\_ACEOF
39827#define HAVE_DLOPEN 1
39828_ACEOF
39829
39830 HAVE_DL_FUNCS=1
39831 DL_LINK=" -ldl$DL_LINK"
39832
39833else
39834
39835
39836for ac_func in shl_load
39837do
39838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39839echo "$as_me:$LINENO: checking for $ac_func" >&5
39840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39841if eval "test \"\${$as_ac_var+set}\" = set"; then
39842 echo $ECHO_N "(cached) $ECHO_C" >&6
39843else
39844 cat >conftest.$ac_ext <<_ACEOF
39845/* confdefs.h. */
39846_ACEOF
39847cat confdefs.h >>conftest.$ac_ext
39848cat >>conftest.$ac_ext <<_ACEOF
39849/* end confdefs.h. */
ac1cb8d3
VS
39850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39852#define $ac_func innocuous_$ac_func
39853
a848cd7e
SC
39854/* System header to define __stub macros and hopefully few prototypes,
39855 which can conflict with char $ac_func (); below.
39856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39857 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39858
a848cd7e
SC
39859#ifdef __STDC__
39860# include <limits.h>
39861#else
39862# include <assert.h>
39863#endif
ac1cb8d3
VS
39864
39865#undef $ac_func
39866
a848cd7e
SC
39867/* Override any gcc2 internal prototype to avoid an error. */
39868#ifdef __cplusplus
39869extern "C"
39870{
39871#endif
39872/* We use char because int might match the return type of a gcc2
39873 builtin and then its argument prototype would still apply. */
39874char $ac_func ();
39875/* The GNU C library defines this for functions which it implements
39876 to always fail with ENOSYS. Some functions are actually named
39877 something starting with __ and the normal name is an alias. */
39878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39879choke me
39880#else
39881char (*f) () = $ac_func;
39882#endif
39883#ifdef __cplusplus
39884}
39885#endif
39886
39887int
39888main ()
39889{
39890return f != $ac_func;
39891 ;
39892 return 0;
39893}
39894_ACEOF
39895rm -f conftest.$ac_objext conftest$ac_exeext
39896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39897 (eval $ac_link) 2>conftest.er1
a848cd7e 39898 ac_status=$?
ac1cb8d3
VS
39899 grep -v '^ *+' conftest.er1 >conftest.err
39900 rm -f conftest.er1
39901 cat conftest.err >&5
a848cd7e
SC
39902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903 (exit $ac_status); } &&
3565d135
RR
39904 { ac_try='test -z "$ac_c_werror_flag"
39905 || test ! -s conftest.err'
ac1cb8d3
VS
39906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39907 (eval $ac_try) 2>&5
39908 ac_status=$?
39909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39910 (exit $ac_status); }; } &&
39911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39913 (eval $ac_try) 2>&5
39914 ac_status=$?
39915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39916 (exit $ac_status); }; }; then
39917 eval "$as_ac_var=yes"
39918else
39919 echo "$as_me: failed program was:" >&5
39920sed 's/^/| /' conftest.$ac_ext >&5
39921
39922eval "$as_ac_var=no"
39923fi
ac1cb8d3
VS
39924rm -f conftest.err conftest.$ac_objext \
39925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39926fi
39927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39928echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39929if test `eval echo '${'$as_ac_var'}'` = yes; then
39930 cat >>confdefs.h <<_ACEOF
39931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39932_ACEOF
39933
39934 cat >>confdefs.h <<\_ACEOF
39935#define HAVE_SHL_LOAD 1
39936_ACEOF
39937
39938 HAVE_SHL_FUNCS=1
39939
39940else
39941
39942 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
39943echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
39944if test "${ac_cv_lib_shl_load_dld+set}" = set; then
39945 echo $ECHO_N "(cached) $ECHO_C" >&6
39946else
39947 ac_check_lib_save_LIBS=$LIBS
39948LIBS="-lshl_load $LIBS"
39949cat >conftest.$ac_ext <<_ACEOF
39950/* confdefs.h. */
39951_ACEOF
39952cat confdefs.h >>conftest.$ac_ext
39953cat >>conftest.$ac_ext <<_ACEOF
39954/* end confdefs.h. */
39955
39956/* Override any gcc2 internal prototype to avoid an error. */
39957#ifdef __cplusplus
39958extern "C"
39959#endif
39960/* We use char because int might match the return type of a gcc2
39961 builtin and then its argument prototype would still apply. */
39962char dld ();
39963int
39964main ()
39965{
39966dld ();
39967 ;
39968 return 0;
39969}
39970_ACEOF
39971rm -f conftest.$ac_objext conftest$ac_exeext
39972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39973 (eval $ac_link) 2>conftest.er1
a848cd7e 39974 ac_status=$?
ac1cb8d3
VS
39975 grep -v '^ *+' conftest.er1 >conftest.err
39976 rm -f conftest.er1
39977 cat conftest.err >&5
a848cd7e
SC
39978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39979 (exit $ac_status); } &&
3565d135
RR
39980 { ac_try='test -z "$ac_c_werror_flag"
39981 || test ! -s conftest.err'
ac1cb8d3
VS
39982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39983 (eval $ac_try) 2>&5
39984 ac_status=$?
39985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39986 (exit $ac_status); }; } &&
39987 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39989 (eval $ac_try) 2>&5
39990 ac_status=$?
39991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992 (exit $ac_status); }; }; then
39993 ac_cv_lib_shl_load_dld=yes
39994else
39995 echo "$as_me: failed program was:" >&5
39996sed 's/^/| /' conftest.$ac_ext >&5
39997
39998ac_cv_lib_shl_load_dld=no
39999fi
ac1cb8d3
VS
40000rm -f conftest.err conftest.$ac_objext \
40001 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40002LIBS=$ac_check_lib_save_LIBS
40003fi
40004echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40005echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40006if test $ac_cv_lib_shl_load_dld = yes; then
40007
40008 HAVE_SHL_FUNCS=1
40009 DL_LINK=" -ldld$DL_LINK"
40010
40011fi
40012
40013
40014fi
40015done
40016
40017
40018fi
40019
40020
40021fi
40022done
40023
40024
40025 if test "$HAVE_DL_FUNCS" = 1; then
40026
40027for ac_func in dlerror
40028do
40029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40030echo "$as_me:$LINENO: checking for $ac_func" >&5
40031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40032if eval "test \"\${$as_ac_var+set}\" = set"; then
40033 echo $ECHO_N "(cached) $ECHO_C" >&6
40034else
40035 cat >conftest.$ac_ext <<_ACEOF
40036/* confdefs.h. */
40037_ACEOF
40038cat confdefs.h >>conftest.$ac_ext
40039cat >>conftest.$ac_ext <<_ACEOF
40040/* end confdefs.h. */
ac1cb8d3
VS
40041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40043#define $ac_func innocuous_$ac_func
40044
a848cd7e
SC
40045/* System header to define __stub macros and hopefully few prototypes,
40046 which can conflict with char $ac_func (); below.
40047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40048 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40049
a848cd7e
SC
40050#ifdef __STDC__
40051# include <limits.h>
40052#else
40053# include <assert.h>
40054#endif
ac1cb8d3
VS
40055
40056#undef $ac_func
40057
a848cd7e
SC
40058/* Override any gcc2 internal prototype to avoid an error. */
40059#ifdef __cplusplus
40060extern "C"
40061{
40062#endif
40063/* We use char because int might match the return type of a gcc2
40064 builtin and then its argument prototype would still apply. */
40065char $ac_func ();
40066/* The GNU C library defines this for functions which it implements
40067 to always fail with ENOSYS. Some functions are actually named
40068 something starting with __ and the normal name is an alias. */
40069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40070choke me
40071#else
40072char (*f) () = $ac_func;
40073#endif
40074#ifdef __cplusplus
40075}
40076#endif
40077
40078int
40079main ()
40080{
40081return f != $ac_func;
40082 ;
40083 return 0;
40084}
40085_ACEOF
40086rm -f conftest.$ac_objext conftest$ac_exeext
40087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40088 (eval $ac_link) 2>conftest.er1
a848cd7e 40089 ac_status=$?
ac1cb8d3
VS
40090 grep -v '^ *+' conftest.er1 >conftest.err
40091 rm -f conftest.er1
40092 cat conftest.err >&5
a848cd7e
SC
40093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40094 (exit $ac_status); } &&
3565d135
RR
40095 { ac_try='test -z "$ac_c_werror_flag"
40096 || test ! -s conftest.err'
ac1cb8d3
VS
40097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40098 (eval $ac_try) 2>&5
40099 ac_status=$?
40100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40101 (exit $ac_status); }; } &&
40102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40104 (eval $ac_try) 2>&5
40105 ac_status=$?
40106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40107 (exit $ac_status); }; }; then
40108 eval "$as_ac_var=yes"
40109else
40110 echo "$as_me: failed program was:" >&5
40111sed 's/^/| /' conftest.$ac_ext >&5
40112
40113eval "$as_ac_var=no"
40114fi
ac1cb8d3
VS
40115rm -f conftest.err conftest.$ac_objext \
40116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40117fi
40118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40120if test `eval echo '${'$as_ac_var'}'` = yes; then
40121 cat >>confdefs.h <<_ACEOF
40122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40123_ACEOF
40124 cat >>confdefs.h <<\_ACEOF
40125#define HAVE_DLERROR 1
40126_ACEOF
40127
40128else
40129
40130 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40131echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40132if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40133 echo $ECHO_N "(cached) $ECHO_C" >&6
40134else
40135 ac_check_lib_save_LIBS=$LIBS
40136LIBS="-ldl $LIBS"
40137cat >conftest.$ac_ext <<_ACEOF
40138/* confdefs.h. */
40139_ACEOF
40140cat confdefs.h >>conftest.$ac_ext
40141cat >>conftest.$ac_ext <<_ACEOF
40142/* end confdefs.h. */
40143
40144/* Override any gcc2 internal prototype to avoid an error. */
40145#ifdef __cplusplus
40146extern "C"
40147#endif
40148/* We use char because int might match the return type of a gcc2
40149 builtin and then its argument prototype would still apply. */
40150char dlerror ();
40151int
40152main ()
40153{
40154dlerror ();
40155 ;
40156 return 0;
40157}
40158_ACEOF
40159rm -f conftest.$ac_objext conftest$ac_exeext
40160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40161 (eval $ac_link) 2>conftest.er1
a848cd7e 40162 ac_status=$?
ac1cb8d3
VS
40163 grep -v '^ *+' conftest.er1 >conftest.err
40164 rm -f conftest.er1
40165 cat conftest.err >&5
a848cd7e
SC
40166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40167 (exit $ac_status); } &&
3565d135
RR
40168 { ac_try='test -z "$ac_c_werror_flag"
40169 || test ! -s conftest.err'
ac1cb8d3
VS
40170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40171 (eval $ac_try) 2>&5
40172 ac_status=$?
40173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174 (exit $ac_status); }; } &&
40175 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177 (eval $ac_try) 2>&5
40178 ac_status=$?
40179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); }; }; then
40181 ac_cv_lib_dl_dlerror=yes
40182else
40183 echo "$as_me: failed program was:" >&5
40184sed 's/^/| /' conftest.$ac_ext >&5
40185
40186ac_cv_lib_dl_dlerror=no
40187fi
ac1cb8d3
VS
40188rm -f conftest.err conftest.$ac_objext \
40189 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40190LIBS=$ac_check_lib_save_LIBS
40191fi
40192echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40193echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40194if test $ac_cv_lib_dl_dlerror = yes; then
40195 cat >>confdefs.h <<\_ACEOF
40196#define HAVE_DLERROR 1
40197_ACEOF
40198
40199fi
40200
40201
40202
40203fi
40204done
40205
40206 fi
40207 fi
40208
40209 if test "$HAVE_DL_FUNCS" = 0; then
40210 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40211 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40212 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40213echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40214 wxUSE_DYNAMIC_LOADER=no
40215 wxUSE_DYNLIB_CLASS=no
40216 else
40217 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40218echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40219 fi
40220 fi
40221 fi
40222 fi
40223fi
40224
40225if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40226 cat >>confdefs.h <<\_ACEOF
40227#define wxUSE_DYNAMIC_LOADER 1
40228_ACEOF
40229
40230fi
40231if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40232 cat >>confdefs.h <<\_ACEOF
40233#define wxUSE_DYNLIB_CLASS 1
40234_ACEOF
40235
40236fi
40237
40238
40239
40240if test "$wxUSE_PLUGINS" = "yes" ; then
40241 if test "$wxUSE_SHARED" = "no" ; then
40242 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40243echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40244 wxUSE_PLUGINS=no
40245 fi
40246 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40247 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40248echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40249 wxUSE_PLUGINS=no
40250 fi
40251 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40252 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40253echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40254 wxUSE_PLUGINS=no
40255 fi
40256 if test "$wxUSE_PLUGINS" = "yes" ; then
40257 cat >>confdefs.h <<\_ACEOF
40258#define wxUSE_PLUGINS 1
40259_ACEOF
40260
40261 fi
40262fi
40263
40264
40265if test "$wxUSE_STL" = "yes"; then
40266 cat >>confdefs.h <<\_ACEOF
40267#define wxUSE_STL 1
40268_ACEOF
40269
40270fi
40271
40272if test "$wxUSE_APPLE_IEEE" = "yes"; then
40273 cat >>confdefs.h <<\_ACEOF
40274#define wxUSE_APPLE_IEEE 1
40275_ACEOF
40276
40277fi
40278
40279if test "$wxUSE_TIMER" = "yes"; then
40280 cat >>confdefs.h <<\_ACEOF
40281#define wxUSE_TIMER 1
40282_ACEOF
40283
40284fi
40285
9c112555 40286if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40287 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40288echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40289if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40290 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40291else
d12aef51
VZ
40292
40293 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40294/* confdefs.h. */
40295_ACEOF
40296cat confdefs.h >>conftest.$ac_ext
40297cat >>conftest.$ac_ext <<_ACEOF
40298/* end confdefs.h. */
d12aef51
VZ
40299
40300 #include <sys/soundcard.h>
40301
40302int
40303main ()
40304{
40305
40306 ioctl(0, SNDCTL_DSP_SYNC, 0);
40307
40308 ;
40309 return 0;
40310}
a848cd7e 40311_ACEOF
d12aef51
VZ
40312rm -f conftest.$ac_objext conftest$ac_exeext
40313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40314 (eval $ac_link) 2>conftest.er1
a848cd7e 40315 ac_status=$?
ac1cb8d3
VS
40316 grep -v '^ *+' conftest.er1 >conftest.err
40317 rm -f conftest.er1
40318 cat conftest.err >&5
a848cd7e
SC
40319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40320 (exit $ac_status); } &&
3565d135
RR
40321 { ac_try='test -z "$ac_c_werror_flag"
40322 || test ! -s conftest.err'
ac1cb8d3
VS
40323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40324 (eval $ac_try) 2>&5
40325 ac_status=$?
40326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40327 (exit $ac_status); }; } &&
d12aef51 40328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40330 (eval $ac_try) 2>&5
40331 ac_status=$?
40332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40333 (exit $ac_status); }; }; then
d12aef51 40334 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40335else
40336 echo "$as_me: failed program was:" >&5
40337sed 's/^/| /' conftest.$ac_ext >&5
40338
a848cd7e 40339
d12aef51
VZ
40340 saveLibs="$LIBS"
40341 LIBS="$saveLibs -lossaudio"
40342 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40343/* confdefs.h. */
40344_ACEOF
40345cat confdefs.h >>conftest.$ac_ext
40346cat >>conftest.$ac_ext <<_ACEOF
40347/* end confdefs.h. */
d12aef51
VZ
40348
40349 #include <sys/soundcard.h>
40350
40351int
40352main ()
40353{
40354
40355 ioctl(0, SNDCTL_DSP_SYNC, 0);
40356
40357 ;
40358 return 0;
40359}
a848cd7e 40360_ACEOF
d12aef51
VZ
40361rm -f conftest.$ac_objext conftest$ac_exeext
40362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40363 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40364 ac_status=$?
40365 grep -v '^ *+' conftest.er1 >conftest.err
40366 rm -f conftest.er1
40367 cat conftest.err >&5
40368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40369 (exit $ac_status); } &&
3565d135
RR
40370 { ac_try='test -z "$ac_c_werror_flag"
40371 || test ! -s conftest.err'
d12aef51
VZ
40372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40373 (eval $ac_try) 2>&5
40374 ac_status=$?
40375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40376 (exit $ac_status); }; } &&
40377 { ac_try='test -s conftest$ac_exeext'
40378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40379 (eval $ac_try) 2>&5
40380 ac_status=$?
40381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40382 (exit $ac_status); }; }; then
40383 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40384else
40385 echo "$as_me: failed program was:" >&5
40386sed 's/^/| /' conftest.$ac_ext >&5
40387
a848cd7e 40388
d12aef51
VZ
40389 LIBS="$saveLibs"
40390 ac_cv_header_sys_soundcard=no
40391
40392
a848cd7e 40393fi
d12aef51
VZ
40394rm -f conftest.err conftest.$ac_objext \
40395 conftest$ac_exeext conftest.$ac_ext
40396
a848cd7e
SC
40397
40398fi
d12aef51
VZ
40399rm -f conftest.err conftest.$ac_objext \
40400 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40401
40402fi
d12aef51
VZ
40403echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40404echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40405
d12aef51
VZ
40406 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40407 cat >>confdefs.h <<\_ACEOF
40408#define HAVE_SYS_SOUNDCARD_H 1
40409_ACEOF
a848cd7e 40410
d12aef51
VZ
40411 else
40412 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40413 fi
9c112555
MW
40414fi
40415WITH_PLUGIN_SDL=0
40416if test "$wxUSE_SOUND" = "yes"; then
40417 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40418 if test "$wxUSE_LIBSDL" != "no"; then
40419
40420# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40421if test "${with_sdl_prefix+set}" = set; then
40422 withval="$with_sdl_prefix"
40423 sdl_prefix="$withval"
40424else
40425 sdl_prefix=""
40426fi;
40427
40428# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40429if test "${with_sdl_exec_prefix+set}" = set; then
40430 withval="$with_sdl_exec_prefix"
40431 sdl_exec_prefix="$withval"
40432else
40433 sdl_exec_prefix=""
40434fi;
40435# Check whether --enable-sdltest or --disable-sdltest was given.
40436if test "${enable_sdltest+set}" = set; then
40437 enableval="$enable_sdltest"
40438
40439else
40440 enable_sdltest=yes
40441fi;
40442
40443 if test x$sdl_exec_prefix != x ; then
40444 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40445 if test x${SDL_CONFIG+set} != xset ; then
40446 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40447 fi
40448 fi
40449 if test x$sdl_prefix != x ; then
40450 sdl_args="$sdl_args --prefix=$sdl_prefix"
40451 if test x${SDL_CONFIG+set} != xset ; then
40452 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40453 fi
40454 fi
40455
40456
40457 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40458 # Extract the first word of "sdl-config", so it can be a program name with args.
40459set dummy sdl-config; ac_word=$2
40460echo "$as_me:$LINENO: checking for $ac_word" >&5
40461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40462if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40463 echo $ECHO_N "(cached) $ECHO_C" >&6
40464else
40465 case $SDL_CONFIG in
40466 [\\/]* | ?:[\\/]*)
40467 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40468 ;;
40469 *)
40470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40471for as_dir in $PATH
40472do
40473 IFS=$as_save_IFS
40474 test -z "$as_dir" && as_dir=.
40475 for ac_exec_ext in '' $ac_executable_extensions; do
40476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40477 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40479 break 2
40480 fi
40481done
40482done
40483
40484 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40485 ;;
40486esac
40487fi
40488SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40489
40490if test -n "$SDL_CONFIG"; then
40491 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40492echo "${ECHO_T}$SDL_CONFIG" >&6
40493else
40494 echo "$as_me:$LINENO: result: no" >&5
40495echo "${ECHO_T}no" >&6
40496fi
40497
40498 min_sdl_version=1.2.0
40499 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40500echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40501 no_sdl=""
40502 if test "$SDL_CONFIG" = "no" ; then
40503 no_sdl=yes
40504 else
40505 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40506 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40507
40508 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40509 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40510 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40511 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40512 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40514 if test "x$enable_sdltest" = "xyes" ; then
40515 ac_save_CFLAGS="$CFLAGS"
94acd38e 40516 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40517 ac_save_LIBS="$LIBS"
40518 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40519 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40520 LIBS="$LIBS $SDL_LIBS"
40521 rm -f conf.sdltest
40522 if test "$cross_compiling" = yes; then
40523 echo $ac_n "cross compiling; assumed OK... $ac_c"
40524else
40525 cat >conftest.$ac_ext <<_ACEOF
40526/* confdefs.h. */
40527_ACEOF
40528cat confdefs.h >>conftest.$ac_ext
40529cat >>conftest.$ac_ext <<_ACEOF
40530/* end confdefs.h. */
40531
40532#include <stdio.h>
40533#include <stdlib.h>
40534#include <string.h>
40535#include "SDL.h"
40536
40537char*
40538my_strdup (char *str)
40539{
40540 char *new_str;
40541
40542 if (str)
40543 {
40544 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40545 strcpy (new_str, str);
40546 }
40547 else
40548 new_str = NULL;
40549
40550 return new_str;
40551}
40552
40553int main (int argc, char *argv[])
40554{
40555 int major, minor, micro;
40556 char *tmp_version;
40557
40558 /* This hangs on some systems (?)
40559 system ("touch conf.sdltest");
40560 */
40561 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40562
40563 /* HP/UX 9 (%@#!) writes to sscanf strings */
40564 tmp_version = my_strdup("$min_sdl_version");
40565 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40566 printf("%s, bad version string\n", "$min_sdl_version");
40567 exit(1);
40568 }
40569
40570 if (($sdl_major_version > major) ||
40571 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40572 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40573 {
40574 return 0;
40575 }
40576 else
40577 {
40578 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40579 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40580 printf("*** best to upgrade to the required version.\n");
40581 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40582 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40583 printf("*** config.cache before re-running configure\n");
40584 return 1;
40585 }
40586}
40587
40588
40589_ACEOF
40590rm -f conftest$ac_exeext
40591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40592 (eval $ac_link) 2>&5
40593 ac_status=$?
40594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40597 (eval $ac_try) 2>&5
40598 ac_status=$?
40599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40600 (exit $ac_status); }; }; then
40601 :
40602else
40603 echo "$as_me: program exited with status $ac_status" >&5
40604echo "$as_me: failed program was:" >&5
40605sed 's/^/| /' conftest.$ac_ext >&5
40606
40607( exit $ac_status )
40608no_sdl=yes
40609fi
ac1cb8d3 40610rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40611fi
40612 CFLAGS="$ac_save_CFLAGS"
94acd38e 40613 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40614 LIBS="$ac_save_LIBS"
40615 fi
40616 fi
40617 if test "x$no_sdl" = x ; then
40618 echo "$as_me:$LINENO: result: yes" >&5
40619echo "${ECHO_T}yes" >&6
40620
40621 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40622 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40623 cat >>confdefs.h <<\_ACEOF
40624#define wxUSE_LIBSDL 1
40625_ACEOF
40626
40627
40628 else
40629 echo "$as_me:$LINENO: result: no" >&5
40630echo "${ECHO_T}no" >&6
40631 if test "$SDL_CONFIG" = "no" ; then
40632 echo "*** The sdl-config script installed by SDL could not be found"
40633 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40634 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40635 echo "*** full path to sdl-config."
40636 else
40637 if test -f conf.sdltest ; then
40638 :
40639 else
40640 echo "*** Could not run SDL test program, checking why..."
40641 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40642 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40643 LIBS="$LIBS $SDL_LIBS"
40644 cat >conftest.$ac_ext <<_ACEOF
40645/* confdefs.h. */
40646_ACEOF
40647cat confdefs.h >>conftest.$ac_ext
40648cat >>conftest.$ac_ext <<_ACEOF
40649/* end confdefs.h. */
40650
40651#include <stdio.h>
40652#include "SDL.h"
40653
40654int main(int argc, char *argv[])
40655{ return 0; }
40656#undef main
40657#define main K_and_R_C_main
40658
40659int
40660main ()
40661{
40662 return 0;
40663 ;
40664 return 0;
40665}
40666_ACEOF
40667rm -f conftest.$ac_objext conftest$ac_exeext
40668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40669 (eval $ac_link) 2>conftest.er1
a848cd7e 40670 ac_status=$?
ac1cb8d3
VS
40671 grep -v '^ *+' conftest.er1 >conftest.err
40672 rm -f conftest.er1
40673 cat conftest.err >&5
a848cd7e
SC
40674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40675 (exit $ac_status); } &&
3565d135
RR
40676 { ac_try='test -z "$ac_c_werror_flag"
40677 || test ! -s conftest.err'
ac1cb8d3
VS
40678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40679 (eval $ac_try) 2>&5
40680 ac_status=$?
40681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40682 (exit $ac_status); }; } &&
40683 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40685 (eval $ac_try) 2>&5
40686 ac_status=$?
40687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40688 (exit $ac_status); }; }; then
40689 echo "*** The test program compiled, but did not run. This usually means"
40690 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40691 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40692 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40693 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40694 echo "*** is required on your system"
40695 echo "***"
40696 echo "*** If you have an old version installed, it is best to remove it, although"
40697 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40698else
40699 echo "$as_me: failed program was:" >&5
40700sed 's/^/| /' conftest.$ac_ext >&5
40701
40702 echo "*** The test program failed to compile or link. See the file config.log for the"
40703 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40704 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40705 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40706fi
ac1cb8d3
VS
40707rm -f conftest.err conftest.$ac_objext \
40708 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40709 CFLAGS="$ac_save_CFLAGS"
94acd38e 40710 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40711 LIBS="$ac_save_LIBS"
40712 fi
40713 fi
40714 SDL_CFLAGS=""
40715 SDL_LIBS=""
40716 wxUSE_LIBSDL="no"
40717 fi
40718
40719
40720 rm -f conf.sdltest
40721
40722 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40723 WITH_PLUGIN_SDL=1
40724 fi
40725 fi
40726 fi
40727
40728 cat >>confdefs.h <<\_ACEOF
40729#define wxUSE_SOUND 1
40730_ACEOF
40731
40732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40733fi
40734
d1c38808
VZ
40735if test "$WXGTK20" = 1; then
40736 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40737 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40738
40739
40740 succeeded=no
40741
40742 if test -z "$PKG_CONFIG"; then
40743 # Extract the first word of "pkg-config", so it can be a program name with args.
40744set dummy pkg-config; ac_word=$2
40745echo "$as_me:$LINENO: checking for $ac_word" >&5
40746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40747if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40748 echo $ECHO_N "(cached) $ECHO_C" >&6
40749else
40750 case $PKG_CONFIG in
40751 [\\/]* | ?:[\\/]*)
40752 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40753 ;;
40754 *)
40755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40756for as_dir in $PATH
40757do
40758 IFS=$as_save_IFS
40759 test -z "$as_dir" && as_dir=.
40760 for ac_exec_ext in '' $ac_executable_extensions; do
40761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40762 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40764 break 2
40765 fi
40766done
40767done
40768
40769 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40770 ;;
40771esac
40772fi
40773PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40774
40775if test -n "$PKG_CONFIG"; then
40776 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40777echo "${ECHO_T}$PKG_CONFIG" >&6
40778else
40779 echo "$as_me:$LINENO: result: no" >&5
40780echo "${ECHO_T}no" >&6
40781fi
40782
40783 fi
40784
40785 if test "$PKG_CONFIG" = "no" ; then
40786 echo "*** The pkg-config script could not be found. Make sure it is"
40787 echo "*** in your path, or set the PKG_CONFIG environment variable"
40788 echo "*** to the full path to pkg-config."
40789 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40790 else
40791 PKG_CONFIG_MIN_VERSION=0.9.0
40792 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
40793 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
40794echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 40795
ffa762ff 40796 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
40797 echo "$as_me:$LINENO: result: yes" >&5
40798echo "${ECHO_T}yes" >&6
40799 succeeded=yes
40800
40801 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
40802echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 40803 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40804 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
40805echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
40806
40807 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
40808echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 40809 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40810 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
40811echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
40812 else
40813 LIBGNOMEPRINTUI_CFLAGS=""
40814 LIBGNOMEPRINTUI_LIBS=""
40815 ## If we have a custom action on failure, don't print errors, but
40816 ## do set a variable so people can do so.
ffa762ff 40817 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40818
40819 fi
40820
40821
40822
40823 else
40824 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40825 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40826 fi
40827 fi
40828
40829 if test $succeeded = yes; then
40830
c92ad099 40831 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
40832 cat >>confdefs.h <<\_ACEOF
40833#define wxUSE_LIBGNOMEPRINT 1
40834_ACEOF
40835
40836
40837 else
40838
40839 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
40840echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
40841 wxUSE_LIBGNOMEPRINT="no"
40842
40843
40844 fi
40845
40846 fi
40847 fi
40848fi
40849
3565d135
RR
40850if test "$WXGTK20" = 1; then
40851 if test "$wxUSE_LIBHILDON" = "yes" ; then
40852
40853 succeeded=no
40854
40855 if test -z "$PKG_CONFIG"; then
40856 # Extract the first word of "pkg-config", so it can be a program name with args.
40857set dummy pkg-config; ac_word=$2
40858echo "$as_me:$LINENO: checking for $ac_word" >&5
40859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40860if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40861 echo $ECHO_N "(cached) $ECHO_C" >&6
40862else
40863 case $PKG_CONFIG in
40864 [\\/]* | ?:[\\/]*)
40865 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40866 ;;
40867 *)
40868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40869for as_dir in $PATH
40870do
40871 IFS=$as_save_IFS
40872 test -z "$as_dir" && as_dir=.
40873 for ac_exec_ext in '' $ac_executable_extensions; do
40874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40875 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40877 break 2
40878 fi
40879done
40880done
40881
40882 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40883 ;;
40884esac
40885fi
40886PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40887
40888if test -n "$PKG_CONFIG"; then
40889 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40890echo "${ECHO_T}$PKG_CONFIG" >&6
40891else
40892 echo "$as_me:$LINENO: result: no" >&5
40893echo "${ECHO_T}no" >&6
40894fi
40895
40896 fi
40897
40898 if test "$PKG_CONFIG" = "no" ; then
40899 echo "*** The pkg-config script could not be found. Make sure it is"
40900 echo "*** in your path, or set the PKG_CONFIG environment variable"
40901 echo "*** to the full path to pkg-config."
40902 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40903 else
40904 PKG_CONFIG_MIN_VERSION=0.9.0
40905 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40906 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
40907echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
40908
40909 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
40910 echo "$as_me:$LINENO: result: yes" >&5
40911echo "${ECHO_T}yes" >&6
40912 succeeded=yes
40913
40914 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
40915echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
40916 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
40917 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
40918echo "${ECHO_T}$HILDON_CFLAGS" >&6
40919
40920 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
40921echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
40922 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
40923 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
40924echo "${ECHO_T}$HILDON_LIBS" >&6
40925 else
40926 HILDON_CFLAGS=""
40927 HILDON_LIBS=""
40928 ## If we have a custom action on failure, don't print errors, but
40929 ## do set a variable so people can do so.
40930 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
40931
40932 fi
40933
40934
40935
40936 else
40937 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40938 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40939 fi
40940 fi
40941
40942 if test $succeeded = yes; then
40943
40944 EXTRALIBS_HILDON="$HILDON_LIBS"
40945 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
40946 cat >>confdefs.h <<\_ACEOF
40947#define wxUSE_LIBHILDON 1
40948_ACEOF
40949
40950
40951 else
40952
40953 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
40954echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
40955 wxUSE_LIBHILDON="no"
40956
40957
40958 fi
40959
40960 fi
40961fi
d1c38808 40962
a848cd7e
SC
40963if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
40964 cat >>confdefs.h <<\_ACEOF
40965#define wxUSE_CMDLINE_PARSER 1
40966_ACEOF
40967
40968fi
40969
40970if test "$wxUSE_STOPWATCH" = "yes"; then
40971 cat >>confdefs.h <<\_ACEOF
40972#define wxUSE_STOPWATCH 1
40973_ACEOF
40974
40975fi
40976
40977if test "$wxUSE_DATETIME" = "yes"; then
40978 cat >>confdefs.h <<\_ACEOF
40979#define wxUSE_DATETIME 1
40980_ACEOF
40981
40982fi
40983
40984if test "$wxUSE_FILE" = "yes"; then
40985 cat >>confdefs.h <<\_ACEOF
40986#define wxUSE_FILE 1
40987_ACEOF
40988
40989fi
40990
40991if test "$wxUSE_FFILE" = "yes"; then
40992 cat >>confdefs.h <<\_ACEOF
40993#define wxUSE_FFILE 1
40994_ACEOF
40995
40996fi
40997
40998if test "$wxUSE_FILESYSTEM" = "yes"; then
40999 cat >>confdefs.h <<\_ACEOF
41000#define wxUSE_FILESYSTEM 1
41001_ACEOF
41002
41003fi
41004
41005if test "$wxUSE_FS_ZIP" = "yes"; then
41006 cat >>confdefs.h <<\_ACEOF
41007#define wxUSE_FS_ZIP 1
41008_ACEOF
41009
41010fi
41011
9e8e867f 41012if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41013 cat >>confdefs.h <<\_ACEOF
9e8e867f 41014#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41015_ACEOF
41016
41017fi
41018
41019if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41020 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41021 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41022echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41023 elif test "$wxUSE_ZLIB" = "no"; then
41024 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41025echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41026 else
41027 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41028#define wxUSE_ZIPSTREAM 1
41029_ACEOF
41030
81f90336 41031 fi
a848cd7e
SC
41032fi
41033
a848cd7e 41034if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41035 if test "$USE_UNIX" != 1; then
41036 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41037echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41038 wxUSE_ON_FATAL_EXCEPTION=no
41039 else
41040 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41041#define wxUSE_ON_FATAL_EXCEPTION 1
41042_ACEOF
41043
18228ab4 41044 fi
a848cd7e
SC
41045fi
41046
eaff0f0d
VZ
41047if test "$wxUSE_STACKWALKER" = "yes"; then
41048 cat >>confdefs.h <<\_ACEOF
41049#define wxUSE_STACKWALKER 1
41050_ACEOF
41051
41052fi
41053
36b6448c 41054if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41055 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41056 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41057echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41058 wxUSE_DEBUGREPORT=no
41059 else
41060 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41061#define wxUSE_DEBUGREPORT 1
41062_ACEOF
41063
21dfc162
MW
41064 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41066 fi
dfe0c803 41067 fi
36b6448c
VZ
41068fi
41069
a848cd7e
SC
41070if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41071 cat >>confdefs.h <<\_ACEOF
41072#define wxUSE_SNGLINST_CHECKER 1
41073_ACEOF
41074
41075fi
41076
41077if test "$wxUSE_BUSYINFO" = "yes"; then
41078 cat >>confdefs.h <<\_ACEOF
41079#define wxUSE_BUSYINFO 1
41080_ACEOF
41081
41082fi
41083
41084if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41085 cat >>confdefs.h <<\_ACEOF
41086#define wxUSE_STD_IOSTREAM 1
41087_ACEOF
41088
41089fi
41090
59746b65
MW
41091if test "$wxUSE_STD_STRING" = "yes"; then
41092 cat >>confdefs.h <<\_ACEOF
41093#define wxUSE_STD_STRING 1
41094_ACEOF
41095
41096fi
41097
07158944
VZ
41098if test "$wxUSE_STDPATHS" = "yes"; then
41099 cat >>confdefs.h <<\_ACEOF
41100#define wxUSE_STDPATHS 1
41101_ACEOF
41102
41103fi
41104
a848cd7e
SC
41105if test "$wxUSE_TEXTBUFFER" = "yes"; then
41106 cat >>confdefs.h <<\_ACEOF
41107#define wxUSE_TEXTBUFFER 1
41108_ACEOF
41109
41110fi
41111
41112if test "$wxUSE_TEXTFILE" = "yes"; then
41113 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41114 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41115echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41116 else
41117 cat >>confdefs.h <<\_ACEOF
41118#define wxUSE_TEXTFILE 1
41119_ACEOF
41120
41121 fi
41122fi
41123
41124if test "$wxUSE_CONFIG" = "yes" ; then
41125 if test "$wxUSE_TEXTFILE" != "yes"; then
41126 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41127echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41128 else
41129 cat >>confdefs.h <<\_ACEOF
41130#define wxUSE_CONFIG 1
89be85c2
VS
41131_ACEOF
41132
41133 cat >>confdefs.h <<\_ACEOF
41134#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41135_ACEOF
41136
41137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41138 fi
41139fi
41140
41141if test "$wxUSE_INTL" = "yes" ; then
41142 if test "$wxUSE_FILE" != "yes"; then
41143 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41144echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41145 else
41146 cat >>confdefs.h <<\_ACEOF
41147#define wxUSE_INTL 1
41148_ACEOF
41149
41150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41151 GUIDIST="$GUIDIST INTL_DIST"
41152 fi
41153fi
41154
41155if test "$wxUSE_LOG" = "yes"; then
41156 cat >>confdefs.h <<\_ACEOF
41157#define wxUSE_LOG 1
41158_ACEOF
41159
41160
41161 if test "$wxUSE_LOGGUI" = "yes"; then
41162 cat >>confdefs.h <<\_ACEOF
41163#define wxUSE_LOGGUI 1
41164_ACEOF
41165
41166 fi
41167
41168 if test "$wxUSE_LOGWINDOW" = "yes"; then
41169 cat >>confdefs.h <<\_ACEOF
41170#define wxUSE_LOGWINDOW 1
41171_ACEOF
41172
41173 fi
41174
41175 if test "$wxUSE_LOGDIALOG" = "yes"; then
41176 cat >>confdefs.h <<\_ACEOF
41177#define wxUSE_LOG_DIALOG 1
41178_ACEOF
41179
41180 fi
0b78747f
MW
41181
41182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41183fi
41184
41185if test "$wxUSE_LONGLONG" = "yes"; then
41186 cat >>confdefs.h <<\_ACEOF
41187#define wxUSE_LONGLONG 1
41188_ACEOF
41189
41190fi
41191
41192if test "$wxUSE_GEOMETRY" = "yes"; then
41193 cat >>confdefs.h <<\_ACEOF
41194#define wxUSE_GEOMETRY 1
41195_ACEOF
41196
41197fi
41198
a848cd7e
SC
41199if test "$wxUSE_STREAMS" = "yes" ; then
41200 cat >>confdefs.h <<\_ACEOF
41201#define wxUSE_STREAMS 1
41202_ACEOF
41203
41204fi
41205
41206
41207if test "$wxUSE_DATETIME" = "yes"; then
41208
41209for ac_func in strptime
41210do
41211as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41212echo "$as_me:$LINENO: checking for $ac_func" >&5
41213echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41214if eval "test \"\${$as_ac_var+set}\" = set"; then
41215 echo $ECHO_N "(cached) $ECHO_C" >&6
41216else
41217 cat >conftest.$ac_ext <<_ACEOF
41218/* confdefs.h. */
41219_ACEOF
41220cat confdefs.h >>conftest.$ac_ext
41221cat >>conftest.$ac_ext <<_ACEOF
41222/* end confdefs.h. */
ac1cb8d3
VS
41223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41225#define $ac_func innocuous_$ac_func
41226
a848cd7e
SC
41227/* System header to define __stub macros and hopefully few prototypes,
41228 which can conflict with char $ac_func (); below.
41229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41230 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41231
a848cd7e
SC
41232#ifdef __STDC__
41233# include <limits.h>
41234#else
41235# include <assert.h>
41236#endif
ac1cb8d3
VS
41237
41238#undef $ac_func
41239
a848cd7e
SC
41240/* Override any gcc2 internal prototype to avoid an error. */
41241#ifdef __cplusplus
41242extern "C"
41243{
41244#endif
41245/* We use char because int might match the return type of a gcc2
41246 builtin and then its argument prototype would still apply. */
41247char $ac_func ();
41248/* The GNU C library defines this for functions which it implements
41249 to always fail with ENOSYS. Some functions are actually named
41250 something starting with __ and the normal name is an alias. */
41251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41252choke me
41253#else
41254char (*f) () = $ac_func;
41255#endif
41256#ifdef __cplusplus
41257}
41258#endif
41259
41260int
41261main ()
41262{
41263return f != $ac_func;
41264 ;
41265 return 0;
41266}
41267_ACEOF
41268rm -f conftest.$ac_objext conftest$ac_exeext
41269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41270 (eval $ac_link) 2>conftest.er1
a848cd7e 41271 ac_status=$?
ac1cb8d3
VS
41272 grep -v '^ *+' conftest.er1 >conftest.err
41273 rm -f conftest.er1
41274 cat conftest.err >&5
a848cd7e
SC
41275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41276 (exit $ac_status); } &&
3565d135
RR
41277 { ac_try='test -z "$ac_c_werror_flag"
41278 || test ! -s conftest.err'
ac1cb8d3
VS
41279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41280 (eval $ac_try) 2>&5
41281 ac_status=$?
41282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41283 (exit $ac_status); }; } &&
41284 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41286 (eval $ac_try) 2>&5
41287 ac_status=$?
41288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41289 (exit $ac_status); }; }; then
41290 eval "$as_ac_var=yes"
41291else
41292 echo "$as_me: failed program was:" >&5
41293sed 's/^/| /' conftest.$ac_ext >&5
41294
41295eval "$as_ac_var=no"
41296fi
ac1cb8d3
VS
41297rm -f conftest.err conftest.$ac_objext \
41298 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41299fi
41300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41301echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41302if test `eval echo '${'$as_ac_var'}'` = yes; then
41303 cat >>confdefs.h <<_ACEOF
41304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41305_ACEOF
41306
41307fi
41308done
41309
f536f005
VZ
41310 if test "$ac_cv_func_strptime" = "yes"; then
41311 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41312echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41313if test "${wx_cv_func_strptime_decl+set}" = set; then
41314 echo $ECHO_N "(cached) $ECHO_C" >&6
41315else
41316
41317
41318
41319 ac_ext=cc
41320ac_cpp='$CXXCPP $CPPFLAGS'
41321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41324
41325 cat >conftest.$ac_ext <<_ACEOF
41326/* confdefs.h. */
41327_ACEOF
41328cat confdefs.h >>conftest.$ac_ext
41329cat >>conftest.$ac_ext <<_ACEOF
41330/* end confdefs.h. */
41331
41332 #include <time.h>
41333
41334int
41335main ()
41336{
41337
41338 struct tm t;
41339 strptime("foo", "bar", &t);
41340
41341 ;
41342 return 0;
41343}
41344_ACEOF
41345rm -f conftest.$ac_objext
41346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41347 (eval $ac_compile) 2>conftest.er1
41348 ac_status=$?
41349 grep -v '^ *+' conftest.er1 >conftest.err
41350 rm -f conftest.er1
41351 cat conftest.err >&5
41352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41353 (exit $ac_status); } &&
3565d135
RR
41354 { ac_try='test -z "$ac_cxx_werror_flag"
41355 || test ! -s conftest.err'
f536f005
VZ
41356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41357 (eval $ac_try) 2>&5
41358 ac_status=$?
41359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41360 (exit $ac_status); }; } &&
41361 { ac_try='test -s conftest.$ac_objext'
41362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41363 (eval $ac_try) 2>&5
41364 ac_status=$?
41365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41366 (exit $ac_status); }; }; then
41367 wx_cv_func_strptime_decl=yes
41368else
41369 echo "$as_me: failed program was:" >&5
41370sed 's/^/| /' conftest.$ac_ext >&5
41371
41372wx_cv_func_strptime_decl=no
41373
41374fi
41375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41376 ac_ext=c
41377ac_cpp='$CPP $CPPFLAGS'
41378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41380ac_compiler_gnu=$ac_cv_c_compiler_gnu
41381
41382
41383
41384fi
41385echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41386echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41387 fi
41388 if test "$wx_cv_func_strptime_decl" = "yes"; then
41389 cat >>confdefs.h <<\_ACEOF
41390#define HAVE_STRPTIME_DECL 1
41391_ACEOF
41392
41393 fi
a848cd7e
SC
41394
41395 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41396echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41397if test "${wx_cv_var_timezone+set}" = set; then
41398 echo $ECHO_N "(cached) $ECHO_C" >&6
41399else
41400
41401 cat >conftest.$ac_ext <<_ACEOF
41402/* confdefs.h. */
41403_ACEOF
41404cat confdefs.h >>conftest.$ac_ext
41405cat >>conftest.$ac_ext <<_ACEOF
41406/* end confdefs.h. */
41407
41408 #include <time.h>
41409
41410int
41411main ()
41412{
41413
41414 int tz;
41415 tz = timezone;
41416
41417 ;
41418 return 0;
41419}
41420_ACEOF
41421rm -f conftest.$ac_objext
41422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41423 (eval $ac_compile) 2>conftest.er1
a848cd7e 41424 ac_status=$?
ac1cb8d3
VS
41425 grep -v '^ *+' conftest.er1 >conftest.err
41426 rm -f conftest.er1
41427 cat conftest.err >&5
a848cd7e
SC
41428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41429 (exit $ac_status); } &&
3565d135
RR
41430 { ac_try='test -z "$ac_c_werror_flag"
41431 || test ! -s conftest.err'
ac1cb8d3
VS
41432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41433 (eval $ac_try) 2>&5
41434 ac_status=$?
41435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41436 (exit $ac_status); }; } &&
41437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41439 (eval $ac_try) 2>&5
41440 ac_status=$?
41441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41442 (exit $ac_status); }; }; then
41443
41444 wx_cv_var_timezone=timezone
41445
41446else
41447 echo "$as_me: failed program was:" >&5
41448sed 's/^/| /' conftest.$ac_ext >&5
41449
41450
41451 cat >conftest.$ac_ext <<_ACEOF
41452/* confdefs.h. */
41453_ACEOF
41454cat confdefs.h >>conftest.$ac_ext
41455cat >>conftest.$ac_ext <<_ACEOF
41456/* end confdefs.h. */
41457
41458 #include <time.h>
41459
41460int
41461main ()
41462{
41463
41464 int tz;
41465 tz = _timezone;
41466
41467 ;
41468 return 0;
41469}
41470_ACEOF
41471rm -f conftest.$ac_objext
41472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41473 (eval $ac_compile) 2>conftest.er1
a848cd7e 41474 ac_status=$?
ac1cb8d3
VS
41475 grep -v '^ *+' conftest.er1 >conftest.err
41476 rm -f conftest.er1
41477 cat conftest.err >&5
a848cd7e
SC
41478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41479 (exit $ac_status); } &&
3565d135
RR
41480 { ac_try='test -z "$ac_c_werror_flag"
41481 || test ! -s conftest.err'
ac1cb8d3
VS
41482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41483 (eval $ac_try) 2>&5
41484 ac_status=$?
41485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41486 (exit $ac_status); }; } &&
41487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41489 (eval $ac_try) 2>&5
41490 ac_status=$?
41491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492 (exit $ac_status); }; }; then
41493
41494 wx_cv_var_timezone=_timezone
41495
41496else
41497 echo "$as_me: failed program was:" >&5
41498sed 's/^/| /' conftest.$ac_ext >&5
41499
41500
41501 cat >conftest.$ac_ext <<_ACEOF
41502/* confdefs.h. */
41503_ACEOF
41504cat confdefs.h >>conftest.$ac_ext
41505cat >>conftest.$ac_ext <<_ACEOF
41506/* end confdefs.h. */
41507
41508 #include <time.h>
41509
41510int
41511main ()
41512{
41513
41514 int tz;
41515 tz = __timezone;
41516
41517 ;
41518 return 0;
41519}
41520_ACEOF
41521rm -f conftest.$ac_objext
41522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41523 (eval $ac_compile) 2>conftest.er1
a848cd7e 41524 ac_status=$?
ac1cb8d3
VS
41525 grep -v '^ *+' conftest.er1 >conftest.err
41526 rm -f conftest.er1
41527 cat conftest.err >&5
a848cd7e
SC
41528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41529 (exit $ac_status); } &&
3565d135
RR
41530 { ac_try='test -z "$ac_c_werror_flag"
41531 || test ! -s conftest.err'
ac1cb8d3
VS
41532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41533 (eval $ac_try) 2>&5
41534 ac_status=$?
41535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41536 (exit $ac_status); }; } &&
41537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41539 (eval $ac_try) 2>&5
41540 ac_status=$?
41541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542 (exit $ac_status); }; }; then
41543
41544 wx_cv_var_timezone=__timezone
41545
41546else
41547 echo "$as_me: failed program was:" >&5
41548sed 's/^/| /' conftest.$ac_ext >&5
41549
41550
41551 if test "$USE_DOS" = 0 ; then
41552 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41553echo "$as_me: WARNING: no timezone variable" >&2;}
41554 fi
41555
41556
41557fi
ac1cb8d3 41558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41559
41560
41561fi
ac1cb8d3 41562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41563
41564
41565fi
ac1cb8d3 41566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41567
41568
41569fi
41570echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41571echo "${ECHO_T}$wx_cv_var_timezone" >&6
41572
41573 if test "x$wx_cv_var_timezone" != x ; then
41574 cat >>confdefs.h <<_ACEOF
41575#define WX_TIMEZONE $wx_cv_var_timezone
41576_ACEOF
41577
41578 fi
41579
41580
41581for ac_func in localtime
41582do
41583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41584echo "$as_me:$LINENO: checking for $ac_func" >&5
41585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41586if eval "test \"\${$as_ac_var+set}\" = set"; then
41587 echo $ECHO_N "(cached) $ECHO_C" >&6
41588else
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. */
ac1cb8d3
VS
41595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41597#define $ac_func innocuous_$ac_func
41598
a848cd7e
SC
41599/* System header to define __stub macros and hopefully few prototypes,
41600 which can conflict with char $ac_func (); below.
41601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41603
a848cd7e
SC
41604#ifdef __STDC__
41605# include <limits.h>
41606#else
41607# include <assert.h>
41608#endif
ac1cb8d3
VS
41609
41610#undef $ac_func
41611
a848cd7e
SC
41612/* Override any gcc2 internal prototype to avoid an error. */
41613#ifdef __cplusplus
41614extern "C"
41615{
41616#endif
41617/* We use char because int might match the return type of a gcc2
41618 builtin and then its argument prototype would still apply. */
41619char $ac_func ();
41620/* The GNU C library defines this for functions which it implements
41621 to always fail with ENOSYS. Some functions are actually named
41622 something starting with __ and the normal name is an alias. */
41623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41624choke me
41625#else
41626char (*f) () = $ac_func;
41627#endif
41628#ifdef __cplusplus
41629}
41630#endif
41631
41632int
41633main ()
41634{
41635return f != $ac_func;
41636 ;
41637 return 0;
41638}
41639_ACEOF
41640rm -f conftest.$ac_objext conftest$ac_exeext
41641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41642 (eval $ac_link) 2>conftest.er1
a848cd7e 41643 ac_status=$?
ac1cb8d3
VS
41644 grep -v '^ *+' conftest.er1 >conftest.err
41645 rm -f conftest.er1
41646 cat conftest.err >&5
a848cd7e
SC
41647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41648 (exit $ac_status); } &&
3565d135
RR
41649 { ac_try='test -z "$ac_c_werror_flag"
41650 || test ! -s conftest.err'
ac1cb8d3
VS
41651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41652 (eval $ac_try) 2>&5
41653 ac_status=$?
41654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41655 (exit $ac_status); }; } &&
41656 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41658 (eval $ac_try) 2>&5
41659 ac_status=$?
41660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41661 (exit $ac_status); }; }; then
41662 eval "$as_ac_var=yes"
41663else
41664 echo "$as_me: failed program was:" >&5
41665sed 's/^/| /' conftest.$ac_ext >&5
41666
41667eval "$as_ac_var=no"
41668fi
ac1cb8d3
VS
41669rm -f conftest.err conftest.$ac_objext \
41670 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41671fi
41672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41673echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41674if test `eval echo '${'$as_ac_var'}'` = yes; then
41675 cat >>confdefs.h <<_ACEOF
41676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41677_ACEOF
41678
41679fi
41680done
41681
41682
41683 if test "$ac_cv_func_localtime" = "yes"; then
41684 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41685echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41686if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41687 echo $ECHO_N "(cached) $ECHO_C" >&6
41688else
41689
41690 cat >conftest.$ac_ext <<_ACEOF
41691/* confdefs.h. */
41692_ACEOF
41693cat confdefs.h >>conftest.$ac_ext
41694cat >>conftest.$ac_ext <<_ACEOF
41695/* end confdefs.h. */
41696
41697 #include <time.h>
41698
41699int
41700main ()
41701{
41702
41703 struct tm tm;
41704 tm.tm_gmtoff++;
41705
41706 ;
41707 return 0;
41708}
41709_ACEOF
41710rm -f conftest.$ac_objext
41711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41712 (eval $ac_compile) 2>conftest.er1
a848cd7e 41713 ac_status=$?
ac1cb8d3
VS
41714 grep -v '^ *+' conftest.er1 >conftest.err
41715 rm -f conftest.er1
41716 cat conftest.err >&5
a848cd7e
SC
41717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41718 (exit $ac_status); } &&
3565d135
RR
41719 { ac_try='test -z "$ac_c_werror_flag"
41720 || test ! -s conftest.err'
ac1cb8d3
VS
41721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41722 (eval $ac_try) 2>&5
41723 ac_status=$?
41724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41725 (exit $ac_status); }; } &&
41726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41728 (eval $ac_try) 2>&5
41729 ac_status=$?
41730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41731 (exit $ac_status); }; }; then
41732
41733 wx_cv_struct_tm_has_gmtoff=yes
41734
41735else
41736 echo "$as_me: failed program was:" >&5
41737sed 's/^/| /' conftest.$ac_ext >&5
41738
41739wx_cv_struct_tm_has_gmtoff=no
41740
41741fi
ac1cb8d3 41742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41743
41744fi
41745echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
41746echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
41747 fi
41748
41749 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
41750 cat >>confdefs.h <<\_ACEOF
41751#define WX_GMTOFF_IN_TM 1
41752_ACEOF
41753
41754 fi
41755
41756
41757
41758for ac_func in gettimeofday ftime
41759do
41760as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41761echo "$as_me:$LINENO: checking for $ac_func" >&5
41762echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41763if eval "test \"\${$as_ac_var+set}\" = set"; then
41764 echo $ECHO_N "(cached) $ECHO_C" >&6
41765else
41766 cat >conftest.$ac_ext <<_ACEOF
41767/* confdefs.h. */
41768_ACEOF
41769cat confdefs.h >>conftest.$ac_ext
41770cat >>conftest.$ac_ext <<_ACEOF
41771/* end confdefs.h. */
ac1cb8d3
VS
41772/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41774#define $ac_func innocuous_$ac_func
41775
a848cd7e
SC
41776/* System header to define __stub macros and hopefully few prototypes,
41777 which can conflict with char $ac_func (); below.
41778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41779 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41780
a848cd7e
SC
41781#ifdef __STDC__
41782# include <limits.h>
41783#else
41784# include <assert.h>
41785#endif
ac1cb8d3
VS
41786
41787#undef $ac_func
41788
a848cd7e
SC
41789/* Override any gcc2 internal prototype to avoid an error. */
41790#ifdef __cplusplus
41791extern "C"
41792{
41793#endif
41794/* We use char because int might match the return type of a gcc2
41795 builtin and then its argument prototype would still apply. */
41796char $ac_func ();
41797/* The GNU C library defines this for functions which it implements
41798 to always fail with ENOSYS. Some functions are actually named
41799 something starting with __ and the normal name is an alias. */
41800#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41801choke me
41802#else
41803char (*f) () = $ac_func;
41804#endif
41805#ifdef __cplusplus
41806}
41807#endif
41808
41809int
41810main ()
41811{
41812return f != $ac_func;
41813 ;
41814 return 0;
41815}
41816_ACEOF
41817rm -f conftest.$ac_objext conftest$ac_exeext
41818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41819 (eval $ac_link) 2>conftest.er1
a848cd7e 41820 ac_status=$?
ac1cb8d3
VS
41821 grep -v '^ *+' conftest.er1 >conftest.err
41822 rm -f conftest.er1
41823 cat conftest.err >&5
a848cd7e
SC
41824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41825 (exit $ac_status); } &&
3565d135
RR
41826 { ac_try='test -z "$ac_c_werror_flag"
41827 || test ! -s conftest.err'
ac1cb8d3
VS
41828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41829 (eval $ac_try) 2>&5
41830 ac_status=$?
41831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41832 (exit $ac_status); }; } &&
41833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41835 (eval $ac_try) 2>&5
41836 ac_status=$?
41837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41838 (exit $ac_status); }; }; then
41839 eval "$as_ac_var=yes"
41840else
41841 echo "$as_me: failed program was:" >&5
41842sed 's/^/| /' conftest.$ac_ext >&5
41843
41844eval "$as_ac_var=no"
41845fi
ac1cb8d3
VS
41846rm -f conftest.err conftest.$ac_objext \
41847 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41848fi
41849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41850echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41851if test `eval echo '${'$as_ac_var'}'` = yes; then
41852 cat >>confdefs.h <<_ACEOF
41853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41854_ACEOF
41855 break
41856fi
41857done
41858
41859
41860 if test "$ac_cv_func_gettimeofday" = "yes"; then
41861 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
41862echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
41863if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
41864 echo $ECHO_N "(cached) $ECHO_C" >&6
41865else
41866
41867
41868
41869 ac_ext=cc
41870ac_cpp='$CXXCPP $CPPFLAGS'
41871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41874
41875
41876 cat >conftest.$ac_ext <<_ACEOF
41877/* confdefs.h. */
41878_ACEOF
41879cat confdefs.h >>conftest.$ac_ext
41880cat >>conftest.$ac_ext <<_ACEOF
41881/* end confdefs.h. */
41882
41883 #include <sys/time.h>
41884 #include <unistd.h>
41885
41886int
41887main ()
41888{
41889
41890 struct timeval tv;
41891 gettimeofday(&tv, NULL);
41892
41893 ;
41894 return 0;
41895}
41896_ACEOF
41897rm -f conftest.$ac_objext
41898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41899 (eval $ac_compile) 2>conftest.er1
a848cd7e 41900 ac_status=$?
ac1cb8d3
VS
41901 grep -v '^ *+' conftest.er1 >conftest.err
41902 rm -f conftest.er1
41903 cat conftest.err >&5
a848cd7e
SC
41904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41905 (exit $ac_status); } &&
3565d135
RR
41906 { ac_try='test -z "$ac_cxx_werror_flag"
41907 || test ! -s conftest.err'
ac1cb8d3
VS
41908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41909 (eval $ac_try) 2>&5
41910 ac_status=$?
41911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41912 (exit $ac_status); }; } &&
41913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41915 (eval $ac_try) 2>&5
41916 ac_status=$?
41917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41918 (exit $ac_status); }; }; then
41919 wx_cv_func_gettimeofday_has_2_args=yes
41920else
41921 echo "$as_me: failed program was:" >&5
41922sed 's/^/| /' conftest.$ac_ext >&5
41923
41924cat >conftest.$ac_ext <<_ACEOF
41925/* confdefs.h. */
41926_ACEOF
41927cat confdefs.h >>conftest.$ac_ext
41928cat >>conftest.$ac_ext <<_ACEOF
41929/* end confdefs.h. */
41930
41931 #include <sys/time.h>
41932 #include <unistd.h>
41933
41934int
41935main ()
41936{
41937
41938 struct timeval tv;
41939 gettimeofday(&tv);
41940
41941 ;
41942 return 0;
41943}
41944_ACEOF
41945rm -f conftest.$ac_objext
41946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41947 (eval $ac_compile) 2>conftest.er1
a848cd7e 41948 ac_status=$?
ac1cb8d3
VS
41949 grep -v '^ *+' conftest.er1 >conftest.err
41950 rm -f conftest.er1
41951 cat conftest.err >&5
a848cd7e
SC
41952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953 (exit $ac_status); } &&
3565d135
RR
41954 { ac_try='test -z "$ac_cxx_werror_flag"
41955 || test ! -s conftest.err'
ac1cb8d3
VS
41956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41957 (eval $ac_try) 2>&5
41958 ac_status=$?
41959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41960 (exit $ac_status); }; } &&
41961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41963 (eval $ac_try) 2>&5
41964 ac_status=$?
41965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41966 (exit $ac_status); }; }; then
41967 wx_cv_func_gettimeofday_has_2_args=no
41968else
41969 echo "$as_me: failed program was:" >&5
41970sed 's/^/| /' conftest.$ac_ext >&5
41971
41972
41973 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
41974echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
41975 wx_cv_func_gettimeofday_has_2_args=unknown
41976
41977
41978fi
ac1cb8d3 41979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41980
41981fi
ac1cb8d3 41982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41983 ac_ext=c
41984ac_cpp='$CPP $CPPFLAGS'
41985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41987ac_compiler_gnu=$ac_cv_c_compiler_gnu
41988
41989
41990fi
41991echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
41992echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
41993
41994 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
41995 cat >>confdefs.h <<\_ACEOF
41996#define WX_GETTIMEOFDAY_NO_TZ 1
41997_ACEOF
41998
41999 fi
42000 fi
42001
42002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42003fi
42004
42005
42006if test "$wxUSE_SOCKETS" = "yes"; then
42007 if test "$wxUSE_MGL" = "1"; then
42008 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42009echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42010 wxUSE_SOCKETS="no"
42011 fi
42012fi
42013
42014if test "$wxUSE_SOCKETS" = "yes"; then
42015 if test "$TOOLKIT" != "MSW"; then
42016 echo "$as_me:$LINENO: checking for socket" >&5
42017echo $ECHO_N "checking for socket... $ECHO_C" >&6
42018if test "${ac_cv_func_socket+set}" = set; then
42019 echo $ECHO_N "(cached) $ECHO_C" >&6
42020else
42021 cat >conftest.$ac_ext <<_ACEOF
42022/* confdefs.h. */
42023_ACEOF
42024cat confdefs.h >>conftest.$ac_ext
42025cat >>conftest.$ac_ext <<_ACEOF
42026/* end confdefs.h. */
ac1cb8d3
VS
42027/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42029#define socket innocuous_socket
42030
a848cd7e
SC
42031/* System header to define __stub macros and hopefully few prototypes,
42032 which can conflict with char socket (); below.
42033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42034 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42035
a848cd7e
SC
42036#ifdef __STDC__
42037# include <limits.h>
42038#else
42039# include <assert.h>
42040#endif
ac1cb8d3
VS
42041
42042#undef socket
42043
a848cd7e
SC
42044/* Override any gcc2 internal prototype to avoid an error. */
42045#ifdef __cplusplus
42046extern "C"
42047{
42048#endif
42049/* We use char because int might match the return type of a gcc2
42050 builtin and then its argument prototype would still apply. */
42051char socket ();
42052/* The GNU C library defines this for functions which it implements
42053 to always fail with ENOSYS. Some functions are actually named
42054 something starting with __ and the normal name is an alias. */
42055#if defined (__stub_socket) || defined (__stub___socket)
42056choke me
42057#else
42058char (*f) () = socket;
42059#endif
42060#ifdef __cplusplus
42061}
42062#endif
42063
42064int
42065main ()
42066{
42067return f != socket;
42068 ;
42069 return 0;
42070}
42071_ACEOF
42072rm -f conftest.$ac_objext conftest$ac_exeext
42073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42074 (eval $ac_link) 2>conftest.er1
a848cd7e 42075 ac_status=$?
ac1cb8d3
VS
42076 grep -v '^ *+' conftest.er1 >conftest.err
42077 rm -f conftest.er1
42078 cat conftest.err >&5
a848cd7e
SC
42079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42080 (exit $ac_status); } &&
3565d135
RR
42081 { ac_try='test -z "$ac_c_werror_flag"
42082 || test ! -s conftest.err'
ac1cb8d3
VS
42083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42084 (eval $ac_try) 2>&5
42085 ac_status=$?
42086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42087 (exit $ac_status); }; } &&
42088 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42090 (eval $ac_try) 2>&5
42091 ac_status=$?
42092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42093 (exit $ac_status); }; }; then
42094 ac_cv_func_socket=yes
42095else
42096 echo "$as_me: failed program was:" >&5
42097sed 's/^/| /' conftest.$ac_ext >&5
42098
42099ac_cv_func_socket=no
42100fi
ac1cb8d3
VS
42101rm -f conftest.err conftest.$ac_objext \
42102 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42103fi
42104echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42105echo "${ECHO_T}$ac_cv_func_socket" >&6
42106if test $ac_cv_func_socket = yes; then
42107 :
42108else
42109
42110 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42111echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42112if test "${ac_cv_lib_socket_socket+set}" = set; then
42113 echo $ECHO_N "(cached) $ECHO_C" >&6
42114else
42115 ac_check_lib_save_LIBS=$LIBS
42116LIBS="-lsocket $LIBS"
42117cat >conftest.$ac_ext <<_ACEOF
42118/* confdefs.h. */
42119_ACEOF
42120cat confdefs.h >>conftest.$ac_ext
42121cat >>conftest.$ac_ext <<_ACEOF
42122/* end confdefs.h. */
42123
42124/* Override any gcc2 internal prototype to avoid an error. */
42125#ifdef __cplusplus
42126extern "C"
42127#endif
42128/* We use char because int might match the return type of a gcc2
42129 builtin and then its argument prototype would still apply. */
42130char socket ();
42131int
42132main ()
42133{
42134socket ();
42135 ;
42136 return 0;
42137}
42138_ACEOF
42139rm -f conftest.$ac_objext conftest$ac_exeext
42140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42141 (eval $ac_link) 2>conftest.er1
a848cd7e 42142 ac_status=$?
ac1cb8d3
VS
42143 grep -v '^ *+' conftest.er1 >conftest.err
42144 rm -f conftest.er1
42145 cat conftest.err >&5
a848cd7e
SC
42146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42147 (exit $ac_status); } &&
3565d135
RR
42148 { ac_try='test -z "$ac_c_werror_flag"
42149 || test ! -s conftest.err'
ac1cb8d3
VS
42150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42151 (eval $ac_try) 2>&5
42152 ac_status=$?
42153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42154 (exit $ac_status); }; } &&
42155 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42157 (eval $ac_try) 2>&5
42158 ac_status=$?
42159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42160 (exit $ac_status); }; }; then
42161 ac_cv_lib_socket_socket=yes
42162else
42163 echo "$as_me: failed program was:" >&5
42164sed 's/^/| /' conftest.$ac_ext >&5
42165
42166ac_cv_lib_socket_socket=no
42167fi
ac1cb8d3
VS
42168rm -f conftest.err conftest.$ac_objext \
42169 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42170LIBS=$ac_check_lib_save_LIBS
42171fi
42172echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42173echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42174if test $ac_cv_lib_socket_socket = yes; then
42175 if test "$INET_LINK" != " -lsocket"; then
42176 INET_LINK="$INET_LINK -lsocket"
42177 fi
42178else
42179
42180 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42181echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42182 wxUSE_SOCKETS=no
42183
42184
42185fi
42186
42187
42188
42189fi
42190
42191 fi
42192fi
42193
42194if test "$wxUSE_SOCKETS" = "yes" ; then
42195 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
42196 ac_ext=cc
42197ac_cpp='$CXXCPP $CPPFLAGS'
42198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42201
42202 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42203echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42204if test "${wx_cv_type_getsockname3+set}" = set; then
42205 echo $ECHO_N "(cached) $ECHO_C" >&6
42206else
42207
42208 cat >conftest.$ac_ext <<_ACEOF
42209/* confdefs.h. */
42210_ACEOF
42211cat confdefs.h >>conftest.$ac_ext
42212cat >>conftest.$ac_ext <<_ACEOF
42213/* end confdefs.h. */
42214
42215 #include <sys/types.h>
42216 #include <sys/socket.h>
42217
42218int
42219main ()
42220{
42221
42222 socklen_t len;
42223 getsockname(0, 0, &len);
42224
42225 ;
42226 return 0;
42227}
42228_ACEOF
42229rm -f conftest.$ac_objext
42230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42231 (eval $ac_compile) 2>conftest.er1
a848cd7e 42232 ac_status=$?
ac1cb8d3
VS
42233 grep -v '^ *+' conftest.er1 >conftest.err
42234 rm -f conftest.er1
42235 cat conftest.err >&5
a848cd7e
SC
42236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42237 (exit $ac_status); } &&
3565d135
RR
42238 { ac_try='test -z "$ac_cxx_werror_flag"
42239 || test ! -s conftest.err'
ac1cb8d3
VS
42240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42241 (eval $ac_try) 2>&5
42242 ac_status=$?
42243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42244 (exit $ac_status); }; } &&
42245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42247 (eval $ac_try) 2>&5
42248 ac_status=$?
42249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42250 (exit $ac_status); }; }; then
42251 wx_cv_type_getsockname3=socklen_t
42252else
42253 echo "$as_me: failed program was:" >&5
42254sed 's/^/| /' conftest.$ac_ext >&5
42255
42256
6459a506 42257 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42258 if test "$GCC" = yes ; then
c92ad099 42259 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42260 fi
42261
42262 cat >conftest.$ac_ext <<_ACEOF
42263/* confdefs.h. */
42264_ACEOF
42265cat confdefs.h >>conftest.$ac_ext
42266cat >>conftest.$ac_ext <<_ACEOF
42267/* end confdefs.h. */
42268
42269 #include <sys/types.h>
42270 #include <sys/socket.h>
42271
42272int
42273main ()
42274{
42275
42276 size_t len;
42277 getsockname(0, 0, &len);
42278
42279 ;
42280 return 0;
42281}
42282_ACEOF
42283rm -f conftest.$ac_objext
42284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42285 (eval $ac_compile) 2>conftest.er1
a848cd7e 42286 ac_status=$?
ac1cb8d3
VS
42287 grep -v '^ *+' conftest.er1 >conftest.err
42288 rm -f conftest.er1
42289 cat conftest.err >&5
a848cd7e
SC
42290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42291 (exit $ac_status); } &&
3565d135
RR
42292 { ac_try='test -z "$ac_cxx_werror_flag"
42293 || test ! -s conftest.err'
ac1cb8d3
VS
42294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42295 (eval $ac_try) 2>&5
42296 ac_status=$?
42297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42298 (exit $ac_status); }; } &&
42299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42301 (eval $ac_try) 2>&5
42302 ac_status=$?
42303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42304 (exit $ac_status); }; }; then
42305 wx_cv_type_getsockname3=size_t
42306else
42307 echo "$as_me: failed program was:" >&5
42308sed 's/^/| /' conftest.$ac_ext >&5
42309
42310cat >conftest.$ac_ext <<_ACEOF
42311/* confdefs.h. */
42312_ACEOF
42313cat confdefs.h >>conftest.$ac_ext
42314cat >>conftest.$ac_ext <<_ACEOF
42315/* end confdefs.h. */
42316
42317 #include <sys/types.h>
42318 #include <sys/socket.h>
42319
42320int
42321main ()
42322{
42323
42324 int len;
42325 getsockname(0, 0, &len);
42326
42327 ;
42328 return 0;
42329}
42330_ACEOF
42331rm -f conftest.$ac_objext
42332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42333 (eval $ac_compile) 2>conftest.er1
a848cd7e 42334 ac_status=$?
ac1cb8d3
VS
42335 grep -v '^ *+' conftest.er1 >conftest.err
42336 rm -f conftest.er1
42337 cat conftest.err >&5
a848cd7e
SC
42338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42339 (exit $ac_status); } &&
3565d135
RR
42340 { ac_try='test -z "$ac_cxx_werror_flag"
42341 || test ! -s conftest.err'
ac1cb8d3
VS
42342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42343 (eval $ac_try) 2>&5
42344 ac_status=$?
42345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42346 (exit $ac_status); }; } &&
42347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42349 (eval $ac_try) 2>&5
42350 ac_status=$?
42351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42352 (exit $ac_status); }; }; then
42353 wx_cv_type_getsockname3=int
42354else
42355 echo "$as_me: failed program was:" >&5
42356sed 's/^/| /' conftest.$ac_ext >&5
42357
42358wx_cv_type_getsockname3=unknown
42359
42360fi
ac1cb8d3 42361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42362
42363fi
ac1cb8d3 42364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42365
6459a506 42366 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42367
42368
42369fi
ac1cb8d3 42370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42371
42372fi
42373echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42374echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42375
42376 if test "$wx_cv_type_getsockname3" = "unknown"; then
42377 wxUSE_SOCKETS=no
42378 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42379echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42380 else
42381 cat >>confdefs.h <<_ACEOF
9e03e02d 42382#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42383_ACEOF
42384
42385 fi
42386 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42387echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42388if test "${wx_cv_type_getsockopt5+set}" = set; then
42389 echo $ECHO_N "(cached) $ECHO_C" >&6
42390else
42391
42392 cat >conftest.$ac_ext <<_ACEOF
42393/* confdefs.h. */
42394_ACEOF
42395cat confdefs.h >>conftest.$ac_ext
42396cat >>conftest.$ac_ext <<_ACEOF
42397/* end confdefs.h. */
42398
42399 #include <sys/types.h>
42400 #include <sys/socket.h>
42401
42402int
42403main ()
42404{
42405
42406 socklen_t len;
42407 getsockopt(0, 0, 0, 0, &len);
42408
42409 ;
42410 return 0;
42411}
42412_ACEOF
42413rm -f conftest.$ac_objext
42414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42415 (eval $ac_compile) 2>conftest.er1
42416 ac_status=$?
42417 grep -v '^ *+' conftest.er1 >conftest.err
42418 rm -f conftest.er1
42419 cat conftest.err >&5
42420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42421 (exit $ac_status); } &&
3565d135
RR
42422 { ac_try='test -z "$ac_cxx_werror_flag"
42423 || test ! -s conftest.err'
5b674b9d
DE
42424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42425 (eval $ac_try) 2>&5
42426 ac_status=$?
42427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42428 (exit $ac_status); }; } &&
42429 { ac_try='test -s conftest.$ac_objext'
42430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42431 (eval $ac_try) 2>&5
42432 ac_status=$?
42433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42434 (exit $ac_status); }; }; then
42435 wx_cv_type_getsockopt5=socklen_t
42436else
42437 echo "$as_me: failed program was:" >&5
42438sed 's/^/| /' conftest.$ac_ext >&5
42439
42440
6459a506 42441 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42442 if test "$GCC" = yes ; then
c92ad099 42443 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42444 fi
42445
42446 cat >conftest.$ac_ext <<_ACEOF
42447/* confdefs.h. */
42448_ACEOF
42449cat confdefs.h >>conftest.$ac_ext
42450cat >>conftest.$ac_ext <<_ACEOF
42451/* end confdefs.h. */
42452
42453 #include <sys/types.h>
42454 #include <sys/socket.h>
42455
42456int
42457main ()
42458{
42459
42460 size_t len;
42461 getsockopt(0, 0, 0, 0, &len);
42462
42463 ;
42464 return 0;
42465}
42466_ACEOF
42467rm -f conftest.$ac_objext
42468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42469 (eval $ac_compile) 2>conftest.er1
42470 ac_status=$?
42471 grep -v '^ *+' conftest.er1 >conftest.err
42472 rm -f conftest.er1
42473 cat conftest.err >&5
42474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42475 (exit $ac_status); } &&
3565d135
RR
42476 { ac_try='test -z "$ac_cxx_werror_flag"
42477 || test ! -s conftest.err'
5b674b9d
DE
42478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42479 (eval $ac_try) 2>&5
42480 ac_status=$?
42481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42482 (exit $ac_status); }; } &&
42483 { ac_try='test -s conftest.$ac_objext'
42484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42485 (eval $ac_try) 2>&5
42486 ac_status=$?
42487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42488 (exit $ac_status); }; }; then
42489 wx_cv_type_getsockopt5=size_t
42490else
42491 echo "$as_me: failed program was:" >&5
42492sed 's/^/| /' conftest.$ac_ext >&5
42493
42494cat >conftest.$ac_ext <<_ACEOF
42495/* confdefs.h. */
42496_ACEOF
42497cat confdefs.h >>conftest.$ac_ext
42498cat >>conftest.$ac_ext <<_ACEOF
42499/* end confdefs.h. */
42500
42501 #include <sys/types.h>
42502 #include <sys/socket.h>
42503
42504int
42505main ()
42506{
42507
42508 int len;
42509 getsockopt(0, 0, 0, 0, &len);
42510
42511 ;
42512 return 0;
42513}
42514_ACEOF
42515rm -f conftest.$ac_objext
42516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42517 (eval $ac_compile) 2>conftest.er1
42518 ac_status=$?
42519 grep -v '^ *+' conftest.er1 >conftest.err
42520 rm -f conftest.er1
42521 cat conftest.err >&5
42522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42523 (exit $ac_status); } &&
3565d135
RR
42524 { ac_try='test -z "$ac_cxx_werror_flag"
42525 || test ! -s conftest.err'
5b674b9d
DE
42526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42527 (eval $ac_try) 2>&5
42528 ac_status=$?
42529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42530 (exit $ac_status); }; } &&
42531 { ac_try='test -s conftest.$ac_objext'
42532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42533 (eval $ac_try) 2>&5
42534 ac_status=$?
42535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42536 (exit $ac_status); }; }; then
42537 wx_cv_type_getsockopt5=int
42538else
42539 echo "$as_me: failed program was:" >&5
42540sed 's/^/| /' conftest.$ac_ext >&5
42541
42542wx_cv_type_getsockopt5=unknown
42543
42544fi
42545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42546
42547fi
42548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42549
6459a506 42550 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42551
42552
42553fi
42554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42555
42556fi
42557echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42558echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42559
42560 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42561 wxUSE_SOCKETS=no
42562 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42563echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42564 else
42565 cat >>confdefs.h <<_ACEOF
42566#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42567_ACEOF
42568
42569 fi
4d4ff94c
VZ
42570 ac_ext=c
42571ac_cpp='$CPP $CPPFLAGS'
42572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42574ac_compiler_gnu=$ac_cv_c_compiler_gnu
42575
a848cd7e
SC
42576 fi
42577fi
42578
42579if test "$wxUSE_SOCKETS" = "yes" ; then
42580 cat >>confdefs.h <<\_ACEOF
42581#define wxUSE_SOCKETS 1
42582_ACEOF
42583
42584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42585fi
42586
42587if test "$wxUSE_PROTOCOL" = "yes"; then
42588 if test "$wxUSE_SOCKETS" != "yes"; then
42589 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42590echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42591 wxUSE_PROTOCOL=no
42592 fi
42593fi
42594
42595if test "$wxUSE_PROTOCOL" = "yes"; then
42596 cat >>confdefs.h <<\_ACEOF
42597#define wxUSE_PROTOCOL 1
42598_ACEOF
42599
42600
42601 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42602 cat >>confdefs.h <<\_ACEOF
42603#define wxUSE_PROTOCOL_HTTP 1
42604_ACEOF
42605
42606 fi
42607 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42608 cat >>confdefs.h <<\_ACEOF
42609#define wxUSE_PROTOCOL_FTP 1
42610_ACEOF
42611
42612 fi
42613 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42614 cat >>confdefs.h <<\_ACEOF
42615#define wxUSE_PROTOCOL_FILE 1
42616_ACEOF
42617
42618 fi
42619else
42620 if test "$wxUSE_FS_INET" = "yes"; then
42621 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42622echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42623 wxUSE_FS_INET="no"
42624 fi
42625fi
42626
42627if test "$wxUSE_URL" = "yes"; then
42628 if test "$wxUSE_PROTOCOL" != "yes"; then
42629 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42630echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42631 wxUSE_URL=no
42632 fi
42633 if test "$wxUSE_URL" = "yes"; then
42634 cat >>confdefs.h <<\_ACEOF
42635#define wxUSE_URL 1
42636_ACEOF
42637
42638 fi
42639fi
42640
42641if test "$wxUSE_FS_INET" = "yes"; then
42642 cat >>confdefs.h <<\_ACEOF
42643#define wxUSE_FS_INET 1
42644_ACEOF
42645
42646fi
42647
42648
ee45c548
MW
42649if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42650 wxUSE_JOYSTICK=no
42651
42652 if test "$TOOLKIT" = "MSW"; then
42653 wxUSE_JOYSTICK=yes
42654
42655 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42656 if test "$USE_DARWIN" = 1; then
42657 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42658echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
42659 ac_ext=cc
42660ac_cpp='$CXXCPP $CPPFLAGS'
42661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42664
42665 cat >conftest.$ac_ext <<_ACEOF
42666/* confdefs.h. */
42667_ACEOF
42668cat confdefs.h >>conftest.$ac_ext
42669cat >>conftest.$ac_ext <<_ACEOF
42670/* end confdefs.h. */
42671 #include <IOKit/hid/IOHIDLib.h>
42672int
42673main ()
42674{
42675 IOHIDQueueInterface *qi = NULL;
42676 IOHIDCallbackFunction cb = NULL;
42677 qi->setEventCallout(NULL, cb, NULL, NULL);
42678 ;
42679 return 0;
42680}
42681_ACEOF
42682rm -f conftest.$ac_objext
42683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42684 (eval $ac_compile) 2>conftest.er1
42685 ac_status=$?
42686 grep -v '^ *+' conftest.er1 >conftest.err
42687 rm -f conftest.er1
42688 cat conftest.err >&5
42689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42690 (exit $ac_status); } &&
3565d135
RR
42691 { ac_try='test -z "$ac_cxx_werror_flag"
42692 || test ! -s conftest.err'
ee45c548
MW
42693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42694 (eval $ac_try) 2>&5
42695 ac_status=$?
42696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42697 (exit $ac_status); }; } &&
42698 { ac_try='test -s conftest.$ac_objext'
42699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42700 (eval $ac_try) 2>&5
42701 ac_status=$?
42702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42703 (exit $ac_status); }; }; then
42704 wxUSE_JOYSTICK=yes
a848cd7e 42705
ee45c548
MW
42706else
42707 echo "$as_me: failed program was:" >&5
42708sed 's/^/| /' conftest.$ac_ext >&5
42709
42710fi
42711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42712 ac_ext=c
42713ac_cpp='$CPP $CPPFLAGS'
42714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42716ac_compiler_gnu=$ac_cv_c_compiler_gnu
42717
42718 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42719echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42720 fi
42721
42722 else
a848cd7e
SC
42723
42724for ac_header in linux/joystick.h
42725do
42726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42727if eval "test \"\${$as_ac_Header+set}\" = set"; then
42728 echo "$as_me:$LINENO: checking for $ac_header" >&5
42729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42730if eval "test \"\${$as_ac_Header+set}\" = set"; then
42731 echo $ECHO_N "(cached) $ECHO_C" >&6
42732fi
42733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42735else
42736 # Is the header compilable?
42737echo "$as_me:$LINENO: checking $ac_header usability" >&5
42738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42739cat >conftest.$ac_ext <<_ACEOF
42740/* confdefs.h. */
42741_ACEOF
42742cat confdefs.h >>conftest.$ac_ext
42743cat >>conftest.$ac_ext <<_ACEOF
42744/* end confdefs.h. */
42745$ac_includes_default
42746#include <$ac_header>
42747_ACEOF
42748rm -f conftest.$ac_objext
42749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42750 (eval $ac_compile) 2>conftest.er1
a848cd7e 42751 ac_status=$?
ac1cb8d3
VS
42752 grep -v '^ *+' conftest.er1 >conftest.err
42753 rm -f conftest.er1
42754 cat conftest.err >&5
a848cd7e
SC
42755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42756 (exit $ac_status); } &&
3565d135
RR
42757 { ac_try='test -z "$ac_c_werror_flag"
42758 || test ! -s conftest.err'
ac1cb8d3
VS
42759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42760 (eval $ac_try) 2>&5
42761 ac_status=$?
42762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42763 (exit $ac_status); }; } &&
42764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42766 (eval $ac_try) 2>&5
42767 ac_status=$?
42768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42769 (exit $ac_status); }; }; then
42770 ac_header_compiler=yes
42771else
42772 echo "$as_me: failed program was:" >&5
42773sed 's/^/| /' conftest.$ac_ext >&5
42774
42775ac_header_compiler=no
42776fi
ac1cb8d3 42777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42779echo "${ECHO_T}$ac_header_compiler" >&6
42780
42781# Is the header present?
42782echo "$as_me:$LINENO: checking $ac_header presence" >&5
42783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42784cat >conftest.$ac_ext <<_ACEOF
42785/* confdefs.h. */
42786_ACEOF
42787cat confdefs.h >>conftest.$ac_ext
42788cat >>conftest.$ac_ext <<_ACEOF
42789/* end confdefs.h. */
42790#include <$ac_header>
42791_ACEOF
42792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42794 ac_status=$?
42795 grep -v '^ *+' conftest.er1 >conftest.err
42796 rm -f conftest.er1
42797 cat conftest.err >&5
42798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42799 (exit $ac_status); } >/dev/null; then
42800 if test -s conftest.err; then
42801 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 42802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
42803 else
42804 ac_cpp_err=
42805 fi
42806else
42807 ac_cpp_err=yes
42808fi
42809if test -z "$ac_cpp_err"; then
42810 ac_header_preproc=yes
42811else
42812 echo "$as_me: failed program was:" >&5
42813sed 's/^/| /' conftest.$ac_ext >&5
42814
42815 ac_header_preproc=no
42816fi
42817rm -f conftest.err conftest.$ac_ext
42818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42819echo "${ECHO_T}$ac_header_preproc" >&6
42820
42821# So? What about this header?
ac1cb8d3
VS
42822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42823 yes:no: )
a848cd7e
SC
42824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
42826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42828 ac_header_preproc=yes
a848cd7e 42829 ;;
ac1cb8d3 42830 no:yes:* )
a848cd7e
SC
42831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
42833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
42839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
42841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
42843 (
42844 cat <<\_ASBOX
ac1cb8d3
VS
42845## ----------------------------------------- ##
42846## Report this to wx-dev@lists.wxwidgets.org ##
42847## ----------------------------------------- ##
a848cd7e
SC
42848_ASBOX
42849 ) |
42850 sed "s/^/$as_me: WARNING: /" >&2
42851 ;;
42852esac
42853echo "$as_me:$LINENO: checking for $ac_header" >&5
42854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42855if eval "test \"\${$as_ac_Header+set}\" = set"; then
42856 echo $ECHO_N "(cached) $ECHO_C" >&6
42857else
ac1cb8d3 42858 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
42859fi
42860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42862
42863fi
42864if test `eval echo '${'$as_ac_Header'}'` = yes; then
42865 cat >>confdefs.h <<_ACEOF
42866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42867_ACEOF
ee45c548 42868 wxUSE_JOYSTICK=yes
a848cd7e
SC
42869fi
42870
42871done
42872
ee45c548 42873 fi
4cb1d3da 42874
ee45c548
MW
42875 if test "$wxUSE_JOYSTICK" = "yes"; then
42876 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42877#define wxUSE_JOYSTICK 1
42878_ACEOF
42879
ee45c548
MW
42880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
42881 else
42882 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
42883echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
42884 fi
42885fi
42886
42887
42888
42889if test "$wxUSE_FONTMAP" = "yes" ; then
42890 cat >>confdefs.h <<\_ACEOF
42891#define wxUSE_FONTMAP 1
42892_ACEOF
42893
42894fi
42895
42896if test "$wxUSE_UNICODE" = "yes" ; then
42897 cat >>confdefs.h <<\_ACEOF
42898#define wxUSE_UNICODE 1
42899_ACEOF
42900
42901
42902 if test "$USE_WIN32" != 1; then
42903 wxUSE_UNICODE_MSLU=no
42904 fi
42905
42906 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
42907 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
42908echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
42909if test "${ac_cv_lib_unicows_main+set}" = set; then
42910 echo $ECHO_N "(cached) $ECHO_C" >&6
42911else
42912 ac_check_lib_save_LIBS=$LIBS
42913LIBS="-lunicows $LIBS"
42914cat >conftest.$ac_ext <<_ACEOF
42915/* confdefs.h. */
42916_ACEOF
42917cat confdefs.h >>conftest.$ac_ext
42918cat >>conftest.$ac_ext <<_ACEOF
42919/* end confdefs.h. */
42920
42921
42922int
42923main ()
42924{
42925main ();
42926 ;
42927 return 0;
42928}
42929_ACEOF
42930rm -f conftest.$ac_objext conftest$ac_exeext
42931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42932 (eval $ac_link) 2>conftest.er1
a848cd7e 42933 ac_status=$?
ac1cb8d3
VS
42934 grep -v '^ *+' conftest.er1 >conftest.err
42935 rm -f conftest.er1
42936 cat conftest.err >&5
a848cd7e
SC
42937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42938 (exit $ac_status); } &&
3565d135
RR
42939 { ac_try='test -z "$ac_c_werror_flag"
42940 || test ! -s conftest.err'
ac1cb8d3
VS
42941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42942 (eval $ac_try) 2>&5
42943 ac_status=$?
42944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42945 (exit $ac_status); }; } &&
42946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42948 (eval $ac_try) 2>&5
42949 ac_status=$?
42950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42951 (exit $ac_status); }; }; then
42952 ac_cv_lib_unicows_main=yes
42953else
42954 echo "$as_me: failed program was:" >&5
42955sed 's/^/| /' conftest.$ac_ext >&5
42956
42957ac_cv_lib_unicows_main=no
42958fi
ac1cb8d3
VS
42959rm -f conftest.err conftest.$ac_objext \
42960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42961LIBS=$ac_check_lib_save_LIBS
42962fi
42963echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
42964echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
42965if test $ac_cv_lib_unicows_main = yes; then
42966
42967 cat >>confdefs.h <<\_ACEOF
42968#define wxUSE_UNICODE_MSLU 1
42969_ACEOF
42970
42971
42972else
42973
42974 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
42975 Applications will only run on Windows NT/2000/XP!" >&5
42976echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
42977 Applications will only run on Windows NT/2000/XP!" >&2;}
42978 wxUSE_UNICODE_MSLU=no
42979
42980fi
42981
42982 fi
42983fi
42984
42985if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
42986 cat >>confdefs.h <<\_ACEOF
42987#define wxUSE_EXPERIMENTAL_PRINTF 1
42988_ACEOF
42989
42990fi
42991
42992
42993if test "$wxUSE_POSTSCRIPT" = "yes" ; then
42994 cat >>confdefs.h <<\_ACEOF
42995#define wxUSE_POSTSCRIPT 1
42996_ACEOF
42997
42998fi
42999
43000cat >>confdefs.h <<\_ACEOF
43001#define wxUSE_AFM_FOR_POSTSCRIPT 1
43002_ACEOF
43003
43004
43005cat >>confdefs.h <<\_ACEOF
43006#define wxUSE_NORMALIZED_PS_FONTS 1
43007_ACEOF
43008
43009
43010
43011if test "$wxUSE_CONSTRAINTS" = "yes"; then
43012 cat >>confdefs.h <<\_ACEOF
43013#define wxUSE_CONSTRAINTS 1
43014_ACEOF
43015
43016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43017fi
43018
8a7b1113
VZ
43019if test "$wxUSE_MDI" = "yes"; then
43020 cat >>confdefs.h <<\_ACEOF
43021#define wxUSE_MDI 1
43022_ACEOF
43023
43024
43025 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43026 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43027#define wxUSE_MDI_ARCHITECTURE 1
43028_ACEOF
43029
8a7b1113
VZ
43030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43031 fi
a848cd7e
SC
43032fi
43033
43034if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43035 cat >>confdefs.h <<\_ACEOF
43036#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43037_ACEOF
43038
43039 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43040 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43042 fi
43043fi
43044
43045if test "$wxUSE_HELP" = "yes"; then
43046 cat >>confdefs.h <<\_ACEOF
43047#define wxUSE_HELP 1
43048_ACEOF
43049
43050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43051
43052 if test "$wxUSE_MSW" = 1; then
43053 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43054 cat >>confdefs.h <<\_ACEOF
43055#define wxUSE_MS_HTML_HELP 1
43056_ACEOF
43057
43058 fi
43059 fi
43060
43061 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43062 if test "$wxUSE_HTML" = "yes"; then
43063 cat >>confdefs.h <<\_ACEOF
43064#define wxUSE_WXHTML_HELP 1
43065_ACEOF
43066
43067 else
43068 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43069echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43070 wxUSE_WXHTML_HELP=no
43071 fi
43072 fi
43073fi
43074
43075if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43076 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43077 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43078echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43079 else
43080 cat >>confdefs.h <<\_ACEOF
43081#define wxUSE_PRINTING_ARCHITECTURE 1
43082_ACEOF
43083
43084 fi
43085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43086fi
43087
43088if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43089 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43090echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43091 { (exit 1); exit 1; }; }
43092fi
43093
43094
efdf6afe
VZ
43095if test "$wxUSE_METAFILE" = "yes"; then
43096 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43097 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43098echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43099 wxUSE_METAFILE=no
43100 fi
43101fi
43102
43103
a848cd7e
SC
43104if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43105 -o "$wxUSE_CLIPBOARD" = "yes" \
43106 -o "$wxUSE_OLE" = "yes" \
43107 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43108
43109for ac_header in ole2.h
43110do
43111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43112if eval "test \"\${$as_ac_Header+set}\" = set"; then
43113 echo "$as_me:$LINENO: checking for $ac_header" >&5
43114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43115if eval "test \"\${$as_ac_Header+set}\" = set"; then
43116 echo $ECHO_N "(cached) $ECHO_C" >&6
43117fi
43118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43120else
43121 # Is the header compilable?
43122echo "$as_me:$LINENO: checking $ac_header usability" >&5
43123echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43124cat >conftest.$ac_ext <<_ACEOF
43125/* confdefs.h. */
43126_ACEOF
43127cat confdefs.h >>conftest.$ac_ext
43128cat >>conftest.$ac_ext <<_ACEOF
43129/* end confdefs.h. */
43130$ac_includes_default
43131#include <$ac_header>
43132_ACEOF
43133rm -f conftest.$ac_objext
43134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43135 (eval $ac_compile) 2>conftest.er1
a848cd7e 43136 ac_status=$?
ac1cb8d3
VS
43137 grep -v '^ *+' conftest.er1 >conftest.err
43138 rm -f conftest.er1
43139 cat conftest.err >&5
a848cd7e
SC
43140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43141 (exit $ac_status); } &&
3565d135
RR
43142 { ac_try='test -z "$ac_c_werror_flag"
43143 || test ! -s conftest.err'
ac1cb8d3
VS
43144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43145 (eval $ac_try) 2>&5
43146 ac_status=$?
43147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43148 (exit $ac_status); }; } &&
43149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43151 (eval $ac_try) 2>&5
43152 ac_status=$?
43153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43154 (exit $ac_status); }; }; then
43155 ac_header_compiler=yes
43156else
43157 echo "$as_me: failed program was:" >&5
43158sed 's/^/| /' conftest.$ac_ext >&5
43159
43160ac_header_compiler=no
43161fi
ac1cb8d3 43162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43163echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43164echo "${ECHO_T}$ac_header_compiler" >&6
43165
43166# Is the header present?
43167echo "$as_me:$LINENO: checking $ac_header presence" >&5
43168echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43169cat >conftest.$ac_ext <<_ACEOF
43170/* confdefs.h. */
43171_ACEOF
43172cat confdefs.h >>conftest.$ac_ext
43173cat >>conftest.$ac_ext <<_ACEOF
43174/* end confdefs.h. */
43175#include <$ac_header>
43176_ACEOF
43177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43179 ac_status=$?
43180 grep -v '^ *+' conftest.er1 >conftest.err
43181 rm -f conftest.er1
43182 cat conftest.err >&5
43183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43184 (exit $ac_status); } >/dev/null; then
43185 if test -s conftest.err; then
43186 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 43187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
43188 else
43189 ac_cpp_err=
43190 fi
43191else
43192 ac_cpp_err=yes
43193fi
43194if test -z "$ac_cpp_err"; then
43195 ac_header_preproc=yes
43196else
43197 echo "$as_me: failed program was:" >&5
43198sed 's/^/| /' conftest.$ac_ext >&5
43199
43200 ac_header_preproc=no
43201fi
43202rm -f conftest.err conftest.$ac_ext
43203echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43204echo "${ECHO_T}$ac_header_preproc" >&6
43205
43206# So? What about this header?
ac1cb8d3
VS
43207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43208 yes:no: )
a848cd7e
SC
43209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43210echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43212echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43213 ac_header_preproc=yes
a848cd7e 43214 ;;
ac1cb8d3 43215 no:yes:* )
a848cd7e
SC
43216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43219echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43221echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43223echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43227echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43228 (
43229 cat <<\_ASBOX
ac1cb8d3
VS
43230## ----------------------------------------- ##
43231## Report this to wx-dev@lists.wxwidgets.org ##
43232## ----------------------------------------- ##
a848cd7e
SC
43233_ASBOX
43234 ) |
43235 sed "s/^/$as_me: WARNING: /" >&2
43236 ;;
43237esac
43238echo "$as_me:$LINENO: checking for $ac_header" >&5
43239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43240if eval "test \"\${$as_ac_Header+set}\" = set"; then
43241 echo $ECHO_N "(cached) $ECHO_C" >&6
43242else
ac1cb8d3 43243 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43244fi
43245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43247
43248fi
43249if test `eval echo '${'$as_ac_Header'}'` = yes; then
43250 cat >>confdefs.h <<_ACEOF
43251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43252_ACEOF
43253
43254fi
43255
43256done
43257
43258
43259 if test "$ac_cv_header_ole2_h" = "yes" ; then
43260 if test "$GCC" = yes ; then
43261
43262
43263 ac_ext=cc
43264ac_cpp='$CXXCPP $CPPFLAGS'
43265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43268
43269
43270 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43271echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43272 cat >conftest.$ac_ext <<_ACEOF
43273/* confdefs.h. */
43274_ACEOF
43275cat confdefs.h >>conftest.$ac_ext
43276cat >>conftest.$ac_ext <<_ACEOF
43277/* end confdefs.h. */
43278#include <windows.h>
43279 #include <ole2.h>
43280int
43281main ()
43282{
43283
43284 ;
43285 return 0;
43286}
43287_ACEOF
43288rm -f conftest.$ac_objext
43289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43290 (eval $ac_compile) 2>conftest.er1
a848cd7e 43291 ac_status=$?
ac1cb8d3
VS
43292 grep -v '^ *+' conftest.er1 >conftest.err
43293 rm -f conftest.er1
43294 cat conftest.err >&5
a848cd7e
SC
43295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43296 (exit $ac_status); } &&
3565d135
RR
43297 { ac_try='test -z "$ac_cxx_werror_flag"
43298 || test ! -s conftest.err'
ac1cb8d3
VS
43299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43300 (eval $ac_try) 2>&5
43301 ac_status=$?
43302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43303 (exit $ac_status); }; } &&
43304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43306 (eval $ac_try) 2>&5
43307 ac_status=$?
43308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43309 (exit $ac_status); }; }; then
43310 echo "$as_me:$LINENO: result: no" >&5
43311echo "${ECHO_T}no" >&6
43312else
43313 echo "$as_me: failed program was:" >&5
43314sed 's/^/| /' conftest.$ac_ext >&5
43315
43316echo "$as_me:$LINENO: result: yes" >&5
43317echo "${ECHO_T}yes" >&6
5ff751d6 43318 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43319fi
ac1cb8d3 43320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43321 ac_ext=c
43322ac_cpp='$CPP $CPPFLAGS'
43323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43325ac_compiler_gnu=$ac_cv_c_compiler_gnu
43326
a848cd7e
SC
43327 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43328 if test "$wxUSE_OLE" = "yes" ; then
43329 cat >>confdefs.h <<\_ACEOF
43330#define wxUSE_OLE 1
43331_ACEOF
43332
0b78747f 43333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43334 fi
43335 fi
43336
43337 if test "$wxUSE_DATAOBJ" = "yes" ; then
43338 cat >>confdefs.h <<\_ACEOF
43339#define wxUSE_DATAOBJ 1
43340_ACEOF
43341
43342 fi
43343 else
43344 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43345echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43346
43347 wxUSE_CLIPBOARD=no
43348 wxUSE_DRAG_AND_DROP=no
43349 wxUSE_DATAOBJ=no
43350 wxUSE_OLE=no
43351 fi
43352
43353 if test "$wxUSE_METAFILE" = "yes"; then
43354 cat >>confdefs.h <<\_ACEOF
43355#define wxUSE_METAFILE 1
43356_ACEOF
43357
43358
43359 cat >>confdefs.h <<\_ACEOF
43360#define wxUSE_ENH_METAFILE 1
43361_ACEOF
43362
43363 fi
43364fi
43365
43366if test "$wxUSE_IPC" = "yes"; then
0b78747f 43367 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43368 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43369echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43370 wxUSE_IPC=no
a848cd7e
SC
43371 fi
43372
0b78747f
MW
43373 if test "$wxUSE_IPC" = "yes"; then
43374 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43375#define wxUSE_IPC 1
43376_ACEOF
43377
0b78747f
MW
43378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43379 fi
a848cd7e
SC
43380fi
43381
eb730a0c 43382if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43383 if test "$wxUSE_MGL" = 1; then
43384 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43385echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43386 wxUSE_DATAOBJ=no
43387 else
43388 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43389#define wxUSE_DATAOBJ 1
43390_ACEOF
43391
2113bc77 43392 fi
eb730a0c
JS
43393else
43394 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43395echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43396 wxUSE_CLIPBOARD=no
43397 wxUSE_DRAG_AND_DROP=no
43398fi
43399
a848cd7e
SC
43400if test "$wxUSE_CLIPBOARD" = "yes"; then
43401 if test "$wxUSE_MGL" = 1; then
43402 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43403echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43404 wxUSE_CLIPBOARD=no
43405 fi
43406
43407 if test "$wxUSE_CLIPBOARD" = "yes"; then
43408 cat >>confdefs.h <<\_ACEOF
43409#define wxUSE_CLIPBOARD 1
43410_ACEOF
43411
a848cd7e
SC
43412 fi
43413fi
43414
43415if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43416 if test "$wxUSE_GTK" = 1; then
43417 if test "$WXGTK12" != 1; then
43418 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43419echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43420 wxUSE_DRAG_AND_DROP=no
43421 fi
43422 fi
43423
43424 if test "$wxUSE_MOTIF" = 1; then
43425 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43426echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43427 wxUSE_DRAG_AND_DROP=no
43428 fi
43429
43430 if test "$wxUSE_X11" = 1; then
43431 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43432echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43433 wxUSE_DRAG_AND_DROP=no
43434 fi
43435
43436 if test "$wxUSE_MGL" = 1; then
43437 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43438echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43439 wxUSE_DRAG_AND_DROP=no
43440 fi
43441
43442 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43443 cat >>confdefs.h <<\_ACEOF
43444#define wxUSE_DRAG_AND_DROP 1
43445_ACEOF
43446
43447 fi
43448
43449fi
43450
43451if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43453fi
43454
43455if test "$wxUSE_SPLINES" = "yes" ; then
43456 cat >>confdefs.h <<\_ACEOF
43457#define wxUSE_SPLINES 1
43458_ACEOF
43459
43460fi
43461
fbe2ca43
SN
43462if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43463 cat >>confdefs.h <<\_ACEOF
43464#define wxUSE_MOUSEWHEEL 1
43465_ACEOF
43466
43467fi
43468
a848cd7e
SC
43469
43470USES_CONTROLS=0
43471if test "$wxUSE_CONTROLS" = "yes"; then
43472 USES_CONTROLS=1
43473fi
43474
43475if test "$wxUSE_ACCEL" = "yes"; then
43476 cat >>confdefs.h <<\_ACEOF
43477#define wxUSE_ACCEL 1
43478_ACEOF
43479
43480 USES_CONTROLS=1
43481fi
43482
43483if test "$wxUSE_BUTTON" = "yes"; then
43484 cat >>confdefs.h <<\_ACEOF
43485#define wxUSE_BUTTON 1
43486_ACEOF
43487
43488 USES_CONTROLS=1
43489fi
43490
43491if test "$wxUSE_BMPBUTTON" = "yes"; then
43492 cat >>confdefs.h <<\_ACEOF
43493#define wxUSE_BMPBUTTON 1
43494_ACEOF
43495
43496 USES_CONTROLS=1
43497fi
43498
43499if test "$wxUSE_CALCTRL" = "yes"; then
43500 cat >>confdefs.h <<\_ACEOF
43501#define wxUSE_CALENDARCTRL 1
43502_ACEOF
43503
43504 USES_CONTROLS=1
43505 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43506fi
43507
43508if test "$wxUSE_CARET" = "yes"; then
43509 cat >>confdefs.h <<\_ACEOF
43510#define wxUSE_CARET 1
43511_ACEOF
43512
43513 USES_CONTROLS=1
43514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43515fi
43516
43517if test "$wxUSE_COMBOBOX" = "yes"; then
43518 cat >>confdefs.h <<\_ACEOF
43519#define wxUSE_COMBOBOX 1
43520_ACEOF
43521
43522 USES_CONTROLS=1
43523fi
43524
43525if test "$wxUSE_CHOICE" = "yes"; then
43526 cat >>confdefs.h <<\_ACEOF
43527#define wxUSE_CHOICE 1
43528_ACEOF
43529
43530 USES_CONTROLS=1
43531fi
43532
92bbdbcd
WS
43533if test "$wxUSE_CHOICEBOOK" = "yes"; then
43534 cat >>confdefs.h <<\_ACEOF
43535#define wxUSE_CHOICEBOOK 1
43536_ACEOF
43537
43538 USES_CONTROLS=1
43539fi
43540
a848cd7e
SC
43541if test "$wxUSE_CHECKBOX" = "yes"; then
43542 cat >>confdefs.h <<\_ACEOF
43543#define wxUSE_CHECKBOX 1
43544_ACEOF
43545
43546 USES_CONTROLS=1
43547fi
43548
43549if test "$wxUSE_CHECKLST" = "yes"; then
43550 cat >>confdefs.h <<\_ACEOF
43551#define wxUSE_CHECKLISTBOX 1
43552_ACEOF
43553
43554 USES_CONTROLS=1
43555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43556fi
43557
da98e9be
VZ
43558if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43559 cat >>confdefs.h <<\_ACEOF
43560#define wxUSE_DATEPICKCTRL 1
43561_ACEOF
43562
43563 USES_CONTROLS=1
43564fi
43565
a848cd7e
SC
43566if test "$wxUSE_DISPLAY" = "yes"; then
43567 cat >>confdefs.h <<\_ACEOF
43568#define wxUSE_DISPLAY 1
43569_ACEOF
43570
0b78747f 43571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43572fi
43573
43574if test "$wxUSE_GAUGE" = "yes"; then
43575 cat >>confdefs.h <<\_ACEOF
43576#define wxUSE_GAUGE 1
43577_ACEOF
43578
43579 USES_CONTROLS=1
43580fi
43581
43582if test "$wxUSE_GRID" = "yes"; then
43583 cat >>confdefs.h <<\_ACEOF
43584#define wxUSE_GRID 1
43585_ACEOF
43586
43587 USES_CONTROLS=1
43588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43589fi
43590
20e34ecc
RR
43591if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43592 cat >>confdefs.h <<\_ACEOF
43593#define wxUSE_DATAVIEWCTRL 1
43594_ACEOF
43595
43596 USES_CONTROLS=1
43597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43598fi
43599
a848cd7e
SC
43600if test "$wxUSE_IMAGLIST" = "yes"; then
43601 cat >>confdefs.h <<\_ACEOF
43602#define wxUSE_IMAGLIST 1
43603_ACEOF
43604
43605fi
43606
43607if test "$wxUSE_LISTBOOK" = "yes"; then
43608 cat >>confdefs.h <<\_ACEOF
43609#define wxUSE_LISTBOOK 1
43610_ACEOF
43611
43612 USES_CONTROLS=1
43613fi
43614
43615if test "$wxUSE_LISTBOX" = "yes"; then
43616 cat >>confdefs.h <<\_ACEOF
43617#define wxUSE_LISTBOX 1
43618_ACEOF
43619
43620 USES_CONTROLS=1
0b78747f 43621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43622fi
43623
43624if test "$wxUSE_LISTCTRL" = "yes"; then
43625 if test "$wxUSE_IMAGLIST" = "yes"; then
43626 cat >>confdefs.h <<\_ACEOF
43627#define wxUSE_LISTCTRL 1
43628_ACEOF
43629
43630 USES_CONTROLS=1
43631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43632 else
43633 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43634echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43635 fi
43636fi
43637
43638if test "$wxUSE_NOTEBOOK" = "yes"; then
43639 cat >>confdefs.h <<\_ACEOF
43640#define wxUSE_NOTEBOOK 1
43641_ACEOF
43642
43643 USES_CONTROLS=1
43644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43645fi
43646
43647
43648if test "$wxUSE_RADIOBOX" = "yes"; then
43649 cat >>confdefs.h <<\_ACEOF
43650#define wxUSE_RADIOBOX 1
43651_ACEOF
43652
43653 USES_CONTROLS=1
43654fi
43655
43656if test "$wxUSE_RADIOBTN" = "yes"; then
43657 cat >>confdefs.h <<\_ACEOF
43658#define wxUSE_RADIOBTN 1
43659_ACEOF
43660
43661 USES_CONTROLS=1
43662fi
43663
43664if test "$wxUSE_SASH" = "yes"; then
43665 cat >>confdefs.h <<\_ACEOF
43666#define wxUSE_SASH 1
43667_ACEOF
43668
43669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43670fi
43671
43672if test "$wxUSE_SCROLLBAR" = "yes"; then
43673 cat >>confdefs.h <<\_ACEOF
43674#define wxUSE_SCROLLBAR 1
43675_ACEOF
43676
43677 USES_CONTROLS=1
43678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43679fi
43680
43681if test "$wxUSE_SLIDER" = "yes"; then
43682 cat >>confdefs.h <<\_ACEOF
43683#define wxUSE_SLIDER 1
43684_ACEOF
43685
43686 USES_CONTROLS=1
43687fi
43688
43689if test "$wxUSE_SPINBTN" = "yes"; then
43690 cat >>confdefs.h <<\_ACEOF
43691#define wxUSE_SPINBTN 1
43692_ACEOF
43693
43694 USES_CONTROLS=1
43695fi
43696
43697if test "$wxUSE_SPINCTRL" = "yes"; then
43698 cat >>confdefs.h <<\_ACEOF
43699#define wxUSE_SPINCTRL 1
43700_ACEOF
43701
43702 USES_CONTROLS=1
43703fi
43704
43705if test "$wxUSE_SPLITTER" = "yes"; then
43706 cat >>confdefs.h <<\_ACEOF
43707#define wxUSE_SPLITTER 1
43708_ACEOF
43709
43710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43711fi
43712
43713if test "$wxUSE_STATBMP" = "yes"; then
43714 cat >>confdefs.h <<\_ACEOF
43715#define wxUSE_STATBMP 1
43716_ACEOF
43717
43718 USES_CONTROLS=1
43719fi
43720
43721if test "$wxUSE_STATBOX" = "yes"; then
43722 cat >>confdefs.h <<\_ACEOF
43723#define wxUSE_STATBOX 1
43724_ACEOF
43725
43726 USES_CONTROLS=1
43727fi
43728
43729if test "$wxUSE_STATTEXT" = "yes"; then
43730 cat >>confdefs.h <<\_ACEOF
43731#define wxUSE_STATTEXT 1
43732_ACEOF
43733
43734 USES_CONTROLS=1
43735fi
43736
43737if test "$wxUSE_STATLINE" = "yes"; then
43738 cat >>confdefs.h <<\_ACEOF
43739#define wxUSE_STATLINE 1
43740_ACEOF
43741
43742 USES_CONTROLS=1
43743fi
43744
43745if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
43746 cat >>confdefs.h <<\_ACEOF
43747#define wxUSE_NATIVE_STATUSBAR 1
43748_ACEOF
43749
a848cd7e
SC
43750 cat >>confdefs.h <<\_ACEOF
43751#define wxUSE_STATUSBAR 1
43752_ACEOF
43753
43754 USES_CONTROLS=1
43755
43756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
43757fi
43758
43759if test "$wxUSE_TABDIALOG" = "yes"; then
43760 cat >>confdefs.h <<\_ACEOF
43761#define wxUSE_TAB_DIALOG 1
43762_ACEOF
43763
a848cd7e
SC
43764fi
43765
43766if test "$wxUSE_TEXTCTRL" = "yes"; then
43767 cat >>confdefs.h <<\_ACEOF
43768#define wxUSE_TEXTCTRL 1
43769_ACEOF
43770
43771 USES_CONTROLS=1
43772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
43773fi
43774
43775if test "$wxUSE_TOGGLEBTN" = "yes"; then
43776 if test "$wxUSE_COCOA" = 1 ; then
43777 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
43778echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
43779 wxUSE_TOGGLEBTN=no
43780 fi
43781 if test "$wxUSE_UNIVERSAL" = "yes"; then
43782 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
43783echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
43784 wxUSE_TOGGLEBTN=no
43785 fi
43786
43787 if test "$wxUSE_TOGGLEBTN" = "yes"; then
43788 cat >>confdefs.h <<\_ACEOF
43789#define wxUSE_TOGGLEBTN 1
43790_ACEOF
43791
43792 USES_CONTROLS=1
43793 fi
43794fi
43795
43796if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
43797 cat >>confdefs.h <<\_ACEOF
43798#define wxUSE_TOOLBAR_SIMPLE 1
43799_ACEOF
43800
43801 wxUSE_TOOLBAR="yes"
43802 USES_CONTROLS=1
43803fi
43804
43805if test "$wxUSE_TOOLBAR" = "yes"; then
43806 cat >>confdefs.h <<\_ACEOF
43807#define wxUSE_TOOLBAR 1
43808_ACEOF
43809
43810 USES_CONTROLS=1
43811
43812 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
43813 wxUSE_TOOLBAR_NATIVE="yes"
43814 fi
43815
43816 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
43817 cat >>confdefs.h <<\_ACEOF
43818#define wxUSE_TOOLBAR_NATIVE 1
43819_ACEOF
43820
43821 USES_CONTROLS=1
43822 fi
43823
43824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
43825fi
43826
43827if test "$wxUSE_TOOLTIPS" = "yes"; then
43828 if test "$wxUSE_MOTIF" = 1; then
43829 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
43830echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
43831 else
43832 if test "$wxUSE_UNIVERSAL" = "yes"; then
43833 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
43834echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
43835 else
43836 cat >>confdefs.h <<\_ACEOF
43837#define wxUSE_TOOLTIPS 1
43838_ACEOF
43839
43840 fi
43841 fi
43842fi
43843
0093c2fc
VZ
43844if test "$wxUSE_TREEBOOK" = "yes"; then
43845 cat >>confdefs.h <<\_ACEOF
43846#define wxUSE_TREEBOOK 1
43847_ACEOF
43848
43849 USES_CONTROLS=1
43850fi
43851
a848cd7e
SC
43852if test "$wxUSE_TREECTRL" = "yes"; then
43853 if test "$wxUSE_IMAGLIST" = "yes"; then
43854 cat >>confdefs.h <<\_ACEOF
43855#define wxUSE_TREECTRL 1
43856_ACEOF
43857
43858 USES_CONTROLS=1
43859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
43860 else
43861 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
43862echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
43863 fi
43864fi
43865
43866if test "$wxUSE_POPUPWIN" = "yes"; then
43867 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43868 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
43869echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
43870 else
43871 if test "$wxUSE_PM" = 1; then
43872 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
43873echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
43874 else
43875 cat >>confdefs.h <<\_ACEOF
43876#define wxUSE_POPUPWIN 1
43877_ACEOF
43878
0b78747f 43879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
43880
43881 USES_CONTROLS=1
43882 fi
43883 fi
43884fi
43885
0dcd06dd 43886if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
43887 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43888 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
43889echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
43890 else
43891 cat >>confdefs.h <<\_ACEOF
43892#define wxUSE_DIALUP_MANAGER 1
43893_ACEOF
43894
43895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
43896 fi
43897fi
43898
a848cd7e
SC
43899if test "$wxUSE_TIPWINDOW" = "yes"; then
43900 if test "$wxUSE_PM" = 1; then
43901 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
43902echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
43903 else
43904 cat >>confdefs.h <<\_ACEOF
43905#define wxUSE_TIPWINDOW 1
43906_ACEOF
43907
43908 fi
43909fi
43910
43911if test "$USES_CONTROLS" = 1; then
43912 cat >>confdefs.h <<\_ACEOF
43913#define wxUSE_CONTROLS 1
43914_ACEOF
43915
43916fi
43917
43918
43919if test "$wxUSE_ACCESSIBILITY" = "yes"; then
43920 cat >>confdefs.h <<\_ACEOF
43921#define wxUSE_ACCESSIBILITY 1
43922_ACEOF
43923
43924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
43925fi
43926
38b4a946
VZ
43927if test "$wxUSE_DC_CACHEING" = "yes"; then
43928 cat >>confdefs.h <<\_ACEOF
43929#define wxUSE_DC_CACHEING 1
43930_ACEOF
43931
43932fi
43933
a848cd7e
SC
43934if test "$wxUSE_DRAGIMAGE" = "yes"; then
43935 cat >>confdefs.h <<\_ACEOF
43936#define wxUSE_DRAGIMAGE 1
43937_ACEOF
43938
43939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
43940fi
43941
43942if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
43943 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43944 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
43945echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
43946 else
43947 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43948#define wxUSE_EXCEPTIONS 1
43949_ACEOF
43950
07bea8f0
VS
43951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
43952 fi
a848cd7e
SC
43953fi
43954
43955USE_HTML=0
43956if test "$wxUSE_HTML" = "yes"; then
43957 cat >>confdefs.h <<\_ACEOF
43958#define wxUSE_HTML 1
43959_ACEOF
43960
43961 USE_HTML=1
43962 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
43963 if test "$wxUSE_MAC" = 1; then
43964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
43965 fi
a848cd7e 43966fi
646b6ec1 43967if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 43968 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 43969 old_CPPFLAGS="$CPPFLAGS"
c92ad099 43970 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
43971 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
43972echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
43973if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
43974 echo $ECHO_N "(cached) $ECHO_C" >&6
43975else
43976 cat >conftest.$ac_ext <<_ACEOF
43977/* confdefs.h. */
43978_ACEOF
43979cat confdefs.h >>conftest.$ac_ext
43980cat >>conftest.$ac_ext <<_ACEOF
43981/* end confdefs.h. */
43982#include <Carbon/Carbon.h>
43983
43984#include <WebKit/HIWebView.h>
43985_ACEOF
43986rm -f conftest.$ac_objext
43987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43988 (eval $ac_compile) 2>conftest.er1
43989 ac_status=$?
43990 grep -v '^ *+' conftest.er1 >conftest.err
43991 rm -f conftest.er1
43992 cat conftest.err >&5
43993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43994 (exit $ac_status); } &&
3565d135
RR
43995 { ac_try='test -z "$ac_c_werror_flag"
43996 || test ! -s conftest.err'
07bea8f0
VS
43997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43998 (eval $ac_try) 2>&5
43999 ac_status=$?
44000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44001 (exit $ac_status); }; } &&
44002 { ac_try='test -s conftest.$ac_objext'
44003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44004 (eval $ac_try) 2>&5
44005 ac_status=$?
44006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44007 (exit $ac_status); }; }; then
44008 ac_cv_header_WebKit_HIWebView_h=yes
44009else
44010 echo "$as_me: failed program was:" >&5
44011sed 's/^/| /' conftest.$ac_ext >&5
44012
44013ac_cv_header_WebKit_HIWebView_h=no
44014fi
44015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44016fi
44017echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44018echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44019if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44020
44021 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44022#define wxUSE_WEBKIT 1
44023_ACEOF
44024
07bea8f0
VS
44025 WEBKIT_LINK="-framework WebKit"
44026
44027else
44028
44029 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44030echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44031 wxUSE_WEBKIT=no
44032
646b6ec1
VS
44033fi
44034
07bea8f0
VS
44035
44036 CPPFLAGS="$old_CPPFLAGS"
44037 elif test "$wxUSE_COCOA" = 1; then
44038 cat >>confdefs.h <<\_ACEOF
44039#define wxUSE_WEBKIT 1
44040_ACEOF
44041
44042 else
44043 wxUSE_WEBKIT=no
44044 fi
44045fi
44046
9a8f0513
VS
44047USE_XRC=0
44048if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44049 if test "$wxUSE_XML" != "yes"; then
44050 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44051echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44052 wxUSE_XRC=no
44053 else
44054 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44055#define wxUSE_XRC 1
44056_ACEOF
44057
d2ebf0b7
VS
44058 USE_XRC=1
44059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44060 fi
9a8f0513 44061fi
07bea8f0 44062
a848cd7e
SC
44063if test "$wxUSE_MENUS" = "yes"; then
44064 cat >>confdefs.h <<\_ACEOF
44065#define wxUSE_MENUS 1
44066_ACEOF
44067
44068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44069fi
44070
44071if test "$wxUSE_METAFILE" = "yes"; then
44072 cat >>confdefs.h <<\_ACEOF
44073#define wxUSE_METAFILE 1
44074_ACEOF
44075
44076fi
44077
44078if test "$wxUSE_MIMETYPE" = "yes"; then
44079 cat >>confdefs.h <<\_ACEOF
44080#define wxUSE_MIMETYPE 1
44081_ACEOF
44082
44083fi
44084
44085if test "$wxUSE_MINIFRAME" = "yes"; then
44086 cat >>confdefs.h <<\_ACEOF
44087#define wxUSE_MINIFRAME 1
44088_ACEOF
44089
44090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44091fi
44092
44093if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44094 cat >>confdefs.h <<\_ACEOF
44095#define wxUSE_SYSTEM_OPTIONS 1
44096_ACEOF
44097
44098 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44099 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44101 fi
44102fi
44103
44104
44105if test "$wxUSE_VALIDATORS" = "yes"; then
44106 cat >>confdefs.h <<\_ACEOF
44107#define wxUSE_VALIDATORS 1
44108_ACEOF
44109
44110 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44111fi
44112
44113if test "$wxUSE_PALETTE" = "yes" ; then
44114 cat >>confdefs.h <<\_ACEOF
44115#define wxUSE_PALETTE 1
44116_ACEOF
44117
44118fi
44119
44120if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44121 LIBS=" -lunicows $LIBS"
44122fi
44123
91dea314
MW
44124USE_RICHTEXT=0
44125if test "$wxUSE_RICHTEXT" = "yes"; then
44126 cat >>confdefs.h <<\_ACEOF
44127#define wxUSE_RICHTEXT 1
44128_ACEOF
44129
44130 USE_RICHTEXT=1
44131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44132fi
44133
a848cd7e
SC
44134
44135if test "$wxUSE_IMAGE" = "yes" ; then
44136 cat >>confdefs.h <<\_ACEOF
44137#define wxUSE_IMAGE 1
44138_ACEOF
44139
44140
44141 if test "$wxUSE_GIF" = "yes" ; then
44142 cat >>confdefs.h <<\_ACEOF
44143#define wxUSE_GIF 1
44144_ACEOF
44145
44146 fi
44147
44148 if test "$wxUSE_PCX" = "yes" ; then
44149 cat >>confdefs.h <<\_ACEOF
44150#define wxUSE_PCX 1
44151_ACEOF
44152
44153 fi
44154
44155 if test "$wxUSE_IFF" = "yes" ; then
44156 cat >>confdefs.h <<\_ACEOF
44157#define wxUSE_IFF 1
44158_ACEOF
44159
44160 fi
44161
44162 if test "$wxUSE_PNM" = "yes" ; then
44163 cat >>confdefs.h <<\_ACEOF
44164#define wxUSE_PNM 1
44165_ACEOF
44166
44167 fi
44168
44169 if test "$wxUSE_XPM" = "yes" ; then
44170 cat >>confdefs.h <<\_ACEOF
44171#define wxUSE_XPM 1
44172_ACEOF
44173
44174 fi
44175
44176 if test "$wxUSE_ICO_CUR" = "yes" ; then
44177 cat >>confdefs.h <<\_ACEOF
44178#define wxUSE_ICO_CUR 1
44179_ACEOF
44180
44181 fi
44182fi
44183
44184
44185if test "$wxUSE_CHOICEDLG" = "yes"; then
44186 cat >>confdefs.h <<\_ACEOF
44187#define wxUSE_CHOICEDLG 1
44188_ACEOF
44189
44190fi
44191
44192if test "$wxUSE_COLOURDLG" = "yes"; then
44193 cat >>confdefs.h <<\_ACEOF
44194#define wxUSE_COLOURDLG 1
44195_ACEOF
44196
44197fi
44198
44199if test "$wxUSE_FILEDLG" = "yes"; then
44200 cat >>confdefs.h <<\_ACEOF
44201#define wxUSE_FILEDLG 1
44202_ACEOF
44203
44204fi
44205
44206if test "$wxUSE_FINDREPLDLG" = "yes"; then
44207 cat >>confdefs.h <<\_ACEOF
44208#define wxUSE_FINDREPLDLG 1
44209_ACEOF
44210
44211fi
44212
44213if test "$wxUSE_FONTDLG" = "yes"; then
44214 cat >>confdefs.h <<\_ACEOF
44215#define wxUSE_FONTDLG 1
44216_ACEOF
44217
44218fi
44219
44220if test "$wxUSE_DIRDLG" = "yes"; then
44221 if test "$wxUSE_TREECTRL" != "yes"; then
44222 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44223echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44224 else
44225 cat >>confdefs.h <<\_ACEOF
44226#define wxUSE_DIRDLG 1
44227_ACEOF
44228
44229 fi
44230fi
44231
44232if test "$wxUSE_MSGDLG" = "yes"; then
44233 cat >>confdefs.h <<\_ACEOF
44234#define wxUSE_MSGDLG 1
44235_ACEOF
44236
44237fi
44238
44239if test "$wxUSE_NUMBERDLG" = "yes"; then
44240 cat >>confdefs.h <<\_ACEOF
44241#define wxUSE_NUMBERDLG 1
44242_ACEOF
44243
44244fi
44245
44246if test "$wxUSE_PROGRESSDLG" = "yes"; then
44247 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44248 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44249echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44250 else
44251 cat >>confdefs.h <<\_ACEOF
44252#define wxUSE_PROGRESSDLG 1
44253_ACEOF
44254
44255 fi
44256fi
44257
44258if test "$wxUSE_SPLASH" = "yes"; then
44259 cat >>confdefs.h <<\_ACEOF
44260#define wxUSE_SPLASH 1
44261_ACEOF
44262
2057db16 44263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44264fi
44265
44266if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44267 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44268 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44269echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44270 else
44271 cat >>confdefs.h <<\_ACEOF
44272#define wxUSE_STARTUP_TIPS 1
44273_ACEOF
44274
44275 fi
44276fi
44277
44278if test "$wxUSE_TEXTDLG" = "yes"; then
44279 cat >>confdefs.h <<\_ACEOF
44280#define wxUSE_TEXTDLG 1
44281_ACEOF
44282
44283fi
44284
44285if test "$wxUSE_WIZARDDLG" = "yes"; then
44286 cat >>confdefs.h <<\_ACEOF
44287#define wxUSE_WIZARDDLG 1
44288_ACEOF
44289
44290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44291fi
44292
44293
ce756cb0 44294if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44295 if test "$wxUSE_GTK" = 1; then
44296 wxUSE_GSTREAMER="yes"
44297
ce756cb0 44298
dae87f93 44299 succeeded=no
ce756cb0 44300
dae87f93
RN
44301 if test -z "$PKG_CONFIG"; then
44302 # Extract the first word of "pkg-config", so it can be a program name with args.
44303set dummy pkg-config; ac_word=$2
44304echo "$as_me:$LINENO: checking for $ac_word" >&5
44305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44306if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44307 echo $ECHO_N "(cached) $ECHO_C" >&6
44308else
44309 case $PKG_CONFIG in
44310 [\\/]* | ?:[\\/]*)
44311 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44312 ;;
44313 *)
44314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44315for as_dir in $PATH
44316do
44317 IFS=$as_save_IFS
44318 test -z "$as_dir" && as_dir=.
44319 for ac_exec_ext in '' $ac_executable_extensions; do
44320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44321 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44323 break 2
44324 fi
44325done
44326done
44327
44328 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44329 ;;
44330esac
44331fi
44332PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44333
44334if test -n "$PKG_CONFIG"; then
44335 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44336echo "${ECHO_T}$PKG_CONFIG" >&6
44337else
44338 echo "$as_me:$LINENO: result: no" >&5
44339echo "${ECHO_T}no" >&6
44340fi
44341
44342 fi
44343
44344 if test "$PKG_CONFIG" = "no" ; then
44345 echo "*** The pkg-config script could not be found. Make sure it is"
44346 echo "*** in your path, or set the PKG_CONFIG environment variable"
44347 echo "*** to the full path to pkg-config."
44348 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44349 else
44350 PKG_CONFIG_MIN_VERSION=0.9.0
44351 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44352 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
44353echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
44354
44355 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
44356 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44357echo "${ECHO_T}yes" >&6
dae87f93 44358 succeeded=yes
ce756cb0 44359
dae87f93
RN
44360 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
44361echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
44362 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
44363 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
44364echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
44365
44366 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
44367echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
44368 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
44369 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
44370echo "${ECHO_T}$GSTREAMER_LIBS" >&6
44371 else
44372 GSTREAMER_CFLAGS=""
44373 GSTREAMER_LIBS=""
44374 ## If we have a custom action on failure, don't print errors, but
44375 ## do set a variable so people can do so.
44376 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 44377
dae87f93
RN
44378 fi
44379
44380
44381
44382 else
44383 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44384 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44385 fi
44386 fi
44387
44388 if test $succeeded = yes; then
44389
c92ad099 44390 CPPFLAGS="$GSTREAMER_CFLAGS $CPPFLAGS"
dae87f93 44391 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 44392
ce756cb0 44393 else
dae87f93
RN
44394
44395 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
44396echo "$as_me: WARNING: GStreamer installation not found" >&2;}
44397 wxUSE_GSTREAMER="no"
44398
44399 fi
44400
44401
44402
44403
44404
44405 if test "x$GST_INSPECT" == "x"; then
44406 # Extract the first word of "gst-inspect", so it can be a program name with args.
44407set dummy gst-inspect; ac_word=$2
44408echo "$as_me:$LINENO: checking for $ac_word" >&5
44409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44410if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
44411 echo $ECHO_N "(cached) $ECHO_C" >&6
44412else
44413 if test -n "$GST_INSPECT"; then
44414 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
44415else
44416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44417for as_dir in $PATH
44418do
44419 IFS=$as_save_IFS
44420 test -z "$as_dir" && as_dir=.
44421 for ac_exec_ext in '' $ac_executable_extensions; do
44422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44423 ac_cv_prog_GST_INSPECT="gst-inspect"
44424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44425 break 2
ce756cb0 44426 fi
dae87f93
RN
44427done
44428done
44429
44430fi
44431fi
44432GST_INSPECT=$ac_cv_prog_GST_INSPECT
44433if test -n "$GST_INSPECT"; then
44434 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
44435echo "${ECHO_T}$GST_INSPECT" >&6
44436else
44437 echo "$as_me:$LINENO: result: no" >&5
44438echo "${ECHO_T}no" >&6
44439fi
44440
44441 fi
44442
44443 if test "x$GST_INSPECT" != "x"; then
44444 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
44445echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
44446 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
44447 echo "$as_me:$LINENO: result: found." >&5
44448echo "${ECHO_T}found." >&6
ce756cb0 44449
ce756cb0 44450 else
dae87f93
RN
44451 echo "$as_me:$LINENO: result: not found." >&5
44452echo "${ECHO_T}not found." >&6
44453
44454 wxUSE_GSTREAMER="no"
44455 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
44456echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
44457
44458 fi
44459 fi
44460
44461
44462 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
44463echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
44464if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
44465 echo $ECHO_N "(cached) $ECHO_C" >&6
44466else
44467 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
44468/* confdefs.h. */
44469_ACEOF
44470cat confdefs.h >>conftest.$ac_ext
44471cat >>conftest.$ac_ext <<_ACEOF
44472/* end confdefs.h. */
dae87f93 44473#include <gst/gst.h>
ce756cb0 44474
dae87f93 44475#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
44476_ACEOF
44477rm -f conftest.$ac_objext
44478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44479 (eval $ac_compile) 2>conftest.er1
44480 ac_status=$?
44481 grep -v '^ *+' conftest.er1 >conftest.err
44482 rm -f conftest.er1
44483 cat conftest.err >&5
44484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44485 (exit $ac_status); } &&
3565d135
RR
44486 { ac_try='test -z "$ac_c_werror_flag"
44487 || test ! -s conftest.err'
ce756cb0
RN
44488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44489 (eval $ac_try) 2>&5
44490 ac_status=$?
44491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44492 (exit $ac_status); }; } &&
44493 { ac_try='test -s conftest.$ac_objext'
44494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44495 (eval $ac_try) 2>&5
44496 ac_status=$?
44497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44498 (exit $ac_status); }; }; then
dae87f93 44499 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
44500else
44501 echo "$as_me: failed program was:" >&5
44502sed 's/^/| /' conftest.$ac_ext >&5
44503
dae87f93 44504ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
44505fi
44506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
44507fi
44508echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
44509echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
44510if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
44511 :
44512else
ce756cb0 44513
dae87f93
RN
44514 wxUSE_GSTREAMER="no"
44515 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
44516echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 44517
dae87f93 44518fi
ce756cb0 44519
dae87f93
RN
44520
44521
44522 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
44523echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
44524
0ad5d837
VZ
44525 ac_find_libraries=
44526 for ac_dir in $SEARCH_LIB;
ce756cb0 44527 do
3eca31dc 44528 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
44529 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
44530 ac_find_libraries=$ac_dir
44531 break 2
44532 fi
44533 done
44534 done
44535
ce756cb0 44536
dae87f93
RN
44537 if test "$ac_find_libraries" = "" ; then
44538 echo "$as_me:$LINENO: result: no" >&5
44539echo "${ECHO_T}no" >&6
44540 wxUSE_GSTREAMER="no"
44541 else
44542 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44543echo "${ECHO_T}yes" >&6
dae87f93 44544 fi
ce756cb0 44545
dae87f93
RN
44546 if test "$wxUSE_GSTREAMER" = "yes"; then
44547 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44548#define wxUSE_GSTREAMER 1
44549_ACEOF
44550
dae87f93
RN
44551 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44552echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44553 fi
44554 fi
44555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44556 cat >>confdefs.h <<\_ACEOF
44557#define wxUSE_MEDIACTRL 1
44558_ACEOF
44559
44560fi
44561
44562
a848cd7e
SC
44563if test "$cross_compiling" = "yes"; then
44564 OSINFO="\"$host\""
44565else
44566 OSINFO=`uname -s -r -m`
44567 OSINFO="\"$OSINFO\""
44568fi
44569
44570cat >>confdefs.h <<_ACEOF
44571#define WXWIN_OS_DESCRIPTION $OSINFO
44572_ACEOF
44573
44574
44575
44576if test "x$prefix" != "xNONE"; then
44577 wxPREFIX=$prefix
44578else
44579 wxPREFIX=$ac_default_prefix
44580fi
44581
44582cat >>confdefs.h <<_ACEOF
44583#define wxINSTALL_PREFIX "$wxPREFIX"
44584_ACEOF
44585
44586
a848cd7e
SC
44587
44588
44589CORE_BASE_LIBS="net base"
44590CORE_GUI_LIBS="adv core"
44591
44592if test "$wxUSE_XML" = "yes" ; then
44593 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44594fi
44595if test "$wxUSE_ODBC" != "no" ; then
44596 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44597 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44598fi
44599if test "$wxUSE_HTML" = "yes" ; then
44600 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44601fi
61639efb
VZ
44602if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44603 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44604fi
9a8f0513
VS
44605if test "$wxUSE_XRC" = "yes" ; then
44606 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44607fi
a848cd7e
SC
44608
44609if test "$wxUSE_GUI" != "yes"; then
44610 CORE_GUI_LIBS=""
44611fi
44612
44613
44614
44615
44616
44617
44618
44619
44620if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44621 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44622 if test "$USE_DARWIN" = 1; then
44623 LDFLAGS="$LDFLAGS -framework QuickTime"
44624 else
44625 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44626 fi
07bea8f0 44627 fi
5dcf30a0 44628 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44629 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44630 else
44631 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44632 fi
a848cd7e
SC
44633fi
44634if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44635 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44636 if test "$wxUSE_MEDIACTRL" = "yes"; then
44637 LDFLAGS="$LDFLAGS -framework QuickTime"
44638 fi
a848cd7e 44639fi
19b27e78
MW
44640if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44641 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44642fi
a848cd7e
SC
44643
44644
44645LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44646
44647have_cos=0
44648have_floor=0
44649
44650for ac_func in cos
44651do
44652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44653echo "$as_me:$LINENO: checking for $ac_func" >&5
44654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44655if eval "test \"\${$as_ac_var+set}\" = set"; then
44656 echo $ECHO_N "(cached) $ECHO_C" >&6
44657else
44658 cat >conftest.$ac_ext <<_ACEOF
44659/* confdefs.h. */
44660_ACEOF
44661cat confdefs.h >>conftest.$ac_ext
44662cat >>conftest.$ac_ext <<_ACEOF
44663/* end confdefs.h. */
ac1cb8d3
VS
44664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44666#define $ac_func innocuous_$ac_func
44667
a848cd7e
SC
44668/* System header to define __stub macros and hopefully few prototypes,
44669 which can conflict with char $ac_func (); below.
44670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44671 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44672
a848cd7e
SC
44673#ifdef __STDC__
44674# include <limits.h>
44675#else
44676# include <assert.h>
44677#endif
ac1cb8d3
VS
44678
44679#undef $ac_func
44680
a848cd7e
SC
44681/* Override any gcc2 internal prototype to avoid an error. */
44682#ifdef __cplusplus
44683extern "C"
44684{
44685#endif
44686/* We use char because int might match the return type of a gcc2
44687 builtin and then its argument prototype would still apply. */
44688char $ac_func ();
44689/* The GNU C library defines this for functions which it implements
44690 to always fail with ENOSYS. Some functions are actually named
44691 something starting with __ and the normal name is an alias. */
44692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44693choke me
44694#else
44695char (*f) () = $ac_func;
44696#endif
44697#ifdef __cplusplus
44698}
44699#endif
44700
44701int
44702main ()
44703{
44704return f != $ac_func;
44705 ;
44706 return 0;
44707}
44708_ACEOF
44709rm -f conftest.$ac_objext conftest$ac_exeext
44710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44711 (eval $ac_link) 2>conftest.er1
a848cd7e 44712 ac_status=$?
ac1cb8d3
VS
44713 grep -v '^ *+' conftest.er1 >conftest.err
44714 rm -f conftest.er1
44715 cat conftest.err >&5
a848cd7e
SC
44716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44717 (exit $ac_status); } &&
3565d135
RR
44718 { ac_try='test -z "$ac_c_werror_flag"
44719 || test ! -s conftest.err'
ac1cb8d3
VS
44720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44721 (eval $ac_try) 2>&5
44722 ac_status=$?
44723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44724 (exit $ac_status); }; } &&
44725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44727 (eval $ac_try) 2>&5
44728 ac_status=$?
44729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44730 (exit $ac_status); }; }; then
44731 eval "$as_ac_var=yes"
44732else
44733 echo "$as_me: failed program was:" >&5
44734sed 's/^/| /' conftest.$ac_ext >&5
44735
44736eval "$as_ac_var=no"
44737fi
ac1cb8d3
VS
44738rm -f conftest.err conftest.$ac_objext \
44739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44740fi
44741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44743if test `eval echo '${'$as_ac_var'}'` = yes; then
44744 cat >>confdefs.h <<_ACEOF
44745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44746_ACEOF
44747 have_cos=1
44748fi
44749done
44750
44751
44752for ac_func in floor
44753do
44754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44755echo "$as_me:$LINENO: checking for $ac_func" >&5
44756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44757if eval "test \"\${$as_ac_var+set}\" = set"; then
44758 echo $ECHO_N "(cached) $ECHO_C" >&6
44759else
44760 cat >conftest.$ac_ext <<_ACEOF
44761/* confdefs.h. */
44762_ACEOF
44763cat confdefs.h >>conftest.$ac_ext
44764cat >>conftest.$ac_ext <<_ACEOF
44765/* end confdefs.h. */
ac1cb8d3
VS
44766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44768#define $ac_func innocuous_$ac_func
44769
a848cd7e
SC
44770/* System header to define __stub macros and hopefully few prototypes,
44771 which can conflict with char $ac_func (); below.
44772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44773 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44774
a848cd7e
SC
44775#ifdef __STDC__
44776# include <limits.h>
44777#else
44778# include <assert.h>
44779#endif
ac1cb8d3
VS
44780
44781#undef $ac_func
44782
a848cd7e
SC
44783/* Override any gcc2 internal prototype to avoid an error. */
44784#ifdef __cplusplus
44785extern "C"
44786{
44787#endif
44788/* We use char because int might match the return type of a gcc2
44789 builtin and then its argument prototype would still apply. */
44790char $ac_func ();
44791/* The GNU C library defines this for functions which it implements
44792 to always fail with ENOSYS. Some functions are actually named
44793 something starting with __ and the normal name is an alias. */
44794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44795choke me
44796#else
44797char (*f) () = $ac_func;
44798#endif
44799#ifdef __cplusplus
44800}
44801#endif
44802
44803int
44804main ()
44805{
44806return f != $ac_func;
44807 ;
44808 return 0;
44809}
44810_ACEOF
44811rm -f conftest.$ac_objext conftest$ac_exeext
44812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44813 (eval $ac_link) 2>conftest.er1
a848cd7e 44814 ac_status=$?
ac1cb8d3
VS
44815 grep -v '^ *+' conftest.er1 >conftest.err
44816 rm -f conftest.er1
44817 cat conftest.err >&5
a848cd7e
SC
44818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44819 (exit $ac_status); } &&
3565d135
RR
44820 { ac_try='test -z "$ac_c_werror_flag"
44821 || test ! -s conftest.err'
ac1cb8d3
VS
44822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44823 (eval $ac_try) 2>&5
44824 ac_status=$?
44825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44826 (exit $ac_status); }; } &&
44827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44829 (eval $ac_try) 2>&5
44830 ac_status=$?
44831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44832 (exit $ac_status); }; }; then
44833 eval "$as_ac_var=yes"
44834else
44835 echo "$as_me: failed program was:" >&5
44836sed 's/^/| /' conftest.$ac_ext >&5
44837
44838eval "$as_ac_var=no"
44839fi
ac1cb8d3
VS
44840rm -f conftest.err conftest.$ac_objext \
44841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44842fi
44843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44844echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44845if test `eval echo '${'$as_ac_var'}'` = yes; then
44846 cat >>confdefs.h <<_ACEOF
44847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44848_ACEOF
44849 have_floor=1
44850fi
44851done
44852
44853echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
44854echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
44855if test "$have_cos" = 1 -a "$have_floor" = 1; then
44856 echo "$as_me:$LINENO: result: yes" >&5
44857echo "${ECHO_T}yes" >&6
44858else
44859 echo "$as_me:$LINENO: result: no" >&5
44860echo "${ECHO_T}no" >&6
44861 LIBS="$LIBS -lm"
44862 # use different functions to avoid configure caching
44863 have_sin=0
44864 have_ceil=0
44865
44866for ac_func in sin
44867do
44868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44869echo "$as_me:$LINENO: checking for $ac_func" >&5
44870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44871if eval "test \"\${$as_ac_var+set}\" = set"; then
44872 echo $ECHO_N "(cached) $ECHO_C" >&6
44873else
44874 cat >conftest.$ac_ext <<_ACEOF
44875/* confdefs.h. */
44876_ACEOF
44877cat confdefs.h >>conftest.$ac_ext
44878cat >>conftest.$ac_ext <<_ACEOF
44879/* end confdefs.h. */
ac1cb8d3
VS
44880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44882#define $ac_func innocuous_$ac_func
44883
a848cd7e
SC
44884/* System header to define __stub macros and hopefully few prototypes,
44885 which can conflict with char $ac_func (); below.
44886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44887 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44888
a848cd7e
SC
44889#ifdef __STDC__
44890# include <limits.h>
44891#else
44892# include <assert.h>
44893#endif
ac1cb8d3
VS
44894
44895#undef $ac_func
44896
a848cd7e
SC
44897/* Override any gcc2 internal prototype to avoid an error. */
44898#ifdef __cplusplus
44899extern "C"
44900{
44901#endif
44902/* We use char because int might match the return type of a gcc2
44903 builtin and then its argument prototype would still apply. */
44904char $ac_func ();
44905/* The GNU C library defines this for functions which it implements
44906 to always fail with ENOSYS. Some functions are actually named
44907 something starting with __ and the normal name is an alias. */
44908#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44909choke me
44910#else
44911char (*f) () = $ac_func;
44912#endif
44913#ifdef __cplusplus
44914}
44915#endif
44916
44917int
44918main ()
44919{
44920return f != $ac_func;
44921 ;
44922 return 0;
44923}
44924_ACEOF
44925rm -f conftest.$ac_objext conftest$ac_exeext
44926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44927 (eval $ac_link) 2>conftest.er1
a848cd7e 44928 ac_status=$?
ac1cb8d3
VS
44929 grep -v '^ *+' conftest.er1 >conftest.err
44930 rm -f conftest.er1
44931 cat conftest.err >&5
a848cd7e
SC
44932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44933 (exit $ac_status); } &&
3565d135
RR
44934 { ac_try='test -z "$ac_c_werror_flag"
44935 || test ! -s conftest.err'
ac1cb8d3
VS
44936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44937 (eval $ac_try) 2>&5
44938 ac_status=$?
44939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44940 (exit $ac_status); }; } &&
44941 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44943 (eval $ac_try) 2>&5
44944 ac_status=$?
44945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44946 (exit $ac_status); }; }; then
44947 eval "$as_ac_var=yes"
44948else
44949 echo "$as_me: failed program was:" >&5
44950sed 's/^/| /' conftest.$ac_ext >&5
44951
44952eval "$as_ac_var=no"
44953fi
ac1cb8d3
VS
44954rm -f conftest.err conftest.$ac_objext \
44955 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44956fi
44957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44958echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44959if test `eval echo '${'$as_ac_var'}'` = yes; then
44960 cat >>confdefs.h <<_ACEOF
44961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44962_ACEOF
44963 have_sin=1
44964fi
44965done
44966
44967
44968for ac_func in ceil
44969do
44970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44971echo "$as_me:$LINENO: checking for $ac_func" >&5
44972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44973if eval "test \"\${$as_ac_var+set}\" = set"; then
44974 echo $ECHO_N "(cached) $ECHO_C" >&6
44975else
44976 cat >conftest.$ac_ext <<_ACEOF
44977/* confdefs.h. */
44978_ACEOF
44979cat confdefs.h >>conftest.$ac_ext
44980cat >>conftest.$ac_ext <<_ACEOF
44981/* end confdefs.h. */
ac1cb8d3
VS
44982/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44984#define $ac_func innocuous_$ac_func
44985
a848cd7e
SC
44986/* System header to define __stub macros and hopefully few prototypes,
44987 which can conflict with char $ac_func (); below.
44988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44989 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44990
a848cd7e
SC
44991#ifdef __STDC__
44992# include <limits.h>
44993#else
44994# include <assert.h>
44995#endif
ac1cb8d3
VS
44996
44997#undef $ac_func
44998
a848cd7e
SC
44999/* Override any gcc2 internal prototype to avoid an error. */
45000#ifdef __cplusplus
45001extern "C"
45002{
45003#endif
45004/* We use char because int might match the return type of a gcc2
45005 builtin and then its argument prototype would still apply. */
45006char $ac_func ();
45007/* The GNU C library defines this for functions which it implements
45008 to always fail with ENOSYS. Some functions are actually named
45009 something starting with __ and the normal name is an alias. */
45010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45011choke me
45012#else
45013char (*f) () = $ac_func;
45014#endif
45015#ifdef __cplusplus
45016}
45017#endif
45018
45019int
45020main ()
45021{
45022return f != $ac_func;
45023 ;
45024 return 0;
45025}
45026_ACEOF
45027rm -f conftest.$ac_objext conftest$ac_exeext
45028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45029 (eval $ac_link) 2>conftest.er1
a848cd7e 45030 ac_status=$?
ac1cb8d3
VS
45031 grep -v '^ *+' conftest.er1 >conftest.err
45032 rm -f conftest.er1
45033 cat conftest.err >&5
a848cd7e
SC
45034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45035 (exit $ac_status); } &&
3565d135
RR
45036 { ac_try='test -z "$ac_c_werror_flag"
45037 || test ! -s conftest.err'
ac1cb8d3
VS
45038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45039 (eval $ac_try) 2>&5
45040 ac_status=$?
45041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45042 (exit $ac_status); }; } &&
45043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45045 (eval $ac_try) 2>&5
45046 ac_status=$?
45047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45048 (exit $ac_status); }; }; then
45049 eval "$as_ac_var=yes"
45050else
45051 echo "$as_me: failed program was:" >&5
45052sed 's/^/| /' conftest.$ac_ext >&5
45053
45054eval "$as_ac_var=no"
45055fi
ac1cb8d3
VS
45056rm -f conftest.err conftest.$ac_objext \
45057 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45058fi
45059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45060echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45061if test `eval echo '${'$as_ac_var'}'` = yes; then
45062 cat >>confdefs.h <<_ACEOF
45063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45064_ACEOF
45065 have_ceil=1
45066fi
45067done
45068
45069 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
45070echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
45071 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
45072 echo "$as_me:$LINENO: result: yes" >&5
45073echo "${ECHO_T}yes" >&6
45074 else
45075 echo "$as_me:$LINENO: result: no" >&5
45076echo "${ECHO_T}no" >&6
45077 # not sure we should warn the user, crash, etc.
45078 fi
45079fi
45080
45081if test "$wxUSE_GUI" = "yes"; then
45082
45083
8bce5cda
MW
45084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45085 dynamic erase event exec font image minimal mobile \
45086 mobile/wxedit mobile/styles propsize render \
45087 richedit rotate shaped vscroll widgets"
a848cd7e
SC
45088
45089 if test "$wxUSE_MONOLITHIC" != "yes"; then
45090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45091 fi
0b78747f 45092 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45094 if test "$wxUSE_UNIVERSAL" != "yes"; then
45095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45096 fi
45097 fi
45098 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45100 fi
a848cd7e
SC
45101else
45102 SAMPLES_SUBDIRS="console"
45103fi
45104
45105
48f625bc 45106if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45107 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45108elif test "$GCC" = yes ; then
45109 CWARNINGS="-Wall -Wundef"
45110fi
45111
48f625bc 45112if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45113 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45114elif test "$GXX" = yes ; then
45115 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45116fi
a848cd7e 45117
a848cd7e 45118
5ff751d6
VZ
45119WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45120WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45121
45122
c92ad099 45123CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45124 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45125 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45126 $CPPFLAGS `
5ff751d6 45127
8aeeb05c 45128C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45129CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45130CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45131
45132WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45133
a848cd7e 45134
95986553
DE
45135if test "x$MWCC" = "xyes"; then
45136
45137 CC="$CC -cwd source -I-"
45138 CXX="$CXX -cwd source -I-"
45139fi
45140
a848cd7e 45141
0c3c69fc 45142LIBS=`echo $LIBS`
a848cd7e
SC
45143EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45144EXTRALIBS_XML="$EXPAT_LINK"
45145EXTRALIBS_HTML="$MSPACK_LINK"
45146EXTRALIBS_ODBC="$ODBC_LINK"
45147if test "$wxUSE_GUI" = "yes"; then
3565d135 45148 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45149fi
45150if test "$wxUSE_OPENGL" = "yes"; then
45151 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45152fi
45153
8aeeb05c 45154LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45155
5ff751d6 45156WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45157
45158if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45159 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45160fi
45161if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45162 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45163fi
45164if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45165 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45166fi
45167if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45168 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45169fi
45170if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45171 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45172fi
45173if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45174 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45175fi
45176if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45177 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45178fi
45179
45180for i in $wxconfig_3rdparty ; do
5ff751d6 45181 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45182done
45183
45184
45185if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45186 WXUNIV=1
45187else
45188 WXUNIV=0
45189fi
45190
45191
45192
45193
45194
45195
45196
45197
45198
45199if test $wxUSE_MONOLITHIC = "yes" ; then
45200 MONOLITHIC=1
45201else
45202 MONOLITHIC=0
45203fi
45204
45205if test $wxUSE_PLUGINS = "yes" ; then
45206 USE_PLUGINS=1
45207else
45208 USE_PLUGINS=0
45209fi
45210
45211if test $wxUSE_ODBC != "no" ; then
45212 USE_ODBC=1
45213else
45214 USE_ODBC=0
45215fi
45216
16358932
VZ
45217if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45218 USE_QA=1
45219else
45220 USE_QA=0
45221fi
45222
a848cd7e
SC
45223if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45224 OFFICIAL_BUILD=1
45225else
45226 OFFICIAL_BUILD=0
45227fi
45228
45229
45230
45231
45232
45233
45234
45235
45236
45237
45238
45239
45240
45241
45242
45243
45244
45245
45246
ceec2216 45247
d1c38808 45248
3565d135 45249
a848cd7e
SC
45250
45251
45252TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45253
45254
45255
45256
45257
45258
45259
45260
4d4ff94c
VZ
45261case "$TOOLKIT" in
45262 GTK)
45263 TOOLKIT_USER="GTK+"
45264 if test "$WXGTK20" = 1; then
45265 TOOLKIT_USER="$TOOLKIT_USER 2"
45266 fi
9a8f0513 45267 ;;
4d4ff94c
VZ
45268
45269 *)
45270 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45271 ;;
4d4ff94c 45272esac
a848cd7e 45273
fb00f58d
JS
45274if test "$wxUSE_WINE" = "yes"; then
45275 BAKEFILE_FORCE_PLATFORM=win32
45276fi
45277
9a8f0513 45278
1e9e8aba
DE
45279
45280
a848cd7e
SC
45281 if test "x$BAKEFILE_HOST" = "x"; then
45282 BAKEFILE_HOST="${host}"
45283 fi
45284
45285 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45286
45287 if test -n "$ac_tool_prefix"; then
45288 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45289set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45290echo "$as_me:$LINENO: checking for $ac_word" >&5
45291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45292if test "${ac_cv_prog_RANLIB+set}" = set; then
45293 echo $ECHO_N "(cached) $ECHO_C" >&6
45294else
45295 if test -n "$RANLIB"; then
45296 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45297else
45298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45299for as_dir in $PATH
45300do
45301 IFS=$as_save_IFS
45302 test -z "$as_dir" && as_dir=.
45303 for ac_exec_ext in '' $ac_executable_extensions; do
45304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45305 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45307 break 2
45308 fi
45309done
45310done
45311
45312fi
45313fi
45314RANLIB=$ac_cv_prog_RANLIB
45315if test -n "$RANLIB"; then
45316 echo "$as_me:$LINENO: result: $RANLIB" >&5
45317echo "${ECHO_T}$RANLIB" >&6
45318else
45319 echo "$as_me:$LINENO: result: no" >&5
45320echo "${ECHO_T}no" >&6
45321fi
45322
45323fi
45324if test -z "$ac_cv_prog_RANLIB"; then
45325 ac_ct_RANLIB=$RANLIB
45326 # Extract the first word of "ranlib", so it can be a program name with args.
45327set dummy ranlib; ac_word=$2
45328echo "$as_me:$LINENO: checking for $ac_word" >&5
45329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45330if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45331 echo $ECHO_N "(cached) $ECHO_C" >&6
45332else
45333 if test -n "$ac_ct_RANLIB"; then
45334 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45335else
45336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45337for as_dir in $PATH
45338do
45339 IFS=$as_save_IFS
45340 test -z "$as_dir" && as_dir=.
45341 for ac_exec_ext in '' $ac_executable_extensions; do
45342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45343 ac_cv_prog_ac_ct_RANLIB="ranlib"
45344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45345 break 2
45346 fi
45347done
45348done
45349
45350 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45351fi
45352fi
45353ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45354if test -n "$ac_ct_RANLIB"; then
45355 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45356echo "${ECHO_T}$ac_ct_RANLIB" >&6
45357else
45358 echo "$as_me:$LINENO: result: no" >&5
45359echo "${ECHO_T}no" >&6
45360fi
45361
45362 RANLIB=$ac_ct_RANLIB
45363else
45364 RANLIB="$ac_cv_prog_RANLIB"
45365fi
45366
45367 # Find a good install program. We prefer a C program (faster),
45368# so one script is as good as another. But avoid the broken or
45369# incompatible versions:
45370# SysV /etc/install, /usr/sbin/install
45371# SunOS /usr/etc/install
45372# IRIX /sbin/install
45373# AIX /bin/install
45374# AmigaOS /C/install, which installs bootblocks on floppy discs
45375# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45376# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45377# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45378# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45379# ./install, which can be erroneously created by make from ./install.sh.
45380echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45381echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45382if test -z "$INSTALL"; then
45383if test "${ac_cv_path_install+set}" = set; then
45384 echo $ECHO_N "(cached) $ECHO_C" >&6
45385else
45386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45387for as_dir in $PATH
45388do
45389 IFS=$as_save_IFS
45390 test -z "$as_dir" && as_dir=.
45391 # Account for people who put trailing slashes in PATH elements.
45392case $as_dir/ in
45393 ./ | .// | /cC/* | \
45394 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45395 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45396 /usr/ucb/* ) ;;
45397 *)
45398 # OSF1 and SCO ODT 3.0 have their own names for install.
45399 # Don't use installbsd from OSF since it installs stuff as root
45400 # by default.
45401 for ac_prog in ginstall scoinst install; do
45402 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45403 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45404 if test $ac_prog = install &&
45405 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45406 # AIX install. It has an incompatible calling convention.
45407 :
45408 elif test $ac_prog = install &&
45409 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45410 # program-specific install script used by HP pwplus--don't use.
45411 :
45412 else
45413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45414 break 3
45415 fi
45416 fi
a848cd7e
SC
45417 done
45418 done
45419 ;;
45420esac
45421done
45422
45423
45424fi
45425 if test "${ac_cv_path_install+set}" = set; then
45426 INSTALL=$ac_cv_path_install
45427 else
45428 # As a last resort, use the slow shell script. We don't cache a
45429 # path for INSTALL within a source directory, because that will
45430 # break other packages using the cache if that directory is
45431 # removed, or if the path is relative.
45432 INSTALL=$ac_install_sh
45433 fi
45434fi
45435echo "$as_me:$LINENO: result: $INSTALL" >&5
45436echo "${ECHO_T}$INSTALL" >&6
45437
45438# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45439# It thinks the first close brace ends the variable substitution.
45440test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45441
45442test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45443
45444test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45445
45446 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45447echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45448LN_S=$as_ln_s
45449if test "$LN_S" = "ln -s"; then
45450 echo "$as_me:$LINENO: result: yes" >&5
45451echo "${ECHO_T}yes" >&6
45452else
45453 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45454echo "${ECHO_T}no, using $LN_S" >&6
45455fi
45456
45457
45458 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45459echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45460set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45461if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45462 echo $ECHO_N "(cached) $ECHO_C" >&6
45463else
45464 cat >conftest.make <<\_ACEOF
45465all:
45466 @echo 'ac_maketemp="$(MAKE)"'
45467_ACEOF
45468# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45469eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45470if test -n "$ac_maketemp"; then
45471 eval ac_cv_prog_make_${ac_make}_set=yes
45472else
45473 eval ac_cv_prog_make_${ac_make}_set=no
45474fi
45475rm -f conftest.make
45476fi
45477if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45478 echo "$as_me:$LINENO: result: yes" >&5
45479echo "${ECHO_T}yes" >&6
45480 SET_MAKE=
45481else
45482 echo "$as_me:$LINENO: result: no" >&5
45483echo "${ECHO_T}no" >&6
45484 SET_MAKE="MAKE=${MAKE-make}"
45485fi
45486
45487
45488
45489 if test -n "$ac_tool_prefix"; then
45490 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45491set dummy ${ac_tool_prefix}ar; ac_word=$2
45492echo "$as_me:$LINENO: checking for $ac_word" >&5
45493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45494if test "${ac_cv_prog_AR+set}" = set; then
45495 echo $ECHO_N "(cached) $ECHO_C" >&6
45496else
45497 if test -n "$AR"; then
45498 ac_cv_prog_AR="$AR" # Let the user override the test.
45499else
45500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45501for as_dir in $PATH
45502do
45503 IFS=$as_save_IFS
45504 test -z "$as_dir" && as_dir=.
45505 for ac_exec_ext in '' $ac_executable_extensions; do
45506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45507 ac_cv_prog_AR="${ac_tool_prefix}ar"
45508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45509 break 2
45510 fi
45511done
45512done
45513
45514fi
45515fi
45516AR=$ac_cv_prog_AR
45517if test -n "$AR"; then
45518 echo "$as_me:$LINENO: result: $AR" >&5
45519echo "${ECHO_T}$AR" >&6
45520else
45521 echo "$as_me:$LINENO: result: no" >&5
45522echo "${ECHO_T}no" >&6
45523fi
45524
45525fi
45526if test -z "$ac_cv_prog_AR"; then
45527 ac_ct_AR=$AR
45528 # Extract the first word of "ar", so it can be a program name with args.
45529set dummy ar; ac_word=$2
45530echo "$as_me:$LINENO: checking for $ac_word" >&5
45531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45532if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45533 echo $ECHO_N "(cached) $ECHO_C" >&6
45534else
45535 if test -n "$ac_ct_AR"; then
45536 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45537else
45538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45539for as_dir in $PATH
45540do
45541 IFS=$as_save_IFS
45542 test -z "$as_dir" && as_dir=.
45543 for ac_exec_ext in '' $ac_executable_extensions; do
45544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45545 ac_cv_prog_ac_ct_AR="ar"
45546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45547 break 2
45548 fi
45549done
45550done
45551
45552 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45553fi
45554fi
45555ac_ct_AR=$ac_cv_prog_ac_ct_AR
45556if test -n "$ac_ct_AR"; then
45557 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45558echo "${ECHO_T}$ac_ct_AR" >&6
45559else
45560 echo "$as_me:$LINENO: result: no" >&5
45561echo "${ECHO_T}no" >&6
45562fi
45563
45564 AR=$ac_ct_AR
45565else
45566 AR="$ac_cv_prog_AR"
45567fi
45568
45569 if test -n "$ac_tool_prefix"; then
45570 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45571set dummy ${ac_tool_prefix}strip; ac_word=$2
45572echo "$as_me:$LINENO: checking for $ac_word" >&5
45573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45574if test "${ac_cv_prog_STRIP+set}" = set; then
45575 echo $ECHO_N "(cached) $ECHO_C" >&6
45576else
45577 if test -n "$STRIP"; then
45578 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45579else
45580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45581for as_dir in $PATH
45582do
45583 IFS=$as_save_IFS
45584 test -z "$as_dir" && as_dir=.
45585 for ac_exec_ext in '' $ac_executable_extensions; do
45586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45587 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45589 break 2
45590 fi
45591done
45592done
45593
45594fi
45595fi
45596STRIP=$ac_cv_prog_STRIP
45597if test -n "$STRIP"; then
45598 echo "$as_me:$LINENO: result: $STRIP" >&5
45599echo "${ECHO_T}$STRIP" >&6
45600else
45601 echo "$as_me:$LINENO: result: no" >&5
45602echo "${ECHO_T}no" >&6
45603fi
45604
45605fi
45606if test -z "$ac_cv_prog_STRIP"; then
45607 ac_ct_STRIP=$STRIP
45608 # Extract the first word of "strip", so it can be a program name with args.
45609set dummy strip; ac_word=$2
45610echo "$as_me:$LINENO: checking for $ac_word" >&5
45611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45612if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45613 echo $ECHO_N "(cached) $ECHO_C" >&6
45614else
45615 if test -n "$ac_ct_STRIP"; then
45616 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45617else
45618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45619for as_dir in $PATH
45620do
45621 IFS=$as_save_IFS
45622 test -z "$as_dir" && as_dir=.
45623 for ac_exec_ext in '' $ac_executable_extensions; do
45624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45625 ac_cv_prog_ac_ct_STRIP="strip"
45626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45627 break 2
45628 fi
45629done
45630done
45631
45632 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45633fi
45634fi
45635ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45636if test -n "$ac_ct_STRIP"; then
45637 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45638echo "${ECHO_T}$ac_ct_STRIP" >&6
45639else
45640 echo "$as_me:$LINENO: result: no" >&5
45641echo "${ECHO_T}no" >&6
45642fi
45643
45644 STRIP=$ac_ct_STRIP
45645else
45646 STRIP="$ac_cv_prog_STRIP"
45647fi
45648
45649 if test -n "$ac_tool_prefix"; then
45650 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45651set dummy ${ac_tool_prefix}nm; ac_word=$2
45652echo "$as_me:$LINENO: checking for $ac_word" >&5
45653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45654if test "${ac_cv_prog_NM+set}" = set; then
45655 echo $ECHO_N "(cached) $ECHO_C" >&6
45656else
45657 if test -n "$NM"; then
45658 ac_cv_prog_NM="$NM" # Let the user override the test.
45659else
45660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45661for as_dir in $PATH
45662do
45663 IFS=$as_save_IFS
45664 test -z "$as_dir" && as_dir=.
45665 for ac_exec_ext in '' $ac_executable_extensions; do
45666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45667 ac_cv_prog_NM="${ac_tool_prefix}nm"
45668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45669 break 2
45670 fi
45671done
45672done
45673
45674fi
45675fi
45676NM=$ac_cv_prog_NM
45677if test -n "$NM"; then
45678 echo "$as_me:$LINENO: result: $NM" >&5
45679echo "${ECHO_T}$NM" >&6
45680else
45681 echo "$as_me:$LINENO: result: no" >&5
45682echo "${ECHO_T}no" >&6
45683fi
45684
45685fi
45686if test -z "$ac_cv_prog_NM"; then
45687 ac_ct_NM=$NM
45688 # Extract the first word of "nm", so it can be a program name with args.
45689set dummy nm; ac_word=$2
45690echo "$as_me:$LINENO: checking for $ac_word" >&5
45691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45692if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45693 echo $ECHO_N "(cached) $ECHO_C" >&6
45694else
45695 if test -n "$ac_ct_NM"; then
45696 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45697else
45698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45699for as_dir in $PATH
45700do
45701 IFS=$as_save_IFS
45702 test -z "$as_dir" && as_dir=.
45703 for ac_exec_ext in '' $ac_executable_extensions; do
45704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45705 ac_cv_prog_ac_ct_NM="nm"
45706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45707 break 2
45708 fi
45709done
45710done
45711
45712 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45713fi
45714fi
45715ac_ct_NM=$ac_cv_prog_ac_ct_NM
45716if test -n "$ac_ct_NM"; then
45717 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45718echo "${ECHO_T}$ac_ct_NM" >&6
45719else
45720 echo "$as_me:$LINENO: result: no" >&5
45721echo "${ECHO_T}no" >&6
45722fi
45723
45724 NM=$ac_ct_NM
45725else
45726 NM="$ac_cv_prog_NM"
45727fi
45728
45729
45730 case ${BAKEFILE_HOST} in
45731 *-hp-hpux* )
1e9e8aba 45732 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45733 ;;
45734 *) INSTALL_DIR="$INSTALL -d"
45735 ;;
45736 esac
45737
45738
45739 LDFLAGS_GUI=
45740 case ${BAKEFILE_HOST} in
45741 *-*-cygwin* | *-*-mingw32* )
45742 LDFLAGS_GUI="-mwindows"
45743 esac
45744
45745
45746 fi
45747
45748 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45749echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45750if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45751 echo $ECHO_N "(cached) $ECHO_C" >&6
45752else
45753
45754 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45755 egrep -s GNU > /dev/null); then
45756 bakefile_cv_prog_makeisgnu="yes"
45757 else
45758 bakefile_cv_prog_makeisgnu="no"
45759 fi
45760
45761fi
45762echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45763echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45764
45765 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45766 IF_GNU_MAKE=""
45767 else
45768 IF_GNU_MAKE="#"
45769 fi
45770
45771
45772
45773 PLATFORM_UNIX=0
45774 PLATFORM_WIN32=0
45775 PLATFORM_MSDOS=0
45776 PLATFORM_MAC=0
1e9e8aba 45777 PLATFORM_MACOS=0
a848cd7e
SC
45778 PLATFORM_MACOSX=0
45779 PLATFORM_OS2=0
1e9e8aba 45780 PLATFORM_BEOS=0
a848cd7e
SC
45781
45782 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45783 case "${BAKEFILE_HOST}" in
810b94f0 45784 *-*-mingw32* )
a848cd7e
SC
45785 PLATFORM_WIN32=1
45786 ;;
45787 *-pc-msdosdjgpp )
45788 PLATFORM_MSDOS=1
45789 ;;
45790 *-pc-os2_emx | *-pc-os2-emx )
45791 PLATFORM_OS2=1
45792 ;;
47bd5406 45793 *-*-darwin* )
a848cd7e
SC
45794 PLATFORM_MAC=1
45795 PLATFORM_MACOSX=1
45796 ;;
1e9e8aba
DE
45797 *-*-beos* )
45798 PLATFORM_BEOS=1
45799 ;;
45800 powerpc-apple-macos* )
45801 PLATFORM_MAC=1
45802 PLATFORM_MACOS=1
45803 ;;
a848cd7e
SC
45804 * )
45805 PLATFORM_UNIX=1
45806 ;;
45807 esac
45808 else
45809 case "$BAKEFILE_FORCE_PLATFORM" in
45810 win32 )
45811 PLATFORM_WIN32=1
45812 ;;
45813 msdos )
45814 PLATFORM_MSDOS=1
45815 ;;
45816 os2 )
45817 PLATFORM_OS2=1
45818 ;;
45819 darwin )
45820 PLATFORM_MAC=1
45821 PLATFORM_MACOSX=1
45822 ;;
45823 unix )
45824 PLATFORM_UNIX=1
45825 ;;
1e9e8aba
DE
45826 beos )
45827 PLATFORM_BEOS=1
45828 ;;
a848cd7e
SC
45829 * )
45830 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45831echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45832 { (exit 1); exit 1; }; }
45833 ;;
45834 esac
45835 fi
45836
45837
45838
45839
45840
45841
45842
45843
45844
1e9e8aba
DE
45845
45846
a848cd7e
SC
45847 # Check whether --enable-omf or --disable-omf was given.
45848if test "${enable_omf+set}" = set; then
45849 enableval="$enable_omf"
45850 bk_os2_use_omf="$enableval"
45851fi;
45852
45853 case "${BAKEFILE_HOST}" in
45854 *-*-darwin* )
47bd5406
VZ
45855 if test "x$GCC" = "xyes"; then
45856 CFLAGS="$CFLAGS -fno-common"
45857 CXXFLAGS="$CXXFLAGS -fno-common"
45858 fi
45859 if test "x$XLCC" = "xyes"; then
45860 CFLAGS="$CFLAGS -qnocommon"
45861 CXXFLAGS="$CXXFLAGS -qnocommon"
45862 fi
a848cd7e
SC
45863 ;;
45864
45865 *-pc-os2_emx | *-pc-os2-emx )
45866 if test "x$bk_os2_use_omf" = "xyes" ; then
45867 AR=emxomfar
45868 RANLIB=:
45869 LDFLAGS="-Zomf $LDFLAGS"
45870 CFLAGS="-Zomf $CFLAGS"
45871 CXXFLAGS="-Zomf $CXXFLAGS"
45872 OS2_LIBEXT="lib"
45873 else
45874 OS2_LIBEXT="a"
45875 fi
45876 ;;
1e9e8aba
DE
45877
45878 i*86-*-beos* )
45879 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
45880 ;;
a848cd7e
SC
45881 esac
45882
45883
45884 SO_SUFFIX="so"
45885 SO_SUFFIX_MODULE="so"
45886 EXEEXT=""
45887 LIBPREFIX="lib"
45888 LIBEXT=".a"
45889 DLLPREFIX="lib"
45890 DLLPREFIX_MODULE=""
45891 DLLIMP_SUFFIX=""
810b94f0 45892 dlldir="$libdir"
a848cd7e
SC
45893
45894 case "${BAKEFILE_HOST}" in
45895 *-hp-hpux* )
45896 SO_SUFFIX="sl"
45897 SO_SUFFIX_MODULE="sl"
45898 ;;
45899 *-*-aix* )
45900 SO_SUFFIX="a"
45901 SO_SUFFIX_MODULE="a"
45902 ;;
810b94f0
MW
45903 *-*-cygwin* )
45904 SO_SUFFIX="dll"
45905 SO_SUFFIX_MODULE="dll"
45906 DLLIMP_SUFFIX="dll.a"
45907 EXEEXT=".exe"
45908 DLLPREFIX="cyg"
45909 dlldir="$bindir"
45910 ;;
45911 *-*-mingw32* )
a848cd7e
SC
45912 SO_SUFFIX="dll"
45913 SO_SUFFIX_MODULE="dll"
45914 DLLIMP_SUFFIX="dll.a"
45915 EXEEXT=".exe"
45916 DLLPREFIX=""
810b94f0 45917 dlldir="$bindir"
a848cd7e
SC
45918 ;;
45919 *-pc-msdosdjgpp )
45920 EXEEXT=".exe"
45921 DLLPREFIX=""
810b94f0 45922 dlldir="$bindir"
a848cd7e
SC
45923 ;;
45924 *-pc-os2_emx | *-pc-os2-emx )
45925 SO_SUFFIX="dll"
45926 SO_SUFFIX_MODULE="dll"
45927 DLLIMP_SUFFIX=$OS2_LIBEXT
45928 EXEEXT=".exe"
45929 DLLPREFIX=""
45930 LIBPREFIX=""
45931 LIBEXT=".$OS2_LIBEXT"
810b94f0 45932 dlldir="$bindir"
a848cd7e 45933 ;;
47bd5406 45934 *-*-darwin* )
a848cd7e
SC
45935 SO_SUFFIX="dylib"
45936 SO_SUFFIX_MODULE="bundle"
45937 ;;
45938 esac
45939
45940 if test "x$DLLIMP_SUFFIX" = "x" ; then
45941 DLLIMP_SUFFIX="$SO_SUFFIX"
45942 fi
45943
45944
45945
45946
45947
45948
45949
45950
45951
45952
45953
810b94f0 45954
1e9e8aba
DE
45955 PIC_FLAG=""
45956 if test "x$GCC" = "xyes"; then
a848cd7e
SC
45957 PIC_FLAG="-fPIC"
45958 fi
45959
1e9e8aba
DE
45960 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
45961 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 45962 WINDOWS_IMPLIB=0
1e9e8aba 45963
a848cd7e
SC
45964 case "${BAKEFILE_HOST}" in
45965 *-hp-hpux* )
1e9e8aba 45966 if test "x$GCC" != "xyes"; then
a848cd7e
SC
45967 LDFLAGS="$LDFLAGS -L/usr/lib"
45968
45969 SHARED_LD_CC="${CC} -b -o"
45970 SHARED_LD_CXX="${CXX} -b -o"
45971 PIC_FLAG="+Z"
45972 fi
45973 ;;
45974
45975 *-*-linux* )
45976 if test "x$GCC" != "xyes"; then
45977 echo "$as_me:$LINENO: checking for Intel compiler" >&5
45978echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
45979if test "${bakefile_cv_prog_icc+set}" = set; then
45980 echo $ECHO_N "(cached) $ECHO_C" >&6
45981else
45982
45983 cat >conftest.$ac_ext <<_ACEOF
45984/* confdefs.h. */
45985_ACEOF
45986cat confdefs.h >>conftest.$ac_ext
45987cat >>conftest.$ac_ext <<_ACEOF
45988/* end confdefs.h. */
45989
45990int
45991main ()
45992{
45993
45994 #ifndef __INTEL_COMPILER
45995 #error Not icc
45996 #endif
45997
45998 ;
45999 return 0;
46000}
46001_ACEOF
46002rm -f conftest.$ac_objext
46003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46004 (eval $ac_compile) 2>conftest.er1
a848cd7e 46005 ac_status=$?
ac1cb8d3
VS
46006 grep -v '^ *+' conftest.er1 >conftest.err
46007 rm -f conftest.er1
46008 cat conftest.err >&5
a848cd7e
SC
46009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46010 (exit $ac_status); } &&
3565d135
RR
46011 { ac_try='test -z "$ac_c_werror_flag"
46012 || test ! -s conftest.err'
ac1cb8d3
VS
46013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46014 (eval $ac_try) 2>&5
46015 ac_status=$?
46016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46017 (exit $ac_status); }; } &&
46018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46020 (eval $ac_try) 2>&5
46021 ac_status=$?
46022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46023 (exit $ac_status); }; }; then
46024 bakefile_cv_prog_icc=yes
46025else
46026 echo "$as_me: failed program was:" >&5
46027sed 's/^/| /' conftest.$ac_ext >&5
46028
46029bakefile_cv_prog_icc=no
46030
46031fi
ac1cb8d3 46032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46033
46034fi
46035echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46036echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46037 if test "$bakefile_cv_prog_icc" = "yes"; then
46038 PIC_FLAG="-KPIC"
46039 fi
46040 fi
46041 ;;
46042
46043 *-*-solaris2* )
46044 if test "x$GCC" != xyes ; then
46045 SHARED_LD_CC="${CC} -G -o"
46046 SHARED_LD_CXX="${CXX} -G -o"
46047 PIC_FLAG="-KPIC"
46048 fi
46049 ;;
46050
46051 *-*-darwin* )
46052
473276a9
VS
46053D='$'
46054cat <<EOF >shared-ld-sh
a848cd7e
SC
46055#!/bin/sh
46056#-----------------------------------------------------------------------------
46057#-- Name: distrib/mac/shared-ld-sh
46058#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46059#-- Author: Gilles Depeyrot
46060#-- Copyright: (c) 2002 Gilles Depeyrot
46061#-- Licence: any use permitted
46062#-----------------------------------------------------------------------------
46063
46064verbose=0
46065args=""
46066objects=""
46067linking_flag="-dynamiclib"
810b94f0 46068ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46069
473276a9
VS
46070while test ${D}# -gt 0; do
46071 case ${D}1 in
a848cd7e
SC
46072
46073 -v)
46074 verbose=1
46075 ;;
46076
46077 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46078 # collect these options and values
473276a9 46079 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46080 shift
46081 ;;
46082
810b94f0
MW
46083 -s|-Wl,*)
46084 # collect these load args
46085 ldargs="${D}{ldargs} ${D}1"
2113bc77 46086 ;;
810b94f0
MW
46087
46088 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46089 # collect these options
473276a9 46090 args="${D}{args} ${D}1"
a848cd7e
SC
46091 ;;
46092
46093 -dynamiclib|-bundle)
473276a9 46094 linking_flag="${D}1"
a848cd7e
SC
46095 ;;
46096
46097 -*)
473276a9 46098 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46099 exit 1
46100 ;;
46101
46102 *.o | *.a | *.dylib)
46103 # collect object files
473276a9 46104 objects="${D}{objects} ${D}1"
a848cd7e
SC
46105 ;;
46106
46107 *)
473276a9 46108 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46109 exit 1
46110 ;;
46111
46112 esac
46113 shift
46114done
46115
810b94f0
MW
46116status=0
46117
a848cd7e
SC
46118#
46119# Link one module containing all the others
46120#
473276a9 46121if test ${D}{verbose} = 1; then
810b94f0 46122 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46123fi
810b94f0 46124c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46125status=${D}?
a848cd7e
SC
46126
46127#
810b94f0
MW
46128# Link the shared library from the single module created, but only if the
46129# previous command didn't fail:
a848cd7e 46130#
810b94f0
MW
46131if test ${D}{status} = 0; then
46132 if test ${D}{verbose} = 1; then
46133 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46134 fi
46135 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46136 status=${D}?
a848cd7e
SC
46137fi
46138
46139#
46140# Remove intermediate module
46141#
473276a9 46142rm -f master.${D}${D}.o
a848cd7e 46143
810b94f0 46144exit ${D}status
a848cd7e 46145EOF
473276a9 46146
583d6b4b
VZ
46147 chmod +x shared-ld-sh
46148
46149 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46150 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46151
46152
46153 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46154echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46155if test "${bakefile_cv_gcc31+set}" = set; then
46156 echo $ECHO_N "(cached) $ECHO_C" >&6
46157else
46158
46159 cat >conftest.$ac_ext <<_ACEOF
46160/* confdefs.h. */
46161_ACEOF
46162cat confdefs.h >>conftest.$ac_ext
46163cat >>conftest.$ac_ext <<_ACEOF
46164/* end confdefs.h. */
46165
46166int
46167main ()
46168{
46169
46170 #if (__GNUC__ < 3) || \
46171 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
46172 #error old gcc
46173 #endif
a848cd7e 46174
583d6b4b
VZ
46175 ;
46176 return 0;
46177}
46178_ACEOF
46179rm -f conftest.$ac_objext
46180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46181 (eval $ac_compile) 2>conftest.er1
46182 ac_status=$?
46183 grep -v '^ *+' conftest.er1 >conftest.err
46184 rm -f conftest.er1
46185 cat conftest.err >&5
46186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46187 (exit $ac_status); } &&
3565d135
RR
46188 { ac_try='test -z "$ac_c_werror_flag"
46189 || test ! -s conftest.err'
583d6b4b
VZ
46190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46191 (eval $ac_try) 2>&5
46192 ac_status=$?
46193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46194 (exit $ac_status); }; } &&
46195 { ac_try='test -s conftest.$ac_objext'
46196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46197 (eval $ac_try) 2>&5
46198 ac_status=$?
46199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46200 (exit $ac_status); }; }; then
46201
46202 bakefile_cv_gcc31=yes
46203
46204else
46205 echo "$as_me: failed program was:" >&5
46206sed 's/^/| /' conftest.$ac_ext >&5
46207
46208
46209 bakefile_cv_gcc31=no
46210
46211
46212fi
46213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46214
46215fi
46216echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46217echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46218 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46219 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46220 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46221 else
46222 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46223 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46224 fi
46225
47bd5406
VZ
46226 if test "x$GCC" == "xyes"; then
46227 PIC_FLAG="-dynamic -fPIC"
46228 fi
46229 if test "x$XLCC" = "xyes"; then
46230 PIC_FLAG="-dynamic -DPIC"
46231 fi
a848cd7e
SC
46232 ;;
46233
46234 *-*-aix* )
f6b50c59 46235 if test "x$GCC" = "xyes"; then
583d6b4b 46236 PIC_FLAG=""
f6b50c59 46237
583d6b4b
VZ
46238 case "${BAKEFILE_HOST}" in
46239 *-*-aix5* )
46240 LD_EXPFULL="-Wl,-bexpfull"
46241 ;;
46242 esac
f6b50c59 46243
583d6b4b
VZ
46244 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46245 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46246 else
46247 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46248set dummy makeC++SharedLib; ac_word=$2
46249echo "$as_me:$LINENO: checking for $ac_word" >&5
46250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46251if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46252 echo $ECHO_N "(cached) $ECHO_C" >&6
46253else
46254 if test -n "$AIX_CXX_LD"; then
46255 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46256else
46257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46258for as_dir in $PATH
46259do
46260 IFS=$as_save_IFS
46261 test -z "$as_dir" && as_dir=.
46262 for ac_exec_ext in '' $ac_executable_extensions; do
46263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46264 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46266 break 2
46267 fi
46268done
46269done
46270
46271 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46272fi
46273fi
46274AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46275if test -n "$AIX_CXX_LD"; then
46276 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46277echo "${ECHO_T}$AIX_CXX_LD" >&6
46278else
46279 echo "$as_me:$LINENO: result: no" >&5
46280echo "${ECHO_T}no" >&6
46281fi
46282
f6b50c59 46283 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46284 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46285 fi
46286 ;;
46287
46288 *-*-beos* )
1e9e8aba
DE
46289 SHARED_LD_CC="${LD} -nostart -o"
46290 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46291 ;;
46292
46293 *-*-irix* )
46294 if test "x$GCC" != "xyes"; then
46295 PIC_FLAG="-KPIC"
46296 fi
46297 ;;
46298
46299 *-*-cygwin* | *-*-mingw32* )
46300 PIC_FLAG=""
1e9e8aba
DE
46301 SHARED_LD_CC="\$(CC) -shared -o"
46302 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46303 WINDOWS_IMPLIB=1
a848cd7e
SC
46304 ;;
46305
46306 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46307 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46308 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46309 PIC_FLAG=""
473276a9
VS
46310
46311D='$'
46312cat <<EOF >dllar.sh
46313#!/bin/sh
46314#
46315# dllar - a tool to build both a .dll and an .a file
46316# from a set of object (.o) files for EMX/OS2.
46317#
46318# Written by Andrew Zabolotny, bit@freya.etu.ru
46319# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46320#
46321# This script will accept a set of files on the command line.
46322# All the public symbols from the .o files will be exported into
46323# a .DEF file, then linker will be run (through gcc) against them to
46324# build a shared library consisting of all given .o files. All libraries
46325# (.a) will be first decompressed into component .o files then act as
46326# described above. You can optionally give a description (-d "description")
46327# which will be put into .DLL. To see the list of accepted options (as well
46328# as command-line format) simply run this program without options. The .DLL
46329# is built to be imported by name (there is no guarantee that new versions
46330# of the library you build will have same ordinals for same symbols).
46331#
46332# dllar is free software; you can redistribute it and/or modify
46333# it under the terms of the GNU General Public License as published by
46334# the Free Software Foundation; either version 2, or (at your option)
46335# any later version.
46336#
46337# dllar is distributed in the hope that it will be useful,
46338# but WITHOUT ANY WARRANTY; without even the implied warranty of
46339# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46340# GNU General Public License for more details.
46341#
46342# You should have received a copy of the GNU General Public License
46343# along with dllar; see the file COPYING. If not, write to the Free
46344# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46345# 02111-1307, USA.
46346
46347# To successfuly run this program you will need:
46348# - Current drive should have LFN support (HPFS, ext2, network, etc)
46349# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46350# - gcc
46351# (used to build the .dll)
46352# - emxexp
46353# (used to create .def file from .o files)
46354# - emximp
46355# (used to create .a file from .def file)
46356# - GNU text utilites (cat, sort, uniq)
46357# used to process emxexp output
46358# - GNU file utilities (mv, rm)
46359# - GNU sed
46360# - lxlite (optional, see flag below)
46361# (used for general .dll cleanup)
46362#
46363
46364flag_USE_LXLITE=1;
46365
46366#
46367# helper functions
46368# basnam, variant of basename, which does _not_ remove the path, _iff_
46369# second argument (suffix to remove) is given
46370basnam(){
46371 case ${D}# in
46372 1)
1e9e8aba 46373 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46374 ;;
46375 2)
46376 echo ${D}1 | sed 's/'${D}2'${D}//'
46377 ;;
46378 *)
46379 echo "error in basnam ${D}*"
46380 exit 8
46381 ;;
46382 esac
46383}
46384
46385# Cleanup temporary files and output
46386CleanUp() {
46387 cd ${D}curDir
46388 for i in ${D}inputFiles ; do
46389 case ${D}i in
46390 *!)
46391 rm -rf \`basnam ${D}i !\`
46392 ;;
46393 *)
46394 ;;
46395 esac
46396 done
46397
46398 # Kill result in case of failure as there is just to many stupid make/nmake
46399 # things out there which doesn't do this.
1e9e8aba 46400 if [ ${D}# -eq 0 ]; then
473276a9
VS
46401 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46402 fi
46403}
46404
46405# Print usage and exit script with rc=1.
46406PrintHelp() {
b1d22ded
DE
46407 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46408 echo ' [-name-mangler-script script.sh]'
46409 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46410 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46411 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46412 echo ' [*.o] [*.a]'
473276a9
VS
46413 echo '*> "output_file" should have no extension.'
46414 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46415 echo ' The import library name is derived from this and is set to "name".a,'
46416 echo ' unless overridden by -import'
46417 echo '*> "importlib_name" should have no extension.'
46418 echo ' If it has the .o, or .a extension, it is automatically removed.'
46419 echo ' This name is used as the import library name and may be longer and'
46420 echo ' more descriptive than the DLL name which has to follow the old '
46421 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46422 echo '*> "script.sh may be given to override the output_file name by a'
46423 echo ' different name. It is mainly useful if the regular make process'
46424 echo ' of some package does not take into account OS/2 restriction of'
46425 echo ' DLL name lengths. It takes the importlib name as input and is'
46426 echo ' supposed to procude a shorter name as output. The script should'
46427 echo ' expect to get importlib_name without extension and should produce'
46428 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46429 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46430 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46431 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46432 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46433 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46434 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46435 echo ' If the last character of a symbol is "*", all symbols beginning'
46436 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46437 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46438 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46439 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46440 echo ' C runtime DLLs.'
b1d22ded 46441 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46442 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46443 echo ' unchanged to GCC at the end of command line.'
46444 echo '*> If you create a DLL from a library and you do not specify -o,'
46445 echo ' the basename for DLL and import library will be set to library name,'
46446 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46447 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46448 echo ' library will be renamed into gcc_s.a.'
46449 echo '--------'
46450 echo 'Example:'
46451 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46452 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46453 CleanUp
46454 exit 1
46455}
46456
46457# Execute a command.
46458# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46459# @Uses Whatever CleanUp() uses.
46460doCommand() {
46461 echo "${D}*"
46462 eval ${D}*
46463 rcCmd=${D}?
46464
1e9e8aba 46465 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46466 echo "command failed, exit code="${D}rcCmd
46467 CleanUp
46468 exit ${D}rcCmd
46469 fi
46470}
46471
46472# main routine
46473# setup globals
46474cmdLine=${D}*
46475outFile=""
46476outimpFile=""
46477inputFiles=""
b1d22ded 46478renameScript=""
473276a9
VS
46479description=""
46480CC=gcc.exe
46481CFLAGS="-s -Zcrtdll"
46482EXTRA_CFLAGS=""
46483EXPORT_BY_ORDINALS=0
46484exclude_symbols=""
46485library_flags=""
46486curDir=\`pwd\`
46487curDirS=curDir
46488case ${D}curDirS in
46489*/)
46490 ;;
46491*)
46492 curDirS=${D}{curDirS}"/"
46493 ;;
46494esac
46495# Parse commandline
46496libsToLink=0
b1d22ded 46497omfLinking=0
1e9e8aba 46498while [ ${D}1 ]; do
473276a9
VS
46499 case ${D}1 in
46500 -ord*)
46501 EXPORT_BY_ORDINALS=1;
46502 ;;
46503 -o*)
46504 shift
46505 outFile=${D}1
46506 ;;
46507 -i*)
46508 shift
46509 outimpFile=${D}1
46510 ;;
b1d22ded
DE
46511 -name-mangler-script)
46512 shift
46513 renameScript=${D}1
46514 ;;
473276a9
VS
46515 -d*)
46516 shift
46517 description=${D}1
46518 ;;
46519 -f*)
46520 shift
46521 CFLAGS=${D}1
46522 ;;
46523 -c*)
46524 shift
46525 CC=${D}1
46526 ;;
46527 -h*)
46528 PrintHelp
46529 ;;
46530 -ex*)
46531 shift
46532 exclude_symbols=${D}{exclude_symbols}${D}1" "
46533 ;;
46534 -libf*)
46535 shift
46536 library_flags=${D}{library_flags}${D}1" "
46537 ;;
46538 -nocrt*)
46539 CFLAGS="-s"
46540 ;;
46541 -nolxl*)
46542 flag_USE_LXLITE=0
46543 ;;
46544 -* | /*)
46545 case ${D}1 in
46546 -L* | -l*)
46547 libsToLink=1
46548 ;;
b1d22ded
DE
46549 -Zomf)
46550 omfLinking=1
46551 ;;
473276a9
VS
46552 *)
46553 ;;
46554 esac
46555 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46556 ;;
b1d22ded
DE
46557 *.dll)
46558 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46559 if [ ${D}omfLinking -eq 1 ]; then
46560 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46561 else
46562 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46563 fi
46564 ;;
473276a9
VS
46565 *)
46566 found=0;
1e9e8aba 46567 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46568 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46569 else
46570 for file in ${D}1 ; do
1e9e8aba 46571 if [ -f ${D}file ]; then
473276a9
VS
46572 inputFiles="${D}{inputFiles} ${D}file"
46573 found=1
46574 fi
46575 done
1e9e8aba 46576 if [ ${D}found -eq 0 ]; then
473276a9
VS
46577 echo "ERROR: No file(s) found: "${D}1
46578 exit 8
46579 fi
46580 fi
46581 ;;
46582 esac
46583 shift
46584done # iterate cmdline words
46585
46586#
1e9e8aba 46587if [ -z "${D}inputFiles" ]; then
473276a9
VS
46588 echo "dllar: no input files"
46589 PrintHelp
46590fi
46591
46592# Now extract all .o files from .a files
46593newInputFiles=""
46594for file in ${D}inputFiles ; do
46595 case ${D}file in
46596 *.a | *.lib)
46597 case ${D}file in
46598 *.a)
46599 suffix=".a"
46600 AR="ar"
46601 ;;
46602 *.lib)
46603 suffix=".lib"
46604 AR="emxomfar"
46605 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46606 ;;
46607 *)
46608 ;;
46609 esac
46610 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46611 mkdir ${D}dirname
1e9e8aba 46612 if [ ${D}? -ne 0 ]; then
473276a9
VS
46613 echo "Failed to create subdirectory ./${D}dirname"
46614 CleanUp
46615 exit 8;
46616 fi
46617 # Append '!' to indicate archive
46618 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46619 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46620 cd ${D}curDir
46621 found=0;
46622 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46623 if [ -f ${D}subfile ]; then
473276a9 46624 found=1
1e9e8aba 46625 if [ -s ${D}subfile ]; then
473276a9
VS
46626 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46627 newInputFiles="${D}newInputFiles ${D}subfile"
46628 fi
46629 fi
46630 done
1e9e8aba
DE
46631 if [ ${D}found -eq 0 ]; then
46632 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46633 fi
46634 ;;
46635 *)
46636 newInputFiles="${D}{newInputFiles} ${D}file"
46637 ;;
46638 esac
46639done
46640inputFiles="${D}newInputFiles"
46641
46642# Output filename(s).
46643do_backup=0;
1e9e8aba 46644if [ -z ${D}outFile ]; then
473276a9
VS
46645 do_backup=1;
46646 set outFile ${D}inputFiles; outFile=${D}2
46647fi
46648
46649# If it is an archive, remove the '!' and the '_%' suffixes
46650case ${D}outFile in
46651*_%!)
46652 outFile=\`basnam ${D}outFile _%!\`
46653 ;;
46654*)
46655 ;;
46656esac
46657case ${D}outFile in
46658*.dll)
46659 outFile=\`basnam ${D}outFile .dll\`
46660 ;;
46661*.DLL)
46662 outFile=\`basnam ${D}outFile .DLL\`
46663 ;;
46664*.o)
46665 outFile=\`basnam ${D}outFile .o\`
46666 ;;
46667*.obj)
46668 outFile=\`basnam ${D}outFile .obj\`
46669 ;;
46670*.a)
46671 outFile=\`basnam ${D}outFile .a\`
46672 ;;
46673*.lib)
46674 outFile=\`basnam ${D}outFile .lib\`
46675 ;;
46676*)
46677 ;;
46678esac
46679case ${D}outimpFile in
46680*.a)
46681 outimpFile=\`basnam ${D}outimpFile .a\`
46682 ;;
46683*.lib)
46684 outimpFile=\`basnam ${D}outimpFile .lib\`
46685 ;;
46686*)
46687 ;;
46688esac
1e9e8aba 46689if [ -z ${D}outimpFile ]; then
473276a9
VS
46690 outimpFile=${D}outFile
46691fi
46692defFile="${D}{outFile}.def"
46693arcFile="${D}{outimpFile}.a"
46694arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46695
46696#create ${D}dllFile as something matching 8.3 restrictions,
46697if [ -z ${D}renameScript ] ; then
46698 dllFile="${D}outFile"
46699else
46700 dllFile=\`${D}renameScript ${D}outimpFile\`
46701fi
473276a9 46702
1e9e8aba
DE
46703if [ ${D}do_backup -ne 0 ] ; then
46704 if [ -f ${D}arcFile ] ; then
473276a9
VS
46705 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46706 fi
1e9e8aba 46707 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46708 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46709 fi
46710fi
46711
46712# Extract public symbols from all the object files.
46713tmpdefFile=${D}{defFile}_%
46714rm -f ${D}tmpdefFile
46715for file in ${D}inputFiles ; do
46716 case ${D}file in
46717 *!)
46718 ;;
46719 *)
46720 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46721 ;;
46722 esac
46723done
46724
46725# Create the def file.
46726rm -f ${D}defFile
46727echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46728dllFile="${D}{dllFile}.dll"
46729if [ ! -z ${D}description ]; then
1e9e8aba 46730 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46731fi
46732echo "EXPORTS" >> ${D}defFile
46733
46734doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46735grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46736
46737# Checks if the export is ok or not.
46738for word in ${D}exclude_symbols; do
46739 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46740 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46741done
46742
46743
1e9e8aba
DE
46744if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46745 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46746 sed '
46747 N
46748 : loop
1e9e8aba 46749 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46750 t loop
46751 ' > ${D}{tmpdefFile}%
46752 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46753else
46754 rm -f ${D}{tmpdefFile}%
46755fi
46756cat ${D}tmpdefFile >> ${D}defFile
46757rm -f ${D}tmpdefFile
46758
46759# Do linking, create implib, and apply lxlite.
46760gccCmdl="";
46761for file in ${D}inputFiles ; do
46762 case ${D}file in
46763 *!)
46764 ;;
46765 *)
46766 gccCmdl="${D}gccCmdl ${D}file"
46767 ;;
46768 esac
46769done
46770doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46771touch "${D}{outFile}.dll"
46772
46773doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46774if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46775 add_flags="";
1e9e8aba 46776 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46777 add_flags="-ynd"
46778 fi
46779 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46780fi
46781doCommand "emxomf -s -l ${D}arcFile"
46782
46783# Successful exit.
46784CleanUp 1
46785exit 0
46786EOF
46787
46788 chmod +x dllar.sh
a848cd7e
SC
46789 ;;
46790
1e9e8aba 46791 powerpc-apple-macos* | \
0ad5d837 46792 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46793 *-*-sunos4* | \
46794 *-*-osf* | \
46795 *-*-dgux5* | \
47a7e797
MW
46796 *-*-sysv5* | \
46797 *-pc-msdosdjgpp )
a848cd7e
SC
46798 ;;
46799
46800 *)
46801 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46802echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46803 { (exit 1); exit 1; }; }
46804 esac
46805
2057db16
VS
46806 if test "x$PIC_FLAG" != "x" ; then
46807 PIC_FLAG="$PIC_FLAG -DPIC"
46808 fi
46809
a848cd7e
SC
46810 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46811 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46812 fi
46813 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46814 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46815 fi
46816
46817
46818
46819
46820
46821
46822
46823
810b94f0 46824
a848cd7e
SC
46825 USE_SOVERSION=0
46826 USE_SOVERLINUX=0
46827 USE_SOVERSOLARIS=0
810b94f0 46828 USE_SOVERCYGWIN=0
a848cd7e
SC
46829 USE_SOSYMLINKS=0
46830 USE_MACVERSION=0
46831 SONAME_FLAG=
46832
46833 case "${BAKEFILE_HOST}" in
0ad5d837 46834 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46835 SONAME_FLAG="-Wl,-soname,"
46836 USE_SOVERSION=1
46837 USE_SOVERLINUX=1
46838 USE_SOSYMLINKS=1
46839 ;;
46840
a848cd7e
SC
46841 *-*-solaris2* )
46842 SONAME_FLAG="-h "
46843 USE_SOVERSION=1
46844 USE_SOVERSOLARIS=1
46845 USE_SOSYMLINKS=1
46846 ;;
46847
46848 *-*-darwin* )
46849 USE_MACVERSION=1
46850 USE_SOVERSION=1
46851 USE_SOSYMLINKS=1
46852 ;;
810b94f0
MW
46853
46854 *-*-cygwin* )
46855 USE_SOVERSION=1
46856 USE_SOVERCYGWIN=1
46857 ;;
a848cd7e
SC
46858 esac
46859
46860
46861
46862
46863
46864
46865
46866
46867
810b94f0 46868
a848cd7e
SC
46869 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46870echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 46871 DEPS_TRACKING=1
a848cd7e
SC
46872
46873 if test "x$GCC" = "xyes"; then
46874 DEPSMODE=gcc
a848cd7e 46875 case "${BAKEFILE_HOST}" in
47bd5406 46876 *-*-darwin* )
0ad5d837 46877 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
46878 ;;
46879 * )
0ad5d837 46880 DEPSFLAG="-MMD"
a848cd7e
SC
46881 ;;
46882 esac
46883 echo "$as_me:$LINENO: result: gcc" >&5
46884echo "${ECHO_T}gcc" >&6
b1d22ded 46885 elif test "x$MWCC" = "xyes"; then
81f90336 46886 DEPSMODE=mwcc
0ad5d837 46887 DEPSFLAG="-MM"
b1d22ded
DE
46888 echo "$as_me:$LINENO: result: mwcc" >&5
46889echo "${ECHO_T}mwcc" >&6
a9e5b1f0 46890 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
46891 DEPSMODE=unixcc
46892 DEPSFLAG="-xM1"
46893 echo "$as_me:$LINENO: result: Sun cc" >&5
46894echo "${ECHO_T}Sun cc" >&6
46895 elif test "x$SGICC" = "xyes"; then
46896 DEPSMODE=unixcc
46897 DEPSFLAG="-M"
46898 echo "$as_me:$LINENO: result: SGI cc" >&5
46899echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
46900 elif test "x$HPCC" = "xyes"; then
46901 DEPSMODE=unixcc
46902 DEPSFLAG="+make"
46903 echo "$as_me:$LINENO: result: HP cc" >&5
46904echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
46905 elif test "x$COMPAQCC" = "xyes"; then
46906 DEPSMODE=gcc
46907 DEPSFLAG="-MD"
46908 echo "$as_me:$LINENO: result: Compaq cc" >&5
46909echo "${ECHO_T}Compaq cc" >&6
a848cd7e 46910 else
3006edc0 46911 DEPS_TRACKING=0
a848cd7e
SC
46912 echo "$as_me:$LINENO: result: none" >&5
46913echo "${ECHO_T}none" >&6
46914 fi
46915
46916 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
46917
46918D='$'
46919cat <<EOF >bk-deps
a848cd7e
SC
46920#!/bin/sh
46921
46922# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46923# script. It is used to track C/C++ files dependencies in portable way.
46924#
46925# Permission is given to use this file in any way.
46926
473276a9 46927DEPSMODE=${DEPSMODE}
a848cd7e 46928DEPSDIR=.deps
0ad5d837 46929DEPSFLAG="${DEPSFLAG}"
a848cd7e 46930
473276a9 46931mkdir -p ${D}DEPSDIR
a848cd7e 46932
473276a9 46933if test ${D}DEPSMODE = gcc ; then
0ad5d837 46934 ${D}* ${D}{DEPSFLAG}
473276a9
VS
46935 status=${D}?
46936 if test ${D}{status} != 0 ; then
46937 exit ${D}{status}
a848cd7e
SC
46938 fi
46939 # move created file to the location we want it in:
473276a9
VS
46940 while test ${D}# -gt 0; do
46941 case "${D}1" in
a848cd7e
SC
46942 -o )
46943 shift
473276a9 46944 objfile=${D}1
a848cd7e
SC
46945 ;;
46946 -* )
46947 ;;
46948 * )
473276a9 46949 srcfile=${D}1
a848cd7e
SC
46950 ;;
46951 esac
46952 shift
46953 done
1e9e8aba
DE
46954 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
46955 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
46956 if test -f ${D}depfile ; then
46957 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46958 rm -f ${D}depfile
a848cd7e 46959 else
a1aa0349 46960 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 46961 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
46962 if test ! -f ${D}depfile ; then
46963 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
46964 depfile="${D}objfile.d"
46965 fi
473276a9
VS
46966 if test -f ${D}depfile ; then
46967 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46968 rm -f ${D}depfile
a848cd7e
SC
46969 fi
46970 fi
46971 exit 0
81f90336 46972elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 46973 ${D}* || exit ${D}?
81f90336
MW
46974 # Run mwcc again with -MM and redirect into the dep file we want
46975 # NOTE: We can't use shift here because we need ${D}* to be valid
46976 prevarg=
46977 for arg in ${D}* ; do
46978 if test "${D}prevarg" = "-o"; then
46979 objfile=${D}arg
46980 else
46981 case "${D}arg" in
46982 -* )
46983 ;;
46984 * )
46985 srcfile=${D}arg
46986 ;;
46987 esac
46988 fi
46989 prevarg="${D}arg"
46990 done
0ad5d837 46991 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 46992 exit 0
0ad5d837 46993elif test ${D}DEPSMODE = unixcc; then
f6b50c59 46994 ${D}* || exit ${D}?
a9e5b1f0
MW
46995 # Run compiler again with deps flag and redirect into the dep file.
46996 # It doesn't work if the '-o FILE' option is used, but without it the
46997 # dependency file will contain the wrong name for the object. So it is
46998 # removed from the command line, and the dep file is fixed with sed.
46999 cmd=""
47000 while test ${D}# -gt 0; do
47001 case "${D}1" in
47002 -o )
47003 shift
47004 objfile=${D}1
47005 ;;
47006 * )
47007 eval arg${D}#=\\${D}1
47008 cmd="${D}cmd \\${D}arg${D}#"
47009 ;;
47010 esac
47011 shift
47012 done
0ad5d837 47013 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47014 exit 0
a848cd7e 47015else
473276a9
VS
47016 ${D}*
47017 exit ${D}?
a848cd7e
SC
47018fi
47019EOF
473276a9 47020
a848cd7e
SC
47021 chmod +x bk-deps
47022 fi
47023
47024
47025
47026
a848cd7e
SC
47027 case ${BAKEFILE_HOST} in
47028 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47029 if test -n "$ac_tool_prefix"; then
47030 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47031set dummy ${ac_tool_prefix}windres; ac_word=$2
47032echo "$as_me:$LINENO: checking for $ac_word" >&5
47033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47034if test "${ac_cv_prog_WINDRES+set}" = set; then
47035 echo $ECHO_N "(cached) $ECHO_C" >&6
47036else
47037 if test -n "$WINDRES"; then
47038 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47039else
47040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47041for as_dir in $PATH
47042do
47043 IFS=$as_save_IFS
47044 test -z "$as_dir" && as_dir=.
47045 for ac_exec_ext in '' $ac_executable_extensions; do
47046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47047 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47049 break 2
47050 fi
47051done
47052done
47053
47054fi
47055fi
47056WINDRES=$ac_cv_prog_WINDRES
47057if test -n "$WINDRES"; then
47058 echo "$as_me:$LINENO: result: $WINDRES" >&5
47059echo "${ECHO_T}$WINDRES" >&6
47060else
47061 echo "$as_me:$LINENO: result: no" >&5
47062echo "${ECHO_T}no" >&6
47063fi
47064
47065fi
47066if test -z "$ac_cv_prog_WINDRES"; then
47067 ac_ct_WINDRES=$WINDRES
47068 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47069set dummy windres; ac_word=$2
47070echo "$as_me:$LINENO: checking for $ac_word" >&5
47071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47072if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47073 echo $ECHO_N "(cached) $ECHO_C" >&6
47074else
8ced02f6
DE
47075 if test -n "$ac_ct_WINDRES"; then
47076 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47077else
47078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47079for as_dir in $PATH
47080do
47081 IFS=$as_save_IFS
47082 test -z "$as_dir" && as_dir=.
47083 for ac_exec_ext in '' $ac_executable_extensions; do
47084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47085 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47087 break 2
47088 fi
47089done
47090done
47091
a848cd7e
SC
47092fi
47093fi
8ced02f6
DE
47094ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47095if test -n "$ac_ct_WINDRES"; then
47096 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47097echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47098else
47099 echo "$as_me:$LINENO: result: no" >&5
47100echo "${ECHO_T}no" >&6
47101fi
47102
8ced02f6
DE
47103 WINDRES=$ac_ct_WINDRES
47104else
47105 WINDRES="$ac_cv_prog_WINDRES"
47106fi
47107
a848cd7e
SC
47108 ;;
47109
1e9e8aba 47110 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47111 # Extract the first word of "Rez", so it can be a program name with args.
47112set dummy Rez; ac_word=$2
47113echo "$as_me:$LINENO: checking for $ac_word" >&5
47114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47115if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47116 echo $ECHO_N "(cached) $ECHO_C" >&6
47117else
8ced02f6
DE
47118 if test -n "$REZ"; then
47119 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47120else
47121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47122for as_dir in $PATH
47123do
47124 IFS=$as_save_IFS
47125 test -z "$as_dir" && as_dir=.
47126 for ac_exec_ext in '' $ac_executable_extensions; do
47127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47128 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47130 break 2
47131 fi
47132done
47133done
47134
8ced02f6 47135 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47136fi
47137fi
8ced02f6
DE
47138REZ=$ac_cv_prog_REZ
47139if test -n "$REZ"; then
47140 echo "$as_me:$LINENO: result: $REZ" >&5
47141echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47142else
47143 echo "$as_me:$LINENO: result: no" >&5
47144echo "${ECHO_T}no" >&6
47145fi
47146
47147 # Extract the first word of "SetFile", so it can be a program name with args.
47148set dummy SetFile; ac_word=$2
47149echo "$as_me:$LINENO: checking for $ac_word" >&5
47150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47151if test "${ac_cv_prog_SETFILE+set}" = set; then
47152 echo $ECHO_N "(cached) $ECHO_C" >&6
47153else
47154 if test -n "$SETFILE"; then
47155 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47156else
47157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47158for as_dir in $PATH
47159do
47160 IFS=$as_save_IFS
47161 test -z "$as_dir" && as_dir=.
47162 for ac_exec_ext in '' $ac_executable_extensions; do
47163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47164 ac_cv_prog_SETFILE="SetFile"
47165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47166 break 2
47167 fi
47168done
47169done
47170
47171 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47172fi
47173fi
47174SETFILE=$ac_cv_prog_SETFILE
47175if test -n "$SETFILE"; then
47176 echo "$as_me:$LINENO: result: $SETFILE" >&5
47177echo "${ECHO_T}$SETFILE" >&6
47178else
47179 echo "$as_me:$LINENO: result: no" >&5
47180echo "${ECHO_T}no" >&6
47181fi
47182
47183 ;;
47184 esac
47185
47186
47187
47188
47189
8ced02f6 47190
c9469659 47191 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 47192
dcc1b6ad 47193
c9469659 47194BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 47195
646b6ec1 47196
74b84332 47197
a848cd7e
SC
47198 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47199if test "${enable_precomp_headers+set}" = set; then
47200 enableval="$enable_precomp_headers"
47201 bk_use_pch="$enableval"
47202fi;
47203
47204 GCC_PCH=0
47205
5c60e845
MW
47206 case ${BAKEFILE_HOST} in
47207 *-*-cygwin* )
47208 bk_use_pch="no"
47209 ;;
47210 esac
47211
a848cd7e
SC
47212 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47213 if test "x$GCC" = "xyes"; then
47214 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47215echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47216 cat >conftest.$ac_ext <<_ACEOF
47217/* confdefs.h. */
47218_ACEOF
47219cat confdefs.h >>conftest.$ac_ext
47220cat >>conftest.$ac_ext <<_ACEOF
47221/* end confdefs.h. */
47222
47223int
47224main ()
47225{
47226
47227 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
47228 #error "no pch support"
47229 #endif
47230 #if (__GNUC__ < 3)
47231 #error "no pch support"
47232 #endif
47233 #if (__GNUC__ == 3) && \
47234 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
47235 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
47236 #error "no pch support"
47237 #endif
47238
47239 ;
47240 return 0;
47241}
47242_ACEOF
47243rm -f conftest.$ac_objext
47244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47245 (eval $ac_compile) 2>conftest.er1
a848cd7e 47246 ac_status=$?
ac1cb8d3
VS
47247 grep -v '^ *+' conftest.er1 >conftest.err
47248 rm -f conftest.er1
47249 cat conftest.err >&5
a848cd7e
SC
47250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47251 (exit $ac_status); } &&
3565d135
RR
47252 { ac_try='test -z "$ac_c_werror_flag"
47253 || test ! -s conftest.err'
ac1cb8d3
VS
47254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47255 (eval $ac_try) 2>&5
47256 ac_status=$?
47257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47258 (exit $ac_status); }; } &&
47259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47261 (eval $ac_try) 2>&5
47262 ac_status=$?
47263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47264 (exit $ac_status); }; }; then
47265
47266 echo "$as_me:$LINENO: result: yes" >&5
47267echo "${ECHO_T}yes" >&6
a848cd7e
SC
47268 GCC_PCH=1
47269
47270else
47271 echo "$as_me: failed program was:" >&5
47272sed 's/^/| /' conftest.$ac_ext >&5
47273
47274
47275 echo "$as_me:$LINENO: result: no" >&5
47276echo "${ECHO_T}no" >&6
47277
47278fi
ac1cb8d3 47279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 47280 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
47281
47282D='$'
47283cat <<EOF >bk-make-pch
a848cd7e
SC
47284#!/bin/sh
47285
47286# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47287# script. It is used to generated precompiled headers.
47288#
47289# Permission is given to use this file in any way.
47290
1e9e8aba
DE
47291outfile="${D}{1}"
47292header="${D}{2}"
a848cd7e
SC
47293shift
47294shift
47295
47296compiler=
47297headerfile=
1e9e8aba
DE
47298while test ${D}{#} -gt 0; do
47299 case "${D}{1}" in
a848cd7e 47300 -I* )
1e9e8aba
DE
47301 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47302 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47303 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47304 fi
47305 ;;
47306 esac
1e9e8aba 47307 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
47308 shift
47309done
47310
1e9e8aba
DE
47311if test "x${D}{headerfile}" = "x" ; then
47312 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 47313else
1e9e8aba
DE
47314 if test -f ${D}{outfile} ; then
47315 rm -f ${D}{outfile}
a848cd7e 47316 else
1e9e8aba 47317 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47318 fi
1e9e8aba 47319 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
47320 mkdir -p .deps
47321 # can do this because gcc is >= 3.4:
1e9e8aba
DE
47322 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47323 exit ${D}{?}
a848cd7e
SC
47324fi
47325EOF
1e9e8aba 47326
a848cd7e
SC
47327 chmod +x bk-make-pch
47328 fi
47329 fi
47330 fi
47331
47332
47333
a848cd7e
SC
47334 COND_BUILD_DEBUG="#"
47335 if test "x$BUILD" = "xdebug" ; then
47336 COND_BUILD_DEBUG=""
47337 fi
47338
47339 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47340 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47341 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47342 fi
47343
47344 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47345 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47346 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47347 fi
47348
47349 COND_BUILD_DEBUG_UNICODE_0="#"
47350 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47351 COND_BUILD_DEBUG_UNICODE_0=""
47352 fi
47353
47354 COND_BUILD_DEBUG_UNICODE_1="#"
47355 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47356 COND_BUILD_DEBUG_UNICODE_1=""
47357 fi
47358
47359 COND_BUILD_RELEASE="#"
47360 if test "x$BUILD" = "xrelease" ; then
47361 COND_BUILD_RELEASE=""
47362 fi
47363
47364 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47365 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47366 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47367 fi
47368
47369 COND_BUILD_RELEASE_UNICODE_0="#"
47370 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47371 COND_BUILD_RELEASE_UNICODE_0=""
47372 fi
47373
47374 COND_BUILD_RELEASE_UNICODE_1="#"
47375 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47376 COND_BUILD_RELEASE_UNICODE_1=""
47377 fi
47378
47379 COND_DEBUG_FLAG_1="#"
47380 if test "x$DEBUG_FLAG" = "x1" ; then
47381 COND_DEBUG_FLAG_1=""
47382 fi
47383
47384 COND_DEBUG_INFO_0="#"
47385 if test "x$DEBUG_INFO" = "x0" ; then
47386 COND_DEBUG_INFO_0=""
47387 fi
47388
47389 COND_DEBUG_INFO_1="#"
47390 if test "x$DEBUG_INFO" = "x1" ; then
47391 COND_DEBUG_INFO_1=""
47392 fi
47393
47394 COND_DEPS_TRACKING_0="#"
47395 if test "x$DEPS_TRACKING" = "x0" ; then
47396 COND_DEPS_TRACKING_0=""
47397 fi
47398
47399 COND_DEPS_TRACKING_1="#"
47400 if test "x$DEPS_TRACKING" = "x1" ; then
47401 COND_DEPS_TRACKING_1=""
47402 fi
47403
47404 COND_GCC_PCH_1="#"
47405 if test "x$GCC_PCH" = "x1" ; then
47406 COND_GCC_PCH_1=""
47407 fi
47408
47409 COND_MONOLITHIC_0="#"
47410 if test "x$MONOLITHIC" = "x0" ; then
47411 COND_MONOLITHIC_0=""
47412 fi
47413
47414 COND_MONOLITHIC_0_SHARED_0="#"
47415 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47416 COND_MONOLITHIC_0_SHARED_0=""
47417 fi
47418
47419 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47420 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47421 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47422 fi
47423
90970d69
DE
47424 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47425 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47426 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47427 fi
47428
a848cd7e
SC
47429 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47430 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47431 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47432 fi
47433
6671c68b
VZ
47434 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47435 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47436 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47437 fi
47438
a848cd7e
SC
47439 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47440 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47441 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47442 fi
47443
ceec2216
RL
47444 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47445 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47446 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47447 fi
47448
a848cd7e
SC
47449 COND_MONOLITHIC_0_SHARED_1="#"
47450 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47451 COND_MONOLITHIC_0_SHARED_1=""
47452 fi
47453
47454 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47455 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47456 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47457 fi
47458
90970d69
DE
47459 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47460 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47461 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47462 fi
47463
a848cd7e
SC
47464 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47465 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47466 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47467 fi
47468
6671c68b
VZ
47469 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47470 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47471 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47472 fi
47473
a848cd7e
SC
47474 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47475 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47476 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47477 fi
47478
ceec2216
RL
47479 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47480 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47481 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47482 fi
47483
a848cd7e
SC
47484 COND_MONOLITHIC_0_USE_ODBC_1="#"
47485 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47486 COND_MONOLITHIC_0_USE_ODBC_1=""
47487 fi
47488
47489 COND_MONOLITHIC_1="#"
47490 if test "x$MONOLITHIC" = "x1" ; then
47491 COND_MONOLITHIC_1=""
47492 fi
47493
47494 COND_MONOLITHIC_1_SHARED_0="#"
47495 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47496 COND_MONOLITHIC_1_SHARED_0=""
47497 fi
47498
47499 COND_MONOLITHIC_1_SHARED_1="#"
47500 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47501 COND_MONOLITHIC_1_SHARED_1=""
47502 fi
47503
47504 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47505 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47506 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47507 fi
47508
47509 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47510 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47511 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47512 fi
47513
eb730a0c
JS
47514 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47515 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47516 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47517 fi
47518
a848cd7e
SC
47519 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47520 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47521 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47522 fi
47523
47524 COND_PLATFORM_MACOSX_1="#"
47525 if test "x$PLATFORM_MACOSX" = "x1" ; then
47526 COND_PLATFORM_MACOSX_1=""
47527 fi
47528
a30f955f
VS
47529 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47530 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47531 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47532 fi
47533
a848cd7e
SC
47534 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47535 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47536 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47537 fi
47538
47539 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47540 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47541 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47542 fi
47543
47544 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47545 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47546 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47547 fi
47548
fc480dc1
DE
47549 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47550 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47551 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47552 fi
47553
1e9e8aba
DE
47554 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47555 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47556 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47557 fi
47558
ebee3cd0
VS
47559 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47560 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47561 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47562 fi
47563
47564 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47565 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47566 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47567 fi
47568
a848cd7e
SC
47569 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47570 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47571 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47572 fi
47573
47574 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47575 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47576 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47577 fi
47578
b48a2016
DE
47579 COND_PLATFORM_MACOS_1="#"
47580 if test "x$PLATFORM_MACOS" = "x1" ; then
47581 COND_PLATFORM_MACOS_1=""
47582 fi
47583
083508af
MW
47584 COND_PLATFORM_MAC_1="#"
47585 if test "x$PLATFORM_MAC" = "x1" ; then
47586 COND_PLATFORM_MAC_1=""
47587 fi
47588
83d8eb47
MW
47589 COND_PLATFORM_MSDOS_1="#"
47590 if test "x$PLATFORM_MSDOS" = "x1" ; then
47591 COND_PLATFORM_MSDOS_1=""
47592 fi
47593
a848cd7e
SC
47594 COND_PLATFORM_OS2_1="#"
47595 if test "x$PLATFORM_OS2" = "x1" ; then
47596 COND_PLATFORM_OS2_1=""
47597 fi
47598
47599 COND_PLATFORM_UNIX_0="#"
47600 if test "x$PLATFORM_UNIX" = "x0" ; then
47601 COND_PLATFORM_UNIX_0=""
47602 fi
47603
47604 COND_PLATFORM_UNIX_1="#"
47605 if test "x$PLATFORM_UNIX" = "x1" ; then
47606 COND_PLATFORM_UNIX_1=""
47607 fi
47608
47609 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47610 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47611 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47612 fi
47613
47614 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47615 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47616 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47617 fi
47618
47619 COND_PLATFORM_WIN32_0="#"
47620 if test "x$PLATFORM_WIN32" = "x0" ; then
47621 COND_PLATFORM_WIN32_0=""
47622 fi
47623
47624 COND_PLATFORM_WIN32_1="#"
47625 if test "x$PLATFORM_WIN32" = "x1" ; then
47626 COND_PLATFORM_WIN32_1=""
47627 fi
47628
47629 COND_SHARED_0="#"
47630 if test "x$SHARED" = "x0" ; then
47631 COND_SHARED_0=""
47632 fi
47633
083508af
MW
47634 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47635 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47636 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47637 fi
47638
47639 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47640 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47641 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47642 fi
47643
47644 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47645 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47646 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47647 fi
47648
a848cd7e
SC
47649 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47650 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47651 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47652 fi
47653
47654 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47655 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47656 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47657 fi
47658
47659 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47660 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47661 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47662 fi
47663
47664 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47665 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47666 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47667 fi
47668
083508af
MW
47669 COND_SHARED_0_USE_XRC_1="#"
47670 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47671 COND_SHARED_0_USE_XRC_1=""
47672 fi
47673
a848cd7e
SC
47674 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47675 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47676 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47677 fi
47678
47679 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47680 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47681 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47682 fi
47683
47684 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47685 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47686 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47687 fi
47688
47689 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47690 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47691 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47692 fi
47693
47694 COND_SHARED_1="#"
47695 if test "x$SHARED" = "x1" ; then
47696 COND_SHARED_1=""
47697 fi
47698
47699 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47700 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47701 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47702 fi
47703
083508af
MW
47704 COND_SHARED_1_USE_XRC_1="#"
47705 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47706 COND_SHARED_1_USE_XRC_1=""
47707 fi
47708
a30f955f
VS
47709 COND_TOOLKIT_="#"
47710 if test "x$TOOLKIT" = "x" ; then
47711 COND_TOOLKIT_=""
47712 fi
47713
a848cd7e
SC
47714 COND_TOOLKIT_COCOA="#"
47715 if test "x$TOOLKIT" = "xCOCOA" ; then
47716 COND_TOOLKIT_COCOA=""
47717 fi
47718
a49baeab
DE
47719 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47720 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47721 COND_TOOLKIT_COCOA_USE_GUI_1=""
47722 fi
47723
a848cd7e
SC
47724 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47725 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47726 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47727 fi
47728
47729 COND_TOOLKIT_GTK="#"
47730 if test "x$TOOLKIT" = "xGTK" ; then
47731 COND_TOOLKIT_GTK=""
47732 fi
47733
d044deea
MW
47734 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47735 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47736 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47737 fi
47738
47739 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
47740 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
47741 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
47742 fi
47743
47744 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
47745 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
47746 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
47747 fi
47748
47749 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
47750 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47751 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
47752 fi
47753
47754 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
47755 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
47756 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
47757 fi
47758
47759 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
47760 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47761 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
47762 fi
47763
a848cd7e
SC
47764 COND_TOOLKIT_GTK_USE_GUI_1="#"
47765 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47766 COND_TOOLKIT_GTK_USE_GUI_1=""
47767 fi
47768
a848cd7e
SC
47769 COND_TOOLKIT_MAC="#"
47770 if test "x$TOOLKIT" = "xMAC" ; then
47771 COND_TOOLKIT_MAC=""
47772 fi
47773
47774 COND_TOOLKIT_MAC_USE_GUI_1="#"
47775 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47776 COND_TOOLKIT_MAC_USE_GUI_1=""
47777 fi
47778
47779 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47780 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47781 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47782 fi
47783
47784 COND_TOOLKIT_MGL="#"
47785 if test "x$TOOLKIT" = "xMGL" ; then
47786 COND_TOOLKIT_MGL=""
47787 fi
47788
47789 COND_TOOLKIT_MGL_USE_GUI_1="#"
47790 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47791 COND_TOOLKIT_MGL_USE_GUI_1=""
47792 fi
47793
47794 COND_TOOLKIT_MOTIF="#"
47795 if test "x$TOOLKIT" = "xMOTIF" ; then
47796 COND_TOOLKIT_MOTIF=""
47797 fi
47798
47799 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47800 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47801 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47802 fi
47803
47804 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47805 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47806 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47807 fi
47808
47809 COND_TOOLKIT_MSW="#"
47810 if test "x$TOOLKIT" = "xMSW" ; then
47811 COND_TOOLKIT_MSW=""
47812 fi
47813
47814 COND_TOOLKIT_MSW_USE_GUI_1="#"
47815 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47816 COND_TOOLKIT_MSW_USE_GUI_1=""
47817 fi
47818
47819 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47820 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47821 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47822 fi
47823
0ee4059d
DE
47824 COND_TOOLKIT_MSW_WXUNIV_0="#"
47825 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47826 COND_TOOLKIT_MSW_WXUNIV_0=""
47827 fi
47828
a848cd7e
SC
47829 COND_TOOLKIT_PM="#"
47830 if test "x$TOOLKIT" = "xPM" ; then
47831 COND_TOOLKIT_PM=""
47832 fi
47833
47834 COND_TOOLKIT_PM_USE_GUI_1="#"
47835 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47836 COND_TOOLKIT_PM_USE_GUI_1=""
47837 fi
47838
47839 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47840 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47841 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47842 fi
47843
3fd9c298
DE
47844 COND_TOOLKIT_WINCE="#"
47845 if test "x$TOOLKIT" = "xWINCE" ; then
47846 COND_TOOLKIT_WINCE=""
47847 fi
47848
47849 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47850 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47851 COND_TOOLKIT_WINCE_USE_GUI_1=""
47852 fi
47853
47854 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47855 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47856 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47857 fi
47858
0ee4059d
DE
47859 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47860 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47861 COND_TOOLKIT_WINCE_WXUNIV_0=""
47862 fi
47863
a848cd7e
SC
47864 COND_TOOLKIT_X11="#"
47865 if test "x$TOOLKIT" = "xX11" ; then
47866 COND_TOOLKIT_X11=""
47867 fi
47868
47869 COND_TOOLKIT_X11_USE_GUI_1="#"
47870 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47871 COND_TOOLKIT_X11_USE_GUI_1=""
47872 fi
47873
47874 COND_UNICODE_1="#"
47875 if test "x$UNICODE" = "x1" ; then
47876 COND_UNICODE_1=""
47877 fi
47878
47879 COND_USE_EXCEPTIONS_0="#"
47880 if test "x$USE_EXCEPTIONS" = "x0" ; then
47881 COND_USE_EXCEPTIONS_0=""
47882 fi
47883
47884 COND_USE_EXCEPTIONS_1="#"
47885 if test "x$USE_EXCEPTIONS" = "x1" ; then
47886 COND_USE_EXCEPTIONS_1=""
47887 fi
47888
47889 COND_USE_GUI_0="#"
47890 if test "x$USE_GUI" = "x0" ; then
47891 COND_USE_GUI_0=""
47892 fi
47893
47894 COND_USE_GUI_1="#"
47895 if test "x$USE_GUI" = "x1" ; then
47896 COND_USE_GUI_1=""
47897 fi
47898
47899 COND_USE_GUI_1_WXUNIV_0="#"
47900 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47901 COND_USE_GUI_1_WXUNIV_0=""
47902 fi
47903
47904 COND_USE_GUI_1_WXUNIV_1="#"
47905 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
47906 COND_USE_GUI_1_WXUNIV_1=""
47907 fi
47908
47909 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47910 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47911 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47912 fi
47913
47914 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47915 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47916 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47917 fi
47918
47919 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47920 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47921 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47922 fi
47923
083508af
MW
47924 COND_USE_ODBC_1="#"
47925 if test "x$USE_ODBC" = "x1" ; then
47926 COND_USE_ODBC_1=""
47927 fi
47928
47929 COND_USE_OPENGL_1="#"
47930 if test "x$USE_OPENGL" = "x1" ; then
47931 COND_USE_OPENGL_1=""
47932 fi
47933
a848cd7e
SC
47934 COND_USE_PLUGINS_0="#"
47935 if test "x$USE_PLUGINS" = "x0" ; then
47936 COND_USE_PLUGINS_0=""
47937 fi
47938
0b78747f
MW
47939 COND_USE_RTTI_0="#"
47940 if test "x$USE_RTTI" = "x0" ; then
47941 COND_USE_RTTI_0=""
47942 fi
47943
47944 COND_USE_RTTI_1="#"
47945 if test "x$USE_RTTI" = "x1" ; then
47946 COND_USE_RTTI_1=""
47947 fi
47948
a848cd7e
SC
47949 COND_USE_SOSYMLINKS_1="#"
47950 if test "x$USE_SOSYMLINKS" = "x1" ; then
47951 COND_USE_SOSYMLINKS_1=""
47952 fi
47953
eb730a0c
JS
47954 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
47955 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47956 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
47957 fi
47958
a848cd7e
SC
47959 COND_USE_SOVERLINUX_1="#"
47960 if test "x$USE_SOVERLINUX" = "x1" ; then
47961 COND_USE_SOVERLINUX_1=""
47962 fi
47963
47964 COND_USE_SOVERSION_0="#"
47965 if test "x$USE_SOVERSION" = "x0" ; then
47966 COND_USE_SOVERSION_0=""
47967 fi
47968
47969 COND_USE_SOVERSOLARIS_1="#"
47970 if test "x$USE_SOVERSOLARIS" = "x1" ; then
47971 COND_USE_SOVERSOLARIS_1=""
47972 fi
47973
0b78747f
MW
47974 COND_USE_THREADS_0="#"
47975 if test "x$USE_THREADS" = "x0" ; then
47976 COND_USE_THREADS_0=""
47977 fi
47978
47979 COND_USE_THREADS_1="#"
47980 if test "x$USE_THREADS" = "x1" ; then
47981 COND_USE_THREADS_1=""
47982 fi
47983
a13a7f89
RL
47984 COND_USE_XRC_1="#"
47985 if test "x$USE_XRC" = "x1" ; then
47986 COND_USE_XRC_1=""
47987 fi
47988
eb730a0c
JS
47989 COND_WINDOWS_IMPLIB_1="#"
47990 if test "x$WINDOWS_IMPLIB" = "x1" ; then
47991 COND_WINDOWS_IMPLIB_1=""
47992 fi
47993
a848cd7e
SC
47994 COND_WITH_PLUGIN_SDL_1="#"
47995 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
47996 COND_WITH_PLUGIN_SDL_1=""
47997 fi
47998
1e6eb025
VZ
47999 COND_WXUNIV_0="#"
48000 if test "x$WXUNIV" = "x0" ; then
48001 COND_WXUNIV_0=""
48002 fi
48003
a848cd7e
SC
48004 COND_WXUNIV_1="#"
48005 if test "x$WXUNIV" = "x1" ; then
48006 COND_WXUNIV_1=""
48007 fi
48008
48009 COND_WXUSE_EXPAT_BUILTIN="#"
48010 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48011 COND_WXUSE_EXPAT_BUILTIN=""
48012 fi
48013
48014 COND_WXUSE_LIBJPEG_BUILTIN="#"
48015 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48016 COND_WXUSE_LIBJPEG_BUILTIN=""
48017 fi
48018
48019 COND_WXUSE_LIBPNG_BUILTIN="#"
48020 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48021 COND_WXUSE_LIBPNG_BUILTIN=""
48022 fi
48023
48024 COND_WXUSE_LIBTIFF_BUILTIN="#"
48025 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48026 COND_WXUSE_LIBTIFF_BUILTIN=""
48027 fi
48028
48029 COND_WXUSE_ODBC_BUILTIN="#"
48030 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48031 COND_WXUSE_ODBC_BUILTIN=""
48032 fi
48033
48034 COND_WXUSE_REGEX_BUILTIN="#"
48035 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48036 COND_WXUSE_REGEX_BUILTIN=""
48037 fi
48038
48039 COND_WXUSE_ZLIB_BUILTIN="#"
48040 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48041 COND_WXUSE_ZLIB_BUILTIN=""
48042 fi
48043
48044
48045
810b94f0
MW
48046 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48047 { { 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
48048echo "$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;}
48049 { (exit 1); exit 1; }; }
48050 fi
48051
2057db16
VS
48052 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48053 { { 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
48054echo "$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;}
48055 { (exit 1); exit 1; }; }
48056 fi
48057
a848cd7e 48058
ceec2216
RL
48059if test "$wxUSE_SHARED" = "yes"; then
48060
48061 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48062 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48063
5b674b9d
DE
48064 case "${host}" in
48065 *-pc-os2_emx | *-pc-os2-emx )
48066 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48067 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48068 cp -p ${srcdir}/src/os2/dllnames.sh .
48069 cp -p ${srcdir}/src/os2/dllar.sh .
48070 ;;
48071 esac
ceec2216
RL
48072else
48073
48074 EXE_LINKER="$CXX -o"
48075
48076fi
69120ee4
VZ
48077if test "$wxUSE_OMF" = "yes"; then
48078 case "${host}" in
48079 *-pc-os2_emx | *-pc-os2-emx )
48080 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48081 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48082 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48083 ;;
48084 esac
48085fi
a848cd7e 48086
c08ebc62 48087if test $GCC_PCH = 1 ; then
254e8e29 48088 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48089fi
a848cd7e 48090
5ff751d6 48091WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48092
48093SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48094
48095
48096
48097
48098
48099
48100
48101
48102
48103
48104
48105
48106
48107
48108
48109
48110
48111
48112
48113
48114
48115
48116
48117
48118
48119
48120
48121
48122
48123
48124
48125
48126
48127
48128
48129
48130
48131
48132
48133
48134
48135
a848cd7e
SC
48136
48137
48138
48139
48140
48141
48142
48143
48144
48145
48146
48147
a848cd7e
SC
48148
48149
ddd14b14 48150
370d2fd7 48151
8ced02f6 48152
a848cd7e
SC
48153
48154
48155echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48156echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48157set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48158if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48159 echo $ECHO_N "(cached) $ECHO_C" >&6
48160else
48161 cat >conftest.make <<\_ACEOF
48162all:
48163 @echo 'ac_maketemp="$(MAKE)"'
48164_ACEOF
48165# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48166eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48167if test -n "$ac_maketemp"; then
48168 eval ac_cv_prog_make_${ac_make}_set=yes
48169else
48170 eval ac_cv_prog_make_${ac_make}_set=no
48171fi
48172rm -f conftest.make
48173fi
48174if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48175 echo "$as_me:$LINENO: result: yes" >&5
48176echo "${ECHO_T}yes" >&6
48177 SET_MAKE=
48178else
48179 echo "$as_me:$LINENO: result: no" >&5
48180echo "${ECHO_T}no" >&6
48181 SET_MAKE="MAKE=${MAKE-make}"
48182fi
48183
48184
a848cd7e 48185
ceec2216
RL
48186 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48187
a848cd7e 48188
5c60e845
MW
48189if test "$USE_WIN32" = 1; then
48190 ac_config_commands="$ac_config_commands
48191 rcdefs.h
48192 "
48193
48194fi
48195
ceec2216 48196 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48197
a848cd7e 48198
ceec2216 48199 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48200
ceec2216
RL
48201
48202 ac_config_files="$ac_config_files version-script Makefile"
48203
48204
5c60e845 48205 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48206
48207
9103d280 48208
1c14217d 48209if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48210if test "$wxUSE_GUI" = "yes"; then
48211 SUBDIRS="samples demos utils contrib"
48212else SUBDIRS="samples utils"
48213fi
48214
48215
48216
48217# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48218if test "${with_cppunit_prefix+set}" = set; then
48219 withval="$with_cppunit_prefix"
48220 cppunit_config_prefix="$withval"
48221else
48222 cppunit_config_prefix=""
48223fi;
48224
48225# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48226if test "${with_cppunit_exec_prefix+set}" = set; then
48227 withval="$with_cppunit_exec_prefix"
48228 cppunit_config_exec_prefix="$withval"
48229else
48230 cppunit_config_exec_prefix=""
48231fi;
48232
48233 if test x$cppunit_config_exec_prefix != x ; then
48234 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48235 if test x${CPPUNIT_CONFIG+set} != xset ; then
48236 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48237 fi
48238 fi
48239 if test x$cppunit_config_prefix != x ; then
48240 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48241 if test x${CPPUNIT_CONFIG+set} != xset ; then
48242 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48243 fi
48244 fi
48245
48246 # Extract the first word of "cppunit-config", so it can be a program name with args.
48247set dummy cppunit-config; ac_word=$2
48248echo "$as_me:$LINENO: checking for $ac_word" >&5
48249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48250if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48251 echo $ECHO_N "(cached) $ECHO_C" >&6
48252else
48253 case $CPPUNIT_CONFIG in
48254 [\\/]* | ?:[\\/]*)
48255 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48256 ;;
48257 *)
48258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48259for as_dir in $PATH
48260do
48261 IFS=$as_save_IFS
48262 test -z "$as_dir" && as_dir=.
48263 for ac_exec_ext in '' $ac_executable_extensions; do
48264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48265 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48267 break 2
48268 fi
48269done
48270done
48271
48272 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48273 ;;
48274esac
48275fi
48276CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48277
48278if test -n "$CPPUNIT_CONFIG"; then
48279 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48280echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48281else
48282 echo "$as_me:$LINENO: result: no" >&5
48283echo "${ECHO_T}no" >&6
48284fi
48285
48286 cppunit_version_min=1.8.0
48287
48288 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48289echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48290 no_cppunit=""
48291 if test "$CPPUNIT_CONFIG" = "no" ; then
48292 no_cppunit=yes
48293 else
48294 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48295 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48296 cppunit_version=`$CPPUNIT_CONFIG --version`
48297
48298 cppunit_major_version=`echo $cppunit_version | \
48299 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48300 cppunit_minor_version=`echo $cppunit_version | \
48301 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48302 cppunit_micro_version=`echo $cppunit_version | \
48303 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48304
48305 cppunit_major_min=`echo $cppunit_version_min | \
48306 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48307 cppunit_minor_min=`echo $cppunit_version_min | \
48308 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48309 cppunit_micro_min=`echo $cppunit_version_min | \
48310 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48311
48312 cppunit_version_proper=`expr \
48313 $cppunit_major_version \> $cppunit_major_min \| \
48314 $cppunit_major_version \= $cppunit_major_min \& \
48315 $cppunit_minor_version \> $cppunit_minor_min \| \
48316 $cppunit_major_version \= $cppunit_major_min \& \
48317 $cppunit_minor_version \= $cppunit_minor_min \& \
48318 $cppunit_micro_version \>= $cppunit_micro_min `
48319
48320 if test "$cppunit_version_proper" = "1" ; then
48321 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48322echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48323 else
48324 echo "$as_me:$LINENO: result: no" >&5
48325echo "${ECHO_T}no" >&6
48326 no_cppunit=yes
48327 fi
48328 fi
48329
48330 if test "x$no_cppunit" = x ; then
c2218763 48331 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48332 else
48333 CPPUNIT_CFLAGS=""
48334 CPPUNIT_LIBS=""
c2218763 48335 :
a848cd7e
SC
48336 fi
48337
48338
48339
48340
48341
48342for subdir in `echo $SUBDIRS`; do
48343 if test -d ${srcdir}/${subdir} ; then
48344 if test "$wxUSE_GUI" = "yes"; then
48345 if test ${subdir} = "samples"; then
48346 makefiles="samples/Makefile.in $makefiles"
48347 for sample in `echo $SAMPLES_SUBDIRS`; do
48348 if test -d $srcdir/samples/$sample; then
48349 makefiles="samples/$sample/Makefile.in $makefiles"
48350 fi
48351 done
9c112555
MW
48352 else
48353 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48354 eval "disabled=\$$disabled_var"
48355 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48356 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48357 fi
48358 else if test ${subdir} = "samples"; then
48359 makefiles="samples/Makefile.in samples/console/Makefile.in"
48360 elif test ${subdir} = "utils"; then
6537ccf8
VS
48361 makefiles=""
48362 for util in HelpGen tex2rtf ; do
48363 if test -d $srcdir/utils/$util ; then
48364 makefiles="utils/$util/Makefile.in \
48365 utils/$util/src/Makefile.in \
48366 $makefiles"
48367 fi
48368 done
a848cd7e
SC
48369 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48370 fi
48371 fi
48372
48373 for mkin in $makefiles ; do
48374 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48375 ac_config_files="$ac_config_files $mk"
48376
48377 done
48378 fi
48379done
1c14217d 48380fi
a848cd7e
SC
48381cat >confcache <<\_ACEOF
48382# This file is a shell script that caches the results of configure
48383# tests run on this system so they can be shared between configure
48384# scripts and configure runs, see configure's option --config-cache.
48385# It is not useful on other systems. If it contains results you don't
48386# want to keep, you may remove or edit it.
48387#
48388# config.status only pays attention to the cache file if you give it
48389# the --recheck option to rerun configure.
48390#
48391# `ac_cv_env_foo' variables (set or unset) will be overridden when
48392# loading this file, other *unset* `ac_cv_foo' will be assigned the
48393# following values.
48394
48395_ACEOF
48396
48397# The following way of writing the cache mishandles newlines in values,
48398# but we know of no workaround that is simple, portable, and efficient.
48399# So, don't put newlines in cache variables' values.
48400# Ultrix sh set writes to stderr and can't be redirected directly,
48401# and sets the high bit in the cache file unless we assign to the vars.
48402{
48403 (set) 2>&1 |
48404 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48405 *ac_space=\ *)
48406 # `set' does not quote correctly, so add quotes (double-quote
48407 # substitution turns \\\\ into \\, and sed turns \\ into \).
48408 sed -n \
ac1cb8d3
VS
48409 "s/'/'\\\\''/g;
48410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48411 ;;
48412 *)
48413 # `set' quotes correctly as required by POSIX, so do not add quotes.
48414 sed -n \
ac1cb8d3 48415 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48416 ;;
48417 esac;
48418} |
48419 sed '
48420 t clear
48421 : clear
48422 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48423 t end
48424 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48425 : end' >>confcache
48426if diff $cache_file confcache >/dev/null 2>&1; then :; else
48427 if test -w $cache_file; then
48428 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48429 cat confcache >$cache_file
48430 else
48431 echo "not updating unwritable cache $cache_file"
48432 fi
48433fi
48434rm -f confcache
48435
48436test "x$prefix" = xNONE && prefix=$ac_default_prefix
48437# Let make expand exec_prefix.
48438test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48439
48440# VPATH may cause trouble with some makes, so we remove $(srcdir),
48441# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48442# trailing colons and then remove the whole line if VPATH becomes empty
48443# (actually we leave an empty line to preserve line numbers).
48444if test "x$srcdir" = x.; then
ac1cb8d3 48445 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48446s/:*\$(srcdir):*/:/;
48447s/:*\${srcdir}:*/:/;
48448s/:*@srcdir@:*/:/;
ac1cb8d3 48449s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48450s/:*$//;
ac1cb8d3 48451s/^[^=]*=[ ]*$//;
a848cd7e
SC
48452}'
48453fi
48454
48455DEFS=-DHAVE_CONFIG_H
48456
48457ac_libobjs=
48458ac_ltlibobjs=
48459for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48460 # 1. Remove the extension, and $U if already installed.
48461 ac_i=`echo "$ac_i" |
ac1cb8d3 48462 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48463 # 2. Add them.
48464 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48465 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48466done
48467LIBOBJS=$ac_libobjs
48468
48469LTLIBOBJS=$ac_ltlibobjs
48470
48471
48472
48473: ${CONFIG_STATUS=./config.status}
48474ac_clean_files_save=$ac_clean_files
48475ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48476{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48477echo "$as_me: creating $CONFIG_STATUS" >&6;}
48478cat >$CONFIG_STATUS <<_ACEOF
48479#! $SHELL
48480# Generated by $as_me.
48481# Run this file to recreate the current configuration.
48482# Compiler output produced by configure, useful for debugging
48483# configure, is in config.log if it exists.
48484
48485debug=false
48486ac_cs_recheck=false
48487ac_cs_silent=false
48488SHELL=\${CONFIG_SHELL-$SHELL}
48489_ACEOF
48490
48491cat >>$CONFIG_STATUS <<\_ACEOF
48492## --------------------- ##
48493## M4sh Initialization. ##
48494## --------------------- ##
48495
48496# Be Bourne compatible
48497if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48498 emulate sh
48499 NULLCMD=:
48500 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48501 # is contrary to our usage. Disable this feature.
48502 alias -g '${1+"$@"}'='"$@"'
48503elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48504 set -o posix
48505fi
ac1cb8d3 48506DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48507
48508# Support unset when possible.
ac1cb8d3 48509if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48510 as_unset=unset
48511else
48512 as_unset=false
48513fi
48514
48515
48516# Work around bugs in pre-3.0 UWIN ksh.
48517$as_unset ENV MAIL MAILPATH
48518PS1='$ '
48519PS2='> '
48520PS4='+ '
48521
48522# NLS nuisances.
48523for as_var in \
48524 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48525 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48526 LC_TELEPHONE LC_TIME
48527do
ac1cb8d3 48528 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48529 eval $as_var=C; export $as_var
48530 else
48531 $as_unset $as_var
48532 fi
48533done
48534
48535# Required to use basename.
48536if expr a : '\(a\)' >/dev/null 2>&1; then
48537 as_expr=expr
48538else
48539 as_expr=false
48540fi
48541
48542if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48543 as_basename=basename
48544else
48545 as_basename=false
48546fi
48547
48548
48549# Name of the executable.
48550as_me=`$as_basename "$0" ||
48551$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48552 X"$0" : 'X\(//\)$' \| \
48553 X"$0" : 'X\(/\)$' \| \
48554 . : '\(.\)' 2>/dev/null ||
48555echo X/"$0" |
48556 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48557 /^X\/\(\/\/\)$/{ s//\1/; q; }
48558 /^X\/\(\/\).*/{ s//\1/; q; }
48559 s/.*/./; q'`
48560
48561
48562# PATH needs CR, and LINENO needs CR and PATH.
48563# Avoid depending upon Character Ranges.
48564as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48565as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48566as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48567as_cr_digits='0123456789'
48568as_cr_alnum=$as_cr_Letters$as_cr_digits
48569
48570# The user is always right.
48571if test "${PATH_SEPARATOR+set}" != set; then
48572 echo "#! /bin/sh" >conf$$.sh
48573 echo "exit 0" >>conf$$.sh
48574 chmod +x conf$$.sh
48575 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48576 PATH_SEPARATOR=';'
48577 else
48578 PATH_SEPARATOR=:
48579 fi
48580 rm -f conf$$.sh
48581fi
48582
48583
48584 as_lineno_1=$LINENO
48585 as_lineno_2=$LINENO
48586 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48587 test "x$as_lineno_1" != "x$as_lineno_2" &&
48588 test "x$as_lineno_3" = "x$as_lineno_2" || {
48589 # Find who we are. Look in the path if we contain no path at all
48590 # relative or not.
48591 case $0 in
48592 *[\\/]* ) as_myself=$0 ;;
48593 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48594for as_dir in $PATH
48595do
48596 IFS=$as_save_IFS
48597 test -z "$as_dir" && as_dir=.
48598 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48599done
48600
48601 ;;
48602 esac
48603 # We did not find ourselves, most probably we were run as `sh COMMAND'
48604 # in which case we are not to be found in the path.
48605 if test "x$as_myself" = x; then
48606 as_myself=$0
48607 fi
48608 if test ! -f "$as_myself"; then
48609 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48610echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48611 { (exit 1); exit 1; }; }
48612 fi
48613 case $CONFIG_SHELL in
48614 '')
48615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48616for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48617do
48618 IFS=$as_save_IFS
48619 test -z "$as_dir" && as_dir=.
48620 for as_base in sh bash ksh sh5; do
48621 case $as_dir in
48622 /*)
48623 if ("$as_dir/$as_base" -c '
48624 as_lineno_1=$LINENO
48625 as_lineno_2=$LINENO
48626 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48627 test "x$as_lineno_1" != "x$as_lineno_2" &&
48628 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48629 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48630 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48631 CONFIG_SHELL=$as_dir/$as_base
48632 export CONFIG_SHELL
48633 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48634 fi;;
48635 esac
48636 done
48637done
48638;;
48639 esac
48640
48641 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48642 # uniformly replaced by the line number. The first 'sed' inserts a
48643 # line-number line before each line; the second 'sed' does the real
48644 # work. The second script uses 'N' to pair each line-number line
48645 # with the numbered line, and appends trailing '-' during
48646 # substitution so that $LINENO is not a special case at line end.
48647 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48648 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48649 sed '=' <$as_myself |
48650 sed '
48651 N
48652 s,$,-,
48653 : loop
48654 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48655 t loop
48656 s,-$,,
48657 s,^['$as_cr_digits']*\n,,
48658 ' >$as_me.lineno &&
48659 chmod +x $as_me.lineno ||
48660 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48661echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48662 { (exit 1); exit 1; }; }
48663
48664 # Don't try to exec as it changes $[0], causing all sort of problems
48665 # (the dirname of $[0] is not the place where we might find the
48666 # original and so on. Autoconf is especially sensible to this).
48667 . ./$as_me.lineno
48668 # Exit status is that of the last command.
48669 exit
48670}
48671
48672
48673case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48674 *c*,-n*) ECHO_N= ECHO_C='
48675' ECHO_T=' ' ;;
48676 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48677 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48678esac
48679
48680if expr a : '\(a\)' >/dev/null 2>&1; then
48681 as_expr=expr
48682else
48683 as_expr=false
48684fi
48685
48686rm -f conf$$ conf$$.exe conf$$.file
48687echo >conf$$.file
48688if ln -s conf$$.file conf$$ 2>/dev/null; then
48689 # We could just check for DJGPP; but this test a) works b) is more generic
48690 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48691 if test -f conf$$.exe; then
48692 # Don't use ln at all; we don't have any links
48693 as_ln_s='cp -p'
48694 else
48695 as_ln_s='ln -s'
48696 fi
48697elif ln conf$$.file conf$$ 2>/dev/null; then
48698 as_ln_s=ln
48699else
48700 as_ln_s='cp -p'
48701fi
48702rm -f conf$$ conf$$.exe conf$$.file
48703
48704if mkdir -p . 2>/dev/null; then
48705 as_mkdir_p=:
48706else
ac1cb8d3 48707 test -d ./-p && rmdir ./-p
a848cd7e
SC
48708 as_mkdir_p=false
48709fi
48710
48711as_executable_p="test -f"
48712
48713# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48714as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48715
48716# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48717as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48718
48719
48720# IFS
48721# We need space, tab and new line, in precisely that order.
48722as_nl='
48723'
48724IFS=" $as_nl"
48725
48726# CDPATH.
48727$as_unset CDPATH
48728
48729exec 6>&1
48730
48731# Open the log real soon, to keep \$[0] and so on meaningful, and to
48732# report actual input values of CONFIG_FILES etc. instead of their
48733# values after options handling. Logging --version etc. is OK.
48734exec 5>>config.log
48735{
48736 echo
48737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48738## Running $as_me. ##
48739_ASBOX
48740} >&5
48741cat >&5 <<_CSEOF
48742
dd8df4fc 48743This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 48744generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
48745
48746 CONFIG_FILES = $CONFIG_FILES
48747 CONFIG_HEADERS = $CONFIG_HEADERS
48748 CONFIG_LINKS = $CONFIG_LINKS
48749 CONFIG_COMMANDS = $CONFIG_COMMANDS
48750 $ $0 $@
48751
48752_CSEOF
48753echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48754echo >&5
48755_ACEOF
48756
48757# Files that config.status was made for.
48758if test -n "$ac_config_files"; then
48759 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48760fi
48761
48762if test -n "$ac_config_headers"; then
48763 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48764fi
48765
48766if test -n "$ac_config_links"; then
48767 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48768fi
48769
48770if test -n "$ac_config_commands"; then
48771 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48772fi
48773
48774cat >>$CONFIG_STATUS <<\_ACEOF
48775
48776ac_cs_usage="\
48777\`$as_me' instantiates files from templates according to the
48778current configuration.
48779
48780Usage: $0 [OPTIONS] [FILE]...
48781
48782 -h, --help print this help, then exit
48783 -V, --version print version number, then exit
48784 -q, --quiet do not print progress messages
48785 -d, --debug don't remove temporary files
48786 --recheck update $as_me by reconfiguring in the same conditions
48787 --file=FILE[:TEMPLATE]
ac1cb8d3 48788 instantiate the configuration file FILE
a848cd7e 48789 --header=FILE[:TEMPLATE]
ac1cb8d3 48790 instantiate the configuration header FILE
a848cd7e
SC
48791
48792Configuration files:
48793$config_files
48794
48795Configuration headers:
48796$config_headers
48797
48798Configuration commands:
48799$config_commands
48800
48801Report bugs to <bug-autoconf@gnu.org>."
48802_ACEOF
48803
48804cat >>$CONFIG_STATUS <<_ACEOF
48805ac_cs_version="\\
dd8df4fc 48806wxWidgets config.status 2.7.0
ac1cb8d3 48807configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
48808 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48809
ac1cb8d3 48810Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
48811This config.status script is free software; the Free Software Foundation
48812gives unlimited permission to copy, distribute and modify it."
48813srcdir=$srcdir
48814INSTALL="$INSTALL"
48815_ACEOF
48816
48817cat >>$CONFIG_STATUS <<\_ACEOF
48818# If no file are specified by the user, then we need to provide default
48819# value. By we need to know if files were specified by the user.
48820ac_need_defaults=:
48821while test $# != 0
48822do
48823 case $1 in
48824 --*=*)
48825 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48826 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48827 ac_shift=:
48828 ;;
48829 -*)
48830 ac_option=$1
48831 ac_optarg=$2
48832 ac_shift=shift
48833 ;;
48834 *) # This is not an option, so the user has probably given explicit
48835 # arguments.
48836 ac_option=$1
48837 ac_need_defaults=false;;
48838 esac
48839
48840 case $ac_option in
48841 # Handling of the options.
48842_ACEOF
48843cat >>$CONFIG_STATUS <<\_ACEOF
48844 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48845 ac_cs_recheck=: ;;
48846 --version | --vers* | -V )
48847 echo "$ac_cs_version"; exit 0 ;;
48848 --he | --h)
48849 # Conflict between --help and --header
48850 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48851Try \`$0 --help' for more information." >&5
48852echo "$as_me: error: ambiguous option: $1
48853Try \`$0 --help' for more information." >&2;}
48854 { (exit 1); exit 1; }; };;
48855 --help | --hel | -h )
48856 echo "$ac_cs_usage"; exit 0 ;;
48857 --debug | --d* | -d )
48858 debug=: ;;
48859 --file | --fil | --fi | --f )
48860 $ac_shift
48861 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48862 ac_need_defaults=false;;
48863 --header | --heade | --head | --hea )
48864 $ac_shift
48865 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48866 ac_need_defaults=false;;
48867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48868 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48869 ac_cs_silent=: ;;
48870
48871 # This is an error.
48872 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48873Try \`$0 --help' for more information." >&5
48874echo "$as_me: error: unrecognized option: $1
48875Try \`$0 --help' for more information." >&2;}
48876 { (exit 1); exit 1; }; } ;;
48877
48878 *) ac_config_targets="$ac_config_targets $1" ;;
48879
48880 esac
48881 shift
48882done
48883
48884ac_configure_extra_args=
48885
48886if $ac_cs_silent; then
48887 exec 6>/dev/null
48888 ac_configure_extra_args="$ac_configure_extra_args --silent"
48889fi
48890
48891_ACEOF
48892cat >>$CONFIG_STATUS <<_ACEOF
48893if \$ac_cs_recheck; then
48894 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48895 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48896fi
48897
48898_ACEOF
48899
48900cat >>$CONFIG_STATUS <<_ACEOF
48901#
48902# INIT-COMMANDS section.
48903#
48904
5c60e845
MW
48905
48906 CPP="$CPP"
48907 infile="$srcdir/include/wx/msw/genrcdefs.h"
48908 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
48909
48910
ceec2216
RL
48911 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48912 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48913 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48914 LN_S="${LN_S}"
a848cd7e
SC
48915
48916
48917_ACEOF
48918
48919
48920
48921cat >>$CONFIG_STATUS <<\_ACEOF
48922for ac_config_target in $ac_config_targets
48923do
48924 case "$ac_config_target" in
48925 # Handling of arguments.
ceec2216
RL
48926 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
48927 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
48928 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
48929 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48930 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 48931 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
48932 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
48933 "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
48934 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48935echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48936 { (exit 1); exit 1; }; };;
48937 esac
48938done
48939
48940# If the user did not use the arguments to specify the items to instantiate,
48941# then the envvar interface is used. Set only those that are not.
48942# We use the long form for the default assignment because of an extremely
48943# bizarre bug on SunOS 4.1.3.
48944if $ac_need_defaults; then
48945 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48946 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48947 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48948fi
48949
48950# Have a temporary directory for convenience. Make it in the build tree
48951# simply because there is no reason to put it here, and in addition,
48952# creating and moving files from /tmp can sometimes cause problems.
48953# Create a temporary directory, and hook for its removal unless debugging.
48954$debug ||
48955{
48956 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
48957 trap '{ (exit 1); exit 1; }' 1 2 13 15
48958}
48959
48960# Create a (secure) tmp directory for tmp files.
48961
48962{
48963 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
48964 test -n "$tmp" && test -d "$tmp"
48965} ||
48966{
48967 tmp=./confstat$$-$RANDOM
48968 (umask 077 && mkdir $tmp)
48969} ||
48970{
48971 echo "$me: cannot create a temporary directory in ." >&2
48972 { (exit 1); exit 1; }
48973}
48974
48975_ACEOF
48976
48977cat >>$CONFIG_STATUS <<_ACEOF
48978
48979#
48980# CONFIG_FILES section.
48981#
48982
48983# No need to generate the scripts if there are no CONFIG_FILES.
48984# This happens for instance when ./config.status config.h
48985if test -n "\$CONFIG_FILES"; then
48986 # Protect against being on the right side of a sed subst in config.status.
48987 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
48988 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
48989s,@SHELL@,$SHELL,;t t
48990s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
48991s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
48992s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
48993s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
48994s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
48995s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
48996s,@exec_prefix@,$exec_prefix,;t t
48997s,@prefix@,$prefix,;t t
48998s,@program_transform_name@,$program_transform_name,;t t
48999s,@bindir@,$bindir,;t t
49000s,@sbindir@,$sbindir,;t t
49001s,@libexecdir@,$libexecdir,;t t
49002s,@datadir@,$datadir,;t t
49003s,@sysconfdir@,$sysconfdir,;t t
49004s,@sharedstatedir@,$sharedstatedir,;t t
49005s,@localstatedir@,$localstatedir,;t t
49006s,@libdir@,$libdir,;t t
49007s,@includedir@,$includedir,;t t
49008s,@oldincludedir@,$oldincludedir,;t t
49009s,@infodir@,$infodir,;t t
49010s,@mandir@,$mandir,;t t
49011s,@build_alias@,$build_alias,;t t
49012s,@host_alias@,$host_alias,;t t
49013s,@target_alias@,$target_alias,;t t
49014s,@DEFS@,$DEFS,;t t
49015s,@ECHO_C@,$ECHO_C,;t t
49016s,@ECHO_N@,$ECHO_N,;t t
49017s,@ECHO_T@,$ECHO_T,;t t
49018s,@LIBS@,$LIBS,;t t
49019s,@build@,$build,;t t
49020s,@build_cpu@,$build_cpu,;t t
49021s,@build_vendor@,$build_vendor,;t t
49022s,@build_os@,$build_os,;t t
49023s,@host@,$host,;t t
49024s,@host_cpu@,$host_cpu,;t t
49025s,@host_vendor@,$host_vendor,;t t
49026s,@host_os@,$host_os,;t t
49027s,@target@,$target,;t t
49028s,@target_cpu@,$target_cpu,;t t
49029s,@target_vendor@,$target_vendor,;t t
49030s,@target_os@,$target_os,;t t
49031s,@CC@,$CC,;t t
49032s,@CFLAGS@,$CFLAGS,;t t
49033s,@LDFLAGS@,$LDFLAGS,;t t
49034s,@CPPFLAGS@,$CPPFLAGS,;t t
49035s,@ac_ct_CC@,$ac_ct_CC,;t t
49036s,@EXEEXT@,$EXEEXT,;t t
49037s,@OBJEXT@,$OBJEXT,;t t
49038s,@CPP@,$CPP,;t t
49039s,@EGREP@,$EGREP,;t t
49040s,@CXX@,$CXX,;t t
49041s,@CXXFLAGS@,$CXXFLAGS,;t t
49042s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49043s,@RANLIB@,$RANLIB,;t t
49044s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49045s,@AR@,$AR,;t t
8c80d384 49046s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49047s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49048s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49049s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49050s,@STRIP@,$STRIP,;t t
8c80d384 49051s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49052s,@WINDRES@,$WINDRES,;t t
49053s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49054s,@DLLTOOL@,$DLLTOOL,;t t
49055s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49056s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49057s,@LN_S@,$LN_S,;t t
bcaab0f9 49058s,@LNDIR@,$LNDIR,;t t
a848cd7e
SC
49059s,@CXXCPP@,$CXXCPP,;t t
49060s,@subdirs@,$subdirs,;t t
49061s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49062s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49063s,@GTK_LIBS@,$GTK_LIBS,;t t
49064s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49065s,@X_CFLAGS@,$X_CFLAGS,;t t
49066s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49067s,@X_LIBS@,$X_LIBS,;t t
49068s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49069s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49070s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49071s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49072s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49073s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49074s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49075s,@REZ@,$REZ,;t t
a848cd7e
SC
49076s,@DEREZ@,$DEREZ,;t t
49077s,@SETFILE@,$SETFILE,;t t
49078s,@LIBICONV@,$LIBICONV,;t t
49079s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49080s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49081s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49082s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49083s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49084s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
3565d135
RR
49085s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49086s,@HILDON_LIBS@,$HILDON_LIBS,;t t
dae87f93
RN
49087s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
49088s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
49089s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
49090s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49091s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49092s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49093s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49094s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49095s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49096s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49097s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49098s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49099s,@VENDOR@,$VENDOR,;t t
49100s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49101s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49102s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49103s,@WXUNIV@,$WXUNIV,;t t
49104s,@MONOLITHIC@,$MONOLITHIC,;t t
49105s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49106s,@EXTRALIBS@,$EXTRALIBS,;t t
49107s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49108s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49109s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49110s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49111s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49112s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49113s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49114s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
3565d135 49115s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49116s,@UNICODE@,$UNICODE,;t t
49117s,@BUILD@,$BUILD,;t t
49118s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49119s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49120s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49121s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49122s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49123s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49124s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49125s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49126s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49127s,@SET_MAKE@,$SET_MAKE,;t t
49128s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49129s,@NM@,$NM,;t t
49130s,@ac_ct_NM@,$ac_ct_NM,;t t
49131s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49132s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49133s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49134s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49135s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49136s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49137s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49138s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49139s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49140s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49141s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49142s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49143s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49144s,@LIBPREFIX@,$LIBPREFIX,;t t
49145s,@LIBEXT@,$LIBEXT,;t t
49146s,@DLLPREFIX@,$DLLPREFIX,;t t
49147s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49148s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49149s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49150s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49151s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49152s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49153s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49154s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49155s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49156s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49157s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49158s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49159s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49160s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49161s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49162s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49163s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49164s,@GCC_PCH@,$GCC_PCH,;t t
49165s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49166s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49167s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49168s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49169s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49170s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49171s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49172s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49173s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49174s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49175s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49176s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49177s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49178s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49179s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
49180s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49181s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49182s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49183s,@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 49184s,@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 49185s,@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 49186s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49187s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49188s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49189s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49190s,@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 49191s,@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 49192s,@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 49193s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49194s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
49195s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49196s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49197s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49198s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49199s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49200s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49201s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49202s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49203s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49204s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49205s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49206s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49207s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49208s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49209s,@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
49210s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49211s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49212s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49213s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49214s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49215s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 49216s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49217s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49218s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49219s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49220s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49221s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49222s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49223s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49224s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49225s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49226s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49227s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49228s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49229s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49230s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49231s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49232s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49233s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49234s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49235s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49236s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49237s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49238s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49239s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49240s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49241s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49242s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49243s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49244s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49245s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49246s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49247s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49248s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49249s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49250s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49251s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49252s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49253s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49254s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49255s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49256s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49257s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49258s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49259s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49260s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49261s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49262s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49263s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49264s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49265s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49266s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49267s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49268s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49269s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49270s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49271s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49272s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49273s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49274s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49275s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49276s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49277s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49278s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49279s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49280s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49281s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49282s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49283s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49284s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 49285s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49286s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49287s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49288s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49289s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49290s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49291s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49292s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49293s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49294s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49295s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49296s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49297s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49298s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49299s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49300s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49301s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49302s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49303s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49304s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49305s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49306s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49307s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49308s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49309s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49310s,@USE_GUI@,$USE_GUI,;t t
49311s,@AFMINSTALL@,$AFMINSTALL,;t t
49312s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49313s,@TOOLKIT@,$TOOLKIT,;t t
49314s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49315s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49316s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49317s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49318s,@WIDGET_SET@,$WIDGET_SET,;t t
49319s,@WX_RELEASE@,$WX_RELEASE,;t t
49320s,@WX_VERSION@,$WX_VERSION,;t t
49321s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49322s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49323s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49324s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49325s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49326s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49327s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49328s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49329s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49330s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49331s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49332s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49333s,@DISTDIR@,$DISTDIR,;t t
49334s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49335s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49336s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49337s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49338s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49339s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49340s,@RESFLAGS@,$RESFLAGS,;t t
49341s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49342s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49343s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49344s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49345s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49346s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49347s,@GCC@,$GCC,;t t
a848cd7e
SC
49348s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49349s,@LIBOBJS@,$LIBOBJS,;t t
49350s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49351CEOF
49352
49353_ACEOF
49354
49355 cat >>$CONFIG_STATUS <<\_ACEOF
49356 # Split the substitutions into bite-sized pieces for seds with
49357 # small command number limits, like on Digital OSF/1 and HP-UX.
49358 ac_max_sed_lines=48
49359 ac_sed_frag=1 # Number of current file.
49360 ac_beg=1 # First line for current file.
49361 ac_end=$ac_max_sed_lines # Line after last line for current file.
49362 ac_more_lines=:
49363 ac_sed_cmds=
49364 while $ac_more_lines; do
49365 if test $ac_beg -gt 1; then
49366 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49367 else
49368 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49369 fi
49370 if test ! -s $tmp/subs.frag; then
49371 ac_more_lines=false
49372 else
49373 # The purpose of the label and of the branching condition is to
49374 # speed up the sed processing (if there are no `@' at all, there
49375 # is no need to browse any of the substitutions).
49376 # These are the two extra sed commands mentioned above.
49377 (echo ':t
49378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49379 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49380 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49381 else
ac1cb8d3 49382 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49383 fi
49384 ac_sed_frag=`expr $ac_sed_frag + 1`
49385 ac_beg=$ac_end
49386 ac_end=`expr $ac_end + $ac_max_sed_lines`
49387 fi
49388 done
49389 if test -z "$ac_sed_cmds"; then
49390 ac_sed_cmds=cat
49391 fi
49392fi # test -n "$CONFIG_FILES"
49393
49394_ACEOF
49395cat >>$CONFIG_STATUS <<\_ACEOF
49396for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49397 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49398 case $ac_file in
49399 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49400 cat >$tmp/stdin
49401 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49402 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49403 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49404 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49405 * ) ac_file_in=$ac_file.in ;;
49406 esac
49407
49408 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49409 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49410$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49411 X"$ac_file" : 'X\(//\)[^/]' \| \
49412 X"$ac_file" : 'X\(//\)$' \| \
49413 X"$ac_file" : 'X\(/\)' \| \
49414 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49415echo X"$ac_file" |
49416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49418 /^X\(\/\/\)$/{ s//\1/; q; }
49419 /^X\(\/\).*/{ s//\1/; q; }
49420 s/.*/./; q'`
49421 { if $as_mkdir_p; then
49422 mkdir -p "$ac_dir"
49423 else
49424 as_dir="$ac_dir"
49425 as_dirs=
49426 while test ! -d "$as_dir"; do
49427 as_dirs="$as_dir $as_dirs"
49428 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49429$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49430 X"$as_dir" : 'X\(//\)[^/]' \| \
49431 X"$as_dir" : 'X\(//\)$' \| \
49432 X"$as_dir" : 'X\(/\)' \| \
49433 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49434echo X"$as_dir" |
49435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49436 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49437 /^X\(\/\/\)$/{ s//\1/; q; }
49438 /^X\(\/\).*/{ s//\1/; q; }
49439 s/.*/./; q'`
49440 done
49441 test ! -n "$as_dirs" || mkdir $as_dirs
49442 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49443echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49444 { (exit 1); exit 1; }; }; }
49445
49446 ac_builddir=.
49447
49448if test "$ac_dir" != .; then
49449 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49450 # A "../" for each directory in $ac_dir_suffix.
49451 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49452else
49453 ac_dir_suffix= ac_top_builddir=
49454fi
49455
49456case $srcdir in
49457 .) # No --srcdir option. We are building in place.
49458 ac_srcdir=.
49459 if test -z "$ac_top_builddir"; then
49460 ac_top_srcdir=.
49461 else
49462 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49463 fi ;;
49464 [\\/]* | ?:[\\/]* ) # Absolute path.
49465 ac_srcdir=$srcdir$ac_dir_suffix;
49466 ac_top_srcdir=$srcdir ;;
49467 *) # Relative path.
49468 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49469 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49470esac
ac1cb8d3
VS
49471
49472# Do not use `cd foo && pwd` to compute absolute paths, because
49473# the directories may not exist.
49474case `pwd` in
49475.) ac_abs_builddir="$ac_dir";;
49476*)
49477 case "$ac_dir" in
49478 .) ac_abs_builddir=`pwd`;;
49479 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49480 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49481 esac;;
49482esac
49483case $ac_abs_builddir in
49484.) ac_abs_top_builddir=${ac_top_builddir}.;;
49485*)
49486 case ${ac_top_builddir}. in
49487 .) ac_abs_top_builddir=$ac_abs_builddir;;
49488 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49489 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49490 esac;;
49491esac
49492case $ac_abs_builddir in
49493.) ac_abs_srcdir=$ac_srcdir;;
49494*)
49495 case $ac_srcdir in
49496 .) ac_abs_srcdir=$ac_abs_builddir;;
49497 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49498 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49499 esac;;
49500esac
49501case $ac_abs_builddir in
49502.) ac_abs_top_srcdir=$ac_top_srcdir;;
49503*)
49504 case $ac_top_srcdir in
49505 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49506 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49507 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49508 esac;;
49509esac
a848cd7e
SC
49510
49511
49512 case $INSTALL in
49513 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49514 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49515 esac
49516
3565d135
RR
49517 if test x"$ac_file" != x-; then
49518 { echo "$as_me:$LINENO: creating $ac_file" >&5
49519echo "$as_me: creating $ac_file" >&6;}
49520 rm -f "$ac_file"
49521 fi
a848cd7e
SC
49522 # Let's still pretend it is `configure' which instantiates (i.e., don't
49523 # use $as_me), people would be surprised to read:
49524 # /* config.h. Generated by config.status. */
49525 if test x"$ac_file" = x-; then
49526 configure_input=
49527 else
49528 configure_input="$ac_file. "
49529 fi
49530 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49531 sed 's,.*/,,'` by configure."
a848cd7e
SC
49532
49533 # First look for the input files in the build tree, otherwise in the
49534 # src tree.
49535 ac_file_inputs=`IFS=:
49536 for f in $ac_file_in; do
49537 case $f in
49538 -) echo $tmp/stdin ;;
49539 [\\/$]*)
ac1cb8d3
VS
49540 # Absolute (can't be DOS-style, as IFS=:)
49541 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49542echo "$as_me: error: cannot find input file: $f" >&2;}
49543 { (exit 1); exit 1; }; }
ac1cb8d3 49544 echo "$f";;
a848cd7e 49545 *) # Relative
ac1cb8d3
VS
49546 if test -f "$f"; then
49547 # Build tree
49548 echo "$f"
49549 elif test -f "$srcdir/$f"; then
49550 # Source tree
49551 echo "$srcdir/$f"
49552 else
49553 # /dev/null tree
49554 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49555echo "$as_me: error: cannot find input file: $f" >&2;}
49556 { (exit 1); exit 1; }; }
ac1cb8d3 49557 fi;;
a848cd7e
SC
49558 esac
49559 done` || { (exit 1); exit 1; }
49560_ACEOF
49561cat >>$CONFIG_STATUS <<_ACEOF
49562 sed "$ac_vpsub
49563$extrasub
49564_ACEOF
49565cat >>$CONFIG_STATUS <<\_ACEOF
49566:t
49567/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49568s,@configure_input@,$configure_input,;t t
49569s,@srcdir@,$ac_srcdir,;t t
49570s,@abs_srcdir@,$ac_abs_srcdir,;t t
49571s,@top_srcdir@,$ac_top_srcdir,;t t
49572s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49573s,@builddir@,$ac_builddir,;t t
49574s,@abs_builddir@,$ac_abs_builddir,;t t
49575s,@top_builddir@,$ac_top_builddir,;t t
49576s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49577s,@INSTALL@,$ac_INSTALL,;t t
49578" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49579 rm -f $tmp/stdin
49580 if test x"$ac_file" != x-; then
49581 mv $tmp/out $ac_file
49582 else
49583 cat $tmp/out
49584 rm -f $tmp/out
49585 fi
49586
ceec2216
RL
49587 # Run the commands associated with the file.
49588 case $ac_file in
49589 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49590 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49591 esac
a848cd7e
SC
49592done
49593_ACEOF
49594cat >>$CONFIG_STATUS <<\_ACEOF
49595
49596#
49597# CONFIG_HEADER section.
49598#
49599
49600# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49601# NAME is the cpp macro being defined and VALUE is the value it is being given.
49602#
49603# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49604ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49605ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49606ac_dC=' '
49607ac_dD=',;t'
49608# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49609ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49610ac_uB='$,\1#\2define\3'
49611ac_uC=' '
49612ac_uD=',;t'
49613
49614for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49615 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49616 case $ac_file in
49617 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49618 cat >$tmp/stdin
49619 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49620 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49621 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49622 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49623 * ) ac_file_in=$ac_file.in ;;
49624 esac
49625
49626 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49627echo "$as_me: creating $ac_file" >&6;}
49628
49629 # First look for the input files in the build tree, otherwise in the
49630 # src tree.
49631 ac_file_inputs=`IFS=:
49632 for f in $ac_file_in; do
49633 case $f in
49634 -) echo $tmp/stdin ;;
49635 [\\/$]*)
ac1cb8d3
VS
49636 # Absolute (can't be DOS-style, as IFS=:)
49637 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49638echo "$as_me: error: cannot find input file: $f" >&2;}
49639 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49640 # Do quote $f, to prevent DOS paths from being IFS'd.
49641 echo "$f";;
a848cd7e 49642 *) # Relative
ac1cb8d3
VS
49643 if test -f "$f"; then
49644 # Build tree
49645 echo "$f"
49646 elif test -f "$srcdir/$f"; then
49647 # Source tree
49648 echo "$srcdir/$f"
49649 else
49650 # /dev/null tree
49651 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49652echo "$as_me: error: cannot find input file: $f" >&2;}
49653 { (exit 1); exit 1; }; }
ac1cb8d3 49654 fi;;
a848cd7e
SC
49655 esac
49656 done` || { (exit 1); exit 1; }
49657 # Remove the trailing spaces.
ac1cb8d3 49658 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49659
49660_ACEOF
49661
49662# Transform confdefs.h into two sed scripts, `conftest.defines' and
49663# `conftest.undefs', that substitutes the proper values into
49664# config.h.in to produce config.h. The first handles `#define'
49665# templates, and the second `#undef' templates.
49666# And first: Protect against being on the right side of a sed subst in
49667# config.status. Protect against being in an unquoted here document
49668# in config.status.
49669rm -f conftest.defines conftest.undefs
49670# Using a here document instead of a string reduces the quoting nightmare.
49671# Putting comments in sed scripts is not portable.
49672#
49673# `end' is used to avoid that the second main sed command (meant for
49674# 0-ary CPP macros) applies to n-ary macro definitions.
49675# See the Autoconf documentation for `clear'.
49676cat >confdef2sed.sed <<\_ACEOF
49677s/[\\&,]/\\&/g
49678s,[\\$`],\\&,g
49679t clear
49680: clear
ac1cb8d3 49681s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49682t end
ac1cb8d3 49683s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49684: end
49685_ACEOF
49686# If some macros were called several times there might be several times
49687# the same #defines, which is useless. Nevertheless, we may not want to
49688# sort them, since we want the *last* AC-DEFINE to be honored.
49689uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49690sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49691rm -f confdef2sed.sed
49692
49693# This sed command replaces #undef with comments. This is necessary, for
49694# example, in the case of _POSIX_SOURCE, which is predefined and required
49695# on some systems where configure will not decide to define it.
49696cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49697s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49698_ACEOF
49699
49700# Break up conftest.defines because some shells have a limit on the size
49701# of here documents, and old seds have small limits too (100 cmds).
49702echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49703echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49704echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49705echo ' :' >>$CONFIG_STATUS
49706rm -f conftest.tail
49707while grep . conftest.defines >/dev/null
49708do
49709 # Write a limited-size here document to $tmp/defines.sed.
49710 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49711 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49712 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49713 # Work around the forget-to-reset-the-flag bug.
49714 echo 't clr' >>$CONFIG_STATUS
49715 echo ': clr' >>$CONFIG_STATUS
49716 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49717 echo 'CEOF
49718 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49719 rm -f $tmp/in
49720 mv $tmp/out $tmp/in
49721' >>$CONFIG_STATUS
49722 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49723 rm -f conftest.defines
49724 mv conftest.tail conftest.defines
49725done
49726rm -f conftest.defines
49727echo ' fi # grep' >>$CONFIG_STATUS
49728echo >>$CONFIG_STATUS
49729
49730# Break up conftest.undefs because some shells have a limit on the size
49731# of here documents, and old seds have small limits too (100 cmds).
49732echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49733rm -f conftest.tail
49734while grep . conftest.undefs >/dev/null
49735do
49736 # Write a limited-size here document to $tmp/undefs.sed.
49737 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49738 # Speed up: don't consider the non `#undef'
ac1cb8d3 49739 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
49740 # Work around the forget-to-reset-the-flag bug.
49741 echo 't clr' >>$CONFIG_STATUS
49742 echo ': clr' >>$CONFIG_STATUS
49743 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49744 echo 'CEOF
49745 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49746 rm -f $tmp/in
49747 mv $tmp/out $tmp/in
49748' >>$CONFIG_STATUS
49749 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49750 rm -f conftest.undefs
49751 mv conftest.tail conftest.undefs
49752done
49753rm -f conftest.undefs
49754
49755cat >>$CONFIG_STATUS <<\_ACEOF
49756 # Let's still pretend it is `configure' which instantiates (i.e., don't
49757 # use $as_me), people would be surprised to read:
49758 # /* config.h. Generated by config.status. */
49759 if test x"$ac_file" = x-; then
49760 echo "/* Generated by configure. */" >$tmp/config.h
49761 else
49762 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49763 fi
49764 cat $tmp/in >>$tmp/config.h
49765 rm -f $tmp/in
49766 if test x"$ac_file" != x-; then
49767 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49768 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49769echo "$as_me: $ac_file is unchanged" >&6;}
49770 else
49771 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49772$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49773 X"$ac_file" : 'X\(//\)[^/]' \| \
49774 X"$ac_file" : 'X\(//\)$' \| \
49775 X"$ac_file" : 'X\(/\)' \| \
49776 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49777echo X"$ac_file" |
49778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49780 /^X\(\/\/\)$/{ s//\1/; q; }
49781 /^X\(\/\).*/{ s//\1/; q; }
49782 s/.*/./; q'`
49783 { if $as_mkdir_p; then
49784 mkdir -p "$ac_dir"
49785 else
49786 as_dir="$ac_dir"
49787 as_dirs=
49788 while test ! -d "$as_dir"; do
49789 as_dirs="$as_dir $as_dirs"
49790 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49791$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49792 X"$as_dir" : 'X\(//\)[^/]' \| \
49793 X"$as_dir" : 'X\(//\)$' \| \
49794 X"$as_dir" : 'X\(/\)' \| \
49795 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49796echo X"$as_dir" |
49797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49798 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49799 /^X\(\/\/\)$/{ s//\1/; q; }
49800 /^X\(\/\).*/{ s//\1/; q; }
49801 s/.*/./; q'`
49802 done
49803 test ! -n "$as_dirs" || mkdir $as_dirs
49804 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49805echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49806 { (exit 1); exit 1; }; }; }
49807
49808 rm -f $ac_file
49809 mv $tmp/config.h $ac_file
49810 fi
49811 else
49812 cat $tmp/config.h
49813 rm -f $tmp/config.h
49814 fi
49815done
49816_ACEOF
49817cat >>$CONFIG_STATUS <<\_ACEOF
49818
49819#
49820# CONFIG_COMMANDS section.
49821#
49822for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49823 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49824 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49825 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49826$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49827 X"$ac_dest" : 'X\(//\)[^/]' \| \
49828 X"$ac_dest" : 'X\(//\)$' \| \
49829 X"$ac_dest" : 'X\(/\)' \| \
49830 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49831echo X"$ac_dest" |
49832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49834 /^X\(\/\/\)$/{ s//\1/; q; }
49835 /^X\(\/\).*/{ s//\1/; q; }
49836 s/.*/./; q'`
ac1cb8d3
VS
49837 { if $as_mkdir_p; then
49838 mkdir -p "$ac_dir"
49839 else
49840 as_dir="$ac_dir"
49841 as_dirs=
49842 while test ! -d "$as_dir"; do
49843 as_dirs="$as_dir $as_dirs"
49844 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49845$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49846 X"$as_dir" : 'X\(//\)[^/]' \| \
49847 X"$as_dir" : 'X\(//\)$' \| \
49848 X"$as_dir" : 'X\(/\)' \| \
49849 . : '\(.\)' 2>/dev/null ||
49850echo X"$as_dir" |
49851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49853 /^X\(\/\/\)$/{ s//\1/; q; }
49854 /^X\(\/\).*/{ s//\1/; q; }
49855 s/.*/./; q'`
49856 done
49857 test ! -n "$as_dirs" || mkdir $as_dirs
49858 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49859echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49860 { (exit 1); exit 1; }; }; }
49861
a848cd7e
SC
49862 ac_builddir=.
49863
49864if test "$ac_dir" != .; then
49865 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49866 # A "../" for each directory in $ac_dir_suffix.
49867 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49868else
49869 ac_dir_suffix= ac_top_builddir=
49870fi
49871
49872case $srcdir in
49873 .) # No --srcdir option. We are building in place.
49874 ac_srcdir=.
49875 if test -z "$ac_top_builddir"; then
49876 ac_top_srcdir=.
49877 else
49878 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49879 fi ;;
49880 [\\/]* | ?:[\\/]* ) # Absolute path.
49881 ac_srcdir=$srcdir$ac_dir_suffix;
49882 ac_top_srcdir=$srcdir ;;
49883 *) # Relative path.
49884 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49885 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49886esac
ac1cb8d3
VS
49887
49888# Do not use `cd foo && pwd` to compute absolute paths, because
49889# the directories may not exist.
49890case `pwd` in
49891.) ac_abs_builddir="$ac_dir";;
49892*)
49893 case "$ac_dir" in
49894 .) ac_abs_builddir=`pwd`;;
49895 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49896 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49897 esac;;
49898esac
49899case $ac_abs_builddir in
49900.) ac_abs_top_builddir=${ac_top_builddir}.;;
49901*)
49902 case ${ac_top_builddir}. in
49903 .) ac_abs_top_builddir=$ac_abs_builddir;;
49904 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49905 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49906 esac;;
49907esac
49908case $ac_abs_builddir in
49909.) ac_abs_srcdir=$ac_srcdir;;
49910*)
49911 case $ac_srcdir in
49912 .) ac_abs_srcdir=$ac_abs_builddir;;
49913 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49914 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49915 esac;;
49916esac
49917case $ac_abs_builddir in
49918.) ac_abs_top_srcdir=$ac_top_srcdir;;
49919*)
49920 case $ac_top_srcdir in
49921 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49922 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49923 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49924 esac;;
49925esac
a848cd7e
SC
49926
49927
49928 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
49929echo "$as_me: executing $ac_dest commands" >&6;}
49930 case $ac_dest in
5c60e845
MW
49931 rcdefs.h )
49932 mkdir -p $outdir &&
49933 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
49934 ;;
ceec2216
RL
49935 wx-config ) rm -f wx-config
49936 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
49937 ;;
a848cd7e
SC
49938 esac
49939done
49940_ACEOF
49941
49942cat >>$CONFIG_STATUS <<\_ACEOF
49943
49944{ (exit 0); exit 0; }
49945_ACEOF
49946chmod +x $CONFIG_STATUS
49947ac_clean_files=$ac_clean_files_save
49948
49949
49950# configure is writing to config.log, and then calls config.status.
49951# config.status does its own redirection, appending to config.log.
49952# Unfortunately, on DOS this fails, as config.log is still kept open
49953# by configure, so config.status won't be able to write to it; its
49954# output is simply discarded. So we exec the FD to /dev/null,
49955# effectively closing config.log, so it can be properly (re)opened and
49956# appended to by config.status. When coming back to configure, we
49957# need to make the FD available again.
49958if test "$no_create" != yes; then
49959 ac_cs_success=:
49960 ac_config_status_args=
49961 test "$silent" = yes &&
49962 ac_config_status_args="$ac_config_status_args --quiet"
49963 exec 5>/dev/null
49964 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49965 exec 5>>config.log
49966 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49967 # would make configure fail if this is the last instruction.
49968 $ac_cs_success || { (exit 1); exit 1; }
49969fi
49970
49971#
49972# CONFIG_SUBDIRS section.
49973#
49974if test "$no_recursion" != yes; then
49975
49976 # Remove --cache-file and --srcdir arguments so they do not pile up.
49977 ac_sub_configure_args=
49978 ac_prev=
49979 for ac_arg in $ac_configure_args; do
49980 if test -n "$ac_prev"; then
49981 ac_prev=
49982 continue
49983 fi
49984 case $ac_arg in
49985 -cache-file | --cache-file | --cache-fil | --cache-fi \
49986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
49987 ac_prev=cache_file ;;
49988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
49989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
49990 | --c=*)
49991 ;;
49992 --config-cache | -C)
49993 ;;
49994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
49995 ac_prev=srcdir ;;
49996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
49997 ;;
49998 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
49999 ac_prev=prefix ;;
50000 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50001 ;;
50002 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50003 esac
50004 done
50005
50006 # Always prepend --prefix to ensure using the same prefix
50007 # in subdir configurations.
50008 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50009
50010 ac_popdir=`pwd`
50011 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50012
50013 # Do not complain, so a configure script can configure whichever
50014 # parts of a large source tree are present.
50015 test -d $srcdir/$ac_dir || continue
50016
50017 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50018echo "$as_me: configuring in $ac_dir" >&6;}
50019 { if $as_mkdir_p; then
50020 mkdir -p "$ac_dir"
50021 else
50022 as_dir="$ac_dir"
50023 as_dirs=
50024 while test ! -d "$as_dir"; do
50025 as_dirs="$as_dir $as_dirs"
50026 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50027$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50028 X"$as_dir" : 'X\(//\)[^/]' \| \
50029 X"$as_dir" : 'X\(//\)$' \| \
50030 X"$as_dir" : 'X\(/\)' \| \
50031 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50032echo X"$as_dir" |
50033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50034 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50035 /^X\(\/\/\)$/{ s//\1/; q; }
50036 /^X\(\/\).*/{ s//\1/; q; }
50037 s/.*/./; q'`
50038 done
50039 test ! -n "$as_dirs" || mkdir $as_dirs
50040 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50041echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50042 { (exit 1); exit 1; }; }; }
50043
50044 ac_builddir=.
50045
50046if test "$ac_dir" != .; then
50047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50048 # A "../" for each directory in $ac_dir_suffix.
50049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50050else
50051 ac_dir_suffix= ac_top_builddir=
50052fi
50053
50054case $srcdir in
50055 .) # No --srcdir option. We are building in place.
50056 ac_srcdir=.
50057 if test -z "$ac_top_builddir"; then
50058 ac_top_srcdir=.
50059 else
50060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50061 fi ;;
50062 [\\/]* | ?:[\\/]* ) # Absolute path.
50063 ac_srcdir=$srcdir$ac_dir_suffix;
50064 ac_top_srcdir=$srcdir ;;
50065 *) # Relative path.
50066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50068esac
ac1cb8d3
VS
50069
50070# Do not use `cd foo && pwd` to compute absolute paths, because
50071# the directories may not exist.
50072case `pwd` in
50073.) ac_abs_builddir="$ac_dir";;
50074*)
50075 case "$ac_dir" in
50076 .) ac_abs_builddir=`pwd`;;
50077 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50078 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50079 esac;;
50080esac
50081case $ac_abs_builddir in
50082.) ac_abs_top_builddir=${ac_top_builddir}.;;
50083*)
50084 case ${ac_top_builddir}. in
50085 .) ac_abs_top_builddir=$ac_abs_builddir;;
50086 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50087 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50088 esac;;
50089esac
50090case $ac_abs_builddir in
50091.) ac_abs_srcdir=$ac_srcdir;;
50092*)
50093 case $ac_srcdir in
50094 .) ac_abs_srcdir=$ac_abs_builddir;;
50095 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50096 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50097 esac;;
50098esac
50099case $ac_abs_builddir in
50100.) ac_abs_top_srcdir=$ac_top_srcdir;;
50101*)
50102 case $ac_top_srcdir in
50103 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50104 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50105 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50106 esac;;
50107esac
a848cd7e
SC
50108
50109
50110 cd $ac_dir
50111
50112 # Check for guested configure; otherwise get Cygnus style configure.
50113 if test -f $ac_srcdir/configure.gnu; then
50114 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50115 elif test -f $ac_srcdir/configure; then
50116 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50117 elif test -f $ac_srcdir/configure.in; then
50118 ac_sub_configure=$ac_configure
50119 else
50120 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50121echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50122 ac_sub_configure=
50123 fi
50124
50125 # The recursion is here.
50126 if test -n "$ac_sub_configure"; then
50127 # Make the cache file name correct relative to the subdirectory.
50128 case $cache_file in
50129 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50130 *) # Relative path.
ac1cb8d3 50131 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50132 esac
50133
50134 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50135echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50136 # The eval makes quoting arguments work.
50137 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50138 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50139 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50140echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50141 { (exit 1); exit 1; }; }
50142 fi
50143
3565d135 50144 cd $ac_popdir
a848cd7e
SC
50145 done
50146fi
50147
50148
50149echo
77ffb593 50150echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50151echo ""
4d4ff94c 50152echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50153echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50154
77ffb593
JS
50155echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50156echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50157echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50158
77ffb593 50159echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50160echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50161echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50162
77ffb593 50163echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50164echo " jpeg ${wxUSE_LIBJPEG-none}"
50165echo " png ${wxUSE_LIBPNG-none}"
50166echo " regex ${wxUSE_REGEX}"
50167echo " tiff ${wxUSE_LIBTIFF-none}"
50168if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50169echo " xpm ${wxUSE_LIBXPM-none}"
50170fi
50171echo " zlib ${wxUSE_ZLIB}"
50172echo " odbc ${wxUSE_ODBC}"
50173echo " expat ${wxUSE_EXPAT}"
50174echo " libmspack ${wxUSE_LIBMSPACK}"
50175echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50176echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
3565d135 50177echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50178
50179echo ""
50180