]> git.saurik.com Git - wxWidgets.git/blame - configure
Fix after removal of PRIOR/NEXT in common headers (duplicates change in GTK2 sources).
[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"
2b850ae1 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_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_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
7afc46ab 892 --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
893 --enable-compat24 enable wxWidgets 2.4 compatibility
894 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 895 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
896 --enable-intl use internationalization system
897 --enable-config use wxConfig (and derived) classes
898 --enable-protocols use wxProtocol and derived classes
899 --enable-ftp use wxFTP (requires wxProtocol
900 --enable-http use wxHTTP (requires wxProtocol
901 --enable-fileproto use wxFileProto class (requires wxProtocol
902 --enable-sockets use socket/network classes
903 --enable-ole use OLE classes (Win32 only)
904 --enable-dataobj use data object classes
905 --enable-ipc use interprocess communication (wxSocket etc.)
906 --enable-apple_ieee use the Apple IEEE codec
81f90336 907 --enable-arcstream use wxArchive streams
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 909 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
910 --enable-cmdline use wxCmdLineParser class
911 --enable-datetime use wxDateTime class
36b6448c 912 --enable-debugreport use wxDebugReport class
a848cd7e
SC
913 --enable-dialupman use dialup network classes
914 --enable-dynlib use wxLibrary class for DLL loading
915 --enable-dynamicloader use (new) wxDynamicLibrary class
916 --enable-exceptions build exception-safe library
917 --enable-ffile use wxFFile class
918 --enable-file use wxFile class
919 --enable-filesystem use virtual file systems classes
920 --enable-fontmap use font encodings conversion classes
921 --enable-fs_inet use virtual HTTP/FTP filesystems
922 --enable-fs_zip use virtual ZIP filesystems
923 --enable-geometry use geometry class
924 --enable-log use logging system
925 --enable-longlong use wxLongLong class
926 --enable-mimetype use wxMimeTypesManager
927 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
928 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 929 --enable-std_iostreams use standard C++ stream classes
59746b65 930 --enable-std_string use standard C++ string classes
07158944 931 --enable-stdpaths use wxStandardPaths class
a848cd7e 932 --enable-stopwatch use wxStopWatch class
07158944 933 --enable-streams use wxStream etc classes
a848cd7e
SC
934 --enable-sysoptions use wxSystemOptions
935 --enable-textbuf use wxTextBuffer class
936 --enable-textfile use wxTextFile class
937 --enable-timer use wxTimer class
938 --enable-unicode compile wxString with Unicode support
939 --enable-sound use wxSound class
3b57de8b 940 --enable-mediactrl use wxMediaCtrl class
f10e38c4 941 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
77ffb593 942 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 943 --enable-zipstream use wxZip streams
a848cd7e
SC
944 --enable-url use wxURL class
945 --enable-protocol use wxProtocol class
946 --enable-protocol-http HTTP support in wxProtocol
947 --enable-protocol-ftp FTP support in wxProtocol
948 --enable-protocol-file FILE support in wxProtocol
949 --enable-threads use threads
950 --enable-docview use document view architecture
951 --enable-help use help subsystem
952 --enable-mshtmlhelp use MS HTML Help (win32)
953 --enable-html use wxHTML sub-library
954 --enable-htmlhelp use wxHTML-based help
9a8f0513 955 --enable-xrc use XRC resources sub-library
a848cd7e
SC
956 --enable-constraints use layout-constraints system
957 --enable-printarch use printing architecture
958 --enable-mdi use multiple document interface architecture
8a7b1113 959 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
960 --enable-loggui use standard GUI logger
961 --enable-logwin use wxLogWindow
962 --enable-logdialog use wxLogDialog
646b6ec1 963 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 964 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
965 --enable-postscript use wxPostscriptDC device context (default for gtk+)
966 --enable-prologio not available; see contrib
967 --enable-resources not available; see contrib
968 --enable-clipboard use wxClipboard class
969 --enable-dnd use Drag'n'Drop classes
970 --enable-metafile use win32 metafiles
971 --enable-controls use all usual controls
972 --enable-accel use accelerators
973 --enable-button use wxButton class
974 --enable-bmpbutton use wxBitmapButton class
975 --enable-calendar use wxCalendarCtrl class
976 --enable-caret use wxCaret class
977 --enable-checkbox use wxCheckBox class
978 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
979 --enable-choice use wxChoice class
92bbdbcd 980 --enable-choicebook use wxChoicebook class
a848cd7e 981 --enable-combobox use wxComboBox class
da98e9be 982 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
983 --enable-display use wxDisplay class
984 --enable-gauge use wxGauge class
985 --enable-grid use wxGrid class
20e34ecc 986 --enable-dataviewctrl, use wxDataViewCtrl class
a848cd7e
SC
987 --enable-imaglist use wxImageList class
988 --enable-listbook use wxListbook class
989 --enable-listbox use wxListBox class
990 --enable-listctrl use wxListCtrl class
991 --enable-notebook use wxNotebook class
992 --enable-radiobox use wxRadioBox class
993 --enable-radiobtn use wxRadioButton class
994 --enable-sash use wxSashWindow class
995 --enable-scrollbar use wxScrollBar class and scrollable windows
996 --enable-slider use wxSlider class
997 --enable-spinbtn use wxSpinButton class
998 --enable-spinctrl use wxSpinCtrl class
999 --enable-splitter use wxSplitterWindow class
1000 --enable-statbmp use wxStaticBitmap class
1001 --enable-statbox use wxStaticBox class
1002 --enable-statline use wxStaticLine class
1003 --enable-stattext use wxStaticText class
1004 --enable-statusbar use wxStatusBar class
1005 --enable-tabdialog use wxTabControl class
1006 --enable-textctrl use wxTextCtrl class
1007 --enable-togglebtn use wxToggleButton class
1008 --enable-toolbar use wxToolBar class
1009 --enable-tbarnative use native wxToolBar class
1010 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1011 --enable-treebook use wxTreebook class
5ec3bc43 1012 --enable-toolbook use wxToolbook class
a848cd7e
SC
1013 --enable-treectrl use wxTreeCtrl class
1014 --enable-tipwindow use wxTipWindow class
1015 --enable-popupwin use wxPopUpWindow class
1016 --enable-commondlg use all common dialogs
1017 --enable-choicedlg use wxChoiceDialog
1018 --enable-coldlg use wxColourDialog
1019 --enable-filedlg use wxFileDialog
1020 --enable-finddlg use wxFindReplaceDialog
1021 --enable-fontdlg use wxFontDialog
1022 --enable-dirdlg use wxDirDialog
1023 --enable-msgdlg use wxMessageDialog
1024 --enable-numberdlg use wxNumberEntryDialog
1025 --enable-splash use wxSplashScreen
1026 --enable-textdlg use wxTextDialog
1027 --enable-tipdlg use startup tips
1028 --enable-progressdlg use wxProgressDialog
1029 --enable-wizarddlg use wxWizard
1030 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1031 --enable-miniframe use wxMiniFrame class
1032 --enable-tooltips use wxToolTip class
1033 --enable-splines use spline drawing code
fbe2ca43 1034 --enable-mousewheel use mousewheel
a848cd7e
SC
1035 --enable-validators use wxValidator and derived classes
1036 --enable-busyinfo use wxBusyInfo
4cb1d3da 1037 --enable-joystick use wxJoystick
38b4a946 1038 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1039 --enable-dragimage use wxDragImage
1040 --enable-accessibility enable accessibility support
38b4a946 1041 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1042 --enable-palette use wxPalette class
1043 --enable-image use wxImage class
1044 --enable-gif use gif images (GIF file format)
1045 --enable-pcx use pcx images (PCX file format)
1046 --enable-iff use iff images (IFF file format)
1047 --enable-pnm use pnm images (PNM file format)
1048 --enable-xpm use xpm images (XPM file format)
1049 --enable-icocur use Windows ICO and CUR formats
77ffb593 1050 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1051 --enable-vendor=VENDOR vendor name (win32 DLL only)
1052 --disable-largefile omit support for large files
1053 --disable-gtktest do not try to compile and run a test GTK+ program
1054 --disable-gtktest Do not try to compile and run a test GTK program
1055 --disable-sdltest Do not try to compile and run a test SDL program
1056 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1057 --disable-dependency-tracking
1058 don't use dependency tracking even if the compiler
1059 can
ebee3cd0
VS
1060 --disable-precomp-headers
1061 don't use precompiled headers even if compiler can
a848cd7e
SC
1062
1063Optional Packages:
1064 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1065 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1066 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1067 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1068 --with-motif use Motif/Lesstif
1069 --with-mac use Mac OS X
1070 --with-cocoa use Cocoa
1071 --with-wine use Wine
1072 --with-msw use MS-Windows
1073 --with-pm use OS/2 Presentation Manager
1074 --with-mgl use SciTech MGL
1075 --with-microwin use MicroWindows
1076 --with-x11 use X11
1077 --with-libpng use libpng (PNG image format)
1078 --with-libjpeg use libjpeg (JPEG file format)
1079 --with-libtiff use libtiff (TIFF file format)
1080 --with-libxpm use libxpm (XPM file format)
1081 --with-libmspack use libmspack (CHM help files loading)
1082 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1083 --with-gnomeprint use GNOME print for printing under GNOME
1084 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1085 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1086 --with-opengl use OpenGL (or Mesa)
1087 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1088 --with-regex enable support for wxRegEx class
1089 --with-zlib use zlib for LZW compression
1090 --with-odbc use the IODBC and wxODBC classes
1091 --with-expat enable XML support using expat parser
ceec2216 1092 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1093 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1094 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1095 --with-x use the X Window System
1096 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1097 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1098 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1099 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1100 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1101
1102Some influential environment variables:
dcc1b6ad
VS
1103 CC C compiler command
1104 CFLAGS C compiler flags
1105 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1106 nonstandard directory <lib dir>
1107 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108 headers in a nonstandard directory <include dir>
1109 CPP C preprocessor
1110 CXX C++ compiler command
1111 CXXFLAGS C++ compiler flags
1112 CXXCPP C++ preprocessor
a848cd7e
SC
1113
1114Use these variables to override the choices made by `configure' or to help
1115it to find libraries and programs with nonstandard names/locations.
1116
77ffb593 1117Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1118_ACEOF
1119fi
1120
1121if test "$ac_init_help" = "recursive"; then
1122 # If there are subdirs, report their specific --help.
1123 ac_popdir=`pwd`
1124 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1125 test -d $ac_dir || continue
1126 ac_builddir=.
1127
1128if test "$ac_dir" != .; then
1129 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1130 # A "../" for each directory in $ac_dir_suffix.
1131 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1132else
1133 ac_dir_suffix= ac_top_builddir=
1134fi
1135
1136case $srcdir in
1137 .) # No --srcdir option. We are building in place.
1138 ac_srcdir=.
1139 if test -z "$ac_top_builddir"; then
1140 ac_top_srcdir=.
1141 else
1142 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1143 fi ;;
1144 [\\/]* | ?:[\\/]* ) # Absolute path.
1145 ac_srcdir=$srcdir$ac_dir_suffix;
1146 ac_top_srcdir=$srcdir ;;
1147 *) # Relative path.
1148 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1149 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1150esac
ac1cb8d3
VS
1151
1152# Do not use `cd foo && pwd` to compute absolute paths, because
1153# the directories may not exist.
1154case `pwd` in
1155.) ac_abs_builddir="$ac_dir";;
1156*)
1157 case "$ac_dir" in
1158 .) ac_abs_builddir=`pwd`;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1160 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1161 esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_top_builddir=${ac_top_builddir}.;;
1165*)
1166 case ${ac_top_builddir}. in
1167 .) ac_abs_top_builddir=$ac_abs_builddir;;
1168 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1169 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1170 esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_srcdir=$ac_srcdir;;
1174*)
1175 case $ac_srcdir in
1176 .) ac_abs_srcdir=$ac_abs_builddir;;
1177 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1178 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1179 esac;;
1180esac
1181case $ac_abs_builddir in
1182.) ac_abs_top_srcdir=$ac_top_srcdir;;
1183*)
1184 case $ac_top_srcdir in
1185 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1186 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1187 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1188 esac;;
1189esac
a848cd7e
SC
1190
1191 cd $ac_dir
1192 # Check for guested configure; otherwise get Cygnus style configure.
1193 if test -f $ac_srcdir/configure.gnu; then
1194 echo
1195 $SHELL $ac_srcdir/configure.gnu --help=recursive
1196 elif test -f $ac_srcdir/configure; then
1197 echo
1198 $SHELL $ac_srcdir/configure --help=recursive
1199 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1200 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1201 echo
1202 $ac_configure --help
1203 else
1204 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1205 fi
2b850ae1 1206 cd $ac_popdir
a848cd7e
SC
1207 done
1208fi
1209
1210test -n "$ac_init_help" && exit 0
1211if $ac_init_version; then
1212 cat <<\_ACEOF
dd8df4fc 1213wxWidgets configure 2.7.0
ac1cb8d3 1214generated by GNU Autoconf 2.59
a848cd7e 1215
ac1cb8d3 1216Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1217This configure script is free software; the Free Software Foundation
1218gives unlimited permission to copy, distribute and modify it.
1219_ACEOF
1220 exit 0
1221fi
1222exec 5>config.log
1223cat >&5 <<_ACEOF
1224This file contains any messages produced by compilers while
1225running configure, to aid debugging if configure makes a mistake.
1226
dd8df4fc 1227It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1228generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1229
1230 $ $0 $@
1231
1232_ACEOF
1233{
1234cat <<_ASUNAME
1235## --------- ##
1236## Platform. ##
1237## --------- ##
1238
1239hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1240uname -m = `(uname -m) 2>/dev/null || echo unknown`
1241uname -r = `(uname -r) 2>/dev/null || echo unknown`
1242uname -s = `(uname -s) 2>/dev/null || echo unknown`
1243uname -v = `(uname -v) 2>/dev/null || echo unknown`
1244
1245/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1246/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1247
1248/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1249/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1250/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1251hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1252/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1253/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1254/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1255
1256_ASUNAME
1257
1258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1259for as_dir in $PATH
1260do
1261 IFS=$as_save_IFS
1262 test -z "$as_dir" && as_dir=.
1263 echo "PATH: $as_dir"
1264done
1265
1266} >&5
1267
1268cat >&5 <<_ACEOF
1269
1270
1271## ----------- ##
1272## Core tests. ##
1273## ----------- ##
1274
1275_ACEOF
1276
1277
1278# Keep a trace of the command line.
1279# Strip out --no-create and --no-recursion so they do not pile up.
1280# Strip out --silent because we don't want to record it for future runs.
1281# Also quote any args containing shell meta-characters.
1282# Make two passes to allow for proper duplicate-argument suppression.
1283ac_configure_args=
1284ac_configure_args0=
1285ac_configure_args1=
1286ac_sep=
1287ac_must_keep_next=false
1288for ac_pass in 1 2
1289do
1290 for ac_arg
1291 do
1292 case $ac_arg in
1293 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295 | -silent | --silent | --silen | --sile | --sil)
1296 continue ;;
1297 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1299 esac
1300 case $ac_pass in
1301 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1302 2)
1303 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1304 if test $ac_must_keep_next = true; then
ac1cb8d3 1305 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1306 else
ac1cb8d3
VS
1307 case $ac_arg in
1308 *=* | --config-cache | -C | -disable-* | --disable-* \
1309 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1310 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1311 | -with-* | --with-* | -without-* | --without-* | --x)
1312 case "$ac_configure_args0 " in
1313 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1314 esac
1315 ;;
1316 -* ) ac_must_keep_next=true ;;
1317 esac
a848cd7e
SC
1318 fi
1319 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1320 # Get rid of the leading space.
1321 ac_sep=" "
1322 ;;
1323 esac
1324 done
1325done
1326$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1327$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1328
1329# When interrupted or exit'd, cleanup temporary files, and complete
1330# config.log. We remove comments because anyway the quotes in there
1331# would cause problems or look ugly.
1332# WARNING: Be sure not to use single quotes in there, as some shells,
1333# such as our DU 5.0 friend, will then `close' the trap.
1334trap 'exit_status=$?
1335 # Save into config.log some information that might help in debugging.
1336 {
1337 echo
1338
1339 cat <<\_ASBOX
1340## ---------------- ##
1341## Cache variables. ##
1342## ---------------- ##
1343_ASBOX
1344 echo
1345 # The following way of writing the cache mishandles newlines in values,
1346{
1347 (set) 2>&1 |
1348 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1349 *ac_space=\ *)
1350 sed -n \
ac1cb8d3
VS
1351 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1353 ;;
1354 *)
1355 sed -n \
ac1cb8d3 1356 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1357 ;;
1358 esac;
1359}
1360 echo
1361
1362 cat <<\_ASBOX
1363## ----------------- ##
1364## Output variables. ##
1365## ----------------- ##
1366_ASBOX
1367 echo
1368 for ac_var in $ac_subst_vars
1369 do
1370 eval ac_val=$`echo $ac_var`
1371 echo "$ac_var='"'"'$ac_val'"'"'"
1372 done | sort
1373 echo
1374
1375 if test -n "$ac_subst_files"; then
1376 cat <<\_ASBOX
1377## ------------- ##
1378## Output files. ##
1379## ------------- ##
1380_ASBOX
1381 echo
1382 for ac_var in $ac_subst_files
1383 do
1384 eval ac_val=$`echo $ac_var`
ac1cb8d3 1385 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1386 done | sort
1387 echo
1388 fi
1389
1390 if test -s confdefs.h; then
1391 cat <<\_ASBOX
1392## ----------- ##
1393## confdefs.h. ##
1394## ----------- ##
1395_ASBOX
1396 echo
1397 sed "/^$/d" confdefs.h | sort
1398 echo
1399 fi
1400 test "$ac_signal" != 0 &&
1401 echo "$as_me: caught signal $ac_signal"
1402 echo "$as_me: exit $exit_status"
1403 } >&5
ac1cb8d3 1404 rm -f core *.core &&
a848cd7e
SC
1405 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1406 exit $exit_status
1407 ' 0
1408for ac_signal in 1 2 13 15; do
1409 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1410done
1411ac_signal=0
1412
1413# confdefs.h avoids OS command line length limits that DEFS can exceed.
1414rm -rf conftest* confdefs.h
1415# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1416echo >confdefs.h
1417
1418# Predefined preprocessor variables.
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_NAME "$PACKAGE_NAME"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1427_ACEOF
1428
1429
1430cat >>confdefs.h <<_ACEOF
1431#define PACKAGE_VERSION "$PACKAGE_VERSION"
1432_ACEOF
1433
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_STRING "$PACKAGE_STRING"
1437_ACEOF
1438
1439
1440cat >>confdefs.h <<_ACEOF
1441#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1442_ACEOF
1443
1444
1445# Let the site file select an alternate cache file if it wants to.
1446# Prefer explicitly selected file to automatically selected ones.
1447if test -z "$CONFIG_SITE"; then
1448 if test "x$prefix" != xNONE; then
1449 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1450 else
1451 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1452 fi
1453fi
1454for ac_site_file in $CONFIG_SITE; do
1455 if test -r "$ac_site_file"; then
1456 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1457echo "$as_me: loading site script $ac_site_file" >&6;}
1458 sed 's/^/| /' "$ac_site_file" >&5
1459 . "$ac_site_file"
1460 fi
1461done
1462
1463if test -r "$cache_file"; then
1464 # Some versions of bash will fail to source /dev/null (special
1465 # files actually), so we avoid doing that.
1466 if test -f "$cache_file"; then
1467 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1468echo "$as_me: loading cache $cache_file" >&6;}
1469 case $cache_file in
1470 [\\/]* | ?:[\\/]* ) . $cache_file;;
1471 *) . ./$cache_file;;
1472 esac
1473 fi
1474else
1475 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1476echo "$as_me: creating cache $cache_file" >&6;}
1477 >$cache_file
1478fi
1479
1480# Check that the precious variables saved in the cache have kept the same
1481# value.
1482ac_cache_corrupted=false
1483for ac_var in `(set) 2>&1 |
ac1cb8d3 1484 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1485 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1486 eval ac_new_set=\$ac_env_${ac_var}_set
1487 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1488 eval ac_new_val="\$ac_env_${ac_var}_value"
1489 case $ac_old_set,$ac_new_set in
1490 set,)
1491 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1492echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1493 ac_cache_corrupted=: ;;
1494 ,set)
1495 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1496echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1497 ac_cache_corrupted=: ;;
1498 ,);;
1499 *)
1500 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1501 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1502echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1503 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1504echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1505 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1506echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1507 ac_cache_corrupted=:
a848cd7e
SC
1508 fi;;
1509 esac
1510 # Pass precious variables to config.status.
1511 if test "$ac_new_set" = set; then
1512 case $ac_new_val in
1513 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1514 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1515 *) ac_arg=$ac_var=$ac_new_val ;;
1516 esac
1517 case " $ac_configure_args " in
1518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1519 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1520 esac
1521 fi
1522done
1523if $ac_cache_corrupted; then
1524 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1525echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1526 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1527echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1528 { (exit 1); exit 1; }; }
1529fi
1530
1531ac_ext=c
1532ac_cpp='$CPP $CPPFLAGS'
1533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1535ac_compiler_gnu=$ac_cv_c_compiler_gnu
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566ac_aux_dir=
1567for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1568 if test -f $ac_dir/install-sh; then
1569 ac_aux_dir=$ac_dir
1570 ac_install_sh="$ac_aux_dir/install-sh -c"
1571 break
1572 elif test -f $ac_dir/install.sh; then
1573 ac_aux_dir=$ac_dir
1574 ac_install_sh="$ac_aux_dir/install.sh -c"
1575 break
1576 elif test -f $ac_dir/shtool; then
1577 ac_aux_dir=$ac_dir
1578 ac_install_sh="$ac_aux_dir/shtool install -c"
1579 break
1580 fi
1581done
1582if test -z "$ac_aux_dir"; then
1583 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1584echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1585 { (exit 1); exit 1; }; }
1586fi
1587ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1588ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1589ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1590
1591# Make sure we can run config.sub.
1592$ac_config_sub sun4 >/dev/null 2>&1 ||
1593 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1594echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1595 { (exit 1); exit 1; }; }
1596
1597echo "$as_me:$LINENO: checking build system type" >&5
1598echo $ECHO_N "checking build system type... $ECHO_C" >&6
1599if test "${ac_cv_build+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 ac_cv_build_alias=$build_alias
1603test -z "$ac_cv_build_alias" &&
1604 ac_cv_build_alias=`$ac_config_guess`
1605test -z "$ac_cv_build_alias" &&
1606 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1607echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1608 { (exit 1); exit 1; }; }
1609ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1611echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614fi
1615echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1616echo "${ECHO_T}$ac_cv_build" >&6
1617build=$ac_cv_build
1618build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623echo "$as_me:$LINENO: checking host system type" >&5
1624echo $ECHO_N "checking host system type... $ECHO_C" >&6
1625if test "${ac_cv_host+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_host_alias=$host_alias
1629test -z "$ac_cv_host_alias" &&
1630 ac_cv_host_alias=$ac_cv_build_alias
1631ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1633echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636fi
1637echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1638echo "${ECHO_T}$ac_cv_host" >&6
1639host=$ac_cv_host
1640host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645echo "$as_me:$LINENO: checking target system type" >&5
1646echo $ECHO_N "checking target system type... $ECHO_C" >&6
1647if test "${ac_cv_target+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650 ac_cv_target_alias=$target_alias
1651test "x$ac_cv_target_alias" = "x" &&
1652 ac_cv_target_alias=$ac_cv_host_alias
1653ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1654 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1655echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1656 { (exit 1); exit 1; }; }
1657
1658fi
1659echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1660echo "${ECHO_T}$ac_cv_target" >&6
1661target=$ac_cv_target
1662target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665
1666
1667# The aliases save the names the user supplied, while $host etc.
1668# will get canonicalized.
1669test -n "$target_alias" &&
1670 test "$program_prefix$program_suffix$program_transform_name" = \
1671 NONENONEs,x,x, &&
1672 program_prefix=${target_alias}-
1673
1674
1675
ceec2216 1676wx_major_version_number=2
dd8df4fc
VZ
1677wx_minor_version_number=7
1678wx_release_number=0
1679wx_subrelease_number=0
a848cd7e 1680
ceec2216
RL
1681WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1682WX_VERSION=$WX_RELEASE.$wx_release_number
1683WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1684
ceec2216 1685WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1686
a848cd7e
SC
1687
1688
1689
1690USE_UNIX=1
1691USE_OS2=0
1692USE_WIN32=0
1693USE_DOS=0
1694USE_BEOS=0
1695USE_MAC=0
1696
1697USE_AIX=
1698USE_BSD= USE_DARWIN= USE_FREEBSD=
1699USE_GNU= USE_HPUX=
1700USE_LINUX=
1701USE_NETBSD=
1702USE_OPENBSD=
1703USE_OSF= USE_SGI=
1704USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1705USE_ULTRIX=
1706USE_UNIXWARE=
1707
1708USE_ALPHA=
1709
1710NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1711
1712ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1713
1714DEFAULT_wxUSE_COCOA=0
1715DEFAULT_wxUSE_GTK=0
1716DEFAULT_wxUSE_MAC=0
1717DEFAULT_wxUSE_MGL=0
1718DEFAULT_wxUSE_MICROWIN=0
1719DEFAULT_wxUSE_MOTIF=0
1720DEFAULT_wxUSE_MSW=0
1721DEFAULT_wxUSE_PM=0
1722DEFAULT_wxUSE_X11=0
1723
1724DEFAULT_DEFAULT_wxUSE_COCOA=0
1725DEFAULT_DEFAULT_wxUSE_GTK=0
1726DEFAULT_DEFAULT_wxUSE_MAC=0
1727DEFAULT_DEFAULT_wxUSE_MGL=0
1728DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1729DEFAULT_DEFAULT_wxUSE_MOTIF=0
1730DEFAULT_DEFAULT_wxUSE_MSW=0
1731DEFAULT_DEFAULT_wxUSE_PM=0
1732DEFAULT_DEFAULT_wxUSE_X11=0
1733
1734PROGRAM_EXT=
1735SO_SUFFIX=so
1736SAMPLES_RPATH_FLAG=
1737SAMPLES_RPATH_POSTLINK=
1738
a03b8b04
RD
1739DEFAULT_STD_FLAG=yes
1740
a848cd7e
SC
1741case "${host}" in
1742 *-hp-hpux* )
1743 USE_HPUX=1
1744 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1745 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1746 SO_SUFFIX=sl
1747 cat >>confdefs.h <<\_ACEOF
1748#define __HPUX__ 1
1749_ACEOF
1750
2eef8513 1751
c92ad099 1752 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1753 ;;
1754 *-*-linux* )
1755 USE_LINUX=1
1756 cat >>confdefs.h <<\_ACEOF
1757#define __LINUX__ 1
1758_ACEOF
1759
1760 TMP=`uname -m`
1761 if test "x$TMP" = "xalpha"; then
1762 USE_ALPHA=1
1763 cat >>confdefs.h <<\_ACEOF
1764#define __ALPHA__ 1
1765_ACEOF
1766
1767 fi
1768 DEFAULT_DEFAULT_wxUSE_GTK=1
1769 ;;
1770 *-*-gnu* | *-*-k*bsd*-gnu )
1771 USE_GNU=1
1772 TMP=`uname -m`
1773 if test "x$TMP" = "xalpha"; then
1774 USE_ALPHA=1
1775 cat >>confdefs.h <<\_ACEOF
1776#define __ALPHA__ 1
1777_ACEOF
1778
1779 fi
1780 DEFAULT_DEFAULT_wxUSE_GTK=1
1781 ;;
1782 *-*-irix5* | *-*-irix6* )
1783 USE_SGI=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SGI__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SVR4__ 1
1791_ACEOF
1792
1793 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1794 ;;
1795 *-*-solaris2* )
1796 USE_SUN=1
1797 USE_SOLARIS=1
1798 USE_SVR4=1
1799 cat >>confdefs.h <<\_ACEOF
1800#define __SUN__ 1
1801_ACEOF
1802
1803 cat >>confdefs.h <<\_ACEOF
1804#define __SOLARIS__ 1
1805_ACEOF
1806
1807 cat >>confdefs.h <<\_ACEOF
1808#define __SVR4__ 1
1809_ACEOF
1810
1811 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1812 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1813 ;;
1814 *-*-sunos4* )
1815 USE_SUN=1
1816 USE_SUNOS=1
1817 USE_BSD=1
1818 cat >>confdefs.h <<\_ACEOF
1819#define __SUN__ 1
1820_ACEOF
1821
1822 cat >>confdefs.h <<\_ACEOF
1823#define __SUNOS__ 1
1824_ACEOF
1825
1826 cat >>confdefs.h <<\_ACEOF
1827#define __BSD__ 1
1828_ACEOF
1829
1830 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1831 ;;
1832 *-*-freebsd*)
1833 USE_BSD=1
1834 USE_FREEBSD=1
1835 cat >>confdefs.h <<\_ACEOF
1836#define __FREEBSD__ 1
1837_ACEOF
1838
1839 cat >>confdefs.h <<\_ACEOF
1840#define __BSD__ 1
1841_ACEOF
1842
1843 DEFAULT_DEFAULT_wxUSE_GTK=1
1844 ;;
1845 *-*-openbsd*)
1846 USE_BSD=1
1847 USE_OPENBSD=1
1848 cat >>confdefs.h <<\_ACEOF
1849#define __OPENBSD__ 1
1850_ACEOF
1851
1852 cat >>confdefs.h <<\_ACEOF
1853#define __BSD__ 1
1854_ACEOF
1855
1856 DEFAULT_DEFAULT_wxUSE_GTK=1
1857 ;;
1858 *-*-netbsd*)
1859 USE_BSD=1
1860 USE_NETBSD=1
1861 cat >>confdefs.h <<\_ACEOF
1862#define __NETBSD__ 1
1863_ACEOF
1864
1865 cat >>confdefs.h <<\_ACEOF
1866#define __BSD__ 1
1867_ACEOF
1868
1869 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1870 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1871
def7c04a 1872 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1873 ;;
1874 *-*-osf* )
1875 USE_ALPHA=1
1876 USE_OSF=1
1877 cat >>confdefs.h <<\_ACEOF
1878#define __ALPHA__ 1
1879_ACEOF
1880
1881 cat >>confdefs.h <<\_ACEOF
1882#define __OSF__ 1
1883_ACEOF
1884
1885 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1886 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1887 ;;
1888 *-*-dgux5* )
1889 USE_ALPHA=1
1890 USE_SVR4=1
1891 cat >>confdefs.h <<\_ACEOF
1892#define __ALPHA__ 1
1893_ACEOF
1894
1895 cat >>confdefs.h <<\_ACEOF
1896#define __SVR4__ 1
1897_ACEOF
1898
1899 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1900 ;;
1901 *-*-sysv5* )
1902 USE_SYSV=1
1903 USE_SVR4=1
1904 cat >>confdefs.h <<\_ACEOF
1905#define __SYSV__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SVR4__ 1
1910_ACEOF
1911
1912 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1913 ;;
1914 *-*-aix* )
1915 USE_AIX=1
1916 USE_SYSV=1
1917 USE_SVR4=1
1918 SO_SUFFIX=a
1919 cat >>confdefs.h <<\_ACEOF
1920#define __AIX__ 1
1921_ACEOF
1922
1923 cat >>confdefs.h <<\_ACEOF
1924#define __SYSV__ 1
1925_ACEOF
1926
1927 cat >>confdefs.h <<\_ACEOF
1928#define __SVR4__ 1
1929_ACEOF
1930
1931 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1932 ;;
1933
1934 *-*-*UnixWare*)
1935 USE_SYSV=1
1936 USE_SVR4=1
1937 USE_UNIXWARE=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __UNIXWARE__ 1
1940_ACEOF
1941
1942 ;;
1943
1944 *-*-cygwin* | *-*-mingw32* )
1945 SO_SUFFIX=dll
1946 PROGRAM_EXT=".exe"
a848cd7e 1947 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1948 DEFAULT_STD_FLAG=no
a848cd7e
SC
1949 ;;
1950
1951 *-pc-msdosdjgpp )
1952 USE_UNIX=0
1953 USE_DOS=1
1954 cat >>confdefs.h <<\_ACEOF
1955#define __DOS__ 1
1956_ACEOF
1957
1958 PROGRAM_EXT=".exe"
1959 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1960 ;;
1961
1962 *-pc-os2_emx | *-pc-os2-emx )
1963 cat >>confdefs.h <<\_ACEOF
1964#define __EMX__ 1
1965_ACEOF
1966
1967 USE_OS2=1
1968 cat >>confdefs.h <<\_ACEOF
1969#define __OS2__ 1
1970_ACEOF
1971
1972 PROGRAM_EXT=".exe"
1973 DEFAULT_DEFAULT_wxUSE_PM=1
1974 CXX=gcc
1975 LDFLAGS="$LDFLAGS -Zcrtdll"
1976 ac_executable_extensions=".exe"
1977 export ac_executable_extensions
1978 ac_save_IFS="$IFS"
1979 IFS='\\'
1980 ac_TEMP_PATH=
1981 for ac_dir in $PATH; do
1982 IFS=$ac_save_IFS
1983 if test -z "$ac_TEMP_PATH"; then
1984 ac_TEMP_PATH="$ac_dir"
1985 else
1986 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1987 fi
1988 done
1989 export PATH="$ac_TEMP_PATH"
1990 unset ac_TEMP_PATH
a03b8b04 1991 DEFAULT_STD_FLAG=no
a848cd7e
SC
1992 ;;
1993
cfda0ea8 1994 *-*-darwin* )
a848cd7e
SC
1995 USE_BSD=1
1996 USE_DARWIN=1
1997 SO_SUFFIX=dylib
1998 cat >>confdefs.h <<\_ACEOF
1999#define __BSD__ 1
2000_ACEOF
2001
2002 cat >>confdefs.h <<\_ACEOF
2003#define __DARWIN__ 1
a848cd7e
SC
2004_ACEOF
2005
2006 cat >>confdefs.h <<\_ACEOF
2007#define TARGET_CARBON 1
2008_ACEOF
2009
2010 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2011 DEFAULT_STD_FLAG=no
a848cd7e 2012 ;;
1e9e8aba
DE
2013 powerpc-apple-macos* )
2014 USE_UNIX=0
2015 ac_cv_c_bigendian=yes
2016 SO_SUFFIX=shlib
2017 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2018 DEFAULT_STD_FLAG=no
1e9e8aba 2019 ;;
a848cd7e
SC
2020
2021 *-*-beos* )
2022 USE_BEOS=1
2023 cat >>confdefs.h <<\_ACEOF
2024#define __BEOS__ 1
2025_ACEOF
2026
2027 ;;
2028
2029 *)
2030 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2031echo "$as_me: error: unknown system type ${host}." >&2;}
2032 { (exit 1); exit 1; }; }
2033esac
2034
2035
2036
2037
2038 wx_arg_cache_file="configarg.cache"
2039 echo "loading argument cache $wx_arg_cache_file"
2040 rm -f ${wx_arg_cache_file}.tmp
2041 touch ${wx_arg_cache_file}.tmp
2042 touch ${wx_arg_cache_file}
2043
2044
2045DEBUG_CONFIGURE=0
2046if test $DEBUG_CONFIGURE = 1; then
2047 DEFAULT_wxUSE_UNIVERSAL=no
2048 DEFAULT_wxUSE_STL=no
2049
2050 DEFAULT_wxUSE_NANOX=no
2051
2052 DEFAULT_wxUSE_THREADS=yes
2053
2054 DEFAULT_wxUSE_SHARED=yes
2055 DEFAULT_wxUSE_OPTIMISE=no
2056 DEFAULT_wxUSE_PROFILE=no
2057 DEFAULT_wxUSE_NO_DEPS=no
2058 DEFAULT_wxUSE_NO_RTTI=no
2059 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2060 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2061 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2062 DEFAULT_wxUSE_PERMISSIVE=no
2063 DEFAULT_wxUSE_DEBUG_FLAG=yes
2064 DEFAULT_wxUSE_DEBUG_INFO=yes
2065 DEFAULT_wxUSE_DEBUG_GDB=yes
2066 DEFAULT_wxUSE_MEM_TRACING=no
2067 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2068 DEFAULT_wxUSE_DMALLOC=no
2069 DEFAULT_wxUSE_APPLE_IEEE=no
2070
2071 DEFAULT_wxUSE_EXCEPTIONS=no
2072 DEFAULT_wxUSE_LOG=yes
2073 DEFAULT_wxUSE_LOGWINDOW=no
2074 DEFAULT_wxUSE_LOGGUI=no
2075 DEFAULT_wxUSE_LOGDIALOG=no
2076
2077 DEFAULT_wxUSE_GUI=yes
2078 DEFAULT_wxUSE_CONTROLS=no
2079
2080 DEFAULT_wxUSE_REGEX=no
2081 DEFAULT_wxUSE_XML=no
2082 DEFAULT_wxUSE_EXPAT=no
2083 DEFAULT_wxUSE_ZLIB=no
2084 DEFAULT_wxUSE_LIBPNG=no
2085 DEFAULT_wxUSE_LIBJPEG=no
2086 DEFAULT_wxUSE_LIBTIFF=no
2087 DEFAULT_wxUSE_LIBXPM=no
2088 DEFAULT_wxUSE_LIBMSPACK=no
2089 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2090 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2091 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2092 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2093 DEFAULT_wxUSE_ODBC=no
2094 DEFAULT_wxUSE_OPENGL=no
2095
2096 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2097 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2098 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2099 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2100 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2101 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2102 DEFAULT_wxUSE_CMDLINE_PARSER=no
2103 DEFAULT_wxUSE_DATETIME=no
2104 DEFAULT_wxUSE_TIMER=no
2105 DEFAULT_wxUSE_STOPWATCH=no
2106 DEFAULT_wxUSE_FILE=no
2107 DEFAULT_wxUSE_FFILE=no
07158944 2108 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2109 DEFAULT_wxUSE_TEXTBUFFER=no
2110 DEFAULT_wxUSE_TEXTFILE=no
2111 DEFAULT_wxUSE_SOUND=no
3b57de8b 2112 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2113 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2114 DEFAULT_wxUSE_INTL=no
2115 DEFAULT_wxUSE_CONFIG=no
2116 DEFAULT_wxUSE_FONTMAP=no
2117 DEFAULT_wxUSE_STREAMS=no
2118 DEFAULT_wxUSE_SOCKETS=no
2119 DEFAULT_wxUSE_OLE=no
2120 DEFAULT_wxUSE_DATAOBJ=no
2121 DEFAULT_wxUSE_DIALUP_MANAGER=no
2122 DEFAULT_wxUSE_JOYSTICK=no
2123 DEFAULT_wxUSE_DYNLIB_CLASS=no
2124 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2125 DEFAULT_wxUSE_LONGLONG=no
2126 DEFAULT_wxUSE_GEOMETRY=no
2127
2128 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2129 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2130 DEFAULT_wxUSE_POSTSCRIPT=no
2131
2132 DEFAULT_wxUSE_CLIPBOARD=no
2133 DEFAULT_wxUSE_TOOLTIPS=no
2134 DEFAULT_wxUSE_DRAG_AND_DROP=no
2135 DEFAULT_wxUSE_DRAGIMAGE=no
2136 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2137 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2138
8a7b1113 2139 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2140 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2141 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2142 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2143
2144 DEFAULT_wxUSE_RESOURCES=no
2145 DEFAULT_wxUSE_CONSTRAINTS=no
2146 DEFAULT_wxUSE_IPC=no
2147 DEFAULT_wxUSE_HELP=no
2148 DEFAULT_wxUSE_MS_HTML_HELP=no
2149 DEFAULT_wxUSE_WXHTML_HELP=no
2150 DEFAULT_wxUSE_TREELAYOUT=no
2151 DEFAULT_wxUSE_METAFILE=no
2152 DEFAULT_wxUSE_MIMETYPE=no
2153 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2154 DEFAULT_wxUSE_PROTOCOL=no
2155 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2156 DEFAULT_wxUSE_PROTOCOL_FTP=no
2157 DEFAULT_wxUSE_PROTOCOL_FILE=no
2158 DEFAULT_wxUSE_URL=no
2159
2160 DEFAULT_wxUSE_COMMONDLGS=no
2161 DEFAULT_wxUSE_CHOICEDLG=no
2162 DEFAULT_wxUSE_COLOURDLG=no
2163 DEFAULT_wxUSE_DIRDLG=no
2164 DEFAULT_wxUSE_FILEDLG=no
2165 DEFAULT_wxUSE_FINDREPLDLG=no
2166 DEFAULT_wxUSE_FONTDLG=no
2167 DEFAULT_wxUSE_MSGDLG=no
2168 DEFAULT_wxUSE_NUMBERDLG=no
2169 DEFAULT_wxUSE_TEXTDLG=no
2170 DEFAULT_wxUSE_SPLASH=no
2171 DEFAULT_wxUSE_STARTUP_TIPS=no
2172 DEFAULT_wxUSE_PROGRESSDLG=no
2173 DEFAULT_wxUSE_WIZARDDLG=no
2174
2175 DEFAULT_wxUSE_MENUS=no
2176 DEFAULT_wxUSE_MINIFRAME=no
2177 DEFAULT_wxUSE_HTML=no
91dea314 2178 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2179 DEFAULT_wxUSE_XRC=no
646b6ec1 2180 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2181 DEFAULT_wxUSE_FILESYSTEM=no
2182 DEFAULT_wxUSE_FS_INET=no
2183 DEFAULT_wxUSE_FS_ZIP=no
2184 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2185 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2186 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2187 DEFAULT_wxUSE_VALIDATORS=no
2188
2189 DEFAULT_wxUSE_ACCEL=no
2190 DEFAULT_wxUSE_BUTTON=no
2191 DEFAULT_wxUSE_BMPBUTTON=no
2192 DEFAULT_wxUSE_CALCTRL=no
2193 DEFAULT_wxUSE_CARET=no
2194 DEFAULT_wxUSE_CHECKBOX=no
2195 DEFAULT_wxUSE_CHECKLST=no
2196 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2197 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2198 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2199 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2200 DEFAULT_wxUSE_DISPLAY=no
2201 DEFAULT_wxUSE_GAUGE=no
2202 DEFAULT_wxUSE_GRID=no
20e34ecc 2203 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2204 DEFAULT_wxUSE_IMAGLIST=no
2205 DEFAULT_wxUSE_LISTBOOK=no
2206 DEFAULT_wxUSE_LISTBOX=no
2207 DEFAULT_wxUSE_LISTCTRL=no
2208 DEFAULT_wxUSE_NOTEBOOK=no
2209 DEFAULT_wxUSE_RADIOBOX=no
2210 DEFAULT_wxUSE_RADIOBTN=no
2211 DEFAULT_wxUSE_SASH=no
2212 DEFAULT_wxUSE_SCROLLBAR=no
2213 DEFAULT_wxUSE_SLIDER=no
2214 DEFAULT_wxUSE_SPINBTN=no
2215 DEFAULT_wxUSE_SPINCTRL=no
2216 DEFAULT_wxUSE_SPLITTER=no
2217 DEFAULT_wxUSE_STATBMP=no
2218 DEFAULT_wxUSE_STATBOX=no
2219 DEFAULT_wxUSE_STATLINE=no
2220 DEFAULT_wxUSE_STATTEXT=no
2221 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2222 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2223 DEFAULT_wxUSE_TEXTCTRL=no
2224 DEFAULT_wxUSE_TOGGLEBTN=no
2225 DEFAULT_wxUSE_TOOLBAR=no
2226 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2227 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2228 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2229 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2230 DEFAULT_wxUSE_TREECTRL=no
2231 DEFAULT_wxUSE_POPUPWIN=no
2232 DEFAULT_wxUSE_TIPWINDOW=no
2233
2234 DEFAULT_wxUSE_UNICODE=no
2235 DEFAULT_wxUSE_UNICODE_MSLU=no
2236 DEFAULT_wxUSE_WCSRTOMBS=no
2237
2238 DEFAULT_wxUSE_PALETTE=no
2239 DEFAULT_wxUSE_IMAGE=no
2240 DEFAULT_wxUSE_GIF=no
2241 DEFAULT_wxUSE_PCX=no
2242 DEFAULT_wxUSE_PNM=no
2243 DEFAULT_wxUSE_IFF=no
2244 DEFAULT_wxUSE_XPM=no
2245 DEFAULT_wxUSE_ICO_CUR=no
2246 DEFAULT_wxUSE_ACCESSIBILITY=no
2247
2248 DEFAULT_wxUSE_MONOLITHIC=no
2249 DEFAULT_wxUSE_PLUGINS=no
2250 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2251else
2252 DEFAULT_wxUSE_UNIVERSAL=no
2253 DEFAULT_wxUSE_STL=no
2254
2255 DEFAULT_wxUSE_NANOX=no
2256
2257 DEFAULT_wxUSE_THREADS=yes
2258
2259 DEFAULT_wxUSE_SHARED=yes
2260 DEFAULT_wxUSE_OPTIMISE=yes
2261 DEFAULT_wxUSE_PROFILE=no
2262 DEFAULT_wxUSE_NO_DEPS=no
2263 DEFAULT_wxUSE_NO_RTTI=no
2264 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2265 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2266 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2267 DEFAULT_wxUSE_PERMISSIVE=no
2268 DEFAULT_wxUSE_DEBUG_FLAG=no
2269 DEFAULT_wxUSE_DEBUG_INFO=no
2270 DEFAULT_wxUSE_DEBUG_GDB=no
2271 DEFAULT_wxUSE_MEM_TRACING=no
2272 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2273 DEFAULT_wxUSE_DMALLOC=no
2274 DEFAULT_wxUSE_APPLE_IEEE=yes
2275
2276 DEFAULT_wxUSE_EXCEPTIONS=yes
2277 DEFAULT_wxUSE_LOG=yes
2278 DEFAULT_wxUSE_LOGWINDOW=yes
2279 DEFAULT_wxUSE_LOGGUI=yes
2280 DEFAULT_wxUSE_LOGDIALOG=yes
2281
2282 DEFAULT_wxUSE_GUI=yes
2283
2284 DEFAULT_wxUSE_REGEX=yes
2285 DEFAULT_wxUSE_XML=yes
2286 DEFAULT_wxUSE_EXPAT=yes
2287 DEFAULT_wxUSE_ZLIB=yes
2288 DEFAULT_wxUSE_LIBPNG=yes
2289 DEFAULT_wxUSE_LIBJPEG=yes
2290 DEFAULT_wxUSE_LIBTIFF=yes
2291 DEFAULT_wxUSE_LIBXPM=yes
2292 DEFAULT_wxUSE_LIBMSPACK=yes
2293 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2294 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2295 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2296 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2297 DEFAULT_wxUSE_ODBC=no
52cb607e 2298 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2299
2300 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2301 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2302 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2303 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2304 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2305 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2306 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2307 DEFAULT_wxUSE_DATETIME=yes
2308 DEFAULT_wxUSE_TIMER=yes
2309 DEFAULT_wxUSE_STOPWATCH=yes
2310 DEFAULT_wxUSE_FILE=yes
2311 DEFAULT_wxUSE_FFILE=yes
07158944 2312 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2313 DEFAULT_wxUSE_TEXTBUFFER=yes
2314 DEFAULT_wxUSE_TEXTFILE=yes
2315 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2316 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2317 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2318 DEFAULT_wxUSE_INTL=yes
2319 DEFAULT_wxUSE_CONFIG=yes
2320 DEFAULT_wxUSE_FONTMAP=yes
2321 DEFAULT_wxUSE_STREAMS=yes
2322 DEFAULT_wxUSE_SOCKETS=yes
2323 DEFAULT_wxUSE_OLE=yes
2324 DEFAULT_wxUSE_DATAOBJ=yes
2325 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2326 DEFAULT_wxUSE_JOYSTICK=yes
2327 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2328 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2329 DEFAULT_wxUSE_LONGLONG=yes
2330 DEFAULT_wxUSE_GEOMETRY=yes
2331
2332 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2333 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2334 DEFAULT_wxUSE_POSTSCRIPT=yes
2335
2336 DEFAULT_wxUSE_CLIPBOARD=yes
2337 DEFAULT_wxUSE_TOOLTIPS=yes
2338 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2339 DEFAULT_wxUSE_DRAGIMAGE=yes
2340 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2341 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2342
8a7b1113 2343 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2344 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2345 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2346 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2347
2348 DEFAULT_wxUSE_RESOURCES=no
2349 DEFAULT_wxUSE_CONSTRAINTS=yes
2350 DEFAULT_wxUSE_IPC=yes
2351 DEFAULT_wxUSE_HELP=yes
2352 DEFAULT_wxUSE_MS_HTML_HELP=yes
2353 DEFAULT_wxUSE_WXHTML_HELP=yes
2354 DEFAULT_wxUSE_TREELAYOUT=yes
2355 DEFAULT_wxUSE_METAFILE=yes
2356 DEFAULT_wxUSE_MIMETYPE=yes
2357 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2358 DEFAULT_wxUSE_PROTOCOL=yes
2359 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2360 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2361 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2362 DEFAULT_wxUSE_URL=yes
2363
2364 DEFAULT_wxUSE_COMMONDLGS=yes
2365 DEFAULT_wxUSE_CHOICEDLG=yes
2366 DEFAULT_wxUSE_COLOURDLG=yes
2367 DEFAULT_wxUSE_DIRDLG=yes
2368 DEFAULT_wxUSE_FILEDLG=yes
2369 DEFAULT_wxUSE_FINDREPLDLG=yes
2370 DEFAULT_wxUSE_FONTDLG=yes
2371 DEFAULT_wxUSE_MSGDLG=yes
2372 DEFAULT_wxUSE_NUMBERDLG=yes
2373 DEFAULT_wxUSE_TEXTDLG=yes
2374 DEFAULT_wxUSE_SPLASH=yes
2375 DEFAULT_wxUSE_STARTUP_TIPS=yes
2376 DEFAULT_wxUSE_PROGRESSDLG=yes
2377 DEFAULT_wxUSE_WIZARDDLG=yes
2378
2379 DEFAULT_wxUSE_MENUS=yes
2380 DEFAULT_wxUSE_MINIFRAME=yes
2381 DEFAULT_wxUSE_HTML=yes
91dea314 2382 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2383 DEFAULT_wxUSE_XRC=yes
646b6ec1 2384 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2385 DEFAULT_wxUSE_FILESYSTEM=yes
2386 DEFAULT_wxUSE_FS_INET=yes
2387 DEFAULT_wxUSE_FS_ZIP=yes
2388 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2389 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2390 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2391 DEFAULT_wxUSE_VALIDATORS=yes
2392
2393 DEFAULT_wxUSE_ACCEL=yes
2394 DEFAULT_wxUSE_BUTTON=yes
2395 DEFAULT_wxUSE_BMPBUTTON=yes
2396 DEFAULT_wxUSE_CALCTRL=yes
2397 DEFAULT_wxUSE_CARET=yes
2398 DEFAULT_wxUSE_CHECKBOX=yes
2399 DEFAULT_wxUSE_CHECKLST=yes
2400 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2401 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2402 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2403 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2404 DEFAULT_wxUSE_DISPLAY=yes
2405 DEFAULT_wxUSE_GAUGE=yes
2406 DEFAULT_wxUSE_GRID=yes
20e34ecc 2407 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2408 DEFAULT_wxUSE_IMAGLIST=yes
2409 DEFAULT_wxUSE_LISTBOOK=yes
2410 DEFAULT_wxUSE_LISTBOX=yes
2411 DEFAULT_wxUSE_LISTCTRL=yes
2412 DEFAULT_wxUSE_NOTEBOOK=yes
2413 DEFAULT_wxUSE_RADIOBOX=yes
2414 DEFAULT_wxUSE_RADIOBTN=yes
2415 DEFAULT_wxUSE_SASH=yes
2416 DEFAULT_wxUSE_SCROLLBAR=yes
2417 DEFAULT_wxUSE_SLIDER=yes
2418 DEFAULT_wxUSE_SPINBTN=yes
2419 DEFAULT_wxUSE_SPINCTRL=yes
2420 DEFAULT_wxUSE_SPLITTER=yes
2421 DEFAULT_wxUSE_STATBMP=yes
2422 DEFAULT_wxUSE_STATBOX=yes
2423 DEFAULT_wxUSE_STATLINE=yes
2424 DEFAULT_wxUSE_STATTEXT=yes
2425 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2426 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2427 DEFAULT_wxUSE_TEXTCTRL=yes
2428 DEFAULT_wxUSE_TOGGLEBTN=yes
2429 DEFAULT_wxUSE_TOOLBAR=yes
2430 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2431 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2432 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2433 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2434 DEFAULT_wxUSE_TREECTRL=yes
2435 DEFAULT_wxUSE_POPUPWIN=yes
2436 DEFAULT_wxUSE_TIPWINDOW=yes
2437
78de529b 2438 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2439 DEFAULT_wxUSE_UNICODE_MSLU=yes
2440 DEFAULT_wxUSE_WCSRTOMBS=no
2441
2442 DEFAULT_wxUSE_PALETTE=yes
2443 DEFAULT_wxUSE_IMAGE=yes
2444 DEFAULT_wxUSE_GIF=yes
2445 DEFAULT_wxUSE_PCX=yes
2446 DEFAULT_wxUSE_IFF=no
2447 DEFAULT_wxUSE_PNM=yes
2448 DEFAULT_wxUSE_XPM=yes
2449 DEFAULT_wxUSE_ICO_CUR=yes
2450 DEFAULT_wxUSE_ACCESSIBILITY=no
2451
2452 DEFAULT_wxUSE_MONOLITHIC=no
2453 DEFAULT_wxUSE_PLUGINS=no
2454 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2455
f34ca037 2456 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2457fi
2458
2459
2460
f34ca037 2461
a848cd7e
SC
2462for toolkit in `echo $ALL_TOOLKITS`; do
2463 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2464 if test "x$LINE" != "x" ; then
2465 has_toolkit_in_cache=1
2466 eval "DEFAULT_$LINE"
2467 eval "CACHE_$toolkit=1"
f34ca037
MW
2468
2469 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2470 if test "x$LINE" != "x" ; then
2471 eval "DEFAULT_$LINE"
2472 fi
a848cd7e
SC
2473 fi
2474done
2475
2476
2477
2478 enablestring=
2479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2480echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2481 no_cache=0
2482 # Check whether --enable-gui or --disable-gui was given.
2483if test "${enable_gui+set}" = set; then
2484 enableval="$enable_gui"
2485
2486 if test "$enableval" = yes; then
2487 ac_cv_use_gui='wxUSE_GUI=yes'
2488 else
2489 ac_cv_use_gui='wxUSE_GUI=no'
2490 fi
2491
2492else
2493
2494 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2495 if test "x$LINE" != x ; then
2496 eval "DEFAULT_$LINE"
2497 else
2498 no_cache=1
2499 fi
2500
2501 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2502
2503fi;
2504
2505 eval "$ac_cv_use_gui"
2506 if test "$no_cache" != 1; then
2507 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2508 fi
2509
2510 if test "$wxUSE_GUI" = yes; then
2511 echo "$as_me:$LINENO: result: yes" >&5
2512echo "${ECHO_T}yes" >&6
2513 else
2514 echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6
2516 fi
2517
2518
2519 enablestring=
2520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2521echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2522 no_cache=0
2523 # Check whether --enable-monolithic or --disable-monolithic was given.
2524if test "${enable_monolithic+set}" = set; then
2525 enableval="$enable_monolithic"
2526
2527 if test "$enableval" = yes; then
2528 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2529 else
2530 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2531 fi
2532
2533else
2534
2535 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2536 if test "x$LINE" != x ; then
2537 eval "DEFAULT_$LINE"
2538 else
2539 no_cache=1
2540 fi
2541
2542 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2543
2544fi;
2545
2546 eval "$ac_cv_use_monolithic"
2547 if test "$no_cache" != 1; then
2548 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2549 fi
2550
2551 if test "$wxUSE_MONOLITHIC" = yes; then
2552 echo "$as_me:$LINENO: result: yes" >&5
2553echo "${ECHO_T}yes" >&6
2554 else
2555 echo "$as_me:$LINENO: result: no" >&5
2556echo "${ECHO_T}no" >&6
2557 fi
2558
2559
2560 enablestring=
2561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2562echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2563 no_cache=0
2564 # Check whether --enable-plugins or --disable-plugins was given.
2565if test "${enable_plugins+set}" = set; then
2566 enableval="$enable_plugins"
2567
2568 if test "$enableval" = yes; then
2569 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2570 else
2571 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2572 fi
2573
2574else
2575
2576 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2577 if test "x$LINE" != x ; then
2578 eval "DEFAULT_$LINE"
2579 else
2580 no_cache=1
2581 fi
2582
2583 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2584
2585fi;
2586
2587 eval "$ac_cv_use_plugins"
2588 if test "$no_cache" != 1; then
2589 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2590 fi
2591
2592 if test "$wxUSE_PLUGINS" = yes; then
2593 echo "$as_me:$LINENO: result: yes" >&5
2594echo "${ECHO_T}yes" >&6
2595 else
2596 echo "$as_me:$LINENO: result: no" >&5
2597echo "${ECHO_T}no" >&6
2598 fi
2599
2600
1c14217d
VZ
2601 withstring=without
2602 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2603echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2604 no_cache=0
2605
2606# Check whether --with-subdirs or --without-subdirs was given.
2607if test "${with_subdirs+set}" = set; then
2608 withval="$with_subdirs"
2609
2610 if test "$withval" = yes; then
2611 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2612 else
2613 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2614 fi
2615
2616else
2617
2618 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2619 if test "x$LINE" != x ; then
2620 eval "DEFAULT_$LINE"
2621 else
2622 no_cache=1
2623 fi
2624
2625 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2626
2627fi;
2628
2629 eval "$ac_cv_use_subdirs"
2630 if test "$no_cache" != 1; then
2631 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2632 fi
2633
2634 if test "$wxWITH_SUBDIRS" = yes; then
2635 echo "$as_me:$LINENO: result: yes" >&5
2636echo "${ECHO_T}yes" >&6
2637 else
2638 echo "$as_me:$LINENO: result: no" >&5
2639echo "${ECHO_T}no" >&6
2640 fi
2641
2642
a848cd7e
SC
2643if test "$wxUSE_GUI" = "yes"; then
2644
2645
2646 enablestring=
2647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2648echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2649 no_cache=0
2650 # Check whether --enable-universal or --disable-universal was given.
2651if test "${enable_universal+set}" = set; then
2652 enableval="$enable_universal"
2653
2654 if test "$enableval" = yes; then
2655 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2656 else
2657 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2658 fi
2659
2660else
2661
2662 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2663 if test "x$LINE" != x ; then
2664 eval "DEFAULT_$LINE"
2665 else
2666 no_cache=1
2667 fi
2668
2669 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2670
2671fi;
2672
2673 eval "$ac_cv_use_universal"
2674 if test "$no_cache" != 1; then
2675 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2676 fi
2677
2678 if test "$wxUSE_UNIVERSAL" = yes; then
2679 echo "$as_me:$LINENO: result: yes" >&5
2680echo "${ECHO_T}yes" >&6
2681 else
2682 echo "$as_me:$LINENO: result: no" >&5
2683echo "${ECHO_T}no" >&6
2684 fi
2685
2686
2687# Check whether --with-gtk or --without-gtk was given.
2688if test "${with_gtk+set}" = set; then
2689 withval="$with_gtk"
2690 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2691fi;
2692
2693# Check whether --with-motif or --without-motif was given.
2694if test "${with_motif+set}" = set; then
2695 withval="$with_motif"
2696 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2697fi;
2698
2699# Check whether --with-mac or --without-mac was given.
2700if test "${with_mac+set}" = set; then
2701 withval="$with_mac"
c228d3a4 2702 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2703fi;
2704
2705# Check whether --with-cocoa or --without-cocoa was given.
2706if test "${with_cocoa+set}" = set; then
2707 withval="$with_cocoa"
c228d3a4 2708 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2709fi;
2710
2711# Check whether --with-wine or --without-wine was given.
2712if test "${with_wine+set}" = set; then
2713 withval="$with_wine"
2714 wxUSE_WINE="$withval" CACHE_WINE=1
2715fi;
2716
2717# Check whether --with-msw or --without-msw was given.
2718if test "${with_msw+set}" = set; then
2719 withval="$with_msw"
2720 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2721fi;
2722
2723# Check whether --with-pm or --without-pm was given.
2724if test "${with_pm+set}" = set; then
2725 withval="$with_pm"
2726 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2727fi;
2728
2729# Check whether --with-mgl or --without-mgl was given.
2730if test "${with_mgl+set}" = set; then
2731 withval="$with_mgl"
2732 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2733fi;
2734
2735# Check whether --with-microwin or --without-microwin was given.
2736if test "${with_microwin+set}" = set; then
2737 withval="$with_microwin"
2738 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2739fi;
2740
2741# Check whether --with-x11 or --without-x11 was given.
2742if test "${with_x11+set}" = set; then
2743 withval="$with_x11"
2744 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2745fi;
2746
2747 enablestring=
2748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2749echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2750 no_cache=0
2751 # Check whether --enable-nanox or --disable-nanox was given.
2752if test "${enable_nanox+set}" = set; then
2753 enableval="$enable_nanox"
2754
2755 if test "$enableval" = yes; then
2756 ac_cv_use_nanox='wxUSE_NANOX=yes'
2757 else
2758 ac_cv_use_nanox='wxUSE_NANOX=no'
2759 fi
2760
2761else
2762
2763 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2764 if test "x$LINE" != x ; then
2765 eval "DEFAULT_$LINE"
2766 else
2767 no_cache=1
2768 fi
2769
2770 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2771
2772fi;
2773
2774 eval "$ac_cv_use_nanox"
2775 if test "$no_cache" != 1; then
2776 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2777 fi
2778
2779 if test "$wxUSE_NANOX" = yes; then
2780 echo "$as_me:$LINENO: result: yes" >&5
2781echo "${ECHO_T}yes" >&6
2782 else
2783 echo "$as_me:$LINENO: result: no" >&5
2784echo "${ECHO_T}no" >&6
2785 fi
2786
2787
f34ca037
MW
2788# Check whether --enable-gtk2 or --disable-gtk2 was given.
2789if test "${enable_gtk2+set}" = set; then
2790 enableval="$enable_gtk2"
2791 wxUSE_GTK2="$enableval"
2792fi;
a848cd7e 2793
a848cd7e
SC
2794 enablestring=
2795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2796echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2797 no_cache=0
2798 # Check whether --enable-gpe or --disable-gpe was given.
2799if test "${enable_gpe+set}" = set; then
2800 enableval="$enable_gpe"
2801
2802 if test "$enableval" = yes; then
2803 ac_cv_use_gpe='wxUSE_GPE=yes'
2804 else
2805 ac_cv_use_gpe='wxUSE_GPE=no'
2806 fi
2807
2808else
2809
2810 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2811 if test "x$LINE" != x ; then
2812 eval "DEFAULT_$LINE"
2813 else
2814 no_cache=1
2815 fi
2816
2817 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2818
2819fi;
2820
2821 eval "$ac_cv_use_gpe"
2822 if test "$no_cache" != 1; then
2823 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2824 fi
2825
2826 if test "$wxUSE_GPE" = yes; then
2827 echo "$as_me:$LINENO: result: yes" >&5
2828echo "${ECHO_T}yes" >&6
2829 else
2830 echo "$as_me:$LINENO: result: no" >&5
2831echo "${ECHO_T}no" >&6
2832 fi
2833
2834
2835
2836 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2837echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2838 no_cache=0
2839
2840# Check whether --with-libpng or --without-libpng was given.
2841if test "${with_libpng+set}" = set; then
2842 withval="$with_libpng"
2843
2844 if test "$withval" = yes; then
2845 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2846 elif test "$withval" = no; then
2847 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2848 elif test "$withval" = sys; then
2849 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2850 elif test "$withval" = builtin; then
2851 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2852 else
2853 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2854echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2855 { (exit 1); exit 1; }; }
2856 fi
2857
2858else
2859
2860 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2861 if test "x$LINE" != x ; then
2862 eval "DEFAULT_$LINE"
2863 else
2864 no_cache=1
2865 fi
2866
2867 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2868
2869fi;
2870
2871 eval "$ac_cv_use_libpng"
2872 if test "$no_cache" != 1; then
2873 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2874 fi
2875
2876 if test "$wxUSE_LIBPNG" = yes; then
2877 echo "$as_me:$LINENO: result: yes" >&5
2878echo "${ECHO_T}yes" >&6
2879 elif test "$wxUSE_LIBPNG" = no; then
2880 echo "$as_me:$LINENO: result: no" >&5
2881echo "${ECHO_T}no" >&6
2882 elif test "$wxUSE_LIBPNG" = sys; then
2883 echo "$as_me:$LINENO: result: system version" >&5
2884echo "${ECHO_T}system version" >&6
2885 elif test "$wxUSE_LIBPNG" = builtin; then
2886 echo "$as_me:$LINENO: result: builtin version" >&5
2887echo "${ECHO_T}builtin version" >&6
2888 else
2889 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2890echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2891 { (exit 1); exit 1; }; }
2892 fi
2893
2894
2895 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2896echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2897 no_cache=0
2898
2899# Check whether --with-libjpeg or --without-libjpeg was given.
2900if test "${with_libjpeg+set}" = set; then
2901 withval="$with_libjpeg"
2902
2903 if test "$withval" = yes; then
2904 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2905 elif test "$withval" = no; then
2906 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2907 elif test "$withval" = sys; then
2908 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2909 elif test "$withval" = builtin; then
2910 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2911 else
2912 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2913echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2914 { (exit 1); exit 1; }; }
2915 fi
2916
2917else
2918
2919 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2920 if test "x$LINE" != x ; then
2921 eval "DEFAULT_$LINE"
2922 else
2923 no_cache=1
2924 fi
2925
2926 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2927
2928fi;
2929
2930 eval "$ac_cv_use_libjpeg"
2931 if test "$no_cache" != 1; then
2932 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2933 fi
2934
2935 if test "$wxUSE_LIBJPEG" = yes; then
2936 echo "$as_me:$LINENO: result: yes" >&5
2937echo "${ECHO_T}yes" >&6
2938 elif test "$wxUSE_LIBJPEG" = no; then
2939 echo "$as_me:$LINENO: result: no" >&5
2940echo "${ECHO_T}no" >&6
2941 elif test "$wxUSE_LIBJPEG" = sys; then
2942 echo "$as_me:$LINENO: result: system version" >&5
2943echo "${ECHO_T}system version" >&6
2944 elif test "$wxUSE_LIBJPEG" = builtin; then
2945 echo "$as_me:$LINENO: result: builtin version" >&5
2946echo "${ECHO_T}builtin version" >&6
2947 else
2948 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2949echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2950 { (exit 1); exit 1; }; }
2951 fi
2952
2953
2954 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2955echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2956 no_cache=0
2957
2958# Check whether --with-libtiff or --without-libtiff was given.
2959if test "${with_libtiff+set}" = set; then
2960 withval="$with_libtiff"
2961
2962 if test "$withval" = yes; then
2963 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2964 elif test "$withval" = no; then
2965 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2966 elif test "$withval" = sys; then
2967 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2968 elif test "$withval" = builtin; then
2969 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2970 else
2971 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2972echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2973 { (exit 1); exit 1; }; }
2974 fi
2975
2976else
2977
2978 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2986
2987fi;
2988
2989 eval "$ac_cv_use_libtiff"
2990 if test "$no_cache" != 1; then
2991 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2992 fi
2993
2994 if test "$wxUSE_LIBTIFF" = yes; then
2995 echo "$as_me:$LINENO: result: yes" >&5
2996echo "${ECHO_T}yes" >&6
2997 elif test "$wxUSE_LIBTIFF" = no; then
2998 echo "$as_me:$LINENO: result: no" >&5
2999echo "${ECHO_T}no" >&6
3000 elif test "$wxUSE_LIBTIFF" = sys; then
3001 echo "$as_me:$LINENO: result: system version" >&5
3002echo "${ECHO_T}system version" >&6
3003 elif test "$wxUSE_LIBTIFF" = builtin; then
3004 echo "$as_me:$LINENO: result: builtin version" >&5
3005echo "${ECHO_T}builtin version" >&6
3006 else
3007 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3008echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3009 { (exit 1); exit 1; }; }
3010 fi
3011
3012
3013 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3014echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3015 no_cache=0
3016
3017# Check whether --with-libxpm or --without-libxpm was given.
3018if test "${with_libxpm+set}" = set; then
3019 withval="$with_libxpm"
3020
3021 if test "$withval" = yes; then
3022 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3023 elif test "$withval" = no; then
3024 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3025 elif test "$withval" = sys; then
3026 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3027 elif test "$withval" = builtin; then
3028 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3029 else
3030 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3031echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3032 { (exit 1); exit 1; }; }
3033 fi
3034
3035else
3036
3037 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3038 if test "x$LINE" != x ; then
3039 eval "DEFAULT_$LINE"
3040 else
3041 no_cache=1
3042 fi
3043
3044 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3045
3046fi;
3047
3048 eval "$ac_cv_use_libxpm"
3049 if test "$no_cache" != 1; then
3050 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3051 fi
3052
3053 if test "$wxUSE_LIBXPM" = yes; then
3054 echo "$as_me:$LINENO: result: yes" >&5
3055echo "${ECHO_T}yes" >&6
3056 elif test "$wxUSE_LIBXPM" = no; then
3057 echo "$as_me:$LINENO: result: no" >&5
3058echo "${ECHO_T}no" >&6
3059 elif test "$wxUSE_LIBXPM" = sys; then
3060 echo "$as_me:$LINENO: result: system version" >&5
3061echo "${ECHO_T}system version" >&6
3062 elif test "$wxUSE_LIBXPM" = builtin; then
3063 echo "$as_me:$LINENO: result: builtin version" >&5
3064echo "${ECHO_T}builtin version" >&6
3065 else
3066 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3067echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3068 { (exit 1); exit 1; }; }
3069 fi
3070
3071
1c14217d
VZ
3072 withstring=
3073 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3074echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3075 no_cache=0
3076
3077# Check whether --with-libmspack or --without-libmspack was given.
3078if test "${with_libmspack+set}" = set; then
3079 withval="$with_libmspack"
3080
3081 if test "$withval" = yes; then
3082 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3083 else
3084 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3085 fi
3086
3087else
3088
3089 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3090 if test "x$LINE" != x ; then
3091 eval "DEFAULT_$LINE"
3092 else
3093 no_cache=1
3094 fi
3095
3096 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3097
3098fi;
3099
3100 eval "$ac_cv_use_libmspack"
3101 if test "$no_cache" != 1; then
3102 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3103 fi
3104
3105 if test "$wxUSE_LIBMSPACK" = yes; then
3106 echo "$as_me:$LINENO: result: yes" >&5
3107echo "${ECHO_T}yes" >&6
3108 else
3109 echo "$as_me:$LINENO: result: no" >&5
3110echo "${ECHO_T}no" >&6
3111 fi
3112
3113
1c14217d
VZ
3114 withstring=
3115 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3116echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3117 no_cache=0
3118
3119# Check whether --with-sdl or --without-sdl was given.
3120if test "${with_sdl+set}" = set; then
3121 withval="$with_sdl"
3122
3123 if test "$withval" = yes; then
3124 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3125 else
3126 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3127 fi
3128
3129else
3130
3131 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3132 if test "x$LINE" != x ; then
3133 eval "DEFAULT_$LINE"
3134 else
3135 no_cache=1
3136 fi
3137
3138 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3139
3140fi;
3141
3142 eval "$ac_cv_use_sdl"
3143 if test "$no_cache" != 1; then
3144 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3145 fi
3146
3147 if test "$wxUSE_LIBSDL" = yes; then
3148 echo "$as_me:$LINENO: result: yes" >&5
3149echo "${ECHO_T}yes" >&6
3150 else
3151 echo "$as_me:$LINENO: result: no" >&5
3152echo "${ECHO_T}no" >&6
3153 fi
3154
3155
1c14217d
VZ
3156 withstring=
3157 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3158echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3159 no_cache=0
3160
3161# Check whether --with-gnomeprint or --without-gnomeprint was given.
3162if test "${with_gnomeprint+set}" = set; then
3163 withval="$with_gnomeprint"
3164
3165 if test "$withval" = yes; then
3166 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3167 else
3168 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3169 fi
3170
3171else
3172
3173 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3181
3182fi;
3183
3184 eval "$ac_cv_use_gnomeprint"
3185 if test "$no_cache" != 1; then
3186 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3187 fi
3188
3189 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3190 echo "$as_me:$LINENO: result: yes" >&5
3191echo "${ECHO_T}yes" >&6
3192 else
3193 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
3195 fi
3196
3197
2b850ae1
RR
3198 withstring=
3199 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3200echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3201 no_cache=0
3202
3203# Check whether --with-gnomevfs or --without-gnomevfs was given.
3204if test "${with_gnomevfs+set}" = set; then
3205 withval="$with_gnomevfs"
3206
3207 if test "$withval" = yes; then
3208 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3209 else
3210 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3211 fi
3212
3213else
3214
3215 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3223
3224fi;
3225
3226 eval "$ac_cv_use_gnomevfs"
3227 if test "$no_cache" != 1; then
3228 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3229 fi
3230
3231 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3232 echo "$as_me:$LINENO: result: yes" >&5
3233echo "${ECHO_T}yes" >&6
3234 else
3235 echo "$as_me:$LINENO: result: no" >&5
3236echo "${ECHO_T}no" >&6
3237 fi
3238
3239
3565d135
RR
3240 withstring=
3241 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3242echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3243 no_cache=0
3244
3245# Check whether --with-hildon or --without-hildon was given.
3246if test "${with_hildon+set}" = set; then
3247 withval="$with_hildon"
3248
3249 if test "$withval" = yes; then
3250 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3251 else
3252 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3253 fi
3254
3255else
3256
3257 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3258 if test "x$LINE" != x ; then
3259 eval "DEFAULT_$LINE"
3260 else
3261 no_cache=1
3262 fi
3263
3264 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3265
3266fi;
3267
3268 eval "$ac_cv_use_hildon"
3269 if test "$no_cache" != 1; then
3270 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3271 fi
3272
3273 if test "$wxUSE_LIBHILDON" = yes; then
3274 echo "$as_me:$LINENO: result: yes" >&5
3275echo "${ECHO_T}yes" >&6
3276 else
3277 echo "$as_me:$LINENO: result: no" >&5
3278echo "${ECHO_T}no" >&6
3279 fi
3280
3281
1c14217d
VZ
3282 withstring=
3283 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3284echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3285 no_cache=0
3286
3287# Check whether --with-opengl or --without-opengl was given.
3288if test "${with_opengl+set}" = set; then
3289 withval="$with_opengl"
3290
3291 if test "$withval" = yes; then
3292 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3293 else
3294 ac_cv_use_opengl='wxUSE_OPENGL=no'
3295 fi
3296
3297else
3298
3299 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3300 if test "x$LINE" != x ; then
3301 eval "DEFAULT_$LINE"
3302 else
3303 no_cache=1
3304 fi
3305
3306 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3307
3308fi;
3309
3310 eval "$ac_cv_use_opengl"
3311 if test "$no_cache" != 1; then
3312 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3313 fi
3314
3315 if test "$wxUSE_OPENGL" = yes; then
3316 echo "$as_me:$LINENO: result: yes" >&5
3317echo "${ECHO_T}yes" >&6
3318 else
3319 echo "$as_me:$LINENO: result: no" >&5
3320echo "${ECHO_T}no" >&6
3321 fi
3322
3323
3324fi
3325
3326
1c14217d
VZ
3327 withstring=
3328 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3329echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3330 no_cache=0
3331
3332# Check whether --with-dmalloc or --without-dmalloc was given.
3333if test "${with_dmalloc+set}" = set; then
3334 withval="$with_dmalloc"
3335
3336 if test "$withval" = yes; then
3337 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3338 else
3339 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3340 fi
3341
3342else
3343
3344 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3345 if test "x$LINE" != x ; then
3346 eval "DEFAULT_$LINE"
3347 else
3348 no_cache=1
3349 fi
3350
3351 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3352
3353fi;
3354
3355 eval "$ac_cv_use_dmalloc"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_DMALLOC" = yes; then
3361 echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
3363 else
3364 echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
3366 fi
3367
3368
3369 echo "$as_me:$LINENO: checking for --with-regex" >&5
3370echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3371 no_cache=0
3372
3373# Check whether --with-regex or --without-regex was given.
3374if test "${with_regex+set}" = set; then
3375 withval="$with_regex"
3376
3377 if test "$withval" = yes; then
3378 ac_cv_use_regex='wxUSE_REGEX=yes'
3379 elif test "$withval" = no; then
3380 ac_cv_use_regex='wxUSE_REGEX=no'
3381 elif test "$withval" = sys; then
3382 ac_cv_use_regex='wxUSE_REGEX=sys'
3383 elif test "$withval" = builtin; then
3384 ac_cv_use_regex='wxUSE_REGEX=builtin'
3385 else
3386 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3387echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3388 { (exit 1); exit 1; }; }
3389 fi
3390
3391else
3392
3393 LINE=`grep "wxUSE_REGEX" ${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_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3401
3402fi;
3403
3404 eval "$ac_cv_use_regex"
3405 if test "$no_cache" != 1; then
3406 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3407 fi
3408
3409 if test "$wxUSE_REGEX" = yes; then
3410 echo "$as_me:$LINENO: result: yes" >&5
3411echo "${ECHO_T}yes" >&6
3412 elif test "$wxUSE_REGEX" = no; then
3413 echo "$as_me:$LINENO: result: no" >&5
3414echo "${ECHO_T}no" >&6
3415 elif test "$wxUSE_REGEX" = sys; then
3416 echo "$as_me:$LINENO: result: system version" >&5
3417echo "${ECHO_T}system version" >&6
3418 elif test "$wxUSE_REGEX" = 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-regex: should be yes, no, sys, or builtin" >&5
3423echo "$as_me: error: Invalid value for --with-regex: 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-zlib" >&5
3429echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3430 no_cache=0
3431
3432# Check whether --with-zlib or --without-zlib was given.
3433if test "${with_zlib+set}" = set; then
3434 withval="$with_zlib"
3435
3436 if test "$withval" = yes; then
3437 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3438 elif test "$withval" = no; then
3439 ac_cv_use_zlib='wxUSE_ZLIB=no'
3440 elif test "$withval" = sys; then
3441 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3442 elif test "$withval" = builtin; then
3443 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3444 else
3445 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3446echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3447 { (exit 1); exit 1; }; }
3448 fi
3449
3450else
3451
3452 LINE=`grep "wxUSE_ZLIB" ${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_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3460
3461fi;
3462
3463 eval "$ac_cv_use_zlib"
3464 if test "$no_cache" != 1; then
3465 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3466 fi
3467
3468 if test "$wxUSE_ZLIB" = yes; then
3469 echo "$as_me:$LINENO: result: yes" >&5
3470echo "${ECHO_T}yes" >&6
3471 elif test "$wxUSE_ZLIB" = no; then
3472 echo "$as_me:$LINENO: result: no" >&5
3473echo "${ECHO_T}no" >&6
3474 elif test "$wxUSE_ZLIB" = sys; then
3475 echo "$as_me:$LINENO: result: system version" >&5
3476echo "${ECHO_T}system version" >&6
3477 elif test "$wxUSE_ZLIB" = 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-zlib: should be yes, no, sys, or builtin" >&5
3482echo "$as_me: error: Invalid value for --with-zlib: 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-odbc" >&5
3488echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3489 no_cache=0
3490
3491# Check whether --with-odbc or --without-odbc was given.
3492if test "${with_odbc+set}" = set; then
3493 withval="$with_odbc"
3494
3495 if test "$withval" = yes; then
3496 ac_cv_use_odbc='wxUSE_ODBC=yes'
3497 elif test "$withval" = no; then
3498 ac_cv_use_odbc='wxUSE_ODBC=no'
3499 elif test "$withval" = sys; then
3500 ac_cv_use_odbc='wxUSE_ODBC=sys'
3501 elif test "$withval" = builtin; then
3502 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3503 else
3504 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3505echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3506 { (exit 1); exit 1; }; }
3507 fi
3508
3509else
3510
3511 LINE=`grep "wxUSE_ODBC" ${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_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3519
3520fi;
3521
3522 eval "$ac_cv_use_odbc"
3523 if test "$no_cache" != 1; then
3524 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3525 fi
3526
3527 if test "$wxUSE_ODBC" = yes; then
3528 echo "$as_me:$LINENO: result: yes" >&5
3529echo "${ECHO_T}yes" >&6
3530 elif test "$wxUSE_ODBC" = no; then
3531 echo "$as_me:$LINENO: result: no" >&5
3532echo "${ECHO_T}no" >&6
3533 elif test "$wxUSE_ODBC" = sys; then
3534 echo "$as_me:$LINENO: result: system version" >&5
3535echo "${ECHO_T}system version" >&6
3536 elif test "$wxUSE_ODBC" = 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-odbc: should be yes, no, sys, or builtin" >&5
3541echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3542 { (exit 1); exit 1; }; }
3543 fi
3544
3545
3546 echo "$as_me:$LINENO: checking for --with-expat" >&5
3547echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3548 no_cache=0
3549
3550# Check whether --with-expat or --without-expat was given.
3551if test "${with_expat+set}" = set; then
3552 withval="$with_expat"
3553
3554 if test "$withval" = yes; then
3555 ac_cv_use_expat='wxUSE_EXPAT=yes'
3556 elif test "$withval" = no; then
3557 ac_cv_use_expat='wxUSE_EXPAT=no'
3558 elif test "$withval" = sys; then
3559 ac_cv_use_expat='wxUSE_EXPAT=sys'
3560 elif test "$withval" = builtin; then
3561 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3562 else
3563 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3564echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3565 { (exit 1); exit 1; }; }
3566 fi
3567
3568else
3569
3570 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3571 if test "x$LINE" != x ; then
3572 eval "DEFAULT_$LINE"
3573 else
3574 no_cache=1
3575 fi
3576
3577 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3578
3579fi;
3580
3581 eval "$ac_cv_use_expat"
3582 if test "$no_cache" != 1; then
3583 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3584 fi
3585
3586 if test "$wxUSE_EXPAT" = yes; then
3587 echo "$as_me:$LINENO: result: yes" >&5
3588echo "${ECHO_T}yes" >&6
3589 elif test "$wxUSE_EXPAT" = no; then
3590 echo "$as_me:$LINENO: result: no" >&5
3591echo "${ECHO_T}no" >&6
3592 elif test "$wxUSE_EXPAT" = sys; then
3593 echo "$as_me:$LINENO: result: system version" >&5
3594echo "${ECHO_T}system version" >&6
3595 elif test "$wxUSE_EXPAT" = builtin; then
3596 echo "$as_me:$LINENO: result: builtin version" >&5
3597echo "${ECHO_T}builtin version" >&6
3598 else
3599 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3600echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3601 { (exit 1); exit 1; }; }
3602 fi
3603
3604
3605
3606
3607 enablestring=
3608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3609echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3610 no_cache=0
3611 # Check whether --enable-shared or --disable-shared was given.
3612if test "${enable_shared+set}" = set; then
3613 enableval="$enable_shared"
3614
3615 if test "$enableval" = yes; then
3616 ac_cv_use_shared='wxUSE_SHARED=yes'
3617 else
3618 ac_cv_use_shared='wxUSE_SHARED=no'
3619 fi
3620
3621else
3622
3623 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3624 if test "x$LINE" != x ; then
3625 eval "DEFAULT_$LINE"
3626 else
3627 no_cache=1
3628 fi
3629
3630 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3631
3632fi;
3633
3634 eval "$ac_cv_use_shared"
3635 if test "$no_cache" != 1; then
3636 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3637 fi
3638
3639 if test "$wxUSE_SHARED" = yes; then
3640 echo "$as_me:$LINENO: result: yes" >&5
3641echo "${ECHO_T}yes" >&6
3642 else
3643 echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
3645 fi
3646
3647
3648 enablestring=
3649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3650echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3651 no_cache=0
3652 # Check whether --enable-optimise or --disable-optimise was given.
3653if test "${enable_optimise+set}" = set; then
3654 enableval="$enable_optimise"
3655
3656 if test "$enableval" = yes; then
3657 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3658 else
3659 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3660 fi
3661
3662else
3663
3664 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3665 if test "x$LINE" != x ; then
3666 eval "DEFAULT_$LINE"
3667 else
3668 no_cache=1
3669 fi
3670
3671 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3672
3673fi;
3674
3675 eval "$ac_cv_use_optimise"
3676 if test "$no_cache" != 1; then
3677 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3678 fi
3679
3680 if test "$wxUSE_OPTIMISE" = yes; then
3681 echo "$as_me:$LINENO: result: yes" >&5
3682echo "${ECHO_T}yes" >&6
3683 else
3684 echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6
3686 fi
3687
3688
3689 enablestring=
3690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3691echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3692 no_cache=0
3693 # Check whether --enable-debug or --disable-debug was given.
3694if test "${enable_debug+set}" = set; then
3695 enableval="$enable_debug"
3696
3697 if test "$enableval" = yes; then
3698 ac_cv_use_debug='wxUSE_DEBUG=yes'
3699 else
3700 ac_cv_use_debug='wxUSE_DEBUG=no'
3701 fi
3702
3703else
3704
3705 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3706 if test "x$LINE" != x ; then
3707 eval "DEFAULT_$LINE"
3708 else
3709 no_cache=1
3710 fi
3711
3712 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3713
3714fi;
3715
3716 eval "$ac_cv_use_debug"
3717 if test "$no_cache" != 1; then
3718 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3719 fi
3720
3721 if test "$wxUSE_DEBUG" = yes; then
3722 echo "$as_me:$LINENO: result: yes" >&5
3723echo "${ECHO_T}yes" >&6
3724 else
3725 echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
3727 fi
3728
3729
3730 enablestring=
3731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3732echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3733 no_cache=0
3734 # Check whether --enable-stl or --disable-stl was given.
3735if test "${enable_stl+set}" = set; then
3736 enableval="$enable_stl"
3737
3738 if test "$enableval" = yes; then
3739 ac_cv_use_stl='wxUSE_STL=yes'
3740 else
3741 ac_cv_use_stl='wxUSE_STL=no'
3742 fi
3743
3744else
3745
3746 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3754
3755fi;
3756
3757 eval "$ac_cv_use_stl"
3758 if test "$no_cache" != 1; then
3759 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3760 fi
3761
3762 if test "$wxUSE_STL" = yes; then
3763 echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6
3765 else
3766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
3768 fi
3769
3770if test "$USE_OS2" = "1"; then
69120ee4 3771 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3772
3773 enablestring=
3774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3775echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3776 no_cache=0
3777 # Check whether --enable-omf or --disable-omf was given.
3778if test "${enable_omf+set}" = set; then
3779 enableval="$enable_omf"
3780
3781 if test "$enableval" = yes; then
3782 ac_cv_use_omf='wxUSE_OMF=yes'
3783 else
3784 ac_cv_use_omf='wxUSE_OMF=no'
3785 fi
3786
3787else
3788
3789 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3790 if test "x$LINE" != x ; then
3791 eval "DEFAULT_$LINE"
3792 else
3793 no_cache=1
3794 fi
3795
3796 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3797
3798fi;
3799
3800 eval "$ac_cv_use_omf"
3801 if test "$no_cache" != 1; then
3802 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3803 fi
3804
3805 if test "$wxUSE_OMF" = yes; then
3806 echo "$as_me:$LINENO: result: yes" >&5
3807echo "${ECHO_T}yes" >&6
3808 else
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
3811 fi
3812
3813fi
3814
3815if test "$wxUSE_DEBUG" = "yes"; then
3816 DEFAULT_wxUSE_DEBUG_FLAG=yes
3817 DEFAULT_wxUSE_DEBUG_INFO=yes
3818 BUILD=debug
3819elif test "$wxUSE_DEBUG" = "no"; then
3820 DEFAULT_wxUSE_DEBUG_FLAG=no
3821 DEFAULT_wxUSE_DEBUG_INFO=no
3822 BUILD=release
3823fi
3824
3825
3826 enablestring=
3827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3828echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3829 no_cache=0
3830 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3831if test "${enable_debug_flag+set}" = set; then
3832 enableval="$enable_debug_flag"
3833
3834 if test "$enableval" = yes; then
3835 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3836 else
3837 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3838 fi
3839
3840else
3841
3842 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3850
3851fi;
3852
3853 eval "$ac_cv_use_debug_flag"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_DEBUG_FLAG" = yes; then
3859 echo "$as_me:$LINENO: result: yes" >&5
3860echo "${ECHO_T}yes" >&6
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863echo "${ECHO_T}no" >&6
3864 fi
3865
3866
3867 enablestring=
3868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3869echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3870 no_cache=0
3871 # Check whether --enable-debug_info or --disable-debug_info was given.
3872if test "${enable_debug_info+set}" = set; then
3873 enableval="$enable_debug_info"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3877 else
3878 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3879 fi
3880
3881else
3882
3883 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3891
3892fi;
3893
3894 eval "$ac_cv_use_debug_info"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_DEBUG_INFO" = yes; then
3900 echo "$as_me:$LINENO: result: yes" >&5
3901echo "${ECHO_T}yes" >&6
3902 else
3903 echo "$as_me:$LINENO: result: no" >&5
3904echo "${ECHO_T}no" >&6
3905 fi
3906
3907
3908 enablestring=
3909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3910echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3911 no_cache=0
3912 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3913if test "${enable_debug_gdb+set}" = set; then
3914 enableval="$enable_debug_gdb"
3915
3916 if test "$enableval" = yes; then
3917 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3918 else
3919 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3920 fi
3921
3922else
3923
3924 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3925 if test "x$LINE" != x ; then
3926 eval "DEFAULT_$LINE"
3927 else
3928 no_cache=1
3929 fi
3930
3931 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3932
3933fi;
3934
3935 eval "$ac_cv_use_debug_gdb"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_DEBUG_GDB" = yes; then
3941 echo "$as_me:$LINENO: result: yes" >&5
3942echo "${ECHO_T}yes" >&6
3943 else
3944 echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6
3946 fi
3947
3948
3949 enablestring=
3950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3951echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3952 no_cache=0
3953 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3954if test "${enable_debug_cntxt+set}" = set; then
3955 enableval="$enable_debug_cntxt"
3956
3957 if test "$enableval" = yes; then
3958 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3959 else
3960 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3961 fi
3962
3963else
3964
3965 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3966 if test "x$LINE" != x ; then
3967 eval "DEFAULT_$LINE"
3968 else
3969 no_cache=1
3970 fi
3971
3972 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3973
3974fi;
3975
3976 eval "$ac_cv_use_debug_cntxt"
3977 if test "$no_cache" != 1; then
3978 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3979 fi
3980
3981 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3982 echo "$as_me:$LINENO: result: yes" >&5
3983echo "${ECHO_T}yes" >&6
3984 else
3985 echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987 fi
3988
3989
3990 enablestring=
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3992echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3993 no_cache=0
3994 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3995if test "${enable_mem_tracing+set}" = set; then
3996 enableval="$enable_mem_tracing"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4000 else
4001 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4002 fi
4003
4004else
4005
4006 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4014
4015fi;
4016
4017 eval "$ac_cv_use_mem_tracing"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_MEM_TRACING" = yes; then
4023 echo "$as_me:$LINENO: result: yes" >&5
4024echo "${ECHO_T}yes" >&6
4025 else
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
4028 fi
4029
4030
4031 enablestring=
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4033echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4034 no_cache=0
4035 # Check whether --enable-profile or --disable-profile was given.
4036if test "${enable_profile+set}" = set; then
4037 enableval="$enable_profile"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_profile='wxUSE_PROFILE=yes'
4041 else
4042 ac_cv_use_profile='wxUSE_PROFILE=no'
4043 fi
4044
4045else
4046
4047 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4055
4056fi;
4057
4058 eval "$ac_cv_use_profile"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_PROFILE" = yes; then
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
4066 else
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
4069 fi
4070
4071
4072 enablestring=
4073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4074echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4075 no_cache=0
4076 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4077if test "${enable_no_rtti+set}" = set; then
4078 enableval="$enable_no_rtti"
4079
4080 if test "$enableval" = yes; then
4081 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4082 else
4083 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4084 fi
4085
4086else
4087
4088 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4089 if test "x$LINE" != x ; then
4090 eval "DEFAULT_$LINE"
4091 else
4092 no_cache=1
4093 fi
4094
4095 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4096
4097fi;
4098
4099 eval "$ac_cv_use_no_rtti"
4100 if test "$no_cache" != 1; then
4101 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4102 fi
4103
4104 if test "$wxUSE_NO_RTTI" = yes; then
4105 echo "$as_me:$LINENO: result: yes" >&5
4106echo "${ECHO_T}yes" >&6
4107 else
4108 echo "$as_me:$LINENO: result: no" >&5
4109echo "${ECHO_T}no" >&6
4110 fi
4111
4112
4113 enablestring=
4114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4115echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4116 no_cache=0
4117 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4118if test "${enable_no_exceptions+set}" = set; then
4119 enableval="$enable_no_exceptions"
4120
4121 if test "$enableval" = yes; then
4122 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4123 else
4124 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4125 fi
4126
4127else
4128
4129 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4130 if test "x$LINE" != x ; then
4131 eval "DEFAULT_$LINE"
4132 else
4133 no_cache=1
4134 fi
4135
4136 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4137
4138fi;
4139
4140 eval "$ac_cv_use_no_exceptions"
4141 if test "$no_cache" != 1; then
4142 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4143 fi
4144
4145 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4146 echo "$as_me:$LINENO: result: yes" >&5
4147echo "${ECHO_T}yes" >&6
4148 else
4149 echo "$as_me:$LINENO: result: no" >&5
4150echo "${ECHO_T}no" >&6
4151 fi
4152
4153
4154 enablestring=
4155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4156echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4157 no_cache=0
4158 # Check whether --enable-permissive or --disable-permissive was given.
4159if test "${enable_permissive+set}" = set; then
4160 enableval="$enable_permissive"
4161
4162 if test "$enableval" = yes; then
4163 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4164 else
4165 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4166 fi
4167
4168else
4169
4170 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4171 if test "x$LINE" != x ; then
4172 eval "DEFAULT_$LINE"
4173 else
4174 no_cache=1
4175 fi
4176
4177 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4178
4179fi;
4180
4181 eval "$ac_cv_use_permissive"
4182 if test "$no_cache" != 1; then
4183 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4184 fi
4185
4186 if test "$wxUSE_PERMISSIVE" = yes; then
4187 echo "$as_me:$LINENO: result: yes" >&5
4188echo "${ECHO_T}yes" >&6
4189 else
4190 echo "$as_me:$LINENO: result: no" >&5
4191echo "${ECHO_T}no" >&6
4192 fi
4193
4194
4195 enablestring=
4196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4197echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4198 no_cache=0
4199 # Check whether --enable-no_deps or --disable-no_deps was given.
4200if test "${enable_no_deps+set}" = set; then
4201 enableval="$enable_no_deps"
4202
4203 if test "$enableval" = yes; then
4204 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4205 else
4206 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4207 fi
4208
4209else
4210
4211 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4212 if test "x$LINE" != x ; then
4213 eval "DEFAULT_$LINE"
4214 else
4215 no_cache=1
4216 fi
4217
4218 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4219
4220fi;
4221
4222 eval "$ac_cv_use_no_deps"
4223 if test "$no_cache" != 1; then
4224 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4225 fi
4226
4227 if test "$wxUSE_NO_DEPS" = yes; then
4228 echo "$as_me:$LINENO: result: yes" >&5
4229echo "${ECHO_T}yes" >&6
4230 else
4231 echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6
4233 fi
4234
4235
7afc46ab
KO
4236 enablestring=
4237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4238echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4239 no_cache=0
4240 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4241if test "${enable_universal_binary+set}" = set; then
4242 enableval="$enable_universal_binary"
4243
4244 if test "$enableval" = yes; then
4245 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4246 else
4247 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4248 fi
4249
4250else
4251
4252 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4253 if test "x$LINE" != x ; then
4254 eval "DEFAULT_$LINE"
4255 else
4256 no_cache=1
4257 fi
4258
4259 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4260
4261fi;
4262
4263 eval "$ac_cv_use_universal_binary"
4264 if test "$no_cache" != 1; then
4265 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4266 fi
4267
4268 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4269 echo "$as_me:$LINENO: result: yes" >&5
4270echo "${ECHO_T}yes" >&6
4271 else
4272 echo "$as_me:$LINENO: result: no" >&5
4273echo "${ECHO_T}no" >&6
4274 fi
4275
4276
a848cd7e 4277
dee1a63f
MB
4278 enablestring=enable
4279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4280echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4281 no_cache=0
dee1a63f
MB
4282 # Check whether --enable-compat24 or --disable-compat24 was given.
4283if test "${enable_compat24+set}" = set; then
4284 enableval="$enable_compat24"
a848cd7e
SC
4285
4286 if test "$enableval" = yes; then
dee1a63f 4287 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4288 else
dee1a63f 4289 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4290 fi
4291
4292else
4293
dee1a63f 4294 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4295 if test "x$LINE" != x ; then
4296 eval "DEFAULT_$LINE"
4297 else
4298 no_cache=1
4299 fi
4300
dee1a63f 4301 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4302
4303fi;
4304
dee1a63f 4305 eval "$ac_cv_use_compat24"
a848cd7e 4306 if test "$no_cache" != 1; then
dee1a63f 4307 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4308 fi
4309
dee1a63f 4310 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4311 echo "$as_me:$LINENO: result: yes" >&5
4312echo "${ECHO_T}yes" >&6
4313 else
4314 echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
4316 fi
4317
4318
4319 enablestring=disable
dee1a63f
MB
4320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4321echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4322 no_cache=0
dee1a63f
MB
4323 # Check whether --enable-compat26 or --disable-compat26 was given.
4324if test "${enable_compat26+set}" = set; then
4325 enableval="$enable_compat26"
a848cd7e
SC
4326
4327 if test "$enableval" = yes; then
dee1a63f 4328 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4329 else
dee1a63f 4330 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4331 fi
4332
4333else
4334
dee1a63f 4335 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
dee1a63f 4342 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4343
4344fi;
4345
dee1a63f 4346 eval "$ac_cv_use_compat26"
a848cd7e 4347 if test "$no_cache" != 1; then
dee1a63f 4348 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4349 fi
4350
dee1a63f 4351 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4352 echo "$as_me:$LINENO: result: yes" >&5
4353echo "${ECHO_T}yes" >&6
4354 else
4355 echo "$as_me:$LINENO: result: no" >&5
4356echo "${ECHO_T}no" >&6
4357 fi
4358
4359
ffa0583f
RL
4360
4361 enablestring=
4362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4363echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4364 no_cache=0
4365 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4366if test "${enable_rpath+set}" = set; then
4367 enableval="$enable_rpath"
ffa0583f
RL
4368
4369 if test "$enableval" = yes; then
4370 ac_cv_use_rpath='wxUSE_RPATH=yes'
4371 else
4372 ac_cv_use_rpath='wxUSE_RPATH=no'
4373 fi
4374
4375else
4376
4377 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
4384 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4385
a848cd7e
SC
4386fi;
4387
ffa0583f
RL
4388 eval "$ac_cv_use_rpath"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_RPATH" = yes; then
4394 echo "$as_me:$LINENO: result: yes" >&5
4395echo "${ECHO_T}yes" >&6
4396 else
4397 echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
4399 fi
4400
a848cd7e
SC
4401
4402
4403
4404
4405 enablestring=
4406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4407echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4408 no_cache=0
4409 # Check whether --enable-intl or --disable-intl was given.
4410if test "${enable_intl+set}" = set; then
4411 enableval="$enable_intl"
4412
4413 if test "$enableval" = yes; then
4414 ac_cv_use_intl='wxUSE_INTL=yes'
4415 else
4416 ac_cv_use_intl='wxUSE_INTL=no'
4417 fi
4418
4419else
4420
4421 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4422 if test "x$LINE" != x ; then
4423 eval "DEFAULT_$LINE"
4424 else
4425 no_cache=1
4426 fi
4427
4428 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4429
4430fi;
4431
4432 eval "$ac_cv_use_intl"
4433 if test "$no_cache" != 1; then
4434 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4435 fi
4436
4437 if test "$wxUSE_INTL" = yes; then
4438 echo "$as_me:$LINENO: result: yes" >&5
4439echo "${ECHO_T}yes" >&6
4440 else
4441 echo "$as_me:$LINENO: result: no" >&5
4442echo "${ECHO_T}no" >&6
4443 fi
4444
4445
4446 enablestring=
4447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4448echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4449 no_cache=0
4450 # Check whether --enable-config or --disable-config was given.
4451if test "${enable_config+set}" = set; then
4452 enableval="$enable_config"
4453
4454 if test "$enableval" = yes; then
4455 ac_cv_use_config='wxUSE_CONFIG=yes'
4456 else
4457 ac_cv_use_config='wxUSE_CONFIG=no'
4458 fi
4459
4460else
4461
4462 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4463 if test "x$LINE" != x ; then
4464 eval "DEFAULT_$LINE"
4465 else
4466 no_cache=1
4467 fi
4468
4469 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4470
4471fi;
4472
4473 eval "$ac_cv_use_config"
4474 if test "$no_cache" != 1; then
4475 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4476 fi
4477
4478 if test "$wxUSE_CONFIG" = yes; then
4479 echo "$as_me:$LINENO: result: yes" >&5
4480echo "${ECHO_T}yes" >&6
4481 else
4482 echo "$as_me:$LINENO: result: no" >&5
4483echo "${ECHO_T}no" >&6
4484 fi
4485
4486
4487
4488 enablestring=
4489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4490echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4491 no_cache=0
4492 # Check whether --enable-protocols or --disable-protocols was given.
4493if test "${enable_protocols+set}" = set; then
4494 enableval="$enable_protocols"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4498 else
4499 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4512
4513fi;
4514
4515 eval "$ac_cv_use_protocols"
4516 if test "$no_cache" != 1; then
4517 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4518 fi
4519
4520 if test "$wxUSE_PROTOCOL" = yes; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523 else
4524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
4526 fi
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-ftp or --disable-ftp was given.
4534if test "${enable_ftp+set}" = set; then
4535 enableval="$enable_ftp"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4539 else
4540 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4553
4554fi;
4555
4556 eval "$ac_cv_use_ftp"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570 enablestring=
4571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4572echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4573 no_cache=0
4574 # Check whether --enable-http or --disable-http was given.
4575if test "${enable_http+set}" = set; then
4576 enableval="$enable_http"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4580 else
4581 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4594
4595fi;
4596
4597 eval "$ac_cv_use_http"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4603 echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608 fi
4609
4610
4611 enablestring=
4612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4613echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4614 no_cache=0
4615 # Check whether --enable-fileproto or --disable-fileproto was given.
4616if test "${enable_fileproto+set}" = set; then
4617 enableval="$enable_fileproto"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4621 else
4622 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4623 fi
4624
4625else
4626
4627 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4635
4636fi;
4637
4638 eval "$ac_cv_use_fileproto"
4639 if test "$no_cache" != 1; then
4640 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4641 fi
4642
4643 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645echo "${ECHO_T}yes" >&6
4646 else
4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
4649 fi
4650
4651
4652 enablestring=
4653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4654echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4655 no_cache=0
4656 # Check whether --enable-sockets or --disable-sockets was given.
4657if test "${enable_sockets+set}" = set; then
4658 enableval="$enable_sockets"
4659
4660 if test "$enableval" = yes; then
4661 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4662 else
4663 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4664 fi
4665
4666else
4667
4668 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4676
4677fi;
4678
4679 eval "$ac_cv_use_sockets"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_SOCKETS" = yes; then
4685 echo "$as_me:$LINENO: result: yes" >&5
4686echo "${ECHO_T}yes" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6
4690 fi
4691
4692
4693 enablestring=
4694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4695echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4696 no_cache=0
4697 # Check whether --enable-ole or --disable-ole was given.
4698if test "${enable_ole+set}" = set; then
4699 enableval="$enable_ole"
4700
4701 if test "$enableval" = yes; then
4702 ac_cv_use_ole='wxUSE_OLE=yes'
4703 else
4704 ac_cv_use_ole='wxUSE_OLE=no'
4705 fi
4706
4707else
4708
4709 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 else
4713 no_cache=1
4714 fi
4715
4716 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4717
4718fi;
4719
4720 eval "$ac_cv_use_ole"
4721 if test "$no_cache" != 1; then
4722 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4723 fi
4724
4725 if test "$wxUSE_OLE" = yes; then
4726 echo "$as_me:$LINENO: result: yes" >&5
4727echo "${ECHO_T}yes" >&6
4728 else
4729 echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6
4731 fi
4732
4733
4734 enablestring=
4735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4736echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4737 no_cache=0
4738 # Check whether --enable-dataobj or --disable-dataobj was given.
4739if test "${enable_dataobj+set}" = set; then
4740 enableval="$enable_dataobj"
4741
4742 if test "$enableval" = yes; then
4743 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4744 else
4745 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4746 fi
4747
4748else
4749
4750 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4751 if test "x$LINE" != x ; then
4752 eval "DEFAULT_$LINE"
4753 else
4754 no_cache=1
4755 fi
4756
4757 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4758
4759fi;
4760
4761 eval "$ac_cv_use_dataobj"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_DATAOBJ" = yes; then
4767 echo "$as_me:$LINENO: result: yes" >&5
4768echo "${ECHO_T}yes" >&6
4769 else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772 fi
4773
4774
4775
4776 enablestring=
4777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4778echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4779 no_cache=0
4780 # Check whether --enable-ipc or --disable-ipc was given.
4781if test "${enable_ipc+set}" = set; then
4782 enableval="$enable_ipc"
4783
4784 if test "$enableval" = yes; then
4785 ac_cv_use_ipc='wxUSE_IPC=yes'
4786 else
4787 ac_cv_use_ipc='wxUSE_IPC=no'
4788 fi
4789
4790else
4791
4792 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4793 if test "x$LINE" != x ; then
4794 eval "DEFAULT_$LINE"
4795 else
4796 no_cache=1
4797 fi
4798
4799 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4800
4801fi;
4802
4803 eval "$ac_cv_use_ipc"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_IPC" = yes; then
4809 echo "$as_me:$LINENO: result: yes" >&5
4810echo "${ECHO_T}yes" >&6
4811 else
4812 echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6
4814 fi
4815
4816
4817
4818 enablestring=
4819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4820echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4821 no_cache=0
4822 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4823if test "${enable_apple_ieee+set}" = set; then
4824 enableval="$enable_apple_ieee"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4828 else
4829 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4842
4843fi;
4844
4845 eval "$ac_cv_use_apple_ieee"
4846 if test "$no_cache" != 1; then
4847 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4848 fi
4849
4850 if test "$wxUSE_APPLE_IEEE" = yes; then
4851 echo "$as_me:$LINENO: result: yes" >&5
4852echo "${ECHO_T}yes" >&6
4853 else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856 fi
4857
4858
81f90336
MW
4859 enablestring=
4860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4861echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4862 no_cache=0
4863 # Check whether --enable-arcstream or --disable-arcstream was given.
4864if test "${enable_arcstream+set}" = set; then
4865 enableval="$enable_arcstream"
4866
4867 if test "$enableval" = yes; then
9e8e867f 4868 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4869 else
9e8e867f 4870 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4871 fi
4872
4873else
4874
9e8e867f 4875 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
9e8e867f 4882 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4883
4884fi;
4885
4886 eval "$ac_cv_use_arcstream"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4889 fi
4890
9e8e867f 4891 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4892 echo "$as_me:$LINENO: result: yes" >&5
4893echo "${ECHO_T}yes" >&6
4894 else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897 fi
4898
4899
a848cd7e 4900 enablestring=
36b6448c
VZ
4901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4902echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4903 no_cache=0
36b6448c
VZ
4904 # Check whether --enable-backtrace or --disable-backtrace was given.
4905if test "${enable_backtrace+set}" = set; then
4906 enableval="$enable_backtrace"
a848cd7e
SC
4907
4908 if test "$enableval" = yes; then
36b6448c 4909 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4910 else
36b6448c 4911 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4912 fi
4913
4914else
4915
36b6448c 4916 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
36b6448c 4923 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4924
4925fi;
4926
36b6448c 4927 eval "$ac_cv_use_backtrace"
a848cd7e 4928 if test "$no_cache" != 1; then
36b6448c 4929 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4930 fi
4931
36b6448c 4932 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4933 echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6
4935 else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938 fi
4939
4940
eaff0f0d 4941 enablestring=
36b6448c
VZ
4942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4943echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4944 no_cache=0
36b6448c
VZ
4945 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4946if test "${enable_catch_segvs+set}" = set; then
4947 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4948
4949 if test "$enableval" = yes; then
36b6448c 4950 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4951 else
36b6448c 4952 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4953 fi
4954
4955else
4956
36b6448c 4957 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
36b6448c 4964 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4965
4966fi;
4967
36b6448c 4968 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4969 if test "$no_cache" != 1; then
36b6448c 4970 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4971 fi
4972
36b6448c 4973 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4974 echo "$as_me:$LINENO: result: yes" >&5
4975echo "${ECHO_T}yes" >&6
4976 else
4977 echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6
4979 fi
4980
4981
a848cd7e
SC
4982 enablestring=
4983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4984echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4985 no_cache=0
4986 # Check whether --enable-cmdline or --disable-cmdline was given.
4987if test "${enable_cmdline+set}" = set; then
4988 enableval="$enable_cmdline"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4992 else
4993 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4994 fi
4995
4996else
4997
4998 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5006
5007fi;
5008
5009 eval "$ac_cv_use_cmdline"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5015 echo "$as_me:$LINENO: result: yes" >&5
5016echo "${ECHO_T}yes" >&6
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019echo "${ECHO_T}no" >&6
5020 fi
5021
5022
5023 enablestring=
5024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5025echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5026 no_cache=0
5027 # Check whether --enable-datetime or --disable-datetime was given.
5028if test "${enable_datetime+set}" = set; then
5029 enableval="$enable_datetime"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5033 else
5034 ac_cv_use_datetime='wxUSE_DATETIME=no'
5035 fi
5036
5037else
5038
5039 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5047
5048fi;
5049
5050 eval "$ac_cv_use_datetime"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_DATETIME" = yes; then
5056 echo "$as_me:$LINENO: result: yes" >&5
5057echo "${ECHO_T}yes" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061 fi
5062
5063
36b6448c
VZ
5064 enablestring=
5065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5066echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5067 no_cache=0
5068 # Check whether --enable-debugreport or --disable-debugreport was given.
5069if test "${enable_debugreport+set}" = set; then
5070 enableval="$enable_debugreport"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5074 else
5075 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5076 fi
5077
5078else
5079
5080 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5088
5089fi;
5090
5091 eval "$ac_cv_use_debugreport"
5092 if test "$no_cache" != 1; then
5093 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5094 fi
5095
5096 if test "$wxUSE_DEBUGREPORT" = yes; then
5097 echo "$as_me:$LINENO: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
5099 else
5100 echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102 fi
5103
5104
a848cd7e
SC
5105 enablestring=
5106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5107echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5108 no_cache=0
5109 # Check whether --enable-dialupman or --disable-dialupman was given.
5110if test "${enable_dialupman+set}" = set; then
5111 enableval="$enable_dialupman"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5115 else
5116 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5129
5130fi;
5131
5132 eval "$ac_cv_use_dialupman"
5133 if test "$no_cache" != 1; then
5134 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5135 fi
5136
5137 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5138 echo "$as_me:$LINENO: result: yes" >&5
5139echo "${ECHO_T}yes" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
5143 fi
5144
5145
5146 enablestring=
5147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5148echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5149 no_cache=0
5150 # Check whether --enable-dynlib or --disable-dynlib was given.
5151if test "${enable_dynlib+set}" = set; then
5152 enableval="$enable_dynlib"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5156 else
5157 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5158 fi
5159
5160else
5161
5162 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5170
5171fi;
5172
5173 eval "$ac_cv_use_dynlib"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5179 echo "$as_me:$LINENO: result: yes" >&5
5180echo "${ECHO_T}yes" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184 fi
5185
5186
5187 enablestring=
5188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5189echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5190 no_cache=0
5191 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5192if test "${enable_dynamicloader+set}" = set; then
5193 enableval="$enable_dynamicloader"
5194
5195 if test "$enableval" = yes; then
5196 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5197 else
5198 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5199 fi
5200
5201else
5202
5203 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5204 if test "x$LINE" != x ; then
5205 eval "DEFAULT_$LINE"
5206 else
5207 no_cache=1
5208 fi
5209
5210 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5211
5212fi;
5213
5214 eval "$ac_cv_use_dynamicloader"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5220 echo "$as_me:$LINENO: result: yes" >&5
5221echo "${ECHO_T}yes" >&6
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225 fi
5226
5227
5228 enablestring=
5229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5230echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5231 no_cache=0
5232 # Check whether --enable-exceptions or --disable-exceptions was given.
5233if test "${enable_exceptions+set}" = set; then
5234 enableval="$enable_exceptions"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5238 else
5239 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5240 fi
5241
5242else
5243
5244 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5252
5253fi;
5254
5255 eval "$ac_cv_use_exceptions"
5256 if test "$no_cache" != 1; then
5257 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5258 fi
5259
5260 if test "$wxUSE_EXCEPTIONS" = yes; then
5261 echo "$as_me:$LINENO: result: yes" >&5
5262echo "${ECHO_T}yes" >&6
5263 else
5264 echo "$as_me:$LINENO: result: no" >&5
5265echo "${ECHO_T}no" >&6
5266 fi
5267
5268
5269 enablestring=
5270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5271echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5272 no_cache=0
5273 # Check whether --enable-ffile or --disable-ffile was given.
5274if test "${enable_ffile+set}" = set; then
5275 enableval="$enable_ffile"
5276
5277 if test "$enableval" = yes; then
5278 ac_cv_use_ffile='wxUSE_FFILE=yes'
5279 else
5280 ac_cv_use_ffile='wxUSE_FFILE=no'
5281 fi
5282
5283else
5284
5285 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5286 if test "x$LINE" != x ; then
5287 eval "DEFAULT_$LINE"
5288 else
5289 no_cache=1
5290 fi
5291
5292 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5293
5294fi;
5295
5296 eval "$ac_cv_use_ffile"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_FFILE" = yes; then
5302 echo "$as_me:$LINENO: result: yes" >&5
5303echo "${ECHO_T}yes" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306echo "${ECHO_T}no" >&6
5307 fi
5308
5309
5310 enablestring=
5311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5312echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5313 no_cache=0
5314 # Check whether --enable-file or --disable-file was given.
5315if test "${enable_file+set}" = set; then
5316 enableval="$enable_file"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_file='wxUSE_FILE=yes'
5320 else
5321 ac_cv_use_file='wxUSE_FILE=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5334
5335fi;
5336
5337 eval "$ac_cv_use_file"
5338 if test "$no_cache" != 1; then
5339 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5340 fi
5341
5342 if test "$wxUSE_FILE" = yes; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344echo "${ECHO_T}yes" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348 fi
5349
5350
5351 enablestring=
5352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5353echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5354 no_cache=0
5355 # Check whether --enable-filesystem or --disable-filesystem was given.
5356if test "${enable_filesystem+set}" = set; then
5357 enableval="$enable_filesystem"
5358
5359 if test "$enableval" = yes; then
5360 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5361 else
5362 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5363 fi
5364
5365else
5366
5367 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5368 if test "x$LINE" != x ; then
5369 eval "DEFAULT_$LINE"
5370 else
5371 no_cache=1
5372 fi
5373
5374 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5375
5376fi;
5377
5378 eval "$ac_cv_use_filesystem"
5379 if test "$no_cache" != 1; then
5380 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5381 fi
5382
5383 if test "$wxUSE_FILESYSTEM" = yes; then
5384 echo "$as_me:$LINENO: result: yes" >&5
5385echo "${ECHO_T}yes" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389 fi
5390
5391
5392 enablestring=
5393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5394echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5395 no_cache=0
5396 # Check whether --enable-fontmap or --disable-fontmap was given.
5397if test "${enable_fontmap+set}" = set; then
5398 enableval="$enable_fontmap"
5399
5400 if test "$enableval" = yes; then
5401 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5402 else
5403 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5404 fi
5405
5406else
5407
5408 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5409 if test "x$LINE" != x ; then
5410 eval "DEFAULT_$LINE"
5411 else
5412 no_cache=1
5413 fi
5414
5415 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5416
5417fi;
5418
5419 eval "$ac_cv_use_fontmap"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_FONTMAP" = yes; then
5425 echo "$as_me:$LINENO: result: yes" >&5
5426echo "${ECHO_T}yes" >&6
5427 else
5428 echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6
5430 fi
5431
5432
5433 enablestring=
5434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5435echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5436 no_cache=0
5437 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5438if test "${enable_fs_inet+set}" = set; then
5439 enableval="$enable_fs_inet"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5443 else
5444 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5445 fi
5446
5447else
5448
5449 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5457
5458fi;
5459
5460 eval "$ac_cv_use_fs_inet"
5461 if test "$no_cache" != 1; then
5462 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5463 fi
5464
5465 if test "$wxUSE_FS_INET" = yes; then
5466 echo "$as_me:$LINENO: result: yes" >&5
5467echo "${ECHO_T}yes" >&6
5468 else
5469 echo "$as_me:$LINENO: result: no" >&5
5470echo "${ECHO_T}no" >&6
5471 fi
5472
5473
5474 enablestring=
5475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5476echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5477 no_cache=0
5478 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5479if test "${enable_fs_zip+set}" = set; then
5480 enableval="$enable_fs_zip"
5481
5482 if test "$enableval" = yes; then
5483 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5484 else
5485 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5486 fi
5487
5488else
5489
5490 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5498
5499fi;
5500
5501 eval "$ac_cv_use_fs_zip"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_FS_ZIP" = yes; then
5507 echo "$as_me:$LINENO: result: yes" >&5
5508echo "${ECHO_T}yes" >&6
5509 else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512 fi
5513
5514
5515 enablestring=
5516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5517echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5518 no_cache=0
5519 # Check whether --enable-geometry or --disable-geometry was given.
5520if test "${enable_geometry+set}" = set; then
5521 enableval="$enable_geometry"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5525 else
5526 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5527 fi
5528
5529else
5530
5531 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5539
5540fi;
5541
5542 eval "$ac_cv_use_geometry"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_GEOMETRY" = yes; then
5548 echo "$as_me:$LINENO: result: yes" >&5
5549echo "${ECHO_T}yes" >&6
5550 else
5551 echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6
5553 fi
5554
5555
5556 enablestring=
5557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5558echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5559 no_cache=0
5560 # Check whether --enable-log or --disable-log was given.
5561if test "${enable_log+set}" = set; then
5562 enableval="$enable_log"
5563
5564 if test "$enableval" = yes; then
5565 ac_cv_use_log='wxUSE_LOG=yes'
5566 else
5567 ac_cv_use_log='wxUSE_LOG=no'
5568 fi
5569
5570else
5571
5572 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
5579 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5580
5581fi;
5582
5583 eval "$ac_cv_use_log"
5584 if test "$no_cache" != 1; then
5585 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5586 fi
5587
5588 if test "$wxUSE_LOG" = yes; then
5589 echo "$as_me:$LINENO: result: yes" >&5
5590echo "${ECHO_T}yes" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594 fi
5595
5596
5597 enablestring=
5598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5599echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5600 no_cache=0
5601 # Check whether --enable-longlong or --disable-longlong was given.
5602if test "${enable_longlong+set}" = set; then
5603 enableval="$enable_longlong"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5607 else
5608 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5609 fi
5610
5611else
5612
5613 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5621
5622fi;
5623
5624 eval "$ac_cv_use_longlong"
5625 if test "$no_cache" != 1; then
5626 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5627 fi
5628
5629 if test "$wxUSE_LONGLONG" = yes; then
5630 echo "$as_me:$LINENO: result: yes" >&5
5631echo "${ECHO_T}yes" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635 fi
5636
5637
5638 enablestring=
5639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5640echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5641 no_cache=0
5642 # Check whether --enable-mimetype or --disable-mimetype was given.
5643if test "${enable_mimetype+set}" = set; then
5644 enableval="$enable_mimetype"
5645
5646 if test "$enableval" = yes; then
5647 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5648 else
5649 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5650 fi
5651
5652else
5653
5654 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5655 if test "x$LINE" != x ; then
5656 eval "DEFAULT_$LINE"
5657 else
5658 no_cache=1
5659 fi
5660
5661 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5662
5663fi;
5664
5665 eval "$ac_cv_use_mimetype"
5666 if test "$no_cache" != 1; then
5667 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5668 fi
5669
5670 if test "$wxUSE_MIMETYPE" = yes; then
5671 echo "$as_me:$LINENO: result: yes" >&5
5672echo "${ECHO_T}yes" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676 fi
5677
5678
5679 enablestring=
5680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5681echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5682 no_cache=0
5683 # Check whether --enable-mslu or --disable-mslu was given.
5684if test "${enable_mslu+set}" = set; then
5685 enableval="$enable_mslu"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5689 else
5690 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5691 fi
5692
5693else
5694
5695 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5703
5704fi;
5705
5706 eval "$ac_cv_use_mslu"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_UNICODE_MSLU" = yes; then
5712 echo "$as_me:$LINENO: result: yes" >&5
5713echo "${ECHO_T}yes" >&6
5714 else
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717 fi
5718
5719
5720 enablestring=
5721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5722echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5723 no_cache=0
5724 # Check whether --enable-snglinst or --disable-snglinst was given.
5725if test "${enable_snglinst+set}" = set; then
5726 enableval="$enable_snglinst"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5730 else
5731 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5732 fi
5733
5734else
5735
5736 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5744
5745fi;
5746
5747 eval "$ac_cv_use_snglinst"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5753 echo "$as_me:$LINENO: result: yes" >&5
5754echo "${ECHO_T}yes" >&6
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758 fi
5759
5760
5761 enablestring=
07158944
VZ
5762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5763echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5764 no_cache=0
07158944
VZ
5765 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5766if test "${enable_std_iostreams+set}" = set; then
5767 enableval="$enable_std_iostreams"
a848cd7e
SC
5768
5769 if test "$enableval" = yes; then
07158944 5770 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5771 else
07158944 5772 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5773 fi
5774
5775else
5776
07158944 5777 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5778 if test "x$LINE" != x ; then
5779 eval "DEFAULT_$LINE"
5780 else
5781 no_cache=1
5782 fi
5783
07158944 5784 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5785
5786fi;
5787
07158944 5788 eval "$ac_cv_use_std_iostreams"
a848cd7e 5789 if test "$no_cache" != 1; then
07158944 5790 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5791 fi
5792
07158944 5793 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5794 echo "$as_me:$LINENO: result: yes" >&5
5795echo "${ECHO_T}yes" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799 fi
5800
5801
59746b65
MW
5802 enablestring=
5803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5804echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5805 no_cache=0
5806 # Check whether --enable-std_string or --disable-std_string was given.
5807if test "${enable_std_string+set}" = set; then
5808 enableval="$enable_std_string"
5809
5810 if test "$enableval" = yes; then
5811 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5812 else
5813 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5814 fi
5815
5816else
5817
5818 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5819 if test "x$LINE" != x ; then
5820 eval "DEFAULT_$LINE"
5821 else
5822 no_cache=1
5823 fi
5824
5825 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5826
5827fi;
5828
5829 eval "$ac_cv_use_std_string"
5830 if test "$no_cache" != 1; then
5831 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5832 fi
5833
5834 if test "$wxUSE_STD_STRING" = yes; then
5835 echo "$as_me:$LINENO: result: yes" >&5
5836echo "${ECHO_T}yes" >&6
5837 else
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840 fi
5841
5842
a848cd7e 5843 enablestring=
07158944
VZ
5844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5845echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5846 no_cache=0
07158944
VZ
5847 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5848if test "${enable_stdpaths+set}" = set; then
5849 enableval="$enable_stdpaths"
a848cd7e
SC
5850
5851 if test "$enableval" = yes; then
07158944 5852 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5853 else
07158944 5854 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5855 fi
5856
5857else
5858
07158944 5859 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
07158944 5866 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5867
5868fi;
5869
07158944 5870 eval "$ac_cv_use_stdpaths"
a848cd7e 5871 if test "$no_cache" != 1; then
07158944 5872 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5873 fi
5874
07158944 5875 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5876 echo "$as_me:$LINENO: result: yes" >&5
5877echo "${ECHO_T}yes" >&6
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881 fi
5882
5883
5884 enablestring=
5885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5886echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5887 no_cache=0
5888 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5889if test "${enable_stopwatch+set}" = set; then
5890 enableval="$enable_stopwatch"
5891
5892 if test "$enableval" = yes; then
5893 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5894 else
5895 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5896 fi
5897
5898else
5899
5900 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5901 if test "x$LINE" != x ; then
5902 eval "DEFAULT_$LINE"
5903 else
5904 no_cache=1
5905 fi
5906
5907 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5908
5909fi;
5910
5911 eval "$ac_cv_use_stopwatch"
5912 if test "$no_cache" != 1; then
5913 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5914 fi
5915
5916 if test "$wxUSE_STOPWATCH" = yes; then
5917 echo "$as_me:$LINENO: result: yes" >&5
5918echo "${ECHO_T}yes" >&6
5919 else
5920 echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6
5922 fi
5923
5924
07158944
VZ
5925 enablestring=
5926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5927echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5928 no_cache=0
5929 # Check whether --enable-streams or --disable-streams was given.
5930if test "${enable_streams+set}" = set; then
5931 enableval="$enable_streams"
5932
5933 if test "$enableval" = yes; then
5934 ac_cv_use_streams='wxUSE_STREAMS=yes'
5935 else
5936 ac_cv_use_streams='wxUSE_STREAMS=no'
5937 fi
5938
5939else
5940
5941 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5942 if test "x$LINE" != x ; then
5943 eval "DEFAULT_$LINE"
5944 else
5945 no_cache=1
5946 fi
5947
5948 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5949
5950fi;
5951
5952 eval "$ac_cv_use_streams"
5953 if test "$no_cache" != 1; then
5954 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5955 fi
5956
5957 if test "$wxUSE_STREAMS" = yes; then
5958 echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6
5960 else
5961 echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6
5963 fi
5964
5965
a848cd7e
SC
5966 enablestring=
5967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5968echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5969 no_cache=0
5970 # Check whether --enable-system_options or --disable-system_options was given.
5971if test "${enable_system_options+set}" = set; then
5972 enableval="$enable_system_options"
5973
5974 if test "$enableval" = yes; then
5975 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5976 else
5977 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5978 fi
5979
5980else
5981
5982 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5990
5991fi;
5992
5993 eval "$ac_cv_use_system_options"
5994 if test "$no_cache" != 1; then
5995 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5996 fi
5997
5998 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5999 echo "$as_me:$LINENO: result: yes" >&5
6000echo "${ECHO_T}yes" >&6
6001 else
6002 echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6
6004 fi
6005
6006
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6009echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-textbuf or --disable-textbuf was given.
6012if test "${enable_textbuf+set}" = set; then
6013 enableval="$enable_textbuf"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6017 else
6018 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6019 fi
6020
6021else
6022
6023 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6031
6032fi;
6033
6034 eval "$ac_cv_use_textbuf"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_TEXTBUFFER" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045 fi
6046
6047
6048 enablestring=
6049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6050echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6051 no_cache=0
6052 # Check whether --enable-textfile or --disable-textfile was given.
6053if test "${enable_textfile+set}" = set; then
6054 enableval="$enable_textfile"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6058 else
6059 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6060 fi
6061
6062else
6063
6064 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6072
6073fi;
6074
6075 eval "$ac_cv_use_textfile"
6076 if test "$no_cache" != 1; then
6077 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6078 fi
6079
6080 if test "$wxUSE_TEXTFILE" = yes; then
6081 echo "$as_me:$LINENO: result: yes" >&5
6082echo "${ECHO_T}yes" >&6
6083 else
6084 echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086 fi
6087
6088
6089 enablestring=
6090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6091echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6092 no_cache=0
6093 # Check whether --enable-timer or --disable-timer was given.
6094if test "${enable_timer+set}" = set; then
6095 enableval="$enable_timer"
6096
6097 if test "$enableval" = yes; then
6098 ac_cv_use_timer='wxUSE_TIMER=yes'
6099 else
6100 ac_cv_use_timer='wxUSE_TIMER=no'
6101 fi
6102
6103else
6104
6105 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6106 if test "x$LINE" != x ; then
6107 eval "DEFAULT_$LINE"
6108 else
6109 no_cache=1
6110 fi
6111
6112 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6113
6114fi;
6115
6116 eval "$ac_cv_use_timer"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_TIMER" = yes; then
6122 echo "$as_me:$LINENO: result: yes" >&5
6123echo "${ECHO_T}yes" >&6
6124 else
6125 echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6
6127 fi
6128
6129
6130 enablestring=
6131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6132echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6133 no_cache=0
6134 # Check whether --enable-unicode or --disable-unicode was given.
6135if test "${enable_unicode+set}" = set; then
6136 enableval="$enable_unicode"
6137
6138 if test "$enableval" = yes; then
6139 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6140 else
6141 ac_cv_use_unicode='wxUSE_UNICODE=no'
6142 fi
6143
6144else
6145
6146 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6147 if test "x$LINE" != x ; then
6148 eval "DEFAULT_$LINE"
6149 else
6150 no_cache=1
6151 fi
6152
6153 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6154
6155fi;
6156
6157 eval "$ac_cv_use_unicode"
6158 if test "$no_cache" != 1; then
6159 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6160 fi
6161
6162 if test "$wxUSE_UNICODE" = yes; then
6163 echo "$as_me:$LINENO: result: yes" >&5
6164echo "${ECHO_T}yes" >&6
6165 else
6166 echo "$as_me:$LINENO: result: no" >&5
6167echo "${ECHO_T}no" >&6
6168 fi
6169
6170
6171 enablestring=
6172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6173echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6174 no_cache=0
6175 # Check whether --enable-sound or --disable-sound was given.
6176if test "${enable_sound+set}" = set; then
6177 enableval="$enable_sound"
6178
6179 if test "$enableval" = yes; then
6180 ac_cv_use_sound='wxUSE_SOUND=yes'
6181 else
6182 ac_cv_use_sound='wxUSE_SOUND=no'
6183 fi
6184
6185else
6186
6187 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6188 if test "x$LINE" != x ; then
6189 eval "DEFAULT_$LINE"
6190 else
6191 no_cache=1
6192 fi
6193
6194 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6195
6196fi;
6197
6198 eval "$ac_cv_use_sound"
6199 if test "$no_cache" != 1; then
6200 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6201 fi
6202
6203 if test "$wxUSE_SOUND" = yes; then
6204 echo "$as_me:$LINENO: result: yes" >&5
6205echo "${ECHO_T}yes" >&6
6206 else
6207 echo "$as_me:$LINENO: result: no" >&5
6208echo "${ECHO_T}no" >&6
6209 fi
6210
6211
3b57de8b
RL
6212 enablestring=
6213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6214echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6215 no_cache=0
6216 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6217if test "${enable_mediactrl+set}" = set; then
6218 enableval="$enable_mediactrl"
6219
6220 if test "$enableval" = yes; then
6221 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6222 else
6223 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6224 fi
6225
6226else
6227
6228 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6229 if test "x$LINE" != x ; then
6230 eval "DEFAULT_$LINE"
6231 else
6232 no_cache=1
6233 fi
6234
6235 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6236
6237fi;
6238
6239 eval "$ac_cv_use_mediactrl"
6240 if test "$no_cache" != 1; then
6241 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6242 fi
6243
6244 if test "$wxUSE_MEDIACTRL" = yes; then
6245 echo "$as_me:$LINENO: result: yes" >&5
6246echo "${ECHO_T}yes" >&6
6247 else
6248 echo "$as_me:$LINENO: result: no" >&5
6249echo "${ECHO_T}no" >&6
6250 fi
6251
6252
f10e38c4
VZ
6253 enablestring=
6254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6255echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6256 no_cache=0
6257 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6258if test "${enable_gstreamer8+set}" = set; then
6259 enableval="$enable_gstreamer8"
6260
6261 if test "$enableval" = yes; then
6262 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6263 else
6264 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6265 fi
6266
6267else
6268
6269 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6270 if test "x$LINE" != x ; then
6271 eval "DEFAULT_$LINE"
6272 else
6273 no_cache=1
6274 fi
6275
6276 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6277
6278fi;
6279
6280 eval "$ac_cv_use_gstreamer8"
6281 if test "$no_cache" != 1; then
6282 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6283 fi
6284
6285 if test "$wxUSE_GSTREAMER8" = yes; then
6286 echo "$as_me:$LINENO: result: yes" >&5
6287echo "${ECHO_T}yes" >&6
6288 else
6289 echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6
6291 fi
6292
6293
a848cd7e
SC
6294 enablestring=
6295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6296echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6297 no_cache=0
6298 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6299if test "${enable_wxprintfv+set}" = set; then
6300 enableval="$enable_wxprintfv"
6301
6302 if test "$enableval" = yes; then
6303 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6304 else
6305 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6306 fi
6307
6308else
6309
6310 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6311 if test "x$LINE" != x ; then
6312 eval "DEFAULT_$LINE"
6313 else
6314 no_cache=1
6315 fi
6316
6317 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6318
6319fi;
6320
6321 eval "$ac_cv_use_wxprintfv"
6322 if test "$no_cache" != 1; then
6323 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6324 fi
6325
6326 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6327 echo "$as_me:$LINENO: result: yes" >&5
6328echo "${ECHO_T}yes" >&6
6329 else
6330 echo "$as_me:$LINENO: result: no" >&5
6331echo "${ECHO_T}no" >&6
6332 fi
6333
6334
6335 enablestring=
6336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6337echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6338 no_cache=0
6339 # Check whether --enable-zipstream or --disable-zipstream was given.
6340if test "${enable_zipstream+set}" = set; then
6341 enableval="$enable_zipstream"
6342
6343 if test "$enableval" = yes; then
6344 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6345 else
6346 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6347 fi
6348
6349else
6350
6351 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6352 if test "x$LINE" != x ; then
6353 eval "DEFAULT_$LINE"
6354 else
6355 no_cache=1
6356 fi
6357
6358 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6359
6360fi;
6361
6362 eval "$ac_cv_use_zipstream"
6363 if test "$no_cache" != 1; then
6364 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6365 fi
6366
6367 if test "$wxUSE_ZIPSTREAM" = yes; then
6368 echo "$as_me:$LINENO: result: yes" >&5
6369echo "${ECHO_T}yes" >&6
6370 else
6371 echo "$as_me:$LINENO: result: no" >&5
6372echo "${ECHO_T}no" >&6
6373 fi
6374
6375
a848cd7e
SC
6376
6377 enablestring=
6378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6379echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6380 no_cache=0
6381 # Check whether --enable-url or --disable-url was given.
6382if test "${enable_url+set}" = set; then
6383 enableval="$enable_url"
6384
6385 if test "$enableval" = yes; then
6386 ac_cv_use_url='wxUSE_URL=yes'
6387 else
6388 ac_cv_use_url='wxUSE_URL=no'
6389 fi
6390
6391else
6392
6393 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6394 if test "x$LINE" != x ; then
6395 eval "DEFAULT_$LINE"
6396 else
6397 no_cache=1
6398 fi
6399
6400 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6401
6402fi;
6403
6404 eval "$ac_cv_use_url"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_URL" = yes; then
6410 echo "$as_me:$LINENO: result: yes" >&5
6411echo "${ECHO_T}yes" >&6
6412 else
6413 echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6
6415 fi
6416
6417
6418 enablestring=
6419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6420echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6421 no_cache=0
6422 # Check whether --enable-protocol or --disable-protocol was given.
6423if test "${enable_protocol+set}" = set; then
6424 enableval="$enable_protocol"
6425
6426 if test "$enableval" = yes; then
6427 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6428 else
6429 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6430 fi
6431
6432else
6433
6434 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6435 if test "x$LINE" != x ; then
6436 eval "DEFAULT_$LINE"
6437 else
6438 no_cache=1
6439 fi
6440
6441 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6442
6443fi;
6444
6445 eval "$ac_cv_use_protocol"
6446 if test "$no_cache" != 1; then
6447 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6448 fi
6449
6450 if test "$wxUSE_PROTOCOL" = yes; then
6451 echo "$as_me:$LINENO: result: yes" >&5
6452echo "${ECHO_T}yes" >&6
6453 else
6454 echo "$as_me:$LINENO: result: no" >&5
6455echo "${ECHO_T}no" >&6
6456 fi
6457
6458
6459 enablestring=
6460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6461echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6462 no_cache=0
6463 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6464if test "${enable_protocol_http+set}" = set; then
6465 enableval="$enable_protocol_http"
6466
6467 if test "$enableval" = yes; then
6468 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6469 else
6470 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6471 fi
6472
6473else
6474
6475 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6483
6484fi;
6485
6486 eval "$ac_cv_use_protocol_http"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6492 echo "$as_me:$LINENO: result: yes" >&5
6493echo "${ECHO_T}yes" >&6
6494 else
6495 echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
6497 fi
6498
6499
6500 enablestring=
6501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6502echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6503 no_cache=0
6504 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6505if test "${enable_protocol_ftp+set}" = set; then
6506 enableval="$enable_protocol_ftp"
6507
6508 if test "$enableval" = yes; then
6509 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6510 else
6511 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6512 fi
6513
6514else
6515
6516 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6517 if test "x$LINE" != x ; then
6518 eval "DEFAULT_$LINE"
6519 else
6520 no_cache=1
6521 fi
6522
6523 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6524
6525fi;
6526
6527 eval "$ac_cv_use_protocol_ftp"
6528 if test "$no_cache" != 1; then
6529 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6530 fi
6531
6532 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6533 echo "$as_me:$LINENO: result: yes" >&5
6534echo "${ECHO_T}yes" >&6
6535 else
6536 echo "$as_me:$LINENO: result: no" >&5
6537echo "${ECHO_T}no" >&6
6538 fi
6539
6540
6541 enablestring=
6542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6543echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6544 no_cache=0
6545 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6546if test "${enable_protocol_file+set}" = set; then
6547 enableval="$enable_protocol_file"
6548
6549 if test "$enableval" = yes; then
6550 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6551 else
6552 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6553 fi
6554
6555else
6556
6557 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6558 if test "x$LINE" != x ; then
6559 eval "DEFAULT_$LINE"
6560 else
6561 no_cache=1
6562 fi
6563
6564 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6565
6566fi;
6567
6568 eval "$ac_cv_use_protocol_file"
6569 if test "$no_cache" != 1; then
6570 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6571 fi
6572
6573 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6574 echo "$as_me:$LINENO: result: yes" >&5
6575echo "${ECHO_T}yes" >&6
6576 else
6577 echo "$as_me:$LINENO: result: no" >&5
6578echo "${ECHO_T}no" >&6
6579 fi
6580
6581
6582
6583
6584
6585 enablestring=
6586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6587echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6588 no_cache=0
6589 # Check whether --enable-threads or --disable-threads was given.
6590if test "${enable_threads+set}" = set; then
6591 enableval="$enable_threads"
6592
6593 if test "$enableval" = yes; then
6594 ac_cv_use_threads='wxUSE_THREADS=yes'
6595 else
6596 ac_cv_use_threads='wxUSE_THREADS=no'
6597 fi
6598
6599else
6600
6601 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6602 if test "x$LINE" != x ; then
6603 eval "DEFAULT_$LINE"
6604 else
6605 no_cache=1
6606 fi
6607
6608 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6609
6610fi;
6611
6612 eval "$ac_cv_use_threads"
6613 if test "$no_cache" != 1; then
6614 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6615 fi
6616
6617 if test "$wxUSE_THREADS" = yes; then
6618 echo "$as_me:$LINENO: result: yes" >&5
6619echo "${ECHO_T}yes" >&6
6620 else
6621 echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6
6623 fi
6624
6625
6626if test "$wxUSE_GUI" = "yes"; then
6627
6628
6629
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-docview or --disable-docview was given.
6635if test "${enable_docview+set}" = set; then
6636 enableval="$enable_docview"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6640 else
6641 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6654
6655fi;
6656
6657 eval "$ac_cv_use_docview"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-help or --disable-help was given.
6676if test "${enable_help+set}" = set; then
6677 enableval="$enable_help"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_help='wxUSE_HELP=yes'
6681 else
6682 ac_cv_use_help='wxUSE_HELP=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6695
6696fi;
6697
6698 eval "$ac_cv_use_help"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_HELP" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712 enablestring=
6713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6714echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6715 no_cache=0
6716 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6717if test "${enable_mshtmlhelp+set}" = set; then
6718 enableval="$enable_mshtmlhelp"
6719
6720 if test "$enableval" = yes; then
6721 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6722 else
6723 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6724 fi
6725
6726else
6727
6728 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
6735 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6736
6737fi;
6738
6739 eval "$ac_cv_use_mshtmlhelp"
6740 if test "$no_cache" != 1; then
6741 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6742 fi
6743
6744 if test "$wxUSE_MS_HTML_HELP" = yes; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746echo "${ECHO_T}yes" >&6
6747 else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750 fi
6751
6752
6753 enablestring=
6754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6755echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6756 no_cache=0
6757 # Check whether --enable-html or --disable-html was given.
6758if test "${enable_html+set}" = set; then
6759 enableval="$enable_html"
6760
6761 if test "$enableval" = yes; then
6762 ac_cv_use_html='wxUSE_HTML=yes'
6763 else
6764 ac_cv_use_html='wxUSE_HTML=no'
6765 fi
6766
6767else
6768
6769 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6770 if test "x$LINE" != x ; then
6771 eval "DEFAULT_$LINE"
6772 else
6773 no_cache=1
6774 fi
6775
6776 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6777
6778fi;
6779
6780 eval "$ac_cv_use_html"
6781 if test "$no_cache" != 1; then
6782 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6783 fi
6784
6785 if test "$wxUSE_HTML" = yes; then
6786 echo "$as_me:$LINENO: result: yes" >&5
6787echo "${ECHO_T}yes" >&6
6788 else
6789 echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6
6791 fi
6792
6793
6794 enablestring=
6795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6796echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6797 no_cache=0
6798 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6799if test "${enable_htmlhelp+set}" = set; then
6800 enableval="$enable_htmlhelp"
6801
6802 if test "$enableval" = yes; then
6803 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6804 else
6805 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6806 fi
6807
6808else
6809
6810 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6818
6819fi;
6820
6821 eval "$ac_cv_use_htmlhelp"
6822 if test "$no_cache" != 1; then
6823 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6824 fi
6825
6826 if test "$wxUSE_WXHTML_HELP" = yes; then
6827 echo "$as_me:$LINENO: result: yes" >&5
6828echo "${ECHO_T}yes" >&6
6829 else
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
6832 fi
6833
6834
9a8f0513
VS
6835 enablestring=
6836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6837echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6838 no_cache=0
6839 # Check whether --enable-xrc or --disable-xrc was given.
6840if test "${enable_xrc+set}" = set; then
6841 enableval="$enable_xrc"
6842
6843 if test "$enableval" = yes; then
6844 ac_cv_use_xrc='wxUSE_XRC=yes'
6845 else
6846 ac_cv_use_xrc='wxUSE_XRC=no'
6847 fi
6848
6849else
6850
6851 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6852 if test "x$LINE" != x ; then
6853 eval "DEFAULT_$LINE"
6854 else
6855 no_cache=1
6856 fi
6857
6858 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6859
6860fi;
6861
6862 eval "$ac_cv_use_xrc"
6863 if test "$no_cache" != 1; then
6864 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6865 fi
6866
6867 if test "$wxUSE_XRC" = yes; then
6868 echo "$as_me:$LINENO: result: yes" >&5
6869echo "${ECHO_T}yes" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
6873 fi
6874
6875
a848cd7e
SC
6876 enablestring=
6877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6878echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6879 no_cache=0
6880 # Check whether --enable-constraints or --disable-constraints was given.
6881if test "${enable_constraints+set}" = set; then
6882 enableval="$enable_constraints"
6883
6884 if test "$enableval" = yes; then
6885 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6886 else
6887 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6888 fi
6889
6890else
6891
6892 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6893 if test "x$LINE" != x ; then
6894 eval "DEFAULT_$LINE"
6895 else
6896 no_cache=1
6897 fi
6898
6899 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6900
6901fi;
6902
6903 eval "$ac_cv_use_constraints"
6904 if test "$no_cache" != 1; then
6905 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6906 fi
6907
6908 if test "$wxUSE_CONSTRAINTS" = yes; then
6909 echo "$as_me:$LINENO: result: yes" >&5
6910echo "${ECHO_T}yes" >&6
6911 else
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
6914 fi
6915
6916
6917 enablestring=
6918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6919echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6920 no_cache=0
6921 # Check whether --enable-printarch or --disable-printarch was given.
6922if test "${enable_printarch+set}" = set; then
6923 enableval="$enable_printarch"
6924
6925 if test "$enableval" = yes; then
6926 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6927 else
6928 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6929 fi
6930
6931else
6932
6933 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6934 if test "x$LINE" != x ; then
6935 eval "DEFAULT_$LINE"
6936 else
6937 no_cache=1
6938 fi
6939
6940 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6941
6942fi;
6943
6944 eval "$ac_cv_use_printarch"
6945 if test "$no_cache" != 1; then
6946 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6947 fi
6948
6949 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6950 echo "$as_me:$LINENO: result: yes" >&5
6951echo "${ECHO_T}yes" >&6
6952 else
6953 echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6
6955 fi
6956
6957
6958 enablestring=
6959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6960echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6961 no_cache=0
6962 # Check whether --enable-mdi or --disable-mdi was given.
6963if test "${enable_mdi+set}" = set; then
6964 enableval="$enable_mdi"
6965
6966 if test "$enableval" = yes; then
8a7b1113 6967 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6968 else
8a7b1113 6969 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6970 fi
6971
6972else
6973
8a7b1113 6974 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6975 if test "x$LINE" != x ; then
6976 eval "DEFAULT_$LINE"
6977 else
6978 no_cache=1
6979 fi
6980
8a7b1113 6981 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6982
6983fi;
6984
6985 eval "$ac_cv_use_mdi"
6986 if test "$no_cache" != 1; then
6987 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6988 fi
6989
8a7b1113
VZ
6990 if test "$wxUSE_MDI" = yes; then
6991 echo "$as_me:$LINENO: result: yes" >&5
6992echo "${ECHO_T}yes" >&6
6993 else
6994 echo "$as_me:$LINENO: result: no" >&5
6995echo "${ECHO_T}no" >&6
6996 fi
6997
6998
6999 enablestring=
7000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7001echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7002 no_cache=0
7003 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7004if test "${enable_mdidoc+set}" = set; then
7005 enableval="$enable_mdidoc"
7006
7007 if test "$enableval" = yes; then
7008 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7009 else
7010 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7011 fi
7012
7013else
7014
7015 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7016 if test "x$LINE" != x ; then
7017 eval "DEFAULT_$LINE"
7018 else
7019 no_cache=1
7020 fi
7021
7022 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7023
7024fi;
7025
7026 eval "$ac_cv_use_mdidoc"
7027 if test "$no_cache" != 1; then
7028 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7029 fi
7030
a848cd7e
SC
7031 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7032 echo "$as_me:$LINENO: result: yes" >&5
7033echo "${ECHO_T}yes" >&6
7034 else
7035 echo "$as_me:$LINENO: result: no" >&5
7036echo "${ECHO_T}no" >&6
7037 fi
7038
7039
7040 enablestring=
7041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7042echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7043 no_cache=0
7044 # Check whether --enable-loggui or --disable-loggui was given.
7045if test "${enable_loggui+set}" = set; then
7046 enableval="$enable_loggui"
7047
7048 if test "$enableval" = yes; then
7049 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7050 else
7051 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7052 fi
7053
7054else
7055
7056 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7057 if test "x$LINE" != x ; then
7058 eval "DEFAULT_$LINE"
7059 else
7060 no_cache=1
7061 fi
7062
7063 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7064
7065fi;
7066
7067 eval "$ac_cv_use_loggui"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_LOGGUI" = yes; then
7073 echo "$as_me:$LINENO: result: yes" >&5
7074echo "${ECHO_T}yes" >&6
7075 else
7076 echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6
7078 fi
7079
7080
7081 enablestring=
7082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7083echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7084 no_cache=0
7085 # Check whether --enable-logwin or --disable-logwin was given.
7086if test "${enable_logwin+set}" = set; then
7087 enableval="$enable_logwin"
7088
7089 if test "$enableval" = yes; then
7090 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7091 else
7092 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7093 fi
7094
7095else
7096
7097 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7098 if test "x$LINE" != x ; then
7099 eval "DEFAULT_$LINE"
7100 else
7101 no_cache=1
7102 fi
7103
7104 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7105
7106fi;
7107
7108 eval "$ac_cv_use_logwin"
7109 if test "$no_cache" != 1; then
7110 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7111 fi
7112
7113 if test "$wxUSE_LOGWINDOW" = yes; then
7114 echo "$as_me:$LINENO: result: yes" >&5
7115echo "${ECHO_T}yes" >&6
7116 else
7117 echo "$as_me:$LINENO: result: no" >&5
7118echo "${ECHO_T}no" >&6
7119 fi
7120
7121
7122 enablestring=
7123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7124echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7125 no_cache=0
7126 # Check whether --enable-logdialog or --disable-logdialog was given.
7127if test "${enable_logdialog+set}" = set; then
7128 enableval="$enable_logdialog"
7129
7130 if test "$enableval" = yes; then
7131 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7132 else
7133 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7134 fi
7135
7136else
7137
7138 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7139 if test "x$LINE" != x ; then
7140 eval "DEFAULT_$LINE"
7141 else
7142 no_cache=1
7143 fi
7144
7145 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7146
7147fi;
7148
7149 eval "$ac_cv_use_logdialog"
7150 if test "$no_cache" != 1; then
7151 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7152 fi
7153
7154 if test "$wxUSE_LOGDIALOG" = yes; then
7155 echo "$as_me:$LINENO: result: yes" >&5
7156echo "${ECHO_T}yes" >&6
7157 else
7158 echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6
7160 fi
7161
7162
646b6ec1
VS
7163 enablestring=
7164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7165echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7166 no_cache=0
7167 # Check whether --enable-webkit or --disable-webkit was given.
7168if test "${enable_webkit+set}" = set; then
7169 enableval="$enable_webkit"
7170
7171 if test "$enableval" = yes; then
7172 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7173 else
7174 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7175 fi
7176
7177else
7178
7179 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7180 if test "x$LINE" != x ; then
7181 eval "DEFAULT_$LINE"
7182 else
7183 no_cache=1
7184 fi
7185
7186 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7187
7188fi;
7189
7190 eval "$ac_cv_use_webkit"
7191 if test "$no_cache" != 1; then
7192 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7193 fi
7194
7195 if test "$wxUSE_WEBKIT" = yes; then
7196 echo "$as_me:$LINENO: result: yes" >&5
7197echo "${ECHO_T}yes" >&6
7198 else
7199 echo "$as_me:$LINENO: result: no" >&5
7200echo "${ECHO_T}no" >&6
7201 fi
7202
7203
91dea314
MW
7204 enablestring=
7205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7206echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7207 no_cache=0
7208 # Check whether --enable-html or --disable-html was given.
7209if test "${enable_html+set}" = set; then
7210 enableval="$enable_html"
7211
7212 if test "$enableval" = yes; then
7213 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7214 else
7215 ac_cv_use_html='wxUSE_RICHTEXT=no'
7216 fi
7217
7218else
7219
7220 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7221 if test "x$LINE" != x ; then
7222 eval "DEFAULT_$LINE"
7223 else
7224 no_cache=1
7225 fi
7226
7227 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7228
7229fi;
7230
7231 eval "$ac_cv_use_html"
7232 if test "$no_cache" != 1; then
7233 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7234 fi
7235
7236 if test "$wxUSE_RICHTEXT" = yes; then
7237 echo "$as_me:$LINENO: result: yes" >&5
7238echo "${ECHO_T}yes" >&6
7239 else
7240 echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6
7242 fi
7243
7244
a848cd7e
SC
7245
7246 enablestring=
7247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7248echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7249 no_cache=0
7250 # Check whether --enable-postscript or --disable-postscript was given.
7251if test "${enable_postscript+set}" = set; then
7252 enableval="$enable_postscript"
7253
7254 if test "$enableval" = yes; then
7255 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7256 else
7257 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7258 fi
7259
7260else
7261
7262 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7263 if test "x$LINE" != x ; then
7264 eval "DEFAULT_$LINE"
7265 else
7266 no_cache=1
7267 fi
7268
7269 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7270
7271fi;
7272
7273 eval "$ac_cv_use_postscript"
7274 if test "$no_cache" != 1; then
7275 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7276 fi
7277
7278 if test "$wxUSE_POSTSCRIPT" = yes; then
7279 echo "$as_me:$LINENO: result: yes" >&5
7280echo "${ECHO_T}yes" >&6
7281 else
7282 echo "$as_me:$LINENO: result: no" >&5
7283echo "${ECHO_T}no" >&6
7284 fi
7285
7286
7287
7288
7289
7290 enablestring=
7291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7292echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7293 no_cache=0
7294 # Check whether --enable-prologio or --disable-prologio was given.
7295if test "${enable_prologio+set}" = set; then
7296 enableval="$enable_prologio"
7297
7298 if test "$enableval" = yes; then
7299 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7300 else
7301 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7302 fi
7303
7304else
7305
7306 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7307 if test "x$LINE" != x ; then
7308 eval "DEFAULT_$LINE"
7309 else
7310 no_cache=1
7311 fi
7312
7313 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7314
7315fi;
7316
7317 eval "$ac_cv_use_prologio"
7318 if test "$no_cache" != 1; then
7319 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7320 fi
7321
7322 if test "$wxUSE_PROLOGIO" = yes; then
7323 echo "$as_me:$LINENO: result: yes" >&5
7324echo "${ECHO_T}yes" >&6
7325 else
7326 echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6
7328 fi
7329
7330
7331 enablestring=
7332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7333echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7334 no_cache=0
7335 # Check whether --enable-resources or --disable-resources was given.
7336if test "${enable_resources+set}" = set; then
7337 enableval="$enable_resources"
7338
7339 if test "$enableval" = yes; then
7340 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7341 else
7342 ac_cv_use_resources='wxUSE_RESOURCES=no'
7343 fi
7344
7345else
7346
7347 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7348 if test "x$LINE" != x ; then
7349 eval "DEFAULT_$LINE"
7350 else
7351 no_cache=1
7352 fi
7353
7354 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7355
7356fi;
7357
7358 eval "$ac_cv_use_resources"
7359 if test "$no_cache" != 1; then
7360 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7361 fi
7362
7363 if test "$wxUSE_RESOURCES" = yes; then
7364 echo "$as_me:$LINENO: result: yes" >&5
7365echo "${ECHO_T}yes" >&6
7366 else
7367 echo "$as_me:$LINENO: result: no" >&5
7368echo "${ECHO_T}no" >&6
7369 fi
7370
7371
7372
7373
7374 enablestring=
7375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7376echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7377 no_cache=0
7378 # Check whether --enable-clipboard or --disable-clipboard was given.
7379if test "${enable_clipboard+set}" = set; then
7380 enableval="$enable_clipboard"
7381
7382 if test "$enableval" = yes; then
7383 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7384 else
7385 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7386 fi
7387
7388else
7389
7390 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7391 if test "x$LINE" != x ; then
7392 eval "DEFAULT_$LINE"
7393 else
7394 no_cache=1
7395 fi
7396
7397 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7398
7399fi;
7400
7401 eval "$ac_cv_use_clipboard"
7402 if test "$no_cache" != 1; then
7403 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7404 fi
7405
7406 if test "$wxUSE_CLIPBOARD" = yes; then
7407 echo "$as_me:$LINENO: result: yes" >&5
7408echo "${ECHO_T}yes" >&6
7409 else
7410 echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6
7412 fi
7413
7414
7415 enablestring=
7416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7417echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7418 no_cache=0
7419 # Check whether --enable-dnd or --disable-dnd was given.
7420if test "${enable_dnd+set}" = set; then
7421 enableval="$enable_dnd"
7422
7423 if test "$enableval" = yes; then
7424 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7425 else
7426 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7427 fi
7428
7429else
7430
7431 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7432 if test "x$LINE" != x ; then
7433 eval "DEFAULT_$LINE"
7434 else
7435 no_cache=1
7436 fi
7437
7438 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7439
7440fi;
7441
7442 eval "$ac_cv_use_dnd"
7443 if test "$no_cache" != 1; then
7444 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7445 fi
7446
7447 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7448 echo "$as_me:$LINENO: result: yes" >&5
7449echo "${ECHO_T}yes" >&6
7450 else
7451 echo "$as_me:$LINENO: result: no" >&5
7452echo "${ECHO_T}no" >&6
7453 fi
7454
7455
7456 enablestring=
7457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7458echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7459 no_cache=0
7460 # Check whether --enable-metafile or --disable-metafile was given.
7461if test "${enable_metafile+set}" = set; then
7462 enableval="$enable_metafile"
7463
7464 if test "$enableval" = yes; then
7465 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7466 else
7467 ac_cv_use_metafile='wxUSE_METAFILE=no'
7468 fi
7469
7470else
7471
7472 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7473 if test "x$LINE" != x ; then
7474 eval "DEFAULT_$LINE"
7475 else
7476 no_cache=1
7477 fi
7478
7479 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7480
7481fi;
7482
7483 eval "$ac_cv_use_metafile"
7484 if test "$no_cache" != 1; then
7485 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7486 fi
7487
7488 if test "$wxUSE_METAFILE" = yes; then
7489 echo "$as_me:$LINENO: result: yes" >&5
7490echo "${ECHO_T}yes" >&6
7491 else
7492 echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6
7494 fi
7495
7496
7497
7498
7499
7500 enablestring=
7501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7502echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7503 no_cache=0
7504 # Check whether --enable-controls or --disable-controls was given.
7505if test "${enable_controls+set}" = set; then
7506 enableval="$enable_controls"
7507
7508 if test "$enableval" = yes; then
7509 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7510 else
7511 ac_cv_use_controls='wxUSE_CONTROLS=no'
7512 fi
7513
7514else
7515
7516 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7517 if test "x$LINE" != x ; then
7518 eval "DEFAULT_$LINE"
7519 else
7520 no_cache=1
7521 fi
7522
7523 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7524
7525fi;
7526
7527 eval "$ac_cv_use_controls"
7528 if test "$no_cache" != 1; then
7529 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7530 fi
7531
7532 if test "$wxUSE_CONTROLS" = yes; then
7533 echo "$as_me:$LINENO: result: yes" >&5
7534echo "${ECHO_T}yes" >&6
7535 else
7536 echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6
7538 fi
7539
7540
7541if test "$wxUSE_CONTROLS" = "yes"; then
7542 DEFAULT_wxUSE_ACCEL=yes
7543 DEFAULT_wxUSE_BMPBUTTON=yes
7544 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7545 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7546 DEFAULT_wxUSE_CARET=yes
7547 DEFAULT_wxUSE_COMBOBOX=yes
7548 DEFAULT_wxUSE_CHECKBOX=yes
7549 DEFAULT_wxUSE_CHECKLISTBOX=yes
7550 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7551 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7552 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7553 DEFAULT_wxUSE_GAUGE=yes
7554 DEFAULT_wxUSE_GRID=yes
20e34ecc 7555 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7556 DEFAULT_wxUSE_IMAGLIST=yes
7557 DEFAULT_wxUSE_LISTBOOK=yes
7558 DEFAULT_wxUSE_LISTBOX=yes
7559 DEFAULT_wxUSE_LISTCTRL=yes
7560 DEFAULT_wxUSE_NOTEBOOK=yes
7561 DEFAULT_wxUSE_RADIOBOX=yes
7562 DEFAULT_wxUSE_RADIOBTN=yes
7563 DEFAULT_wxUSE_SASH=yes
7564 DEFAULT_wxUSE_SCROLLBAR=yes
7565 DEFAULT_wxUSE_SLIDER=yes
7566 DEFAULT_wxUSE_SPINBTN=yes
7567 DEFAULT_wxUSE_SPINCTRL=yes
7568 DEFAULT_wxUSE_SPLITTER=yes
7569 DEFAULT_wxUSE_STATBMP=yes
7570 DEFAULT_wxUSE_STATBOX=yes
7571 DEFAULT_wxUSE_STATLINE=yes
7572 DEFAULT_wxUSE_STATUSBAR=yes
7573 DEFAULT_wxUSE_TAB_DIALOG=yes
7574 DEFAULT_wxUSE_TOGGLEBTN=yes
7575 DEFAULT_wxUSE_TOOLBAR=yes
7576 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7577 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7578 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7579 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7580 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7581 DEFAULT_wxUSE_TREECTRL=yes
7582 DEFAULT_wxUSE_POPUPWIN=yes
7583 DEFAULT_wxUSE_TIPWINDOW=yes
7584elif test "$wxUSE_CONTROLS" = "no"; then
7585 DEFAULT_wxUSE_ACCEL=no
7586 DEFAULT_wxUSE_BMPBUTTON=no
7587 DEFAULT_wxUSE_BUTTON=no
7588 DEFAULT_wxUSE_CALCTRL=no
7589 DEFAULT_wxUSE_CARET=no
7590 DEFAULT_wxUSE_COMBOBOX=no
7591 DEFAULT_wxUSE_CHECKBOX=no
7592 DEFAULT_wxUSE_CHECKLISTBOX=no
7593 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7594 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7595 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7596 DEFAULT_wxUSE_GAUGE=no
7597 DEFAULT_wxUSE_GRID=no
20e34ecc 7598 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7599 DEFAULT_wxUSE_IMAGLIST=no
7600 DEFAULT_wxUSE_LISTBOOK=no
7601 DEFAULT_wxUSE_LISTBOX=no
7602 DEFAULT_wxUSE_LISTCTRL=no
7603 DEFAULT_wxUSE_NOTEBOOK=no
7604 DEFAULT_wxUSE_RADIOBOX=no
7605 DEFAULT_wxUSE_RADIOBTN=no
7606 DEFAULT_wxUSE_SASH=no
7607 DEFAULT_wxUSE_SCROLLBAR=no
7608 DEFAULT_wxUSE_SLIDER=no
7609 DEFAULT_wxUSE_SPINBTN=no
7610 DEFAULT_wxUSE_SPINCTRL=no
7611 DEFAULT_wxUSE_SPLITTER=no
7612 DEFAULT_wxUSE_STATBMP=no
7613 DEFAULT_wxUSE_STATBOX=no
7614 DEFAULT_wxUSE_STATLINE=no
7615 DEFAULT_wxUSE_STATUSBAR=no
7616 DEFAULT_wxUSE_TAB_DIALOG=no
7617 DEFAULT_wxUSE_TOGGLEBTN=no
7618 DEFAULT_wxUSE_TOOLBAR=no
7619 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7620 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7621 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7622 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7623 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7624 DEFAULT_wxUSE_TREECTRL=no
7625 DEFAULT_wxUSE_POPUPWIN=no
7626 DEFAULT_wxUSE_TIPWINDOW=no
7627fi
7628
a848cd7e
SC
7629
7630 enablestring=
7631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7632echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7633 no_cache=0
7634 # Check whether --enable-accel or --disable-accel was given.
7635if test "${enable_accel+set}" = set; then
7636 enableval="$enable_accel"
7637
7638 if test "$enableval" = yes; then
7639 ac_cv_use_accel='wxUSE_ACCEL=yes'
7640 else
7641 ac_cv_use_accel='wxUSE_ACCEL=no'
7642 fi
7643
7644else
7645
7646 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7647 if test "x$LINE" != x ; then
7648 eval "DEFAULT_$LINE"
7649 else
7650 no_cache=1
7651 fi
7652
7653 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7654
7655fi;
7656
7657 eval "$ac_cv_use_accel"
7658 if test "$no_cache" != 1; then
7659 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7660 fi
7661
7662 if test "$wxUSE_ACCEL" = yes; then
7663 echo "$as_me:$LINENO: result: yes" >&5
7664echo "${ECHO_T}yes" >&6
7665 else
7666 echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6
7668 fi
7669
7670
7671 enablestring=
7672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7673echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7674 no_cache=0
7675 # Check whether --enable-button or --disable-button was given.
7676if test "${enable_button+set}" = set; then
7677 enableval="$enable_button"
7678
7679 if test "$enableval" = yes; then
7680 ac_cv_use_button='wxUSE_BUTTON=yes'
7681 else
7682 ac_cv_use_button='wxUSE_BUTTON=no'
7683 fi
7684
7685else
7686
7687 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7688 if test "x$LINE" != x ; then
7689 eval "DEFAULT_$LINE"
7690 else
7691 no_cache=1
7692 fi
7693
7694 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7695
7696fi;
7697
7698 eval "$ac_cv_use_button"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_BUTTON" = yes; then
7704 echo "$as_me:$LINENO: result: yes" >&5
7705echo "${ECHO_T}yes" >&6
7706 else
7707 echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6
7709 fi
7710
7711
7712 enablestring=
7713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7714echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7715 no_cache=0
7716 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7717if test "${enable_bmpbutton+set}" = set; then
7718 enableval="$enable_bmpbutton"
7719
7720 if test "$enableval" = yes; then
7721 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7722 else
7723 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7724 fi
7725
7726else
7727
7728 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7729 if test "x$LINE" != x ; then
7730 eval "DEFAULT_$LINE"
7731 else
7732 no_cache=1
7733 fi
7734
7735 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7736
7737fi;
7738
7739 eval "$ac_cv_use_bmpbutton"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_BMPBUTTON" = yes; then
7745 echo "$as_me:$LINENO: result: yes" >&5
7746echo "${ECHO_T}yes" >&6
7747 else
7748 echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6
7750 fi
7751
7752
7753 enablestring=
7754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7755echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7756 no_cache=0
7757 # Check whether --enable-calendar or --disable-calendar was given.
7758if test "${enable_calendar+set}" = set; then
7759 enableval="$enable_calendar"
7760
7761 if test "$enableval" = yes; then
7762 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7763 else
7764 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7765 fi
7766
7767else
7768
7769 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7770 if test "x$LINE" != x ; then
7771 eval "DEFAULT_$LINE"
7772 else
7773 no_cache=1
7774 fi
7775
7776 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7777
7778fi;
7779
7780 eval "$ac_cv_use_calendar"
7781 if test "$no_cache" != 1; then
7782 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7783 fi
7784
7785 if test "$wxUSE_CALCTRL" = yes; then
7786 echo "$as_me:$LINENO: result: yes" >&5
7787echo "${ECHO_T}yes" >&6
7788 else
7789 echo "$as_me:$LINENO: result: no" >&5
7790echo "${ECHO_T}no" >&6
7791 fi
7792
7793
7794 enablestring=
7795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7796echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7797 no_cache=0
7798 # Check whether --enable-caret or --disable-caret was given.
7799if test "${enable_caret+set}" = set; then
7800 enableval="$enable_caret"
7801
7802 if test "$enableval" = yes; then
7803 ac_cv_use_caret='wxUSE_CARET=yes'
7804 else
7805 ac_cv_use_caret='wxUSE_CARET=no'
7806 fi
7807
7808else
7809
7810 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7811 if test "x$LINE" != x ; then
7812 eval "DEFAULT_$LINE"
7813 else
7814 no_cache=1
7815 fi
7816
7817 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7818
7819fi;
7820
7821 eval "$ac_cv_use_caret"
7822 if test "$no_cache" != 1; then
7823 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7824 fi
7825
7826 if test "$wxUSE_CARET" = yes; then
7827 echo "$as_me:$LINENO: result: yes" >&5
7828echo "${ECHO_T}yes" >&6
7829 else
7830 echo "$as_me:$LINENO: result: no" >&5
7831echo "${ECHO_T}no" >&6
7832 fi
7833
7834
7835 enablestring=
7836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7837echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7838 no_cache=0
7839 # Check whether --enable-checkbox or --disable-checkbox was given.
7840if test "${enable_checkbox+set}" = set; then
7841 enableval="$enable_checkbox"
7842
7843 if test "$enableval" = yes; then
7844 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7845 else
7846 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7847 fi
7848
7849else
7850
7851 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7852 if test "x$LINE" != x ; then
7853 eval "DEFAULT_$LINE"
7854 else
7855 no_cache=1
7856 fi
7857
7858 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7859
7860fi;
7861
7862 eval "$ac_cv_use_checkbox"
7863 if test "$no_cache" != 1; then
7864 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7865 fi
7866
7867 if test "$wxUSE_CHECKBOX" = yes; then
7868 echo "$as_me:$LINENO: result: yes" >&5
7869echo "${ECHO_T}yes" >&6
7870 else
7871 echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873 fi
7874
7875
7876 enablestring=
7877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7878echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7879 no_cache=0
7880 # Check whether --enable-checklst or --disable-checklst was given.
7881if test "${enable_checklst+set}" = set; then
7882 enableval="$enable_checklst"
7883
7884 if test "$enableval" = yes; then
7885 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7886 else
7887 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7888 fi
7889
7890else
7891
7892 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7893 if test "x$LINE" != x ; then
7894 eval "DEFAULT_$LINE"
7895 else
7896 no_cache=1
7897 fi
7898
7899 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7900
7901fi;
7902
7903 eval "$ac_cv_use_checklst"
7904 if test "$no_cache" != 1; then
7905 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7906 fi
7907
7908 if test "$wxUSE_CHECKLST" = yes; then
7909 echo "$as_me:$LINENO: result: yes" >&5
7910echo "${ECHO_T}yes" >&6
7911 else
7912 echo "$as_me:$LINENO: result: no" >&5
7913echo "${ECHO_T}no" >&6
7914 fi
7915
7916
7917 enablestring=
7918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7919echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7920 no_cache=0
7921 # Check whether --enable-choice or --disable-choice was given.
7922if test "${enable_choice+set}" = set; then
7923 enableval="$enable_choice"
7924
7925 if test "$enableval" = yes; then
7926 ac_cv_use_choice='wxUSE_CHOICE=yes'
7927 else
7928 ac_cv_use_choice='wxUSE_CHOICE=no'
7929 fi
7930
7931else
7932
7933 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7934 if test "x$LINE" != x ; then
7935 eval "DEFAULT_$LINE"
7936 else
7937 no_cache=1
7938 fi
7939
7940 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7941
7942fi;
7943
7944 eval "$ac_cv_use_choice"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_CHOICE" = yes; then
7950 echo "$as_me:$LINENO: result: yes" >&5
7951echo "${ECHO_T}yes" >&6
7952 else
7953 echo "$as_me:$LINENO: result: no" >&5
7954echo "${ECHO_T}no" >&6
7955 fi
7956
7957
92bbdbcd
WS
7958 enablestring=
7959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7960echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7961 no_cache=0
7962 # Check whether --enable-choicebook or --disable-choicebook was given.
7963if test "${enable_choicebook+set}" = set; then
7964 enableval="$enable_choicebook"
7965
7966 if test "$enableval" = yes; then
7967 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7968 else
7969 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7970 fi
7971
7972else
7973
7974 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7975 if test "x$LINE" != x ; then
7976 eval "DEFAULT_$LINE"
7977 else
7978 no_cache=1
7979 fi
7980
7981 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7982
7983fi;
7984
7985 eval "$ac_cv_use_choicebook"
7986 if test "$no_cache" != 1; then
7987 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7988 fi
7989
7990 if test "$wxUSE_CHOICEBOOK" = yes; then
7991 echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6
7993 else
7994 echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6
7996 fi
7997
7998
a848cd7e
SC
7999 enablestring=
8000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8001echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8002 no_cache=0
8003 # Check whether --enable-combobox or --disable-combobox was given.
8004if test "${enable_combobox+set}" = set; then
8005 enableval="$enable_combobox"
8006
8007 if test "$enableval" = yes; then
8008 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8009 else
8010 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8011 fi
8012
8013else
8014
8015 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8016 if test "x$LINE" != x ; then
8017 eval "DEFAULT_$LINE"
8018 else
8019 no_cache=1
8020 fi
8021
8022 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8023
8024fi;
8025
8026 eval "$ac_cv_use_combobox"
8027 if test "$no_cache" != 1; then
8028 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8029 fi
8030
8031 if test "$wxUSE_COMBOBOX" = yes; then
8032 echo "$as_me:$LINENO: result: yes" >&5
8033echo "${ECHO_T}yes" >&6
8034 else
8035 echo "$as_me:$LINENO: result: no" >&5
8036echo "${ECHO_T}no" >&6
8037 fi
8038
8039
da98e9be
VZ
8040 enablestring=
8041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8042echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8043 no_cache=0
8044 # Check whether --enable-datepick or --disable-datepick was given.
8045if test "${enable_datepick+set}" = set; then
8046 enableval="$enable_datepick"
8047
8048 if test "$enableval" = yes; then
8049 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8050 else
8051 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8052 fi
8053
8054else
8055
8056 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8057 if test "x$LINE" != x ; then
8058 eval "DEFAULT_$LINE"
8059 else
8060 no_cache=1
8061 fi
8062
8063 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8064
8065fi;
8066
8067 eval "$ac_cv_use_datepick"
8068 if test "$no_cache" != 1; then
8069 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8070 fi
8071
8072 if test "$wxUSE_DATEPICKCTRL" = yes; then
8073 echo "$as_me:$LINENO: result: yes" >&5
8074echo "${ECHO_T}yes" >&6
8075 else
8076 echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6
8078 fi
8079
8080
a848cd7e
SC
8081 enablestring=
8082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8083echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8084 no_cache=0
8085 # Check whether --enable-display or --disable-display was given.
8086if test "${enable_display+set}" = set; then
8087 enableval="$enable_display"
8088
8089 if test "$enableval" = yes; then
8090 ac_cv_use_display='wxUSE_DISPLAY=yes'
8091 else
8092 ac_cv_use_display='wxUSE_DISPLAY=no'
8093 fi
8094
8095else
8096
8097 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8098 if test "x$LINE" != x ; then
8099 eval "DEFAULT_$LINE"
8100 else
8101 no_cache=1
8102 fi
8103
8104 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8105
8106fi;
8107
8108 eval "$ac_cv_use_display"
8109 if test "$no_cache" != 1; then
8110 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8111 fi
8112
8113 if test "$wxUSE_DISPLAY" = yes; then
8114 echo "$as_me:$LINENO: result: yes" >&5
8115echo "${ECHO_T}yes" >&6
8116 else
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
8119 fi
8120
8121
8122 enablestring=
8123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8124echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8125 no_cache=0
8126 # Check whether --enable-gauge or --disable-gauge was given.
8127if test "${enable_gauge+set}" = set; then
8128 enableval="$enable_gauge"
8129
8130 if test "$enableval" = yes; then
8131 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8132 else
8133 ac_cv_use_gauge='wxUSE_GAUGE=no'
8134 fi
8135
8136else
8137
8138 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8139 if test "x$LINE" != x ; then
8140 eval "DEFAULT_$LINE"
8141 else
8142 no_cache=1
8143 fi
8144
8145 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8146
8147fi;
8148
8149 eval "$ac_cv_use_gauge"
8150 if test "$no_cache" != 1; then
8151 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8152 fi
8153
8154 if test "$wxUSE_GAUGE" = yes; then
8155 echo "$as_me:$LINENO: result: yes" >&5
8156echo "${ECHO_T}yes" >&6
8157 else
8158 echo "$as_me:$LINENO: result: no" >&5
8159echo "${ECHO_T}no" >&6
8160 fi
8161
8162
8163 enablestring=
8164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8165echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8166 no_cache=0
8167 # Check whether --enable-grid or --disable-grid was given.
8168if test "${enable_grid+set}" = set; then
8169 enableval="$enable_grid"
8170
8171 if test "$enableval" = yes; then
8172 ac_cv_use_grid='wxUSE_GRID=yes'
8173 else
8174 ac_cv_use_grid='wxUSE_GRID=no'
8175 fi
8176
8177else
8178
8179 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8180 if test "x$LINE" != x ; then
8181 eval "DEFAULT_$LINE"
8182 else
8183 no_cache=1
8184 fi
8185
8186 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8187
8188fi;
8189
8190 eval "$ac_cv_use_grid"
8191 if test "$no_cache" != 1; then
8192 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8193 fi
8194
8195 if test "$wxUSE_GRID" = yes; then
8196 echo "$as_me:$LINENO: result: yes" >&5
8197echo "${ECHO_T}yes" >&6
8198 else
8199 echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6
8201 fi
8202
8203
20e34ecc
RR
8204 enablestring=
8205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8206echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8207 no_cache=0
8208 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8209if test "${enable_dataviewctrl+set}" = set; then
8210 enableval="$enable_dataviewctrl"
8211
8212 if test "$enableval" = yes; then
8213 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8214 else
8215 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8216 fi
8217
8218else
8219
8220 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8221 if test "x$LINE" != x ; then
8222 eval "DEFAULT_$LINE"
8223 else
8224 no_cache=1
8225 fi
8226
8227 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8228
8229fi;
8230
8231 eval "$ac_cv_use_dataviewctrl"
8232 if test "$no_cache" != 1; then
8233 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8234 fi
8235
8236 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8237 echo "$as_me:$LINENO: result: yes" >&5
8238echo "${ECHO_T}yes" >&6
8239 else
8240 echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6
8242 fi
8243
8244
a848cd7e
SC
8245 enablestring=
8246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8247echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8248 no_cache=0
8249 # Check whether --enable-imaglist or --disable-imaglist was given.
8250if test "${enable_imaglist+set}" = set; then
8251 enableval="$enable_imaglist"
8252
8253 if test "$enableval" = yes; then
8254 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8255 else
8256 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8257 fi
8258
8259else
8260
8261 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8262 if test "x$LINE" != x ; then
8263 eval "DEFAULT_$LINE"
8264 else
8265 no_cache=1
8266 fi
8267
8268 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8269
8270fi;
8271
8272 eval "$ac_cv_use_imaglist"
8273 if test "$no_cache" != 1; then
8274 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8275 fi
8276
8277 if test "$wxUSE_IMAGLIST" = yes; then
8278 echo "$as_me:$LINENO: result: yes" >&5
8279echo "${ECHO_T}yes" >&6
8280 else
8281 echo "$as_me:$LINENO: result: no" >&5
8282echo "${ECHO_T}no" >&6
8283 fi
8284
8285
8286 enablestring=
8287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8288echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8289 no_cache=0
8290 # Check whether --enable-listbook or --disable-listbook was given.
8291if test "${enable_listbook+set}" = set; then
8292 enableval="$enable_listbook"
8293
8294 if test "$enableval" = yes; then
8295 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8296 else
8297 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8298 fi
8299
8300else
8301
8302 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8303 if test "x$LINE" != x ; then
8304 eval "DEFAULT_$LINE"
8305 else
8306 no_cache=1
8307 fi
8308
8309 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8310
8311fi;
8312
8313 eval "$ac_cv_use_listbook"
8314 if test "$no_cache" != 1; then
8315 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8316 fi
8317
8318 if test "$wxUSE_LISTBOOK" = yes; then
8319 echo "$as_me:$LINENO: result: yes" >&5
8320echo "${ECHO_T}yes" >&6
8321 else
8322 echo "$as_me:$LINENO: result: no" >&5
8323echo "${ECHO_T}no" >&6
8324 fi
8325
8326
8327 enablestring=
8328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8329echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8330 no_cache=0
8331 # Check whether --enable-listbox or --disable-listbox was given.
8332if test "${enable_listbox+set}" = set; then
8333 enableval="$enable_listbox"
8334
8335 if test "$enableval" = yes; then
8336 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8337 else
8338 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8339 fi
8340
8341else
8342
8343 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8344 if test "x$LINE" != x ; then
8345 eval "DEFAULT_$LINE"
8346 else
8347 no_cache=1
8348 fi
8349
8350 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8351
8352fi;
8353
8354 eval "$ac_cv_use_listbox"
8355 if test "$no_cache" != 1; then
8356 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8357 fi
8358
8359 if test "$wxUSE_LISTBOX" = yes; then
8360 echo "$as_me:$LINENO: result: yes" >&5
8361echo "${ECHO_T}yes" >&6
8362 else
8363 echo "$as_me:$LINENO: result: no" >&5
8364echo "${ECHO_T}no" >&6
8365 fi
8366
8367
8368 enablestring=
8369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8370echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8371 no_cache=0
8372 # Check whether --enable-listctrl or --disable-listctrl was given.
8373if test "${enable_listctrl+set}" = set; then
8374 enableval="$enable_listctrl"
8375
8376 if test "$enableval" = yes; then
8377 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8378 else
8379 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8380 fi
8381
8382else
8383
8384 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8385 if test "x$LINE" != x ; then
8386 eval "DEFAULT_$LINE"
8387 else
8388 no_cache=1
8389 fi
8390
8391 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8392
8393fi;
8394
8395 eval "$ac_cv_use_listctrl"
8396 if test "$no_cache" != 1; then
8397 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8398 fi
8399
8400 if test "$wxUSE_LISTCTRL" = yes; then
8401 echo "$as_me:$LINENO: result: yes" >&5
8402echo "${ECHO_T}yes" >&6
8403 else
8404 echo "$as_me:$LINENO: result: no" >&5
8405echo "${ECHO_T}no" >&6
8406 fi
8407
8408
8409 enablestring=
8410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8411echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8412 no_cache=0
8413 # Check whether --enable-notebook or --disable-notebook was given.
8414if test "${enable_notebook+set}" = set; then
8415 enableval="$enable_notebook"
8416
8417 if test "$enableval" = yes; then
8418 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8419 else
8420 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8421 fi
8422
8423else
8424
8425 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8426 if test "x$LINE" != x ; then
8427 eval "DEFAULT_$LINE"
8428 else
8429 no_cache=1
8430 fi
8431
8432 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8433
8434fi;
8435
8436 eval "$ac_cv_use_notebook"
8437 if test "$no_cache" != 1; then
8438 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8439 fi
8440
8441 if test "$wxUSE_NOTEBOOK" = yes; then
8442 echo "$as_me:$LINENO: result: yes" >&5
8443echo "${ECHO_T}yes" >&6
8444 else
8445 echo "$as_me:$LINENO: result: no" >&5
8446echo "${ECHO_T}no" >&6
8447 fi
8448
8449
8450 enablestring=
8451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8452echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8453 no_cache=0
8454 # Check whether --enable-radiobox or --disable-radiobox was given.
8455if test "${enable_radiobox+set}" = set; then
8456 enableval="$enable_radiobox"
8457
8458 if test "$enableval" = yes; then
8459 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8460 else
8461 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8462 fi
8463
8464else
8465
8466 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8467 if test "x$LINE" != x ; then
8468 eval "DEFAULT_$LINE"
8469 else
8470 no_cache=1
8471 fi
8472
8473 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8474
8475fi;
8476
8477 eval "$ac_cv_use_radiobox"
8478 if test "$no_cache" != 1; then
8479 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8480 fi
8481
8482 if test "$wxUSE_RADIOBOX" = yes; then
8483 echo "$as_me:$LINENO: result: yes" >&5
8484echo "${ECHO_T}yes" >&6
8485 else
8486 echo "$as_me:$LINENO: result: no" >&5
8487echo "${ECHO_T}no" >&6
8488 fi
8489
8490
8491 enablestring=
8492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8493echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8494 no_cache=0
8495 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8496if test "${enable_radiobtn+set}" = set; then
8497 enableval="$enable_radiobtn"
8498
8499 if test "$enableval" = yes; then
8500 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8501 else
8502 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8503 fi
8504
8505else
8506
8507 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8508 if test "x$LINE" != x ; then
8509 eval "DEFAULT_$LINE"
8510 else
8511 no_cache=1
8512 fi
8513
8514 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8515
8516fi;
8517
8518 eval "$ac_cv_use_radiobtn"
8519 if test "$no_cache" != 1; then
8520 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8521 fi
8522
8523 if test "$wxUSE_RADIOBTN" = yes; then
8524 echo "$as_me:$LINENO: result: yes" >&5
8525echo "${ECHO_T}yes" >&6
8526 else
8527 echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6
8529 fi
8530
8531
8532 enablestring=
8533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8534echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8535 no_cache=0
8536 # Check whether --enable-sash or --disable-sash was given.
8537if test "${enable_sash+set}" = set; then
8538 enableval="$enable_sash"
8539
8540 if test "$enableval" = yes; then
8541 ac_cv_use_sash='wxUSE_SASH=yes'
8542 else
8543 ac_cv_use_sash='wxUSE_SASH=no'
8544 fi
8545
8546else
8547
8548 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8549 if test "x$LINE" != x ; then
8550 eval "DEFAULT_$LINE"
8551 else
8552 no_cache=1
8553 fi
8554
8555 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8556
8557fi;
8558
8559 eval "$ac_cv_use_sash"
8560 if test "$no_cache" != 1; then
8561 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8562 fi
8563
8564 if test "$wxUSE_SASH" = yes; then
8565 echo "$as_me:$LINENO: result: yes" >&5
8566echo "${ECHO_T}yes" >&6
8567 else
8568 echo "$as_me:$LINENO: result: no" >&5
8569echo "${ECHO_T}no" >&6
8570 fi
8571
8572
8573 enablestring=
8574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8575echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8576 no_cache=0
8577 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8578if test "${enable_scrollbar+set}" = set; then
8579 enableval="$enable_scrollbar"
8580
8581 if test "$enableval" = yes; then
8582 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8583 else
8584 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8585 fi
8586
8587else
8588
8589 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8590 if test "x$LINE" != x ; then
8591 eval "DEFAULT_$LINE"
8592 else
8593 no_cache=1
8594 fi
8595
8596 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8597
8598fi;
8599
8600 eval "$ac_cv_use_scrollbar"
8601 if test "$no_cache" != 1; then
8602 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8603 fi
8604
8605 if test "$wxUSE_SCROLLBAR" = yes; then
8606 echo "$as_me:$LINENO: result: yes" >&5
8607echo "${ECHO_T}yes" >&6
8608 else
8609 echo "$as_me:$LINENO: result: no" >&5
8610echo "${ECHO_T}no" >&6
8611 fi
8612
8613
8614 enablestring=
8615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8616echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8617 no_cache=0
8618 # Check whether --enable-slider or --disable-slider was given.
8619if test "${enable_slider+set}" = set; then
8620 enableval="$enable_slider"
8621
8622 if test "$enableval" = yes; then
8623 ac_cv_use_slider='wxUSE_SLIDER=yes'
8624 else
8625 ac_cv_use_slider='wxUSE_SLIDER=no'
8626 fi
8627
8628else
8629
8630 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8631 if test "x$LINE" != x ; then
8632 eval "DEFAULT_$LINE"
8633 else
8634 no_cache=1
8635 fi
8636
8637 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8638
8639fi;
8640
8641 eval "$ac_cv_use_slider"
8642 if test "$no_cache" != 1; then
8643 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8644 fi
8645
8646 if test "$wxUSE_SLIDER" = yes; then
8647 echo "$as_me:$LINENO: result: yes" >&5
8648echo "${ECHO_T}yes" >&6
8649 else
8650 echo "$as_me:$LINENO: result: no" >&5
8651echo "${ECHO_T}no" >&6
8652 fi
8653
8654
8655 enablestring=
8656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8657echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8658 no_cache=0
8659 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8660if test "${enable_spinbtn+set}" = set; then
8661 enableval="$enable_spinbtn"
8662
8663 if test "$enableval" = yes; then
8664 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8665 else
8666 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8667 fi
8668
8669else
8670
8671 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8672 if test "x$LINE" != x ; then
8673 eval "DEFAULT_$LINE"
8674 else
8675 no_cache=1
8676 fi
8677
8678 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8679
8680fi;
8681
8682 eval "$ac_cv_use_spinbtn"
8683 if test "$no_cache" != 1; then
8684 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8685 fi
8686
8687 if test "$wxUSE_SPINBTN" = yes; then
8688 echo "$as_me:$LINENO: result: yes" >&5
8689echo "${ECHO_T}yes" >&6
8690 else
8691 echo "$as_me:$LINENO: result: no" >&5
8692echo "${ECHO_T}no" >&6
8693 fi
8694
8695
8696 enablestring=
8697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8698echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8699 no_cache=0
8700 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8701if test "${enable_spinctrl+set}" = set; then
8702 enableval="$enable_spinctrl"
8703
8704 if test "$enableval" = yes; then
8705 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8706 else
8707 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8708 fi
8709
8710else
8711
8712 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8713 if test "x$LINE" != x ; then
8714 eval "DEFAULT_$LINE"
8715 else
8716 no_cache=1
8717 fi
8718
8719 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8720
8721fi;
8722
8723 eval "$ac_cv_use_spinctrl"
8724 if test "$no_cache" != 1; then
8725 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8726 fi
8727
8728 if test "$wxUSE_SPINCTRL" = yes; then
8729 echo "$as_me:$LINENO: result: yes" >&5
8730echo "${ECHO_T}yes" >&6
8731 else
8732 echo "$as_me:$LINENO: result: no" >&5
8733echo "${ECHO_T}no" >&6
8734 fi
8735
8736
8737 enablestring=
8738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8739echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8740 no_cache=0
8741 # Check whether --enable-splitter or --disable-splitter was given.
8742if test "${enable_splitter+set}" = set; then
8743 enableval="$enable_splitter"
8744
8745 if test "$enableval" = yes; then
8746 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8747 else
8748 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8749 fi
8750
8751else
8752
8753 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8754 if test "x$LINE" != x ; then
8755 eval "DEFAULT_$LINE"
8756 else
8757 no_cache=1
8758 fi
8759
8760 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8761
8762fi;
8763
8764 eval "$ac_cv_use_splitter"
8765 if test "$no_cache" != 1; then
8766 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8767 fi
8768
8769 if test "$wxUSE_SPLITTER" = yes; then
8770 echo "$as_me:$LINENO: result: yes" >&5
8771echo "${ECHO_T}yes" >&6
8772 else
8773 echo "$as_me:$LINENO: result: no" >&5
8774echo "${ECHO_T}no" >&6
8775 fi
8776
8777
8778 enablestring=
8779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8780echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8781 no_cache=0
8782 # Check whether --enable-statbmp or --disable-statbmp was given.
8783if test "${enable_statbmp+set}" = set; then
8784 enableval="$enable_statbmp"
8785
8786 if test "$enableval" = yes; then
8787 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8788 else
8789 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8790 fi
8791
8792else
8793
8794 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8795 if test "x$LINE" != x ; then
8796 eval "DEFAULT_$LINE"
8797 else
8798 no_cache=1
8799 fi
8800
8801 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8802
8803fi;
8804
8805 eval "$ac_cv_use_statbmp"
8806 if test "$no_cache" != 1; then
8807 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8808 fi
8809
8810 if test "$wxUSE_STATBMP" = yes; then
8811 echo "$as_me:$LINENO: result: yes" >&5
8812echo "${ECHO_T}yes" >&6
8813 else
8814 echo "$as_me:$LINENO: result: no" >&5
8815echo "${ECHO_T}no" >&6
8816 fi
8817
8818
8819 enablestring=
8820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8821echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8822 no_cache=0
8823 # Check whether --enable-statbox or --disable-statbox was given.
8824if test "${enable_statbox+set}" = set; then
8825 enableval="$enable_statbox"
8826
8827 if test "$enableval" = yes; then
8828 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8829 else
8830 ac_cv_use_statbox='wxUSE_STATBOX=no'
8831 fi
8832
8833else
8834
8835 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8836 if test "x$LINE" != x ; then
8837 eval "DEFAULT_$LINE"
8838 else
8839 no_cache=1
8840 fi
8841
8842 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8843
8844fi;
8845
8846 eval "$ac_cv_use_statbox"
8847 if test "$no_cache" != 1; then
8848 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8849 fi
8850
8851 if test "$wxUSE_STATBOX" = yes; then
8852 echo "$as_me:$LINENO: result: yes" >&5
8853echo "${ECHO_T}yes" >&6
8854 else
8855 echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
8857 fi
8858
8859
8860 enablestring=
8861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8862echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8863 no_cache=0
8864 # Check whether --enable-statline or --disable-statline was given.
8865if test "${enable_statline+set}" = set; then
8866 enableval="$enable_statline"
8867
8868 if test "$enableval" = yes; then
8869 ac_cv_use_statline='wxUSE_STATLINE=yes'
8870 else
8871 ac_cv_use_statline='wxUSE_STATLINE=no'
8872 fi
8873
8874else
8875
8876 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8877 if test "x$LINE" != x ; then
8878 eval "DEFAULT_$LINE"
8879 else
8880 no_cache=1
8881 fi
8882
8883 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8884
8885fi;
8886
8887 eval "$ac_cv_use_statline"
8888 if test "$no_cache" != 1; then
8889 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8890 fi
8891
8892 if test "$wxUSE_STATLINE" = yes; then
8893 echo "$as_me:$LINENO: result: yes" >&5
8894echo "${ECHO_T}yes" >&6
8895 else
8896 echo "$as_me:$LINENO: result: no" >&5
8897echo "${ECHO_T}no" >&6
8898 fi
8899
8900
8901 enablestring=
8902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8903echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8904 no_cache=0
8905 # Check whether --enable-stattext or --disable-stattext was given.
8906if test "${enable_stattext+set}" = set; then
8907 enableval="$enable_stattext"
8908
8909 if test "$enableval" = yes; then
8910 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8911 else
8912 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8913 fi
8914
8915else
8916
8917 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8918 if test "x$LINE" != x ; then
8919 eval "DEFAULT_$LINE"
8920 else
8921 no_cache=1
8922 fi
8923
8924 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8925
8926fi;
8927
8928 eval "$ac_cv_use_stattext"
8929 if test "$no_cache" != 1; then
8930 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8931 fi
8932
8933 if test "$wxUSE_STATTEXT" = yes; then
8934 echo "$as_me:$LINENO: result: yes" >&5
8935echo "${ECHO_T}yes" >&6
8936 else
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
8939 fi
8940
8941
8942 enablestring=
8943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8944echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8945 no_cache=0
8946 # Check whether --enable-statusbar or --disable-statusbar was given.
8947if test "${enable_statusbar+set}" = set; then
8948 enableval="$enable_statusbar"
8949
8950 if test "$enableval" = yes; then
8951 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8952 else
8953 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8954 fi
8955
8956else
8957
8958 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8959 if test "x$LINE" != x ; then
8960 eval "DEFAULT_$LINE"
8961 else
8962 no_cache=1
8963 fi
8964
8965 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8966
8967fi;
8968
8969 eval "$ac_cv_use_statusbar"
8970 if test "$no_cache" != 1; then
8971 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8972 fi
8973
8974 if test "$wxUSE_STATUSBAR" = yes; then
8975 echo "$as_me:$LINENO: result: yes" >&5
8976echo "${ECHO_T}yes" >&6
8977 else
8978 echo "$as_me:$LINENO: result: no" >&5
8979echo "${ECHO_T}no" >&6
8980 fi
8981
8982
8983 enablestring=
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8985echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8986 no_cache=0
8987 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8988if test "${enable_tabdialog+set}" = set; then
8989 enableval="$enable_tabdialog"
8990
8991 if test "$enableval" = yes; then
f10e38c4 8992 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 8993 else
f10e38c4 8994 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
8995 fi
8996
8997else
8998
f10e38c4 8999 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
f10e38c4 9006 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9007
9008fi;
9009
9010 eval "$ac_cv_use_tabdialog"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9013 fi
9014
f10e38c4 9015 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9016 echo "$as_me:$LINENO: result: yes" >&5
9017echo "${ECHO_T}yes" >&6
9018 else
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
9021 fi
9022
9023
9024 enablestring=
9025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9026echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9027 no_cache=0
9028 # Check whether --enable-textctrl or --disable-textctrl was given.
9029if test "${enable_textctrl+set}" = set; then
9030 enableval="$enable_textctrl"
9031
9032 if test "$enableval" = yes; then
9033 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9034 else
9035 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9036 fi
9037
9038else
9039
9040 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9041 if test "x$LINE" != x ; then
9042 eval "DEFAULT_$LINE"
9043 else
9044 no_cache=1
9045 fi
9046
9047 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9048
9049fi;
9050
9051 eval "$ac_cv_use_textctrl"
9052 if test "$no_cache" != 1; then
9053 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9054 fi
9055
9056 if test "$wxUSE_TEXTCTRL" = yes; then
9057 echo "$as_me:$LINENO: result: yes" >&5
9058echo "${ECHO_T}yes" >&6
9059 else
9060 echo "$as_me:$LINENO: result: no" >&5
9061echo "${ECHO_T}no" >&6
9062 fi
9063
9064
9065 enablestring=
9066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9067echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9068 no_cache=0
9069 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9070if test "${enable_togglebtn+set}" = set; then
9071 enableval="$enable_togglebtn"
9072
9073 if test "$enableval" = yes; then
9074 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9075 else
9076 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9077 fi
9078
9079else
9080
9081 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9082 if test "x$LINE" != x ; then
9083 eval "DEFAULT_$LINE"
9084 else
9085 no_cache=1
9086 fi
9087
9088 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9089
9090fi;
9091
9092 eval "$ac_cv_use_togglebtn"
9093 if test "$no_cache" != 1; then
9094 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9095 fi
9096
9097 if test "$wxUSE_TOGGLEBTN" = yes; then
9098 echo "$as_me:$LINENO: result: yes" >&5
9099echo "${ECHO_T}yes" >&6
9100 else
9101 echo "$as_me:$LINENO: result: no" >&5
9102echo "${ECHO_T}no" >&6
9103 fi
9104
9105
9106 enablestring=
9107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9108echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9109 no_cache=0
9110 # Check whether --enable-toolbar or --disable-toolbar was given.
9111if test "${enable_toolbar+set}" = set; then
9112 enableval="$enable_toolbar"
9113
9114 if test "$enableval" = yes; then
9115 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9116 else
9117 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9118 fi
9119
9120else
9121
9122 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9123 if test "x$LINE" != x ; then
9124 eval "DEFAULT_$LINE"
9125 else
9126 no_cache=1
9127 fi
9128
9129 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9130
9131fi;
9132
9133 eval "$ac_cv_use_toolbar"
9134 if test "$no_cache" != 1; then
9135 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9136 fi
9137
9138 if test "$wxUSE_TOOLBAR" = yes; then
9139 echo "$as_me:$LINENO: result: yes" >&5
9140echo "${ECHO_T}yes" >&6
9141 else
9142 echo "$as_me:$LINENO: result: no" >&5
9143echo "${ECHO_T}no" >&6
9144 fi
9145
9146
9147 enablestring=
9148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9149echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9150 no_cache=0
9151 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9152if test "${enable_tbarnative+set}" = set; then
9153 enableval="$enable_tbarnative"
9154
9155 if test "$enableval" = yes; then
9156 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9157 else
9158 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9159 fi
9160
9161else
9162
9163 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9164 if test "x$LINE" != x ; then
9165 eval "DEFAULT_$LINE"
9166 else
9167 no_cache=1
9168 fi
9169
9170 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9171
9172fi;
9173
9174 eval "$ac_cv_use_tbarnative"
9175 if test "$no_cache" != 1; then
9176 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9177 fi
9178
9179 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9180 echo "$as_me:$LINENO: result: yes" >&5
9181echo "${ECHO_T}yes" >&6
9182 else
9183 echo "$as_me:$LINENO: result: no" >&5
9184echo "${ECHO_T}no" >&6
9185 fi
9186
9187
9188 enablestring=
9189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9190echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9191 no_cache=0
9192 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9193if test "${enable_tbarsmpl+set}" = set; then
9194 enableval="$enable_tbarsmpl"
9195
9196 if test "$enableval" = yes; then
9197 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9198 else
9199 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9200 fi
9201
9202else
9203
9204 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9205 if test "x$LINE" != x ; then
9206 eval "DEFAULT_$LINE"
9207 else
9208 no_cache=1
9209 fi
9210
9211 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9212
9213fi;
9214
9215 eval "$ac_cv_use_tbarsmpl"
9216 if test "$no_cache" != 1; then
9217 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9218 fi
9219
9220 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9221 echo "$as_me:$LINENO: result: yes" >&5
9222echo "${ECHO_T}yes" >&6
9223 else
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
9226 fi
9227
9228
0093c2fc
VZ
9229 enablestring=
9230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9231echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9232 no_cache=0
9233 # Check whether --enable-treebook or --disable-treebook was given.
9234if test "${enable_treebook+set}" = set; then
9235 enableval="$enable_treebook"
9236
9237 if test "$enableval" = yes; then
9238 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9239 else
9240 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9241 fi
9242
9243else
9244
9245 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9246 if test "x$LINE" != x ; then
9247 eval "DEFAULT_$LINE"
9248 else
9249 no_cache=1
9250 fi
9251
9252 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9253
9254fi;
9255
9256 eval "$ac_cv_use_treebook"
9257 if test "$no_cache" != 1; then
9258 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9259 fi
9260
9261 if test "$wxUSE_TREEBOOK" = yes; then
9262 echo "$as_me:$LINENO: result: yes" >&5
9263echo "${ECHO_T}yes" >&6
9264 else
9265 echo "$as_me:$LINENO: result: no" >&5
9266echo "${ECHO_T}no" >&6
9267 fi
9268
9269
5ec3bc43
JS
9270 enablestring=
9271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9272echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9273 no_cache=0
9274 # Check whether --enable-toolbook or --disable-toolbook was given.
9275if test "${enable_toolbook+set}" = set; then
9276 enableval="$enable_toolbook"
9277
9278 if test "$enableval" = yes; then
9279 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9280 else
9281 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9282 fi
9283
9284else
9285
9286 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9287 if test "x$LINE" != x ; then
9288 eval "DEFAULT_$LINE"
9289 else
9290 no_cache=1
9291 fi
9292
9293 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9294
9295fi;
9296
9297 eval "$ac_cv_use_toolbook"
9298 if test "$no_cache" != 1; then
9299 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9300 fi
9301
9302 if test "$wxUSE_TOOLBOOK" = yes; then
9303 echo "$as_me:$LINENO: result: yes" >&5
9304echo "${ECHO_T}yes" >&6
9305 else
9306 echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
9308 fi
9309
9310
a848cd7e
SC
9311 enablestring=
9312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9313echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9314 no_cache=0
9315 # Check whether --enable-treectrl or --disable-treectrl was given.
9316if test "${enable_treectrl+set}" = set; then
9317 enableval="$enable_treectrl"
9318
9319 if test "$enableval" = yes; then
9320 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9321 else
9322 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9323 fi
9324
9325else
9326
9327 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9328 if test "x$LINE" != x ; then
9329 eval "DEFAULT_$LINE"
9330 else
9331 no_cache=1
9332 fi
9333
9334 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9335
9336fi;
9337
9338 eval "$ac_cv_use_treectrl"
9339 if test "$no_cache" != 1; then
9340 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9341 fi
9342
9343 if test "$wxUSE_TREECTRL" = yes; then
9344 echo "$as_me:$LINENO: result: yes" >&5
9345echo "${ECHO_T}yes" >&6
9346 else
9347 echo "$as_me:$LINENO: result: no" >&5
9348echo "${ECHO_T}no" >&6
9349 fi
9350
9351
9352 enablestring=
9353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9354echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9355 no_cache=0
9356 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9357if test "${enable_tipwindow+set}" = set; then
9358 enableval="$enable_tipwindow"
9359
9360 if test "$enableval" = yes; then
9361 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9362 else
9363 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9364 fi
9365
9366else
9367
9368 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9369 if test "x$LINE" != x ; then
9370 eval "DEFAULT_$LINE"
9371 else
9372 no_cache=1
9373 fi
9374
9375 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9376
9377fi;
9378
9379 eval "$ac_cv_use_tipwindow"
9380 if test "$no_cache" != 1; then
9381 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9382 fi
9383
9384 if test "$wxUSE_TIPWINDOW" = yes; then
9385 echo "$as_me:$LINENO: result: yes" >&5
9386echo "${ECHO_T}yes" >&6
9387 else
9388 echo "$as_me:$LINENO: result: no" >&5
9389echo "${ECHO_T}no" >&6
9390 fi
9391
9392
9393 enablestring=
9394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9395echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9396 no_cache=0
9397 # Check whether --enable-popupwin or --disable-popupwin was given.
9398if test "${enable_popupwin+set}" = set; then
9399 enableval="$enable_popupwin"
9400
9401 if test "$enableval" = yes; then
9402 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9403 else
9404 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9405 fi
9406
9407else
9408
9409 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9410 if test "x$LINE" != x ; then
9411 eval "DEFAULT_$LINE"
9412 else
9413 no_cache=1
9414 fi
9415
9416 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9417
9418fi;
9419
9420 eval "$ac_cv_use_popupwin"
9421 if test "$no_cache" != 1; then
9422 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9423 fi
9424
9425 if test "$wxUSE_POPUPWIN" = yes; then
9426 echo "$as_me:$LINENO: result: yes" >&5
9427echo "${ECHO_T}yes" >&6
9428 else
9429 echo "$as_me:$LINENO: result: no" >&5
9430echo "${ECHO_T}no" >&6
9431 fi
9432
9433
9434
9435
9436 enablestring=
9437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9438echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9439 no_cache=0
9440 # Check whether --enable-commondlg or --disable-commondlg was given.
9441if test "${enable_commondlg+set}" = set; then
9442 enableval="$enable_commondlg"
9443
9444 if test "$enableval" = yes; then
9445 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9446 else
9447 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9448 fi
9449
9450else
9451
9452 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9453 if test "x$LINE" != x ; then
9454 eval "DEFAULT_$LINE"
9455 else
9456 no_cache=1
9457 fi
9458
9459 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9460
9461fi;
9462
9463 eval "$ac_cv_use_commondlg"
9464 if test "$no_cache" != 1; then
9465 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9466 fi
9467
9468 if test "$wxUSE_COMMONDLGS" = yes; then
9469 echo "$as_me:$LINENO: result: yes" >&5
9470echo "${ECHO_T}yes" >&6
9471 else
9472 echo "$as_me:$LINENO: result: no" >&5
9473echo "${ECHO_T}no" >&6
9474 fi
9475
9476
9477 enablestring=
9478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9479echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9480 no_cache=0
9481 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9482if test "${enable_choicedlg+set}" = set; then
9483 enableval="$enable_choicedlg"
9484
9485 if test "$enableval" = yes; then
9486 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9487 else
9488 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9489 fi
9490
9491else
9492
9493 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9494 if test "x$LINE" != x ; then
9495 eval "DEFAULT_$LINE"
9496 else
9497 no_cache=1
9498 fi
9499
9500 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9501
9502fi;
9503
9504 eval "$ac_cv_use_choicedlg"
9505 if test "$no_cache" != 1; then
9506 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9507 fi
9508
9509 if test "$wxUSE_CHOICEDLG" = yes; then
9510 echo "$as_me:$LINENO: result: yes" >&5
9511echo "${ECHO_T}yes" >&6
9512 else
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
9515 fi
9516
9517
9518 enablestring=
9519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9520echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9521 no_cache=0
9522 # Check whether --enable-coldlg or --disable-coldlg was given.
9523if test "${enable_coldlg+set}" = set; then
9524 enableval="$enable_coldlg"
9525
9526 if test "$enableval" = yes; then
9527 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9528 else
9529 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9530 fi
9531
9532else
9533
9534 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9535 if test "x$LINE" != x ; then
9536 eval "DEFAULT_$LINE"
9537 else
9538 no_cache=1
9539 fi
9540
9541 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9542
9543fi;
9544
9545 eval "$ac_cv_use_coldlg"
9546 if test "$no_cache" != 1; then
9547 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9548 fi
9549
9550 if test "$wxUSE_COLOURDLG" = yes; then
9551 echo "$as_me:$LINENO: result: yes" >&5
9552echo "${ECHO_T}yes" >&6
9553 else
9554 echo "$as_me:$LINENO: result: no" >&5
9555echo "${ECHO_T}no" >&6
9556 fi
9557
9558
9559 enablestring=
9560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9561echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9562 no_cache=0
9563 # Check whether --enable-filedlg or --disable-filedlg was given.
9564if test "${enable_filedlg+set}" = set; then
9565 enableval="$enable_filedlg"
9566
9567 if test "$enableval" = yes; then
9568 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9569 else
9570 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9571 fi
9572
9573else
9574
9575 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9576 if test "x$LINE" != x ; then
9577 eval "DEFAULT_$LINE"
9578 else
9579 no_cache=1
9580 fi
9581
9582 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9583
9584fi;
9585
9586 eval "$ac_cv_use_filedlg"
9587 if test "$no_cache" != 1; then
9588 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9589 fi
9590
9591 if test "$wxUSE_FILEDLG" = yes; then
9592 echo "$as_me:$LINENO: result: yes" >&5
9593echo "${ECHO_T}yes" >&6
9594 else
9595 echo "$as_me:$LINENO: result: no" >&5
9596echo "${ECHO_T}no" >&6
9597 fi
9598
9599
9600 enablestring=
9601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9602echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9603 no_cache=0
9604 # Check whether --enable-finddlg or --disable-finddlg was given.
9605if test "${enable_finddlg+set}" = set; then
9606 enableval="$enable_finddlg"
9607
9608 if test "$enableval" = yes; then
9609 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9610 else
9611 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9612 fi
9613
9614else
9615
9616 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9617 if test "x$LINE" != x ; then
9618 eval "DEFAULT_$LINE"
9619 else
9620 no_cache=1
9621 fi
9622
9623 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9624
9625fi;
9626
9627 eval "$ac_cv_use_finddlg"
9628 if test "$no_cache" != 1; then
9629 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9630 fi
9631
9632 if test "$wxUSE_FINDREPLDLG" = yes; then
9633 echo "$as_me:$LINENO: result: yes" >&5
9634echo "${ECHO_T}yes" >&6
9635 else
9636 echo "$as_me:$LINENO: result: no" >&5
9637echo "${ECHO_T}no" >&6
9638 fi
9639
9640
9641 enablestring=
9642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9643echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9644 no_cache=0
9645 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9646if test "${enable_fontdlg+set}" = set; then
9647 enableval="$enable_fontdlg"
9648
9649 if test "$enableval" = yes; then
9650 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9651 else
9652 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9653 fi
9654
9655else
9656
9657 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9658 if test "x$LINE" != x ; then
9659 eval "DEFAULT_$LINE"
9660 else
9661 no_cache=1
9662 fi
9663
9664 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9665
9666fi;
9667
9668 eval "$ac_cv_use_fontdlg"
9669 if test "$no_cache" != 1; then
9670 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9671 fi
9672
9673 if test "$wxUSE_FONTDLG" = yes; then
9674 echo "$as_me:$LINENO: result: yes" >&5
9675echo "${ECHO_T}yes" >&6
9676 else
9677 echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6
9679 fi
9680
9681
9682 enablestring=
9683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9684echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9685 no_cache=0
9686 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9687if test "${enable_dirdlg+set}" = set; then
9688 enableval="$enable_dirdlg"
9689
9690 if test "$enableval" = yes; then
9691 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9692 else
9693 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9694 fi
9695
9696else
9697
9698 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9699 if test "x$LINE" != x ; then
9700 eval "DEFAULT_$LINE"
9701 else
9702 no_cache=1
9703 fi
9704
9705 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9706
9707fi;
9708
9709 eval "$ac_cv_use_dirdlg"
9710 if test "$no_cache" != 1; then
9711 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9712 fi
9713
9714 if test "$wxUSE_DIRDLG" = yes; then
9715 echo "$as_me:$LINENO: result: yes" >&5
9716echo "${ECHO_T}yes" >&6
9717 else
9718 echo "$as_me:$LINENO: result: no" >&5
9719echo "${ECHO_T}no" >&6
9720 fi
9721
9722
9723 enablestring=
9724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9725echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9726 no_cache=0
9727 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9728if test "${enable_msgdlg+set}" = set; then
9729 enableval="$enable_msgdlg"
9730
9731 if test "$enableval" = yes; then
9732 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9733 else
9734 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9735 fi
9736
9737else
9738
9739 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9740 if test "x$LINE" != x ; then
9741 eval "DEFAULT_$LINE"
9742 else
9743 no_cache=1
9744 fi
9745
9746 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9747
9748fi;
9749
9750 eval "$ac_cv_use_msgdlg"
9751 if test "$no_cache" != 1; then
9752 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9753 fi
9754
9755 if test "$wxUSE_MSGDLG" = yes; then
9756 echo "$as_me:$LINENO: result: yes" >&5
9757echo "${ECHO_T}yes" >&6
9758 else
9759 echo "$as_me:$LINENO: result: no" >&5
9760echo "${ECHO_T}no" >&6
9761 fi
9762
9763
9764 enablestring=
9765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9766echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9767 no_cache=0
9768 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9769if test "${enable_numberdlg+set}" = set; then
9770 enableval="$enable_numberdlg"
9771
9772 if test "$enableval" = yes; then
9773 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9774 else
9775 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9776 fi
9777
9778else
9779
9780 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9781 if test "x$LINE" != x ; then
9782 eval "DEFAULT_$LINE"
9783 else
9784 no_cache=1
9785 fi
9786
9787 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9788
9789fi;
9790
9791 eval "$ac_cv_use_numberdlg"
9792 if test "$no_cache" != 1; then
9793 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9794 fi
9795
9796 if test "$wxUSE_NUMBERDLG" = yes; then
9797 echo "$as_me:$LINENO: result: yes" >&5
9798echo "${ECHO_T}yes" >&6
9799 else
9800 echo "$as_me:$LINENO: result: no" >&5
9801echo "${ECHO_T}no" >&6
9802 fi
9803
9804
9805 enablestring=
9806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9807echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9808 no_cache=0
9809 # Check whether --enable-splash or --disable-splash was given.
9810if test "${enable_splash+set}" = set; then
9811 enableval="$enable_splash"
9812
9813 if test "$enableval" = yes; then
9814 ac_cv_use_splash='wxUSE_SPLASH=yes'
9815 else
9816 ac_cv_use_splash='wxUSE_SPLASH=no'
9817 fi
9818
9819else
9820
9821 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9822 if test "x$LINE" != x ; then
9823 eval "DEFAULT_$LINE"
9824 else
9825 no_cache=1
9826 fi
9827
9828 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9829
9830fi;
9831
9832 eval "$ac_cv_use_splash"
9833 if test "$no_cache" != 1; then
9834 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9835 fi
9836
9837 if test "$wxUSE_SPLASH" = yes; then
9838 echo "$as_me:$LINENO: result: yes" >&5
9839echo "${ECHO_T}yes" >&6
9840 else
9841 echo "$as_me:$LINENO: result: no" >&5
9842echo "${ECHO_T}no" >&6
9843 fi
9844
9845
9846 enablestring=
9847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9848echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9849 no_cache=0
9850 # Check whether --enable-textdlg or --disable-textdlg was given.
9851if test "${enable_textdlg+set}" = set; then
9852 enableval="$enable_textdlg"
9853
9854 if test "$enableval" = yes; then
9855 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9856 else
9857 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9858 fi
9859
9860else
9861
9862 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9863 if test "x$LINE" != x ; then
9864 eval "DEFAULT_$LINE"
9865 else
9866 no_cache=1
9867 fi
9868
9869 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9870
9871fi;
9872
9873 eval "$ac_cv_use_textdlg"
9874 if test "$no_cache" != 1; then
9875 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9876 fi
9877
9878 if test "$wxUSE_TEXTDLG" = yes; then
9879 echo "$as_me:$LINENO: result: yes" >&5
9880echo "${ECHO_T}yes" >&6
9881 else
9882 echo "$as_me:$LINENO: result: no" >&5
9883echo "${ECHO_T}no" >&6
9884 fi
9885
9886
9887 enablestring=
9888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9889echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9890 no_cache=0
9891 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9892if test "${enable_tipdlg+set}" = set; then
9893 enableval="$enable_tipdlg"
9894
9895 if test "$enableval" = yes; then
9896 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9897 else
9898 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9899 fi
9900
9901else
9902
9903 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9904 if test "x$LINE" != x ; then
9905 eval "DEFAULT_$LINE"
9906 else
9907 no_cache=1
9908 fi
9909
9910 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9911
9912fi;
9913
9914 eval "$ac_cv_use_tipdlg"
9915 if test "$no_cache" != 1; then
9916 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9917 fi
9918
9919 if test "$wxUSE_STARTUP_TIPS" = yes; then
9920 echo "$as_me:$LINENO: result: yes" >&5
9921echo "${ECHO_T}yes" >&6
9922 else
9923 echo "$as_me:$LINENO: result: no" >&5
9924echo "${ECHO_T}no" >&6
9925 fi
9926
9927
9928 enablestring=
9929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9930echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9931 no_cache=0
9932 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9933if test "${enable_progressdlg+set}" = set; then
9934 enableval="$enable_progressdlg"
9935
9936 if test "$enableval" = yes; then
9937 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9938 else
9939 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9940 fi
9941
9942else
9943
9944 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9945 if test "x$LINE" != x ; then
9946 eval "DEFAULT_$LINE"
9947 else
9948 no_cache=1
9949 fi
9950
9951 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9952
9953fi;
9954
9955 eval "$ac_cv_use_progressdlg"
9956 if test "$no_cache" != 1; then
9957 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9958 fi
9959
9960 if test "$wxUSE_PROGRESSDLG" = yes; then
9961 echo "$as_me:$LINENO: result: yes" >&5
9962echo "${ECHO_T}yes" >&6
9963 else
9964 echo "$as_me:$LINENO: result: no" >&5
9965echo "${ECHO_T}no" >&6
9966 fi
9967
9968
9969 enablestring=
9970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9971echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9972 no_cache=0
9973 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9974if test "${enable_wizarddlg+set}" = set; then
9975 enableval="$enable_wizarddlg"
9976
9977 if test "$enableval" = yes; then
9978 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9979 else
9980 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9981 fi
9982
9983else
9984
9985 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9986 if test "x$LINE" != x ; then
9987 eval "DEFAULT_$LINE"
9988 else
9989 no_cache=1
9990 fi
9991
9992 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9993
9994fi;
9995
9996 eval "$ac_cv_use_wizarddlg"
9997 if test "$no_cache" != 1; then
9998 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9999 fi
10000
10001 if test "$wxUSE_WIZARDDLG" = yes; then
10002 echo "$as_me:$LINENO: result: yes" >&5
10003echo "${ECHO_T}yes" >&6
10004 else
10005 echo "$as_me:$LINENO: result: no" >&5
10006echo "${ECHO_T}no" >&6
10007 fi
10008
10009
10010
10011
10012 enablestring=
10013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10014echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10015 no_cache=0
10016 # Check whether --enable-menus or --disable-menus was given.
10017if test "${enable_menus+set}" = set; then
10018 enableval="$enable_menus"
10019
10020 if test "$enableval" = yes; then
10021 ac_cv_use_menus='wxUSE_MENUS=yes'
10022 else
10023 ac_cv_use_menus='wxUSE_MENUS=no'
10024 fi
10025
10026else
10027
10028 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10029 if test "x$LINE" != x ; then
10030 eval "DEFAULT_$LINE"
10031 else
10032 no_cache=1
10033 fi
10034
10035 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10036
10037fi;
10038
10039 eval "$ac_cv_use_menus"
10040 if test "$no_cache" != 1; then
10041 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10042 fi
10043
10044 if test "$wxUSE_MENUS" = yes; then
10045 echo "$as_me:$LINENO: result: yes" >&5
10046echo "${ECHO_T}yes" >&6
10047 else
10048 echo "$as_me:$LINENO: result: no" >&5
10049echo "${ECHO_T}no" >&6
10050 fi
10051
10052
10053 enablestring=
10054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10055echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10056 no_cache=0
10057 # Check whether --enable-miniframe or --disable-miniframe was given.
10058if test "${enable_miniframe+set}" = set; then
10059 enableval="$enable_miniframe"
10060
10061 if test "$enableval" = yes; then
10062 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10063 else
10064 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10065 fi
10066
10067else
10068
10069 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10070 if test "x$LINE" != x ; then
10071 eval "DEFAULT_$LINE"
10072 else
10073 no_cache=1
10074 fi
10075
10076 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10077
10078fi;
10079
10080 eval "$ac_cv_use_miniframe"
10081 if test "$no_cache" != 1; then
10082 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10083 fi
10084
10085 if test "$wxUSE_MINIFRAME" = yes; then
10086 echo "$as_me:$LINENO: result: yes" >&5
10087echo "${ECHO_T}yes" >&6
10088 else
10089 echo "$as_me:$LINENO: result: no" >&5
10090echo "${ECHO_T}no" >&6
10091 fi
10092
10093
10094 enablestring=
10095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10096echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10097 no_cache=0
10098 # Check whether --enable-tooltips or --disable-tooltips was given.
10099if test "${enable_tooltips+set}" = set; then
10100 enableval="$enable_tooltips"
10101
10102 if test "$enableval" = yes; then
10103 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10104 else
10105 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10106 fi
10107
10108else
10109
10110 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10111 if test "x$LINE" != x ; then
10112 eval "DEFAULT_$LINE"
10113 else
10114 no_cache=1
10115 fi
10116
10117 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10118
10119fi;
10120
10121 eval "$ac_cv_use_tooltips"
10122 if test "$no_cache" != 1; then
10123 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10124 fi
10125
10126 if test "$wxUSE_TOOLTIPS" = yes; then
10127 echo "$as_me:$LINENO: result: yes" >&5
10128echo "${ECHO_T}yes" >&6
10129 else
10130 echo "$as_me:$LINENO: result: no" >&5
10131echo "${ECHO_T}no" >&6
10132 fi
10133
10134
10135 enablestring=
10136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10137echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10138 no_cache=0
10139 # Check whether --enable-splines or --disable-splines was given.
10140if test "${enable_splines+set}" = set; then
10141 enableval="$enable_splines"
10142
10143 if test "$enableval" = yes; then
10144 ac_cv_use_splines='wxUSE_SPLINES=yes'
10145 else
10146 ac_cv_use_splines='wxUSE_SPLINES=no'
10147 fi
10148
10149else
10150
10151 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10152 if test "x$LINE" != x ; then
10153 eval "DEFAULT_$LINE"
10154 else
10155 no_cache=1
10156 fi
10157
10158 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10159
10160fi;
10161
10162 eval "$ac_cv_use_splines"
10163 if test "$no_cache" != 1; then
10164 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10165 fi
10166
10167 if test "$wxUSE_SPLINES" = yes; then
10168 echo "$as_me:$LINENO: result: yes" >&5
10169echo "${ECHO_T}yes" >&6
10170 else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173 fi
10174
10175
fbe2ca43
SN
10176 enablestring=
10177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10178echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10179 no_cache=0
10180 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10181if test "${enable_mousewheel+set}" = set; then
10182 enableval="$enable_mousewheel"
10183
10184 if test "$enableval" = yes; then
10185 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10186 else
10187 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10188 fi
10189
10190else
10191
10192 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10193 if test "x$LINE" != x ; then
10194 eval "DEFAULT_$LINE"
10195 else
10196 no_cache=1
10197 fi
10198
10199 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10200
10201fi;
10202
10203 eval "$ac_cv_use_mousewheel"
10204 if test "$no_cache" != 1; then
10205 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10206 fi
10207
10208 if test "$wxUSE_MOUSEWHEEL" = yes; then
10209 echo "$as_me:$LINENO: result: yes" >&5
10210echo "${ECHO_T}yes" >&6
10211 else
10212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
10214 fi
10215
10216
a848cd7e
SC
10217 enablestring=
10218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10219echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10220 no_cache=0
10221 # Check whether --enable-validators or --disable-validators was given.
10222if test "${enable_validators+set}" = set; then
10223 enableval="$enable_validators"
10224
10225 if test "$enableval" = yes; then
10226 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10227 else
10228 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10229 fi
10230
10231else
10232
10233 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10234 if test "x$LINE" != x ; then
10235 eval "DEFAULT_$LINE"
10236 else
10237 no_cache=1
10238 fi
10239
10240 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10241
10242fi;
10243
10244 eval "$ac_cv_use_validators"
10245 if test "$no_cache" != 1; then
10246 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10247 fi
10248
10249 if test "$wxUSE_VALIDATORS" = yes; then
10250 echo "$as_me:$LINENO: result: yes" >&5
10251echo "${ECHO_T}yes" >&6
10252 else
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
10255 fi
10256
10257
10258 enablestring=
10259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10260echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10261 no_cache=0
10262 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10263if test "${enable_busyinfo+set}" = set; then
10264 enableval="$enable_busyinfo"
10265
10266 if test "$enableval" = yes; then
10267 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10268 else
10269 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10270 fi
10271
10272else
10273
10274 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10275 if test "x$LINE" != x ; then
10276 eval "DEFAULT_$LINE"
10277 else
10278 no_cache=1
10279 fi
10280
10281 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10282
10283fi;
10284
10285 eval "$ac_cv_use_busyinfo"
10286 if test "$no_cache" != 1; then
10287 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10288 fi
10289
10290 if test "$wxUSE_BUSYINFO" = yes; then
10291 echo "$as_me:$LINENO: result: yes" >&5
10292echo "${ECHO_T}yes" >&6
10293 else
10294 echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
10296 fi
10297
10298
10299 enablestring=
10300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10301echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10302 no_cache=0
10303 # Check whether --enable-joystick or --disable-joystick was given.
10304if test "${enable_joystick+set}" = set; then
10305 enableval="$enable_joystick"
10306
10307 if test "$enableval" = yes; then
10308 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10309 else
10310 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10311 fi
10312
10313else
10314
10315 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10316 if test "x$LINE" != x ; then
10317 eval "DEFAULT_$LINE"
10318 else
10319 no_cache=1
10320 fi
10321
10322 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10323
10324fi;
10325
10326 eval "$ac_cv_use_joystick"
10327 if test "$no_cache" != 1; then
10328 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10329 fi
10330
10331 if test "$wxUSE_JOYSTICK" = yes; then
10332 echo "$as_me:$LINENO: result: yes" >&5
10333echo "${ECHO_T}yes" >&6
10334 else
10335 echo "$as_me:$LINENO: result: no" >&5
10336echo "${ECHO_T}no" >&6
10337 fi
10338
10339
10340 enablestring=
10341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10342echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10343 no_cache=0
10344 # Check whether --enable-metafile or --disable-metafile was given.
10345if test "${enable_metafile+set}" = set; then
10346 enableval="$enable_metafile"
10347
10348 if test "$enableval" = yes; then
10349 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10350 else
10351 ac_cv_use_metafile='wxUSE_METAFILE=no'
10352 fi
10353
10354else
10355
10356 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10357 if test "x$LINE" != x ; then
10358 eval "DEFAULT_$LINE"
10359 else
10360 no_cache=1
10361 fi
10362
10363 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10364
10365fi;
10366
10367 eval "$ac_cv_use_metafile"
10368 if test "$no_cache" != 1; then
10369 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10370 fi
10371
10372 if test "$wxUSE_METAFILE" = yes; then
10373 echo "$as_me:$LINENO: result: yes" >&5
10374echo "${ECHO_T}yes" >&6
10375 else
10376 echo "$as_me:$LINENO: result: no" >&5
10377echo "${ECHO_T}no" >&6
10378 fi
10379
10380
10381 enablestring=
10382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10383echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10384 no_cache=0
10385 # Check whether --enable-dragimage or --disable-dragimage was given.
10386if test "${enable_dragimage+set}" = set; then
10387 enableval="$enable_dragimage"
10388
10389 if test "$enableval" = yes; then
10390 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10391 else
10392 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10393 fi
10394
10395else
10396
10397 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10398 if test "x$LINE" != x ; then
10399 eval "DEFAULT_$LINE"
10400 else
10401 no_cache=1
10402 fi
10403
10404 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10405
10406fi;
10407
10408 eval "$ac_cv_use_dragimage"
10409 if test "$no_cache" != 1; then
10410 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10411 fi
10412
10413 if test "$wxUSE_DRAGIMAGE" = yes; then
10414 echo "$as_me:$LINENO: result: yes" >&5
10415echo "${ECHO_T}yes" >&6
10416 else
10417 echo "$as_me:$LINENO: result: no" >&5
10418echo "${ECHO_T}no" >&6
10419 fi
10420
10421
10422 enablestring=
10423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10424echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10425 no_cache=0
10426 # Check whether --enable-accessibility or --disable-accessibility was given.
10427if test "${enable_accessibility+set}" = set; then
10428 enableval="$enable_accessibility"
10429
10430 if test "$enableval" = yes; then
10431 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10432 else
10433 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10434 fi
10435
10436else
10437
10438 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10439 if test "x$LINE" != x ; then
10440 eval "DEFAULT_$LINE"
10441 else
10442 no_cache=1
10443 fi
10444
10445 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10446
10447fi;
10448
10449 eval "$ac_cv_use_accessibility"
10450 if test "$no_cache" != 1; then
10451 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10452 fi
10453
10454 if test "$wxUSE_ACCESSIBILITY" = yes; then
10455 echo "$as_me:$LINENO: result: yes" >&5
10456echo "${ECHO_T}yes" >&6
10457 else
10458 echo "$as_me:$LINENO: result: no" >&5
10459echo "${ECHO_T}no" >&6
10460 fi
10461
10462
38b4a946
VZ
10463if test "$wxUSE_MSW" = "1"; then
10464
10465 enablestring=
10466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10467echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10468 no_cache=0
10469 # Check whether --enable-dccache or --disable-dccache was given.
10470if test "${enable_dccache+set}" = set; then
10471 enableval="$enable_dccache"
10472
10473 if test "$enableval" = yes; then
10474 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10475 else
10476 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10477 fi
10478
10479else
10480
10481 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10482 if test "x$LINE" != x ; then
10483 eval "DEFAULT_$LINE"
10484 else
10485 no_cache=1
10486 fi
10487
10488 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10489
10490fi;
10491
10492 eval "$ac_cv_use_dccache"
10493 if test "$no_cache" != 1; then
10494 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10495 fi
10496
10497 if test "$wxUSE_DC_CACHEING" = yes; then
10498 echo "$as_me:$LINENO: result: yes" >&5
10499echo "${ECHO_T}yes" >&6
10500 else
10501 echo "$as_me:$LINENO: result: no" >&5
10502echo "${ECHO_T}no" >&6
10503 fi
10504
10505fi
10506
a848cd7e
SC
10507
10508
10509 enablestring=
10510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10511echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10512 no_cache=0
10513 # Check whether --enable-palette or --disable-palette was given.
10514if test "${enable_palette+set}" = set; then
10515 enableval="$enable_palette"
10516
10517 if test "$enableval" = yes; then
10518 ac_cv_use_palette='wxUSE_PALETTE=yes'
10519 else
10520 ac_cv_use_palette='wxUSE_PALETTE=no'
10521 fi
10522
10523else
10524
10525 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10526 if test "x$LINE" != x ; then
10527 eval "DEFAULT_$LINE"
10528 else
10529 no_cache=1
10530 fi
10531
10532 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10533
10534fi;
10535
10536 eval "$ac_cv_use_palette"
10537 if test "$no_cache" != 1; then
10538 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10539 fi
10540
10541 if test "$wxUSE_PALETTE" = yes; then
10542 echo "$as_me:$LINENO: result: yes" >&5
10543echo "${ECHO_T}yes" >&6
10544 else
10545 echo "$as_me:$LINENO: result: no" >&5
10546echo "${ECHO_T}no" >&6
10547 fi
10548
10549
10550 enablestring=
10551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10552echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10553 no_cache=0
10554 # Check whether --enable-image or --disable-image was given.
10555if test "${enable_image+set}" = set; then
10556 enableval="$enable_image"
10557
10558 if test "$enableval" = yes; then
10559 ac_cv_use_image='wxUSE_IMAGE=yes'
10560 else
10561 ac_cv_use_image='wxUSE_IMAGE=no'
10562 fi
10563
10564else
10565
10566 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10567 if test "x$LINE" != x ; then
10568 eval "DEFAULT_$LINE"
10569 else
10570 no_cache=1
10571 fi
10572
10573 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10574
10575fi;
10576
10577 eval "$ac_cv_use_image"
10578 if test "$no_cache" != 1; then
10579 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10580 fi
10581
10582 if test "$wxUSE_IMAGE" = yes; then
10583 echo "$as_me:$LINENO: result: yes" >&5
10584echo "${ECHO_T}yes" >&6
10585 else
10586 echo "$as_me:$LINENO: result: no" >&5
10587echo "${ECHO_T}no" >&6
10588 fi
10589
10590
10591 enablestring=
10592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10593echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10594 no_cache=0
10595 # Check whether --enable-gif or --disable-gif was given.
10596if test "${enable_gif+set}" = set; then
10597 enableval="$enable_gif"
10598
10599 if test "$enableval" = yes; then
10600 ac_cv_use_gif='wxUSE_GIF=yes'
10601 else
10602 ac_cv_use_gif='wxUSE_GIF=no'
10603 fi
10604
10605else
10606
10607 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10608 if test "x$LINE" != x ; then
10609 eval "DEFAULT_$LINE"
10610 else
10611 no_cache=1
10612 fi
10613
10614 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10615
10616fi;
10617
10618 eval "$ac_cv_use_gif"
10619 if test "$no_cache" != 1; then
10620 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10621 fi
10622
10623 if test "$wxUSE_GIF" = yes; then
10624 echo "$as_me:$LINENO: result: yes" >&5
10625echo "${ECHO_T}yes" >&6
10626 else
10627 echo "$as_me:$LINENO: result: no" >&5
10628echo "${ECHO_T}no" >&6
10629 fi
10630
10631
10632 enablestring=
10633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10634echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10635 no_cache=0
10636 # Check whether --enable-pcx or --disable-pcx was given.
10637if test "${enable_pcx+set}" = set; then
10638 enableval="$enable_pcx"
10639
10640 if test "$enableval" = yes; then
10641 ac_cv_use_pcx='wxUSE_PCX=yes'
10642 else
10643 ac_cv_use_pcx='wxUSE_PCX=no'
10644 fi
10645
10646else
10647
10648 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10649 if test "x$LINE" != x ; then
10650 eval "DEFAULT_$LINE"
10651 else
10652 no_cache=1
10653 fi
10654
10655 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10656
10657fi;
10658
10659 eval "$ac_cv_use_pcx"
10660 if test "$no_cache" != 1; then
10661 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10662 fi
10663
10664 if test "$wxUSE_PCX" = yes; then
10665 echo "$as_me:$LINENO: result: yes" >&5
10666echo "${ECHO_T}yes" >&6
10667 else
10668 echo "$as_me:$LINENO: result: no" >&5
10669echo "${ECHO_T}no" >&6
10670 fi
10671
10672
10673 enablestring=
10674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10675echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10676 no_cache=0
10677 # Check whether --enable-iff or --disable-iff was given.
10678if test "${enable_iff+set}" = set; then
10679 enableval="$enable_iff"
10680
10681 if test "$enableval" = yes; then
10682 ac_cv_use_iff='wxUSE_IFF=yes'
10683 else
10684 ac_cv_use_iff='wxUSE_IFF=no'
10685 fi
10686
10687else
10688
10689 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10690 if test "x$LINE" != x ; then
10691 eval "DEFAULT_$LINE"
10692 else
10693 no_cache=1
10694 fi
10695
10696 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10697
10698fi;
10699
10700 eval "$ac_cv_use_iff"
10701 if test "$no_cache" != 1; then
10702 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10703 fi
10704
10705 if test "$wxUSE_IFF" = yes; then
10706 echo "$as_me:$LINENO: result: yes" >&5
10707echo "${ECHO_T}yes" >&6
10708 else
10709 echo "$as_me:$LINENO: result: no" >&5
10710echo "${ECHO_T}no" >&6
10711 fi
10712
10713
10714 enablestring=
10715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10716echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10717 no_cache=0
10718 # Check whether --enable-pnm or --disable-pnm was given.
10719if test "${enable_pnm+set}" = set; then
10720 enableval="$enable_pnm"
10721
10722 if test "$enableval" = yes; then
10723 ac_cv_use_pnm='wxUSE_PNM=yes'
10724 else
10725 ac_cv_use_pnm='wxUSE_PNM=no'
10726 fi
10727
10728else
10729
10730 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10731 if test "x$LINE" != x ; then
10732 eval "DEFAULT_$LINE"
10733 else
10734 no_cache=1
10735 fi
10736
10737 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10738
10739fi;
10740
10741 eval "$ac_cv_use_pnm"
10742 if test "$no_cache" != 1; then
10743 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10744 fi
10745
10746 if test "$wxUSE_PNM" = yes; then
10747 echo "$as_me:$LINENO: result: yes" >&5
10748echo "${ECHO_T}yes" >&6
10749 else
10750 echo "$as_me:$LINENO: result: no" >&5
10751echo "${ECHO_T}no" >&6
10752 fi
10753
10754
10755 enablestring=
10756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10757echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10758 no_cache=0
10759 # Check whether --enable-xpm or --disable-xpm was given.
10760if test "${enable_xpm+set}" = set; then
10761 enableval="$enable_xpm"
10762
10763 if test "$enableval" = yes; then
10764 ac_cv_use_xpm='wxUSE_XPM=yes'
10765 else
10766 ac_cv_use_xpm='wxUSE_XPM=no'
10767 fi
10768
10769else
10770
10771 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10772 if test "x$LINE" != x ; then
10773 eval "DEFAULT_$LINE"
10774 else
10775 no_cache=1
10776 fi
10777
10778 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10779
10780fi;
10781
10782 eval "$ac_cv_use_xpm"
10783 if test "$no_cache" != 1; then
10784 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10785 fi
10786
10787 if test "$wxUSE_XPM" = yes; then
10788 echo "$as_me:$LINENO: result: yes" >&5
10789echo "${ECHO_T}yes" >&6
10790 else
10791 echo "$as_me:$LINENO: result: no" >&5
10792echo "${ECHO_T}no" >&6
10793 fi
10794
10795
10796 enablestring=
10797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10798echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10799 no_cache=0
10800 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10801if test "${enable_ico_cur+set}" = set; then
10802 enableval="$enable_ico_cur"
10803
10804 if test "$enableval" = yes; then
10805 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10806 else
10807 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10808 fi
10809
10810else
10811
10812 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10813 if test "x$LINE" != x ; then
10814 eval "DEFAULT_$LINE"
10815 else
10816 no_cache=1
10817 fi
10818
10819 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10820
10821fi;
10822
10823 eval "$ac_cv_use_ico_cur"
10824 if test "$no_cache" != 1; then
10825 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10826 fi
10827
10828 if test "$wxUSE_ICO_CUR" = yes; then
10829 echo "$as_me:$LINENO: result: yes" >&5
10830echo "${ECHO_T}yes" >&6
10831 else
10832 echo "$as_me:$LINENO: result: no" >&5
10833echo "${ECHO_T}no" >&6
10834 fi
10835
10836
10837fi
10838
10839
10840
ceec2216
RL
10841# Check whether --with-flavour or --without-flavour was given.
10842if test "${with_flavour+set}" = set; then
10843 withval="$with_flavour"
10844 WX_FLAVOUR="$withval"
10845fi;
10846
10847
10848
a848cd7e
SC
10849 enablestring=
10850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10851echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10852 no_cache=0
10853 # Check whether --enable-official_build or --disable-official_build was given.
10854if test "${enable_official_build+set}" = set; then
10855 enableval="$enable_official_build"
10856
10857 if test "$enableval" = yes; then
10858 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10859 else
10860 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10861 fi
10862
10863else
10864
10865 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10866 if test "x$LINE" != x ; then
10867 eval "DEFAULT_$LINE"
10868 else
10869 no_cache=1
10870 fi
10871
10872 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10873
10874fi;
10875
10876 eval "$ac_cv_use_official_build"
10877 if test "$no_cache" != 1; then
10878 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10879 fi
10880
10881 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10882 echo "$as_me:$LINENO: result: yes" >&5
10883echo "${ECHO_T}yes" >&6
10884 else
10885 echo "$as_me:$LINENO: result: no" >&5
10886echo "${ECHO_T}no" >&6
10887 fi
10888
10889# Check whether --enable-vendor or --disable-vendor was given.
10890if test "${enable_vendor+set}" = set; then
10891 enableval="$enable_vendor"
10892 VENDOR="$enableval"
10893fi;
10894if test "x$VENDOR" = "x"; then
10895 VENDOR="custom"
10896fi
10897
a848cd7e
SC
10898
10899
10900
10901 echo "saving argument cache $wx_arg_cache_file"
10902 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10903
10904
10905
10906echo "$as_me:$LINENO: checking for toolkit" >&5
10907echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10908
10909# In Wine, we need to default to MSW, not GTK or MOTIF
10910if test "$wxUSE_WINE" = "yes"; then
10911 DEFAULT_DEFAULT_wxUSE_GTK=0
10912 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10913 DEFAULT_DEFAULT_wxUSE_MSW=1
10914 wxUSE_SHARED=no
10915fi
10916
f597b41c 10917
a848cd7e
SC
10918if test "$wxUSE_GUI" = "yes"; then
10919
10920 if test "$USE_BEOS" = 1; then
10921 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10922echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10923 { (exit 1); exit 1; }; }
10924 fi
10925
10926 if test "$TOOLKIT_GIVEN" = 1; then
10927 for toolkit in `echo $ALL_TOOLKITS`; do
10928 var=wxUSE_$toolkit
10929 eval "value=\$${var}"
f34ca037
MW
10930 if test "x$value" = "xno"; then
10931 eval "$var=0"
10932 elif test "x$value" != "x"; then
10933 eval "$var=1"
10934 fi
10935
10936 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10937 eval "wx${toolkit}_VERSION=$value"
10938 fi
a848cd7e
SC
10939 done
10940 else
10941 for toolkit in `echo $ALL_TOOLKITS`; do
10942 if test "$has_toolkit_in_cache" != 1; then
10943 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10944 else
10945 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10946
10947 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10948 if test "x$version" != "x"; then
10949 eval "wx${toolkit}_VERSION=$version"
10950 fi
a848cd7e
SC
10951 fi
10952 eval "wxUSE_$toolkit=\$${var}"
10953 done
10954 fi
10955
10956 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10957 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10958 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10959
10960 case "${host}" in
10961 *-pc-os2_emx | *-pc-os2-emx )
10962 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10963 esac
10964
10965 case "$NUM_TOOLKITS" in
10966 1)
10967 ;;
10968 0)
10969 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10970echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10971 { (exit 1); exit 1; }; }
10972 ;;
10973 *)
10974 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10975echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10976 { (exit 1); exit 1; }; }
10977 esac
10978
f34ca037
MW
10979 # to be removed when --disable-gtk2 isn't needed
10980 if test "x$wxUSE_GTK2" = "xyes"; then
10981 wxGTK_VERSION=2
10982 elif test "x$wxUSE_GTK2" = "xno"; then
10983 wxGTK_VERSION=1
10984 fi
10985
a848cd7e
SC
10986 for toolkit in `echo $ALL_TOOLKITS`; do
10987 var=wxUSE_$toolkit
10988 eval "value=\$${var}"
10989 if test "x$value" != x; then
10990 cache_var=CACHE_$toolkit
10991 eval "cache=\$${cache_var}"
10992 if test "$cache" = 1; then
10993 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10994 eval "version=\$wx${toolkit}_VERSION"
10995 if test "x$version" != "x"; then
10996 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10997 fi
a848cd7e
SC
10998 fi
10999 if test "$value" = 1; then
11000 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11001 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11002echo "${ECHO_T}$toolkit_echo" >&6
11003 fi
11004 fi
11005 done
11006else
11007 if test "x$host_alias" != "x"; then
11008 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11009echo "${ECHO_T}base ($host_alias hosted) only" >&6
11010 else
11011 echo "$as_me:$LINENO: result: base only" >&5
11012echo "${ECHO_T}base only" >&6
11013 fi
11014fi
11015
11016wants_win32=0
11017doesnt_want_win32=0
11018case "${host}" in
11019 *-*-cygwin*)
11020 if test "$wxUSE_MSW" = 1 ; then
11021 wants_win32=1
7275146d 11022 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11023 else
11024 doesnt_want_win32=1
11025 fi
11026 ;;
11027 *-*-mingw*)
11028 wants_win32=1
11029 ;;
11030esac
11031
11032if test "$wxUSE_WINE" = "yes"; then
11033 wants_win32=1
11034 CC=winegcc
11035 CXX=wineg++
a848cd7e
SC
11036 LDFLAGS_GUI="-mwindows"
11037fi
11038
11039if test "$wants_win32" = 1 ; then
11040 USE_UNIX=0
11041 USE_WIN32=1
11042 cat >>confdefs.h <<\_ACEOF
11043#define __WIN32__ 1
11044_ACEOF
11045
11046 cat >>confdefs.h <<\_ACEOF
11047#define __WIN95__ 1
11048_ACEOF
11049
11050 cat >>confdefs.h <<\_ACEOF
11051#define __WINDOWS__ 1
11052_ACEOF
11053
11054 cat >>confdefs.h <<\_ACEOF
11055#define __GNUWIN32__ 1
11056_ACEOF
11057
11058 cat >>confdefs.h <<\_ACEOF
11059#define STRICT 1
11060_ACEOF
11061
11062 cat >>confdefs.h <<\_ACEOF
11063#define WINVER 0x0400
11064_ACEOF
11065
11066fi
11067if test "$doesnt_want_win32" = 1 ; then
11068 USE_UNIX=1
11069 USE_WIN32=0
11070fi
11071
11072if test "$USE_UNIX" = 1 ; then
11073 wxUSE_UNIX=yes
11074 cat >>confdefs.h <<\_ACEOF
11075#define __UNIX__ 1
11076_ACEOF
11077
11078fi
11079
11080
11081cat >confcache <<\_ACEOF
11082# This file is a shell script that caches the results of configure
11083# tests run on this system so they can be shared between configure
11084# scripts and configure runs, see configure's option --config-cache.
11085# It is not useful on other systems. If it contains results you don't
11086# want to keep, you may remove or edit it.
11087#
11088# config.status only pays attention to the cache file if you give it
11089# the --recheck option to rerun configure.
11090#
11091# `ac_cv_env_foo' variables (set or unset) will be overridden when
11092# loading this file, other *unset* `ac_cv_foo' will be assigned the
11093# following values.
11094
11095_ACEOF
11096
11097# The following way of writing the cache mishandles newlines in values,
11098# but we know of no workaround that is simple, portable, and efficient.
11099# So, don't put newlines in cache variables' values.
11100# Ultrix sh set writes to stderr and can't be redirected directly,
11101# and sets the high bit in the cache file unless we assign to the vars.
11102{
11103 (set) 2>&1 |
11104 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11105 *ac_space=\ *)
11106 # `set' does not quote correctly, so add quotes (double-quote
11107 # substitution turns \\\\ into \\, and sed turns \\ into \).
11108 sed -n \
ac1cb8d3
VS
11109 "s/'/'\\\\''/g;
11110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11111 ;;
11112 *)
11113 # `set' quotes correctly as required by POSIX, so do not add quotes.
11114 sed -n \
ac1cb8d3 11115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11116 ;;
11117 esac;
11118} |
11119 sed '
11120 t clear
11121 : clear
11122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11123 t end
11124 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11125 : end' >>confcache
11126if diff $cache_file confcache >/dev/null 2>&1; then :; else
11127 if test -w $cache_file; then
11128 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11129 cat confcache >$cache_file
11130 else
11131 echo "not updating unwritable cache $cache_file"
11132 fi
11133fi
11134rm -f confcache
11135
a848cd7e 11136CFLAGS=${CFLAGS:=}
6dcfc289
DE
11137
11138
3006edc0 11139
6dcfc289 11140 ac_ext=c
a848cd7e
SC
11141ac_cpp='$CPP $CPPFLAGS'
11142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144ac_compiler_gnu=$ac_cv_c_compiler_gnu
11145if test -n "$ac_tool_prefix"; then
11146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11147set dummy ${ac_tool_prefix}gcc; ac_word=$2
11148echo "$as_me:$LINENO: checking for $ac_word" >&5
11149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11150if test "${ac_cv_prog_CC+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11152else
11153 if test -n "$CC"; then
11154 ac_cv_prog_CC="$CC" # Let the user override the test.
11155else
11156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157for as_dir in $PATH
11158do
11159 IFS=$as_save_IFS
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 break 2
11166 fi
11167done
11168done
11169
11170fi
11171fi
11172CC=$ac_cv_prog_CC
11173if test -n "$CC"; then
11174 echo "$as_me:$LINENO: result: $CC" >&5
11175echo "${ECHO_T}$CC" >&6
11176else
11177 echo "$as_me:$LINENO: result: no" >&5
11178echo "${ECHO_T}no" >&6
11179fi
11180
11181fi
11182if test -z "$ac_cv_prog_CC"; then
11183 ac_ct_CC=$CC
11184 # Extract the first word of "gcc", so it can be a program name with args.
11185set dummy gcc; ac_word=$2
11186echo "$as_me:$LINENO: checking for $ac_word" >&5
11187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11188if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190else
11191 if test -n "$ac_ct_CC"; then
11192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11193else
11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195for as_dir in $PATH
11196do
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201 ac_cv_prog_ac_ct_CC="gcc"
11202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11203 break 2
11204 fi
11205done
11206done
11207
11208fi
11209fi
11210ac_ct_CC=$ac_cv_prog_ac_ct_CC
11211if test -n "$ac_ct_CC"; then
11212 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11213echo "${ECHO_T}$ac_ct_CC" >&6
11214else
11215 echo "$as_me:$LINENO: result: no" >&5
11216echo "${ECHO_T}no" >&6
11217fi
11218
11219 CC=$ac_ct_CC
11220else
11221 CC="$ac_cv_prog_CC"
11222fi
11223
11224if test -z "$CC"; then
11225 if test -n "$ac_tool_prefix"; then
11226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11227set dummy ${ac_tool_prefix}cc; ac_word=$2
11228echo "$as_me:$LINENO: checking for $ac_word" >&5
11229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11230if test "${ac_cv_prog_CC+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232else
11233 if test -n "$CC"; then
11234 ac_cv_prog_CC="$CC" # Let the user override the test.
11235else
11236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237for as_dir in $PATH
11238do
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11243 ac_cv_prog_CC="${ac_tool_prefix}cc"
11244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 break 2
11246 fi
11247done
11248done
11249
11250fi
11251fi
11252CC=$ac_cv_prog_CC
11253if test -n "$CC"; then
11254 echo "$as_me:$LINENO: result: $CC" >&5
11255echo "${ECHO_T}$CC" >&6
11256else
11257 echo "$as_me:$LINENO: result: no" >&5
11258echo "${ECHO_T}no" >&6
11259fi
11260
11261fi
11262if test -z "$ac_cv_prog_CC"; then
11263 ac_ct_CC=$CC
11264 # Extract the first word of "cc", so it can be a program name with args.
11265set dummy cc; ac_word=$2
11266echo "$as_me:$LINENO: checking for $ac_word" >&5
11267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270else
11271 if test -n "$ac_ct_CC"; then
11272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11273else
11274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281 ac_cv_prog_ac_ct_CC="cc"
11282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11284 fi
11285done
11286done
11287
11288fi
11289fi
11290ac_ct_CC=$ac_cv_prog_ac_ct_CC
11291if test -n "$ac_ct_CC"; then
11292 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11293echo "${ECHO_T}$ac_ct_CC" >&6
11294else
11295 echo "$as_me:$LINENO: result: no" >&5
11296echo "${ECHO_T}no" >&6
11297fi
11298
11299 CC=$ac_ct_CC
11300else
11301 CC="$ac_cv_prog_CC"
11302fi
11303
11304fi
11305if test -z "$CC"; then
11306 # Extract the first word of "cc", so it can be a program name with args.
11307set dummy cc; ac_word=$2
11308echo "$as_me:$LINENO: checking for $ac_word" >&5
11309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11310if test "${ac_cv_prog_CC+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312else
11313 if test -n "$CC"; then
11314 ac_cv_prog_CC="$CC" # Let the user override the test.
11315else
11316 ac_prog_rejected=no
11317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318for as_dir in $PATH
11319do
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11324 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11325 ac_prog_rejected=yes
11326 continue
11327 fi
11328 ac_cv_prog_CC="cc"
11329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11330 break 2
11331 fi
11332done
11333done
11334
11335if test $ac_prog_rejected = yes; then
11336 # We found a bogon in the path, so make sure we never use it.
11337 set dummy $ac_cv_prog_CC
11338 shift
11339 if test $# != 0; then
11340 # We chose a different compiler from the bogus one.
11341 # However, it has the same basename, so the bogon will be chosen
11342 # first if we set CC to just the basename; use the full file name.
11343 shift
11344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11345 fi
11346fi
11347fi
11348fi
11349CC=$ac_cv_prog_CC
11350if test -n "$CC"; then
11351 echo "$as_me:$LINENO: result: $CC" >&5
11352echo "${ECHO_T}$CC" >&6
11353else
11354 echo "$as_me:$LINENO: result: no" >&5
11355echo "${ECHO_T}no" >&6
11356fi
11357
11358fi
11359if test -z "$CC"; then
11360 if test -n "$ac_tool_prefix"; then
11361 for ac_prog in cl
11362 do
11363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11364set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11365echo "$as_me:$LINENO: checking for $ac_word" >&5
11366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367if test "${ac_cv_prog_CC+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369else
11370 if test -n "$CC"; then
11371 ac_cv_prog_CC="$CC" # Let the user override the test.
11372else
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384done
11385done
11386
11387fi
11388fi
11389CC=$ac_cv_prog_CC
11390if test -n "$CC"; then
11391 echo "$as_me:$LINENO: result: $CC" >&5
11392echo "${ECHO_T}$CC" >&6
11393else
11394 echo "$as_me:$LINENO: result: no" >&5
11395echo "${ECHO_T}no" >&6
11396fi
11397
11398 test -n "$CC" && break
11399 done
11400fi
11401if test -z "$CC"; then
11402 ac_ct_CC=$CC
11403 for ac_prog in cl
11404do
11405 # Extract the first word of "$ac_prog", so it can be a program name with args.
11406set dummy $ac_prog; ac_word=$2
11407echo "$as_me:$LINENO: checking for $ac_word" >&5
11408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11409if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 if test -n "$ac_ct_CC"; then
11413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11414else
11415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416for as_dir in $PATH
11417do
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
11420 for ac_exec_ext in '' $ac_executable_extensions; do
11421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11422 ac_cv_prog_ac_ct_CC="$ac_prog"
11423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 break 2
11425 fi
11426done
11427done
11428
11429fi
11430fi
11431ac_ct_CC=$ac_cv_prog_ac_ct_CC
11432if test -n "$ac_ct_CC"; then
11433 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11434echo "${ECHO_T}$ac_ct_CC" >&6
11435else
11436 echo "$as_me:$LINENO: result: no" >&5
11437echo "${ECHO_T}no" >&6
11438fi
11439
11440 test -n "$ac_ct_CC" && break
11441done
11442
11443 CC=$ac_ct_CC
11444fi
11445
11446fi
11447
11448
11449test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11450See \`config.log' for more details." >&5
11451echo "$as_me: error: no acceptable C compiler found in \$PATH
11452See \`config.log' for more details." >&2;}
11453 { (exit 1); exit 1; }; }
11454
11455# Provide some information about the compiler.
11456echo "$as_me:$LINENO:" \
11457 "checking for C compiler version" >&5
11458ac_compiler=`set X $ac_compile; echo $2`
11459{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11460 (eval $ac_compiler --version </dev/null >&5) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }
11464{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11465 (eval $ac_compiler -v </dev/null >&5) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }
11469{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11470 (eval $ac_compiler -V </dev/null >&5) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }
11474
11475cat >conftest.$ac_ext <<_ACEOF
11476/* confdefs.h. */
11477_ACEOF
11478cat confdefs.h >>conftest.$ac_ext
11479cat >>conftest.$ac_ext <<_ACEOF
11480/* end confdefs.h. */
11481
11482int
11483main ()
11484{
11485
11486 ;
11487 return 0;
11488}
11489_ACEOF
11490ac_clean_files_save=$ac_clean_files
11491ac_clean_files="$ac_clean_files a.out a.exe b.out"
11492# Try to create an executable without -o first, disregard a.out.
11493# It will help us diagnose broken compilers, and finding out an intuition
11494# of exeext.
ac1cb8d3
VS
11495echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11496echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11497ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11498if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11499 (eval $ac_link_default) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; then
11503 # Find the output, starting from the most likely. This scheme is
11504# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11505# resort.
11506
11507# Be careful to initialize this variable, since it used to be cached.
11508# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11509ac_cv_exeext=
11510# b.out is created by i960 compilers.
11511for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11512do
11513 test -f "$ac_file" || continue
11514 case $ac_file in
11515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11516 ;;
a848cd7e 11517 conftest.$ac_ext )
ac1cb8d3
VS
11518 # This is the source file.
11519 ;;
a848cd7e 11520 [ab].out )
ac1cb8d3
VS
11521 # We found the default executable, but exeext='' is most
11522 # certainly right.
11523 break;;
a848cd7e 11524 *.* )
ac1cb8d3
VS
11525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11526 # FIXME: I believe we export ac_cv_exeext for Libtool,
11527 # but it would be cool to find out if it's true. Does anybody
11528 # maintain Libtool? --akim.
11529 export ac_cv_exeext
11530 break;;
a848cd7e 11531 * )
ac1cb8d3 11532 break;;
a848cd7e
SC
11533 esac
11534done
11535else
11536 echo "$as_me: failed program was:" >&5
11537sed 's/^/| /' conftest.$ac_ext >&5
11538
11539{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11540See \`config.log' for more details." >&5
11541echo "$as_me: error: C compiler cannot create executables
11542See \`config.log' for more details." >&2;}
11543 { (exit 77); exit 77; }; }
11544fi
11545
11546ac_exeext=$ac_cv_exeext
11547echo "$as_me:$LINENO: result: $ac_file" >&5
11548echo "${ECHO_T}$ac_file" >&6
11549
11550# Check the compiler produces executables we can run. If not, either
11551# the compiler is broken, or we cross compile.
11552echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11553echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11554# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11555# If not cross compiling, check that we can run a simple program.
11556if test "$cross_compiling" != yes; then
11557 if { ac_try='./$ac_file'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; }; then
11563 cross_compiling=no
11564 else
11565 if test "$cross_compiling" = maybe; then
11566 cross_compiling=yes
11567 else
11568 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11569If you meant to cross compile, use \`--host'.
11570See \`config.log' for more details." >&5
11571echo "$as_me: error: cannot run C compiled programs.
11572If you meant to cross compile, use \`--host'.
11573See \`config.log' for more details." >&2;}
11574 { (exit 1); exit 1; }; }
11575 fi
11576 fi
11577fi
11578echo "$as_me:$LINENO: result: yes" >&5
11579echo "${ECHO_T}yes" >&6
11580
11581rm -f a.out a.exe conftest$ac_cv_exeext b.out
11582ac_clean_files=$ac_clean_files_save
11583# Check the compiler produces executables we can run. If not, either
11584# the compiler is broken, or we cross compile.
11585echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11586echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11587echo "$as_me:$LINENO: result: $cross_compiling" >&5
11588echo "${ECHO_T}$cross_compiling" >&6
11589
11590echo "$as_me:$LINENO: checking for suffix of executables" >&5
11591echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; then
11597 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11598# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11599# work properly (i.e., refer to `conftest.exe'), while it won't with
11600# `rm'.
11601for ac_file in conftest.exe conftest conftest.*; do
11602 test -f "$ac_file" || continue
11603 case $ac_file in
11604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11606 export ac_cv_exeext
11607 break;;
a848cd7e
SC
11608 * ) break;;
11609 esac
11610done
11611else
11612 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11613See \`config.log' for more details." >&5
11614echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11615See \`config.log' for more details." >&2;}
11616 { (exit 1); exit 1; }; }
11617fi
11618
11619rm -f conftest$ac_cv_exeext
11620echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11621echo "${ECHO_T}$ac_cv_exeext" >&6
11622
11623rm -f conftest.$ac_ext
11624EXEEXT=$ac_cv_exeext
11625ac_exeext=$EXEEXT
11626echo "$as_me:$LINENO: checking for suffix of object files" >&5
11627echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11628if test "${ac_cv_objext+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630else
11631 cat >conftest.$ac_ext <<_ACEOF
11632/* confdefs.h. */
11633_ACEOF
11634cat confdefs.h >>conftest.$ac_ext
11635cat >>conftest.$ac_ext <<_ACEOF
11636/* end confdefs.h. */
11637
11638int
11639main ()
11640{
11641
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646rm -f conftest.o conftest.obj
11647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648 (eval $ac_compile) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; then
11652 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11653 case $ac_file in
11654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11655 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11656 break;;
11657 esac
11658done
11659else
11660 echo "$as_me: failed program was:" >&5
11661sed 's/^/| /' conftest.$ac_ext >&5
11662
11663{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11664See \`config.log' for more details." >&5
11665echo "$as_me: error: cannot compute suffix of object files: cannot compile
11666See \`config.log' for more details." >&2;}
11667 { (exit 1); exit 1; }; }
11668fi
11669
11670rm -f conftest.$ac_cv_objext conftest.$ac_ext
11671fi
11672echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11673echo "${ECHO_T}$ac_cv_objext" >&6
11674OBJEXT=$ac_cv_objext
11675ac_objext=$OBJEXT
11676echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11677echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11678if test "${ac_cv_c_compiler_gnu+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680else
11681 cat >conftest.$ac_ext <<_ACEOF
11682/* confdefs.h. */
11683_ACEOF
11684cat confdefs.h >>conftest.$ac_ext
11685cat >>conftest.$ac_ext <<_ACEOF
11686/* end confdefs.h. */
11687
11688int
11689main ()
11690{
11691#ifndef __GNUC__
11692 choke me
11693#endif
11694
11695 ;
11696 return 0;
11697}
11698_ACEOF
11699rm -f conftest.$ac_objext
11700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11701 (eval $ac_compile) 2>conftest.er1
a848cd7e 11702 ac_status=$?
ac1cb8d3
VS
11703 grep -v '^ *+' conftest.er1 >conftest.err
11704 rm -f conftest.er1
11705 cat conftest.err >&5
a848cd7e
SC
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
2b850ae1
RR
11708 { ac_try='test -z "$ac_c_werror_flag"
11709 || test ! -s conftest.err'
ac1cb8d3
VS
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; } &&
11715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 ac_compiler_gnu=yes
11722else
11723 echo "$as_me: failed program was:" >&5
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
11726ac_compiler_gnu=no
11727fi
ac1cb8d3 11728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11729ac_cv_c_compiler_gnu=$ac_compiler_gnu
11730
11731fi
11732echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11733echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11734GCC=`test $ac_compiler_gnu = yes && echo yes`
11735ac_test_CFLAGS=${CFLAGS+set}
11736ac_save_CFLAGS=$CFLAGS
8aeeb05c 11737CFLAGS="-g"
a848cd7e
SC
11738echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11739echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11740if test "${ac_cv_prog_cc_g+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742else
11743 cat >conftest.$ac_ext <<_ACEOF
11744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
11749
11750int
11751main ()
11752{
11753
11754 ;
11755 return 0;
11756}
11757_ACEOF
11758rm -f conftest.$ac_objext
11759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11760 (eval $ac_compile) 2>conftest.er1
a848cd7e 11761 ac_status=$?
ac1cb8d3
VS
11762 grep -v '^ *+' conftest.er1 >conftest.err
11763 rm -f conftest.er1
11764 cat conftest.err >&5
a848cd7e
SC
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
2b850ae1
RR
11767 { ac_try='test -z "$ac_c_werror_flag"
11768 || test ! -s conftest.err'
ac1cb8d3
VS
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11771 ac_status=$?
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; } &&
11774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; }; then
11780 ac_cv_prog_cc_g=yes
11781else
11782 echo "$as_me: failed program was:" >&5
11783sed 's/^/| /' conftest.$ac_ext >&5
11784
11785ac_cv_prog_cc_g=no
11786fi
ac1cb8d3 11787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11788fi
11789echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11790echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11791if test "$ac_test_CFLAGS" = set; then
11792 CFLAGS=$ac_save_CFLAGS
11793elif test $ac_cv_prog_cc_g = yes; then
11794 if test "$GCC" = yes; then
11795 CFLAGS="-g -O2"
11796 else
11797 CFLAGS="-g"
11798 fi
11799else
11800 if test "$GCC" = yes; then
11801 CFLAGS="-O2"
11802 else
11803 CFLAGS=
11804 fi
11805fi
11806echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11807echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11808if test "${ac_cv_prog_cc_stdc+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11810else
11811 ac_cv_prog_cc_stdc=no
11812ac_save_CC=$CC
11813cat >conftest.$ac_ext <<_ACEOF
11814/* confdefs.h. */
11815_ACEOF
11816cat confdefs.h >>conftest.$ac_ext
11817cat >>conftest.$ac_ext <<_ACEOF
11818/* end confdefs.h. */
11819#include <stdarg.h>
11820#include <stdio.h>
11821#include <sys/types.h>
11822#include <sys/stat.h>
11823/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11824struct buf { int x; };
11825FILE * (*rcsopen) (struct buf *, struct stat *, int);
11826static char *e (p, i)
11827 char **p;
11828 int i;
11829{
11830 return p[i];
11831}
11832static char *f (char * (*g) (char **, int), char **p, ...)
11833{
11834 char *s;
11835 va_list v;
11836 va_start (v,p);
11837 s = g (p, va_arg (v,int));
11838 va_end (v);
11839 return s;
11840}
ac1cb8d3
VS
11841
11842/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11843 function prototypes and stuff, but not '\xHH' hex character constants.
11844 These don't provoke an error unfortunately, instead are silently treated
11845 as 'x'. The following induces an error, until -std1 is added to get
11846 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11847 array size at least. It's necessary to write '\x00'==0 to get something
11848 that's true only with -std1. */
11849int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11850
a848cd7e
SC
11851int test (int i, double x);
11852struct s1 {int (*f) (int a);};
11853struct s2 {int (*f) (double a);};
11854int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11855int argc;
11856char **argv;
11857int
11858main ()
11859{
11860return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11861 ;
11862 return 0;
11863}
11864_ACEOF
11865# Don't try gcc -ansi; that turns off useful extensions and
11866# breaks some systems' header files.
11867# AIX -qlanglvl=ansi
11868# Ultrix and OSF/1 -std1
11869# HP-UX 10.20 and later -Ae
11870# HP-UX older versions -Aa -D_HPUX_SOURCE
11871# SVR4 -Xc -D__EXTENSIONS__
11872for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11873do
11874 CC="$ac_save_CC $ac_arg"
11875 rm -f conftest.$ac_objext
11876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11877 (eval $ac_compile) 2>conftest.er1
a848cd7e 11878 ac_status=$?
ac1cb8d3
VS
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
a848cd7e
SC
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
2b850ae1
RR
11884 { ac_try='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
ac1cb8d3
VS
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_cv_prog_cc_stdc=$ac_arg
11898break
11899else
11900 echo "$as_me: failed program was:" >&5
11901sed 's/^/| /' conftest.$ac_ext >&5
11902
11903fi
ac1cb8d3 11904rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11905done
11906rm -f conftest.$ac_ext conftest.$ac_objext
11907CC=$ac_save_CC
11908
11909fi
11910
11911case "x$ac_cv_prog_cc_stdc" in
11912 x|xno)
11913 echo "$as_me:$LINENO: result: none needed" >&5
11914echo "${ECHO_T}none needed" >&6 ;;
11915 *)
11916 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11917echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11918 CC="$CC $ac_cv_prog_cc_stdc" ;;
11919esac
11920
11921# Some people use a C++ compiler to compile C. Since we use `exit',
11922# in C++ we need to declare it. In case someone uses the same compiler
11923# for both compiling C and C++ we need to have the C++ compiler decide
11924# the declaration of exit, since it's the most demanding environment.
11925cat >conftest.$ac_ext <<_ACEOF
11926#ifndef __cplusplus
11927 choke me
11928#endif
11929_ACEOF
11930rm -f conftest.$ac_objext
11931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11932 (eval $ac_compile) 2>conftest.er1
a848cd7e 11933 ac_status=$?
ac1cb8d3
VS
11934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
a848cd7e
SC
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
2b850ae1
RR
11939 { ac_try='test -z "$ac_c_werror_flag"
11940 || test ! -s conftest.err'
ac1cb8d3
VS
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 for ac_declaration in \
ac1cb8d3 11953 '' \
a848cd7e
SC
11954 'extern "C" void std::exit (int) throw (); using std::exit;' \
11955 'extern "C" void std::exit (int); using std::exit;' \
11956 'extern "C" void exit (int) throw ();' \
11957 'extern "C" void exit (int);' \
11958 'void exit (int);'
11959do
11960 cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h. */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h. */
de59c161 11966$ac_declaration
ac1cb8d3 11967#include <stdlib.h>
a848cd7e
SC
11968int
11969main ()
11970{
11971exit (42);
11972 ;
11973 return 0;
11974}
11975_ACEOF
11976rm -f conftest.$ac_objext
11977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11978 (eval $ac_compile) 2>conftest.er1
a848cd7e 11979 ac_status=$?
ac1cb8d3
VS
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
a848cd7e
SC
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
2b850ae1
RR
11985 { ac_try='test -z "$ac_c_werror_flag"
11986 || test ! -s conftest.err'
ac1cb8d3
VS
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; } &&
11992 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 :
11999else
12000 echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
12002
12003continue
12004fi
ac1cb8d3 12005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12006 cat >conftest.$ac_ext <<_ACEOF
12007/* confdefs.h. */
12008_ACEOF
12009cat confdefs.h >>conftest.$ac_ext
12010cat >>conftest.$ac_ext <<_ACEOF
12011/* end confdefs.h. */
12012$ac_declaration
12013int
12014main ()
12015{
12016exit (42);
12017 ;
12018 return 0;
12019}
12020_ACEOF
12021rm -f conftest.$ac_objext
12022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12023 (eval $ac_compile) 2>conftest.er1
a848cd7e 12024 ac_status=$?
ac1cb8d3
VS
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
a848cd7e
SC
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
2b850ae1
RR
12030 { ac_try='test -z "$ac_c_werror_flag"
12031 || test ! -s conftest.err'
ac1cb8d3
VS
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 break
12044else
12045 echo "$as_me: failed program was:" >&5
12046sed 's/^/| /' conftest.$ac_ext >&5
12047
12048fi
ac1cb8d3 12049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12050done
12051rm -f conftest*
12052if test -n "$ac_declaration"; then
12053 echo '#ifdef __cplusplus' >>confdefs.h
12054 echo $ac_declaration >>confdefs.h
12055 echo '#endif' >>confdefs.h
12056fi
12057
12058else
12059 echo "$as_me: failed program was:" >&5
12060sed 's/^/| /' conftest.$ac_ext >&5
12061
12062fi
ac1cb8d3 12063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12064ac_ext=c
12065ac_cpp='$CPP $CPPFLAGS'
12066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12068ac_compiler_gnu=$ac_cv_c_compiler_gnu
12069
ab0ad5f1
VZ
12070
12071
12072 ac_ext=c
12073ac_cpp='$CPP $CPPFLAGS'
12074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12076ac_compiler_gnu=$ac_cv_c_compiler_gnu
12077
12078 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12079echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12080if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082else
12083 cat >conftest.$ac_ext <<_ACEOF
12084/* confdefs.h. */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h. */
12089
12090int
12091main ()
12092{
12093
12094 #ifndef __INTEL_COMPILER
12095 choke me
12096 #endif
12097
12098 ;
12099 return 0;
12100}
12101_ACEOF
12102rm -f conftest.$ac_objext
12103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12104 (eval $ac_compile) 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
2b850ae1
RR
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
ab0ad5f1
VZ
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12125else
12126 echo "$as_me: failed program was:" >&5
12127sed 's/^/| /' conftest.$ac_ext >&5
12128
12129bakefile_cv_c_compiler___INTEL_COMPILER=no
12130
12131fi
12132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12133
12134
12135fi
12136echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12137echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12138 ac_ext=c
12139ac_cpp='$CPP $CPPFLAGS'
12140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12142ac_compiler_gnu=$ac_cv_c_compiler_gnu
12143
12144 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12145 :; INTELCC=yes
12146 else
12147 :;
12148 fi
12149
12150
12151 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12152 if test "xCC" = "xC"; then
12153 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12154echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12155if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157else
12158 cat >conftest.$ac_ext <<_ACEOF
12159/* confdefs.h. */
12160_ACEOF
12161cat confdefs.h >>conftest.$ac_ext
12162cat >>conftest.$ac_ext <<_ACEOF
12163/* end confdefs.h. */
12164
12165int
12166main ()
12167{
12168
12169 ;
12170 return 0;
12171}
12172_ACEOF
12173rm -f conftest.$ac_objext conftest.$ac_ext.o
12174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12175 (eval $ac_compile) 2>&5
12176 ac_status=$?
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; then
12179 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12180 case $ac_file in
12181 conftest.$ac_ext.o)
0093c2fc 12182 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12183 ;;
12184 *)
12185 ;;
12186 esac
12187done
12188else
12189 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12190See \`config.log' for more details." >&5
12191echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12192See \`config.log' for more details." >&2;}
12193 { (exit 1); exit 1; }; }
12194
12195fi
12196
12197rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12198
12199fi
0093c2fc
VZ
12200echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12201echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12202if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12203 if test "c" = "c"; then
0093c2fc 12204 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12205 fi
12206 if test "c" = "cxx"; then
0093c2fc 12207 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12208 fi
12209fi
12210
0093c2fc 12211 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12212 unset ac_cv_prog_cc_g
12213 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12214ac_save_CFLAGS=$CFLAGS
8aeeb05c 12215CFLAGS="-g"
480ccd21
DE
12216echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12218if test "${ac_cv_prog_cc_g+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220else
12221 cat >conftest.$ac_ext <<_ACEOF
12222/* confdefs.h. */
12223_ACEOF
12224cat confdefs.h >>conftest.$ac_ext
12225cat >>conftest.$ac_ext <<_ACEOF
12226/* end confdefs.h. */
12227
12228int
12229main ()
12230{
12231
12232 ;
12233 return 0;
12234}
12235_ACEOF
12236rm -f conftest.$ac_objext
12237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12238 (eval $ac_compile) 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
2b850ae1
RR
12245 { ac_try='test -z "$ac_c_werror_flag"
12246 || test ! -s conftest.err'
480ccd21
DE
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12249 ac_status=$?
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; } &&
12252 { ac_try='test -s conftest.$ac_objext'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; }; then
12258 ac_cv_prog_cc_g=yes
12259else
12260 echo "$as_me: failed program was:" >&5
12261sed 's/^/| /' conftest.$ac_ext >&5
12262
12263ac_cv_prog_cc_g=no
12264fi
12265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12266fi
12267echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12269if test "$ac_test_CFLAGS" = set; then
12270 CFLAGS=$ac_save_CFLAGS
12271elif test $ac_cv_prog_cc_g = yes; then
12272 if test "$GCC" = yes; then
12273 CFLAGS="-g -O2"
12274 else
12275 CFLAGS="-g"
12276 fi
12277else
12278 if test "$GCC" = yes; then
12279 CFLAGS="-O2"
12280 else
12281 CFLAGS=
12282 fi
12283fi
3006edc0 12284 fi
ab0ad5f1 12285 fi
3006edc0
VZ
12286
12287 case `uname -s` in
12288 AIX*)
12289 ac_ext=c
12290ac_cpp='$CPP $CPPFLAGS'
12291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12293ac_compiler_gnu=$ac_cv_c_compiler_gnu
12294
12295echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12296echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12297if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299else
12300 cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306
12307int
12308main ()
12309{
12310#ifndef __xlC__
12311 choke me
12312#endif
12313
12314 ;
12315 return 0;
12316}
12317_ACEOF
12318rm -f conftest.$ac_objext
12319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12320 (eval $ac_compile) 2>conftest.er1
12321 ac_status=$?
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
2b850ae1
RR
12327 { ac_try='test -z "$ac_c_werror_flag"
12328 || test ! -s conftest.err'
3006edc0
VZ
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
0093c2fc 12340 bakefile_compiler_xlc=yes
3006edc0
VZ
12341else
12342 echo "$as_me: failed program was:" >&5
12343sed 's/^/| /' conftest.$ac_ext >&5
12344
0093c2fc 12345bakefile_compiler_xlc=no
3006edc0
VZ
12346fi
12347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12348 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12349
12350fi
0093c2fc
VZ
12351echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12352echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12353
0093c2fc 12354XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12355ac_ext=c
12356ac_cpp='$CPP $CPPFLAGS'
12357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12359ac_compiler_gnu=$ac_cv_c_compiler_gnu
12360
12361
12362 ;;
12363
12364 Darwin)
12365 ac_ext=c
95986553
DE
12366ac_cpp='$CPP $CPPFLAGS'
12367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12369ac_compiler_gnu=$ac_cv_c_compiler_gnu
12370
12371echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12372echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12373if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12375else
12376 cat >conftest.$ac_ext <<_ACEOF
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
12382
12383int
12384main ()
12385{
12386#ifndef __MWERKS__
12387 choke me
12388#endif
12389
12390 ;
12391 return 0;
12392}
12393_ACEOF
12394rm -f conftest.$ac_objext
12395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12396 (eval $ac_compile) 2>conftest.er1
12397 ac_status=$?
12398 grep -v '^ *+' conftest.er1 >conftest.err
12399 rm -f conftest.er1
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
2b850ae1
RR
12403 { ac_try='test -z "$ac_c_werror_flag"
12404 || test ! -s conftest.err'
95986553
DE
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; } &&
12410 { ac_try='test -s conftest.$ac_objext'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 bakefile_compiler_mwerks=yes
12417else
12418 echo "$as_me: failed program was:" >&5
12419sed 's/^/| /' conftest.$ac_ext >&5
12420
12421bakefile_compiler_mwerks=no
12422fi
12423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12424 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12425
12426fi
12427echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12428echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12429
0e6fa1d9 12430MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12431ac_ext=c
12432ac_cpp='$CPP $CPPFLAGS'
12433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12435ac_compiler_gnu=$ac_cv_c_compiler_gnu
12436
12437
3006edc0 12438 ac_ext=c
9273ffba
DE
12439ac_cpp='$CPP $CPPFLAGS'
12440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12442ac_compiler_gnu=$ac_cv_c_compiler_gnu
12443
12444echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12445echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12446if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448else
12449 cat >conftest.$ac_ext <<_ACEOF
12450/* confdefs.h. */
12451_ACEOF
12452cat confdefs.h >>conftest.$ac_ext
12453cat >>conftest.$ac_ext <<_ACEOF
12454/* end confdefs.h. */
12455
12456int
12457main ()
12458{
12459#ifndef __xlC__
12460 choke me
12461#endif
12462
12463 ;
12464 return 0;
12465}
12466_ACEOF
12467rm -f conftest.$ac_objext
12468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12469 (eval $ac_compile) 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
2b850ae1
RR
12476 { ac_try='test -z "$ac_c_werror_flag"
12477 || test ! -s conftest.err'
9273ffba
DE
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest.$ac_objext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
0093c2fc 12489 bakefile_compiler_xlc=yes
9273ffba
DE
12490else
12491 echo "$as_me: failed program was:" >&5
12492sed 's/^/| /' conftest.$ac_ext >&5
12493
0093c2fc 12494bakefile_compiler_xlc=no
9273ffba
DE
12495fi
12496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12497 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12498
12499fi
0093c2fc
VZ
12500echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12501echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12502
0093c2fc 12503XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12504ac_ext=c
12505ac_cpp='$CPP $CPPFLAGS'
12506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12508ac_compiler_gnu=$ac_cv_c_compiler_gnu
12509
12510
3006edc0
VZ
12511 ;;
12512
12513 IRIX*)
a848cd7e 12514
6dcfc289 12515
0ad5d837
VZ
12516 ac_ext=c
12517ac_cpp='$CPP $CPPFLAGS'
12518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12520ac_compiler_gnu=$ac_cv_c_compiler_gnu
12521
12522 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12523echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12524if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12526else
12527 cat >conftest.$ac_ext <<_ACEOF
12528/* confdefs.h. */
12529_ACEOF
12530cat confdefs.h >>conftest.$ac_ext
12531cat >>conftest.$ac_ext <<_ACEOF
12532/* end confdefs.h. */
12533
12534int
12535main ()
12536{
12537
12538 #ifndef _SGI_COMPILER_VERSION
12539 choke me
12540 #endif
12541
12542 ;
12543 return 0;
12544}
12545_ACEOF
12546rm -f conftest.$ac_objext
12547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12548 (eval $ac_compile) 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } &&
2b850ae1
RR
12555 { ac_try='test -z "$ac_c_werror_flag"
12556 || test ! -s conftest.err'
0ad5d837
VZ
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; } &&
12562 { ac_try='test -s conftest.$ac_objext'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12565 ac_status=$?
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; }; then
12568 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12569else
12570 echo "$as_me: failed program was:" >&5
12571sed 's/^/| /' conftest.$ac_ext >&5
12572
12573bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12574
12575fi
12576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12577
12578
12579fi
12580echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12581echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12582 ac_ext=c
12583ac_cpp='$CPP $CPPFLAGS'
12584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12586ac_compiler_gnu=$ac_cv_c_compiler_gnu
12587
12588 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12589 :; SGICC=yes
12590 else
12591 :;
12592 fi
12593
12594
3006edc0
VZ
12595 ;;
12596
0093c2fc 12597 HP-UX*)
3006edc0
VZ
12598
12599
12600 ac_ext=c
12601ac_cpp='$CPP $CPPFLAGS'
12602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12604ac_compiler_gnu=$ac_cv_c_compiler_gnu
12605
0093c2fc
VZ
12606 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12607echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12608if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610else
12611 cat >conftest.$ac_ext <<_ACEOF
12612/* confdefs.h. */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h. */
12617
12618int
12619main ()
12620{
12621
0093c2fc 12622 #ifndef __HP_cc
3006edc0
VZ
12623 choke me
12624 #endif
12625
12626 ;
12627 return 0;
12628}
12629_ACEOF
12630rm -f conftest.$ac_objext
12631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
2b850ae1
RR
12639 { ac_try='test -z "$ac_c_werror_flag"
12640 || test ! -s conftest.err'
3006edc0
VZ
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
0093c2fc 12652 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12653else
12654 echo "$as_me: failed program was:" >&5
12655sed 's/^/| /' conftest.$ac_ext >&5
12656
0093c2fc 12657bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12658
12659fi
12660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12661
12662
12663fi
0093c2fc
VZ
12664echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12665echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12666 ac_ext=c
12667ac_cpp='$CPP $CPPFLAGS'
12668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12670ac_compiler_gnu=$ac_cv_c_compiler_gnu
12671
0093c2fc
VZ
12672 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12673 :; HPCC=yes
a1aa0349
VZ
12674 else
12675 :;
12676 fi
12677
12678
12679 ;;
12680
0093c2fc 12681 OSF1)
a1aa0349
VZ
12682
12683
12684 ac_ext=c
12685ac_cpp='$CPP $CPPFLAGS'
12686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12688ac_compiler_gnu=$ac_cv_c_compiler_gnu
12689
0093c2fc
VZ
12690 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12691echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12692if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12694else
12695 cat >conftest.$ac_ext <<_ACEOF
12696/* confdefs.h. */
12697_ACEOF
12698cat confdefs.h >>conftest.$ac_ext
12699cat >>conftest.$ac_ext <<_ACEOF
12700/* end confdefs.h. */
12701
12702int
12703main ()
12704{
12705
0093c2fc 12706 #ifndef __DECC
a1aa0349
VZ
12707 choke me
12708 #endif
12709
12710 ;
12711 return 0;
12712}
12713_ACEOF
12714rm -f conftest.$ac_objext
12715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716 (eval $ac_compile) 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } &&
2b850ae1
RR
12723 { ac_try='test -z "$ac_c_werror_flag"
12724 || test ! -s conftest.err'
a1aa0349
VZ
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; } &&
12730 { ac_try='test -s conftest.$ac_objext'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
0093c2fc 12736 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12737else
12738 echo "$as_me: failed program was:" >&5
12739sed 's/^/| /' conftest.$ac_ext >&5
12740
0093c2fc 12741bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12742
12743fi
12744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12745
12746
12747fi
0093c2fc
VZ
12748echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12749echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12750 ac_ext=c
12751ac_cpp='$CPP $CPPFLAGS'
12752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12754ac_compiler_gnu=$ac_cv_c_compiler_gnu
12755
0093c2fc
VZ
12756 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12757 :; COMPAQCC=yes
12758 else
12759 :;
12760 fi
12761
12762
12763 ;;
12764
12765 SunOS)
12766
12767
12768 ac_ext=c
12769ac_cpp='$CPP $CPPFLAGS'
12770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12772ac_compiler_gnu=$ac_cv_c_compiler_gnu
12773
12774 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12775echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12776if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12778else
12779 cat >conftest.$ac_ext <<_ACEOF
12780/* confdefs.h. */
12781_ACEOF
12782cat confdefs.h >>conftest.$ac_ext
12783cat >>conftest.$ac_ext <<_ACEOF
12784/* end confdefs.h. */
12785
12786int
12787main ()
12788{
12789
12790 #ifndef __SUNPRO_C
12791 choke me
12792 #endif
12793
12794 ;
12795 return 0;
12796}
12797_ACEOF
12798rm -f conftest.$ac_objext
12799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12800 (eval $ac_compile) 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } &&
2b850ae1
RR
12807 { ac_try='test -z "$ac_c_werror_flag"
12808 || test ! -s conftest.err'
0093c2fc
VZ
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 bakefile_cv_c_compiler___SUNPRO_C=yes
12821else
12822 echo "$as_me: failed program was:" >&5
12823sed 's/^/| /' conftest.$ac_ext >&5
12824
12825bakefile_cv_c_compiler___SUNPRO_C=no
12826
12827fi
12828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12829
12830
12831fi
12832echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12833echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12834 ac_ext=c
12835ac_cpp='$CPP $CPPFLAGS'
12836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12838ac_compiler_gnu=$ac_cv_c_compiler_gnu
12839
12840 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12841 :; SUNCC=yes
3006edc0
VZ
12842 else
12843 :;
12844 fi
12845
12846
12847 ;;
12848 esac
ab0ad5f1 12849 fi
a9e5b1f0
MW
12850
12851
3006edc0 12852
a848cd7e
SC
12853ac_ext=c
12854ac_cpp='$CPP $CPPFLAGS'
12855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12857ac_compiler_gnu=$ac_cv_c_compiler_gnu
12858echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12859echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12860# On Suns, sometimes $CPP names a directory.
12861if test -n "$CPP" && test -d "$CPP"; then
12862 CPP=
12863fi
12864if test -z "$CPP"; then
12865 if test "${ac_cv_prog_CPP+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12867else
12868 # Double quotes because CPP needs to be expanded
12869 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12870 do
12871 ac_preproc_ok=false
12872for ac_c_preproc_warn_flag in '' yes
12873do
12874 # Use a header file that comes with gcc, so configuring glibc
12875 # with a fresh cross-compiler works.
12876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12877 # <limits.h> exists even on freestanding compilers.
12878 # On the NeXT, cc -E runs the code through the compiler's parser,
12879 # not just through cpp. "Syntax error" is here to catch this case.
12880 cat >conftest.$ac_ext <<_ACEOF
12881/* confdefs.h. */
12882_ACEOF
12883cat confdefs.h >>conftest.$ac_ext
12884cat >>conftest.$ac_ext <<_ACEOF
12885/* end confdefs.h. */
12886#ifdef __STDC__
12887# include <limits.h>
12888#else
12889# include <assert.h>
12890#endif
ac1cb8d3 12891 Syntax error
a848cd7e
SC
12892_ACEOF
12893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } >/dev/null; then
12901 if test -s conftest.err; then
12902 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12904 else
12905 ac_cpp_err=
12906 fi
12907else
12908 ac_cpp_err=yes
12909fi
12910if test -z "$ac_cpp_err"; then
12911 :
12912else
12913 echo "$as_me: failed program was:" >&5
12914sed 's/^/| /' conftest.$ac_ext >&5
12915
12916 # Broken: fails on valid input.
12917continue
12918fi
12919rm -f conftest.err conftest.$ac_ext
12920
12921 # OK, works on sane cases. Now check whether non-existent headers
12922 # can be detected and how.
12923 cat >conftest.$ac_ext <<_ACEOF
12924/* confdefs.h. */
12925_ACEOF
12926cat confdefs.h >>conftest.$ac_ext
12927cat >>conftest.$ac_ext <<_ACEOF
12928/* end confdefs.h. */
12929#include <ac_nonexistent.h>
12930_ACEOF
12931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } >/dev/null; then
12939 if test -s conftest.err; then
12940 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12942 else
12943 ac_cpp_err=
12944 fi
12945else
12946 ac_cpp_err=yes
12947fi
12948if test -z "$ac_cpp_err"; then
12949 # Broken: success on invalid input.
12950continue
12951else
12952 echo "$as_me: failed program was:" >&5
12953sed 's/^/| /' conftest.$ac_ext >&5
12954
12955 # Passes both tests.
12956ac_preproc_ok=:
12957break
12958fi
12959rm -f conftest.err conftest.$ac_ext
12960
12961done
12962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12963rm -f conftest.err conftest.$ac_ext
12964if $ac_preproc_ok; then
12965 break
12966fi
12967
12968 done
12969 ac_cv_prog_CPP=$CPP
12970
12971fi
12972 CPP=$ac_cv_prog_CPP
12973else
12974 ac_cv_prog_CPP=$CPP
12975fi
12976echo "$as_me:$LINENO: result: $CPP" >&5
12977echo "${ECHO_T}$CPP" >&6
12978ac_preproc_ok=false
12979for ac_c_preproc_warn_flag in '' yes
12980do
12981 # Use a header file that comes with gcc, so configuring glibc
12982 # with a fresh cross-compiler works.
12983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12984 # <limits.h> exists even on freestanding compilers.
12985 # On the NeXT, cc -E runs the code through the compiler's parser,
12986 # not just through cpp. "Syntax error" is here to catch this case.
12987 cat >conftest.$ac_ext <<_ACEOF
12988/* confdefs.h. */
12989_ACEOF
12990cat confdefs.h >>conftest.$ac_ext
12991cat >>conftest.$ac_ext <<_ACEOF
12992/* end confdefs.h. */
12993#ifdef __STDC__
12994# include <limits.h>
12995#else
12996# include <assert.h>
12997#endif
ac1cb8d3 12998 Syntax error
a848cd7e
SC
12999_ACEOF
13000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13002 ac_status=$?
13003 grep -v '^ *+' conftest.er1 >conftest.err
13004 rm -f conftest.er1
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } >/dev/null; then
13008 if test -s conftest.err; then
13009 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13011 else
13012 ac_cpp_err=
13013 fi
13014else
13015 ac_cpp_err=yes
13016fi
13017if test -z "$ac_cpp_err"; then
13018 :
13019else
13020 echo "$as_me: failed program was:" >&5
13021sed 's/^/| /' conftest.$ac_ext >&5
13022
13023 # Broken: fails on valid input.
13024continue
13025fi
13026rm -f conftest.err conftest.$ac_ext
13027
13028 # OK, works on sane cases. Now check whether non-existent headers
13029 # can be detected and how.
13030 cat >conftest.$ac_ext <<_ACEOF
13031/* confdefs.h. */
13032_ACEOF
13033cat confdefs.h >>conftest.$ac_ext
13034cat >>conftest.$ac_ext <<_ACEOF
13035/* end confdefs.h. */
13036#include <ac_nonexistent.h>
13037_ACEOF
13038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13040 ac_status=$?
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } >/dev/null; then
13046 if test -s conftest.err; then
13047 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13049 else
13050 ac_cpp_err=
13051 fi
13052else
13053 ac_cpp_err=yes
13054fi
13055if test -z "$ac_cpp_err"; then
13056 # Broken: success on invalid input.
13057continue
13058else
13059 echo "$as_me: failed program was:" >&5
13060sed 's/^/| /' conftest.$ac_ext >&5
13061
13062 # Passes both tests.
13063ac_preproc_ok=:
13064break
13065fi
13066rm -f conftest.err conftest.$ac_ext
13067
13068done
13069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13070rm -f conftest.err conftest.$ac_ext
13071if $ac_preproc_ok; then
13072 :
13073else
13074 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13075See \`config.log' for more details." >&5
13076echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13077See \`config.log' for more details." >&2;}
13078 { (exit 1); exit 1; }; }
13079fi
13080
13081ac_ext=c
13082ac_cpp='$CPP $CPPFLAGS'
13083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13085ac_compiler_gnu=$ac_cv_c_compiler_gnu
13086
13087
13088echo "$as_me:$LINENO: checking for egrep" >&5
13089echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13090if test "${ac_cv_prog_egrep+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13092else
13093 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13094 then ac_cv_prog_egrep='grep -E'
13095 else ac_cv_prog_egrep='egrep'
13096 fi
13097fi
13098echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13099echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13100 EGREP=$ac_cv_prog_egrep
13101
13102
13103if test $ac_cv_c_compiler_gnu = yes; then
13104 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13105echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13106if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13108else
13109 ac_pattern="Autoconf.*'x'"
13110 cat >conftest.$ac_ext <<_ACEOF
13111/* confdefs.h. */
13112_ACEOF
13113cat confdefs.h >>conftest.$ac_ext
13114cat >>conftest.$ac_ext <<_ACEOF
13115/* end confdefs.h. */
13116#include <sgtty.h>
13117Autoconf TIOCGETP
13118_ACEOF
13119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13120 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13121 ac_cv_prog_gcc_traditional=yes
13122else
13123 ac_cv_prog_gcc_traditional=no
13124fi
13125rm -f conftest*
13126
13127
13128 if test $ac_cv_prog_gcc_traditional = no; then
13129 cat >conftest.$ac_ext <<_ACEOF
13130/* confdefs.h. */
13131_ACEOF
13132cat confdefs.h >>conftest.$ac_ext
13133cat >>conftest.$ac_ext <<_ACEOF
13134/* end confdefs.h. */
13135#include <termio.h>
13136Autoconf TCGETA
13137_ACEOF
13138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13139 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13140 ac_cv_prog_gcc_traditional=yes
13141fi
13142rm -f conftest*
13143
13144 fi
13145fi
13146echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13147echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13148 if test $ac_cv_prog_gcc_traditional = yes; then
13149 CC="$CC -traditional"
13150 fi
13151fi
13152
13153
a848cd7e
SC
13154ac_ext=cc
13155ac_cpp='$CXXCPP $CPPFLAGS'
13156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13159
13160
13161CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13162
13163
3006edc0 13164
6dcfc289 13165 ac_ext=cc
a848cd7e
SC
13166ac_cpp='$CXXCPP $CPPFLAGS'
13167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13170if test -n "$ac_tool_prefix"; then
13171 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13172 do
13173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13175echo "$as_me:$LINENO: checking for $ac_word" >&5
13176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13177if test "${ac_cv_prog_CXX+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13179else
13180 if test -n "$CXX"; then
13181 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13182else
13183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184for as_dir in $PATH
13185do
13186 IFS=$as_save_IFS
13187 test -z "$as_dir" && as_dir=.
13188 for ac_exec_ext in '' $ac_executable_extensions; do
13189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13190 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13192 break 2
13193 fi
13194done
13195done
13196
13197fi
13198fi
13199CXX=$ac_cv_prog_CXX
13200if test -n "$CXX"; then
13201 echo "$as_me:$LINENO: result: $CXX" >&5
13202echo "${ECHO_T}$CXX" >&6
13203else
13204 echo "$as_me:$LINENO: result: no" >&5
13205echo "${ECHO_T}no" >&6
13206fi
13207
13208 test -n "$CXX" && break
13209 done
13210fi
13211if test -z "$CXX"; then
13212 ac_ct_CXX=$CXX
13213 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13214do
13215 # Extract the first word of "$ac_prog", so it can be a program name with args.
13216set dummy $ac_prog; ac_word=$2
13217echo "$as_me:$LINENO: checking for $ac_word" >&5
13218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13219if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13221else
13222 if test -n "$ac_ct_CXX"; then
13223 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13224else
13225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226for as_dir in $PATH
13227do
13228 IFS=$as_save_IFS
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13232 ac_cv_prog_ac_ct_CXX="$ac_prog"
13233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13234 break 2
13235 fi
13236done
13237done
13238
13239fi
13240fi
13241ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13242if test -n "$ac_ct_CXX"; then
13243 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13244echo "${ECHO_T}$ac_ct_CXX" >&6
13245else
13246 echo "$as_me:$LINENO: result: no" >&5
13247echo "${ECHO_T}no" >&6
13248fi
13249
13250 test -n "$ac_ct_CXX" && break
13251done
13252test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13253
13254 CXX=$ac_ct_CXX
13255fi
13256
13257
13258# Provide some information about the compiler.
13259echo "$as_me:$LINENO:" \
13260 "checking for C++ compiler version" >&5
13261ac_compiler=`set X $ac_compile; echo $2`
13262{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13263 (eval $ac_compiler --version </dev/null >&5) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }
13267{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13268 (eval $ac_compiler -v </dev/null >&5) 2>&5
13269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }
13272{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13273 (eval $ac_compiler -V </dev/null >&5) 2>&5
13274 ac_status=$?
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }
13277
13278echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13279echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13280if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282else
13283 cat >conftest.$ac_ext <<_ACEOF
13284/* confdefs.h. */
13285_ACEOF
13286cat confdefs.h >>conftest.$ac_ext
13287cat >>conftest.$ac_ext <<_ACEOF
13288/* end confdefs.h. */
13289
13290int
13291main ()
13292{
13293#ifndef __GNUC__
13294 choke me
13295#endif
13296
13297 ;
13298 return 0;
13299}
13300_ACEOF
13301rm -f conftest.$ac_objext
13302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13303 (eval $ac_compile) 2>conftest.er1
a848cd7e 13304 ac_status=$?
ac1cb8d3
VS
13305 grep -v '^ *+' conftest.er1 >conftest.err
13306 rm -f conftest.er1
13307 cat conftest.err >&5
a848cd7e
SC
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
2b850ae1
RR
13310 { ac_try='test -z "$ac_cxx_werror_flag"
13311 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
13317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13323 ac_compiler_gnu=yes
13324else
13325 echo "$as_me: failed program was:" >&5
13326sed 's/^/| /' conftest.$ac_ext >&5
13327
13328ac_compiler_gnu=no
13329fi
ac1cb8d3 13330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13331ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13332
13333fi
13334echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13335echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13336GXX=`test $ac_compiler_gnu = yes && echo yes`
13337ac_test_CXXFLAGS=${CXXFLAGS+set}
13338ac_save_CXXFLAGS=$CXXFLAGS
13339CXXFLAGS="-g"
13340echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13341echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13342if test "${ac_cv_prog_cxx_g+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13344else
13345 cat >conftest.$ac_ext <<_ACEOF
13346/* confdefs.h. */
13347_ACEOF
13348cat confdefs.h >>conftest.$ac_ext
13349cat >>conftest.$ac_ext <<_ACEOF
13350/* end confdefs.h. */
13351
13352int
13353main ()
13354{
13355
13356 ;
13357 return 0;
13358}
13359_ACEOF
13360rm -f conftest.$ac_objext
13361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13362 (eval $ac_compile) 2>conftest.er1
a848cd7e 13363 ac_status=$?
ac1cb8d3
VS
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
a848cd7e
SC
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
2b850ae1
RR
13369 { ac_try='test -z "$ac_cxx_werror_flag"
13370 || test ! -s conftest.err'
ac1cb8d3
VS
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_cv_prog_cxx_g=yes
13383else
13384 echo "$as_me: failed program was:" >&5
13385sed 's/^/| /' conftest.$ac_ext >&5
13386
13387ac_cv_prog_cxx_g=no
13388fi
ac1cb8d3 13389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13390fi
13391echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13392echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13393if test "$ac_test_CXXFLAGS" = set; then
13394 CXXFLAGS=$ac_save_CXXFLAGS
13395elif test $ac_cv_prog_cxx_g = yes; then
13396 if test "$GXX" = yes; then
8aeeb05c 13397 CXXFLAGS="-g -O2"
a848cd7e 13398 else
8aeeb05c 13399 CXXFLAGS="-g"
a848cd7e
SC
13400 fi
13401else
13402 if test "$GXX" = yes; then
13403 CXXFLAGS="-O2"
13404 else
13405 CXXFLAGS=
13406 fi
13407fi
13408for ac_declaration in \
ac1cb8d3 13409 '' \
a848cd7e
SC
13410 'extern "C" void std::exit (int) throw (); using std::exit;' \
13411 'extern "C" void std::exit (int); using std::exit;' \
13412 'extern "C" void exit (int) throw ();' \
13413 'extern "C" void exit (int);' \
13414 'void exit (int);'
13415do
13416 cat >conftest.$ac_ext <<_ACEOF
13417/* confdefs.h. */
13418_ACEOF
13419cat confdefs.h >>conftest.$ac_ext
13420cat >>conftest.$ac_ext <<_ACEOF
13421/* end confdefs.h. */
de59c161 13422$ac_declaration
ac1cb8d3 13423#include <stdlib.h>
a848cd7e
SC
13424int
13425main ()
13426{
13427exit (42);
13428 ;
13429 return 0;
13430}
13431_ACEOF
13432rm -f conftest.$ac_objext
13433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13434 (eval $ac_compile) 2>conftest.er1
a848cd7e 13435 ac_status=$?
ac1cb8d3
VS
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
a848cd7e
SC
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
2b850ae1
RR
13441 { ac_try='test -z "$ac_cxx_werror_flag"
13442 || test ! -s conftest.err'
ac1cb8d3
VS
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13445 ac_status=$?
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } &&
13448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 :
13455else
13456 echo "$as_me: failed program was:" >&5
13457sed 's/^/| /' conftest.$ac_ext >&5
13458
13459continue
13460fi
ac1cb8d3 13461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13462 cat >conftest.$ac_ext <<_ACEOF
13463/* confdefs.h. */
13464_ACEOF
13465cat confdefs.h >>conftest.$ac_ext
13466cat >>conftest.$ac_ext <<_ACEOF
13467/* end confdefs.h. */
13468$ac_declaration
13469int
13470main ()
13471{
13472exit (42);
13473 ;
13474 return 0;
13475}
13476_ACEOF
13477rm -f conftest.$ac_objext
13478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13479 (eval $ac_compile) 2>conftest.er1
a848cd7e 13480 ac_status=$?
ac1cb8d3
VS
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
a848cd7e
SC
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
2b850ae1
RR
13486 { ac_try='test -z "$ac_cxx_werror_flag"
13487 || test ! -s conftest.err'
ac1cb8d3
VS
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 break
13500else
13501 echo "$as_me: failed program was:" >&5
13502sed 's/^/| /' conftest.$ac_ext >&5
13503
13504fi
ac1cb8d3 13505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13506done
13507rm -f conftest*
13508if test -n "$ac_declaration"; then
13509 echo '#ifdef __cplusplus' >>confdefs.h
13510 echo $ac_declaration >>confdefs.h
13511 echo '#endif' >>confdefs.h
13512fi
13513
13514ac_ext=cc
13515ac_cpp='$CXXCPP $CPPFLAGS'
13516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13519
ab0ad5f1
VZ
13520
13521
13522 ac_ext=cc
13523ac_cpp='$CXXCPP $CPPFLAGS'
13524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13527
13528 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13529echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13530if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13531 echo $ECHO_N "(cached) $ECHO_C" >&6
13532else
13533 cat >conftest.$ac_ext <<_ACEOF
13534/* confdefs.h. */
13535_ACEOF
13536cat confdefs.h >>conftest.$ac_ext
13537cat >>conftest.$ac_ext <<_ACEOF
13538/* end confdefs.h. */
13539
13540int
13541main ()
13542{
13543
13544 #ifndef __INTEL_COMPILER
13545 choke me
13546 #endif
13547
13548 ;
13549 return 0;
13550}
13551_ACEOF
13552rm -f conftest.$ac_objext
13553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554 (eval $ac_compile) 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
2b850ae1
RR
13561 { ac_try='test -z "$ac_cxx_werror_flag"
13562 || test ! -s conftest.err'
ab0ad5f1
VZ
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; } &&
13568 { ac_try='test -s conftest.$ac_objext'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13575else
13576 echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13580
13581fi
13582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13583
13584
13585fi
13586echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13587echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13588 ac_ext=cc
13589ac_cpp='$CXXCPP $CPPFLAGS'
13590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13593
13594 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13595 :; INTELCXX=yes
13596 else
13597 :;
13598 fi
13599
13600
3006edc0
VZ
13601 if test "x$GCXX" != "xyes"; then
13602 if test "xCXX" = "xC"; then
13603 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13604echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13605if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607else
13608 cat >conftest.$ac_ext <<_ACEOF
13609/* confdefs.h. */
13610_ACEOF
13611cat confdefs.h >>conftest.$ac_ext
13612cat >>conftest.$ac_ext <<_ACEOF
13613/* end confdefs.h. */
13614
13615int
13616main ()
13617{
13618
13619 ;
13620 return 0;
13621}
13622_ACEOF
13623rm -f conftest.$ac_objext conftest.$ac_ext.o
13624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13625 (eval $ac_compile) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; then
13629 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13630 case $ac_file in
13631 conftest.$ac_ext.o)
0093c2fc 13632 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13633 ;;
13634 *)
13635 ;;
13636 esac
13637done
13638else
13639 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13640See \`config.log' for more details." >&5
13641echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13642See \`config.log' for more details." >&2;}
13643 { (exit 1); exit 1; }; }
13644
13645fi
13646
13647rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13648
13649fi
0093c2fc
VZ
13650echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13651echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13652if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13653 if test "cxx" = "c"; then
0093c2fc 13654 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13655 fi
13656 if test "cxx" = "cxx"; then
0093c2fc 13657 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13658 fi
13659fi
13660
0093c2fc 13661 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13662 unset ac_cv_prog_cc_g
13663 ac_test_CFLAGS=${CFLAGS+set}
13664ac_save_CFLAGS=$CFLAGS
8aeeb05c 13665CFLAGS="-g"
3006edc0
VZ
13666echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13667echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13668if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670else
13671 cat >conftest.$ac_ext <<_ACEOF
13672/* confdefs.h. */
13673_ACEOF
13674cat confdefs.h >>conftest.$ac_ext
13675cat >>conftest.$ac_ext <<_ACEOF
13676/* end confdefs.h. */
13677
13678int
13679main ()
13680{
13681
13682 ;
13683 return 0;
13684}
13685_ACEOF
13686rm -f conftest.$ac_objext
13687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13688 (eval $ac_compile) 2>conftest.er1
13689 ac_status=$?
13690 grep -v '^ *+' conftest.er1 >conftest.err
13691 rm -f conftest.er1
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } &&
2b850ae1
RR
13695 { ac_try='test -z "$ac_cxx_werror_flag"
13696 || test ! -s conftest.err'
480ccd21
DE
13697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; } &&
13702 { ac_try='test -s conftest.$ac_objext'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
3006edc0 13708 ac_cv_prog_cc_g=yes
480ccd21
DE
13709else
13710 echo "$as_me: failed program was:" >&5
13711sed 's/^/| /' conftest.$ac_ext >&5
13712
3006edc0 13713ac_cv_prog_cc_g=no
480ccd21
DE
13714fi
13715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13716fi
3006edc0
VZ
13717echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13718echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13719if test "$ac_test_CFLAGS" = set; then
13720 CFLAGS=$ac_save_CFLAGS
13721elif test $ac_cv_prog_cc_g = yes; then
13722 if test "$GCC" = yes; then
13723 CFLAGS="-g -O2"
480ccd21 13724 else
3006edc0 13725 CFLAGS="-g"
480ccd21
DE
13726 fi
13727else
3006edc0
VZ
13728 if test "$GCC" = yes; then
13729 CFLAGS="-O2"
480ccd21 13730 else
3006edc0 13731 CFLAGS=
480ccd21
DE
13732 fi
13733fi
3006edc0 13734 fi
ab0ad5f1 13735 fi
3006edc0
VZ
13736
13737 case `uname -s` in
13738 AIX*)
13739 ac_ext=cc
13740ac_cpp='$CXXCPP $CPPFLAGS'
13741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13744
13745echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13746echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13747if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749else
13750 cat >conftest.$ac_ext <<_ACEOF
13751/* confdefs.h. */
13752_ACEOF
13753cat confdefs.h >>conftest.$ac_ext
13754cat >>conftest.$ac_ext <<_ACEOF
13755/* end confdefs.h. */
13756
13757int
13758main ()
13759{
13760#ifndef __xlC__
13761 choke me
13762#endif
13763
13764 ;
13765 return 0;
13766}
13767_ACEOF
13768rm -f conftest.$ac_objext
13769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
2b850ae1
RR
13777 { ac_try='test -z "$ac_cxx_werror_flag"
13778 || test ! -s conftest.err'
3006edc0
VZ
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest.$ac_objext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
0093c2fc 13790 bakefile_compiler_xlc=yes
3006edc0
VZ
13791else
13792 echo "$as_me: failed program was:" >&5
13793sed 's/^/| /' conftest.$ac_ext >&5
13794
0093c2fc 13795bakefile_compiler_xlc=no
3006edc0
VZ
13796fi
13797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13798 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13799
13800fi
0093c2fc
VZ
13801echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13802echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13803
0093c2fc 13804XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13805ac_ext=cc
13806ac_cpp='$CXXCPP $CPPFLAGS'
13807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13810
13811
13812 ;;
13813
13814 Darwin)
13815 ac_ext=cc
95986553
DE
13816ac_cpp='$CXXCPP $CPPFLAGS'
13817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13820
13821echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13822echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13823if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825else
13826 cat >conftest.$ac_ext <<_ACEOF
13827/* confdefs.h. */
13828_ACEOF
13829cat confdefs.h >>conftest.$ac_ext
13830cat >>conftest.$ac_ext <<_ACEOF
13831/* end confdefs.h. */
13832
13833int
13834main ()
13835{
13836#ifndef __MWERKS__
13837 choke me
13838#endif
13839
13840 ;
13841 return 0;
13842}
13843_ACEOF
13844rm -f conftest.$ac_objext
13845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13846 (eval $ac_compile) 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
2b850ae1
RR
13853 { ac_try='test -z "$ac_cxx_werror_flag"
13854 || test ! -s conftest.err'
95986553
DE
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 bakefile_compiler_mwerks=yes
13867else
13868 echo "$as_me: failed program was:" >&5
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
13871bakefile_compiler_mwerks=no
13872fi
13873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13874 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13875
13876fi
13877echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13878echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13879
0e6fa1d9 13880MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13881ac_ext=cc
13882ac_cpp='$CXXCPP $CPPFLAGS'
13883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13886
13887
3006edc0 13888 ac_ext=cc
9273ffba
DE
13889ac_cpp='$CXXCPP $CPPFLAGS'
13890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13893
13894echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13895echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13896if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898else
13899 cat >conftest.$ac_ext <<_ACEOF
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
13904/* end confdefs.h. */
13905
13906int
13907main ()
13908{
13909#ifndef __xlC__
13910 choke me
13911#endif
13912
13913 ;
13914 return 0;
13915}
13916_ACEOF
13917rm -f conftest.$ac_objext
13918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13919 (eval $ac_compile) 2>conftest.er1
13920 ac_status=$?
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
2b850ae1
RR
13926 { ac_try='test -z "$ac_cxx_werror_flag"
13927 || test ! -s conftest.err'
9273ffba
DE
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; } &&
13933 { ac_try='test -s conftest.$ac_objext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
0093c2fc 13939 bakefile_compiler_xlc=yes
9273ffba
DE
13940else
13941 echo "$as_me: failed program was:" >&5
13942sed 's/^/| /' conftest.$ac_ext >&5
13943
0093c2fc 13944bakefile_compiler_xlc=no
9273ffba
DE
13945fi
13946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13947 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13948
13949fi
0093c2fc
VZ
13950echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13951echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13952
0093c2fc 13953XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13954ac_ext=cc
13955ac_cpp='$CXXCPP $CPPFLAGS'
13956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13959
13960
3006edc0
VZ
13961 ;;
13962
13963 IRIX*)
95986553 13964
6dcfc289 13965
0ad5d837
VZ
13966 ac_ext=cc
13967ac_cpp='$CXXCPP $CPPFLAGS'
13968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13971
13972 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13973echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13974if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976else
13977 cat >conftest.$ac_ext <<_ACEOF
13978/* confdefs.h. */
13979_ACEOF
13980cat confdefs.h >>conftest.$ac_ext
13981cat >>conftest.$ac_ext <<_ACEOF
13982/* end confdefs.h. */
13983
13984int
13985main ()
13986{
13987
13988 #ifndef _SGI_COMPILER_VERSION
13989 choke me
13990 #endif
13991
13992 ;
13993 return 0;
13994}
13995_ACEOF
13996rm -f conftest.$ac_objext
13997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13998 (eval $ac_compile) 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
2b850ae1
RR
14005 { ac_try='test -z "$ac_cxx_werror_flag"
14006 || test ! -s conftest.err'
0ad5d837
VZ
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; } &&
14012 { ac_try='test -s conftest.$ac_objext'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14019else
14020 echo "$as_me: failed program was:" >&5
14021sed 's/^/| /' conftest.$ac_ext >&5
14022
14023bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14024
14025fi
14026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14027
14028
14029fi
14030echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14031echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14032 ac_ext=cc
14033ac_cpp='$CXXCPP $CPPFLAGS'
14034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14037
14038 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14039 :; SGICXX=yes
14040 else
14041 :;
14042 fi
14043
14044
3006edc0
VZ
14045 ;;
14046
0093c2fc 14047 HP-UX*)
3006edc0
VZ
14048
14049
14050 ac_ext=cc
14051ac_cpp='$CXXCPP $CPPFLAGS'
14052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14055
0093c2fc
VZ
14056 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14057echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14058if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14060else
14061 cat >conftest.$ac_ext <<_ACEOF
14062/* confdefs.h. */
14063_ACEOF
14064cat confdefs.h >>conftest.$ac_ext
14065cat >>conftest.$ac_ext <<_ACEOF
14066/* end confdefs.h. */
14067
14068int
14069main ()
14070{
14071
0093c2fc 14072 #ifndef __HP_aCC
3006edc0
VZ
14073 choke me
14074 #endif
14075
14076 ;
14077 return 0;
14078}
14079_ACEOF
14080rm -f conftest.$ac_objext
14081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14082 (eval $ac_compile) 2>conftest.er1
14083 ac_status=$?
14084 grep -v '^ *+' conftest.er1 >conftest.err
14085 rm -f conftest.er1
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
2b850ae1
RR
14089 { ac_try='test -z "$ac_cxx_werror_flag"
14090 || test ! -s conftest.err'
3006edc0
VZ
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; } &&
14096 { ac_try='test -s conftest.$ac_objext'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
0093c2fc 14102 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14103else
14104 echo "$as_me: failed program was:" >&5
14105sed 's/^/| /' conftest.$ac_ext >&5
14106
0093c2fc 14107bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14108
14109fi
14110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14111
14112
14113fi
0093c2fc
VZ
14114echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14115echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14116 ac_ext=cc
14117ac_cpp='$CXXCPP $CPPFLAGS'
14118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14121
0093c2fc
VZ
14122 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14123 :; HPCXX=yes
a1aa0349
VZ
14124 else
14125 :;
14126 fi
14127
14128
14129 ;;
14130
0093c2fc 14131 OSF1)
a1aa0349
VZ
14132
14133
14134 ac_ext=cc
14135ac_cpp='$CXXCPP $CPPFLAGS'
14136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14139
0093c2fc
VZ
14140 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14141echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14142if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144else
14145 cat >conftest.$ac_ext <<_ACEOF
14146/* confdefs.h. */
14147_ACEOF
14148cat confdefs.h >>conftest.$ac_ext
14149cat >>conftest.$ac_ext <<_ACEOF
14150/* end confdefs.h. */
14151
14152int
14153main ()
14154{
14155
0093c2fc 14156 #ifndef __DECCXX
a1aa0349
VZ
14157 choke me
14158 #endif
14159
14160 ;
14161 return 0;
14162}
14163_ACEOF
14164rm -f conftest.$ac_objext
14165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14166 (eval $ac_compile) 2>conftest.er1
14167 ac_status=$?
14168 grep -v '^ *+' conftest.er1 >conftest.err
14169 rm -f conftest.er1
14170 cat conftest.err >&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
2b850ae1
RR
14173 { ac_try='test -z "$ac_cxx_werror_flag"
14174 || test ! -s conftest.err'
a1aa0349
VZ
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest.$ac_objext'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
0093c2fc 14186 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14187else
14188 echo "$as_me: failed program was:" >&5
14189sed 's/^/| /' conftest.$ac_ext >&5
14190
0093c2fc 14191bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14192
14193fi
14194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14195
14196
14197fi
0093c2fc
VZ
14198echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14199echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14200 ac_ext=cc
14201ac_cpp='$CXXCPP $CPPFLAGS'
14202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14205
0093c2fc
VZ
14206 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14207 :; COMPAQCXX=yes
14208 else
14209 :;
14210 fi
14211
14212
14213 ;;
14214
14215 SunOS)
14216
14217
14218 ac_ext=cc
14219ac_cpp='$CXXCPP $CPPFLAGS'
14220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14223
14224 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14225echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14226if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228else
14229 cat >conftest.$ac_ext <<_ACEOF
14230/* confdefs.h. */
14231_ACEOF
14232cat confdefs.h >>conftest.$ac_ext
14233cat >>conftest.$ac_ext <<_ACEOF
14234/* end confdefs.h. */
14235
14236int
14237main ()
14238{
14239
14240 #ifndef __SUNPRO_CC
14241 choke me
14242 #endif
14243
14244 ;
14245 return 0;
14246}
14247_ACEOF
14248rm -f conftest.$ac_objext
14249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14250 (eval $ac_compile) 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
2b850ae1
RR
14257 { ac_try='test -z "$ac_cxx_werror_flag"
14258 || test ! -s conftest.err'
0093c2fc
VZ
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; } &&
14264 { ac_try='test -s conftest.$ac_objext'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14267 ac_status=$?
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14271else
14272 echo "$as_me: failed program was:" >&5
14273sed 's/^/| /' conftest.$ac_ext >&5
14274
14275bakefile_cv_cxx_compiler___SUNPRO_CC=no
14276
14277fi
14278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14279
14280
14281fi
14282echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14283echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14284 ac_ext=cc
14285ac_cpp='$CXXCPP $CPPFLAGS'
14286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14289
14290 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14291 :; SUNCXX=yes
3006edc0
VZ
14292 else
14293 :;
ab0ad5f1 14294 fi
a9e5b1f0
MW
14295
14296
3006edc0
VZ
14297 ;;
14298 esac
14299 fi
14300
14301
14302
a848cd7e
SC
14303ac_ext=c
14304ac_cpp='$CPP $CPPFLAGS'
14305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14307ac_compiler_gnu=$ac_cv_c_compiler_gnu
14308
14309
a848cd7e
SC
14310if test -n "$ac_tool_prefix"; then
14311 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14312set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14313echo "$as_me:$LINENO: checking for $ac_word" >&5
14314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14315if test "${ac_cv_prog_RANLIB+set}" = set; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14317else
14318 if test -n "$RANLIB"; then
14319 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14320else
14321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14322for as_dir in $PATH
14323do
14324 IFS=$as_save_IFS
14325 test -z "$as_dir" && as_dir=.
14326 for ac_exec_ext in '' $ac_executable_extensions; do
14327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14328 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14330 break 2
14331 fi
14332done
14333done
14334
14335fi
14336fi
14337RANLIB=$ac_cv_prog_RANLIB
14338if test -n "$RANLIB"; then
14339 echo "$as_me:$LINENO: result: $RANLIB" >&5
14340echo "${ECHO_T}$RANLIB" >&6
14341else
14342 echo "$as_me:$LINENO: result: no" >&5
14343echo "${ECHO_T}no" >&6
14344fi
14345
14346fi
14347if test -z "$ac_cv_prog_RANLIB"; then
14348 ac_ct_RANLIB=$RANLIB
14349 # Extract the first word of "ranlib", so it can be a program name with args.
14350set dummy ranlib; ac_word=$2
14351echo "$as_me:$LINENO: checking for $ac_word" >&5
14352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14353if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355else
14356 if test -n "$ac_ct_RANLIB"; then
14357 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14358else
14359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360for as_dir in $PATH
14361do
14362 IFS=$as_save_IFS
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
14365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14366 ac_cv_prog_ac_ct_RANLIB="ranlib"
14367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14368 break 2
14369 fi
14370done
14371done
14372
14373 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14374fi
14375fi
14376ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14377if test -n "$ac_ct_RANLIB"; then
14378 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14379echo "${ECHO_T}$ac_ct_RANLIB" >&6
14380else
14381 echo "$as_me:$LINENO: result: no" >&5
14382echo "${ECHO_T}no" >&6
14383fi
14384
14385 RANLIB=$ac_ct_RANLIB
14386else
14387 RANLIB="$ac_cv_prog_RANLIB"
14388fi
14389
14390
8c80d384
DE
14391if test -n "$ac_tool_prefix"; then
14392 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14393set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14394echo "$as_me:$LINENO: checking for $ac_word" >&5
14395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14396if test "${ac_cv_prog_AR+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14398else
14399 if test -n "$AR"; then
14400 ac_cv_prog_AR="$AR" # Let the user override the test.
14401else
14402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14403for as_dir in $PATH
14404do
14405 IFS=$as_save_IFS
14406 test -z "$as_dir" && as_dir=.
14407 for ac_exec_ext in '' $ac_executable_extensions; do
14408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14409 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14411 break 2
14412 fi
14413done
14414done
14415
14416fi
14417fi
14418AR=$ac_cv_prog_AR
14419if test -n "$AR"; then
14420 echo "$as_me:$LINENO: result: $AR" >&5
14421echo "${ECHO_T}$AR" >&6
14422else
14423 echo "$as_me:$LINENO: result: no" >&5
14424echo "${ECHO_T}no" >&6
14425fi
14426
8c80d384
DE
14427fi
14428if test -z "$ac_cv_prog_AR"; then
14429 ac_ct_AR=$AR
14430 # Extract the first word of "ar", so it can be a program name with args.
14431set dummy ar; ac_word=$2
14432echo "$as_me:$LINENO: checking for $ac_word" >&5
14433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14434if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436else
14437 if test -n "$ac_ct_AR"; then
14438 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14439else
14440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441for as_dir in $PATH
14442do
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14447 ac_cv_prog_ac_ct_AR="ar"
14448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 break 2
14450 fi
14451done
14452done
14453
14454fi
14455fi
14456ac_ct_AR=$ac_cv_prog_ac_ct_AR
14457if test -n "$ac_ct_AR"; then
14458 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14459echo "${ECHO_T}$ac_ct_AR" >&6
14460else
14461 echo "$as_me:$LINENO: result: no" >&5
14462echo "${ECHO_T}no" >&6
14463fi
14464
14465 AR=$ac_ct_AR
14466else
14467 AR="$ac_cv_prog_AR"
14468fi
14469
a848cd7e 14470if test "x$AR" = "x" ; then
77ffb593
JS
14471 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14472echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14473 { (exit 1); exit 1; }; }
14474fi
14475
14476# Find a good install program. We prefer a C program (faster),
14477# so one script is as good as another. But avoid the broken or
14478# incompatible versions:
14479# SysV /etc/install, /usr/sbin/install
14480# SunOS /usr/etc/install
14481# IRIX /sbin/install
14482# AIX /bin/install
14483# AmigaOS /C/install, which installs bootblocks on floppy discs
14484# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14485# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14486# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14487# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14488# ./install, which can be erroneously created by make from ./install.sh.
14489echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14490echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14491if test -z "$INSTALL"; then
14492if test "${ac_cv_path_install+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494else
14495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14496for as_dir in $PATH
14497do
14498 IFS=$as_save_IFS
14499 test -z "$as_dir" && as_dir=.
14500 # Account for people who put trailing slashes in PATH elements.
14501case $as_dir/ in
14502 ./ | .// | /cC/* | \
14503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14504 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14505 /usr/ucb/* ) ;;
14506 *)
14507 # OSF1 and SCO ODT 3.0 have their own names for install.
14508 # Don't use installbsd from OSF since it installs stuff as root
14509 # by default.
14510 for ac_prog in ginstall scoinst install; do
14511 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14512 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14513 if test $ac_prog = install &&
14514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14515 # AIX install. It has an incompatible calling convention.
14516 :
14517 elif test $ac_prog = install &&
14518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14519 # program-specific install script used by HP pwplus--don't use.
14520 :
14521 else
14522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14523 break 3
14524 fi
14525 fi
a848cd7e
SC
14526 done
14527 done
14528 ;;
14529esac
14530done
14531
14532
14533fi
14534 if test "${ac_cv_path_install+set}" = set; then
14535 INSTALL=$ac_cv_path_install
14536 else
14537 # As a last resort, use the slow shell script. We don't cache a
14538 # path for INSTALL within a source directory, because that will
14539 # break other packages using the cache if that directory is
14540 # removed, or if the path is relative.
14541 INSTALL=$ac_install_sh
14542 fi
14543fi
14544echo "$as_me:$LINENO: result: $INSTALL" >&5
14545echo "${ECHO_T}$INSTALL" >&6
14546
14547# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14548# It thinks the first close brace ends the variable substitution.
14549test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14550
14551test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14552
14553test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14554
14555
14556case ${INSTALL} in
14557 /* ) # Absolute
14558 ;;
14559 ?:* ) # Drive letter, considered as absolute.
14560 ;;
14561 *)
14562 INSTALL=`pwd`/${INSTALL} ;;
14563esac
14564
a848cd7e
SC
14565
14566case "${host}" in
14567
cfda0ea8 14568 *-*-darwin* )
a848cd7e
SC
14569 INSTALL_PROGRAM="cp -fp"
14570 INSTALL_DATA="cp -fp"
14571 ;;
14572 *)
14573 ;;
14574esac
14575
8c80d384
DE
14576if test -n "$ac_tool_prefix"; then
14577 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14578set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14579echo "$as_me:$LINENO: checking for $ac_word" >&5
14580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14581if test "${ac_cv_prog_STRIP+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14583else
14584 if test -n "$STRIP"; then
14585 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14586else
14587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14588for as_dir in $PATH
14589do
14590 IFS=$as_save_IFS
14591 test -z "$as_dir" && as_dir=.
14592 for ac_exec_ext in '' $ac_executable_extensions; do
14593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14594 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14596 break 2
14597 fi
14598done
14599done
14600
a848cd7e
SC
14601fi
14602fi
14603STRIP=$ac_cv_prog_STRIP
14604if test -n "$STRIP"; then
14605 echo "$as_me:$LINENO: result: $STRIP" >&5
14606echo "${ECHO_T}$STRIP" >&6
14607else
14608 echo "$as_me:$LINENO: result: no" >&5
14609echo "${ECHO_T}no" >&6
14610fi
14611
8c80d384
DE
14612fi
14613if test -z "$ac_cv_prog_STRIP"; then
14614 ac_ct_STRIP=$STRIP
14615 # Extract the first word of "strip", so it can be a program name with args.
14616set dummy strip; ac_word=$2
14617echo "$as_me:$LINENO: checking for $ac_word" >&5
14618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14619if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14621else
14622 if test -n "$ac_ct_STRIP"; then
14623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14624else
14625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14626for as_dir in $PATH
14627do
14628 IFS=$as_save_IFS
14629 test -z "$as_dir" && as_dir=.
14630 for ac_exec_ext in '' $ac_executable_extensions; do
14631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14632 ac_cv_prog_ac_ct_STRIP="strip"
14633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14634 break 2
14635 fi
14636done
14637done
14638
14639 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14640fi
14641fi
14642ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14643if test -n "$ac_ct_STRIP"; then
14644 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14645echo "${ECHO_T}$ac_ct_STRIP" >&6
14646else
14647 echo "$as_me:$LINENO: result: no" >&5
14648echo "${ECHO_T}no" >&6
14649fi
14650
14651 STRIP=$ac_ct_STRIP
14652else
14653 STRIP="$ac_cv_prog_STRIP"
14654fi
14655
14656
14657if test "$wxUSE_WINE" = "yes"; then
14658 if test -n "$ac_tool_prefix"; then
14659 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14660set dummy ${ac_tool_prefix}wrc; ac_word=$2
14661echo "$as_me:$LINENO: checking for $ac_word" >&5
14662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14663if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665else
8ced02f6
DE
14666 if test -n "$WINDRES"; then
14667 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14668else
14669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14670for as_dir in $PATH
14671do
14672 IFS=$as_save_IFS
14673 test -z "$as_dir" && as_dir=.
14674 for ac_exec_ext in '' $ac_executable_extensions; do
14675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14676 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14678 break 2
14679 fi
14680done
14681done
14682
14683fi
14684fi
8ced02f6
DE
14685WINDRES=$ac_cv_prog_WINDRES
14686if test -n "$WINDRES"; then
14687 echo "$as_me:$LINENO: result: $WINDRES" >&5
14688echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14689else
14690 echo "$as_me:$LINENO: result: no" >&5
14691echo "${ECHO_T}no" >&6
14692fi
14693
14694fi
8ced02f6
DE
14695if test -z "$ac_cv_prog_WINDRES"; then
14696 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14697 # Extract the first word of "wrc", so it can be a program name with args.
14698set dummy wrc; ac_word=$2
14699echo "$as_me:$LINENO: checking for $ac_word" >&5
14700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14701if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703else
8ced02f6
DE
14704 if test -n "$ac_ct_WINDRES"; then
14705 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14706else
14707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708for as_dir in $PATH
14709do
14710 IFS=$as_save_IFS
14711 test -z "$as_dir" && as_dir=.
14712 for ac_exec_ext in '' $ac_executable_extensions; do
14713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14714 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14716 break 2
14717 fi
14718done
14719done
14720
14721fi
14722fi
8ced02f6
DE
14723ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14724if test -n "$ac_ct_WINDRES"; then
14725 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14726echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14727else
14728 echo "$as_me:$LINENO: result: no" >&5
14729echo "${ECHO_T}no" >&6
14730fi
14731
8ced02f6 14732 WINDRES=$ac_ct_WINDRES
8c80d384 14733else
8ced02f6 14734 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14735fi
14736
004ee6da 14737 RESCOMP="$WINDRES"
8c80d384
DE
14738else
14739 case "${host}" in
14740 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14741 if test -n "$ac_tool_prefix"; then
14742 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14743set dummy ${ac_tool_prefix}windres; ac_word=$2
14744echo "$as_me:$LINENO: checking for $ac_word" >&5
14745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14746if test "${ac_cv_prog_WINDRES+set}" = set; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14748else
14749 if test -n "$WINDRES"; then
14750 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14751else
14752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14753for as_dir in $PATH
14754do
14755 IFS=$as_save_IFS
14756 test -z "$as_dir" && as_dir=.
14757 for ac_exec_ext in '' $ac_executable_extensions; do
14758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14759 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14761 break 2
14762 fi
14763done
14764done
14765
14766fi
14767fi
14768WINDRES=$ac_cv_prog_WINDRES
14769if test -n "$WINDRES"; then
14770 echo "$as_me:$LINENO: result: $WINDRES" >&5
14771echo "${ECHO_T}$WINDRES" >&6
14772else
14773 echo "$as_me:$LINENO: result: no" >&5
14774echo "${ECHO_T}no" >&6
14775fi
14776
14777fi
14778if test -z "$ac_cv_prog_WINDRES"; then
14779 ac_ct_WINDRES=$WINDRES
14780 # Extract the first word of "windres", so it can be a program name with args.
14781set dummy windres; ac_word=$2
14782echo "$as_me:$LINENO: checking for $ac_word" >&5
14783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14784if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786else
14787 if test -n "$ac_ct_WINDRES"; then
14788 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14789else
14790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14791for as_dir in $PATH
14792do
14793 IFS=$as_save_IFS
14794 test -z "$as_dir" && as_dir=.
14795 for ac_exec_ext in '' $ac_executable_extensions; do
14796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14797 ac_cv_prog_ac_ct_WINDRES="windres"
14798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14799 break 2
14800 fi
14801done
14802done
14803
14804fi
14805fi
14806ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14807if test -n "$ac_ct_WINDRES"; then
14808 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14809echo "${ECHO_T}$ac_ct_WINDRES" >&6
14810else
14811 echo "$as_me:$LINENO: result: no" >&5
14812echo "${ECHO_T}no" >&6
14813fi
14814
14815 WINDRES=$ac_ct_WINDRES
14816else
14817 WINDRES="$ac_cv_prog_WINDRES"
14818fi
14819
14820 RESCOMP="$WINDRES"
14821 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14822 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14823set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14824echo "$as_me:$LINENO: checking for $ac_word" >&5
14825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14826if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14828else
14829 if test -n "$DLLTOOL"; then
14830 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14831else
14832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14833for as_dir in $PATH
14834do
14835 IFS=$as_save_IFS
14836 test -z "$as_dir" && as_dir=.
14837 for ac_exec_ext in '' $ac_executable_extensions; do
14838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14839 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14841 break 2
14842 fi
14843done
14844done
14845
14846fi
14847fi
14848DLLTOOL=$ac_cv_prog_DLLTOOL
14849if test -n "$DLLTOOL"; then
14850 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14851echo "${ECHO_T}$DLLTOOL" >&6
14852else
14853 echo "$as_me:$LINENO: result: no" >&5
14854echo "${ECHO_T}no" >&6
14855fi
14856
14857fi
14858if test -z "$ac_cv_prog_DLLTOOL"; then
14859 ac_ct_DLLTOOL=$DLLTOOL
14860 # Extract the first word of "dlltool", so it can be a program name with args.
14861set dummy dlltool; ac_word=$2
14862echo "$as_me:$LINENO: checking for $ac_word" >&5
14863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14864if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866else
14867 if test -n "$ac_ct_DLLTOOL"; then
14868 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14869else
14870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14871for as_dir in $PATH
14872do
14873 IFS=$as_save_IFS
14874 test -z "$as_dir" && as_dir=.
14875 for ac_exec_ext in '' $ac_executable_extensions; do
14876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14877 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14879 break 2
14880 fi
14881done
14882done
14883
14884fi
14885fi
14886ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14887if test -n "$ac_ct_DLLTOOL"; then
14888 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14889echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14890else
14891 echo "$as_me:$LINENO: result: no" >&5
14892echo "${ECHO_T}no" >&6
14893fi
14894
14895 DLLTOOL=$ac_ct_DLLTOOL
14896else
14897 DLLTOOL="$ac_cv_prog_DLLTOOL"
14898fi
14899
14900 ;;
14901 esac
14902fi
a848cd7e
SC
14903
14904echo "$as_me:$LINENO: checking if make is GNU make" >&5
14905echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14906if test "${wx_cv_prog_makeisgnu+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14908else
14909
14910 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14911 egrep -s GNU > /dev/null); then
14912 wx_cv_prog_makeisgnu="yes"
14913 else
14914 wx_cv_prog_makeisgnu="no"
14915 fi
14916
14917fi
14918echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14919echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14920
14921if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14922 IF_GNU_MAKE=""
14923else
14924 IF_GNU_MAKE="#"
14925fi
14926
14927
14928
14929if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14930echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14931echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14932if test "${wx_cv_prog_makevpath+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934else
14935
14936cat - << EOF > confMake
14937check : file
14938 cp \$? \$@
14939 cp \$? final_file
14940EOF
14941
14942if test ! -d sub ; then
14943 mkdir sub
14944fi
14945echo dummy > sub/file
14946${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14947RESULT=$?
14948rm -f sub/file check final_file confMake
14949rmdir sub
14950if test "$RESULT" = 0; then
14951 wx_cv_prog_makevpath="yes"
14952else
14953 wx_cv_prog_makevpath="no"
14954fi
14955
14956fi
14957echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14958echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14959
14960if test "x$wx_cv_prog_makevpath" != "xyes"; then
14961{ { echo "$as_me:$LINENO: error:
14962You need a make-utility that is able to use the variable
14963VPATH correctly.
14964If your version of make does not support VPATH correctly,
14965please install GNU-make (possibly as gmake), and start
14966configure with the following command:
14967export MAKE=gmake; ./configure for sh-type shells
14968setenv MAKE gmake; ./configure for csh-type shells
14969Also please do remember to use gmake in this case every time
14970you are trying to compile.
14971" >&5
14972echo "$as_me: error:
14973You need a make-utility that is able to use the variable
14974VPATH correctly.
14975If your version of make does not support VPATH correctly,
14976please install GNU-make (possibly as gmake), and start
14977configure with the following command:
14978export MAKE=gmake; ./configure for sh-type shells
14979setenv MAKE gmake; ./configure for csh-type shells
14980Also please do remember to use gmake in this case every time
14981you are trying to compile.
14982" >&2;}
14983 { (exit 1); exit 1; }; }
14984fi fi
14985echo "$as_me:$LINENO: checking whether ln -s works" >&5
14986echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14987LN_S=$as_ln_s
14988if test "$LN_S" = "ln -s"; then
14989 echo "$as_me:$LINENO: result: yes" >&5
14990echo "${ECHO_T}yes" >&6
14991else
14992 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14993echo "${ECHO_T}no, using $LN_S" >&6
14994fi
14995
14996
bcaab0f9 14997
a848cd7e 14998
2113bc77 14999if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15000 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15001fi
15002
4d7ec9f1
DE
15003case "${host}" in
15004 powerpc-*-darwin* )
15005 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15006echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15007 cat >conftest.$ac_ext <<_ACEOF
15008/* confdefs.h. */
15009_ACEOF
15010cat confdefs.h >>conftest.$ac_ext
15011cat >>conftest.$ac_ext <<_ACEOF
15012/* end confdefs.h. */
15013
15014int
15015main ()
15016{
15017#ifndef __POWERPC__
15018 choke me for lack of PowerPC
15019#endif
15020
15021 ;
15022 return 0;
15023}
15024_ACEOF
15025rm -f conftest.$ac_objext
15026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15027 (eval $ac_compile) 2>conftest.er1
15028 ac_status=$?
15029 grep -v '^ *+' conftest.er1 >conftest.err
15030 rm -f conftest.er1
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
2b850ae1
RR
15034 { ac_try='test -z "$ac_c_werror_flag"
15035 || test ! -s conftest.err'
4d7ec9f1
DE
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; } &&
15041 { ac_try='test -s conftest.$ac_objext'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 echo "$as_me:$LINENO: result: yes" >&5
15048echo "${ECHO_T}yes" >&6
15049else
15050 echo "$as_me: failed program was:" >&5
15051sed 's/^/| /' conftest.$ac_ext >&5
15052
15053echo "$as_me:$LINENO: result: no" >&5
15054echo "${ECHO_T}no" >&6
15055 cat >>confdefs.h <<\_ACEOF
15056#define __POWERPC__ 1
15057_ACEOF
15058
15059
15060fi
15061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15062 ;;
15063esac
15064
15065case "${host}" in
15066 *-*-darwin* )
4d7ec9f1
DE
15067 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15068echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15069 cat >conftest.$ac_ext <<_ACEOF
15070/* confdefs.h. */
15071_ACEOF
15072cat confdefs.h >>conftest.$ac_ext
15073cat >>conftest.$ac_ext <<_ACEOF
15074/* end confdefs.h. */
15075#include <CoreFoundation/CFBase.h>
15076
15077int
15078main ()
15079{
15080
15081 ;
15082 return 0;
15083}
15084_ACEOF
15085rm -f conftest.$ac_objext
15086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>conftest.er1
15088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
2b850ae1
RR
15094 { ac_try='test -z "$ac_c_werror_flag"
15095 || test ! -s conftest.err'
4d7ec9f1
DE
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest.$ac_objext'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15107 echo "$as_me:$LINENO: result: yes" >&5
15108echo "${ECHO_T}yes" >&6
15109else
15110 echo "$as_me: failed program was:" >&5
15111sed 's/^/| /' conftest.$ac_ext >&5
15112
15113echo "$as_me:$LINENO: result: no" >&5
15114echo "${ECHO_T}no" >&6
15115 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15116echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15117 cat >conftest.$ac_ext <<_ACEOF
15118/* confdefs.h. */
15119_ACEOF
15120cat confdefs.h >>conftest.$ac_ext
15121cat >>conftest.$ac_ext <<_ACEOF
15122/* end confdefs.h. */
15123#define __CF_USE_FRAMEWORK_INCLUDES__
15124#include <CoreFoundation/CFBase.h>
15125
15126int
15127main ()
15128{
15129
15130 ;
15131 return 0;
15132}
15133_ACEOF
15134rm -f conftest.$ac_objext
15135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15136 (eval $ac_compile) 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
2b850ae1
RR
15143 { ac_try='test -z "$ac_c_werror_flag"
15144 || test ! -s conftest.err'
4d7ec9f1
DE
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; } &&
15150 { ac_try='test -s conftest.$ac_objext'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 echo "$as_me:$LINENO: result: yes" >&5
15157echo "${ECHO_T}yes" >&6
c92ad099 15158 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15159else
15160 echo "$as_me: failed program was:" >&5
15161sed 's/^/| /' conftest.$ac_ext >&5
15162
15163{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15164See \`config.log' for more details." >&5
15165echo "$as_me: error: no. CoreFoundation not available.
15166See \`config.log' for more details." >&2;}
15167 { (exit 1); exit 1; }; }
15168
15169fi
15170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15171
15172
15173fi
15174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15175 ;;
15176esac
15177
a848cd7e
SC
15178case "${host}" in
15179 *-pc-os2_emx | *-pc-os2-emx )
15180 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15181 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15182echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15183if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15185else
15186 ac_check_lib_save_LIBS=$LIBS
15187LIBS="-lcExt $LIBS"
15188cat >conftest.$ac_ext <<_ACEOF
15189/* confdefs.h. */
15190_ACEOF
15191cat confdefs.h >>conftest.$ac_ext
15192cat >>conftest.$ac_ext <<_ACEOF
15193/* end confdefs.h. */
15194
15195/* Override any gcc2 internal prototype to avoid an error. */
15196#ifdef __cplusplus
15197extern "C"
15198#endif
15199/* We use char because int might match the return type of a gcc2
15200 builtin and then its argument prototype would still apply. */
15201char drand48 ();
15202int
15203main ()
15204{
15205drand48 ();
15206 ;
15207 return 0;
15208}
15209_ACEOF
15210rm -f conftest.$ac_objext conftest$ac_exeext
15211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15212 (eval $ac_link) 2>conftest.er1
a848cd7e 15213 ac_status=$?
ac1cb8d3
VS
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
a848cd7e
SC
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
2b850ae1
RR
15219 { ac_try='test -z "$ac_c_werror_flag"
15220 || test ! -s conftest.err'
ac1cb8d3
VS
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_cv_lib_cExt_drand48=yes
15233else
15234 echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237ac_cv_lib_cExt_drand48=no
15238fi
ac1cb8d3
VS
15239rm -f conftest.err conftest.$ac_objext \
15240 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15241LIBS=$ac_check_lib_save_LIBS
15242fi
15243echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15244echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15245if test $ac_cv_lib_cExt_drand48 = yes; then
15246 LIBS="$LIBS -lcExt"
15247fi
15248
15249 else
15250 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15251 fi
69120ee4
VZ
15252 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15253echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15254if test "${wx_cv_gccversion+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256else
15257
391a765e
VS
15258 if test "$cross_compiling" = yes; then
15259 wx_cv_gccversion="EMX2"
15260
15261else
15262 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15263/* confdefs.h. */
15264_ACEOF
15265cat confdefs.h >>conftest.$ac_ext
15266cat >>conftest.$ac_ext <<_ACEOF
15267/* end confdefs.h. */
15268
391a765e 15269 #include <stdio.h>
a848cd7e 15270
391a765e
VS
15271 int main()
15272 {
15273 FILE *f=fopen("conftestval", "w");
15274 if (!f) exit(1);
15275 fprintf(f,
a848cd7e 15276 #if (__GNUC__ < 3)
391a765e
VS
15277 "EMX2"
15278 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15279 "EMX3"
15280 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15281 "Innotek5"
15282 #else
15283 "Innotek6"
a848cd7e 15284 #endif
391a765e
VS
15285 );
15286 exit(0);
15287 }
a848cd7e 15288
a848cd7e 15289_ACEOF
391a765e
VS
15290rm -f conftest$ac_exeext
15291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15292 (eval $ac_link) 2>&5
ac1cb8d3
VS
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
391a765e 15301 wx_cv_gccversion=`cat conftestval`
a848cd7e 15302else
391a765e
VS
15303 echo "$as_me: program exited with status $ac_status" >&5
15304echo "$as_me: failed program was:" >&5
a848cd7e
SC
15305sed 's/^/| /' conftest.$ac_ext >&5
15306
391a765e
VS
15307( exit $ac_status )
15308wx_cv_gccversion="EMX2"
a848cd7e 15309fi
391a765e 15310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15311fi
a848cd7e
SC
15312
15313fi
15314echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15315echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15316 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15317 LIBS="$LIBS -lstdcpp"
15318 LDFLAGS="$LDFLAGS -Zsysv-signals"
15319 else
391a765e 15320 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15321 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15322 LDFLAGS="$LDFLAGS -Zsysv-signals"
15323 else
15324 LIBS="$LIBS -lstdc++"
15325 fi
15326 fi
94acd38e
DE
15327 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15328 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15329echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15330 wxUSE_OMF=yes
2da0c077 15331 enable_omf=yes
a848cd7e
SC
15332 fi
15333 ;;
15334 *)
15335
a848cd7e
SC
15336 ac_ext=cc
15337ac_cpp='$CXXCPP $CPPFLAGS'
15338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15341
15342
95986553 15343 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15344echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15345if test "${ac_cv_string_strcasecmp+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347else
15348
15349 cat >conftest.$ac_ext <<_ACEOF
15350/* confdefs.h. */
15351_ACEOF
15352cat confdefs.h >>conftest.$ac_ext
15353cat >>conftest.$ac_ext <<_ACEOF
15354/* end confdefs.h. */
15355
15356 #include <string.h>
15357
15358int
15359main ()
15360{
15361
15362 strcasecmp("foo", "bar");
15363
15364 ;
15365 return 0;
15366}
15367_ACEOF
15368rm -f conftest.$ac_objext conftest$ac_exeext
15369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15370 (eval $ac_link) 2>conftest.er1
a848cd7e 15371 ac_status=$?
ac1cb8d3
VS
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
a848cd7e
SC
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
2b850ae1
RR
15377 { ac_try='test -z "$ac_cxx_werror_flag"
15378 || test ! -s conftest.err'
ac1cb8d3
VS
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; } &&
15384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390 ac_cv_string_strcasecmp=yes
15391else
15392 echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
15395ac_cv_string_strcasecmp=no
15396
15397fi
ac1cb8d3
VS
15398rm -f conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15400
15401fi
15402echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15403echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15404
15405 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15406 cat >>confdefs.h <<\_ACEOF
15407#define HAVE_STRCASECMP_IN_STRING_H 1
15408_ACEOF
15409
15410 else
15411 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15412echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15413if test "${ac_cv_strings_strcasecmp+set}" = set; then
15414 echo $ECHO_N "(cached) $ECHO_C" >&6
15415else
15416
15417 cat >conftest.$ac_ext <<_ACEOF
15418/* confdefs.h. */
15419_ACEOF
15420cat confdefs.h >>conftest.$ac_ext
15421cat >>conftest.$ac_ext <<_ACEOF
15422/* end confdefs.h. */
15423
15424 #include <strings.h>
15425
15426int
15427main ()
15428{
15429
15430 strcasecmp("foo", "bar");
15431
15432 ;
15433 return 0;
15434}
15435_ACEOF
15436rm -f conftest.$ac_objext conftest$ac_exeext
15437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15438 (eval $ac_link) 2>conftest.er1
a848cd7e 15439 ac_status=$?
ac1cb8d3
VS
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
a848cd7e
SC
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
2b850ae1
RR
15445 { ac_try='test -z "$ac_cxx_werror_flag"
15446 || test ! -s conftest.err'
ac1cb8d3
VS
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_strings_strcasecmp=yes
15459else
15460 echo "$as_me: failed program was:" >&5
15461sed 's/^/| /' conftest.$ac_ext >&5
15462
15463ac_cv_strings_strcasecmp=no
15464
15465fi
ac1cb8d3
VS
15466rm -f conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15468
15469fi
15470echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15471echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15472
0c3c69fc 15473 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15474 cat >>confdefs.h <<\_ACEOF
15475#define HAVE_STRCASECMP_IN_STRINGS_H 1
15476_ACEOF
15477
15478 else
15479 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15480echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15481 { (exit 1); exit 1; }; }
15482 fi
15483 fi
15484
15485 ac_ext=c
15486ac_cpp='$CPP $CPPFLAGS'
15487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15489ac_compiler_gnu=$ac_cv_c_compiler_gnu
15490
15491 ;;
15492esac
15493
15494
15495echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15496echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15497if test "${ac_cv_header_stdc+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15499else
15500 cat >conftest.$ac_ext <<_ACEOF
15501/* confdefs.h. */
15502_ACEOF
15503cat confdefs.h >>conftest.$ac_ext
15504cat >>conftest.$ac_ext <<_ACEOF
15505/* end confdefs.h. */
15506#include <stdlib.h>
15507#include <stdarg.h>
15508#include <string.h>
15509#include <float.h>
15510
15511int
15512main ()
15513{
15514
15515 ;
15516 return 0;
15517}
15518_ACEOF
15519rm -f conftest.$ac_objext
15520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15521 (eval $ac_compile) 2>conftest.er1
a848cd7e 15522 ac_status=$?
ac1cb8d3
VS
15523 grep -v '^ *+' conftest.er1 >conftest.err
15524 rm -f conftest.er1
15525 cat conftest.err >&5
a848cd7e
SC
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
2b850ae1
RR
15528 { ac_try='test -z "$ac_c_werror_flag"
15529 || test ! -s conftest.err'
ac1cb8d3
VS
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; } &&
15535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; }; then
15541 ac_cv_header_stdc=yes
15542else
15543 echo "$as_me: failed program was:" >&5
15544sed 's/^/| /' conftest.$ac_ext >&5
15545
15546ac_cv_header_stdc=no
15547fi
ac1cb8d3 15548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15549
15550if test $ac_cv_header_stdc = yes; then
15551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15552 cat >conftest.$ac_ext <<_ACEOF
15553/* confdefs.h. */
15554_ACEOF
15555cat confdefs.h >>conftest.$ac_ext
15556cat >>conftest.$ac_ext <<_ACEOF
15557/* end confdefs.h. */
15558#include <string.h>
15559
15560_ACEOF
15561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15562 $EGREP "memchr" >/dev/null 2>&1; then
15563 :
15564else
15565 ac_cv_header_stdc=no
15566fi
15567rm -f conftest*
15568
15569fi
15570
15571if test $ac_cv_header_stdc = yes; then
15572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15573 cat >conftest.$ac_ext <<_ACEOF
15574/* confdefs.h. */
15575_ACEOF
15576cat confdefs.h >>conftest.$ac_ext
15577cat >>conftest.$ac_ext <<_ACEOF
15578/* end confdefs.h. */
15579#include <stdlib.h>
15580
15581_ACEOF
15582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15583 $EGREP "free" >/dev/null 2>&1; then
15584 :
15585else
15586 ac_cv_header_stdc=no
15587fi
15588rm -f conftest*
15589
15590fi
15591
15592if test $ac_cv_header_stdc = yes; then
15593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15594 if test "$cross_compiling" = yes; then
15595 :
15596else
15597 cat >conftest.$ac_ext <<_ACEOF
15598/* confdefs.h. */
15599_ACEOF
15600cat confdefs.h >>conftest.$ac_ext
15601cat >>conftest.$ac_ext <<_ACEOF
15602/* end confdefs.h. */
15603#include <ctype.h>
15604#if ((' ' & 0x0FF) == 0x020)
15605# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15606# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15607#else
15608# define ISLOWER(c) \
ac1cb8d3
VS
15609 (('a' <= (c) && (c) <= 'i') \
15610 || ('j' <= (c) && (c) <= 'r') \
15611 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15612# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15613#endif
15614
15615#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15616int
15617main ()
15618{
15619 int i;
15620 for (i = 0; i < 256; i++)
15621 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15622 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15623 exit(2);
15624 exit (0);
15625}
15626_ACEOF
15627rm -f conftest$ac_exeext
15628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15629 (eval $ac_link) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 :
15639else
15640 echo "$as_me: program exited with status $ac_status" >&5
15641echo "$as_me: failed program was:" >&5
15642sed 's/^/| /' conftest.$ac_ext >&5
15643
15644( exit $ac_status )
15645ac_cv_header_stdc=no
15646fi
ac1cb8d3 15647rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15648fi
15649fi
15650fi
15651echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15652echo "${ECHO_T}$ac_cv_header_stdc" >&6
15653if test $ac_cv_header_stdc = yes; then
15654
15655cat >>confdefs.h <<\_ACEOF
15656#define STDC_HEADERS 1
15657_ACEOF
15658
15659fi
15660
15661# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15672 inttypes.h stdint.h unistd.h
a848cd7e
SC
15673do
15674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15675echo "$as_me:$LINENO: checking for $ac_header" >&5
15676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15677if eval "test \"\${$as_ac_Header+set}\" = set"; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679else
15680 cat >conftest.$ac_ext <<_ACEOF
15681/* confdefs.h. */
15682_ACEOF
15683cat confdefs.h >>conftest.$ac_ext
15684cat >>conftest.$ac_ext <<_ACEOF
15685/* end confdefs.h. */
15686$ac_includes_default
15687
15688#include <$ac_header>
15689_ACEOF
15690rm -f conftest.$ac_objext
15691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15692 (eval $ac_compile) 2>conftest.er1
a848cd7e 15693 ac_status=$?
ac1cb8d3
VS
15694 grep -v '^ *+' conftest.er1 >conftest.err
15695 rm -f conftest.er1
15696 cat conftest.err >&5
a848cd7e
SC
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); } &&
2b850ae1
RR
15699 { ac_try='test -z "$ac_c_werror_flag"
15700 || test ! -s conftest.err'
ac1cb8d3
VS
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; } &&
15706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; }; then
15712 eval "$as_ac_Header=yes"
15713else
15714 echo "$as_me: failed program was:" >&5
15715sed 's/^/| /' conftest.$ac_ext >&5
15716
15717eval "$as_ac_Header=no"
15718fi
ac1cb8d3 15719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15720fi
15721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15723if test `eval echo '${'$as_ac_Header'}'` = yes; then
15724 cat >>confdefs.h <<_ACEOF
15725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15726_ACEOF
15727
15728fi
15729
15730done
15731
15732
15733
15734for ac_header in stdlib.h
15735do
15736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15737if eval "test \"\${$as_ac_Header+set}\" = set"; then
15738 echo "$as_me:$LINENO: checking for $ac_header" >&5
15739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15740if eval "test \"\${$as_ac_Header+set}\" = set"; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742fi
15743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15745else
15746 # Is the header compilable?
15747echo "$as_me:$LINENO: checking $ac_header usability" >&5
15748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15749cat >conftest.$ac_ext <<_ACEOF
15750/* confdefs.h. */
15751_ACEOF
15752cat confdefs.h >>conftest.$ac_ext
15753cat >>conftest.$ac_ext <<_ACEOF
15754/* end confdefs.h. */
15755$ac_includes_default
15756#include <$ac_header>
15757_ACEOF
15758rm -f conftest.$ac_objext
15759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15760 (eval $ac_compile) 2>conftest.er1
a848cd7e 15761 ac_status=$?
ac1cb8d3
VS
15762 grep -v '^ *+' conftest.er1 >conftest.err
15763 rm -f conftest.er1
15764 cat conftest.err >&5
a848cd7e
SC
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
2b850ae1
RR
15767 { ac_try='test -z "$ac_c_werror_flag"
15768 || test ! -s conftest.err'
ac1cb8d3
VS
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; } &&
15774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_header_compiler=yes
15781else
15782 echo "$as_me: failed program was:" >&5
15783sed 's/^/| /' conftest.$ac_ext >&5
15784
15785ac_header_compiler=no
15786fi
ac1cb8d3 15787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15788echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15789echo "${ECHO_T}$ac_header_compiler" >&6
15790
15791# Is the header present?
15792echo "$as_me:$LINENO: checking $ac_header presence" >&5
15793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15794cat >conftest.$ac_ext <<_ACEOF
15795/* confdefs.h. */
15796_ACEOF
15797cat confdefs.h >>conftest.$ac_ext
15798cat >>conftest.$ac_ext <<_ACEOF
15799/* end confdefs.h. */
15800#include <$ac_header>
15801_ACEOF
15802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15804 ac_status=$?
15805 grep -v '^ *+' conftest.er1 >conftest.err
15806 rm -f conftest.er1
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } >/dev/null; then
15810 if test -s conftest.err; then
15811 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15813 else
15814 ac_cpp_err=
15815 fi
15816else
15817 ac_cpp_err=yes
15818fi
15819if test -z "$ac_cpp_err"; then
15820 ac_header_preproc=yes
15821else
15822 echo "$as_me: failed program was:" >&5
15823sed 's/^/| /' conftest.$ac_ext >&5
15824
15825 ac_header_preproc=no
15826fi
15827rm -f conftest.err conftest.$ac_ext
15828echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15829echo "${ECHO_T}$ac_header_preproc" >&6
15830
15831# So? What about this header?
ac1cb8d3
VS
15832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15833 yes:no: )
a848cd7e
SC
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15835echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15837echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15838 ac_header_preproc=yes
a848cd7e 15839 ;;
ac1cb8d3 15840 no:yes:* )
a848cd7e
SC
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15842echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15844echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15846echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15848echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15850echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15852echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15853 (
15854 cat <<\_ASBOX
ac1cb8d3
VS
15855## ----------------------------------------- ##
15856## Report this to wx-dev@lists.wxwidgets.org ##
15857## ----------------------------------------- ##
a848cd7e
SC
15858_ASBOX
15859 ) |
15860 sed "s/^/$as_me: WARNING: /" >&2
15861 ;;
15862esac
15863echo "$as_me:$LINENO: checking for $ac_header" >&5
15864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15865if eval "test \"\${$as_ac_Header+set}\" = set"; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15867else
ac1cb8d3 15868 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15869fi
15870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15872
15873fi
15874if test `eval echo '${'$as_ac_Header'}'` = yes; then
15875 cat >>confdefs.h <<_ACEOF
15876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15877_ACEOF
15878
15879fi
15880
15881done
15882
15883
15884for ac_header in malloc.h
15885do
15886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15887if eval "test \"\${$as_ac_Header+set}\" = set"; then
15888 echo "$as_me:$LINENO: checking for $ac_header" >&5
15889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15890if eval "test \"\${$as_ac_Header+set}\" = set"; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15892fi
15893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15895else
15896 # Is the header compilable?
15897echo "$as_me:$LINENO: checking $ac_header usability" >&5
15898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15899cat >conftest.$ac_ext <<_ACEOF
15900/* confdefs.h. */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h. */
15905$ac_includes_default
15906#include <$ac_header>
15907_ACEOF
15908rm -f conftest.$ac_objext
15909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15910 (eval $ac_compile) 2>conftest.er1
a848cd7e 15911 ac_status=$?
ac1cb8d3
VS
15912 grep -v '^ *+' conftest.er1 >conftest.err
15913 rm -f conftest.er1
15914 cat conftest.err >&5
a848cd7e
SC
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
2b850ae1
RR
15917 { ac_try='test -z "$ac_c_werror_flag"
15918 || test ! -s conftest.err'
ac1cb8d3
VS
15919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; } &&
15924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
15930 ac_header_compiler=yes
15931else
15932 echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
15935ac_header_compiler=no
15936fi
ac1cb8d3 15937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15939echo "${ECHO_T}$ac_header_compiler" >&6
15940
15941# Is the header present?
15942echo "$as_me:$LINENO: checking $ac_header presence" >&5
15943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15944cat >conftest.$ac_ext <<_ACEOF
15945/* confdefs.h. */
15946_ACEOF
15947cat confdefs.h >>conftest.$ac_ext
15948cat >>conftest.$ac_ext <<_ACEOF
15949/* end confdefs.h. */
15950#include <$ac_header>
15951_ACEOF
15952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } >/dev/null; then
15960 if test -s conftest.err; then
15961 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15963 else
15964 ac_cpp_err=
15965 fi
15966else
15967 ac_cpp_err=yes
15968fi
15969if test -z "$ac_cpp_err"; then
15970 ac_header_preproc=yes
15971else
15972 echo "$as_me: failed program was:" >&5
15973sed 's/^/| /' conftest.$ac_ext >&5
15974
15975 ac_header_preproc=no
15976fi
15977rm -f conftest.err conftest.$ac_ext
15978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15979echo "${ECHO_T}$ac_header_preproc" >&6
15980
15981# So? What about this header?
ac1cb8d3
VS
15982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15983 yes:no: )
a848cd7e
SC
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15988 ac_header_preproc=yes
a848cd7e 15989 ;;
ac1cb8d3 15990 no:yes:* )
a848cd7e
SC
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15998echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16003 (
16004 cat <<\_ASBOX
ac1cb8d3
VS
16005## ----------------------------------------- ##
16006## Report this to wx-dev@lists.wxwidgets.org ##
16007## ----------------------------------------- ##
a848cd7e
SC
16008_ASBOX
16009 ) |
16010 sed "s/^/$as_me: WARNING: /" >&2
16011 ;;
16012esac
16013echo "$as_me:$LINENO: checking for $ac_header" >&5
16014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16015if eval "test \"\${$as_ac_Header+set}\" = set"; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16017else
ac1cb8d3 16018 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16019fi
16020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16022
16023fi
16024if test `eval echo '${'$as_ac_Header'}'` = yes; then
16025 cat >>confdefs.h <<_ACEOF
16026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16027_ACEOF
16028
16029fi
16030
16031done
16032
16033
16034for ac_header in unistd.h
16035do
16036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16037if eval "test \"\${$as_ac_Header+set}\" = set"; then
16038 echo "$as_me:$LINENO: checking for $ac_header" >&5
16039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16040if eval "test \"\${$as_ac_Header+set}\" = set"; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16042fi
16043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16045else
16046 # Is the header compilable?
16047echo "$as_me:$LINENO: checking $ac_header usability" >&5
16048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16049cat >conftest.$ac_ext <<_ACEOF
16050/* confdefs.h. */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h. */
16055$ac_includes_default
16056#include <$ac_header>
16057_ACEOF
16058rm -f conftest.$ac_objext
16059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16060 (eval $ac_compile) 2>conftest.er1
a848cd7e 16061 ac_status=$?
ac1cb8d3
VS
16062 grep -v '^ *+' conftest.er1 >conftest.err
16063 rm -f conftest.er1
16064 cat conftest.err >&5
a848cd7e
SC
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
2b850ae1
RR
16067 { ac_try='test -z "$ac_c_werror_flag"
16068 || test ! -s conftest.err'
ac1cb8d3
VS
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 ac_header_compiler=yes
16081else
16082 echo "$as_me: failed program was:" >&5
16083sed 's/^/| /' conftest.$ac_ext >&5
16084
16085ac_header_compiler=no
16086fi
ac1cb8d3 16087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16088echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16089echo "${ECHO_T}$ac_header_compiler" >&6
16090
16091# Is the header present?
16092echo "$as_me:$LINENO: checking $ac_header presence" >&5
16093echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16094cat >conftest.$ac_ext <<_ACEOF
16095/* confdefs.h. */
16096_ACEOF
16097cat confdefs.h >>conftest.$ac_ext
16098cat >>conftest.$ac_ext <<_ACEOF
16099/* end confdefs.h. */
16100#include <$ac_header>
16101_ACEOF
16102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16104 ac_status=$?
16105 grep -v '^ *+' conftest.er1 >conftest.err
16106 rm -f conftest.er1
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } >/dev/null; then
16110 if test -s conftest.err; then
16111 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16113 else
16114 ac_cpp_err=
16115 fi
16116else
16117 ac_cpp_err=yes
16118fi
16119if test -z "$ac_cpp_err"; then
16120 ac_header_preproc=yes
16121else
16122 echo "$as_me: failed program was:" >&5
16123sed 's/^/| /' conftest.$ac_ext >&5
16124
16125 ac_header_preproc=no
16126fi
16127rm -f conftest.err conftest.$ac_ext
16128echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16129echo "${ECHO_T}$ac_header_preproc" >&6
16130
16131# So? What about this header?
ac1cb8d3
VS
16132case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16133 yes:no: )
a848cd7e
SC
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16135echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16137echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16138 ac_header_preproc=yes
a848cd7e 16139 ;;
ac1cb8d3 16140 no:yes:* )
a848cd7e
SC
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16142echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16144echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16146echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16148echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16150echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16152echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16153 (
16154 cat <<\_ASBOX
ac1cb8d3
VS
16155## ----------------------------------------- ##
16156## Report this to wx-dev@lists.wxwidgets.org ##
16157## ----------------------------------------- ##
a848cd7e
SC
16158_ASBOX
16159 ) |
16160 sed "s/^/$as_me: WARNING: /" >&2
16161 ;;
16162esac
16163echo "$as_me:$LINENO: checking for $ac_header" >&5
16164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16165if eval "test \"\${$as_ac_Header+set}\" = set"; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16167else
ac1cb8d3 16168 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16169fi
16170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16171echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16172
16173fi
16174if test `eval echo '${'$as_ac_Header'}'` = yes; then
16175 cat >>confdefs.h <<_ACEOF
16176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16177_ACEOF
16178
16179fi
16180
16181done
16182
16183
16184for ac_header in wchar.h
16185do
16186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16187if eval "test \"\${$as_ac_Header+set}\" = set"; then
16188 echo "$as_me:$LINENO: checking for $ac_header" >&5
16189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16190if eval "test \"\${$as_ac_Header+set}\" = set"; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192fi
16193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16194echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16195else
16196 # Is the header compilable?
16197echo "$as_me:$LINENO: checking $ac_header usability" >&5
16198echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16199cat >conftest.$ac_ext <<_ACEOF
16200/* confdefs.h. */
16201_ACEOF
16202cat confdefs.h >>conftest.$ac_ext
16203cat >>conftest.$ac_ext <<_ACEOF
16204/* end confdefs.h. */
16205$ac_includes_default
16206#include <$ac_header>
16207_ACEOF
16208rm -f conftest.$ac_objext
16209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16210 (eval $ac_compile) 2>conftest.er1
a848cd7e 16211 ac_status=$?
ac1cb8d3
VS
16212 grep -v '^ *+' conftest.er1 >conftest.err
16213 rm -f conftest.er1
16214 cat conftest.err >&5
a848cd7e
SC
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
2b850ae1
RR
16217 { ac_try='test -z "$ac_c_werror_flag"
16218 || test ! -s conftest.err'
ac1cb8d3
VS
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; } &&
16224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 ac_header_compiler=yes
16231else
16232 echo "$as_me: failed program was:" >&5
16233sed 's/^/| /' conftest.$ac_ext >&5
16234
16235ac_header_compiler=no
16236fi
ac1cb8d3 16237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16238echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16239echo "${ECHO_T}$ac_header_compiler" >&6
16240
16241# Is the header present?
16242echo "$as_me:$LINENO: checking $ac_header presence" >&5
16243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16244cat >conftest.$ac_ext <<_ACEOF
16245/* confdefs.h. */
16246_ACEOF
16247cat confdefs.h >>conftest.$ac_ext
16248cat >>conftest.$ac_ext <<_ACEOF
16249/* end confdefs.h. */
16250#include <$ac_header>
16251_ACEOF
16252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16254 ac_status=$?
16255 grep -v '^ *+' conftest.er1 >conftest.err
16256 rm -f conftest.er1
16257 cat conftest.err >&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } >/dev/null; then
16260 if test -s conftest.err; then
16261 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16263 else
16264 ac_cpp_err=
16265 fi
16266else
16267 ac_cpp_err=yes
16268fi
16269if test -z "$ac_cpp_err"; then
16270 ac_header_preproc=yes
16271else
16272 echo "$as_me: failed program was:" >&5
16273sed 's/^/| /' conftest.$ac_ext >&5
16274
16275 ac_header_preproc=no
16276fi
16277rm -f conftest.err conftest.$ac_ext
16278echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16279echo "${ECHO_T}$ac_header_preproc" >&6
16280
16281# So? What about this header?
ac1cb8d3
VS
16282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16283 yes:no: )
a848cd7e
SC
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16285echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16287echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16288 ac_header_preproc=yes
a848cd7e 16289 ;;
ac1cb8d3 16290 no:yes:* )
a848cd7e
SC
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16292echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16294echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16296echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16298echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16300echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16302echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16303 (
16304 cat <<\_ASBOX
ac1cb8d3
VS
16305## ----------------------------------------- ##
16306## Report this to wx-dev@lists.wxwidgets.org ##
16307## ----------------------------------------- ##
a848cd7e
SC
16308_ASBOX
16309 ) |
16310 sed "s/^/$as_me: WARNING: /" >&2
16311 ;;
16312esac
16313echo "$as_me:$LINENO: checking for $ac_header" >&5
16314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16315if eval "test \"\${$as_ac_Header+set}\" = set"; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16317else
ac1cb8d3 16318 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16319fi
16320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16322
16323fi
16324if test `eval echo '${'$as_ac_Header'}'` = yes; then
16325 cat >>confdefs.h <<_ACEOF
16326#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16327_ACEOF
16328
16329fi
16330
16331done
16332
16333
16334if test "$ac_cv_header_wchar_h" != "yes"; then
16335
16336for ac_header in wcstr.h
16337do
16338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16339if eval "test \"\${$as_ac_Header+set}\" = set"; then
16340 echo "$as_me:$LINENO: checking for $ac_header" >&5
16341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16342if eval "test \"\${$as_ac_Header+set}\" = set"; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16344fi
16345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16347else
16348 # Is the header compilable?
16349echo "$as_me:$LINENO: checking $ac_header usability" >&5
16350echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16351cat >conftest.$ac_ext <<_ACEOF
16352/* confdefs.h. */
16353_ACEOF
16354cat confdefs.h >>conftest.$ac_ext
16355cat >>conftest.$ac_ext <<_ACEOF
16356/* end confdefs.h. */
16357$ac_includes_default
16358#include <$ac_header>
16359_ACEOF
16360rm -f conftest.$ac_objext
16361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16362 (eval $ac_compile) 2>conftest.er1
a848cd7e 16363 ac_status=$?
ac1cb8d3
VS
16364 grep -v '^ *+' conftest.er1 >conftest.err
16365 rm -f conftest.er1
16366 cat conftest.err >&5
a848cd7e
SC
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } &&
2b850ae1
RR
16369 { ac_try='test -z "$ac_c_werror_flag"
16370 || test ! -s conftest.err'
ac1cb8d3
VS
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; } &&
16376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 ac_header_compiler=yes
16383else
16384 echo "$as_me: failed program was:" >&5
16385sed 's/^/| /' conftest.$ac_ext >&5
16386
16387ac_header_compiler=no
16388fi
ac1cb8d3 16389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16390echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16391echo "${ECHO_T}$ac_header_compiler" >&6
16392
16393# Is the header present?
16394echo "$as_me:$LINENO: checking $ac_header presence" >&5
16395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16396cat >conftest.$ac_ext <<_ACEOF
16397/* confdefs.h. */
16398_ACEOF
16399cat confdefs.h >>conftest.$ac_ext
16400cat >>conftest.$ac_ext <<_ACEOF
16401/* end confdefs.h. */
16402#include <$ac_header>
16403_ACEOF
16404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16406 ac_status=$?
16407 grep -v '^ *+' conftest.er1 >conftest.err
16408 rm -f conftest.er1
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } >/dev/null; then
16412 if test -s conftest.err; then
16413 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16415 else
16416 ac_cpp_err=
16417 fi
16418else
16419 ac_cpp_err=yes
16420fi
16421if test -z "$ac_cpp_err"; then
16422 ac_header_preproc=yes
16423else
16424 echo "$as_me: failed program was:" >&5
16425sed 's/^/| /' conftest.$ac_ext >&5
16426
16427 ac_header_preproc=no
16428fi
16429rm -f conftest.err conftest.$ac_ext
16430echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16431echo "${ECHO_T}$ac_header_preproc" >&6
16432
16433# So? What about this header?
ac1cb8d3
VS
16434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16435 yes:no: )
a848cd7e
SC
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16440 ac_header_preproc=yes
a848cd7e 16441 ;;
ac1cb8d3 16442 no:yes:* )
a848cd7e
SC
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16450echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16455 (
16456 cat <<\_ASBOX
ac1cb8d3
VS
16457## ----------------------------------------- ##
16458## Report this to wx-dev@lists.wxwidgets.org ##
16459## ----------------------------------------- ##
a848cd7e
SC
16460_ASBOX
16461 ) |
16462 sed "s/^/$as_me: WARNING: /" >&2
16463 ;;
16464esac
16465echo "$as_me:$LINENO: checking for $ac_header" >&5
16466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16467if eval "test \"\${$as_ac_Header+set}\" = set"; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16469else
ac1cb8d3 16470 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16471fi
16472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16474
16475fi
16476if test `eval echo '${'$as_ac_Header'}'` = yes; then
16477 cat >>confdefs.h <<_ACEOF
16478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16479_ACEOF
16480
16481fi
16482
16483done
16484
16485fi
16486
16487
16488for ac_header in fnmatch.h
16489do
16490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16491if eval "test \"\${$as_ac_Header+set}\" = set"; then
16492 echo "$as_me:$LINENO: checking for $ac_header" >&5
16493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16494if eval "test \"\${$as_ac_Header+set}\" = set"; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16496fi
16497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16499else
16500 # Is the header compilable?
16501echo "$as_me:$LINENO: checking $ac_header usability" >&5
16502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16503cat >conftest.$ac_ext <<_ACEOF
16504/* confdefs.h. */
16505_ACEOF
16506cat confdefs.h >>conftest.$ac_ext
16507cat >>conftest.$ac_ext <<_ACEOF
16508/* end confdefs.h. */
16509$ac_includes_default
16510#include <$ac_header>
16511_ACEOF
16512rm -f conftest.$ac_objext
16513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16514 (eval $ac_compile) 2>conftest.er1
a848cd7e 16515 ac_status=$?
ac1cb8d3
VS
16516 grep -v '^ *+' conftest.er1 >conftest.err
16517 rm -f conftest.er1
16518 cat conftest.err >&5
a848cd7e
SC
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } &&
2b850ae1
RR
16521 { ac_try='test -z "$ac_c_werror_flag"
16522 || test ! -s conftest.err'
ac1cb8d3
VS
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 ac_header_compiler=yes
16535else
16536 echo "$as_me: failed program was:" >&5
16537sed 's/^/| /' conftest.$ac_ext >&5
16538
16539ac_header_compiler=no
16540fi
ac1cb8d3 16541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16543echo "${ECHO_T}$ac_header_compiler" >&6
16544
16545# Is the header present?
16546echo "$as_me:$LINENO: checking $ac_header presence" >&5
16547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16548cat >conftest.$ac_ext <<_ACEOF
16549/* confdefs.h. */
16550_ACEOF
16551cat confdefs.h >>conftest.$ac_ext
16552cat >>conftest.$ac_ext <<_ACEOF
16553/* end confdefs.h. */
16554#include <$ac_header>
16555_ACEOF
16556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16558 ac_status=$?
16559 grep -v '^ *+' conftest.er1 >conftest.err
16560 rm -f conftest.er1
16561 cat conftest.err >&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } >/dev/null; then
16564 if test -s conftest.err; then
16565 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16567 else
16568 ac_cpp_err=
16569 fi
16570else
16571 ac_cpp_err=yes
16572fi
16573if test -z "$ac_cpp_err"; then
16574 ac_header_preproc=yes
16575else
16576 echo "$as_me: failed program was:" >&5
16577sed 's/^/| /' conftest.$ac_ext >&5
16578
16579 ac_header_preproc=no
16580fi
16581rm -f conftest.err conftest.$ac_ext
16582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16583echo "${ECHO_T}$ac_header_preproc" >&6
16584
16585# So? What about this header?
ac1cb8d3
VS
16586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16587 yes:no: )
a848cd7e
SC
16588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16591echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16592 ac_header_preproc=yes
a848cd7e 16593 ;;
ac1cb8d3 16594 no:yes:* )
a848cd7e
SC
16595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16598echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16600echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16602echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16606echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16607 (
16608 cat <<\_ASBOX
ac1cb8d3
VS
16609## ----------------------------------------- ##
16610## Report this to wx-dev@lists.wxwidgets.org ##
16611## ----------------------------------------- ##
a848cd7e
SC
16612_ASBOX
16613 ) |
16614 sed "s/^/$as_me: WARNING: /" >&2
16615 ;;
16616esac
16617echo "$as_me:$LINENO: checking for $ac_header" >&5
16618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16619if eval "test \"\${$as_ac_Header+set}\" = set"; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16621else
ac1cb8d3 16622 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16623fi
16624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16626
16627fi
16628if test `eval echo '${'$as_ac_Header'}'` = yes; then
16629 cat >>confdefs.h <<_ACEOF
16630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16631_ACEOF
16632
16633fi
16634
16635done
16636
16637
a848cd7e
SC
16638
16639for ac_header in langinfo.h
16640do
16641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16642if eval "test \"\${$as_ac_Header+set}\" = set"; then
16643 echo "$as_me:$LINENO: checking for $ac_header" >&5
16644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16645if eval "test \"\${$as_ac_Header+set}\" = set"; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16647fi
16648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16650else
16651 # Is the header compilable?
16652echo "$as_me:$LINENO: checking $ac_header usability" >&5
16653echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16654cat >conftest.$ac_ext <<_ACEOF
16655/* confdefs.h. */
16656_ACEOF
16657cat confdefs.h >>conftest.$ac_ext
16658cat >>conftest.$ac_ext <<_ACEOF
16659/* end confdefs.h. */
16660$ac_includes_default
16661#include <$ac_header>
16662_ACEOF
16663rm -f conftest.$ac_objext
16664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16665 (eval $ac_compile) 2>conftest.er1
a848cd7e 16666 ac_status=$?
ac1cb8d3
VS
16667 grep -v '^ *+' conftest.er1 >conftest.err
16668 rm -f conftest.er1
16669 cat conftest.err >&5
a848cd7e
SC
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
2b850ae1
RR
16672 { ac_try='test -z "$ac_c_werror_flag"
16673 || test ! -s conftest.err'
ac1cb8d3
VS
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_header_compiler=yes
16686else
16687 echo "$as_me: failed program was:" >&5
16688sed 's/^/| /' conftest.$ac_ext >&5
16689
16690ac_header_compiler=no
16691fi
ac1cb8d3 16692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16693echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16694echo "${ECHO_T}$ac_header_compiler" >&6
16695
16696# Is the header present?
16697echo "$as_me:$LINENO: checking $ac_header presence" >&5
16698echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16699cat >conftest.$ac_ext <<_ACEOF
16700/* confdefs.h. */
16701_ACEOF
16702cat confdefs.h >>conftest.$ac_ext
16703cat >>conftest.$ac_ext <<_ACEOF
16704/* end confdefs.h. */
16705#include <$ac_header>
16706_ACEOF
16707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16709 ac_status=$?
16710 grep -v '^ *+' conftest.er1 >conftest.err
16711 rm -f conftest.er1
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } >/dev/null; then
16715 if test -s conftest.err; then
16716 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16718 else
16719 ac_cpp_err=
16720 fi
16721else
16722 ac_cpp_err=yes
16723fi
16724if test -z "$ac_cpp_err"; then
16725 ac_header_preproc=yes
16726else
16727 echo "$as_me: failed program was:" >&5
16728sed 's/^/| /' conftest.$ac_ext >&5
16729
16730 ac_header_preproc=no
16731fi
16732rm -f conftest.err conftest.$ac_ext
16733echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16734echo "${ECHO_T}$ac_header_preproc" >&6
16735
16736# So? What about this header?
ac1cb8d3
VS
16737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16738 yes:no: )
a848cd7e
SC
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16740echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16742echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16743 ac_header_preproc=yes
a848cd7e 16744 ;;
ac1cb8d3 16745 no:yes:* )
a848cd7e
SC
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16747echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16749echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16751echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16753echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16757echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16758 (
16759 cat <<\_ASBOX
ac1cb8d3
VS
16760## ----------------------------------------- ##
16761## Report this to wx-dev@lists.wxwidgets.org ##
16762## ----------------------------------------- ##
a848cd7e
SC
16763_ASBOX
16764 ) |
16765 sed "s/^/$as_me: WARNING: /" >&2
16766 ;;
16767esac
16768echo "$as_me:$LINENO: checking for $ac_header" >&5
16769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16770if eval "test \"\${$as_ac_Header+set}\" = set"; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16772else
ac1cb8d3 16773 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16774fi
16775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16777
16778fi
16779if test `eval echo '${'$as_ac_Header'}'` = yes; then
16780 cat >>confdefs.h <<_ACEOF
16781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16782_ACEOF
16783
16784fi
16785
16786done
16787
16788
16789case "${host}" in
16790 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16791 if test $ac_cv_header_langinfo_h = "yes" \
16792 -a \( "$wx_cv_gccversion" = "EMX2" \
16793 -o "$wx_cv_gccversion" = "EMX3" \
16794 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16795 LIBS="$LIBS -lintl"
16796 fi
16797 ;;
16798esac
16799
a848cd7e
SC
16800
16801echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16802echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16803if test "${ac_cv_c_const+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16805else
16806 cat >conftest.$ac_ext <<_ACEOF
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
16812
16813int
16814main ()
16815{
16816/* FIXME: Include the comments suggested by Paul. */
16817#ifndef __cplusplus
16818 /* Ultrix mips cc rejects this. */
16819 typedef int charset[2];
16820 const charset x;
16821 /* SunOS 4.1.1 cc rejects this. */
16822 char const *const *ccp;
16823 char **p;
16824 /* NEC SVR4.0.2 mips cc rejects this. */
16825 struct point {int x, y;};
16826 static struct point const zero = {0,0};
16827 /* AIX XL C 1.02.0.0 rejects this.
16828 It does not let you subtract one const X* pointer from another in
16829 an arm of an if-expression whose if-part is not a constant
16830 expression */
16831 const char *g = "string";
16832 ccp = &g + (g ? g-g : 0);
16833 /* HPUX 7.0 cc rejects these. */
16834 ++ccp;
16835 p = (char**) ccp;
16836 ccp = (char const *const *) p;
16837 { /* SCO 3.2v4 cc rejects this. */
16838 char *t;
16839 char const *s = 0 ? (char *) 0 : (char const *) 0;
16840
16841 *t++ = 0;
16842 }
16843 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16844 int x[] = {25, 17};
16845 const int *foo = &x[0];
16846 ++foo;
16847 }
16848 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16849 typedef const int *iptr;
16850 iptr p = 0;
16851 ++p;
16852 }
16853 { /* AIX XL C 1.02.0.0 rejects this saying
16854 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16855 struct s { int j; const int *ap[3]; };
16856 struct s *b; b->j = 5;
16857 }
16858 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16859 const int foo = 10;
16860 }
16861#endif
16862
16863 ;
16864 return 0;
16865}
16866_ACEOF
16867rm -f conftest.$ac_objext
16868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16869 (eval $ac_compile) 2>conftest.er1
a848cd7e 16870 ac_status=$?
ac1cb8d3
VS
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
a848cd7e
SC
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
2b850ae1
RR
16876 { ac_try='test -z "$ac_c_werror_flag"
16877 || test ! -s conftest.err'
ac1cb8d3
VS
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 ac_cv_c_const=yes
16890else
16891 echo "$as_me: failed program was:" >&5
16892sed 's/^/| /' conftest.$ac_ext >&5
16893
16894ac_cv_c_const=no
16895fi
ac1cb8d3 16896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16897fi
16898echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16899echo "${ECHO_T}$ac_cv_c_const" >&6
16900if test $ac_cv_c_const = no; then
16901
16902cat >>confdefs.h <<\_ACEOF
16903#define const
16904_ACEOF
16905
16906fi
16907
16908echo "$as_me:$LINENO: checking for inline" >&5
16909echo $ECHO_N "checking for inline... $ECHO_C" >&6
16910if test "${ac_cv_c_inline+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912else
16913 ac_cv_c_inline=no
16914for ac_kw in inline __inline__ __inline; do
16915 cat >conftest.$ac_ext <<_ACEOF
16916/* confdefs.h. */
16917_ACEOF
16918cat confdefs.h >>conftest.$ac_ext
16919cat >>conftest.$ac_ext <<_ACEOF
16920/* end confdefs.h. */
16921#ifndef __cplusplus
16922typedef int foo_t;
16923static $ac_kw foo_t static_foo () {return 0; }
16924$ac_kw foo_t foo () {return 0; }
16925#endif
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); } &&
2b850ae1
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_cv_c_inline=$ac_kw; break
16951else
16952 echo "$as_me: failed program was:" >&5
16953sed 's/^/| /' conftest.$ac_ext >&5
16954
16955fi
ac1cb8d3 16956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16957done
16958
16959fi
16960echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16961echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16962
16963
a848cd7e
SC
16964case $ac_cv_c_inline in
16965 inline | yes) ;;
ac1cb8d3
VS
16966 *)
16967 case $ac_cv_c_inline in
16968 no) ac_val=;;
16969 *) ac_val=$ac_cv_c_inline;;
16970 esac
16971 cat >>confdefs.h <<_ACEOF
16972#ifndef __cplusplus
16973#define inline $ac_val
16974#endif
de59c161 16975_ACEOF
ac1cb8d3 16976 ;;
a848cd7e
SC
16977esac
16978
16979
16980echo "$as_me:$LINENO: checking for char" >&5
16981echo $ECHO_N "checking for char... $ECHO_C" >&6
16982if test "${ac_cv_type_char+set}" = set; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16984else
16985 cat >conftest.$ac_ext <<_ACEOF
16986/* confdefs.h. */
16987_ACEOF
16988cat confdefs.h >>conftest.$ac_ext
16989cat >>conftest.$ac_ext <<_ACEOF
16990/* end confdefs.h. */
16991$ac_includes_default
16992int
16993main ()
16994{
16995if ((char *) 0)
16996 return 0;
16997if (sizeof (char))
16998 return 0;
16999 ;
17000 return 0;
17001}
17002_ACEOF
17003rm -f conftest.$ac_objext
17004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17005 (eval $ac_compile) 2>conftest.er1
a848cd7e 17006 ac_status=$?
ac1cb8d3
VS
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
a848cd7e
SC
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
2b850ae1
RR
17012 { ac_try='test -z "$ac_c_werror_flag"
17013 || test ! -s conftest.err'
ac1cb8d3
VS
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; } &&
17019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 ac_cv_type_char=yes
17026else
17027 echo "$as_me: failed program was:" >&5
17028sed 's/^/| /' conftest.$ac_ext >&5
17029
17030ac_cv_type_char=no
17031fi
ac1cb8d3 17032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17033fi
17034echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17035echo "${ECHO_T}$ac_cv_type_char" >&6
17036
17037echo "$as_me:$LINENO: checking size of char" >&5
17038echo $ECHO_N "checking size of char... $ECHO_C" >&6
17039if test "${ac_cv_sizeof_char+set}" = set; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17041else
17042 if test "$ac_cv_type_char" = yes; then
17043 # The cast to unsigned long works around a bug in the HP C Compiler
17044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17046 # This bug is HP SR number 8606223364.
17047 if test "$cross_compiling" = yes; then
17048 # Depending upon the size, compute the lo and hi bounds.
17049cat >conftest.$ac_ext <<_ACEOF
17050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
17055$ac_includes_default
17056int
17057main ()
17058{
17059static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17060test_array [0] = 0
17061
17062 ;
17063 return 0;
17064}
17065_ACEOF
17066rm -f conftest.$ac_objext
17067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17068 (eval $ac_compile) 2>conftest.er1
a848cd7e 17069 ac_status=$?
ac1cb8d3
VS
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
a848cd7e
SC
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
2b850ae1
RR
17075 { ac_try='test -z "$ac_c_werror_flag"
17076 || test ! -s conftest.err'
ac1cb8d3
VS
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; } &&
17082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 ac_lo=0 ac_mid=0
17089 while :; do
17090 cat >conftest.$ac_ext <<_ACEOF
17091/* confdefs.h. */
17092_ACEOF
17093cat confdefs.h >>conftest.$ac_ext
17094cat >>conftest.$ac_ext <<_ACEOF
17095/* end confdefs.h. */
17096$ac_includes_default
17097int
17098main ()
17099{
17100static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17101test_array [0] = 0
17102
17103 ;
17104 return 0;
17105}
17106_ACEOF
17107rm -f conftest.$ac_objext
17108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17109 (eval $ac_compile) 2>conftest.er1
a848cd7e 17110 ac_status=$?
ac1cb8d3
VS
17111 grep -v '^ *+' conftest.er1 >conftest.err
17112 rm -f conftest.er1
17113 cat conftest.err >&5
a848cd7e
SC
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
2b850ae1
RR
17116 { ac_try='test -z "$ac_c_werror_flag"
17117 || test ! -s conftest.err'
ac1cb8d3
VS
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; } &&
17123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 ac_hi=$ac_mid; break
17130else
17131 echo "$as_me: failed program was:" >&5
17132sed 's/^/| /' conftest.$ac_ext >&5
17133
17134ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17135 if test $ac_lo -le $ac_mid; then
17136 ac_lo= ac_hi=
17137 break
17138 fi
17139 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17140fi
ac1cb8d3 17141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17142 done
17143else
17144 echo "$as_me: failed program was:" >&5
17145sed 's/^/| /' conftest.$ac_ext >&5
17146
17147cat >conftest.$ac_ext <<_ACEOF
17148/* confdefs.h. */
17149_ACEOF
17150cat confdefs.h >>conftest.$ac_ext
17151cat >>conftest.$ac_ext <<_ACEOF
17152/* end confdefs.h. */
17153$ac_includes_default
17154int
17155main ()
17156{
17157static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17158test_array [0] = 0
17159
17160 ;
17161 return 0;
17162}
17163_ACEOF
17164rm -f conftest.$ac_objext
17165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17166 (eval $ac_compile) 2>conftest.er1
a848cd7e 17167 ac_status=$?
ac1cb8d3
VS
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
a848cd7e
SC
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
2b850ae1
RR
17173 { ac_try='test -z "$ac_c_werror_flag"
17174 || test ! -s conftest.err'
ac1cb8d3
VS
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; } &&
17180 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_hi=-1 ac_mid=-1
17187 while :; do
17188 cat >conftest.$ac_ext <<_ACEOF
17189/* confdefs.h. */
17190_ACEOF
17191cat confdefs.h >>conftest.$ac_ext
17192cat >>conftest.$ac_ext <<_ACEOF
17193/* end confdefs.h. */
17194$ac_includes_default
17195int
17196main ()
17197{
17198static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17199test_array [0] = 0
17200
17201 ;
17202 return 0;
17203}
17204_ACEOF
17205rm -f conftest.$ac_objext
17206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17207 (eval $ac_compile) 2>conftest.er1
a848cd7e 17208 ac_status=$?
ac1cb8d3
VS
17209 grep -v '^ *+' conftest.er1 >conftest.err
17210 rm -f conftest.er1
17211 cat conftest.err >&5
a848cd7e
SC
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } &&
2b850ae1
RR
17214 { ac_try='test -z "$ac_c_werror_flag"
17215 || test ! -s conftest.err'
ac1cb8d3
VS
17216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217 (eval $ac_try) 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; } &&
17221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 ac_lo=$ac_mid; break
17228else
17229 echo "$as_me: failed program was:" >&5
17230sed 's/^/| /' conftest.$ac_ext >&5
17231
17232ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17233 if test $ac_mid -le $ac_hi; then
17234 ac_lo= ac_hi=
17235 break
17236 fi
17237 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17238fi
ac1cb8d3 17239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17240 done
17241else
17242 echo "$as_me: failed program was:" >&5
17243sed 's/^/| /' conftest.$ac_ext >&5
17244
17245ac_lo= ac_hi=
17246fi
ac1cb8d3 17247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17248fi
ac1cb8d3 17249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17250# Binary search between lo and hi bounds.
17251while test "x$ac_lo" != "x$ac_hi"; do
17252 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17253 cat >conftest.$ac_ext <<_ACEOF
17254/* confdefs.h. */
17255_ACEOF
17256cat confdefs.h >>conftest.$ac_ext
17257cat >>conftest.$ac_ext <<_ACEOF
17258/* end confdefs.h. */
17259$ac_includes_default
17260int
17261main ()
17262{
17263static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17264test_array [0] = 0
17265
17266 ;
17267 return 0;
17268}
17269_ACEOF
17270rm -f conftest.$ac_objext
17271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17272 (eval $ac_compile) 2>conftest.er1
a848cd7e 17273 ac_status=$?
ac1cb8d3
VS
17274 grep -v '^ *+' conftest.er1 >conftest.err
17275 rm -f conftest.er1
17276 cat conftest.err >&5
a848cd7e
SC
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
2b850ae1
RR
17279 { ac_try='test -z "$ac_c_werror_flag"
17280 || test ! -s conftest.err'
ac1cb8d3
VS
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_hi=$ac_mid
17293else
17294 echo "$as_me: failed program was:" >&5
17295sed 's/^/| /' conftest.$ac_ext >&5
17296
17297ac_lo=`expr '(' $ac_mid ')' + 1`
17298fi
ac1cb8d3 17299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17300done
17301case $ac_lo in
17302?*) ac_cv_sizeof_char=$ac_lo;;
17303'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17304See \`config.log' for more details." >&5
17305echo "$as_me: error: cannot compute sizeof (char), 77
17306See \`config.log' for more details." >&2;}
17307 { (exit 1); exit 1; }; } ;;
17308esac
17309else
17310 if test "$cross_compiling" = yes; then
2b850ae1
RR
17311 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17312See \`config.log' for more details." >&5
17313echo "$as_me: error: cannot run test program while cross compiling
17314See \`config.log' for more details." >&2;}
a848cd7e
SC
17315 { (exit 1); exit 1; }; }
17316else
17317 cat >conftest.$ac_ext <<_ACEOF
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
17323$ac_includes_default
17324long longval () { return (long) (sizeof (char)); }
17325unsigned long ulongval () { return (long) (sizeof (char)); }
17326#include <stdio.h>
17327#include <stdlib.h>
17328int
17329main ()
17330{
17331
17332 FILE *f = fopen ("conftest.val", "w");
17333 if (! f)
17334 exit (1);
17335 if (((long) (sizeof (char))) < 0)
17336 {
17337 long i = longval ();
17338 if (i != ((long) (sizeof (char))))
17339 exit (1);
17340 fprintf (f, "%ld\n", i);
17341 }
17342 else
17343 {
17344 unsigned long i = ulongval ();
17345 if (i != ((long) (sizeof (char))))
17346 exit (1);
17347 fprintf (f, "%lu\n", i);
17348 }
17349 exit (ferror (f) || fclose (f) != 0);
17350
17351 ;
17352 return 0;
17353}
17354_ACEOF
17355rm -f conftest$ac_exeext
17356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17357 (eval $ac_link) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; }; then
17366 ac_cv_sizeof_char=`cat conftest.val`
17367else
17368 echo "$as_me: program exited with status $ac_status" >&5
17369echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372( exit $ac_status )
17373{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17374See \`config.log' for more details." >&5
17375echo "$as_me: error: cannot compute sizeof (char), 77
17376See \`config.log' for more details." >&2;}
17377 { (exit 1); exit 1; }; }
17378fi
ac1cb8d3 17379rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17380fi
17381fi
17382rm -f conftest.val
17383else
17384 ac_cv_sizeof_char=0
17385fi
17386fi
17387echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17388echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17389cat >>confdefs.h <<_ACEOF
17390#define SIZEOF_CHAR $ac_cv_sizeof_char
17391_ACEOF
17392
17393
17394echo "$as_me:$LINENO: checking for short" >&5
17395echo $ECHO_N "checking for short... $ECHO_C" >&6
17396if test "${ac_cv_type_short+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17398else
17399 cat >conftest.$ac_ext <<_ACEOF
17400/* confdefs.h. */
17401_ACEOF
17402cat confdefs.h >>conftest.$ac_ext
17403cat >>conftest.$ac_ext <<_ACEOF
17404/* end confdefs.h. */
17405$ac_includes_default
17406int
17407main ()
17408{
17409if ((short *) 0)
17410 return 0;
17411if (sizeof (short))
17412 return 0;
17413 ;
17414 return 0;
17415}
17416_ACEOF
17417rm -f conftest.$ac_objext
17418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17419 (eval $ac_compile) 2>conftest.er1
a848cd7e 17420 ac_status=$?
ac1cb8d3
VS
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
a848cd7e
SC
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
2b850ae1
RR
17426 { ac_try='test -z "$ac_c_werror_flag"
17427 || test ! -s conftest.err'
ac1cb8d3
VS
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; } &&
17433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 ac_cv_type_short=yes
17440else
17441 echo "$as_me: failed program was:" >&5
17442sed 's/^/| /' conftest.$ac_ext >&5
17443
17444ac_cv_type_short=no
17445fi
ac1cb8d3 17446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17447fi
17448echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17449echo "${ECHO_T}$ac_cv_type_short" >&6
17450
17451echo "$as_me:$LINENO: checking size of short" >&5
17452echo $ECHO_N "checking size of short... $ECHO_C" >&6
17453if test "${ac_cv_sizeof_short+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17455else
17456 if test "$ac_cv_type_short" = yes; then
17457 # The cast to unsigned long works around a bug in the HP C Compiler
17458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17460 # This bug is HP SR number 8606223364.
17461 if test "$cross_compiling" = yes; then
17462 # Depending upon the size, compute the lo and hi bounds.
17463cat >conftest.$ac_ext <<_ACEOF
17464/* confdefs.h. */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h. */
17469$ac_includes_default
17470int
17471main ()
17472{
17473static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17474test_array [0] = 0
17475
17476 ;
17477 return 0;
17478}
17479_ACEOF
17480rm -f conftest.$ac_objext
17481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17482 (eval $ac_compile) 2>conftest.er1
a848cd7e 17483 ac_status=$?
ac1cb8d3
VS
17484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
a848cd7e
SC
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
2b850ae1
RR
17489 { ac_try='test -z "$ac_c_werror_flag"
17490 || test ! -s conftest.err'
ac1cb8d3
VS
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_lo=0 ac_mid=0
17503 while :; do
17504 cat >conftest.$ac_ext <<_ACEOF
17505/* confdefs.h. */
17506_ACEOF
17507cat confdefs.h >>conftest.$ac_ext
17508cat >>conftest.$ac_ext <<_ACEOF
17509/* end confdefs.h. */
17510$ac_includes_default
17511int
17512main ()
17513{
17514static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17515test_array [0] = 0
17516
17517 ;
17518 return 0;
17519}
17520_ACEOF
17521rm -f conftest.$ac_objext
17522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17523 (eval $ac_compile) 2>conftest.er1
a848cd7e 17524 ac_status=$?
ac1cb8d3
VS
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
a848cd7e
SC
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } &&
2b850ae1
RR
17530 { ac_try='test -z "$ac_c_werror_flag"
17531 || test ! -s conftest.err'
ac1cb8d3
VS
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; } &&
17537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; }; then
17543 ac_hi=$ac_mid; break
17544else
17545 echo "$as_me: failed program was:" >&5
17546sed 's/^/| /' conftest.$ac_ext >&5
17547
17548ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17549 if test $ac_lo -le $ac_mid; then
17550 ac_lo= ac_hi=
17551 break
17552 fi
17553 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17554fi
ac1cb8d3 17555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17556 done
17557else
17558 echo "$as_me: failed program was:" >&5
17559sed 's/^/| /' conftest.$ac_ext >&5
17560
17561cat >conftest.$ac_ext <<_ACEOF
17562/* confdefs.h. */
17563_ACEOF
17564cat confdefs.h >>conftest.$ac_ext
17565cat >>conftest.$ac_ext <<_ACEOF
17566/* end confdefs.h. */
17567$ac_includes_default
17568int
17569main ()
17570{
17571static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17572test_array [0] = 0
17573
17574 ;
17575 return 0;
17576}
17577_ACEOF
17578rm -f conftest.$ac_objext
17579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17580 (eval $ac_compile) 2>conftest.er1
a848cd7e 17581 ac_status=$?
ac1cb8d3
VS
17582 grep -v '^ *+' conftest.er1 >conftest.err
17583 rm -f conftest.er1
17584 cat conftest.err >&5
a848cd7e
SC
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
2b850ae1
RR
17587 { ac_try='test -z "$ac_c_werror_flag"
17588 || test ! -s conftest.err'
ac1cb8d3
VS
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 ac_hi=-1 ac_mid=-1
17601 while :; do
17602 cat >conftest.$ac_ext <<_ACEOF
17603/* confdefs.h. */
17604_ACEOF
17605cat confdefs.h >>conftest.$ac_ext
17606cat >>conftest.$ac_ext <<_ACEOF
17607/* end confdefs.h. */
17608$ac_includes_default
17609int
17610main ()
17611{
17612static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17613test_array [0] = 0
17614
17615 ;
17616 return 0;
17617}
17618_ACEOF
17619rm -f conftest.$ac_objext
17620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17621 (eval $ac_compile) 2>conftest.er1
a848cd7e 17622 ac_status=$?
ac1cb8d3
VS
17623 grep -v '^ *+' conftest.er1 >conftest.err
17624 rm -f conftest.er1
17625 cat conftest.err >&5
a848cd7e
SC
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); } &&
2b850ae1
RR
17628 { ac_try='test -z "$ac_c_werror_flag"
17629 || test ! -s conftest.err'
ac1cb8d3
VS
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; } &&
17635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637 (eval $ac_try) 2>&5
17638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; }; then
17641 ac_lo=$ac_mid; break
17642else
17643 echo "$as_me: failed program was:" >&5
17644sed 's/^/| /' conftest.$ac_ext >&5
17645
17646ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17647 if test $ac_mid -le $ac_hi; then
17648 ac_lo= ac_hi=
17649 break
17650 fi
17651 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17652fi
ac1cb8d3 17653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17654 done
17655else
17656 echo "$as_me: failed program was:" >&5
17657sed 's/^/| /' conftest.$ac_ext >&5
17658
17659ac_lo= ac_hi=
17660fi
ac1cb8d3 17661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17662fi
ac1cb8d3 17663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17664# Binary search between lo and hi bounds.
17665while test "x$ac_lo" != "x$ac_hi"; do
17666 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17667 cat >conftest.$ac_ext <<_ACEOF
17668/* confdefs.h. */
17669_ACEOF
17670cat confdefs.h >>conftest.$ac_ext
17671cat >>conftest.$ac_ext <<_ACEOF
17672/* end confdefs.h. */
17673$ac_includes_default
17674int
17675main ()
17676{
17677static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17678test_array [0] = 0
17679
17680 ;
17681 return 0;
17682}
17683_ACEOF
17684rm -f conftest.$ac_objext
17685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17686 (eval $ac_compile) 2>conftest.er1
a848cd7e 17687 ac_status=$?
ac1cb8d3
VS
17688 grep -v '^ *+' conftest.er1 >conftest.err
17689 rm -f conftest.er1
17690 cat conftest.err >&5
a848cd7e
SC
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
2b850ae1
RR
17693 { ac_try='test -z "$ac_c_werror_flag"
17694 || test ! -s conftest.err'
ac1cb8d3
VS
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_hi=$ac_mid
17707else
17708 echo "$as_me: failed program was:" >&5
17709sed 's/^/| /' conftest.$ac_ext >&5
17710
17711ac_lo=`expr '(' $ac_mid ')' + 1`
17712fi
ac1cb8d3 17713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17714done
17715case $ac_lo in
17716?*) ac_cv_sizeof_short=$ac_lo;;
17717'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17718See \`config.log' for more details." >&5
17719echo "$as_me: error: cannot compute sizeof (short), 77
17720See \`config.log' for more details." >&2;}
17721 { (exit 1); exit 1; }; } ;;
17722esac
17723else
17724 if test "$cross_compiling" = yes; then
2b850ae1
RR
17725 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17726See \`config.log' for more details." >&5
17727echo "$as_me: error: cannot run test program while cross compiling
17728See \`config.log' for more details." >&2;}
a848cd7e
SC
17729 { (exit 1); exit 1; }; }
17730else
17731 cat >conftest.$ac_ext <<_ACEOF
17732/* confdefs.h. */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h. */
17737$ac_includes_default
17738long longval () { return (long) (sizeof (short)); }
17739unsigned long ulongval () { return (long) (sizeof (short)); }
17740#include <stdio.h>
17741#include <stdlib.h>
17742int
17743main ()
17744{
17745
17746 FILE *f = fopen ("conftest.val", "w");
17747 if (! f)
17748 exit (1);
17749 if (((long) (sizeof (short))) < 0)
17750 {
17751 long i = longval ();
17752 if (i != ((long) (sizeof (short))))
17753 exit (1);
17754 fprintf (f, "%ld\n", i);
17755 }
17756 else
17757 {
17758 unsigned long i = ulongval ();
17759 if (i != ((long) (sizeof (short))))
17760 exit (1);
17761 fprintf (f, "%lu\n", i);
17762 }
17763 exit (ferror (f) || fclose (f) != 0);
17764
17765 ;
17766 return 0;
17767}
17768_ACEOF
17769rm -f conftest$ac_exeext
17770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17771 (eval $ac_link) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_cv_sizeof_short=`cat conftest.val`
17781else
17782 echo "$as_me: program exited with status $ac_status" >&5
17783echo "$as_me: failed program was:" >&5
17784sed 's/^/| /' conftest.$ac_ext >&5
17785
17786( exit $ac_status )
17787{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17788See \`config.log' for more details." >&5
17789echo "$as_me: error: cannot compute sizeof (short), 77
17790See \`config.log' for more details." >&2;}
17791 { (exit 1); exit 1; }; }
17792fi
ac1cb8d3 17793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17794fi
17795fi
17796rm -f conftest.val
17797else
17798 ac_cv_sizeof_short=0
17799fi
17800fi
17801echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17802echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17803cat >>confdefs.h <<_ACEOF
17804#define SIZEOF_SHORT $ac_cv_sizeof_short
17805_ACEOF
17806
17807
17808echo "$as_me:$LINENO: checking for void *" >&5
17809echo $ECHO_N "checking for void *... $ECHO_C" >&6
17810if test "${ac_cv_type_void_p+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17812else
17813 cat >conftest.$ac_ext <<_ACEOF
17814/* confdefs.h. */
17815_ACEOF
17816cat confdefs.h >>conftest.$ac_ext
17817cat >>conftest.$ac_ext <<_ACEOF
17818/* end confdefs.h. */
17819$ac_includes_default
17820int
17821main ()
17822{
17823if ((void * *) 0)
17824 return 0;
17825if (sizeof (void *))
17826 return 0;
17827 ;
17828 return 0;
17829}
17830_ACEOF
17831rm -f conftest.$ac_objext
17832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17833 (eval $ac_compile) 2>conftest.er1
a848cd7e 17834 ac_status=$?
ac1cb8d3
VS
17835 grep -v '^ *+' conftest.er1 >conftest.err
17836 rm -f conftest.er1
17837 cat conftest.err >&5
a848cd7e
SC
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
2b850ae1
RR
17840 { ac_try='test -z "$ac_c_werror_flag"
17841 || test ! -s conftest.err'
ac1cb8d3
VS
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17853 ac_cv_type_void_p=yes
17854else
17855 echo "$as_me: failed program was:" >&5
17856sed 's/^/| /' conftest.$ac_ext >&5
17857
17858ac_cv_type_void_p=no
17859fi
ac1cb8d3 17860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17861fi
17862echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17863echo "${ECHO_T}$ac_cv_type_void_p" >&6
17864
17865echo "$as_me:$LINENO: checking size of void *" >&5
17866echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17867if test "${ac_cv_sizeof_void_p+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17869else
17870 if test "$ac_cv_type_void_p" = yes; then
17871 # The cast to unsigned long works around a bug in the HP C Compiler
17872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17874 # This bug is HP SR number 8606223364.
17875 if test "$cross_compiling" = yes; then
17876 # Depending upon the size, compute the lo and hi bounds.
17877cat >conftest.$ac_ext <<_ACEOF
17878/* confdefs.h. */
17879_ACEOF
17880cat confdefs.h >>conftest.$ac_ext
17881cat >>conftest.$ac_ext <<_ACEOF
17882/* end confdefs.h. */
17883$ac_includes_default
17884int
17885main ()
17886{
17887static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17888test_array [0] = 0
17889
17890 ;
17891 return 0;
17892}
17893_ACEOF
17894rm -f conftest.$ac_objext
17895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17896 (eval $ac_compile) 2>conftest.er1
a848cd7e 17897 ac_status=$?
ac1cb8d3
VS
17898 grep -v '^ *+' conftest.er1 >conftest.err
17899 rm -f conftest.er1
17900 cat conftest.err >&5
a848cd7e
SC
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } &&
2b850ae1
RR
17903 { ac_try='test -z "$ac_c_werror_flag"
17904 || test ! -s conftest.err'
ac1cb8d3
VS
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; } &&
17910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; }; then
17916 ac_lo=0 ac_mid=0
17917 while :; do
17918 cat >conftest.$ac_ext <<_ACEOF
17919/* confdefs.h. */
17920_ACEOF
17921cat confdefs.h >>conftest.$ac_ext
17922cat >>conftest.$ac_ext <<_ACEOF
17923/* end confdefs.h. */
17924$ac_includes_default
17925int
17926main ()
17927{
17928static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17929test_array [0] = 0
17930
17931 ;
17932 return 0;
17933}
17934_ACEOF
17935rm -f conftest.$ac_objext
17936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17937 (eval $ac_compile) 2>conftest.er1
a848cd7e 17938 ac_status=$?
ac1cb8d3
VS
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
a848cd7e
SC
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
2b850ae1
RR
17944 { ac_try='test -z "$ac_c_werror_flag"
17945 || test ! -s conftest.err'
ac1cb8d3
VS
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_hi=$ac_mid; break
17958else
17959 echo "$as_me: failed program was:" >&5
17960sed 's/^/| /' conftest.$ac_ext >&5
17961
17962ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17963 if test $ac_lo -le $ac_mid; then
17964 ac_lo= ac_hi=
17965 break
17966 fi
17967 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17968fi
ac1cb8d3 17969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17970 done
17971else
17972 echo "$as_me: failed program was:" >&5
17973sed 's/^/| /' conftest.$ac_ext >&5
17974
17975cat >conftest.$ac_ext <<_ACEOF
17976/* confdefs.h. */
17977_ACEOF
17978cat confdefs.h >>conftest.$ac_ext
17979cat >>conftest.$ac_ext <<_ACEOF
17980/* end confdefs.h. */
17981$ac_includes_default
17982int
17983main ()
17984{
17985static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17986test_array [0] = 0
17987
17988 ;
17989 return 0;
17990}
17991_ACEOF
17992rm -f conftest.$ac_objext
17993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17994 (eval $ac_compile) 2>conftest.er1
a848cd7e 17995 ac_status=$?
ac1cb8d3
VS
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
a848cd7e
SC
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
2b850ae1
RR
18001 { ac_try='test -z "$ac_c_werror_flag"
18002 || test ! -s conftest.err'
ac1cb8d3
VS
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; } &&
18008 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 ac_hi=-1 ac_mid=-1
18015 while :; do
18016 cat >conftest.$ac_ext <<_ACEOF
18017/* confdefs.h. */
18018_ACEOF
18019cat confdefs.h >>conftest.$ac_ext
18020cat >>conftest.$ac_ext <<_ACEOF
18021/* end confdefs.h. */
18022$ac_includes_default
18023int
18024main ()
18025{
18026static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18027test_array [0] = 0
18028
18029 ;
18030 return 0;
18031}
18032_ACEOF
18033rm -f conftest.$ac_objext
18034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18035 (eval $ac_compile) 2>conftest.er1
a848cd7e 18036 ac_status=$?
ac1cb8d3
VS
18037 grep -v '^ *+' conftest.er1 >conftest.err
18038 rm -f conftest.er1
18039 cat conftest.err >&5
a848cd7e
SC
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); } &&
2b850ae1
RR
18042 { ac_try='test -z "$ac_c_werror_flag"
18043 || test ! -s conftest.err'
ac1cb8d3
VS
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; } &&
18049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_lo=$ac_mid; break
18056else
18057 echo "$as_me: failed program was:" >&5
18058sed 's/^/| /' conftest.$ac_ext >&5
18059
18060ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18061 if test $ac_mid -le $ac_hi; then
18062 ac_lo= ac_hi=
18063 break
18064 fi
18065 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18066fi
ac1cb8d3 18067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18068 done
18069else
18070 echo "$as_me: failed program was:" >&5
18071sed 's/^/| /' conftest.$ac_ext >&5
18072
18073ac_lo= ac_hi=
18074fi
ac1cb8d3 18075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18076fi
ac1cb8d3 18077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18078# Binary search between lo and hi bounds.
18079while test "x$ac_lo" != "x$ac_hi"; do
18080 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18081 cat >conftest.$ac_ext <<_ACEOF
18082/* confdefs.h. */
18083_ACEOF
18084cat confdefs.h >>conftest.$ac_ext
18085cat >>conftest.$ac_ext <<_ACEOF
18086/* end confdefs.h. */
18087$ac_includes_default
18088int
18089main ()
18090{
18091static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18092test_array [0] = 0
18093
18094 ;
18095 return 0;
18096}
18097_ACEOF
18098rm -f conftest.$ac_objext
18099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18100 (eval $ac_compile) 2>conftest.er1
a848cd7e 18101 ac_status=$?
ac1cb8d3
VS
18102 grep -v '^ *+' conftest.er1 >conftest.err
18103 rm -f conftest.er1
18104 cat conftest.err >&5
a848cd7e
SC
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } &&
2b850ae1
RR
18107 { ac_try='test -z "$ac_c_werror_flag"
18108 || test ! -s conftest.err'
ac1cb8d3
VS
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18111 ac_status=$?
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; } &&
18114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 ac_hi=$ac_mid
18121else
18122 echo "$as_me: failed program was:" >&5
18123sed 's/^/| /' conftest.$ac_ext >&5
18124
18125ac_lo=`expr '(' $ac_mid ')' + 1`
18126fi
ac1cb8d3 18127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18128done
18129case $ac_lo in
18130?*) ac_cv_sizeof_void_p=$ac_lo;;
18131'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18132See \`config.log' for more details." >&5
18133echo "$as_me: error: cannot compute sizeof (void *), 77
18134See \`config.log' for more details." >&2;}
18135 { (exit 1); exit 1; }; } ;;
18136esac
18137else
18138 if test "$cross_compiling" = yes; then
2b850ae1
RR
18139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18140See \`config.log' for more details." >&5
18141echo "$as_me: error: cannot run test program while cross compiling
18142See \`config.log' for more details." >&2;}
a848cd7e
SC
18143 { (exit 1); exit 1; }; }
18144else
18145 cat >conftest.$ac_ext <<_ACEOF
18146/* confdefs.h. */
18147_ACEOF
18148cat confdefs.h >>conftest.$ac_ext
18149cat >>conftest.$ac_ext <<_ACEOF
18150/* end confdefs.h. */
18151$ac_includes_default
18152long longval () { return (long) (sizeof (void *)); }
18153unsigned long ulongval () { return (long) (sizeof (void *)); }
18154#include <stdio.h>
18155#include <stdlib.h>
18156int
18157main ()
18158{
18159
18160 FILE *f = fopen ("conftest.val", "w");
18161 if (! f)
18162 exit (1);
18163 if (((long) (sizeof (void *))) < 0)
18164 {
18165 long i = longval ();
18166 if (i != ((long) (sizeof (void *))))
18167 exit (1);
18168 fprintf (f, "%ld\n", i);
18169 }
18170 else
18171 {
18172 unsigned long i = ulongval ();
18173 if (i != ((long) (sizeof (void *))))
18174 exit (1);
18175 fprintf (f, "%lu\n", i);
18176 }
18177 exit (ferror (f) || fclose (f) != 0);
18178
18179 ;
18180 return 0;
18181}
18182_ACEOF
18183rm -f conftest$ac_exeext
18184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18185 (eval $ac_link) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190 (eval $ac_try) 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; }; then
18194 ac_cv_sizeof_void_p=`cat conftest.val`
18195else
18196 echo "$as_me: program exited with status $ac_status" >&5
18197echo "$as_me: failed program was:" >&5
18198sed 's/^/| /' conftest.$ac_ext >&5
18199
18200( exit $ac_status )
18201{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18202See \`config.log' for more details." >&5
18203echo "$as_me: error: cannot compute sizeof (void *), 77
18204See \`config.log' for more details." >&2;}
18205 { (exit 1); exit 1; }; }
18206fi
ac1cb8d3 18207rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18208fi
18209fi
18210rm -f conftest.val
18211else
18212 ac_cv_sizeof_void_p=0
18213fi
18214fi
18215echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18216echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18217cat >>confdefs.h <<_ACEOF
18218#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18219_ACEOF
18220
18221
18222echo "$as_me:$LINENO: checking for int" >&5
18223echo $ECHO_N "checking for int... $ECHO_C" >&6
18224if test "${ac_cv_type_int+set}" = set; then
18225 echo $ECHO_N "(cached) $ECHO_C" >&6
18226else
18227 cat >conftest.$ac_ext <<_ACEOF
18228/* confdefs.h. */
18229_ACEOF
18230cat confdefs.h >>conftest.$ac_ext
18231cat >>conftest.$ac_ext <<_ACEOF
18232/* end confdefs.h. */
18233$ac_includes_default
18234int
18235main ()
18236{
18237if ((int *) 0)
18238 return 0;
18239if (sizeof (int))
18240 return 0;
18241 ;
18242 return 0;
18243}
18244_ACEOF
18245rm -f conftest.$ac_objext
18246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18247 (eval $ac_compile) 2>conftest.er1
a848cd7e 18248 ac_status=$?
ac1cb8d3
VS
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
a848cd7e
SC
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
2b850ae1
RR
18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
ac1cb8d3
VS
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 ac_cv_type_int=yes
18268else
18269 echo "$as_me: failed program was:" >&5
18270sed 's/^/| /' conftest.$ac_ext >&5
18271
18272ac_cv_type_int=no
18273fi
ac1cb8d3 18274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18275fi
18276echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18277echo "${ECHO_T}$ac_cv_type_int" >&6
18278
18279echo "$as_me:$LINENO: checking size of int" >&5
18280echo $ECHO_N "checking size of int... $ECHO_C" >&6
18281if test "${ac_cv_sizeof_int+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18283else
18284 if test "$ac_cv_type_int" = yes; then
18285 # The cast to unsigned long works around a bug in the HP C Compiler
18286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18288 # This bug is HP SR number 8606223364.
18289 if test "$cross_compiling" = yes; then
18290 # Depending upon the size, compute the lo and hi bounds.
18291cat >conftest.$ac_ext <<_ACEOF
18292/* confdefs.h. */
18293_ACEOF
18294cat confdefs.h >>conftest.$ac_ext
18295cat >>conftest.$ac_ext <<_ACEOF
18296/* end confdefs.h. */
18297$ac_includes_default
18298int
18299main ()
18300{
18301static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18302test_array [0] = 0
18303
18304 ;
18305 return 0;
18306}
18307_ACEOF
18308rm -f conftest.$ac_objext
18309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18310 (eval $ac_compile) 2>conftest.er1
a848cd7e 18311 ac_status=$?
ac1cb8d3
VS
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
a848cd7e
SC
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
2b850ae1
RR
18317 { ac_try='test -z "$ac_c_werror_flag"
18318 || test ! -s conftest.err'
ac1cb8d3
VS
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 ac_lo=0 ac_mid=0
18331 while :; do
18332 cat >conftest.$ac_ext <<_ACEOF
18333/* confdefs.h. */
18334_ACEOF
18335cat confdefs.h >>conftest.$ac_ext
18336cat >>conftest.$ac_ext <<_ACEOF
18337/* end confdefs.h. */
18338$ac_includes_default
18339int
18340main ()
18341{
18342static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18343test_array [0] = 0
18344
18345 ;
18346 return 0;
18347}
18348_ACEOF
18349rm -f conftest.$ac_objext
18350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18351 (eval $ac_compile) 2>conftest.er1
a848cd7e 18352 ac_status=$?
ac1cb8d3
VS
18353 grep -v '^ *+' conftest.er1 >conftest.err
18354 rm -f conftest.er1
18355 cat conftest.err >&5
a848cd7e
SC
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
2b850ae1
RR
18358 { ac_try='test -z "$ac_c_werror_flag"
18359 || test ! -s conftest.err'
ac1cb8d3
VS
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; } &&
18365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; }; then
18371 ac_hi=$ac_mid; break
18372else
18373 echo "$as_me: failed program was:" >&5
18374sed 's/^/| /' conftest.$ac_ext >&5
18375
18376ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18377 if test $ac_lo -le $ac_mid; then
18378 ac_lo= ac_hi=
18379 break
18380 fi
18381 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18382fi
ac1cb8d3 18383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18384 done
18385else
18386 echo "$as_me: failed program was:" >&5
18387sed 's/^/| /' conftest.$ac_ext >&5
18388
18389cat >conftest.$ac_ext <<_ACEOF
18390/* confdefs.h. */
18391_ACEOF
18392cat confdefs.h >>conftest.$ac_ext
18393cat >>conftest.$ac_ext <<_ACEOF
18394/* end confdefs.h. */
18395$ac_includes_default
18396int
18397main ()
18398{
18399static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18400test_array [0] = 0
18401
18402 ;
18403 return 0;
18404}
18405_ACEOF
18406rm -f conftest.$ac_objext
18407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18408 (eval $ac_compile) 2>conftest.er1
a848cd7e 18409 ac_status=$?
ac1cb8d3
VS
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
a848cd7e
SC
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } &&
2b850ae1
RR
18415 { ac_try='test -z "$ac_c_werror_flag"
18416 || test ! -s conftest.err'
ac1cb8d3
VS
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; } &&
18422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; }; then
18428 ac_hi=-1 ac_mid=-1
18429 while :; do
18430 cat >conftest.$ac_ext <<_ACEOF
18431/* confdefs.h. */
18432_ACEOF
18433cat confdefs.h >>conftest.$ac_ext
18434cat >>conftest.$ac_ext <<_ACEOF
18435/* end confdefs.h. */
18436$ac_includes_default
18437int
18438main ()
18439{
18440static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18441test_array [0] = 0
18442
18443 ;
18444 return 0;
18445}
18446_ACEOF
18447rm -f conftest.$ac_objext
18448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18449 (eval $ac_compile) 2>conftest.er1
a848cd7e 18450 ac_status=$?
ac1cb8d3
VS
18451 grep -v '^ *+' conftest.er1 >conftest.err
18452 rm -f conftest.er1
18453 cat conftest.err >&5
a848cd7e
SC
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } &&
2b850ae1
RR
18456 { ac_try='test -z "$ac_c_werror_flag"
18457 || test ! -s conftest.err'
ac1cb8d3
VS
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_lo=$ac_mid; break
18470else
18471 echo "$as_me: failed program was:" >&5
18472sed 's/^/| /' conftest.$ac_ext >&5
18473
18474ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18475 if test $ac_mid -le $ac_hi; then
18476 ac_lo= ac_hi=
18477 break
18478 fi
18479 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18480fi
ac1cb8d3 18481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18482 done
18483else
18484 echo "$as_me: failed program was:" >&5
18485sed 's/^/| /' conftest.$ac_ext >&5
18486
18487ac_lo= ac_hi=
18488fi
ac1cb8d3 18489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18490fi
ac1cb8d3 18491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18492# Binary search between lo and hi bounds.
18493while test "x$ac_lo" != "x$ac_hi"; do
18494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18495 cat >conftest.$ac_ext <<_ACEOF
18496/* confdefs.h. */
18497_ACEOF
18498cat confdefs.h >>conftest.$ac_ext
18499cat >>conftest.$ac_ext <<_ACEOF
18500/* end confdefs.h. */
18501$ac_includes_default
18502int
18503main ()
18504{
18505static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18506test_array [0] = 0
18507
18508 ;
18509 return 0;
18510}
18511_ACEOF
18512rm -f conftest.$ac_objext
18513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18514 (eval $ac_compile) 2>conftest.er1
a848cd7e 18515 ac_status=$?
ac1cb8d3
VS
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
a848cd7e
SC
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
2b850ae1
RR
18521 { ac_try='test -z "$ac_c_werror_flag"
18522 || test ! -s conftest.err'
ac1cb8d3
VS
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18534 ac_hi=$ac_mid
18535else
18536 echo "$as_me: failed program was:" >&5
18537sed 's/^/| /' conftest.$ac_ext >&5
18538
18539ac_lo=`expr '(' $ac_mid ')' + 1`
18540fi
ac1cb8d3 18541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18542done
18543case $ac_lo in
18544?*) ac_cv_sizeof_int=$ac_lo;;
18545'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18546See \`config.log' for more details." >&5
18547echo "$as_me: error: cannot compute sizeof (int), 77
18548See \`config.log' for more details." >&2;}
18549 { (exit 1); exit 1; }; } ;;
18550esac
18551else
18552 if test "$cross_compiling" = yes; then
2b850ae1
RR
18553 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18554See \`config.log' for more details." >&5
18555echo "$as_me: error: cannot run test program while cross compiling
18556See \`config.log' for more details." >&2;}
a848cd7e
SC
18557 { (exit 1); exit 1; }; }
18558else
18559 cat >conftest.$ac_ext <<_ACEOF
18560/* confdefs.h. */
18561_ACEOF
18562cat confdefs.h >>conftest.$ac_ext
18563cat >>conftest.$ac_ext <<_ACEOF
18564/* end confdefs.h. */
18565$ac_includes_default
18566long longval () { return (long) (sizeof (int)); }
18567unsigned long ulongval () { return (long) (sizeof (int)); }
18568#include <stdio.h>
18569#include <stdlib.h>
18570int
18571main ()
18572{
18573
18574 FILE *f = fopen ("conftest.val", "w");
18575 if (! f)
18576 exit (1);
18577 if (((long) (sizeof (int))) < 0)
18578 {
18579 long i = longval ();
18580 if (i != ((long) (sizeof (int))))
18581 exit (1);
18582 fprintf (f, "%ld\n", i);
18583 }
18584 else
18585 {
18586 unsigned long i = ulongval ();
18587 if (i != ((long) (sizeof (int))))
18588 exit (1);
18589 fprintf (f, "%lu\n", i);
18590 }
18591 exit (ferror (f) || fclose (f) != 0);
18592
18593 ;
18594 return 0;
18595}
18596_ACEOF
18597rm -f conftest$ac_exeext
18598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18599 (eval $ac_link) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
18608 ac_cv_sizeof_int=`cat conftest.val`
18609else
18610 echo "$as_me: program exited with status $ac_status" >&5
18611echo "$as_me: failed program was:" >&5
18612sed 's/^/| /' conftest.$ac_ext >&5
18613
18614( exit $ac_status )
18615{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18616See \`config.log' for more details." >&5
18617echo "$as_me: error: cannot compute sizeof (int), 77
18618See \`config.log' for more details." >&2;}
18619 { (exit 1); exit 1; }; }
18620fi
ac1cb8d3 18621rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18622fi
18623fi
18624rm -f conftest.val
18625else
18626 ac_cv_sizeof_int=0
18627fi
18628fi
18629echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18630echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18631cat >>confdefs.h <<_ACEOF
18632#define SIZEOF_INT $ac_cv_sizeof_int
18633_ACEOF
18634
18635
18636echo "$as_me:$LINENO: checking for long" >&5
18637echo $ECHO_N "checking for long... $ECHO_C" >&6
18638if test "${ac_cv_type_long+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18640else
18641 cat >conftest.$ac_ext <<_ACEOF
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
18647$ac_includes_default
18648int
18649main ()
18650{
18651if ((long *) 0)
18652 return 0;
18653if (sizeof (long))
18654 return 0;
18655 ;
18656 return 0;
18657}
18658_ACEOF
18659rm -f conftest.$ac_objext
18660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18661 (eval $ac_compile) 2>conftest.er1
a848cd7e 18662 ac_status=$?
ac1cb8d3
VS
18663 grep -v '^ *+' conftest.er1 >conftest.err
18664 rm -f conftest.er1
18665 cat conftest.err >&5
a848cd7e
SC
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } &&
2b850ae1
RR
18668 { ac_try='test -z "$ac_c_werror_flag"
18669 || test ! -s conftest.err'
ac1cb8d3
VS
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; } &&
18675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_type_long=yes
18682else
18683 echo "$as_me: failed program was:" >&5
18684sed 's/^/| /' conftest.$ac_ext >&5
18685
18686ac_cv_type_long=no
18687fi
ac1cb8d3 18688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18689fi
18690echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18691echo "${ECHO_T}$ac_cv_type_long" >&6
18692
18693echo "$as_me:$LINENO: checking size of long" >&5
18694echo $ECHO_N "checking size of long... $ECHO_C" >&6
18695if test "${ac_cv_sizeof_long+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697else
18698 if test "$ac_cv_type_long" = yes; then
18699 # The cast to unsigned long works around a bug in the HP C Compiler
18700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18702 # This bug is HP SR number 8606223364.
18703 if test "$cross_compiling" = yes; then
18704 # Depending upon the size, compute the lo and hi bounds.
18705cat >conftest.$ac_ext <<_ACEOF
18706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
18711$ac_includes_default
18712int
18713main ()
18714{
18715static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18716test_array [0] = 0
18717
18718 ;
18719 return 0;
18720}
18721_ACEOF
18722rm -f conftest.$ac_objext
18723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18724 (eval $ac_compile) 2>conftest.er1
a848cd7e 18725 ac_status=$?
ac1cb8d3
VS
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
a848cd7e
SC
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
2b850ae1
RR
18731 { ac_try='test -z "$ac_c_werror_flag"
18732 || test ! -s conftest.err'
ac1cb8d3
VS
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 ac_lo=0 ac_mid=0
18745 while :; do
18746 cat >conftest.$ac_ext <<_ACEOF
18747/* confdefs.h. */
18748_ACEOF
18749cat confdefs.h >>conftest.$ac_ext
18750cat >>conftest.$ac_ext <<_ACEOF
18751/* end confdefs.h. */
18752$ac_includes_default
18753int
18754main ()
18755{
18756static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18757test_array [0] = 0
18758
18759 ;
18760 return 0;
18761}
18762_ACEOF
18763rm -f conftest.$ac_objext
18764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18765 (eval $ac_compile) 2>conftest.er1
a848cd7e 18766 ac_status=$?
ac1cb8d3
VS
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
a848cd7e
SC
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
2b850ae1
RR
18772 { ac_try='test -z "$ac_c_werror_flag"
18773 || test ! -s conftest.err'
ac1cb8d3
VS
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_hi=$ac_mid; break
18786else
18787 echo "$as_me: failed program was:" >&5
18788sed 's/^/| /' conftest.$ac_ext >&5
18789
18790ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18791 if test $ac_lo -le $ac_mid; then
18792 ac_lo= ac_hi=
18793 break
18794 fi
18795 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18796fi
ac1cb8d3 18797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18798 done
18799else
18800 echo "$as_me: failed program was:" >&5
18801sed 's/^/| /' conftest.$ac_ext >&5
18802
18803cat >conftest.$ac_ext <<_ACEOF
18804/* confdefs.h. */
18805_ACEOF
18806cat confdefs.h >>conftest.$ac_ext
18807cat >>conftest.$ac_ext <<_ACEOF
18808/* end confdefs.h. */
18809$ac_includes_default
18810int
18811main ()
18812{
18813static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18814test_array [0] = 0
18815
18816 ;
18817 return 0;
18818}
18819_ACEOF
18820rm -f conftest.$ac_objext
18821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18822 (eval $ac_compile) 2>conftest.er1
a848cd7e 18823 ac_status=$?
ac1cb8d3
VS
18824 grep -v '^ *+' conftest.er1 >conftest.err
18825 rm -f conftest.er1
18826 cat conftest.err >&5
a848cd7e
SC
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } &&
2b850ae1
RR
18829 { ac_try='test -z "$ac_c_werror_flag"
18830 || test ! -s conftest.err'
ac1cb8d3
VS
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; } &&
18836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_hi=-1 ac_mid=-1
18843 while :; do
18844 cat >conftest.$ac_ext <<_ACEOF
18845/* confdefs.h. */
18846_ACEOF
18847cat confdefs.h >>conftest.$ac_ext
18848cat >>conftest.$ac_ext <<_ACEOF
18849/* end confdefs.h. */
18850$ac_includes_default
18851int
18852main ()
18853{
18854static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18855test_array [0] = 0
18856
18857 ;
18858 return 0;
18859}
18860_ACEOF
18861rm -f conftest.$ac_objext
18862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18863 (eval $ac_compile) 2>conftest.er1
a848cd7e 18864 ac_status=$?
ac1cb8d3
VS
18865 grep -v '^ *+' conftest.er1 >conftest.err
18866 rm -f conftest.er1
18867 cat conftest.err >&5
a848cd7e
SC
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } &&
2b850ae1
RR
18870 { ac_try='test -z "$ac_c_werror_flag"
18871 || test ! -s conftest.err'
ac1cb8d3
VS
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; } &&
18877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 ac_lo=$ac_mid; break
18884else
18885 echo "$as_me: failed program was:" >&5
18886sed 's/^/| /' conftest.$ac_ext >&5
18887
18888ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18889 if test $ac_mid -le $ac_hi; then
18890 ac_lo= ac_hi=
18891 break
18892 fi
18893 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18894fi
ac1cb8d3 18895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18896 done
18897else
18898 echo "$as_me: failed program was:" >&5
18899sed 's/^/| /' conftest.$ac_ext >&5
18900
18901ac_lo= ac_hi=
18902fi
ac1cb8d3 18903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18904fi
ac1cb8d3 18905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18906# Binary search between lo and hi bounds.
18907while test "x$ac_lo" != "x$ac_hi"; do
18908 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18909 cat >conftest.$ac_ext <<_ACEOF
18910/* confdefs.h. */
18911_ACEOF
18912cat confdefs.h >>conftest.$ac_ext
18913cat >>conftest.$ac_ext <<_ACEOF
18914/* end confdefs.h. */
18915$ac_includes_default
18916int
18917main ()
18918{
18919static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18920test_array [0] = 0
18921
18922 ;
18923 return 0;
18924}
18925_ACEOF
18926rm -f conftest.$ac_objext
18927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18928 (eval $ac_compile) 2>conftest.er1
a848cd7e 18929 ac_status=$?
ac1cb8d3
VS
18930 grep -v '^ *+' conftest.er1 >conftest.err
18931 rm -f conftest.er1
18932 cat conftest.err >&5
a848cd7e
SC
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
2b850ae1
RR
18935 { ac_try='test -z "$ac_c_werror_flag"
18936 || test ! -s conftest.err'
ac1cb8d3
VS
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; } &&
18942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; }; then
18948 ac_hi=$ac_mid
18949else
18950 echo "$as_me: failed program was:" >&5
18951sed 's/^/| /' conftest.$ac_ext >&5
18952
18953ac_lo=`expr '(' $ac_mid ')' + 1`
18954fi
ac1cb8d3 18955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18956done
18957case $ac_lo in
18958?*) ac_cv_sizeof_long=$ac_lo;;
18959'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18960See \`config.log' for more details." >&5
18961echo "$as_me: error: cannot compute sizeof (long), 77
18962See \`config.log' for more details." >&2;}
18963 { (exit 1); exit 1; }; } ;;
18964esac
18965else
18966 if test "$cross_compiling" = yes; then
2b850ae1
RR
18967 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18968See \`config.log' for more details." >&5
18969echo "$as_me: error: cannot run test program while cross compiling
18970See \`config.log' for more details." >&2;}
a848cd7e
SC
18971 { (exit 1); exit 1; }; }
18972else
18973 cat >conftest.$ac_ext <<_ACEOF
18974/* confdefs.h. */
18975_ACEOF
18976cat confdefs.h >>conftest.$ac_ext
18977cat >>conftest.$ac_ext <<_ACEOF
18978/* end confdefs.h. */
18979$ac_includes_default
18980long longval () { return (long) (sizeof (long)); }
18981unsigned long ulongval () { return (long) (sizeof (long)); }
18982#include <stdio.h>
18983#include <stdlib.h>
18984int
18985main ()
18986{
18987
18988 FILE *f = fopen ("conftest.val", "w");
18989 if (! f)
18990 exit (1);
18991 if (((long) (sizeof (long))) < 0)
18992 {
18993 long i = longval ();
18994 if (i != ((long) (sizeof (long))))
18995 exit (1);
18996 fprintf (f, "%ld\n", i);
18997 }
18998 else
18999 {
19000 unsigned long i = ulongval ();
19001 if (i != ((long) (sizeof (long))))
19002 exit (1);
19003 fprintf (f, "%lu\n", i);
19004 }
19005 exit (ferror (f) || fclose (f) != 0);
19006
19007 ;
19008 return 0;
19009}
19010_ACEOF
19011rm -f conftest$ac_exeext
19012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19013 (eval $ac_link) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19018 (eval $ac_try) 2>&5
19019 ac_status=$?
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
19022 ac_cv_sizeof_long=`cat conftest.val`
19023else
19024 echo "$as_me: program exited with status $ac_status" >&5
19025echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
19027
19028( exit $ac_status )
19029{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19030See \`config.log' for more details." >&5
19031echo "$as_me: error: cannot compute sizeof (long), 77
19032See \`config.log' for more details." >&2;}
19033 { (exit 1); exit 1; }; }
19034fi
ac1cb8d3 19035rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19036fi
19037fi
19038rm -f conftest.val
19039else
19040 ac_cv_sizeof_long=0
19041fi
19042fi
19043echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19044echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19045cat >>confdefs.h <<_ACEOF
19046#define SIZEOF_LONG $ac_cv_sizeof_long
19047_ACEOF
19048
19049
19050echo "$as_me:$LINENO: checking for size_t" >&5
19051echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19052if test "${ac_cv_type_size_t+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19054else
19055 cat >conftest.$ac_ext <<_ACEOF
19056/* confdefs.h. */
19057_ACEOF
19058cat confdefs.h >>conftest.$ac_ext
19059cat >>conftest.$ac_ext <<_ACEOF
19060/* end confdefs.h. */
19061$ac_includes_default
19062int
19063main ()
19064{
19065if ((size_t *) 0)
19066 return 0;
19067if (sizeof (size_t))
19068 return 0;
19069 ;
19070 return 0;
19071}
19072_ACEOF
19073rm -f conftest.$ac_objext
19074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19075 (eval $ac_compile) 2>conftest.er1
a848cd7e 19076 ac_status=$?
ac1cb8d3
VS
19077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
a848cd7e
SC
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
2b850ae1
RR
19082 { ac_try='test -z "$ac_c_werror_flag"
19083 || test ! -s conftest.err'
ac1cb8d3
VS
19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 ac_cv_type_size_t=yes
19096else
19097 echo "$as_me: failed program was:" >&5
19098sed 's/^/| /' conftest.$ac_ext >&5
19099
19100ac_cv_type_size_t=no
19101fi
ac1cb8d3 19102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19103fi
19104echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19105echo "${ECHO_T}$ac_cv_type_size_t" >&6
19106
19107echo "$as_me:$LINENO: checking size of size_t" >&5
19108echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19109if test "${ac_cv_sizeof_size_t+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111else
19112 if test "$ac_cv_type_size_t" = yes; then
19113 # The cast to unsigned long works around a bug in the HP C Compiler
19114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19116 # This bug is HP SR number 8606223364.
19117 if test "$cross_compiling" = yes; then
19118 # Depending upon the size, compute the lo and hi bounds.
19119cat >conftest.$ac_ext <<_ACEOF
19120/* confdefs.h. */
19121_ACEOF
19122cat confdefs.h >>conftest.$ac_ext
19123cat >>conftest.$ac_ext <<_ACEOF
19124/* end confdefs.h. */
19125$ac_includes_default
19126int
19127main ()
19128{
19129static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19130test_array [0] = 0
19131
19132 ;
19133 return 0;
19134}
19135_ACEOF
19136rm -f conftest.$ac_objext
19137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19138 (eval $ac_compile) 2>conftest.er1
a848cd7e 19139 ac_status=$?
ac1cb8d3
VS
19140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
a848cd7e
SC
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
2b850ae1
RR
19145 { ac_try='test -z "$ac_c_werror_flag"
19146 || test ! -s conftest.err'
ac1cb8d3
VS
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; } &&
19152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_lo=0 ac_mid=0
19159 while :; do
19160 cat >conftest.$ac_ext <<_ACEOF
19161/* confdefs.h. */
19162_ACEOF
19163cat confdefs.h >>conftest.$ac_ext
19164cat >>conftest.$ac_ext <<_ACEOF
19165/* end confdefs.h. */
19166$ac_includes_default
19167int
19168main ()
19169{
19170static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19171test_array [0] = 0
19172
19173 ;
19174 return 0;
19175}
19176_ACEOF
19177rm -f conftest.$ac_objext
19178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19179 (eval $ac_compile) 2>conftest.er1
a848cd7e 19180 ac_status=$?
ac1cb8d3
VS
19181 grep -v '^ *+' conftest.er1 >conftest.err
19182 rm -f conftest.er1
19183 cat conftest.err >&5
a848cd7e
SC
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } &&
2b850ae1
RR
19186 { ac_try='test -z "$ac_c_werror_flag"
19187 || test ! -s conftest.err'
ac1cb8d3
VS
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_hi=$ac_mid; break
19200else
19201 echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
19204ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19205 if test $ac_lo -le $ac_mid; then
19206 ac_lo= ac_hi=
19207 break
19208 fi
19209 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19210fi
ac1cb8d3 19211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19212 done
19213else
19214 echo "$as_me: failed program was:" >&5
19215sed 's/^/| /' conftest.$ac_ext >&5
19216
19217cat >conftest.$ac_ext <<_ACEOF
19218/* confdefs.h. */
19219_ACEOF
19220cat confdefs.h >>conftest.$ac_ext
19221cat >>conftest.$ac_ext <<_ACEOF
19222/* end confdefs.h. */
19223$ac_includes_default
19224int
19225main ()
19226{
19227static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19228test_array [0] = 0
19229
19230 ;
19231 return 0;
19232}
19233_ACEOF
19234rm -f conftest.$ac_objext
19235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19236 (eval $ac_compile) 2>conftest.er1
a848cd7e 19237 ac_status=$?
ac1cb8d3
VS
19238 grep -v '^ *+' conftest.er1 >conftest.err
19239 rm -f conftest.er1
19240 cat conftest.err >&5
a848cd7e
SC
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } &&
2b850ae1
RR
19243 { ac_try='test -z "$ac_c_werror_flag"
19244 || test ! -s conftest.err'
ac1cb8d3
VS
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; } &&
19250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; }; then
19256 ac_hi=-1 ac_mid=-1
19257 while :; do
19258 cat >conftest.$ac_ext <<_ACEOF
19259/* confdefs.h. */
19260_ACEOF
19261cat confdefs.h >>conftest.$ac_ext
19262cat >>conftest.$ac_ext <<_ACEOF
19263/* end confdefs.h. */
19264$ac_includes_default
19265int
19266main ()
19267{
19268static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19269test_array [0] = 0
19270
19271 ;
19272 return 0;
19273}
19274_ACEOF
19275rm -f conftest.$ac_objext
19276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19277 (eval $ac_compile) 2>conftest.er1
a848cd7e 19278 ac_status=$?
ac1cb8d3
VS
19279 grep -v '^ *+' conftest.er1 >conftest.err
19280 rm -f conftest.er1
19281 cat conftest.err >&5
a848cd7e
SC
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } &&
2b850ae1
RR
19284 { ac_try='test -z "$ac_c_werror_flag"
19285 || test ! -s conftest.err'
ac1cb8d3
VS
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 ac_lo=$ac_mid; break
19298else
19299 echo "$as_me: failed program was:" >&5
19300sed 's/^/| /' conftest.$ac_ext >&5
19301
19302ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19303 if test $ac_mid -le $ac_hi; then
19304 ac_lo= ac_hi=
19305 break
19306 fi
19307 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19308fi
ac1cb8d3 19309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19310 done
19311else
19312 echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315ac_lo= ac_hi=
19316fi
ac1cb8d3 19317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19318fi
ac1cb8d3 19319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19320# Binary search between lo and hi bounds.
19321while test "x$ac_lo" != "x$ac_hi"; do
19322 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19323 cat >conftest.$ac_ext <<_ACEOF
19324/* confdefs.h. */
19325_ACEOF
19326cat confdefs.h >>conftest.$ac_ext
19327cat >>conftest.$ac_ext <<_ACEOF
19328/* end confdefs.h. */
19329$ac_includes_default
19330int
19331main ()
19332{
19333static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19334test_array [0] = 0
19335
19336 ;
19337 return 0;
19338}
19339_ACEOF
19340rm -f conftest.$ac_objext
19341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19342 (eval $ac_compile) 2>conftest.er1
a848cd7e 19343 ac_status=$?
ac1cb8d3
VS
19344 grep -v '^ *+' conftest.er1 >conftest.err
19345 rm -f conftest.er1
19346 cat conftest.err >&5
a848cd7e
SC
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } &&
2b850ae1
RR
19349 { ac_try='test -z "$ac_c_werror_flag"
19350 || test ! -s conftest.err'
ac1cb8d3
VS
19351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19353 ac_status=$?
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; } &&
19356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19362 ac_hi=$ac_mid
19363else
19364 echo "$as_me: failed program was:" >&5
19365sed 's/^/| /' conftest.$ac_ext >&5
19366
19367ac_lo=`expr '(' $ac_mid ')' + 1`
19368fi
ac1cb8d3 19369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19370done
19371case $ac_lo in
19372?*) ac_cv_sizeof_size_t=$ac_lo;;
19373'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19374See \`config.log' for more details." >&5
19375echo "$as_me: error: cannot compute sizeof (size_t), 77
19376See \`config.log' for more details." >&2;}
19377 { (exit 1); exit 1; }; } ;;
19378esac
19379else
19380 if test "$cross_compiling" = yes; then
2b850ae1
RR
19381 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19382See \`config.log' for more details." >&5
19383echo "$as_me: error: cannot run test program while cross compiling
19384See \`config.log' for more details." >&2;}
a848cd7e
SC
19385 { (exit 1); exit 1; }; }
19386else
19387 cat >conftest.$ac_ext <<_ACEOF
19388/* confdefs.h. */
19389_ACEOF
19390cat confdefs.h >>conftest.$ac_ext
19391cat >>conftest.$ac_ext <<_ACEOF
19392/* end confdefs.h. */
19393$ac_includes_default
19394long longval () { return (long) (sizeof (size_t)); }
19395unsigned long ulongval () { return (long) (sizeof (size_t)); }
19396#include <stdio.h>
19397#include <stdlib.h>
19398int
19399main ()
19400{
19401
19402 FILE *f = fopen ("conftest.val", "w");
19403 if (! f)
19404 exit (1);
19405 if (((long) (sizeof (size_t))) < 0)
19406 {
19407 long i = longval ();
19408 if (i != ((long) (sizeof (size_t))))
19409 exit (1);
19410 fprintf (f, "%ld\n", i);
19411 }
19412 else
19413 {
19414 unsigned long i = ulongval ();
19415 if (i != ((long) (sizeof (size_t))))
19416 exit (1);
19417 fprintf (f, "%lu\n", i);
19418 }
19419 exit (ferror (f) || fclose (f) != 0);
19420
19421 ;
19422 return 0;
19423}
19424_ACEOF
19425rm -f conftest$ac_exeext
19426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19427 (eval $ac_link) 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_cv_sizeof_size_t=`cat conftest.val`
19437else
19438 echo "$as_me: program exited with status $ac_status" >&5
19439echo "$as_me: failed program was:" >&5
19440sed 's/^/| /' conftest.$ac_ext >&5
19441
19442( exit $ac_status )
19443{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19444See \`config.log' for more details." >&5
19445echo "$as_me: error: cannot compute sizeof (size_t), 77
19446See \`config.log' for more details." >&2;}
19447 { (exit 1); exit 1; }; }
19448fi
ac1cb8d3 19449rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19450fi
19451fi
19452rm -f conftest.val
19453else
19454 ac_cv_sizeof_size_t=0
19455fi
19456fi
19457echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19458echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19459cat >>confdefs.h <<_ACEOF
19460#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19461_ACEOF
19462
19463
19464
19465case "${host}" in
19466 arm-*-linux* )
19467 echo "$as_me:$LINENO: checking for long long" >&5
19468echo $ECHO_N "checking for long long... $ECHO_C" >&6
19469if test "${ac_cv_type_long_long+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471else
19472 cat >conftest.$ac_ext <<_ACEOF
19473/* confdefs.h. */
19474_ACEOF
19475cat confdefs.h >>conftest.$ac_ext
19476cat >>conftest.$ac_ext <<_ACEOF
19477/* end confdefs.h. */
19478$ac_includes_default
19479int
19480main ()
19481{
19482if ((long long *) 0)
19483 return 0;
19484if (sizeof (long long))
19485 return 0;
19486 ;
19487 return 0;
19488}
19489_ACEOF
19490rm -f conftest.$ac_objext
19491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19492 (eval $ac_compile) 2>conftest.er1
a848cd7e 19493 ac_status=$?
ac1cb8d3
VS
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
a848cd7e
SC
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
2b850ae1
RR
19499 { ac_try='test -z "$ac_c_werror_flag"
19500 || test ! -s conftest.err'
ac1cb8d3
VS
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 ac_cv_type_long_long=yes
19513else
19514 echo "$as_me: failed program was:" >&5
19515sed 's/^/| /' conftest.$ac_ext >&5
19516
19517ac_cv_type_long_long=no
19518fi
ac1cb8d3 19519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19520fi
19521echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19522echo "${ECHO_T}$ac_cv_type_long_long" >&6
19523
19524echo "$as_me:$LINENO: checking size of long long" >&5
19525echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19526if test "${ac_cv_sizeof_long_long+set}" = set; then
19527 echo $ECHO_N "(cached) $ECHO_C" >&6
19528else
19529 if test "$ac_cv_type_long_long" = yes; then
19530 # The cast to unsigned long works around a bug in the HP C Compiler
19531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19533 # This bug is HP SR number 8606223364.
19534 if test "$cross_compiling" = yes; then
19535 # Depending upon the size, compute the lo and hi bounds.
19536cat >conftest.$ac_ext <<_ACEOF
19537/* confdefs.h. */
19538_ACEOF
19539cat confdefs.h >>conftest.$ac_ext
19540cat >>conftest.$ac_ext <<_ACEOF
19541/* end confdefs.h. */
19542$ac_includes_default
19543int
19544main ()
19545{
19546static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19547test_array [0] = 0
19548
19549 ;
19550 return 0;
19551}
19552_ACEOF
19553rm -f conftest.$ac_objext
19554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19555 (eval $ac_compile) 2>conftest.er1
a848cd7e 19556 ac_status=$?
ac1cb8d3
VS
19557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
a848cd7e
SC
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
2b850ae1
RR
19562 { ac_try='test -z "$ac_c_werror_flag"
19563 || test ! -s conftest.err'
ac1cb8d3
VS
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; } &&
19569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575 ac_lo=0 ac_mid=0
19576 while :; do
19577 cat >conftest.$ac_ext <<_ACEOF
19578/* confdefs.h. */
19579_ACEOF
19580cat confdefs.h >>conftest.$ac_ext
19581cat >>conftest.$ac_ext <<_ACEOF
19582/* end confdefs.h. */
19583$ac_includes_default
19584int
19585main ()
19586{
19587static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19588test_array [0] = 0
19589
19590 ;
19591 return 0;
19592}
19593_ACEOF
19594rm -f conftest.$ac_objext
19595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19596 (eval $ac_compile) 2>conftest.er1
a848cd7e 19597 ac_status=$?
ac1cb8d3
VS
19598 grep -v '^ *+' conftest.er1 >conftest.err
19599 rm -f conftest.er1
19600 cat conftest.err >&5
a848cd7e
SC
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } &&
2b850ae1
RR
19603 { ac_try='test -z "$ac_c_werror_flag"
19604 || test ! -s conftest.err'
ac1cb8d3
VS
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; } &&
19610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 ac_hi=$ac_mid; break
19617else
19618 echo "$as_me: failed program was:" >&5
19619sed 's/^/| /' conftest.$ac_ext >&5
19620
19621ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19622 if test $ac_lo -le $ac_mid; then
19623 ac_lo= ac_hi=
19624 break
19625 fi
19626 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19627fi
ac1cb8d3 19628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19629 done
19630else
19631 echo "$as_me: failed program was:" >&5
19632sed 's/^/| /' conftest.$ac_ext >&5
19633
19634cat >conftest.$ac_ext <<_ACEOF
19635/* confdefs.h. */
19636_ACEOF
19637cat confdefs.h >>conftest.$ac_ext
19638cat >>conftest.$ac_ext <<_ACEOF
19639/* end confdefs.h. */
19640$ac_includes_default
19641int
19642main ()
19643{
19644static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19645test_array [0] = 0
19646
19647 ;
19648 return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext
19652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19653 (eval $ac_compile) 2>conftest.er1
a848cd7e 19654 ac_status=$?
ac1cb8d3
VS
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
a848cd7e
SC
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
2b850ae1
RR
19660 { ac_try='test -z "$ac_c_werror_flag"
19661 || test ! -s conftest.err'
ac1cb8d3
VS
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; } &&
19667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673 ac_hi=-1 ac_mid=-1
19674 while :; do
19675 cat >conftest.$ac_ext <<_ACEOF
19676/* confdefs.h. */
19677_ACEOF
19678cat confdefs.h >>conftest.$ac_ext
19679cat >>conftest.$ac_ext <<_ACEOF
19680/* end confdefs.h. */
19681$ac_includes_default
19682int
19683main ()
19684{
19685static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19686test_array [0] = 0
19687
19688 ;
19689 return 0;
19690}
19691_ACEOF
19692rm -f conftest.$ac_objext
19693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19694 (eval $ac_compile) 2>conftest.er1
a848cd7e 19695 ac_status=$?
ac1cb8d3
VS
19696 grep -v '^ *+' conftest.er1 >conftest.err
19697 rm -f conftest.er1
19698 cat conftest.err >&5
a848cd7e
SC
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
2b850ae1
RR
19701 { ac_try='test -z "$ac_c_werror_flag"
19702 || test ! -s conftest.err'
ac1cb8d3
VS
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; } &&
19708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714 ac_lo=$ac_mid; break
19715else
19716 echo "$as_me: failed program was:" >&5
19717sed 's/^/| /' conftest.$ac_ext >&5
19718
19719ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19720 if test $ac_mid -le $ac_hi; then
19721 ac_lo= ac_hi=
19722 break
19723 fi
19724 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19725fi
ac1cb8d3 19726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19727 done
19728else
19729 echo "$as_me: failed program was:" >&5
19730sed 's/^/| /' conftest.$ac_ext >&5
19731
19732ac_lo= ac_hi=
19733fi
ac1cb8d3 19734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19735fi
ac1cb8d3 19736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19737# Binary search between lo and hi bounds.
19738while test "x$ac_lo" != "x$ac_hi"; do
19739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19740 cat >conftest.$ac_ext <<_ACEOF
19741/* confdefs.h. */
19742_ACEOF
19743cat confdefs.h >>conftest.$ac_ext
19744cat >>conftest.$ac_ext <<_ACEOF
19745/* end confdefs.h. */
19746$ac_includes_default
19747int
19748main ()
19749{
19750static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19751test_array [0] = 0
19752
19753 ;
19754 return 0;
19755}
19756_ACEOF
19757rm -f conftest.$ac_objext
19758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19759 (eval $ac_compile) 2>conftest.er1
a848cd7e 19760 ac_status=$?
ac1cb8d3
VS
19761 grep -v '^ *+' conftest.er1 >conftest.err
19762 rm -f conftest.er1
19763 cat conftest.err >&5
a848cd7e
SC
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } &&
2b850ae1
RR
19766 { ac_try='test -z "$ac_c_werror_flag"
19767 || test ! -s conftest.err'
ac1cb8d3
VS
19768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769 (eval $ac_try) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; } &&
19773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_hi=$ac_mid
19780else
19781 echo "$as_me: failed program was:" >&5
19782sed 's/^/| /' conftest.$ac_ext >&5
19783
19784ac_lo=`expr '(' $ac_mid ')' + 1`
19785fi
ac1cb8d3 19786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19787done
19788case $ac_lo in
19789?*) ac_cv_sizeof_long_long=$ac_lo;;
19790'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19791See \`config.log' for more details." >&5
19792echo "$as_me: error: cannot compute sizeof (long long), 77
19793See \`config.log' for more details." >&2;}
19794 { (exit 1); exit 1; }; } ;;
19795esac
19796else
19797 if test "$cross_compiling" = yes; then
2b850ae1
RR
19798 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19799See \`config.log' for more details." >&5
19800echo "$as_me: error: cannot run test program while cross compiling
19801See \`config.log' for more details." >&2;}
a848cd7e
SC
19802 { (exit 1); exit 1; }; }
19803else
19804 cat >conftest.$ac_ext <<_ACEOF
19805/* confdefs.h. */
19806_ACEOF
19807cat confdefs.h >>conftest.$ac_ext
19808cat >>conftest.$ac_ext <<_ACEOF
19809/* end confdefs.h. */
19810$ac_includes_default
19811long longval () { return (long) (sizeof (long long)); }
19812unsigned long ulongval () { return (long) (sizeof (long long)); }
19813#include <stdio.h>
19814#include <stdlib.h>
19815int
19816main ()
19817{
19818
19819 FILE *f = fopen ("conftest.val", "w");
19820 if (! f)
19821 exit (1);
19822 if (((long) (sizeof (long long))) < 0)
19823 {
19824 long i = longval ();
19825 if (i != ((long) (sizeof (long long))))
19826 exit (1);
19827 fprintf (f, "%ld\n", i);
19828 }
19829 else
19830 {
19831 unsigned long i = ulongval ();
19832 if (i != ((long) (sizeof (long long))))
19833 exit (1);
19834 fprintf (f, "%lu\n", i);
19835 }
19836 exit (ferror (f) || fclose (f) != 0);
19837
19838 ;
19839 return 0;
19840}
19841_ACEOF
19842rm -f conftest$ac_exeext
19843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19844 (eval $ac_link) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long_long=`cat conftest.val`
19854else
19855 echo "$as_me: program exited with status $ac_status" >&5
19856echo "$as_me: failed program was:" >&5
19857sed 's/^/| /' conftest.$ac_ext >&5
19858
19859( exit $ac_status )
19860{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19861See \`config.log' for more details." >&5
19862echo "$as_me: error: cannot compute sizeof (long long), 77
19863See \`config.log' for more details." >&2;}
19864 { (exit 1); exit 1; }; }
19865fi
ac1cb8d3 19866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19867fi
19868fi
19869rm -f conftest.val
19870else
19871 ac_cv_sizeof_long_long=0
19872fi
19873fi
19874echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19875echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19876cat >>confdefs.h <<_ACEOF
19877#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19878_ACEOF
19879
19880
19881 ;;
19882 *-hp-hpux* )
19883 echo "$as_me:$LINENO: checking for long long" >&5
19884echo $ECHO_N "checking for long long... $ECHO_C" >&6
19885if test "${ac_cv_type_long_long+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19887else
19888 cat >conftest.$ac_ext <<_ACEOF
19889/* confdefs.h. */
19890_ACEOF
19891cat confdefs.h >>conftest.$ac_ext
19892cat >>conftest.$ac_ext <<_ACEOF
19893/* end confdefs.h. */
19894$ac_includes_default
19895int
19896main ()
19897{
19898if ((long long *) 0)
19899 return 0;
19900if (sizeof (long long))
19901 return 0;
19902 ;
19903 return 0;
19904}
19905_ACEOF
19906rm -f conftest.$ac_objext
19907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19908 (eval $ac_compile) 2>conftest.er1
a848cd7e 19909 ac_status=$?
ac1cb8d3
VS
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
a848cd7e
SC
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
2b850ae1
RR
19915 { ac_try='test -z "$ac_c_werror_flag"
19916 || test ! -s conftest.err'
ac1cb8d3
VS
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; } &&
19922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_cv_type_long_long=yes
19929else
19930 echo "$as_me: failed program was:" >&5
19931sed 's/^/| /' conftest.$ac_ext >&5
19932
19933ac_cv_type_long_long=no
19934fi
ac1cb8d3 19935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19936fi
19937echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19938echo "${ECHO_T}$ac_cv_type_long_long" >&6
19939
19940echo "$as_me:$LINENO: checking size of long long" >&5
19941echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19942if test "${ac_cv_sizeof_long_long+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19944else
19945 if test "$ac_cv_type_long_long" = yes; then
19946 # The cast to unsigned long works around a bug in the HP C Compiler
19947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19949 # This bug is HP SR number 8606223364.
19950 if test "$cross_compiling" = yes; then
19951 # Depending upon the size, compute the lo and hi bounds.
19952cat >conftest.$ac_ext <<_ACEOF
19953/* confdefs.h. */
19954_ACEOF
19955cat confdefs.h >>conftest.$ac_ext
19956cat >>conftest.$ac_ext <<_ACEOF
19957/* end confdefs.h. */
19958$ac_includes_default
19959int
19960main ()
19961{
19962static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19963test_array [0] = 0
19964
19965 ;
19966 return 0;
19967}
19968_ACEOF
19969rm -f conftest.$ac_objext
19970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19971 (eval $ac_compile) 2>conftest.er1
a848cd7e 19972 ac_status=$?
ac1cb8d3
VS
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
a848cd7e
SC
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
2b850ae1
RR
19978 { ac_try='test -z "$ac_c_werror_flag"
19979 || test ! -s conftest.err'
ac1cb8d3
VS
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_lo=0 ac_mid=0
19992 while :; do
19993 cat >conftest.$ac_ext <<_ACEOF
19994/* confdefs.h. */
19995_ACEOF
19996cat confdefs.h >>conftest.$ac_ext
19997cat >>conftest.$ac_ext <<_ACEOF
19998/* end confdefs.h. */
19999$ac_includes_default
20000int
20001main ()
20002{
20003static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20004test_array [0] = 0
20005
20006 ;
20007 return 0;
20008}
20009_ACEOF
20010rm -f conftest.$ac_objext
20011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20012 (eval $ac_compile) 2>conftest.er1
a848cd7e 20013 ac_status=$?
ac1cb8d3
VS
20014 grep -v '^ *+' conftest.er1 >conftest.err
20015 rm -f conftest.er1
20016 cat conftest.err >&5
a848cd7e
SC
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } &&
2b850ae1
RR
20019 { ac_try='test -z "$ac_c_werror_flag"
20020 || test ! -s conftest.err'
ac1cb8d3
VS
20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022 (eval $ac_try) 2>&5
20023 ac_status=$?
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; } &&
20026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20028 (eval $ac_try) 2>&5
20029 ac_status=$?
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; }; then
20032 ac_hi=$ac_mid; break
20033else
20034 echo "$as_me: failed program was:" >&5
20035sed 's/^/| /' conftest.$ac_ext >&5
20036
20037ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20038 if test $ac_lo -le $ac_mid; then
20039 ac_lo= ac_hi=
20040 break
20041 fi
20042 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20043fi
ac1cb8d3 20044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20045 done
20046else
20047 echo "$as_me: failed program was:" >&5
20048sed 's/^/| /' conftest.$ac_ext >&5
20049
20050cat >conftest.$ac_ext <<_ACEOF
20051/* confdefs.h. */
20052_ACEOF
20053cat confdefs.h >>conftest.$ac_ext
20054cat >>conftest.$ac_ext <<_ACEOF
20055/* end confdefs.h. */
20056$ac_includes_default
20057int
20058main ()
20059{
20060static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20061test_array [0] = 0
20062
20063 ;
20064 return 0;
20065}
20066_ACEOF
20067rm -f conftest.$ac_objext
20068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20069 (eval $ac_compile) 2>conftest.er1
a848cd7e 20070 ac_status=$?
ac1cb8d3
VS
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
a848cd7e
SC
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
2b850ae1
RR
20076 { ac_try='test -z "$ac_c_werror_flag"
20077 || test ! -s conftest.err'
ac1cb8d3
VS
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_hi=-1 ac_mid=-1
20090 while :; do
20091 cat >conftest.$ac_ext <<_ACEOF
20092/* confdefs.h. */
20093_ACEOF
20094cat confdefs.h >>conftest.$ac_ext
20095cat >>conftest.$ac_ext <<_ACEOF
20096/* end confdefs.h. */
20097$ac_includes_default
20098int
20099main ()
20100{
20101static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20102test_array [0] = 0
20103
20104 ;
20105 return 0;
20106}
20107_ACEOF
20108rm -f conftest.$ac_objext
20109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20110 (eval $ac_compile) 2>conftest.er1
a848cd7e 20111 ac_status=$?
ac1cb8d3
VS
20112 grep -v '^ *+' conftest.er1 >conftest.err
20113 rm -f conftest.er1
20114 cat conftest.err >&5
a848cd7e
SC
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } &&
2b850ae1
RR
20117 { ac_try='test -z "$ac_c_werror_flag"
20118 || test ! -s conftest.err'
ac1cb8d3
VS
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; } &&
20124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; }; then
20130 ac_lo=$ac_mid; break
20131else
20132 echo "$as_me: failed program was:" >&5
20133sed 's/^/| /' conftest.$ac_ext >&5
20134
20135ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20136 if test $ac_mid -le $ac_hi; then
20137 ac_lo= ac_hi=
20138 break
20139 fi
20140 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20141fi
ac1cb8d3 20142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20143 done
20144else
20145 echo "$as_me: failed program was:" >&5
20146sed 's/^/| /' conftest.$ac_ext >&5
20147
20148ac_lo= ac_hi=
20149fi
ac1cb8d3 20150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20151fi
ac1cb8d3 20152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20153# Binary search between lo and hi bounds.
20154while test "x$ac_lo" != "x$ac_hi"; do
20155 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20156 cat >conftest.$ac_ext <<_ACEOF
20157/* confdefs.h. */
20158_ACEOF
20159cat confdefs.h >>conftest.$ac_ext
20160cat >>conftest.$ac_ext <<_ACEOF
20161/* end confdefs.h. */
20162$ac_includes_default
20163int
20164main ()
20165{
20166static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20167test_array [0] = 0
20168
20169 ;
20170 return 0;
20171}
20172_ACEOF
20173rm -f conftest.$ac_objext
20174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20175 (eval $ac_compile) 2>conftest.er1
a848cd7e 20176 ac_status=$?
ac1cb8d3
VS
20177 grep -v '^ *+' conftest.er1 >conftest.err
20178 rm -f conftest.er1
20179 cat conftest.err >&5
a848cd7e
SC
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } &&
2b850ae1
RR
20182 { ac_try='test -z "$ac_c_werror_flag"
20183 || test ! -s conftest.err'
ac1cb8d3
VS
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; } &&
20189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; }; then
20195 ac_hi=$ac_mid
20196else
20197 echo "$as_me: failed program was:" >&5
20198sed 's/^/| /' conftest.$ac_ext >&5
20199
20200ac_lo=`expr '(' $ac_mid ')' + 1`
20201fi
ac1cb8d3 20202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20203done
20204case $ac_lo in
20205?*) ac_cv_sizeof_long_long=$ac_lo;;
20206'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20207See \`config.log' for more details." >&5
20208echo "$as_me: error: cannot compute sizeof (long long), 77
20209See \`config.log' for more details." >&2;}
20210 { (exit 1); exit 1; }; } ;;
20211esac
20212else
20213 if test "$cross_compiling" = yes; then
2b850ae1
RR
20214 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20215See \`config.log' for more details." >&5
20216echo "$as_me: error: cannot run test program while cross compiling
20217See \`config.log' for more details." >&2;}
a848cd7e
SC
20218 { (exit 1); exit 1; }; }
20219else
20220 cat >conftest.$ac_ext <<_ACEOF
20221/* confdefs.h. */
20222_ACEOF
20223cat confdefs.h >>conftest.$ac_ext
20224cat >>conftest.$ac_ext <<_ACEOF
20225/* end confdefs.h. */
20226$ac_includes_default
20227long longval () { return (long) (sizeof (long long)); }
20228unsigned long ulongval () { return (long) (sizeof (long long)); }
20229#include <stdio.h>
20230#include <stdlib.h>
20231int
20232main ()
20233{
20234
20235 FILE *f = fopen ("conftest.val", "w");
20236 if (! f)
20237 exit (1);
20238 if (((long) (sizeof (long long))) < 0)
20239 {
20240 long i = longval ();
20241 if (i != ((long) (sizeof (long long))))
20242 exit (1);
20243 fprintf (f, "%ld\n", i);
20244 }
20245 else
20246 {
20247 unsigned long i = ulongval ();
20248 if (i != ((long) (sizeof (long long))))
20249 exit (1);
20250 fprintf (f, "%lu\n", i);
20251 }
20252 exit (ferror (f) || fclose (f) != 0);
20253
20254 ;
20255 return 0;
20256}
20257_ACEOF
20258rm -f conftest$ac_exeext
20259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20260 (eval $ac_link) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
20269 ac_cv_sizeof_long_long=`cat conftest.val`
20270else
20271 echo "$as_me: program exited with status $ac_status" >&5
20272echo "$as_me: failed program was:" >&5
20273sed 's/^/| /' conftest.$ac_ext >&5
20274
20275( exit $ac_status )
20276{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20277See \`config.log' for more details." >&5
20278echo "$as_me: error: cannot compute sizeof (long long), 77
20279See \`config.log' for more details." >&2;}
20280 { (exit 1); exit 1; }; }
20281fi
ac1cb8d3 20282rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20283fi
20284fi
20285rm -f conftest.val
20286else
20287 ac_cv_sizeof_long_long=0
20288fi
20289fi
20290echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20291echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20292cat >>confdefs.h <<_ACEOF
20293#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20294_ACEOF
20295
20296
20297 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20298 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20299 fi
20300 ;;
20301 * )
20302 echo "$as_me:$LINENO: checking for long long" >&5
20303echo $ECHO_N "checking for long long... $ECHO_C" >&6
20304if test "${ac_cv_type_long_long+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20306else
20307 cat >conftest.$ac_ext <<_ACEOF
20308/* confdefs.h. */
20309_ACEOF
20310cat confdefs.h >>conftest.$ac_ext
20311cat >>conftest.$ac_ext <<_ACEOF
20312/* end confdefs.h. */
20313$ac_includes_default
20314int
20315main ()
20316{
20317if ((long long *) 0)
20318 return 0;
20319if (sizeof (long long))
20320 return 0;
20321 ;
20322 return 0;
20323}
20324_ACEOF
20325rm -f conftest.$ac_objext
20326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20327 (eval $ac_compile) 2>conftest.er1
a848cd7e 20328 ac_status=$?
ac1cb8d3
VS
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
a848cd7e
SC
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } &&
2b850ae1
RR
20334 { ac_try='test -z "$ac_c_werror_flag"
20335 || test ! -s conftest.err'
ac1cb8d3
VS
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; } &&
20341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; }; then
20347 ac_cv_type_long_long=yes
20348else
20349 echo "$as_me: failed program was:" >&5
20350sed 's/^/| /' conftest.$ac_ext >&5
20351
20352ac_cv_type_long_long=no
20353fi
ac1cb8d3 20354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20355fi
20356echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20357echo "${ECHO_T}$ac_cv_type_long_long" >&6
20358
20359echo "$as_me:$LINENO: checking size of long long" >&5
20360echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20361if test "${ac_cv_sizeof_long_long+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363else
20364 if test "$ac_cv_type_long_long" = yes; then
20365 # The cast to unsigned long works around a bug in the HP C Compiler
20366 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20367 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20368 # This bug is HP SR number 8606223364.
20369 if test "$cross_compiling" = yes; then
20370 # Depending upon the size, compute the lo and hi bounds.
20371cat >conftest.$ac_ext <<_ACEOF
20372/* confdefs.h. */
20373_ACEOF
20374cat confdefs.h >>conftest.$ac_ext
20375cat >>conftest.$ac_ext <<_ACEOF
20376/* end confdefs.h. */
20377$ac_includes_default
20378int
20379main ()
20380{
20381static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20382test_array [0] = 0
20383
20384 ;
20385 return 0;
20386}
20387_ACEOF
20388rm -f conftest.$ac_objext
20389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20390 (eval $ac_compile) 2>conftest.er1
a848cd7e 20391 ac_status=$?
ac1cb8d3
VS
20392 grep -v '^ *+' conftest.er1 >conftest.err
20393 rm -f conftest.er1
20394 cat conftest.err >&5
a848cd7e
SC
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } &&
2b850ae1
RR
20397 { ac_try='test -z "$ac_c_werror_flag"
20398 || test ! -s conftest.err'
ac1cb8d3
VS
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_lo=0 ac_mid=0
20411 while :; do
20412 cat >conftest.$ac_ext <<_ACEOF
20413/* confdefs.h. */
20414_ACEOF
20415cat confdefs.h >>conftest.$ac_ext
20416cat >>conftest.$ac_ext <<_ACEOF
20417/* end confdefs.h. */
20418$ac_includes_default
20419int
20420main ()
20421{
20422static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20423test_array [0] = 0
20424
20425 ;
20426 return 0;
20427}
20428_ACEOF
20429rm -f conftest.$ac_objext
20430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20431 (eval $ac_compile) 2>conftest.er1
a848cd7e 20432 ac_status=$?
ac1cb8d3
VS
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
a848cd7e
SC
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
2b850ae1
RR
20438 { ac_try='test -z "$ac_c_werror_flag"
20439 || test ! -s conftest.err'
ac1cb8d3
VS
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; } &&
20445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; }; then
20451 ac_hi=$ac_mid; break
20452else
20453 echo "$as_me: failed program was:" >&5
20454sed 's/^/| /' conftest.$ac_ext >&5
20455
20456ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20457 if test $ac_lo -le $ac_mid; then
20458 ac_lo= ac_hi=
20459 break
20460 fi
20461 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20462fi
ac1cb8d3 20463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20464 done
20465else
20466 echo "$as_me: failed program was:" >&5
20467sed 's/^/| /' conftest.$ac_ext >&5
20468
20469cat >conftest.$ac_ext <<_ACEOF
20470/* confdefs.h. */
20471_ACEOF
20472cat confdefs.h >>conftest.$ac_ext
20473cat >>conftest.$ac_ext <<_ACEOF
20474/* end confdefs.h. */
20475$ac_includes_default
20476int
20477main ()
20478{
20479static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20480test_array [0] = 0
20481
20482 ;
20483 return 0;
20484}
20485_ACEOF
20486rm -f conftest.$ac_objext
20487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20488 (eval $ac_compile) 2>conftest.er1
a848cd7e 20489 ac_status=$?
ac1cb8d3
VS
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
a848cd7e
SC
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
2b850ae1
RR
20495 { ac_try='test -z "$ac_c_werror_flag"
20496 || test ! -s conftest.err'
ac1cb8d3
VS
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; } &&
20502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_hi=-1 ac_mid=-1
20509 while :; do
20510 cat >conftest.$ac_ext <<_ACEOF
20511/* confdefs.h. */
20512_ACEOF
20513cat confdefs.h >>conftest.$ac_ext
20514cat >>conftest.$ac_ext <<_ACEOF
20515/* end confdefs.h. */
20516$ac_includes_default
20517int
20518main ()
20519{
20520static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20521test_array [0] = 0
20522
20523 ;
20524 return 0;
20525}
20526_ACEOF
20527rm -f conftest.$ac_objext
20528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20529 (eval $ac_compile) 2>conftest.er1
a848cd7e 20530 ac_status=$?
ac1cb8d3
VS
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
a848cd7e
SC
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
2b850ae1
RR
20536 { ac_try='test -z "$ac_c_werror_flag"
20537 || test ! -s conftest.err'
ac1cb8d3
VS
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } &&
20543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
20549 ac_lo=$ac_mid; break
20550else
20551 echo "$as_me: failed program was:" >&5
20552sed 's/^/| /' conftest.$ac_ext >&5
20553
20554ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20555 if test $ac_mid -le $ac_hi; then
20556 ac_lo= ac_hi=
20557 break
20558 fi
20559 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20560fi
ac1cb8d3 20561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20562 done
20563else
20564 echo "$as_me: failed program was:" >&5
20565sed 's/^/| /' conftest.$ac_ext >&5
20566
20567ac_lo= ac_hi=
20568fi
ac1cb8d3 20569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20570fi
ac1cb8d3 20571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20572# Binary search between lo and hi bounds.
20573while test "x$ac_lo" != "x$ac_hi"; do
20574 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20575 cat >conftest.$ac_ext <<_ACEOF
20576/* confdefs.h. */
20577_ACEOF
20578cat confdefs.h >>conftest.$ac_ext
20579cat >>conftest.$ac_ext <<_ACEOF
20580/* end confdefs.h. */
20581$ac_includes_default
20582int
20583main ()
20584{
20585static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20586test_array [0] = 0
20587
20588 ;
20589 return 0;
20590}
20591_ACEOF
20592rm -f conftest.$ac_objext
20593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20594 (eval $ac_compile) 2>conftest.er1
a848cd7e 20595 ac_status=$?
ac1cb8d3
VS
20596 grep -v '^ *+' conftest.er1 >conftest.err
20597 rm -f conftest.er1
20598 cat conftest.err >&5
a848cd7e
SC
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } &&
2b850ae1
RR
20601 { ac_try='test -z "$ac_c_werror_flag"
20602 || test ! -s conftest.err'
ac1cb8d3
VS
20603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604 (eval $ac_try) 2>&5
20605 ac_status=$?
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); }; } &&
20608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610 (eval $ac_try) 2>&5
20611 ac_status=$?
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); }; }; then
20614 ac_hi=$ac_mid
20615else
20616 echo "$as_me: failed program was:" >&5
20617sed 's/^/| /' conftest.$ac_ext >&5
20618
20619ac_lo=`expr '(' $ac_mid ')' + 1`
20620fi
ac1cb8d3 20621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20622done
20623case $ac_lo in
20624?*) ac_cv_sizeof_long_long=$ac_lo;;
20625'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20626See \`config.log' for more details." >&5
20627echo "$as_me: error: cannot compute sizeof (long long), 77
20628See \`config.log' for more details." >&2;}
20629 { (exit 1); exit 1; }; } ;;
20630esac
20631else
20632 if test "$cross_compiling" = yes; then
2b850ae1
RR
20633 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20634See \`config.log' for more details." >&5
20635echo "$as_me: error: cannot run test program while cross compiling
20636See \`config.log' for more details." >&2;}
a848cd7e
SC
20637 { (exit 1); exit 1; }; }
20638else
20639 cat >conftest.$ac_ext <<_ACEOF
20640/* confdefs.h. */
20641_ACEOF
20642cat confdefs.h >>conftest.$ac_ext
20643cat >>conftest.$ac_ext <<_ACEOF
20644/* end confdefs.h. */
20645$ac_includes_default
20646long longval () { return (long) (sizeof (long long)); }
20647unsigned long ulongval () { return (long) (sizeof (long long)); }
20648#include <stdio.h>
20649#include <stdlib.h>
20650int
20651main ()
20652{
20653
20654 FILE *f = fopen ("conftest.val", "w");
20655 if (! f)
20656 exit (1);
20657 if (((long) (sizeof (long long))) < 0)
20658 {
20659 long i = longval ();
20660 if (i != ((long) (sizeof (long long))))
20661 exit (1);
20662 fprintf (f, "%ld\n", i);
20663 }
20664 else
20665 {
20666 unsigned long i = ulongval ();
20667 if (i != ((long) (sizeof (long long))))
20668 exit (1);
20669 fprintf (f, "%lu\n", i);
20670 }
20671 exit (ferror (f) || fclose (f) != 0);
20672
20673 ;
20674 return 0;
20675}
20676_ACEOF
20677rm -f conftest$ac_exeext
20678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20679 (eval $ac_link) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20684 (eval $ac_try) 2>&5
20685 ac_status=$?
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); }; }; then
20688 ac_cv_sizeof_long_long=`cat conftest.val`
20689else
20690 echo "$as_me: program exited with status $ac_status" >&5
20691echo "$as_me: failed program was:" >&5
20692sed 's/^/| /' conftest.$ac_ext >&5
20693
20694( exit $ac_status )
20695{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20696See \`config.log' for more details." >&5
20697echo "$as_me: error: cannot compute sizeof (long long), 77
20698See \`config.log' for more details." >&2;}
20699 { (exit 1); exit 1; }; }
20700fi
ac1cb8d3 20701rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20702fi
20703fi
20704rm -f conftest.val
20705else
20706 ac_cv_sizeof_long_long=0
20707fi
20708fi
20709echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20710echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20711cat >>confdefs.h <<_ACEOF
20712#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20713_ACEOF
20714
20715
20716esac
20717
238ecede
MW
20718echo "$as_me:$LINENO: checking for wchar_t" >&5
20719echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20720if test "${ac_cv_type_wchar_t+set}" = set; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20722else
20723 cat >conftest.$ac_ext <<_ACEOF
20724/* confdefs.h. */
20725_ACEOF
20726cat confdefs.h >>conftest.$ac_ext
20727cat >>conftest.$ac_ext <<_ACEOF
20728/* end confdefs.h. */
20729
83d8eb47
MW
20730 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20731 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20732 # error "fake wchar_t"
20733 #endif
20734 #ifdef HAVE_WCHAR_H
20735 # ifdef __CYGWIN__
20736 # include <stddef.h>
20737 # endif
20738 # include <wchar.h>
20739 #endif
20740 #ifdef HAVE_STDLIB_H
20741 # include <stdlib.h>
20742 #endif
20743 #include <stdio.h>
20744
20745
20746
20747int
20748main ()
20749{
20750if ((wchar_t *) 0)
20751 return 0;
20752if (sizeof (wchar_t))
20753 return 0;
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); } &&
2b850ae1
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_cv_type_wchar_t=yes
20781else
20782 echo "$as_me: failed program was:" >&5
20783sed 's/^/| /' conftest.$ac_ext >&5
20784
20785ac_cv_type_wchar_t=no
20786fi
20787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20788fi
20789echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20790echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20791
a848cd7e
SC
20792echo "$as_me:$LINENO: checking size of wchar_t" >&5
20793echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20794if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20796else
238ecede
MW
20797 if test "$ac_cv_type_wchar_t" = yes; then
20798 # The cast to unsigned long works around a bug in the HP C Compiler
20799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20801 # This bug is HP SR number 8606223364.
20802 if test "$cross_compiling" = yes; then
20803 # Depending upon the size, compute the lo and hi bounds.
20804cat >conftest.$ac_ext <<_ACEOF
20805/* confdefs.h. */
20806_ACEOF
20807cat confdefs.h >>conftest.$ac_ext
20808cat >>conftest.$ac_ext <<_ACEOF
20809/* end confdefs.h. */
20810
83d8eb47
MW
20811 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20812 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20813 # error "fake wchar_t"
20814 #endif
20815 #ifdef HAVE_WCHAR_H
20816 # ifdef __CYGWIN__
20817 # include <stddef.h>
20818 # endif
20819 # include <wchar.h>
20820 #endif
20821 #ifdef HAVE_STDLIB_H
20822 # include <stdlib.h>
20823 #endif
20824 #include <stdio.h>
20825
20826
20827
20828int
20829main ()
20830{
20831static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20832test_array [0] = 0
20833
20834 ;
20835 return 0;
20836}
20837_ACEOF
20838rm -f conftest.$ac_objext
20839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20840 (eval $ac_compile) 2>conftest.er1
20841 ac_status=$?
20842 grep -v '^ *+' conftest.er1 >conftest.err
20843 rm -f conftest.er1
20844 cat conftest.err >&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
2b850ae1
RR
20847 { ac_try='test -z "$ac_c_werror_flag"
20848 || test ! -s conftest.err'
238ecede
MW
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); }; } &&
20854 { ac_try='test -s conftest.$ac_objext'
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856 (eval $ac_try) 2>&5
20857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; }; then
20860 ac_lo=0 ac_mid=0
20861 while :; do
20862 cat >conftest.$ac_ext <<_ACEOF
20863/* confdefs.h. */
20864_ACEOF
20865cat confdefs.h >>conftest.$ac_ext
20866cat >>conftest.$ac_ext <<_ACEOF
20867/* end confdefs.h. */
20868
83d8eb47
MW
20869 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20870 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20871 # error "fake wchar_t"
20872 #endif
20873 #ifdef HAVE_WCHAR_H
20874 # ifdef __CYGWIN__
20875 # include <stddef.h>
20876 # endif
20877 # include <wchar.h>
20878 #endif
20879 #ifdef HAVE_STDLIB_H
20880 # include <stdlib.h>
20881 #endif
20882 #include <stdio.h>
20883
20884
20885
20886int
20887main ()
20888{
20889static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20890test_array [0] = 0
20891
20892 ;
20893 return 0;
20894}
20895_ACEOF
20896rm -f conftest.$ac_objext
20897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20898 (eval $ac_compile) 2>conftest.er1
20899 ac_status=$?
20900 grep -v '^ *+' conftest.er1 >conftest.err
20901 rm -f conftest.er1
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } &&
2b850ae1
RR
20905 { ac_try='test -z "$ac_c_werror_flag"
20906 || test ! -s conftest.err'
238ecede
MW
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); }; } &&
20912 { ac_try='test -s conftest.$ac_objext'
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20915 ac_status=$?
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; }; then
20918 ac_hi=$ac_mid; break
20919else
20920 echo "$as_me: failed program was:" >&5
20921sed 's/^/| /' conftest.$ac_ext >&5
20922
20923ac_lo=`expr $ac_mid + 1`
20924 if test $ac_lo -le $ac_mid; then
20925 ac_lo= ac_hi=
20926 break
20927 fi
20928 ac_mid=`expr 2 '*' $ac_mid + 1`
20929fi
20930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20931 done
20932else
20933 echo "$as_me: failed program was:" >&5
20934sed 's/^/| /' conftest.$ac_ext >&5
20935
20936cat >conftest.$ac_ext <<_ACEOF
20937/* confdefs.h. */
20938_ACEOF
20939cat confdefs.h >>conftest.$ac_ext
20940cat >>conftest.$ac_ext <<_ACEOF
20941/* end confdefs.h. */
20942
83d8eb47
MW
20943 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20944 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20945 # error "fake wchar_t"
20946 #endif
20947 #ifdef HAVE_WCHAR_H
20948 # ifdef __CYGWIN__
20949 # include <stddef.h>
20950 # endif
20951 # include <wchar.h>
20952 #endif
20953 #ifdef HAVE_STDLIB_H
20954 # include <stdlib.h>
20955 #endif
20956 #include <stdio.h>
20957
20958
20959
20960int
20961main ()
20962{
20963static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20964test_array [0] = 0
20965
20966 ;
20967 return 0;
20968}
20969_ACEOF
20970rm -f conftest.$ac_objext
20971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20972 (eval $ac_compile) 2>conftest.er1
20973 ac_status=$?
20974 grep -v '^ *+' conftest.er1 >conftest.err
20975 rm -f conftest.er1
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } &&
2b850ae1
RR
20979 { ac_try='test -z "$ac_c_werror_flag"
20980 || test ! -s conftest.err'
238ecede
MW
20981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20982 (eval $ac_try) 2>&5
20983 ac_status=$?
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; } &&
20986 { ac_try='test -s conftest.$ac_objext'
20987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988 (eval $ac_try) 2>&5
20989 ac_status=$?
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; }; then
20992 ac_hi=-1 ac_mid=-1
20993 while :; do
20994 cat >conftest.$ac_ext <<_ACEOF
20995/* confdefs.h. */
20996_ACEOF
20997cat confdefs.h >>conftest.$ac_ext
20998cat >>conftest.$ac_ext <<_ACEOF
20999/* end confdefs.h. */
21000
83d8eb47
MW
21001 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21002 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21003 # error "fake wchar_t"
21004 #endif
21005 #ifdef HAVE_WCHAR_H
21006 # ifdef __CYGWIN__
21007 # include <stddef.h>
21008 # endif
21009 # include <wchar.h>
21010 #endif
21011 #ifdef HAVE_STDLIB_H
21012 # include <stdlib.h>
21013 #endif
21014 #include <stdio.h>
21015
21016
21017
21018int
21019main ()
21020{
21021static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21022test_array [0] = 0
21023
21024 ;
21025 return 0;
21026}
21027_ACEOF
21028rm -f conftest.$ac_objext
21029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21030 (eval $ac_compile) 2>conftest.er1
21031 ac_status=$?
21032 grep -v '^ *+' conftest.er1 >conftest.err
21033 rm -f conftest.er1
21034 cat conftest.err >&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } &&
2b850ae1
RR
21037 { ac_try='test -z "$ac_c_werror_flag"
21038 || test ! -s conftest.err'
238ecede
MW
21039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040 (eval $ac_try) 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; } &&
21044 { ac_try='test -s conftest.$ac_objext'
21045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046 (eval $ac_try) 2>&5
21047 ac_status=$?
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; }; then
21050 ac_lo=$ac_mid; break
21051else
21052 echo "$as_me: failed program was:" >&5
21053sed 's/^/| /' conftest.$ac_ext >&5
21054
21055ac_hi=`expr '(' $ac_mid ')' - 1`
21056 if test $ac_mid -le $ac_hi; then
21057 ac_lo= ac_hi=
21058 break
21059 fi
21060 ac_mid=`expr 2 '*' $ac_mid`
21061fi
21062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21063 done
21064else
21065 echo "$as_me: failed program was:" >&5
21066sed 's/^/| /' conftest.$ac_ext >&5
21067
21068ac_lo= ac_hi=
21069fi
21070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21071fi
21072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21073# Binary search between lo and hi bounds.
21074while test "x$ac_lo" != "x$ac_hi"; do
21075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21076 cat >conftest.$ac_ext <<_ACEOF
21077/* confdefs.h. */
21078_ACEOF
21079cat confdefs.h >>conftest.$ac_ext
21080cat >>conftest.$ac_ext <<_ACEOF
21081/* end confdefs.h. */
21082
83d8eb47
MW
21083 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21084 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21085 # error "fake wchar_t"
21086 #endif
21087 #ifdef HAVE_WCHAR_H
21088 # ifdef __CYGWIN__
21089 # include <stddef.h>
21090 # endif
21091 # include <wchar.h>
21092 #endif
21093 #ifdef HAVE_STDLIB_H
21094 # include <stdlib.h>
21095 #endif
21096 #include <stdio.h>
a848cd7e 21097
a848cd7e 21098
a848cd7e 21099
238ecede
MW
21100int
21101main ()
21102{
21103static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21104test_array [0] = 0
a848cd7e 21105
238ecede
MW
21106 ;
21107 return 0;
21108}
21109_ACEOF
21110rm -f conftest.$ac_objext
21111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21112 (eval $ac_compile) 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } &&
2b850ae1
RR
21119 { ac_try='test -z "$ac_c_werror_flag"
21120 || test ! -s conftest.err'
238ecede
MW
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; } &&
21126 { ac_try='test -s conftest.$ac_objext'
21127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128 (eval $ac_try) 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
21132 ac_hi=$ac_mid
21133else
21134 echo "$as_me: failed program was:" >&5
21135sed 's/^/| /' conftest.$ac_ext >&5
21136
21137ac_lo=`expr '(' $ac_mid ')' + 1`
21138fi
21139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21140done
21141case $ac_lo in
21142?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21143'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21144See \`config.log' for more details." >&5
21145echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21146See \`config.log' for more details." >&2;}
21147 { (exit 1); exit 1; }; } ;;
21148esac
21149else
21150 if test "$cross_compiling" = yes; then
2b850ae1
RR
21151 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21152See \`config.log' for more details." >&5
21153echo "$as_me: error: cannot run test program while cross compiling
21154See \`config.log' for more details." >&2;}
238ecede 21155 { (exit 1); exit 1; }; }
a848cd7e
SC
21156else
21157 cat >conftest.$ac_ext <<_ACEOF
21158/* confdefs.h. */
21159_ACEOF
21160cat confdefs.h >>conftest.$ac_ext
21161cat >>conftest.$ac_ext <<_ACEOF
21162/* end confdefs.h. */
21163
83d8eb47
MW
21164 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21165 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21166 # error "fake wchar_t"
21167 #endif
21168 #ifdef HAVE_WCHAR_H
21169 # ifdef __CYGWIN__
21170 # include <stddef.h>
21171 # endif
21172 # include <wchar.h>
21173 #endif
21174 #ifdef HAVE_STDLIB_H
21175 # include <stdlib.h>
21176 #endif
21177 #include <stdio.h>
21178
21179
21180
21181long longval () { return (long) (sizeof (wchar_t)); }
21182unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21183#include <stdio.h>
21184#include <stdlib.h>
21185int
21186main ()
21187{
a848cd7e 21188
238ecede
MW
21189 FILE *f = fopen ("conftest.val", "w");
21190 if (! f)
21191 exit (1);
21192 if (((long) (sizeof (wchar_t))) < 0)
21193 {
21194 long i = longval ();
21195 if (i != ((long) (sizeof (wchar_t))))
21196 exit (1);
21197 fprintf (f, "%ld\n", i);
21198 }
21199 else
21200 {
21201 unsigned long i = ulongval ();
21202 if (i != ((long) (sizeof (wchar_t))))
21203 exit (1);
21204 fprintf (f, "%lu\n", i);
21205 }
21206 exit (ferror (f) || fclose (f) != 0);
21207
21208 ;
21209 return 0;
21210}
a848cd7e
SC
21211_ACEOF
21212rm -f conftest$ac_exeext
21213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21214 (eval $ac_link) 2>&5
21215 ac_status=$?
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
238ecede 21223 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21224else
21225 echo "$as_me: program exited with status $ac_status" >&5
21226echo "$as_me: failed program was:" >&5
21227sed 's/^/| /' conftest.$ac_ext >&5
21228
21229( exit $ac_status )
238ecede
MW
21230{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21231See \`config.log' for more details." >&5
21232echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21233See \`config.log' for more details." >&2;}
21234 { (exit 1); exit 1; }; }
a848cd7e 21235fi
ac1cb8d3 21236rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21237fi
a848cd7e 21238fi
238ecede
MW
21239rm -f conftest.val
21240else
21241 ac_cv_sizeof_wchar_t=0
21242fi
21243fi
21244echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21245echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21246cat >>confdefs.h <<_ACEOF
238ecede 21247#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21248_ACEOF
21249
21250
47a7e797
MW
21251if test "$ac_cv_sizeof_wchar_t" != "0"; then
21252 wxUSE_WCHAR_T=yes
21253else
21254 wxUSE_WCHAR_T=no
21255fi
238ecede 21256
ba3d13e1
VZ
21257echo "$as_me:$LINENO: checking for va_copy" >&5
21258echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21259if test "${wx_cv_func_va_copy+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21261else
21262
21263 cat >conftest.$ac_ext <<_ACEOF
21264
21265 #include <stdarg.h>
21266 void foo(char *f, ...)
21267 {
21268 va_list ap1, ap2;
21269 va_start(ap1, f);
21270 va_copy(ap2, ap1);
21271 va_end(ap2);
21272 va_end(ap1);
21273 }
5886b072
VZ
21274 int main()
21275 {
b902e639
VZ
21276 foo("hi", 17);
21277 return 0;
5886b072 21278 }
ba3d13e1
VZ
21279_ACEOF
21280rm -f conftest.$ac_objext conftest$ac_exeext
21281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21282 (eval $ac_link) 2>conftest.er1
21283 ac_status=$?
21284 grep -v '^ *+' conftest.er1 >conftest.err
21285 rm -f conftest.er1
21286 cat conftest.err >&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
2b850ae1
RR
21289 { ac_try='test -z "$ac_c_werror_flag"
21290 || test ! -s conftest.err'
ba3d13e1
VZ
21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292 (eval $ac_try) 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; } &&
21296 { ac_try='test -s conftest$ac_exeext'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 wx_cv_func_va_copy=yes
21303else
21304 echo "$as_me: failed program was:" >&5
21305sed 's/^/| /' conftest.$ac_ext >&5
21306
21307wx_cv_func_va_copy=no
21308
21309fi
21310rm -f conftest.err conftest.$ac_objext \
21311 conftest$ac_exeext conftest.$ac_ext
21312
21313
21314fi
21315echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21316echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21317
21318if test $wx_cv_func_va_copy = "yes"; then
21319 cat >>confdefs.h <<\_ACEOF
21320#define HAVE_VA_COPY 1
21321_ACEOF
21322
21323else
21324 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21325echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21326if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21328else
21329
21330 if test "$cross_compiling" = yes; then
21331 wx_cv_type_va_list_lvalue=yes
21332
21333else
21334 cat >conftest.$ac_ext <<_ACEOF
21335
21336 #include <stdarg.h>
21337 int foo(char *f, ...)
21338 {
21339 va_list ap1, ap2;
21340 va_start(ap1, f);
21341 ap2 = ap1;
21342 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21343 return 1;
21344 va_end(ap2);
21345 va_end(ap1);
21346 return 0;
21347 }
21348 int main()
21349 {
21350 return foo("hi", 17);
21351 }
21352_ACEOF
21353rm -f conftest$ac_exeext
21354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21355 (eval $ac_link) 2>&5
21356 ac_status=$?
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 wx_cv_type_va_list_lvalue=yes
21365else
21366 echo "$as_me: program exited with status $ac_status" >&5
21367echo "$as_me: failed program was:" >&5
21368sed 's/^/| /' conftest.$ac_ext >&5
21369
21370( exit $ac_status )
21371wx_cv_type_va_list_lvalue=no
21372fi
21373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21374fi
21375
21376
21377fi
21378echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21379echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21380
21381 if test $wx_cv_type_va_list_lvalue != "yes"; then
21382 cat >>confdefs.h <<\_ACEOF
21383#define VA_LIST_IS_ARRAY 1
21384_ACEOF
21385
21386 fi
21387fi
21388
a848cd7e
SC
21389# Check whether --enable-largefile or --disable-largefile was given.
21390if test "${enable_largefile+set}" = set; then
21391 enableval="$enable_largefile"
21392
21393fi;
21394if test "$enable_largefile" != no; then
21395 wx_largefile=no
21396
21397 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21398echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21399if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21401else
21402
21403 cat >conftest.$ac_ext <<_ACEOF
21404/* confdefs.h. */
21405_ACEOF
21406cat confdefs.h >>conftest.$ac_ext
21407cat >>conftest.$ac_ext <<_ACEOF
21408/* end confdefs.h. */
21409#define _FILE_OFFSET_BITS 64
21410 #include <sys/types.h>
21411int
21412main ()
21413{
21414typedef struct {
21415 unsigned int field: sizeof(off_t) == 8;
21416} wxlf;
21417
21418 ;
21419 return 0;
21420}
21421_ACEOF
21422rm -f conftest.$ac_objext
21423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21424 (eval $ac_compile) 2>conftest.er1
a848cd7e 21425 ac_status=$?
ac1cb8d3
VS
21426 grep -v '^ *+' conftest.er1 >conftest.err
21427 rm -f conftest.er1
21428 cat conftest.err >&5
a848cd7e
SC
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); } &&
2b850ae1
RR
21431 { ac_try='test -z "$ac_c_werror_flag"
21432 || test ! -s conftest.err'
ac1cb8d3
VS
21433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21434 (eval $ac_try) 2>&5
21435 ac_status=$?
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); }; } &&
21438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; }; then
21444 ac_cv_sys_file_offset_bits=64
21445else
21446 echo "$as_me: failed program was:" >&5
21447sed 's/^/| /' conftest.$ac_ext >&5
21448
21449ac_cv_sys_file_offset_bits=no
21450fi
ac1cb8d3 21451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21452
21453
21454fi
21455echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21456echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21457
21458 if test "$ac_cv_sys_file_offset_bits" != no; then
21459 wx_largefile=yes
21460 cat >>confdefs.h <<_ACEOF
21461#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21462_ACEOF
21463
21464 fi
21465
21466 if test "x$wx_largefile" != "xyes"; then
21467
21468 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21469echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21470if test "${ac_cv_sys_large_files+set}" = set; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21472else
21473
21474 cat >conftest.$ac_ext <<_ACEOF
21475/* confdefs.h. */
21476_ACEOF
21477cat confdefs.h >>conftest.$ac_ext
21478cat >>conftest.$ac_ext <<_ACEOF
21479/* end confdefs.h. */
21480#define _LARGE_FILES 1
21481 #include <sys/types.h>
21482int
21483main ()
21484{
21485typedef struct {
21486 unsigned int field: sizeof(off_t) == 8;
21487} wxlf;
21488
21489 ;
21490 return 0;
21491}
21492_ACEOF
21493rm -f conftest.$ac_objext
21494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21495 (eval $ac_compile) 2>conftest.er1
a848cd7e 21496 ac_status=$?
ac1cb8d3
VS
21497 grep -v '^ *+' conftest.er1 >conftest.err
21498 rm -f conftest.er1
21499 cat conftest.err >&5
a848cd7e
SC
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); } &&
2b850ae1
RR
21502 { ac_try='test -z "$ac_c_werror_flag"
21503 || test ! -s conftest.err'
ac1cb8d3
VS
21504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21506 ac_status=$?
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; } &&
21509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511 (eval $ac_try) 2>&5
21512 ac_status=$?
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; }; then
21515 ac_cv_sys_large_files=1
21516else
21517 echo "$as_me: failed program was:" >&5
21518sed 's/^/| /' conftest.$ac_ext >&5
21519
21520ac_cv_sys_large_files=no
21521fi
ac1cb8d3 21522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21523
21524
21525fi
21526echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21527echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21528
21529 if test "$ac_cv_sys_large_files" != no; then
21530 wx_largefile=yes
21531 cat >>confdefs.h <<_ACEOF
21532#define _LARGE_FILES $ac_cv_sys_large_files
21533_ACEOF
21534
21535 fi
21536
21537 fi
21538
21539 echo "$as_me:$LINENO: checking if large file support is available" >&5
21540echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21541 if test "x$wx_largefile" = "xyes"; then
21542 cat >>confdefs.h <<\_ACEOF
21543#define HAVE_LARGEFILE_SUPPORT 1
21544_ACEOF
21545
21546 fi
21547 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21548echo "${ECHO_T}$wx_largefile" >&6
21549fi
21550
5b674b9d
DE
21551
21552if test "x$wx_largefile" = "xyes"; then
21553 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21554 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21555
21556 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21557 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21558echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21559if test "${wx_cv_STDC_EXT_required+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561else
21562
00421666
MW
21563 ac_ext=cc
21564ac_cpp='$CXXCPP $CPPFLAGS'
21565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21568
21569 cat >conftest.$ac_ext <<_ACEOF
21570/* confdefs.h. */
21571_ACEOF
21572cat confdefs.h >>conftest.$ac_ext
21573cat >>conftest.$ac_ext <<_ACEOF
21574/* end confdefs.h. */
21575
21576int
21577main ()
21578{
21579
21580 #ifndef __STDC_EXT__
21581 choke me
21582 #endif
21583
21584 ;
21585 return 0;
21586}
21587_ACEOF
21588rm -f conftest.$ac_objext
21589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21590 (eval $ac_compile) 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } &&
2b850ae1
RR
21597 { ac_try='test -z "$ac_cxx_werror_flag"
21598 || test ! -s conftest.err'
00421666
MW
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21601 ac_status=$?
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; } &&
21604 { ac_try='test -s conftest.$ac_objext'
21605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21606 (eval $ac_try) 2>&5
21607 ac_status=$?
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; }; then
21610 wx_cv_STDC_EXT_required=no
21611else
21612 echo "$as_me: failed program was:" >&5
21613sed 's/^/| /' conftest.$ac_ext >&5
21614
21615wx_cv_STDC_EXT_required=yes
21616
21617fi
21618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21619 ac_ext=c
21620ac_cpp='$CPP $CPPFLAGS'
21621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21623ac_compiler_gnu=$ac_cv_c_compiler_gnu
21624
21625
21626
21627fi
21628echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21629echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21630 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21631 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21632 fi
21633 fi
5b674b9d 21634 else
5ff751d6 21635 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21636 fi
21637 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21638echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21639if test "${ac_cv_sys_largefile_source+set}" = set; then
21640 echo $ECHO_N "(cached) $ECHO_C" >&6
21641else
21642 while :; do
21643 ac_cv_sys_largefile_source=no
21644 cat >conftest.$ac_ext <<_ACEOF
21645/* confdefs.h. */
21646_ACEOF
21647cat confdefs.h >>conftest.$ac_ext
21648cat >>conftest.$ac_ext <<_ACEOF
21649/* end confdefs.h. */
21650#include <stdio.h>
21651int
21652main ()
21653{
21654return !fseeko;
21655 ;
21656 return 0;
21657}
21658_ACEOF
21659rm -f conftest.$ac_objext
21660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21661 (eval $ac_compile) 2>conftest.er1
21662 ac_status=$?
21663 grep -v '^ *+' conftest.er1 >conftest.err
21664 rm -f conftest.er1
21665 cat conftest.err >&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } &&
2b850ae1
RR
21668 { ac_try='test -z "$ac_c_werror_flag"
21669 || test ! -s conftest.err'
5294a27e
VZ
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21672 ac_status=$?
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; } &&
21675 { ac_try='test -s conftest.$ac_objext'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; }; then
21681 break
21682else
21683 echo "$as_me: failed program was:" >&5
21684sed 's/^/| /' conftest.$ac_ext >&5
21685
21686fi
21687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21688 cat >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#define _LARGEFILE_SOURCE 1
21695#include <stdio.h>
21696int
21697main ()
21698{
21699return !fseeko;
21700 ;
21701 return 0;
21702}
21703_ACEOF
21704rm -f conftest.$ac_objext
21705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21706 (eval $ac_compile) 2>conftest.er1
21707 ac_status=$?
21708 grep -v '^ *+' conftest.er1 >conftest.err
21709 rm -f conftest.er1
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } &&
2b850ae1
RR
21713 { ac_try='test -z "$ac_c_werror_flag"
21714 || test ! -s conftest.err'
5294a27e
VZ
21715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716 (eval $ac_try) 2>&5
21717 ac_status=$?
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); }; } &&
21720 { ac_try='test -s conftest.$ac_objext'
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; }; then
21726 ac_cv_sys_largefile_source=1; break
21727else
21728 echo "$as_me: failed program was:" >&5
21729sed 's/^/| /' conftest.$ac_ext >&5
21730
21731fi
21732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21733 break
21734done
21735fi
21736echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21737echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21738if test "$ac_cv_sys_largefile_source" != no; then
21739
21740cat >>confdefs.h <<_ACEOF
21741#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21742_ACEOF
21743
21744fi
21745rm -f conftest*
21746
21747# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21748# in glibc 2.1.3, but that breaks too many other things.
21749# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21750echo "$as_me:$LINENO: checking for fseeko" >&5
21751echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21752if test "${ac_cv_func_fseeko+set}" = set; then
21753 echo $ECHO_N "(cached) $ECHO_C" >&6
21754else
21755 cat >conftest.$ac_ext <<_ACEOF
21756/* confdefs.h. */
21757_ACEOF
21758cat confdefs.h >>conftest.$ac_ext
21759cat >>conftest.$ac_ext <<_ACEOF
21760/* end confdefs.h. */
21761#include <stdio.h>
21762int
21763main ()
21764{
21765return fseeko && fseeko (stdin, 0, 0);
21766 ;
21767 return 0;
21768}
21769_ACEOF
21770rm -f conftest.$ac_objext conftest$ac_exeext
21771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21772 (eval $ac_link) 2>conftest.er1
21773 ac_status=$?
21774 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } &&
2b850ae1
RR
21779 { ac_try='test -z "$ac_c_werror_flag"
21780 || test ! -s conftest.err'
5294a27e
VZ
21781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782 (eval $ac_try) 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; } &&
21786 { ac_try='test -s conftest$ac_exeext'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; }; then
21792 ac_cv_func_fseeko=yes
21793else
21794 echo "$as_me: failed program was:" >&5
21795sed 's/^/| /' conftest.$ac_ext >&5
21796
21797ac_cv_func_fseeko=no
21798fi
21799rm -f conftest.err conftest.$ac_objext \
21800 conftest$ac_exeext conftest.$ac_ext
21801fi
21802echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21803echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21804if test $ac_cv_func_fseeko = yes; then
21805
21806cat >>confdefs.h <<\_ACEOF
21807#define HAVE_FSEEKO 1
21808_ACEOF
21809
21810fi
21811
5b674b9d 21812 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21813 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21814 fi
a848cd7e
SC
21815fi
21816
21817echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21818echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21819if test "${ac_cv_c_bigendian+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21821else
21822 ac_cv_c_bigendian=unknown
21823# See if sys/param.h defines the BYTE_ORDER macro.
21824cat >conftest.$ac_ext <<_ACEOF
21825/* confdefs.h. */
21826_ACEOF
21827cat confdefs.h >>conftest.$ac_ext
21828cat >>conftest.$ac_ext <<_ACEOF
21829/* end confdefs.h. */
21830#include <sys/types.h>
21831#include <sys/param.h>
21832int
21833main ()
21834{
21835
21836#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21837 bogus endian macros
21838#endif
21839 ;
21840 return 0;
21841}
21842_ACEOF
21843rm -f conftest.$ac_objext
21844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21845 (eval $ac_compile) 2>conftest.er1
a848cd7e 21846 ac_status=$?
ac1cb8d3
VS
21847 grep -v '^ *+' conftest.er1 >conftest.err
21848 rm -f conftest.er1
21849 cat conftest.err >&5
a848cd7e
SC
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } &&
2b850ae1
RR
21852 { ac_try='test -z "$ac_c_werror_flag"
21853 || test ! -s conftest.err'
ac1cb8d3
VS
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21856 ac_status=$?
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; } &&
21859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861 (eval $ac_try) 2>&5
21862 ac_status=$?
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; }; then
21865 # It does; now see whether it defined to BIG_ENDIAN or not.
21866cat >conftest.$ac_ext <<_ACEOF
21867/* confdefs.h. */
21868_ACEOF
21869cat confdefs.h >>conftest.$ac_ext
21870cat >>conftest.$ac_ext <<_ACEOF
21871/* end confdefs.h. */
21872#include <sys/types.h>
21873#include <sys/param.h>
21874int
21875main ()
21876{
21877
21878#if BYTE_ORDER != BIG_ENDIAN
21879 not big endian
21880#endif
21881 ;
21882 return 0;
21883}
21884_ACEOF
21885rm -f conftest.$ac_objext
21886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21887 (eval $ac_compile) 2>conftest.er1
a848cd7e 21888 ac_status=$?
ac1cb8d3
VS
21889 grep -v '^ *+' conftest.er1 >conftest.err
21890 rm -f conftest.er1
21891 cat conftest.err >&5
a848cd7e
SC
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } &&
2b850ae1
RR
21894 { ac_try='test -z "$ac_c_werror_flag"
21895 || test ! -s conftest.err'
ac1cb8d3
VS
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; } &&
21901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21904 ac_status=$?
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; }; then
21907 ac_cv_c_bigendian=yes
21908else
21909 echo "$as_me: failed program was:" >&5
21910sed 's/^/| /' conftest.$ac_ext >&5
21911
21912ac_cv_c_bigendian=no
21913fi
ac1cb8d3 21914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21915else
21916 echo "$as_me: failed program was:" >&5
21917sed 's/^/| /' conftest.$ac_ext >&5
21918
21919fi
ac1cb8d3 21920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21921if test $ac_cv_c_bigendian = unknown; then
21922if test "$cross_compiling" = yes; then
21923 ac_cv_c_bigendian=unknown
21924else
21925 cat >conftest.$ac_ext <<_ACEOF
21926/* confdefs.h. */
21927_ACEOF
21928cat confdefs.h >>conftest.$ac_ext
21929cat >>conftest.$ac_ext <<_ACEOF
21930/* end confdefs.h. */
21931main () {
21932 /* Are we little or big endian? From Harbison&Steele. */
21933 union
21934 {
21935 long l;
21936 char c[sizeof (long)];
21937 } u;
21938 u.l = 1;
21939 exit (u.c[sizeof (long) - 1] == 1);
21940}
21941_ACEOF
21942rm -f conftest$ac_exeext
21943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21944 (eval $ac_link) 2>&5
21945 ac_status=$?
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21950 ac_status=$?
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21953 ac_cv_c_bigendian=no
21954else
21955 echo "$as_me: program exited with status $ac_status" >&5
21956echo "$as_me: failed program was:" >&5
21957sed 's/^/| /' conftest.$ac_ext >&5
21958
21959( exit $ac_status )
21960ac_cv_c_bigendian=yes
21961fi
ac1cb8d3 21962rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21963fi
21964fi
21965fi
21966echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21967echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21968if test $ac_cv_c_bigendian = unknown; then
21969 { 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
21970echo "$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;}
21971fi
21972if test $ac_cv_c_bigendian = yes; then
21973 cat >>confdefs.h <<\_ACEOF
21974#define WORDS_BIGENDIAN 1
21975_ACEOF
21976
21977fi
21978
21979
21980ac_ext=cc
21981ac_cpp='$CXXCPP $CPPFLAGS'
21982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21985echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21986echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21987if test -z "$CXXCPP"; then
21988 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990else
21991 # Double quotes because CXXCPP needs to be expanded
21992 for CXXCPP in "$CXX -E" "/lib/cpp"
21993 do
21994 ac_preproc_ok=false
21995for ac_cxx_preproc_warn_flag in '' yes
21996do
21997 # Use a header file that comes with gcc, so configuring glibc
21998 # with a fresh cross-compiler works.
21999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22000 # <limits.h> exists even on freestanding compilers.
22001 # On the NeXT, cc -E runs the code through the compiler's parser,
22002 # not just through cpp. "Syntax error" is here to catch this case.
22003 cat >conftest.$ac_ext <<_ACEOF
22004/* confdefs.h. */
22005_ACEOF
22006cat confdefs.h >>conftest.$ac_ext
22007cat >>conftest.$ac_ext <<_ACEOF
22008/* end confdefs.h. */
22009#ifdef __STDC__
22010# include <limits.h>
22011#else
22012# include <assert.h>
22013#endif
ac1cb8d3 22014 Syntax error
a848cd7e
SC
22015_ACEOF
22016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22018 ac_status=$?
22019 grep -v '^ *+' conftest.er1 >conftest.err
22020 rm -f conftest.er1
22021 cat conftest.err >&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } >/dev/null; then
22024 if test -s conftest.err; then
22025 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22026 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22027 else
22028 ac_cpp_err=
22029 fi
22030else
22031 ac_cpp_err=yes
22032fi
22033if test -z "$ac_cpp_err"; then
22034 :
22035else
22036 echo "$as_me: failed program was:" >&5
22037sed 's/^/| /' conftest.$ac_ext >&5
22038
22039 # Broken: fails on valid input.
22040continue
22041fi
22042rm -f conftest.err conftest.$ac_ext
22043
22044 # OK, works on sane cases. Now check whether non-existent headers
22045 # can be detected and how.
22046 cat >conftest.$ac_ext <<_ACEOF
22047/* confdefs.h. */
22048_ACEOF
22049cat confdefs.h >>conftest.$ac_ext
22050cat >>conftest.$ac_ext <<_ACEOF
22051/* end confdefs.h. */
22052#include <ac_nonexistent.h>
22053_ACEOF
22054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22056 ac_status=$?
22057 grep -v '^ *+' conftest.er1 >conftest.err
22058 rm -f conftest.er1
22059 cat conftest.err >&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } >/dev/null; then
22062 if test -s conftest.err; then
22063 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22064 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22065 else
22066 ac_cpp_err=
22067 fi
22068else
22069 ac_cpp_err=yes
22070fi
22071if test -z "$ac_cpp_err"; then
22072 # Broken: success on invalid input.
22073continue
22074else
22075 echo "$as_me: failed program was:" >&5
22076sed 's/^/| /' conftest.$ac_ext >&5
22077
22078 # Passes both tests.
22079ac_preproc_ok=:
22080break
22081fi
22082rm -f conftest.err conftest.$ac_ext
22083
22084done
22085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22086rm -f conftest.err conftest.$ac_ext
22087if $ac_preproc_ok; then
22088 break
22089fi
22090
22091 done
22092 ac_cv_prog_CXXCPP=$CXXCPP
22093
22094fi
22095 CXXCPP=$ac_cv_prog_CXXCPP
22096else
22097 ac_cv_prog_CXXCPP=$CXXCPP
22098fi
22099echo "$as_me:$LINENO: result: $CXXCPP" >&5
22100echo "${ECHO_T}$CXXCPP" >&6
22101ac_preproc_ok=false
22102for ac_cxx_preproc_warn_flag in '' yes
22103do
22104 # Use a header file that comes with gcc, so configuring glibc
22105 # with a fresh cross-compiler works.
22106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22107 # <limits.h> exists even on freestanding compilers.
22108 # On the NeXT, cc -E runs the code through the compiler's parser,
22109 # not just through cpp. "Syntax error" is here to catch this case.
22110 cat >conftest.$ac_ext <<_ACEOF
22111/* confdefs.h. */
22112_ACEOF
22113cat confdefs.h >>conftest.$ac_ext
22114cat >>conftest.$ac_ext <<_ACEOF
22115/* end confdefs.h. */
22116#ifdef __STDC__
22117# include <limits.h>
22118#else
22119# include <assert.h>
22120#endif
ac1cb8d3 22121 Syntax error
a848cd7e
SC
22122_ACEOF
22123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22125 ac_status=$?
22126 grep -v '^ *+' conftest.er1 >conftest.err
22127 rm -f conftest.er1
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } >/dev/null; then
22131 if test -s conftest.err; then
22132 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22133 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22134 else
22135 ac_cpp_err=
22136 fi
22137else
22138 ac_cpp_err=yes
22139fi
22140if test -z "$ac_cpp_err"; then
22141 :
22142else
22143 echo "$as_me: failed program was:" >&5
22144sed 's/^/| /' conftest.$ac_ext >&5
22145
22146 # Broken: fails on valid input.
22147continue
22148fi
22149rm -f conftest.err conftest.$ac_ext
22150
22151 # OK, works on sane cases. Now check whether non-existent headers
22152 # can be detected and how.
22153 cat >conftest.$ac_ext <<_ACEOF
22154/* confdefs.h. */
22155_ACEOF
22156cat confdefs.h >>conftest.$ac_ext
22157cat >>conftest.$ac_ext <<_ACEOF
22158/* end confdefs.h. */
22159#include <ac_nonexistent.h>
22160_ACEOF
22161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22163 ac_status=$?
22164 grep -v '^ *+' conftest.er1 >conftest.err
22165 rm -f conftest.er1
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } >/dev/null; then
22169 if test -s conftest.err; then
22170 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22171 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22172 else
22173 ac_cpp_err=
22174 fi
22175else
22176 ac_cpp_err=yes
22177fi
22178if test -z "$ac_cpp_err"; then
22179 # Broken: success on invalid input.
22180continue
22181else
22182 echo "$as_me: failed program was:" >&5
22183sed 's/^/| /' conftest.$ac_ext >&5
22184
22185 # Passes both tests.
22186ac_preproc_ok=:
22187break
22188fi
22189rm -f conftest.err conftest.$ac_ext
22190
22191done
22192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22193rm -f conftest.err conftest.$ac_ext
22194if $ac_preproc_ok; then
22195 :
22196else
22197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22198See \`config.log' for more details." >&5
22199echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22200See \`config.log' for more details." >&2;}
22201 { (exit 1); exit 1; }; }
22202fi
22203
22204ac_ext=cc
22205ac_cpp='$CXXCPP $CPPFLAGS'
22206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22209
22210
22211
22212
22213
22214 ac_ext=cc
22215ac_cpp='$CXXCPP $CPPFLAGS'
22216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22219
22220
22221
22222for ac_header in iostream
22223do
22224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22225if eval "test \"\${$as_ac_Header+set}\" = set"; then
22226 echo "$as_me:$LINENO: checking for $ac_header" >&5
22227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22228if eval "test \"\${$as_ac_Header+set}\" = set"; then
22229 echo $ECHO_N "(cached) $ECHO_C" >&6
22230fi
22231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22233else
22234 # Is the header compilable?
22235echo "$as_me:$LINENO: checking $ac_header usability" >&5
22236echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22237cat >conftest.$ac_ext <<_ACEOF
22238/* confdefs.h. */
22239_ACEOF
22240cat confdefs.h >>conftest.$ac_ext
22241cat >>conftest.$ac_ext <<_ACEOF
22242/* end confdefs.h. */
22243$ac_includes_default
22244#include <$ac_header>
22245_ACEOF
22246rm -f conftest.$ac_objext
22247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22248 (eval $ac_compile) 2>conftest.er1
a848cd7e 22249 ac_status=$?
ac1cb8d3
VS
22250 grep -v '^ *+' conftest.er1 >conftest.err
22251 rm -f conftest.er1
22252 cat conftest.err >&5
a848cd7e
SC
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } &&
2b850ae1
RR
22255 { ac_try='test -z "$ac_cxx_werror_flag"
22256 || test ! -s conftest.err'
ac1cb8d3
VS
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22259 ac_status=$?
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; } &&
22262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22268 ac_header_compiler=yes
22269else
22270 echo "$as_me: failed program was:" >&5
22271sed 's/^/| /' conftest.$ac_ext >&5
22272
22273ac_header_compiler=no
22274fi
ac1cb8d3 22275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22276echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22277echo "${ECHO_T}$ac_header_compiler" >&6
22278
22279# Is the header present?
22280echo "$as_me:$LINENO: checking $ac_header presence" >&5
22281echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22282cat >conftest.$ac_ext <<_ACEOF
22283/* confdefs.h. */
22284_ACEOF
22285cat confdefs.h >>conftest.$ac_ext
22286cat >>conftest.$ac_ext <<_ACEOF
22287/* end confdefs.h. */
22288#include <$ac_header>
22289_ACEOF
22290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22292 ac_status=$?
22293 grep -v '^ *+' conftest.er1 >conftest.err
22294 rm -f conftest.er1
22295 cat conftest.err >&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } >/dev/null; then
22298 if test -s conftest.err; then
22299 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22300 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22301 else
22302 ac_cpp_err=
22303 fi
22304else
22305 ac_cpp_err=yes
22306fi
22307if test -z "$ac_cpp_err"; then
22308 ac_header_preproc=yes
22309else
22310 echo "$as_me: failed program was:" >&5
22311sed 's/^/| /' conftest.$ac_ext >&5
22312
22313 ac_header_preproc=no
22314fi
22315rm -f conftest.err conftest.$ac_ext
22316echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22317echo "${ECHO_T}$ac_header_preproc" >&6
22318
22319# So? What about this header?
ac1cb8d3
VS
22320case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22321 yes:no: )
a848cd7e
SC
22322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22323echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22325echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22326 ac_header_preproc=yes
a848cd7e 22327 ;;
ac1cb8d3 22328 no:yes:* )
a848cd7e
SC
22329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22330echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22332echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22334echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22336echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22340echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22341 (
22342 cat <<\_ASBOX
ac1cb8d3
VS
22343## ----------------------------------------- ##
22344## Report this to wx-dev@lists.wxwidgets.org ##
22345## ----------------------------------------- ##
a848cd7e
SC
22346_ASBOX
22347 ) |
22348 sed "s/^/$as_me: WARNING: /" >&2
22349 ;;
22350esac
22351echo "$as_me:$LINENO: checking for $ac_header" >&5
22352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22353if eval "test \"\${$as_ac_Header+set}\" = set"; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22355else
ac1cb8d3 22356 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22357fi
22358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22360
22361fi
22362if test `eval echo '${'$as_ac_Header'}'` = yes; then
22363 cat >>confdefs.h <<_ACEOF
22364#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22365_ACEOF
22366
22367fi
22368
22369done
22370
22371
22372 if test "$ac_cv_header_iostream" = "yes" ; then
22373 :
22374 else
22375 cat >>confdefs.h <<\_ACEOF
22376#define wxUSE_IOSTREAMH 1
22377_ACEOF
22378
22379 fi
22380
22381 ac_ext=c
22382ac_cpp='$CPP $CPPFLAGS'
22383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22385ac_compiler_gnu=$ac_cv_c_compiler_gnu
22386
22387
22388
22389
22390 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22391echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22392if test "${wx_cv_cpp_bool+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22394else
22395
22396
22397
22398 ac_ext=cc
22399ac_cpp='$CXXCPP $CPPFLAGS'
22400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22403
22404
22405 cat >conftest.$ac_ext <<_ACEOF
22406/* confdefs.h. */
22407_ACEOF
22408cat confdefs.h >>conftest.$ac_ext
22409cat >>conftest.$ac_ext <<_ACEOF
22410/* end confdefs.h. */
22411
22412
22413int
22414main ()
22415{
22416
22417 bool b = true;
22418
22419 return 0;
22420
22421 ;
22422 return 0;
22423}
22424_ACEOF
22425rm -f conftest.$ac_objext
22426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22427 (eval $ac_compile) 2>conftest.er1
a848cd7e 22428 ac_status=$?
ac1cb8d3
VS
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
a848cd7e
SC
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } &&
2b850ae1
RR
22434 { ac_try='test -z "$ac_cxx_werror_flag"
22435 || test ! -s conftest.err'
ac1cb8d3
VS
22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437 (eval $ac_try) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; } &&
22441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }; }; then
22447
22448 wx_cv_cpp_bool=yes
22449
22450else
22451 echo "$as_me: failed program was:" >&5
22452sed 's/^/| /' conftest.$ac_ext >&5
22453
22454
22455 wx_cv_cpp_bool=no
22456
22457
22458fi
ac1cb8d3 22459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22460
22461 ac_ext=c
22462ac_cpp='$CPP $CPPFLAGS'
22463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22465ac_compiler_gnu=$ac_cv_c_compiler_gnu
22466
22467
22468fi
22469echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22470echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22471
22472 if test "$wx_cv_cpp_bool" = "yes"; then
22473 cat >>confdefs.h <<\_ACEOF
22474#define HAVE_BOOL 1
22475_ACEOF
22476
22477 fi
22478
22479
22480
22481 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22482echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22483if test "${wx_cv_explicit+set}" = set; then
22484 echo $ECHO_N "(cached) $ECHO_C" >&6
22485else
22486
22487
22488
22489 ac_ext=cc
22490ac_cpp='$CXXCPP $CPPFLAGS'
22491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22494
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
22503 class Foo { public: explicit Foo(int) {} };
22504
22505int
22506main ()
22507{
22508
22509 return 0;
22510
22511 ;
22512 return 0;
22513}
22514_ACEOF
22515rm -f conftest.$ac_objext
22516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22517 (eval $ac_compile) 2>conftest.er1
a848cd7e 22518 ac_status=$?
ac1cb8d3
VS
22519 grep -v '^ *+' conftest.er1 >conftest.err
22520 rm -f conftest.er1
22521 cat conftest.err >&5
a848cd7e
SC
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } &&
2b850ae1
RR
22524 { ac_try='test -z "$ac_cxx_werror_flag"
22525 || test ! -s conftest.err'
ac1cb8d3
VS
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; } &&
22531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; }; then
22537
22538 cat >conftest.$ac_ext <<_ACEOF
22539/* confdefs.h. */
22540_ACEOF
22541cat confdefs.h >>conftest.$ac_ext
22542cat >>conftest.$ac_ext <<_ACEOF
22543/* end confdefs.h. */
22544
22545 class Foo { public: explicit Foo(int) {} };
22546 static void TakeFoo(const Foo& foo) { }
22547
22548int
22549main ()
22550{
22551
22552 TakeFoo(17);
22553 return 0;
22554
22555 ;
22556 return 0;
22557}
22558_ACEOF
22559rm -f conftest.$ac_objext
22560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22561 (eval $ac_compile) 2>conftest.er1
a848cd7e 22562 ac_status=$?
ac1cb8d3
VS
22563 grep -v '^ *+' conftest.er1 >conftest.err
22564 rm -f conftest.er1
22565 cat conftest.err >&5
a848cd7e
SC
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } &&
2b850ae1
RR
22568 { ac_try='test -z "$ac_cxx_werror_flag"
22569 || test ! -s conftest.err'
ac1cb8d3
VS
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; } &&
22575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577 (eval $ac_try) 2>&5
22578 ac_status=$?
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); }; }; then
22581 wx_cv_explicit=no
22582else
22583 echo "$as_me: failed program was:" >&5
22584sed 's/^/| /' conftest.$ac_ext >&5
22585
22586wx_cv_explicit=yes
22587
22588fi
ac1cb8d3 22589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22590
22591else
22592 echo "$as_me: failed program was:" >&5
22593sed 's/^/| /' conftest.$ac_ext >&5
22594
22595wx_cv_explicit=no
22596
22597fi
ac1cb8d3 22598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22599
22600 ac_ext=c
22601ac_cpp='$CPP $CPPFLAGS'
22602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22604ac_compiler_gnu=$ac_cv_c_compiler_gnu
22605
22606
22607fi
22608echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22609echo "${ECHO_T}$wx_cv_explicit" >&6
22610
22611 if test "$wx_cv_explicit" = "yes"; then
22612 cat >>confdefs.h <<\_ACEOF
22613#define HAVE_EXPLICIT 1
22614_ACEOF
22615
22616 fi
22617
22618
22619echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22620echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22621if test "${ac_cv_cxx_const_cast+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22623else
22624
22625
22626 ac_ext=cc
22627ac_cpp='$CXXCPP $CPPFLAGS'
22628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22631
22632 cat >conftest.$ac_ext <<_ACEOF
22633/* confdefs.h. */
22634_ACEOF
22635cat confdefs.h >>conftest.$ac_ext
22636cat >>conftest.$ac_ext <<_ACEOF
22637/* end confdefs.h. */
22638
22639int
22640main ()
22641{
22642int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22643 ;
22644 return 0;
22645}
22646_ACEOF
22647rm -f conftest.$ac_objext
22648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22649 (eval $ac_compile) 2>conftest.er1
a848cd7e 22650 ac_status=$?
ac1cb8d3
VS
22651 grep -v '^ *+' conftest.er1 >conftest.err
22652 rm -f conftest.er1
22653 cat conftest.err >&5
a848cd7e
SC
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } &&
2b850ae1
RR
22656 { ac_try='test -z "$ac_cxx_werror_flag"
22657 || test ! -s conftest.err'
ac1cb8d3
VS
22658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659 (eval $ac_try) 2>&5
22660 ac_status=$?
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); }; } &&
22663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22666 ac_status=$?
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; }; then
22669 ac_cv_cxx_const_cast=yes
22670else
22671 echo "$as_me: failed program was:" >&5
22672sed 's/^/| /' conftest.$ac_ext >&5
22673
22674ac_cv_cxx_const_cast=no
22675fi
ac1cb8d3 22676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22677 ac_ext=c
22678ac_cpp='$CPP $CPPFLAGS'
22679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22681ac_compiler_gnu=$ac_cv_c_compiler_gnu
22682
22683
22684fi
22685echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22686echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22687if test "$ac_cv_cxx_const_cast" = yes; then
22688
22689cat >>confdefs.h <<\_ACEOF
22690#define HAVE_CONST_CAST
22691_ACEOF
22692
22693fi
22694
7714864e
RL
22695echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22696echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22697if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22699else
22700
22701
22702 ac_ext=cc
22703ac_cpp='$CXXCPP $CPPFLAGS'
22704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22707
22708 cat >conftest.$ac_ext <<_ACEOF
22709/* confdefs.h. */
22710_ACEOF
22711cat confdefs.h >>conftest.$ac_ext
22712cat >>conftest.$ac_ext <<_ACEOF
22713/* end confdefs.h. */
22714#include <typeinfo>
22715class Base { public : Base () {} virtual void f () = 0;};
22716class Derived : public Base { public : Derived () {} virtual void f () {} };
22717class Unrelated { public : Unrelated () {} };
22718int g (Unrelated&) { return 0; }
22719int
22720main ()
22721{
22722
22723Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22724 ;
22725 return 0;
22726}
22727_ACEOF
22728rm -f conftest.$ac_objext
22729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22730 (eval $ac_compile) 2>conftest.er1
22731 ac_status=$?
22732 grep -v '^ *+' conftest.er1 >conftest.err
22733 rm -f conftest.er1
22734 cat conftest.err >&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } &&
2b850ae1
RR
22737 { ac_try='test -z "$ac_cxx_werror_flag"
22738 || test ! -s conftest.err'
7714864e
RL
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22741 ac_status=$?
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; } &&
22744 { ac_try='test -s conftest.$ac_objext'
22745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22747 ac_status=$?
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); }; }; then
22750 ac_cv_cxx_reinterpret_cast=yes
22751else
22752 echo "$as_me: failed program was:" >&5
22753sed 's/^/| /' conftest.$ac_ext >&5
22754
22755ac_cv_cxx_reinterpret_cast=no
22756fi
22757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22758 ac_ext=c
22759ac_cpp='$CPP $CPPFLAGS'
22760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22762ac_compiler_gnu=$ac_cv_c_compiler_gnu
22763
22764
22765fi
22766echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22767echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22768if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22769
22770cat >>confdefs.h <<\_ACEOF
22771#define HAVE_REINTERPRET_CAST
22772_ACEOF
22773
22774fi
22775
a848cd7e
SC
22776echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22777echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22778if test "${ac_cv_cxx_static_cast+set}" = set; then
22779 echo $ECHO_N "(cached) $ECHO_C" >&6
22780else
22781
22782
22783 ac_ext=cc
22784ac_cpp='$CXXCPP $CPPFLAGS'
22785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22788
22789 cat >conftest.$ac_ext <<_ACEOF
22790/* confdefs.h. */
22791_ACEOF
22792cat confdefs.h >>conftest.$ac_ext
22793cat >>conftest.$ac_ext <<_ACEOF
22794/* end confdefs.h. */
22795#include <typeinfo>
22796class Base { public : Base () {} virtual void f () = 0; };
22797class Derived : public Base { public : Derived () {} virtual void f () {} };
22798int g (Derived&) { return 0; }
22799int
22800main ()
22801{
22802
22803Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22804 ;
22805 return 0;
22806}
22807_ACEOF
22808rm -f conftest.$ac_objext
22809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22810 (eval $ac_compile) 2>conftest.er1
a848cd7e 22811 ac_status=$?
ac1cb8d3
VS
22812 grep -v '^ *+' conftest.er1 >conftest.err
22813 rm -f conftest.er1
22814 cat conftest.err >&5
a848cd7e
SC
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } &&
2b850ae1
RR
22817 { ac_try='test -z "$ac_cxx_werror_flag"
22818 || test ! -s conftest.err'
ac1cb8d3
VS
22819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820 (eval $ac_try) 2>&5
22821 ac_status=$?
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); }; } &&
22824 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826 (eval $ac_try) 2>&5
22827 ac_status=$?
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; }; then
22830 ac_cv_cxx_static_cast=yes
22831else
22832 echo "$as_me: failed program was:" >&5
22833sed 's/^/| /' conftest.$ac_ext >&5
22834
22835ac_cv_cxx_static_cast=no
22836fi
ac1cb8d3 22837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22838 ac_ext=c
22839ac_cpp='$CPP $CPPFLAGS'
22840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22842ac_compiler_gnu=$ac_cv_c_compiler_gnu
22843
22844
22845fi
22846echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22847echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22848if test "$ac_cv_cxx_static_cast" = yes; then
22849
22850cat >>confdefs.h <<\_ACEOF
22851#define HAVE_STATIC_CAST
22852_ACEOF
22853
22854fi
22855
22856
3c28b7cb 22857if test "x$SUNCXX" = xyes; then
c92ad099 22858 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22859fi
22860
9122d155 22861if test "x$SUNCC" = xyes; then
c92ad099 22862 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22863fi
22864
0ad5d837 22865if test "x$SGICC" = "xyes"; then
c92ad099 22866 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22867fi
22868if test "x$SGICXX" = "xyes"; then
c92ad099 22869 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22870fi
22871
2eef8513 22872if test "x$HPCC" = "xyes"; then
c92ad099 22873 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22874fi
22875if test "x$HPCXX" = "xyes"; then
c92ad099 22876 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22877fi
22878
22879if test "x$COMPAQCXX" = "xyes"; then
22880 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22881fi
22882
f56c22b4 22883if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22884 ac_ext=cc
22885ac_cpp='$CXXCPP $CPPFLAGS'
22886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22889
22890
f56c22b4
MW
22891 if test "$wxUSE_UNICODE" = "yes"; then
22892 std_string="std::wstring"
22893 char_type="wchar_t"
22894 else
22895 std_string="std::string"
22896 char_type="char"
22897 fi
22898
22899 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22900echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22901 cat >conftest.$ac_ext <<_ACEOF
22902/* confdefs.h. */
22903_ACEOF
22904cat confdefs.h >>conftest.$ac_ext
22905cat >>conftest.$ac_ext <<_ACEOF
22906/* end confdefs.h. */
22907#include <string>
a848cd7e
SC
22908int
22909main ()
22910{
f56c22b4 22911$std_string foo;
a848cd7e
SC
22912 ;
22913 return 0;
22914}
22915_ACEOF
22916rm -f conftest.$ac_objext
22917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22918 (eval $ac_compile) 2>conftest.er1
a848cd7e 22919 ac_status=$?
ac1cb8d3
VS
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
a848cd7e
SC
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } &&
2b850ae1
RR
22925 { ac_try='test -z "$ac_cxx_werror_flag"
22926 || test ! -s conftest.err'
ac1cb8d3
VS
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22929 ac_status=$?
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; } &&
22932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22935 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; }; then
22938 echo "$as_me:$LINENO: result: yes" >&5
22939echo "${ECHO_T}yes" >&6
0a08f02a
MB
22940 cat >>confdefs.h <<\_ACEOF
22941#define HAVE_STD_WSTRING 1
22942_ACEOF
22943
a848cd7e
SC
22944else
22945 echo "$as_me: failed program was:" >&5
22946sed 's/^/| /' conftest.$ac_ext >&5
22947
22948echo "$as_me:$LINENO: result: no" >&5
22949echo "${ECHO_T}no" >&6
f56c22b4
MW
22950 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22951echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22952 cat >conftest.$ac_ext <<_ACEOF
22953/* confdefs.h. */
22954_ACEOF
22955cat confdefs.h >>conftest.$ac_ext
22956cat >>conftest.$ac_ext <<_ACEOF
22957/* end confdefs.h. */
22958
22959 #ifdef HAVE_WCHAR_H
22960 # ifdef __CYGWIN__
22961 # include <stddef.h>
22962 # endif
22963 # include <wchar.h>
22964 #endif
22965 #ifdef HAVE_STDLIB_H
22966 # include <stdlib.h>
22967 #endif
22968 #include <stdio.h>
22969 #include <string>
22970
22971int
22972main ()
22973{
f56c22b4
MW
22974std::basic_string<$char_type> foo;
22975 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22976 ;
22977 return 0;
22978}
22979_ACEOF
22980rm -f conftest.$ac_objext
22981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22982 (eval $ac_compile) 2>conftest.er1
22983 ac_status=$?
22984 grep -v '^ *+' conftest.er1 >conftest.err
22985 rm -f conftest.er1
22986 cat conftest.err >&5
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); } &&
2b850ae1
RR
22989 { ac_try='test -z "$ac_cxx_werror_flag"
22990 || test ! -s conftest.err'
0a08f02a
MB
22991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992 (eval $ac_try) 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; } &&
22996 { ac_try='test -s conftest.$ac_objext'
22997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22998 (eval $ac_try) 2>&5
22999 ac_status=$?
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); }; }; then
23002 echo "$as_me:$LINENO: result: yes" >&5
23003echo "${ECHO_T}yes" >&6
23004else
23005 echo "$as_me: failed program was:" >&5
23006sed 's/^/| /' conftest.$ac_ext >&5
23007
23008echo "$as_me:$LINENO: result: no" >&5
23009echo "${ECHO_T}no" >&6
f56c22b4 23010 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23011 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23012echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23013 { (exit 1); exit 1; }; }
23014 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23015 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23016echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23017 { (exit 1); exit 1; }; }
f56c22b4
MW
23018 else
23019 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23020echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23021 wxUSE_STD_STRING=no
23022 fi
23023
0a08f02a 23024
a848cd7e 23025fi
ac1cb8d3 23026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23027
0a08f02a
MB
23028fi
23029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23030
23031 ac_ext=c
23032ac_cpp='$CPP $CPPFLAGS'
23033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
23035ac_compiler_gnu=$ac_cv_c_compiler_gnu
23036
23037fi
23038
23039if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23040 ac_ext=cc
23041ac_cpp='$CXXCPP $CPPFLAGS'
23042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23045
23046
23047 echo "$as_me:$LINENO: checking for std::istream" >&5
23048echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23049if test "${ac_cv_type_std__istream+set}" = set; then
23050 echo $ECHO_N "(cached) $ECHO_C" >&6
23051else
23052 cat >conftest.$ac_ext <<_ACEOF
23053/* confdefs.h. */
23054_ACEOF
23055cat confdefs.h >>conftest.$ac_ext
23056cat >>conftest.$ac_ext <<_ACEOF
23057/* end confdefs.h. */
23058#include <iostream>
23059
23060int
23061main ()
23062{
23063if ((std::istream *) 0)
23064 return 0;
23065if (sizeof (std::istream))
23066 return 0;
23067 ;
23068 return 0;
23069}
23070_ACEOF
23071rm -f conftest.$ac_objext
23072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23073 (eval $ac_compile) 2>conftest.er1
23074 ac_status=$?
23075 grep -v '^ *+' conftest.er1 >conftest.err
23076 rm -f conftest.er1
23077 cat conftest.err >&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } &&
2b850ae1
RR
23080 { ac_try='test -z "$ac_cxx_werror_flag"
23081 || test ! -s conftest.err'
f56c22b4
MW
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23084 ac_status=$?
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; } &&
23087 { ac_try='test -s conftest.$ac_objext'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23090 ac_status=$?
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; }; then
23093 ac_cv_type_std__istream=yes
23094else
23095 echo "$as_me: failed program was:" >&5
23096sed 's/^/| /' conftest.$ac_ext >&5
23097
23098ac_cv_type_std__istream=no
23099fi
23100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23101fi
23102echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23103echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23104if test $ac_cv_type_std__istream = yes; then
23105
23106cat >>confdefs.h <<_ACEOF
23107#define HAVE_STD__ISTREAM 1
23108_ACEOF
23109
23110
23111else
23112 wxUSE_STD_IOSTREAM=no
23113fi
23114echo "$as_me:$LINENO: checking for std::ostream" >&5
23115echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23116if test "${ac_cv_type_std__ostream+set}" = set; then
23117 echo $ECHO_N "(cached) $ECHO_C" >&6
23118else
23119 cat >conftest.$ac_ext <<_ACEOF
23120/* confdefs.h. */
23121_ACEOF
23122cat confdefs.h >>conftest.$ac_ext
23123cat >>conftest.$ac_ext <<_ACEOF
23124/* end confdefs.h. */
23125#include <iostream>
23126
23127int
23128main ()
23129{
23130if ((std::ostream *) 0)
23131 return 0;
23132if (sizeof (std::ostream))
23133 return 0;
23134 ;
23135 return 0;
23136}
23137_ACEOF
23138rm -f conftest.$ac_objext
23139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23140 (eval $ac_compile) 2>conftest.er1
23141 ac_status=$?
23142 grep -v '^ *+' conftest.er1 >conftest.err
23143 rm -f conftest.er1
23144 cat conftest.err >&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } &&
2b850ae1
RR
23147 { ac_try='test -z "$ac_cxx_werror_flag"
23148 || test ! -s conftest.err'
f56c22b4
MW
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; } &&
23154 { ac_try='test -s conftest.$ac_objext'
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; }; then
23160 ac_cv_type_std__ostream=yes
23161else
23162 echo "$as_me: failed program was:" >&5
23163sed 's/^/| /' conftest.$ac_ext >&5
23164
23165ac_cv_type_std__ostream=no
23166fi
23167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23168fi
23169echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23170echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23171if test $ac_cv_type_std__ostream = yes; then
23172
23173cat >>confdefs.h <<_ACEOF
23174#define HAVE_STD__OSTREAM 1
23175_ACEOF
23176
23177
23178else
23179 wxUSE_STD_IOSTREAM=no
23180fi
23181
23182
23183 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23184 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23185 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23186echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23187 { (exit 1); exit 1; }; }
23188 else
23189 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23190echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23191 fi
f56c22b4
MW
23192 fi
23193
23194 ac_ext=c
23195ac_cpp='$CPP $CPPFLAGS'
23196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
23198ac_compiler_gnu=$ac_cv_c_compiler_gnu
23199
23200fi
23201
23202if test "$wxUSE_STL" = "yes"; then
23203 ac_ext=cc
23204ac_cpp='$CXXCPP $CPPFLAGS'
23205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23208
23209
23210 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23211echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23212 cat >conftest.$ac_ext <<_ACEOF
23213/* confdefs.h. */
23214_ACEOF
23215cat confdefs.h >>conftest.$ac_ext
23216cat >>conftest.$ac_ext <<_ACEOF
23217/* end confdefs.h. */
23218#include <string>
0a08f02a
MB
23219 #include <functional>
23220 #include <algorithm>
23221 #include <vector>
23222 #include <list>
a848cd7e
SC
23223int
23224main ()
23225{
0a08f02a
MB
23226std::vector<int> moo;
23227 std::list<int> foo;
23228 std::vector<int>::iterator it =
23229 std::find_if(moo.begin(), moo.end(),
23230 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23231 ;
23232 return 0;
23233}
23234_ACEOF
23235rm -f conftest.$ac_objext
23236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23237 (eval $ac_compile) 2>conftest.er1
a848cd7e 23238 ac_status=$?
ac1cb8d3
VS
23239 grep -v '^ *+' conftest.er1 >conftest.err
23240 rm -f conftest.er1
23241 cat conftest.err >&5
a848cd7e
SC
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); } &&
2b850ae1
RR
23244 { ac_try='test -z "$ac_cxx_werror_flag"
23245 || test ! -s conftest.err'
ac1cb8d3
VS
23246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247 (eval $ac_try) 2>&5
23248 ac_status=$?
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); }; } &&
23251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23253 (eval $ac_try) 2>&5
23254 ac_status=$?
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); }; }; then
23257 echo "$as_me:$LINENO: result: yes" >&5
23258echo "${ECHO_T}yes" >&6
a848cd7e
SC
23259else
23260 echo "$as_me: failed program was:" >&5
23261sed 's/^/| /' conftest.$ac_ext >&5
23262
23263echo "$as_me:$LINENO: result: no" >&5
23264echo "${ECHO_T}no" >&6
0a08f02a
MB
23265 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23266echo "$as_me: error: Basic STL functionality missing" >&2;}
23267 { (exit 1); exit 1; }; }
a848cd7e 23268fi
ac1cb8d3 23269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23270
23271 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23272echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23273 cat >conftest.$ac_ext <<_ACEOF
23274/* confdefs.h. */
23275_ACEOF
23276cat confdefs.h >>conftest.$ac_ext
23277cat >>conftest.$ac_ext <<_ACEOF
23278/* end confdefs.h. */
23279#include <string>
23280int
23281main ()
23282{
23283std::string foo, bar;
23284 foo.compare(bar);
23285 foo.compare(1, 1, bar);
23286 foo.compare(1, 1, bar, 1, 1);
23287 foo.compare("");
23288 foo.compare(1, 1, "");
23289 foo.compare(1, 1, "", 2);
23290 ;
23291 return 0;
23292}
23293_ACEOF
23294rm -f conftest.$ac_objext
23295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23296 (eval $ac_compile) 2>conftest.er1
a848cd7e 23297 ac_status=$?
ac1cb8d3
VS
23298 grep -v '^ *+' conftest.er1 >conftest.err
23299 rm -f conftest.er1
23300 cat conftest.err >&5
a848cd7e
SC
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); } &&
2b850ae1
RR
23303 { ac_try='test -z "$ac_cxx_werror_flag"
23304 || test ! -s conftest.err'
ac1cb8d3
VS
23305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306 (eval $ac_try) 2>&5
23307 ac_status=$?
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); }; } &&
23310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312 (eval $ac_try) 2>&5
23313 ac_status=$?
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); }; }; then
23316 echo "$as_me:$LINENO: result: yes" >&5
23317echo "${ECHO_T}yes" >&6
23318 cat >>confdefs.h <<\_ACEOF
23319#define HAVE_STD_STRING_COMPARE 1
23320_ACEOF
23321
23322else
23323 echo "$as_me: failed program was:" >&5
23324sed 's/^/| /' conftest.$ac_ext >&5
23325
23326echo "$as_me:$LINENO: result: no" >&5
23327echo "${ECHO_T}no" >&6
23328fi
ac1cb8d3 23329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23330
23331 if test "${ac_cv_header_hash_map+set}" = set; then
23332 echo "$as_me:$LINENO: checking for hash_map" >&5
23333echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23334if test "${ac_cv_header_hash_map+set}" = set; then
23335 echo $ECHO_N "(cached) $ECHO_C" >&6
23336fi
23337echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23338echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23339else
23340 # Is the header compilable?
23341echo "$as_me:$LINENO: checking hash_map usability" >&5
23342echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23343cat >conftest.$ac_ext <<_ACEOF
23344/* confdefs.h. */
23345_ACEOF
23346cat confdefs.h >>conftest.$ac_ext
23347cat >>conftest.$ac_ext <<_ACEOF
23348/* end confdefs.h. */
23349$ac_includes_default
23350#include <hash_map>
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); } &&
2b850ae1
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 ac_header_compiler=yes
23375else
23376 echo "$as_me: failed program was:" >&5
23377sed 's/^/| /' conftest.$ac_ext >&5
23378
23379ac_header_compiler=no
23380fi
ac1cb8d3 23381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23382echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23383echo "${ECHO_T}$ac_header_compiler" >&6
23384
23385# Is the header present?
23386echo "$as_me:$LINENO: checking hash_map presence" >&5
23387echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23388cat >conftest.$ac_ext <<_ACEOF
23389/* confdefs.h. */
23390_ACEOF
23391cat confdefs.h >>conftest.$ac_ext
23392cat >>conftest.$ac_ext <<_ACEOF
23393/* end confdefs.h. */
23394#include <hash_map>
23395_ACEOF
23396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23398 ac_status=$?
23399 grep -v '^ *+' conftest.er1 >conftest.err
23400 rm -f conftest.er1
23401 cat conftest.err >&5
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } >/dev/null; then
23404 if test -s conftest.err; then
23405 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23407 else
23408 ac_cpp_err=
23409 fi
23410else
23411 ac_cpp_err=yes
23412fi
23413if test -z "$ac_cpp_err"; then
23414 ac_header_preproc=yes
23415else
23416 echo "$as_me: failed program was:" >&5
23417sed 's/^/| /' conftest.$ac_ext >&5
23418
23419 ac_header_preproc=no
23420fi
23421rm -f conftest.err conftest.$ac_ext
23422echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23423echo "${ECHO_T}$ac_header_preproc" >&6
23424
23425# So? What about this header?
ac1cb8d3
VS
23426case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23427 yes:no: )
bdcade0a
MB
23428 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23429echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23430 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23431echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23432 ac_header_preproc=yes
bdcade0a 23433 ;;
ac1cb8d3 23434 no:yes:* )
bdcade0a
MB
23435 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23436echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23437 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23438echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23439 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23440echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23441 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23442echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23443 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23444echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23445 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23446echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23447 (
23448 cat <<\_ASBOX
ac1cb8d3
VS
23449## ----------------------------------------- ##
23450## Report this to wx-dev@lists.wxwidgets.org ##
23451## ----------------------------------------- ##
bdcade0a
MB
23452_ASBOX
23453 ) |
23454 sed "s/^/$as_me: WARNING: /" >&2
23455 ;;
23456esac
23457echo "$as_me:$LINENO: checking for hash_map" >&5
23458echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23459if test "${ac_cv_header_hash_map+set}" = set; then
23460 echo $ECHO_N "(cached) $ECHO_C" >&6
23461else
23462 ac_cv_header_hash_map=$ac_header_preproc
23463fi
23464echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23465echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23466
23467fi
23468if test $ac_cv_header_hash_map = yes; then
23469 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23470echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23471 cat >conftest.$ac_ext <<_ACEOF
23472/* confdefs.h. */
23473_ACEOF
23474cat confdefs.h >>conftest.$ac_ext
23475cat >>conftest.$ac_ext <<_ACEOF
23476/* end confdefs.h. */
23477#include <hash_map>
23478 #include <hash_set>
23479int
23480main ()
23481{
23482std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23483 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23484 ;
23485 return 0;
23486}
23487_ACEOF
23488rm -f conftest.$ac_objext
23489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23490 (eval $ac_compile) 2>conftest.er1
bdcade0a 23491 ac_status=$?
ac1cb8d3
VS
23492 grep -v '^ *+' conftest.er1 >conftest.err
23493 rm -f conftest.er1
23494 cat conftest.err >&5
bdcade0a
MB
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); } &&
2b850ae1
RR
23497 { ac_try='test -z "$ac_cxx_werror_flag"
23498 || test ! -s conftest.err'
ac1cb8d3
VS
23499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500 (eval $ac_try) 2>&5
23501 ac_status=$?
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; } &&
23504 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; }; then
23510 echo "$as_me:$LINENO: result: yes" >&5
23511echo "${ECHO_T}yes" >&6
23512 cat >>confdefs.h <<\_ACEOF
23513#define HAVE_HASH_MAP 1
23514_ACEOF
23515
23516 cat >>confdefs.h <<\_ACEOF
23517#define HAVE_STD_HASH_MAP 1
23518_ACEOF
23519
23520else
23521 echo "$as_me: failed program was:" >&5
23522sed 's/^/| /' conftest.$ac_ext >&5
23523
23524echo "$as_me:$LINENO: result: no" >&5
23525echo "${ECHO_T}no" >&6
23526fi
ac1cb8d3 23527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23528
23529fi
23530
23531
23532
23533 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23534 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23535echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23536if test "${ac_cv_header_ext_hash_map+set}" = set; then
23537 echo $ECHO_N "(cached) $ECHO_C" >&6
23538fi
23539echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23540echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23541else
23542 # Is the header compilable?
23543echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23544echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23545cat >conftest.$ac_ext <<_ACEOF
23546/* confdefs.h. */
23547_ACEOF
23548cat confdefs.h >>conftest.$ac_ext
23549cat >>conftest.$ac_ext <<_ACEOF
23550/* end confdefs.h. */
23551$ac_includes_default
23552#include <ext/hash_map>
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); } &&
2b850ae1
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 ac_header_compiler=yes
23577else
23578 echo "$as_me: failed program was:" >&5
23579sed 's/^/| /' conftest.$ac_ext >&5
23580
23581ac_header_compiler=no
23582fi
ac1cb8d3 23583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23585echo "${ECHO_T}$ac_header_compiler" >&6
23586
23587# Is the header present?
23588echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23589echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23590cat >conftest.$ac_ext <<_ACEOF
23591/* confdefs.h. */
23592_ACEOF
23593cat confdefs.h >>conftest.$ac_ext
23594cat >>conftest.$ac_ext <<_ACEOF
23595/* end confdefs.h. */
23596#include <ext/hash_map>
23597_ACEOF
23598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23600 ac_status=$?
23601 grep -v '^ *+' conftest.er1 >conftest.err
23602 rm -f conftest.er1
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } >/dev/null; then
23606 if test -s conftest.err; then
23607 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23608 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23609 else
23610 ac_cpp_err=
23611 fi
23612else
23613 ac_cpp_err=yes
23614fi
23615if test -z "$ac_cpp_err"; then
23616 ac_header_preproc=yes
23617else
23618 echo "$as_me: failed program was:" >&5
23619sed 's/^/| /' conftest.$ac_ext >&5
23620
23621 ac_header_preproc=no
23622fi
23623rm -f conftest.err conftest.$ac_ext
23624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23625echo "${ECHO_T}$ac_header_preproc" >&6
23626
23627# So? What about this header?
ac1cb8d3
VS
23628case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23629 yes:no: )
bdcade0a
MB
23630 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23631echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23632 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23633echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23634 ac_header_preproc=yes
bdcade0a 23635 ;;
ac1cb8d3 23636 no:yes:* )
bdcade0a
MB
23637 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23638echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23639 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23640echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23641 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23642echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23643 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23644echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23645 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23646echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23647 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23648echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23649 (
23650 cat <<\_ASBOX
ac1cb8d3
VS
23651## ----------------------------------------- ##
23652## Report this to wx-dev@lists.wxwidgets.org ##
23653## ----------------------------------------- ##
bdcade0a
MB
23654_ASBOX
23655 ) |
23656 sed "s/^/$as_me: WARNING: /" >&2
23657 ;;
23658esac
23659echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23660echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23661if test "${ac_cv_header_ext_hash_map+set}" = set; then
23662 echo $ECHO_N "(cached) $ECHO_C" >&6
23663else
23664 ac_cv_header_ext_hash_map=$ac_header_preproc
23665fi
23666echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23667echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23668
23669fi
23670if test $ac_cv_header_ext_hash_map = yes; then
23671 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23672echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23673 cat >conftest.$ac_ext <<_ACEOF
23674/* confdefs.h. */
23675_ACEOF
23676cat confdefs.h >>conftest.$ac_ext
23677cat >>conftest.$ac_ext <<_ACEOF
23678/* end confdefs.h. */
23679#include <ext/hash_map>
23680 #include <ext/hash_set>
23681int
23682main ()
23683{
23684__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23685 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23686 ;
23687 return 0;
23688}
23689_ACEOF
23690rm -f conftest.$ac_objext
23691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23692 (eval $ac_compile) 2>conftest.er1
bdcade0a 23693 ac_status=$?
ac1cb8d3
VS
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
bdcade0a
MB
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } &&
2b850ae1
RR
23699 { ac_try='test -z "$ac_cxx_werror_flag"
23700 || test ! -s conftest.err'
ac1cb8d3
VS
23701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23702 (eval $ac_try) 2>&5
23703 ac_status=$?
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); }; } &&
23706 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23708 (eval $ac_try) 2>&5
23709 ac_status=$?
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); }; }; then
23712 echo "$as_me:$LINENO: result: yes" >&5
23713echo "${ECHO_T}yes" >&6
23714 cat >>confdefs.h <<\_ACEOF
23715#define HAVE_EXT_HASH_MAP 1
23716_ACEOF
23717
23718 cat >>confdefs.h <<\_ACEOF
23719#define HAVE_GNU_CXX_HASH_MAP 1
23720_ACEOF
23721
23722else
23723 echo "$as_me: failed program was:" >&5
23724sed 's/^/| /' conftest.$ac_ext >&5
23725
23726echo "$as_me:$LINENO: result: no" >&5
23727echo "${ECHO_T}no" >&6
23728fi
ac1cb8d3 23729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23730
23731fi
23732
23733
a848cd7e
SC
23734
23735 ac_ext=c
23736ac_cpp='$CPP $CPPFLAGS'
23737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23739ac_compiler_gnu=$ac_cv_c_compiler_gnu
23740
23741fi
23742
23743
23744SEARCH_INCLUDE="\
23745 /usr/local/include \
23746 \
23747 /usr/Motif-2.1/include \
23748 /usr/Motif-1.2/include \
23749 /usr/include/Motif1.2 \
a848cd7e
SC
23750 \
23751 /usr/dt/include \
23752 /usr/openwin/include \
23753 \
23754 /usr/include/Xm \
23755 \
23756 /usr/X11R6/include \
23757 /usr/X11R6.4/include \
23758 /usr/X11R5/include \
23759 /usr/X11R4/include \
23760 \
23761 /usr/include/X11R6 \
23762 /usr/include/X11R5 \
23763 /usr/include/X11R4 \
23764 \
23765 /usr/local/X11R6/include \
23766 /usr/local/X11R5/include \
23767 /usr/local/X11R4/include \
23768 \
23769 /usr/local/include/X11R6 \
23770 /usr/local/include/X11R5 \
23771 /usr/local/include/X11R4 \
23772 \
23773 /usr/X11/include \
23774 /usr/include/X11 \
23775 /usr/local/X11/include \
23776 /usr/local/include/X11 \
23777 \
a848cd7e 23778 /usr/XFree86/include/X11 \
e051b34e
MW
23779 /usr/pkg/include \
23780 \
a848cd7e
SC
23781 /usr/openwin/share/include"
23782
6f9cf1e6 23783echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23784echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23785
23786case "${host}" in
23787 *-*-irix6* )
23788 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23789 echo $ECHO_N "(cached) $ECHO_C" >&6
23790else
23791
c687b303
VZ
23792 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23793 for e in a so sl dylib dll.a; do
23794 libc="$d/libc.$e"
23795 if test -f $libc; then
23796 save_LIBS="$LIBS"
23797 LIBS="$libc"
23798 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23799int main() { return 0; }
23800_ACEOF
23801rm -f conftest.$ac_objext conftest$ac_exeext
23802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23803 (eval $ac_link) 2>conftest.er1
23804 ac_status=$?
23805 grep -v '^ *+' conftest.er1 >conftest.err
23806 rm -f conftest.er1
23807 cat conftest.err >&5
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } &&
2b850ae1
RR
23810 { ac_try='test -z "$ac_c_werror_flag"
23811 || test ! -s conftest.err'
0ad5d837
VZ
23812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813 (eval $ac_try) 2>&5
23814 ac_status=$?
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); }; } &&
23817 { ac_try='test -s conftest$ac_exeext'
23818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819 (eval $ac_try) 2>&5
23820 ac_status=$?
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); }; }; then
23823 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23824else
23825 echo "$as_me: failed program was:" >&5
23826sed 's/^/| /' conftest.$ac_ext >&5
23827
23828fi
23829rm -f conftest.err conftest.$ac_objext \
23830 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23831 LIBS="$save_LIBS"
23832 if test "x$wx_cv_std_libpath" != "x"; then
23833 break 2
23834 fi
23835 fi
23836 done
23837 done
23838 if test "x$wx_cv_std_libpath" = "x"; then
23839 wx_cv_std_libpath="lib"
0ad5d837 23840 fi
0ad5d837
VZ
23841
23842
23843fi
6f9cf1e6
MW
23844
23845 ;;
23846
23847 *-*-solaris2* )
23848 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23849 wx_cv_std_libpath="lib/64"
23850 else
23851 wx_cv_std_libpath="lib"
23852 fi
23853 ;;
23854
23855 *-*-linux* )
23856 if test "$ac_cv_sizeof_void_p" = 8 -a \
23857 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23858 wx_cv_std_libpath="lib64"
23859 else
23860 wx_cv_std_libpath="lib"
23861 fi
c687b303
VZ
23862 ;;
23863
23864 *)
23865 wx_cv_std_libpath="lib";
23866 ;;
23867esac
0ad5d837 23868
6f9cf1e6
MW
23869echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23870echo "${ECHO_T}$wx_cv_std_libpath" >&6
23871
23872SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23873
3eca31dc
MW
23874if test "$build" != "$host" -a "$GCC" = yes; then
23875 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23876 cross_root=`dirname $cross_root`
23877 cross_root=`dirname $cross_root`
23878
23879 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23880 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23881 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23882
23883 if test -z "$PKG_CONFIG_PATH"; then
23884 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23885 export PKG_CONFIG_PATH
23886 fi
23887
23888 if test -z "$x_includes" -o "$x_includes" = NONE; then
23889
23890ac_find_includes=
23891for ac_dir in $SEARCH_INCLUDE /usr/include;
23892 do
23893 if test -f "$ac_dir/X11/Intrinsic.h"; then
23894 ac_find_includes=$ac_dir
23895 break
23896 fi
23897 done
23898
23899 x_includes=$ac_find_includes
23900 fi
23901 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23902
0ad5d837
VZ
23903 ac_find_libraries=
23904 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23905 do
23906 for ac_extension in a so sl dylib dll.a; do
23907 if test -f "$ac_dir/libXt.$ac_extension"; then
23908 ac_find_libraries=$ac_dir
23909 break 2
23910 fi
23911 done
23912 done
23913
23914 x_libraries=$ac_find_libraries
23915 fi
23916 fi
23917fi
23918
a848cd7e
SC
23919
23920cat >confcache <<\_ACEOF
23921# This file is a shell script that caches the results of configure
23922# tests run on this system so they can be shared between configure
23923# scripts and configure runs, see configure's option --config-cache.
23924# It is not useful on other systems. If it contains results you don't
23925# want to keep, you may remove or edit it.
23926#
23927# config.status only pays attention to the cache file if you give it
23928# the --recheck option to rerun configure.
23929#
23930# `ac_cv_env_foo' variables (set or unset) will be overridden when
23931# loading this file, other *unset* `ac_cv_foo' will be assigned the
23932# following values.
23933
23934_ACEOF
23935
23936# The following way of writing the cache mishandles newlines in values,
23937# but we know of no workaround that is simple, portable, and efficient.
23938# So, don't put newlines in cache variables' values.
23939# Ultrix sh set writes to stderr and can't be redirected directly,
23940# and sets the high bit in the cache file unless we assign to the vars.
23941{
23942 (set) 2>&1 |
23943 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23944 *ac_space=\ *)
23945 # `set' does not quote correctly, so add quotes (double-quote
23946 # substitution turns \\\\ into \\, and sed turns \\ into \).
23947 sed -n \
ac1cb8d3
VS
23948 "s/'/'\\\\''/g;
23949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23950 ;;
23951 *)
23952 # `set' quotes correctly as required by POSIX, so do not add quotes.
23953 sed -n \
ac1cb8d3 23954 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23955 ;;
23956 esac;
23957} |
23958 sed '
23959 t clear
23960 : clear
23961 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23962 t end
23963 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23964 : end' >>confcache
23965if diff $cache_file confcache >/dev/null 2>&1; then :; else
23966 if test -w $cache_file; then
23967 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23968 cat confcache >$cache_file
23969 else
23970 echo "not updating unwritable cache $cache_file"
23971 fi
23972fi
23973rm -f confcache
23974
23975if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23976 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23977echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23978if test "${wx_cv_lib_glibc21+set}" = set; then
23979 echo $ECHO_N "(cached) $ECHO_C" >&6
23980else
23981
23982 cat >conftest.$ac_ext <<_ACEOF
23983/* confdefs.h. */
23984_ACEOF
23985cat confdefs.h >>conftest.$ac_ext
23986cat >>conftest.$ac_ext <<_ACEOF
23987/* end confdefs.h. */
23988#include <features.h>
23989int
23990main ()
23991{
23992
23993 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23994 not glibc 2.1
a848cd7e
SC
23995 #endif
23996
23997 ;
23998 return 0;
23999}
24000_ACEOF
24001rm -f conftest.$ac_objext
24002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24003 (eval $ac_compile) 2>conftest.er1
a848cd7e 24004 ac_status=$?
ac1cb8d3
VS
24005 grep -v '^ *+' conftest.er1 >conftest.err
24006 rm -f conftest.er1
24007 cat conftest.err >&5
a848cd7e
SC
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); } &&
2b850ae1
RR
24010 { ac_try='test -z "$ac_c_werror_flag"
24011 || test ! -s conftest.err'
ac1cb8d3
VS
24012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24013 (eval $ac_try) 2>&5
24014 ac_status=$?
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); }; } &&
24017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24020 ac_status=$?
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; }; then
24023
24024 wx_cv_lib_glibc21=yes
24025
24026else
24027 echo "$as_me: failed program was:" >&5
24028sed 's/^/| /' conftest.$ac_ext >&5
24029
24030
24031 wx_cv_lib_glibc21=no
24032
24033
24034fi
ac1cb8d3 24035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24036
24037fi
24038echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24039echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24040 if test "$wx_cv_lib_glibc21" = "yes"; then
24041 cat >>confdefs.h <<\_ACEOF
24042#define wxHAVE_GLIBC2 1
24043_ACEOF
24044
24045 fi
24046fi
24047
24048if test "x$wx_cv_lib_glibc21" = "xyes"; then
24049 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24050 cat >>confdefs.h <<\_ACEOF
24051#define _GNU_SOURCE 1
24052_ACEOF
24053
24054 fi
24055fi
24056
24057
24058
24059if test "$wxUSE_REGEX" != "no"; then
24060 cat >>confdefs.h <<\_ACEOF
24061#define wxUSE_REGEX 1
24062_ACEOF
24063
24064
24065 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24066 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24067echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24068 wxUSE_REGEX=builtin
24069 fi
24070
24071 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24072 if test "${ac_cv_header_regex_h+set}" = set; then
24073 echo "$as_me:$LINENO: checking for regex.h" >&5
24074echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24075if test "${ac_cv_header_regex_h+set}" = set; then
24076 echo $ECHO_N "(cached) $ECHO_C" >&6
24077fi
24078echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24079echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24080else
24081 # Is the header compilable?
24082echo "$as_me:$LINENO: checking regex.h usability" >&5
24083echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24084cat >conftest.$ac_ext <<_ACEOF
24085/* confdefs.h. */
24086_ACEOF
24087cat confdefs.h >>conftest.$ac_ext
24088cat >>conftest.$ac_ext <<_ACEOF
24089/* end confdefs.h. */
24090$ac_includes_default
24091#include <regex.h>
24092_ACEOF
24093rm -f conftest.$ac_objext
24094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24095 (eval $ac_compile) 2>conftest.er1
a848cd7e 24096 ac_status=$?
ac1cb8d3
VS
24097 grep -v '^ *+' conftest.er1 >conftest.err
24098 rm -f conftest.er1
24099 cat conftest.err >&5
a848cd7e
SC
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } &&
2b850ae1
RR
24102 { ac_try='test -z "$ac_c_werror_flag"
24103 || test ! -s conftest.err'
ac1cb8d3
VS
24104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105 (eval $ac_try) 2>&5
24106 ac_status=$?
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); }; } &&
24109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111 (eval $ac_try) 2>&5
24112 ac_status=$?
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); }; }; then
24115 ac_header_compiler=yes
24116else
24117 echo "$as_me: failed program was:" >&5
24118sed 's/^/| /' conftest.$ac_ext >&5
24119
24120ac_header_compiler=no
24121fi
ac1cb8d3 24122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24124echo "${ECHO_T}$ac_header_compiler" >&6
24125
24126# Is the header present?
24127echo "$as_me:$LINENO: checking regex.h presence" >&5
24128echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24129cat >conftest.$ac_ext <<_ACEOF
24130/* confdefs.h. */
24131_ACEOF
24132cat confdefs.h >>conftest.$ac_ext
24133cat >>conftest.$ac_ext <<_ACEOF
24134/* end confdefs.h. */
24135#include <regex.h>
24136_ACEOF
24137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24139 ac_status=$?
24140 grep -v '^ *+' conftest.er1 >conftest.err
24141 rm -f conftest.er1
24142 cat conftest.err >&5
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); } >/dev/null; then
24145 if test -s conftest.err; then
24146 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24148 else
24149 ac_cpp_err=
24150 fi
24151else
24152 ac_cpp_err=yes
24153fi
24154if test -z "$ac_cpp_err"; then
24155 ac_header_preproc=yes
24156else
24157 echo "$as_me: failed program was:" >&5
24158sed 's/^/| /' conftest.$ac_ext >&5
24159
24160 ac_header_preproc=no
24161fi
24162rm -f conftest.err conftest.$ac_ext
24163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24164echo "${ECHO_T}$ac_header_preproc" >&6
24165
24166# So? What about this header?
ac1cb8d3
VS
24167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24168 yes:no: )
a848cd7e
SC
24169 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24170echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24171 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24172echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24173 ac_header_preproc=yes
a848cd7e 24174 ;;
ac1cb8d3 24175 no:yes:* )
a848cd7e
SC
24176 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24177echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24178 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24179echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24180 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24181echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24182 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24183echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24184 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24185echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24186 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24187echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24188 (
24189 cat <<\_ASBOX
ac1cb8d3
VS
24190## ----------------------------------------- ##
24191## Report this to wx-dev@lists.wxwidgets.org ##
24192## ----------------------------------------- ##
a848cd7e
SC
24193_ASBOX
24194 ) |
24195 sed "s/^/$as_me: WARNING: /" >&2
24196 ;;
24197esac
24198echo "$as_me:$LINENO: checking for regex.h" >&5
24199echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24200if test "${ac_cv_header_regex_h+set}" = set; then
24201 echo $ECHO_N "(cached) $ECHO_C" >&6
24202else
24203 ac_cv_header_regex_h=$ac_header_preproc
24204fi
24205echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24206echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24207
24208fi
24209if test $ac_cv_header_regex_h = yes; then
24210
ab0f0edd
MW
24211
24212for ac_func in regcomp re_search
a848cd7e
SC
24213do
24214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24215echo "$as_me:$LINENO: checking for $ac_func" >&5
24216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24217if eval "test \"\${$as_ac_var+set}\" = set"; then
24218 echo $ECHO_N "(cached) $ECHO_C" >&6
24219else
24220 cat >conftest.$ac_ext <<_ACEOF
24221/* confdefs.h. */
24222_ACEOF
24223cat confdefs.h >>conftest.$ac_ext
24224cat >>conftest.$ac_ext <<_ACEOF
24225/* end confdefs.h. */
ac1cb8d3
VS
24226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24228#define $ac_func innocuous_$ac_func
24229
a848cd7e
SC
24230/* System header to define __stub macros and hopefully few prototypes,
24231 which can conflict with char $ac_func (); below.
24232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24233 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24234
a848cd7e
SC
24235#ifdef __STDC__
24236# include <limits.h>
24237#else
24238# include <assert.h>
24239#endif
ac1cb8d3
VS
24240
24241#undef $ac_func
24242
a848cd7e
SC
24243/* Override any gcc2 internal prototype to avoid an error. */
24244#ifdef __cplusplus
24245extern "C"
24246{
24247#endif
24248/* We use char because int might match the return type of a gcc2
24249 builtin and then its argument prototype would still apply. */
24250char $ac_func ();
24251/* The GNU C library defines this for functions which it implements
24252 to always fail with ENOSYS. Some functions are actually named
24253 something starting with __ and the normal name is an alias. */
24254#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24255choke me
24256#else
24257char (*f) () = $ac_func;
24258#endif
24259#ifdef __cplusplus
24260}
24261#endif
24262
24263int
24264main ()
24265{
24266return f != $ac_func;
24267 ;
24268 return 0;
24269}
24270_ACEOF
24271rm -f conftest.$ac_objext conftest$ac_exeext
24272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24273 (eval $ac_link) 2>conftest.er1
a848cd7e 24274 ac_status=$?
ac1cb8d3
VS
24275 grep -v '^ *+' conftest.er1 >conftest.err
24276 rm -f conftest.er1
24277 cat conftest.err >&5
a848cd7e
SC
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); } &&
2b850ae1
RR
24280 { ac_try='test -z "$ac_c_werror_flag"
24281 || test ! -s conftest.err'
ac1cb8d3
VS
24282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24283 (eval $ac_try) 2>&5
24284 ac_status=$?
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); }; } &&
24287 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24289 (eval $ac_try) 2>&5
24290 ac_status=$?
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); }; }; then
24293 eval "$as_ac_var=yes"
24294else
24295 echo "$as_me: failed program was:" >&5
24296sed 's/^/| /' conftest.$ac_ext >&5
24297
24298eval "$as_ac_var=no"
24299fi
ac1cb8d3
VS
24300rm -f conftest.err conftest.$ac_objext \
24301 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24302fi
24303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24304echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24305if test `eval echo '${'$as_ac_var'}'` = yes; then
24306 cat >>confdefs.h <<_ACEOF
24307#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24308_ACEOF
24309
24310fi
24311done
24312
24313fi
24314
24315
24316
24317 if test "x$ac_cv_func_regcomp" != "xyes"; then
24318 if test "$wxUSE_REGEX" = "sys" ; then
24319 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24320echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24321 { (exit 1); exit 1; }; }
24322 else
24323 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24324echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24325 wxUSE_REGEX=builtin
24326 fi
24327 else
24328 wxUSE_REGEX=sys
24329 cat >>confdefs.h <<\_ACEOF
24330#define WX_NO_REGEX_ADVANCED 1
24331_ACEOF
24332
24333 fi
24334 fi
24335fi
24336
24337
24338ZLIB_LINK=
24339if test "$wxUSE_ZLIB" != "no" ; then
24340 cat >>confdefs.h <<\_ACEOF
24341#define wxUSE_ZLIB 1
24342_ACEOF
24343
24344
24345 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24346 if test "$USE_DARWIN" = 1; then
24347 system_zlib_h_ok="yes"
24348 else
24349 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24350echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24351if test "${ac_cv_header_zlib_h+set}" = set; then
24352 echo $ECHO_N "(cached) $ECHO_C" >&6
24353else
24354 if test "$cross_compiling" = yes; then
24355 unset ac_cv_header_zlib_h
24356
24357else
24358 cat >conftest.$ac_ext <<_ACEOF
24359/* confdefs.h. */
24360_ACEOF
24361cat confdefs.h >>conftest.$ac_ext
24362cat >>conftest.$ac_ext <<_ACEOF
24363/* end confdefs.h. */
24364
24365 #include <zlib.h>
24366 #include <stdio.h>
24367
24368 int main()
24369 {
24370 FILE *f=fopen("conftestval", "w");
24371 if (!f) exit(1);
24372 fprintf(f, "%s",
24373 ZLIB_VERSION[0] == '1' &&
24374 (ZLIB_VERSION[2] > '1' ||
24375 (ZLIB_VERSION[2] == '1' &&
24376 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24377 exit(0);
24378 }
24379
24380_ACEOF
24381rm -f conftest$ac_exeext
24382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24383 (eval $ac_link) 2>&5
24384 ac_status=$?
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24388 (eval $ac_try) 2>&5
24389 ac_status=$?
24390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); }; }; then
24392 ac_cv_header_zlib_h=`cat conftestval`
24393else
24394 echo "$as_me: program exited with status $ac_status" >&5
24395echo "$as_me: failed program was:" >&5
24396sed 's/^/| /' conftest.$ac_ext >&5
24397
24398( exit $ac_status )
24399ac_cv_header_zlib_h=no
24400fi
ac1cb8d3 24401rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24402fi
24403
24404fi
24405echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24406echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24407 if test "${ac_cv_header_zlib_h+set}" = set; then
24408 echo "$as_me:$LINENO: checking for zlib.h" >&5
24409echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24410if test "${ac_cv_header_zlib_h+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24412fi
24413echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24414echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24415else
24416 # Is the header compilable?
24417echo "$as_me:$LINENO: checking zlib.h usability" >&5
24418echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24419cat >conftest.$ac_ext <<_ACEOF
24420/* confdefs.h. */
24421_ACEOF
24422cat confdefs.h >>conftest.$ac_ext
24423cat >>conftest.$ac_ext <<_ACEOF
24424/* end confdefs.h. */
24425$ac_includes_default
24426#include <zlib.h>
24427_ACEOF
24428rm -f conftest.$ac_objext
24429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24430 (eval $ac_compile) 2>conftest.er1
a848cd7e 24431 ac_status=$?
ac1cb8d3
VS
24432 grep -v '^ *+' conftest.er1 >conftest.err
24433 rm -f conftest.er1
24434 cat conftest.err >&5
a848cd7e
SC
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); } &&
2b850ae1
RR
24437 { ac_try='test -z "$ac_c_werror_flag"
24438 || test ! -s conftest.err'
ac1cb8d3
VS
24439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24440 (eval $ac_try) 2>&5
24441 ac_status=$?
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; } &&
24444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24446 (eval $ac_try) 2>&5
24447 ac_status=$?
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); }; }; then
24450 ac_header_compiler=yes
24451else
24452 echo "$as_me: failed program was:" >&5
24453sed 's/^/| /' conftest.$ac_ext >&5
24454
24455ac_header_compiler=no
24456fi
ac1cb8d3 24457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24459echo "${ECHO_T}$ac_header_compiler" >&6
24460
24461# Is the header present?
24462echo "$as_me:$LINENO: checking zlib.h presence" >&5
24463echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24464cat >conftest.$ac_ext <<_ACEOF
24465/* confdefs.h. */
24466_ACEOF
24467cat confdefs.h >>conftest.$ac_ext
24468cat >>conftest.$ac_ext <<_ACEOF
24469/* end confdefs.h. */
24470#include <zlib.h>
24471_ACEOF
24472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24474 ac_status=$?
24475 grep -v '^ *+' conftest.er1 >conftest.err
24476 rm -f conftest.er1
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } >/dev/null; then
24480 if test -s conftest.err; then
24481 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24483 else
24484 ac_cpp_err=
24485 fi
24486else
24487 ac_cpp_err=yes
24488fi
24489if test -z "$ac_cpp_err"; then
24490 ac_header_preproc=yes
24491else
24492 echo "$as_me: failed program was:" >&5
24493sed 's/^/| /' conftest.$ac_ext >&5
24494
24495 ac_header_preproc=no
24496fi
24497rm -f conftest.err conftest.$ac_ext
24498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24499echo "${ECHO_T}$ac_header_preproc" >&6
24500
24501# So? What about this header?
ac1cb8d3
VS
24502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24503 yes:no: )
a848cd7e
SC
24504 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24505echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24506 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24507echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24508 ac_header_preproc=yes
a848cd7e 24509 ;;
ac1cb8d3 24510 no:yes:* )
a848cd7e
SC
24511 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24512echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24513 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24514echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24515 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24516echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24517 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24518echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24519 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24520echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24521 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24522echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24523 (
24524 cat <<\_ASBOX
ac1cb8d3
VS
24525## ----------------------------------------- ##
24526## Report this to wx-dev@lists.wxwidgets.org ##
24527## ----------------------------------------- ##
a848cd7e
SC
24528_ASBOX
24529 ) |
24530 sed "s/^/$as_me: WARNING: /" >&2
24531 ;;
24532esac
24533echo "$as_me:$LINENO: checking for zlib.h" >&5
24534echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24535if test "${ac_cv_header_zlib_h+set}" = set; then
24536 echo $ECHO_N "(cached) $ECHO_C" >&6
24537else
24538 ac_cv_header_zlib_h=$ac_header_preproc
24539fi
24540echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24541echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24542
24543fi
24544
24545
24546
24547 system_zlib_h_ok=$ac_cv_header_zlib_h
24548 fi
24549
24550 if test "$system_zlib_h_ok" = "yes"; then
24551 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24552echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24553if test "${ac_cv_lib_z_deflate+set}" = set; then
24554 echo $ECHO_N "(cached) $ECHO_C" >&6
24555else
24556 ac_check_lib_save_LIBS=$LIBS
24557LIBS="-lz $LIBS"
24558cat >conftest.$ac_ext <<_ACEOF
24559/* confdefs.h. */
24560_ACEOF
24561cat confdefs.h >>conftest.$ac_ext
24562cat >>conftest.$ac_ext <<_ACEOF
24563/* end confdefs.h. */
24564
24565/* Override any gcc2 internal prototype to avoid an error. */
24566#ifdef __cplusplus
24567extern "C"
24568#endif
24569/* We use char because int might match the return type of a gcc2
24570 builtin and then its argument prototype would still apply. */
24571char deflate ();
24572int
24573main ()
24574{
24575deflate ();
24576 ;
24577 return 0;
24578}
24579_ACEOF
24580rm -f conftest.$ac_objext conftest$ac_exeext
24581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24582 (eval $ac_link) 2>conftest.er1
a848cd7e 24583 ac_status=$?
ac1cb8d3
VS
24584 grep -v '^ *+' conftest.er1 >conftest.err
24585 rm -f conftest.er1
24586 cat conftest.err >&5
a848cd7e
SC
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } &&
2b850ae1
RR
24589 { ac_try='test -z "$ac_c_werror_flag"
24590 || test ! -s conftest.err'
ac1cb8d3
VS
24591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24593 ac_status=$?
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; } &&
24596 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598 (eval $ac_try) 2>&5
24599 ac_status=$?
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; }; then
24602 ac_cv_lib_z_deflate=yes
24603else
24604 echo "$as_me: failed program was:" >&5
24605sed 's/^/| /' conftest.$ac_ext >&5
24606
24607ac_cv_lib_z_deflate=no
24608fi
ac1cb8d3
VS
24609rm -f conftest.err conftest.$ac_objext \
24610 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24611LIBS=$ac_check_lib_save_LIBS
24612fi
24613echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24614echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24615if test $ac_cv_lib_z_deflate = yes; then
24616 ZLIB_LINK=" -lz"
24617fi
24618
24619 fi
24620
24621 if test "x$ZLIB_LINK" = "x" ; then
24622 if test "$wxUSE_ZLIB" = "sys" ; then
24623 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24624echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24625 { (exit 1); exit 1; }; }
24626 else
24627 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24628echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24629 wxUSE_ZLIB=builtin
24630 fi
24631 else
24632 wxUSE_ZLIB=sys
24633 fi
24634 fi
24635fi
24636
24637
24638PNG_LINK=
24639if test "$wxUSE_LIBPNG" != "no" ; then
24640 cat >>confdefs.h <<\_ACEOF
24641#define wxUSE_LIBPNG 1
24642_ACEOF
24643
24644
24645 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24646 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24647echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24648 wxUSE_LIBPNG=sys
24649 fi
24650
24651 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24652 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24653echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24654 wxUSE_LIBPNG=builtin
24655 fi
24656
24657 if test "$wxUSE_MGL" != 1 ; then
24658 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24659 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24660echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24661if test "${ac_cv_header_png_h+set}" = set; then
24662 echo $ECHO_N "(cached) $ECHO_C" >&6
24663else
24664 if test "$cross_compiling" = yes; then
24665 unset ac_cv_header_png_h
24666
24667else
24668 cat >conftest.$ac_ext <<_ACEOF
24669/* confdefs.h. */
24670_ACEOF
24671cat confdefs.h >>conftest.$ac_ext
24672cat >>conftest.$ac_ext <<_ACEOF
24673/* end confdefs.h. */
24674
24675 #include <png.h>
24676 #include <stdio.h>
24677
24678 int main()
24679 {
24680 FILE *f=fopen("conftestval", "w");
24681 if (!f) exit(1);
24682 fprintf(f, "%s",
24683 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24684 exit(0);
24685 }
24686
24687_ACEOF
24688rm -f conftest$ac_exeext
24689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24690 (eval $ac_link) 2>&5
24691 ac_status=$?
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695 (eval $ac_try) 2>&5
24696 ac_status=$?
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; }; then
24699 ac_cv_header_png_h=`cat conftestval`
24700else
24701 echo "$as_me: program exited with status $ac_status" >&5
24702echo "$as_me: failed program was:" >&5
24703sed 's/^/| /' conftest.$ac_ext >&5
24704
24705( exit $ac_status )
24706ac_cv_header_png_h=no
24707fi
ac1cb8d3 24708rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24709fi
24710
24711fi
24712echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24713echo "${ECHO_T}$ac_cv_header_png_h" >&6
24714 if test "${ac_cv_header_png_h+set}" = set; then
24715 echo "$as_me:$LINENO: checking for png.h" >&5
24716echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24717if test "${ac_cv_header_png_h+set}" = set; then
24718 echo $ECHO_N "(cached) $ECHO_C" >&6
24719fi
24720echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24721echo "${ECHO_T}$ac_cv_header_png_h" >&6
24722else
24723 # Is the header compilable?
24724echo "$as_me:$LINENO: checking png.h usability" >&5
24725echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
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$ac_includes_default
24733#include <png.h>
24734_ACEOF
24735rm -f conftest.$ac_objext
24736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24737 (eval $ac_compile) 2>conftest.er1
a848cd7e 24738 ac_status=$?
ac1cb8d3
VS
24739 grep -v '^ *+' conftest.er1 >conftest.err
24740 rm -f conftest.er1
24741 cat conftest.err >&5
a848cd7e
SC
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); } &&
2b850ae1
RR
24744 { ac_try='test -z "$ac_c_werror_flag"
24745 || test ! -s conftest.err'
ac1cb8d3
VS
24746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24747 (eval $ac_try) 2>&5
24748 ac_status=$?
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); }; } &&
24751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24753 (eval $ac_try) 2>&5
24754 ac_status=$?
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); }; }; then
24757 ac_header_compiler=yes
24758else
24759 echo "$as_me: failed program was:" >&5
24760sed 's/^/| /' conftest.$ac_ext >&5
24761
24762ac_header_compiler=no
24763fi
ac1cb8d3 24764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24765echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24766echo "${ECHO_T}$ac_header_compiler" >&6
24767
24768# Is the header present?
24769echo "$as_me:$LINENO: checking png.h presence" >&5
24770echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24771cat >conftest.$ac_ext <<_ACEOF
24772/* confdefs.h. */
24773_ACEOF
24774cat confdefs.h >>conftest.$ac_ext
24775cat >>conftest.$ac_ext <<_ACEOF
24776/* end confdefs.h. */
24777#include <png.h>
24778_ACEOF
24779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24781 ac_status=$?
24782 grep -v '^ *+' conftest.er1 >conftest.err
24783 rm -f conftest.er1
24784 cat conftest.err >&5
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } >/dev/null; then
24787 if test -s conftest.err; then
24788 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24790 else
24791 ac_cpp_err=
24792 fi
24793else
24794 ac_cpp_err=yes
24795fi
24796if test -z "$ac_cpp_err"; then
24797 ac_header_preproc=yes
24798else
24799 echo "$as_me: failed program was:" >&5
24800sed 's/^/| /' conftest.$ac_ext >&5
24801
24802 ac_header_preproc=no
24803fi
24804rm -f conftest.err conftest.$ac_ext
24805echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24806echo "${ECHO_T}$ac_header_preproc" >&6
24807
24808# So? What about this header?
ac1cb8d3
VS
24809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24810 yes:no: )
a848cd7e
SC
24811 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24812echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24813 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24814echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24815 ac_header_preproc=yes
a848cd7e 24816 ;;
ac1cb8d3 24817 no:yes:* )
a848cd7e
SC
24818 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24819echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24820 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24821echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24822 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24823echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24824 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24825echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24826 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24827echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24828 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24829echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24830 (
24831 cat <<\_ASBOX
ac1cb8d3
VS
24832## ----------------------------------------- ##
24833## Report this to wx-dev@lists.wxwidgets.org ##
24834## ----------------------------------------- ##
a848cd7e
SC
24835_ASBOX
24836 ) |
24837 sed "s/^/$as_me: WARNING: /" >&2
24838 ;;
24839esac
24840echo "$as_me:$LINENO: checking for png.h" >&5
24841echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24842if test "${ac_cv_header_png_h+set}" = set; then
24843 echo $ECHO_N "(cached) $ECHO_C" >&6
24844else
24845 ac_cv_header_png_h=$ac_header_preproc
24846fi
24847echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24848echo "${ECHO_T}$ac_cv_header_png_h" >&6
24849
24850fi
24851
24852
24853
24854 if test "$ac_cv_header_png_h" = "yes"; then
24855 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24856echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24857if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24858 echo $ECHO_N "(cached) $ECHO_C" >&6
24859else
24860 ac_check_lib_save_LIBS=$LIBS
24861LIBS="-lpng -lz -lm $LIBS"
24862cat >conftest.$ac_ext <<_ACEOF
24863/* confdefs.h. */
24864_ACEOF
24865cat confdefs.h >>conftest.$ac_ext
24866cat >>conftest.$ac_ext <<_ACEOF
24867/* end confdefs.h. */
24868
24869/* Override any gcc2 internal prototype to avoid an error. */
24870#ifdef __cplusplus
24871extern "C"
24872#endif
24873/* We use char because int might match the return type of a gcc2
24874 builtin and then its argument prototype would still apply. */
24875char png_check_sig ();
24876int
24877main ()
24878{
24879png_check_sig ();
24880 ;
24881 return 0;
24882}
24883_ACEOF
24884rm -f conftest.$ac_objext conftest$ac_exeext
24885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24886 (eval $ac_link) 2>conftest.er1
a848cd7e 24887 ac_status=$?
ac1cb8d3
VS
24888 grep -v '^ *+' conftest.er1 >conftest.err
24889 rm -f conftest.er1
24890 cat conftest.err >&5
a848cd7e
SC
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } &&
2b850ae1
RR
24893 { ac_try='test -z "$ac_c_werror_flag"
24894 || test ! -s conftest.err'
ac1cb8d3
VS
24895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896 (eval $ac_try) 2>&5
24897 ac_status=$?
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); }; } &&
24900 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24902 (eval $ac_try) 2>&5
24903 ac_status=$?
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); }; }; then
24906 ac_cv_lib_png_png_check_sig=yes
24907else
24908 echo "$as_me: failed program was:" >&5
24909sed 's/^/| /' conftest.$ac_ext >&5
24910
24911ac_cv_lib_png_png_check_sig=no
24912fi
ac1cb8d3
VS
24913rm -f conftest.err conftest.$ac_objext \
24914 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24915LIBS=$ac_check_lib_save_LIBS
24916fi
24917echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24918echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24919if test $ac_cv_lib_png_png_check_sig = yes; then
24920 PNG_LINK=" -lpng -lz"
24921fi
24922
24923 fi
24924
24925 if test "x$PNG_LINK" = "x" ; then
24926 if test "$wxUSE_LIBPNG" = "sys" ; then
24927 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24928echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24929 { (exit 1); exit 1; }; }
24930 else
24931 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24932echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24933 wxUSE_LIBPNG=builtin
24934 fi
24935 else
24936 wxUSE_LIBPNG=sys
24937 fi
24938 fi
24939 fi
24940
24941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24942fi
24943
24944
24945JPEG_LINK=
24946if test "$wxUSE_LIBJPEG" != "no" ; then
24947 cat >>confdefs.h <<\_ACEOF
24948#define wxUSE_LIBJPEG 1
24949_ACEOF
24950
24951
24952 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24953 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24954echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24955 wxUSE_LIBJPEG=sys
24956 fi
24957
24958 if test "$wxUSE_MGL" != 1 ; then
24959 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24960 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24961echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24962 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24963 echo $ECHO_N "(cached) $ECHO_C" >&6
24964else
24965 cat >conftest.$ac_ext <<_ACEOF
24966/* confdefs.h. */
24967_ACEOF
24968cat confdefs.h >>conftest.$ac_ext
24969cat >>conftest.$ac_ext <<_ACEOF
24970/* end confdefs.h. */
24971
24972 #undef HAVE_STDLIB_H
24973 #include <stdio.h>
24974 #include <jpeglib.h>
24975
24976int
24977main ()
24978{
24979
24980
24981 ;
24982 return 0;
24983}
24984_ACEOF
24985rm -f conftest.$ac_objext
24986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24987 (eval $ac_compile) 2>conftest.er1
a848cd7e 24988 ac_status=$?
ac1cb8d3
VS
24989 grep -v '^ *+' conftest.er1 >conftest.err
24990 rm -f conftest.er1
24991 cat conftest.err >&5
a848cd7e
SC
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); } &&
2b850ae1
RR
24994 { ac_try='test -z "$ac_c_werror_flag"
24995 || test ! -s conftest.err'
ac1cb8d3
VS
24996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24997 (eval $ac_try) 2>&5
24998 ac_status=$?
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); }; } &&
25001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25003 (eval $ac_try) 2>&5
25004 ac_status=$?
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; }; then
25007 ac_cv_header_jpeglib_h=yes
25008else
25009 echo "$as_me: failed program was:" >&5
25010sed 's/^/| /' conftest.$ac_ext >&5
25011
25012ac_cv_header_jpeglib_h=no
25013
25014fi
ac1cb8d3 25015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25016
25017fi
25018
25019 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25020echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25021
25022 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25023 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25024echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25025if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25026 echo $ECHO_N "(cached) $ECHO_C" >&6
25027else
25028 ac_check_lib_save_LIBS=$LIBS
25029LIBS="-ljpeg $LIBS"
25030cat >conftest.$ac_ext <<_ACEOF
25031/* confdefs.h. */
25032_ACEOF
25033cat confdefs.h >>conftest.$ac_ext
25034cat >>conftest.$ac_ext <<_ACEOF
25035/* end confdefs.h. */
25036
25037/* Override any gcc2 internal prototype to avoid an error. */
25038#ifdef __cplusplus
25039extern "C"
25040#endif
25041/* We use char because int might match the return type of a gcc2
25042 builtin and then its argument prototype would still apply. */
25043char jpeg_read_header ();
25044int
25045main ()
25046{
25047jpeg_read_header ();
25048 ;
25049 return 0;
25050}
25051_ACEOF
25052rm -f conftest.$ac_objext conftest$ac_exeext
25053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25054 (eval $ac_link) 2>conftest.er1
a848cd7e 25055 ac_status=$?
ac1cb8d3
VS
25056 grep -v '^ *+' conftest.er1 >conftest.err
25057 rm -f conftest.er1
25058 cat conftest.err >&5
a848cd7e
SC
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } &&
2b850ae1
RR
25061 { ac_try='test -z "$ac_c_werror_flag"
25062 || test ! -s conftest.err'
ac1cb8d3
VS
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; } &&
25068 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25070 (eval $ac_try) 2>&5
25071 ac_status=$?
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); }; }; then
25074 ac_cv_lib_jpeg_jpeg_read_header=yes
25075else
25076 echo "$as_me: failed program was:" >&5
25077sed 's/^/| /' conftest.$ac_ext >&5
25078
25079ac_cv_lib_jpeg_jpeg_read_header=no
25080fi
ac1cb8d3
VS
25081rm -f conftest.err conftest.$ac_objext \
25082 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25083LIBS=$ac_check_lib_save_LIBS
25084fi
25085echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25086echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25087if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25088 JPEG_LINK=" -ljpeg"
25089fi
25090
25091 fi
25092
25093 if test "x$JPEG_LINK" = "x" ; then
25094 if test "$wxUSE_LIBJPEG" = "sys" ; then
25095 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25096echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25097 { (exit 1); exit 1; }; }
25098 else
25099 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25100echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25101 wxUSE_LIBJPEG=builtin
25102 fi
25103 else
25104 wxUSE_LIBJPEG=sys
25105 fi
25106 fi
25107 fi
25108fi
25109
25110
25111TIFF_LINK=
25112TIFF_PREREQ_LINKS=-lm
25113if test "$wxUSE_LIBTIFF" != "no" ; then
25114 cat >>confdefs.h <<\_ACEOF
25115#define wxUSE_LIBTIFF 1
25116_ACEOF
25117
25118
25119 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25120 if test "$wxUSE_LIBJPEG" = "sys"; then
25121 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25122 fi
25123 if test "$wxUSE_ZLIB" = "sys"; then
25124 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25125 fi
25126 if test "${ac_cv_header_tiffio_h+set}" = set; then
25127 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25128echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25129if test "${ac_cv_header_tiffio_h+set}" = set; then
25130 echo $ECHO_N "(cached) $ECHO_C" >&6
25131fi
25132echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25133echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25134else
25135 # Is the header compilable?
25136echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25137echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25138cat >conftest.$ac_ext <<_ACEOF
25139/* confdefs.h. */
25140_ACEOF
25141cat confdefs.h >>conftest.$ac_ext
25142cat >>conftest.$ac_ext <<_ACEOF
25143/* end confdefs.h. */
25144$ac_includes_default
25145#include <tiffio.h>
25146_ACEOF
25147rm -f conftest.$ac_objext
25148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25149 (eval $ac_compile) 2>conftest.er1
a848cd7e 25150 ac_status=$?
ac1cb8d3
VS
25151 grep -v '^ *+' conftest.er1 >conftest.err
25152 rm -f conftest.er1
25153 cat conftest.err >&5
a848cd7e
SC
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); } &&
2b850ae1
RR
25156 { ac_try='test -z "$ac_c_werror_flag"
25157 || test ! -s conftest.err'
ac1cb8d3
VS
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25160 ac_status=$?
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; } &&
25163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165 (eval $ac_try) 2>&5
25166 ac_status=$?
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; }; then
25169 ac_header_compiler=yes
25170else
25171 echo "$as_me: failed program was:" >&5
25172sed 's/^/| /' conftest.$ac_ext >&5
25173
25174ac_header_compiler=no
25175fi
ac1cb8d3 25176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25177echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25178echo "${ECHO_T}$ac_header_compiler" >&6
25179
25180# Is the header present?
25181echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25182echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25183cat >conftest.$ac_ext <<_ACEOF
25184/* confdefs.h. */
25185_ACEOF
25186cat confdefs.h >>conftest.$ac_ext
25187cat >>conftest.$ac_ext <<_ACEOF
25188/* end confdefs.h. */
25189#include <tiffio.h>
25190_ACEOF
25191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25193 ac_status=$?
25194 grep -v '^ *+' conftest.er1 >conftest.err
25195 rm -f conftest.er1
25196 cat conftest.err >&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } >/dev/null; then
25199 if test -s conftest.err; then
25200 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25202 else
25203 ac_cpp_err=
25204 fi
25205else
25206 ac_cpp_err=yes
25207fi
25208if test -z "$ac_cpp_err"; then
25209 ac_header_preproc=yes
25210else
25211 echo "$as_me: failed program was:" >&5
25212sed 's/^/| /' conftest.$ac_ext >&5
25213
25214 ac_header_preproc=no
25215fi
25216rm -f conftest.err conftest.$ac_ext
25217echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25218echo "${ECHO_T}$ac_header_preproc" >&6
25219
25220# So? What about this header?
ac1cb8d3
VS
25221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25222 yes:no: )
a848cd7e
SC
25223 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25224echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25225 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25226echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25227 ac_header_preproc=yes
a848cd7e 25228 ;;
ac1cb8d3 25229 no:yes:* )
a848cd7e
SC
25230 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25231echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25232 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25233echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25234 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25235echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25236 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25237echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25238 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25239echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25240 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25241echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25242 (
25243 cat <<\_ASBOX
ac1cb8d3
VS
25244## ----------------------------------------- ##
25245## Report this to wx-dev@lists.wxwidgets.org ##
25246## ----------------------------------------- ##
a848cd7e
SC
25247_ASBOX
25248 ) |
25249 sed "s/^/$as_me: WARNING: /" >&2
25250 ;;
25251esac
25252echo "$as_me:$LINENO: checking for tiffio.h" >&5
25253echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25254if test "${ac_cv_header_tiffio_h+set}" = set; then
25255 echo $ECHO_N "(cached) $ECHO_C" >&6
25256else
25257 ac_cv_header_tiffio_h=$ac_header_preproc
25258fi
25259echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25260echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25261
25262fi
25263if test $ac_cv_header_tiffio_h = yes; then
25264
25265 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25266echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25267if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25268 echo $ECHO_N "(cached) $ECHO_C" >&6
25269else
25270 ac_check_lib_save_LIBS=$LIBS
25271LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25272cat >conftest.$ac_ext <<_ACEOF
25273/* confdefs.h. */
25274_ACEOF
25275cat confdefs.h >>conftest.$ac_ext
25276cat >>conftest.$ac_ext <<_ACEOF
25277/* end confdefs.h. */
25278
25279/* Override any gcc2 internal prototype to avoid an error. */
25280#ifdef __cplusplus
25281extern "C"
25282#endif
25283/* We use char because int might match the return type of a gcc2
25284 builtin and then its argument prototype would still apply. */
25285char TIFFError ();
25286int
25287main ()
25288{
25289TIFFError ();
25290 ;
25291 return 0;
25292}
25293_ACEOF
25294rm -f conftest.$ac_objext conftest$ac_exeext
25295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25296 (eval $ac_link) 2>conftest.er1
a848cd7e 25297 ac_status=$?
ac1cb8d3
VS
25298 grep -v '^ *+' conftest.er1 >conftest.err
25299 rm -f conftest.er1
25300 cat conftest.err >&5
a848cd7e
SC
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } &&
2b850ae1
RR
25303 { ac_try='test -z "$ac_c_werror_flag"
25304 || test ! -s conftest.err'
ac1cb8d3
VS
25305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25306 (eval $ac_try) 2>&5
25307 ac_status=$?
25308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309 (exit $ac_status); }; } &&
25310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25312 (eval $ac_try) 2>&5
25313 ac_status=$?
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); }; }; then
25316 ac_cv_lib_tiff_TIFFError=yes
25317else
25318 echo "$as_me: failed program was:" >&5
25319sed 's/^/| /' conftest.$ac_ext >&5
25320
25321ac_cv_lib_tiff_TIFFError=no
25322fi
ac1cb8d3
VS
25323rm -f conftest.err conftest.$ac_objext \
25324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25325LIBS=$ac_check_lib_save_LIBS
25326fi
25327echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25328echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25329if test $ac_cv_lib_tiff_TIFFError = yes; then
25330 TIFF_LINK=" -ltiff"
25331fi
25332
25333
25334
25335fi
25336
25337
25338
25339 if test "x$TIFF_LINK" = "x" ; then
25340 if test "$wxUSE_LIBTIFF" = "sys" ; then
25341 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25342echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25343 { (exit 1); exit 1; }; }
25344 else
25345 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25346echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25347 wxUSE_LIBTIFF=builtin
25348 fi
25349 else
25350 wxUSE_LIBTIFF=sys
25351 fi
25352 fi
25353fi
25354
25355
47a7e797
MW
25356if test "$wxUSE_WCHAR_T" != "yes"; then
25357 if test "$wxUSE_EXPAT" != "no"; then
25358 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25359echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25360 wxUSE_EXPAT=no
25361 fi
25362 if test "$wxUSE_XML" != "no"; then
25363 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25364echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25365 wxUSE_XML=no
25366 fi
25367fi
25368
a848cd7e
SC
25369if test "$wxUSE_EXPAT" != "no"; then
25370 wxUSE_XML=yes
25371 cat >>confdefs.h <<\_ACEOF
25372#define wxUSE_EXPAT 1
25373_ACEOF
25374
25375 cat >>confdefs.h <<\_ACEOF
25376#define wxUSE_XML 1
25377_ACEOF
25378
25379
25380 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25381 if test "${ac_cv_header_expat_h+set}" = set; then
25382 echo "$as_me:$LINENO: checking for expat.h" >&5
25383echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25384if test "${ac_cv_header_expat_h+set}" = set; then
25385 echo $ECHO_N "(cached) $ECHO_C" >&6
25386fi
25387echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25388echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25389else
25390 # Is the header compilable?
25391echo "$as_me:$LINENO: checking expat.h usability" >&5
25392echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25393cat >conftest.$ac_ext <<_ACEOF
25394/* confdefs.h. */
25395_ACEOF
25396cat confdefs.h >>conftest.$ac_ext
25397cat >>conftest.$ac_ext <<_ACEOF
25398/* end confdefs.h. */
25399$ac_includes_default
25400#include <expat.h>
25401_ACEOF
25402rm -f conftest.$ac_objext
25403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25404 (eval $ac_compile) 2>conftest.er1
a848cd7e 25405 ac_status=$?
ac1cb8d3
VS
25406 grep -v '^ *+' conftest.er1 >conftest.err
25407 rm -f conftest.er1
25408 cat conftest.err >&5
a848cd7e
SC
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); } &&
2b850ae1
RR
25411 { ac_try='test -z "$ac_c_werror_flag"
25412 || test ! -s conftest.err'
ac1cb8d3
VS
25413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414 (eval $ac_try) 2>&5
25415 ac_status=$?
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); }; } &&
25418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25420 (eval $ac_try) 2>&5
25421 ac_status=$?
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }; }; then
25424 ac_header_compiler=yes
25425else
25426 echo "$as_me: failed program was:" >&5
25427sed 's/^/| /' conftest.$ac_ext >&5
25428
25429ac_header_compiler=no
25430fi
ac1cb8d3 25431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25432echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25433echo "${ECHO_T}$ac_header_compiler" >&6
25434
25435# Is the header present?
25436echo "$as_me:$LINENO: checking expat.h presence" >&5
25437echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25438cat >conftest.$ac_ext <<_ACEOF
25439/* confdefs.h. */
25440_ACEOF
25441cat confdefs.h >>conftest.$ac_ext
25442cat >>conftest.$ac_ext <<_ACEOF
25443/* end confdefs.h. */
25444#include <expat.h>
25445_ACEOF
25446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25448 ac_status=$?
25449 grep -v '^ *+' conftest.er1 >conftest.err
25450 rm -f conftest.er1
25451 cat conftest.err >&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } >/dev/null; then
25454 if test -s conftest.err; then
25455 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25457 else
25458 ac_cpp_err=
25459 fi
25460else
25461 ac_cpp_err=yes
25462fi
25463if test -z "$ac_cpp_err"; then
25464 ac_header_preproc=yes
25465else
25466 echo "$as_me: failed program was:" >&5
25467sed 's/^/| /' conftest.$ac_ext >&5
25468
25469 ac_header_preproc=no
25470fi
25471rm -f conftest.err conftest.$ac_ext
25472echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25473echo "${ECHO_T}$ac_header_preproc" >&6
25474
25475# So? What about this header?
ac1cb8d3
VS
25476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25477 yes:no: )
a848cd7e
SC
25478 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25479echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25480 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25481echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25482 ac_header_preproc=yes
a848cd7e 25483 ;;
ac1cb8d3 25484 no:yes:* )
a848cd7e
SC
25485 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25486echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25487 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25488echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25489 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25490echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25491 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25492echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25493 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25494echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25495 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25496echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25497 (
25498 cat <<\_ASBOX
ac1cb8d3
VS
25499## ----------------------------------------- ##
25500## Report this to wx-dev@lists.wxwidgets.org ##
25501## ----------------------------------------- ##
a848cd7e
SC
25502_ASBOX
25503 ) |
25504 sed "s/^/$as_me: WARNING: /" >&2
25505 ;;
25506esac
25507echo "$as_me:$LINENO: checking for expat.h" >&5
25508echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25509if test "${ac_cv_header_expat_h+set}" = set; then
25510 echo $ECHO_N "(cached) $ECHO_C" >&6
25511else
25512 ac_cv_header_expat_h=$ac_header_preproc
25513fi
25514echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25515echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25516
25517fi
25518if test $ac_cv_header_expat_h = yes; then
25519 found_expat_h=1
25520fi
25521
25522
25523 if test "x$found_expat_h" = "x1"; then
25524 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25525echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25526if test "${wx_cv_expat_is_not_broken+set}" = set; then
25527 echo $ECHO_N "(cached) $ECHO_C" >&6
25528else
25529
a848cd7e
SC
25530 ac_ext=cc
25531ac_cpp='$CXXCPP $CPPFLAGS'
25532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25535
25536 cat >conftest.$ac_ext <<_ACEOF
25537/* confdefs.h. */
25538_ACEOF
25539cat confdefs.h >>conftest.$ac_ext
25540cat >>conftest.$ac_ext <<_ACEOF
25541/* end confdefs.h. */
25542#include <expat.h>
25543int
25544main ()
25545{
25546
25547 ;
25548 return 0;
25549}
25550_ACEOF
25551rm -f conftest.$ac_objext
25552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25553 (eval $ac_compile) 2>conftest.er1
a848cd7e 25554 ac_status=$?
ac1cb8d3
VS
25555 grep -v '^ *+' conftest.er1 >conftest.err
25556 rm -f conftest.er1
25557 cat conftest.err >&5
a848cd7e
SC
25558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); } &&
2b850ae1
RR
25560 { ac_try='test -z "$ac_cxx_werror_flag"
25561 || test ! -s conftest.err'
ac1cb8d3
VS
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; } &&
25567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569 (eval $ac_try) 2>&5
25570 ac_status=$?
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); }; }; then
25573 wx_cv_expat_is_not_broken=yes
25574else
25575 echo "$as_me: failed program was:" >&5
25576sed 's/^/| /' conftest.$ac_ext >&5
25577
25578wx_cv_expat_is_not_broken=no
25579
25580fi
ac1cb8d3 25581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25582 ac_ext=c
25583ac_cpp='$CPP $CPPFLAGS'
25584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25586ac_compiler_gnu=$ac_cv_c_compiler_gnu
25587
25588
25589
25590fi
25591echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25592echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25593 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25594 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25595echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25596if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25597 echo $ECHO_N "(cached) $ECHO_C" >&6
25598else
25599 ac_check_lib_save_LIBS=$LIBS
25600LIBS="-lexpat $LIBS"
25601cat >conftest.$ac_ext <<_ACEOF
25602/* confdefs.h. */
25603_ACEOF
25604cat confdefs.h >>conftest.$ac_ext
25605cat >>conftest.$ac_ext <<_ACEOF
25606/* end confdefs.h. */
25607
25608/* Override any gcc2 internal prototype to avoid an error. */
25609#ifdef __cplusplus
25610extern "C"
25611#endif
25612/* We use char because int might match the return type of a gcc2
25613 builtin and then its argument prototype would still apply. */
25614char XML_ParserCreate ();
25615int
25616main ()
25617{
25618XML_ParserCreate ();
25619 ;
25620 return 0;
25621}
25622_ACEOF
25623rm -f conftest.$ac_objext conftest$ac_exeext
25624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25625 (eval $ac_link) 2>conftest.er1
a848cd7e 25626 ac_status=$?
ac1cb8d3
VS
25627 grep -v '^ *+' conftest.er1 >conftest.err
25628 rm -f conftest.er1
25629 cat conftest.err >&5
a848cd7e
SC
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); } &&
2b850ae1
RR
25632 { ac_try='test -z "$ac_c_werror_flag"
25633 || test ! -s conftest.err'
ac1cb8d3
VS
25634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635 (eval $ac_try) 2>&5
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; } &&
25639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25641 (eval $ac_try) 2>&5
25642 ac_status=$?
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); }; }; then
25645 ac_cv_lib_expat_XML_ParserCreate=yes
25646else
25647 echo "$as_me: failed program was:" >&5
25648sed 's/^/| /' conftest.$ac_ext >&5
25649
25650ac_cv_lib_expat_XML_ParserCreate=no
25651fi
ac1cb8d3
VS
25652rm -f conftest.err conftest.$ac_objext \
25653 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25654LIBS=$ac_check_lib_save_LIBS
25655fi
25656echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25657echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25658if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25659 EXPAT_LINK=" -lexpat"
25660fi
25661
25662 fi
25663 fi
25664 if test "x$EXPAT_LINK" = "x" ; then
25665 if test "$wxUSE_EXPAT" = "sys" ; then
25666 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25667echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25668 { (exit 1); exit 1; }; }
25669 else
25670 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25671echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25672 wxUSE_EXPAT=builtin
25673 fi
25674 else
25675 wxUSE_EXPAT=sys
25676 fi
25677 fi
25678 if test "$wxUSE_EXPAT" = "builtin" ; then
25679
25680
25681subdirs="$subdirs src/expat"
25682
25683 fi
25684fi
25685
25686
25687
25688if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25689 if test "${ac_cv_header_mspack_h+set}" = set; then
25690 echo "$as_me:$LINENO: checking for mspack.h" >&5
25691echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25692if test "${ac_cv_header_mspack_h+set}" = set; then
25693 echo $ECHO_N "(cached) $ECHO_C" >&6
25694fi
25695echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25696echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25697else
25698 # Is the header compilable?
25699echo "$as_me:$LINENO: checking mspack.h usability" >&5
25700echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25701cat >conftest.$ac_ext <<_ACEOF
25702/* confdefs.h. */
25703_ACEOF
25704cat confdefs.h >>conftest.$ac_ext
25705cat >>conftest.$ac_ext <<_ACEOF
25706/* end confdefs.h. */
25707$ac_includes_default
25708#include <mspack.h>
25709_ACEOF
25710rm -f conftest.$ac_objext
25711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25712 (eval $ac_compile) 2>conftest.er1
a848cd7e 25713 ac_status=$?
ac1cb8d3
VS
25714 grep -v '^ *+' conftest.er1 >conftest.err
25715 rm -f conftest.er1
25716 cat conftest.err >&5
a848cd7e
SC
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } &&
2b850ae1
RR
25719 { ac_try='test -z "$ac_c_werror_flag"
25720 || test ! -s conftest.err'
ac1cb8d3
VS
25721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722 (eval $ac_try) 2>&5
25723 ac_status=$?
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); }; } &&
25726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25729 ac_status=$?
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 ac_header_compiler=yes
25733else
25734 echo "$as_me: failed program was:" >&5
25735sed 's/^/| /' conftest.$ac_ext >&5
25736
25737ac_header_compiler=no
25738fi
ac1cb8d3 25739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25740echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25741echo "${ECHO_T}$ac_header_compiler" >&6
25742
25743# Is the header present?
25744echo "$as_me:$LINENO: checking mspack.h presence" >&5
25745echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25746cat >conftest.$ac_ext <<_ACEOF
25747/* confdefs.h. */
25748_ACEOF
25749cat confdefs.h >>conftest.$ac_ext
25750cat >>conftest.$ac_ext <<_ACEOF
25751/* end confdefs.h. */
25752#include <mspack.h>
25753_ACEOF
25754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25756 ac_status=$?
25757 grep -v '^ *+' conftest.er1 >conftest.err
25758 rm -f conftest.er1
25759 cat conftest.err >&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); } >/dev/null; then
25762 if test -s conftest.err; then
25763 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25765 else
25766 ac_cpp_err=
25767 fi
25768else
25769 ac_cpp_err=yes
25770fi
25771if test -z "$ac_cpp_err"; then
25772 ac_header_preproc=yes
25773else
25774 echo "$as_me: failed program was:" >&5
25775sed 's/^/| /' conftest.$ac_ext >&5
25776
25777 ac_header_preproc=no
25778fi
25779rm -f conftest.err conftest.$ac_ext
25780echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25781echo "${ECHO_T}$ac_header_preproc" >&6
25782
25783# So? What about this header?
ac1cb8d3
VS
25784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25785 yes:no: )
a848cd7e
SC
25786 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25787echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25788 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25789echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25790 ac_header_preproc=yes
a848cd7e 25791 ;;
ac1cb8d3 25792 no:yes:* )
a848cd7e
SC
25793 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25794echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25795 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25796echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25797 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25798echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25799 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25800echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25801 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25802echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25803 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25804echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25805 (
25806 cat <<\_ASBOX
ac1cb8d3
VS
25807## ----------------------------------------- ##
25808## Report this to wx-dev@lists.wxwidgets.org ##
25809## ----------------------------------------- ##
a848cd7e
SC
25810_ASBOX
25811 ) |
25812 sed "s/^/$as_me: WARNING: /" >&2
25813 ;;
25814esac
25815echo "$as_me:$LINENO: checking for mspack.h" >&5
25816echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25817if test "${ac_cv_header_mspack_h+set}" = set; then
25818 echo $ECHO_N "(cached) $ECHO_C" >&6
25819else
25820 ac_cv_header_mspack_h=$ac_header_preproc
25821fi
25822echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25823echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25824
25825fi
25826if test $ac_cv_header_mspack_h = yes; then
25827 found_mspack_h=1
25828fi
25829
25830
25831 if test "x$found_mspack_h" = "x1"; then
25832 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25833echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25834if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25836else
25837 ac_check_lib_save_LIBS=$LIBS
25838LIBS="-lmspack $LIBS"
25839cat >conftest.$ac_ext <<_ACEOF
25840/* confdefs.h. */
25841_ACEOF
25842cat confdefs.h >>conftest.$ac_ext
25843cat >>conftest.$ac_ext <<_ACEOF
25844/* end confdefs.h. */
25845
25846/* Override any gcc2 internal prototype to avoid an error. */
25847#ifdef __cplusplus
25848extern "C"
25849#endif
25850/* We use char because int might match the return type of a gcc2
25851 builtin and then its argument prototype would still apply. */
25852char mspack_create_chm_decompressor ();
25853int
25854main ()
25855{
25856mspack_create_chm_decompressor ();
25857 ;
25858 return 0;
25859}
25860_ACEOF
25861rm -f conftest.$ac_objext conftest$ac_exeext
25862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25863 (eval $ac_link) 2>conftest.er1
a848cd7e 25864 ac_status=$?
ac1cb8d3
VS
25865 grep -v '^ *+' conftest.er1 >conftest.err
25866 rm -f conftest.er1
25867 cat conftest.err >&5
a848cd7e
SC
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } &&
2b850ae1
RR
25870 { ac_try='test -z "$ac_c_werror_flag"
25871 || test ! -s conftest.err'
ac1cb8d3
VS
25872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25873 (eval $ac_try) 2>&5
25874 ac_status=$?
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); }; } &&
25877 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879 (eval $ac_try) 2>&5
25880 ac_status=$?
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; }; then
25883 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25884else
25885 echo "$as_me: failed program was:" >&5
25886sed 's/^/| /' conftest.$ac_ext >&5
25887
25888ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25889fi
ac1cb8d3
VS
25890rm -f conftest.err conftest.$ac_objext \
25891 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25892LIBS=$ac_check_lib_save_LIBS
25893fi
25894echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25895echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25896if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25897 MSPACK_LINK=" -lmspack"
25898fi
25899
25900 fi
25901 if test "x$MSPACK_LINK" = "x" ; then
25902 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25903 fi
25904fi
25905
25906if test "$wxUSE_LIBMSPACK" != "no"; then
25907 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25908#define wxUSE_LIBMSPACK 1
25909_ACEOF
25910
a848cd7e
SC
25911fi
25912
25913
25914
25915AFMINSTALL=
25916WIN32INSTALL=
25917
25918TOOLKIT=
25919TOOLKIT_INCLUDE=
25920WIDGET_SET=
25921
25922if test "$USE_WIN32" = 1 ; then
25923
25924for ac_header in w32api.h
25925do
25926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25927if eval "test \"\${$as_ac_Header+set}\" = set"; then
25928 echo "$as_me:$LINENO: checking for $ac_header" >&5
25929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25930if eval "test \"\${$as_ac_Header+set}\" = set"; then
25931 echo $ECHO_N "(cached) $ECHO_C" >&6
25932fi
25933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25935else
25936 # Is the header compilable?
25937echo "$as_me:$LINENO: checking $ac_header usability" >&5
25938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25939cat >conftest.$ac_ext <<_ACEOF
25940/* confdefs.h. */
25941_ACEOF
25942cat confdefs.h >>conftest.$ac_ext
25943cat >>conftest.$ac_ext <<_ACEOF
25944/* end confdefs.h. */
25945$ac_includes_default
25946#include <$ac_header>
25947_ACEOF
25948rm -f conftest.$ac_objext
25949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25950 (eval $ac_compile) 2>conftest.er1
a848cd7e 25951 ac_status=$?
ac1cb8d3
VS
25952 grep -v '^ *+' conftest.er1 >conftest.err
25953 rm -f conftest.er1
25954 cat conftest.err >&5
a848cd7e
SC
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } &&
2b850ae1
RR
25957 { ac_try='test -z "$ac_c_werror_flag"
25958 || test ! -s conftest.err'
ac1cb8d3
VS
25959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960 (eval $ac_try) 2>&5
25961 ac_status=$?
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); }; } &&
25964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966 (eval $ac_try) 2>&5
25967 ac_status=$?
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); }; }; then
25970 ac_header_compiler=yes
25971else
25972 echo "$as_me: failed program was:" >&5
25973sed 's/^/| /' conftest.$ac_ext >&5
25974
25975ac_header_compiler=no
25976fi
ac1cb8d3 25977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25978echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25979echo "${ECHO_T}$ac_header_compiler" >&6
25980
25981# Is the header present?
25982echo "$as_me:$LINENO: checking $ac_header presence" >&5
25983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25984cat >conftest.$ac_ext <<_ACEOF
25985/* confdefs.h. */
25986_ACEOF
25987cat confdefs.h >>conftest.$ac_ext
25988cat >>conftest.$ac_ext <<_ACEOF
25989/* end confdefs.h. */
25990#include <$ac_header>
25991_ACEOF
25992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25994 ac_status=$?
25995 grep -v '^ *+' conftest.er1 >conftest.err
25996 rm -f conftest.er1
25997 cat conftest.err >&5
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); } >/dev/null; then
26000 if test -s conftest.err; then
26001 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26003 else
26004 ac_cpp_err=
26005 fi
26006else
26007 ac_cpp_err=yes
26008fi
26009if test -z "$ac_cpp_err"; then
26010 ac_header_preproc=yes
26011else
26012 echo "$as_me: failed program was:" >&5
26013sed 's/^/| /' conftest.$ac_ext >&5
26014
26015 ac_header_preproc=no
26016fi
26017rm -f conftest.err conftest.$ac_ext
26018echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26019echo "${ECHO_T}$ac_header_preproc" >&6
26020
26021# So? What about this header?
ac1cb8d3
VS
26022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26023 yes:no: )
a848cd7e
SC
26024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26027echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26028 ac_header_preproc=yes
a848cd7e 26029 ;;
ac1cb8d3 26030 no:yes:* )
a848cd7e
SC
26031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26034echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26036echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26038echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26042echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26043 (
26044 cat <<\_ASBOX
ac1cb8d3
VS
26045## ----------------------------------------- ##
26046## Report this to wx-dev@lists.wxwidgets.org ##
26047## ----------------------------------------- ##
a848cd7e
SC
26048_ASBOX
26049 ) |
26050 sed "s/^/$as_me: WARNING: /" >&2
26051 ;;
26052esac
26053echo "$as_me:$LINENO: checking for $ac_header" >&5
26054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26055if eval "test \"\${$as_ac_Header+set}\" = set"; then
26056 echo $ECHO_N "(cached) $ECHO_C" >&6
26057else
ac1cb8d3 26058 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26059fi
26060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26062
26063fi
26064if test `eval echo '${'$as_ac_Header'}'` = yes; then
26065 cat >>confdefs.h <<_ACEOF
26066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26067_ACEOF
26068
26069fi
26070
26071done
26072
26073 if test "${ac_cv_header_windows_h+set}" = set; then
26074 echo "$as_me:$LINENO: checking for windows.h" >&5
26075echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26076if test "${ac_cv_header_windows_h+set}" = set; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26078fi
26079echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26080echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26081else
26082 # Is the header compilable?
26083echo "$as_me:$LINENO: checking windows.h usability" >&5
26084echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26085cat >conftest.$ac_ext <<_ACEOF
26086/* confdefs.h. */
26087_ACEOF
26088cat confdefs.h >>conftest.$ac_ext
26089cat >>conftest.$ac_ext <<_ACEOF
26090/* end confdefs.h. */
26091$ac_includes_default
26092#include <windows.h>
26093_ACEOF
26094rm -f conftest.$ac_objext
26095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26096 (eval $ac_compile) 2>conftest.er1
a848cd7e 26097 ac_status=$?
ac1cb8d3
VS
26098 grep -v '^ *+' conftest.er1 >conftest.err
26099 rm -f conftest.er1
26100 cat conftest.err >&5
a848cd7e
SC
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } &&
2b850ae1
RR
26103 { ac_try='test -z "$ac_c_werror_flag"
26104 || test ! -s conftest.err'
ac1cb8d3
VS
26105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26106 (eval $ac_try) 2>&5
26107 ac_status=$?
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); }; } &&
26110 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26112 (eval $ac_try) 2>&5
26113 ac_status=$?
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); }; }; then
26116 ac_header_compiler=yes
26117else
26118 echo "$as_me: failed program was:" >&5
26119sed 's/^/| /' conftest.$ac_ext >&5
26120
26121ac_header_compiler=no
26122fi
ac1cb8d3 26123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26124echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26125echo "${ECHO_T}$ac_header_compiler" >&6
26126
26127# Is the header present?
26128echo "$as_me:$LINENO: checking windows.h presence" >&5
26129echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26130cat >conftest.$ac_ext <<_ACEOF
26131/* confdefs.h. */
26132_ACEOF
26133cat confdefs.h >>conftest.$ac_ext
26134cat >>conftest.$ac_ext <<_ACEOF
26135/* end confdefs.h. */
26136#include <windows.h>
26137_ACEOF
26138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26140 ac_status=$?
26141 grep -v '^ *+' conftest.er1 >conftest.err
26142 rm -f conftest.er1
26143 cat conftest.err >&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); } >/dev/null; then
26146 if test -s conftest.err; then
26147 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26149 else
26150 ac_cpp_err=
26151 fi
26152else
26153 ac_cpp_err=yes
26154fi
26155if test -z "$ac_cpp_err"; then
26156 ac_header_preproc=yes
26157else
26158 echo "$as_me: failed program was:" >&5
26159sed 's/^/| /' conftest.$ac_ext >&5
26160
26161 ac_header_preproc=no
26162fi
26163rm -f conftest.err conftest.$ac_ext
26164echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26165echo "${ECHO_T}$ac_header_preproc" >&6
26166
26167# So? What about this header?
ac1cb8d3
VS
26168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26169 yes:no: )
a848cd7e
SC
26170 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26171echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26172 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26173echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26174 ac_header_preproc=yes
a848cd7e 26175 ;;
ac1cb8d3 26176 no:yes:* )
a848cd7e
SC
26177 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26178echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26179 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26180echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26181 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26182echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26183 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26184echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26185 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26186echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26187 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26188echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26189 (
26190 cat <<\_ASBOX
ac1cb8d3
VS
26191## ----------------------------------------- ##
26192## Report this to wx-dev@lists.wxwidgets.org ##
26193## ----------------------------------------- ##
a848cd7e
SC
26194_ASBOX
26195 ) |
26196 sed "s/^/$as_me: WARNING: /" >&2
26197 ;;
26198esac
26199echo "$as_me:$LINENO: checking for windows.h" >&5
26200echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26201if test "${ac_cv_header_windows_h+set}" = set; then
26202 echo $ECHO_N "(cached) $ECHO_C" >&6
26203else
26204 ac_cv_header_windows_h=$ac_header_preproc
26205fi
26206echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26207echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26208
26209fi
26210if test $ac_cv_header_windows_h = yes; then
26211 :
26212else
26213
26214 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26215echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26216 { (exit 1); exit 1; }; }
26217
26218fi
26219
26220
26221
26222 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26223
26224 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26225 LIBS="$LIBS -loleacc"
26226 fi
26227
26228 case "${host}" in
26229 *-*-cygwin* )
26230 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26231 esac
26232
26233 if test "$wxUSE_ODBC" = "sys" ; then
26234 wxUSE_ODBC = "yes"
26235 fi
26236 if test "$wxUSE_ODBC" = "yes" ; then
26237 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26238 cat >>confdefs.h <<\_ACEOF
26239#define wxUSE_ODBC 1
26240_ACEOF
26241
26242 fi
26243
370d2fd7 26244 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26245 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26246
004ee6da 26247 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26248
a848cd7e
SC
26249 WIN32INSTALL=win32install
26250fi
26251
26252if test "$wxUSE_GUI" = "yes"; then
26253 USE_GUI=1
26254
26255 GUI_TK_LIBRARY=
26256
26257 WXGTK12=
26258 WXGTK127=
26259 WXGTK20=
26260 WXGPE=
26261
207bc66c
RN
26262 if test "$wxUSE_COCOA" = 1 ; then
26263 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26264 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26265echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26266 wxUSE_PRINTING_ARCHITECTURE=no
26267 fi
26268 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26269 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26270echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26271 wxUSE_DRAG_AND_DROP=no
26272 fi
26273 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26274 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26275echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26276 wxUSE_DRAGIMAGE=no
26277 fi
26278 fi
26279
a848cd7e
SC
26280 if test "$wxUSE_MSW" = 1 ; then
26281 TOOLKIT=MSW
26282 GUIDIST=MSW_DIST
26283
ceec2216 26284 case "${host}" in
a848cd7e
SC
26285 *-*-mingw32* )
26286 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26287 esac
26288 fi
26289
26290 if test "$wxUSE_GTK" = 1; then
26291 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26292echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26293
26294 gtk_version_cached=1
26295 if test "${wx_cv_lib_gtk+set}" = set; then
26296 echo $ECHO_N "(cached) $ECHO_C" >&6
26297else
26298
26299 gtk_version_cached=0
26300 echo "$as_me:$LINENO: result: " >&5
26301echo "${ECHO_T}" >&6
26302
26303 GTK_MODULES=
26304 if test "$wxUSE_THREADS" = "yes"; then
26305 GTK_MODULES=gthread
26306 fi
26307
f597b41c 26308 wx_cv_lib_gtk=
5001df0d
MW
26309 if test "x$wxGTK_VERSION" != "x1"
26310 then
26311 case "${host}" in
26312 *-*-solaris2* )
26313 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26314 enable_gtktest=no
5001df0d
MW
26315 fi
26316 esac
26317
a848cd7e
SC
26318 # Check whether --enable-gtktest or --disable-gtktest was given.
26319if test "${enable_gtktest+set}" = set; then
26320 enableval="$enable_gtktest"
26321
26322else
26323 enable_gtktest=yes
26324fi;
26325
26326 pkg_config_args=gtk+-2.0
26327 for module in . $GTK_MODULES
26328 do
26329 case "$module" in
26330 gthread)
26331 pkg_config_args="$pkg_config_args gthread-2.0"
26332 ;;
26333 esac
26334 done
26335
26336 no_gtk=""
26337
26338 # Extract the first word of "pkg-config", so it can be a program name with args.
26339set dummy pkg-config; ac_word=$2
26340echo "$as_me:$LINENO: checking for $ac_word" >&5
26341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26342if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26343 echo $ECHO_N "(cached) $ECHO_C" >&6
26344else
26345 case $PKG_CONFIG in
26346 [\\/]* | ?:[\\/]*)
26347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26348 ;;
26349 *)
26350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26351for as_dir in $PATH
26352do
26353 IFS=$as_save_IFS
26354 test -z "$as_dir" && as_dir=.
26355 for ac_exec_ext in '' $ac_executable_extensions; do
26356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26357 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26359 break 2
26360 fi
26361done
26362done
26363
26364 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26365 ;;
26366esac
26367fi
26368PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26369
26370if test -n "$PKG_CONFIG"; then
26371 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26372echo "${ECHO_T}$PKG_CONFIG" >&6
26373else
26374 echo "$as_me:$LINENO: result: no" >&5
26375echo "${ECHO_T}no" >&6
26376fi
26377
26378
26379 if test x$PKG_CONFIG != xno ; then
26380 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26381 :
26382 else
c2218763 26383 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26384 no_gtk=yes
26385 PKG_CONFIG=no
26386 fi
26387 else
26388 no_gtk=yes
26389 fi
26390
26391 min_gtk_version=2.0.0
26392 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26393echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26394
26395 if test x$PKG_CONFIG != xno ; then
26396 ## don't try to run the test against uninstalled libtool libs
26397 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26398 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26399 enable_gtktest=no
26400 fi
26401
26402 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26403 :
26404 else
26405 no_gtk=yes
26406 fi
26407 fi
26408
26409 if test x"$no_gtk" = x ; then
26410 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26411 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26412 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26413 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26414 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26415 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26416 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26417 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26418 if test "x$enable_gtktest" = "xyes" ; then
26419 ac_save_CFLAGS="$CFLAGS"
26420 ac_save_LIBS="$LIBS"
26421 CFLAGS="$CFLAGS $GTK_CFLAGS"
26422 LIBS="$GTK_LIBS $LIBS"
26423 rm -f conf.gtktest
26424 if test "$cross_compiling" = yes; then
26425 echo $ac_n "cross compiling; assumed OK... $ac_c"
26426else
26427 cat >conftest.$ac_ext <<_ACEOF
26428/* confdefs.h. */
26429_ACEOF
26430cat confdefs.h >>conftest.$ac_ext
26431cat >>conftest.$ac_ext <<_ACEOF
26432/* end confdefs.h. */
26433
26434#include <gtk/gtk.h>
26435#include <stdio.h>
26436#include <stdlib.h>
26437
26438int
26439main ()
26440{
26441 int major, minor, micro;
26442 char *tmp_version;
26443
26444 system ("touch conf.gtktest");
26445
26446 /* HP/UX 9 (%@#!) writes to sscanf strings */
26447 tmp_version = g_strdup("$min_gtk_version");
26448 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26449 printf("%s, bad version string\n", "$min_gtk_version");
26450 exit(1);
26451 }
26452
26453 if ((gtk_major_version != $gtk_config_major_version) ||
26454 (gtk_minor_version != $gtk_config_minor_version) ||
26455 (gtk_micro_version != $gtk_config_micro_version))
26456 {
26457 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26458 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26459 gtk_major_version, gtk_minor_version, gtk_micro_version);
26460 printf ("*** was found! If pkg-config was correct, then it is best\n");
26461 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26462 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26463 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26464 printf("*** required on your system.\n");
26465 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26466 printf("*** to point to the correct configuration files\n");
26467 }
26468 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26469 (gtk_minor_version != GTK_MINOR_VERSION) ||
26470 (gtk_micro_version != GTK_MICRO_VERSION))
26471 {
26472 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26473 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26474 printf("*** library (version %d.%d.%d)\n",
26475 gtk_major_version, gtk_minor_version, gtk_micro_version);
26476 }
26477 else
26478 {
26479 if ((gtk_major_version > major) ||
26480 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26481 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26482 {
26483 return 0;
26484 }
26485 else
26486 {
26487 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26488 gtk_major_version, gtk_minor_version, gtk_micro_version);
26489 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26490 major, minor, micro);
26491 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26492 printf("***\n");
26493 printf("*** If you have already installed a sufficiently new version, this error\n");
26494 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26495 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26496 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26497 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26498 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26499 printf("*** so that the correct libraries are found at run-time))\n");
26500 }
26501 }
26502 return 1;
26503}
26504
26505_ACEOF
26506rm -f conftest$ac_exeext
26507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26508 (eval $ac_link) 2>&5
26509 ac_status=$?
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513 (eval $ac_try) 2>&5
26514 ac_status=$?
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); }; }; then
26517 :
26518else
26519 echo "$as_me: program exited with status $ac_status" >&5
26520echo "$as_me: failed program was:" >&5
26521sed 's/^/| /' conftest.$ac_ext >&5
26522
26523( exit $ac_status )
26524no_gtk=yes
26525fi
ac1cb8d3 26526rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26527fi
26528 CFLAGS="$ac_save_CFLAGS"
26529 LIBS="$ac_save_LIBS"
26530 fi
26531 fi
26532 if test "x$no_gtk" = x ; then
26533 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26534echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26535 wx_cv_lib_gtk=2.0
26536 else
26537 echo "$as_me:$LINENO: result: no" >&5
26538echo "${ECHO_T}no" >&6
26539 if test "$PKG_CONFIG" = "no" ; then
26540 echo "*** A new enough version of pkg-config was not found."
26541 echo "*** See http://pkgconfig.sourceforge.net"
26542 else
26543 if test -f conf.gtktest ; then
26544 :
26545 else
26546 echo "*** Could not run GTK+ test program, checking why..."
26547 ac_save_CFLAGS="$CFLAGS"
26548 ac_save_LIBS="$LIBS"
26549 CFLAGS="$CFLAGS $GTK_CFLAGS"
26550 LIBS="$LIBS $GTK_LIBS"
26551 cat >conftest.$ac_ext <<_ACEOF
26552/* confdefs.h. */
26553_ACEOF
26554cat confdefs.h >>conftest.$ac_ext
26555cat >>conftest.$ac_ext <<_ACEOF
26556/* end confdefs.h. */
26557
26558#include <gtk/gtk.h>
26559#include <stdio.h>
26560
26561int
26562main ()
26563{
26564 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26565 ;
26566 return 0;
26567}
26568_ACEOF
26569rm -f conftest.$ac_objext conftest$ac_exeext
26570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26571 (eval $ac_link) 2>conftest.er1
a848cd7e 26572 ac_status=$?
ac1cb8d3
VS
26573 grep -v '^ *+' conftest.er1 >conftest.err
26574 rm -f conftest.er1
26575 cat conftest.err >&5
a848cd7e
SC
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); } &&
2b850ae1
RR
26578 { ac_try='test -z "$ac_c_werror_flag"
26579 || test ! -s conftest.err'
ac1cb8d3
VS
26580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26581 (eval $ac_try) 2>&5
26582 ac_status=$?
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); }; } &&
26585 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26587 (eval $ac_try) 2>&5
26588 ac_status=$?
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); }; }; then
26591 echo "*** The test program compiled, but did not run. This usually means"
26592 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26593 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26594 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26595 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26596 echo "*** is required on your system"
26597 echo "***"
26598 echo "*** If you have an old version installed, it is best to remove it, although"
26599 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26600else
26601 echo "$as_me: failed program was:" >&5
26602sed 's/^/| /' conftest.$ac_ext >&5
26603
26604 echo "*** The test program failed to compile or link. See the file config.log for the"
26605 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26606fi
ac1cb8d3
VS
26607rm -f conftest.err conftest.$ac_objext \
26608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26609 CFLAGS="$ac_save_CFLAGS"
26610 LIBS="$ac_save_LIBS"
26611 fi
26612 fi
26613 GTK_CFLAGS=""
26614 GTK_LIBS=""
26615 :
26616 fi
26617
26618
26619 rm -f conf.gtktest
26620
5001df0d
MW
26621
26622 case "${host}" in
26623 *-*-solaris2* )
26624 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26625 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26626 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26627 fi
26628 if test "$wxUSE_SHARED" != "yes"; then
26629 GTK_LIBS="$GTK_LIBS -lX11"
26630 fi
26631 esac
f597b41c
MW
26632 fi
26633
f34ca037
MW
26634 if test -z "$wx_cv_lib_gtk"; then
26635 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26636
26637# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26638if test "${with_gtk_prefix+set}" = set; then
26639 withval="$with_gtk_prefix"
26640 gtk_config_prefix="$withval"
26641else
26642 gtk_config_prefix=""
26643fi;
26644
26645# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26646if test "${with_gtk_exec_prefix+set}" = set; then
26647 withval="$with_gtk_exec_prefix"
26648 gtk_config_exec_prefix="$withval"
26649else
26650 gtk_config_exec_prefix=""
26651fi;
26652# Check whether --enable-gtktest or --disable-gtktest was given.
26653if test "${enable_gtktest+set}" = set; then
26654 enableval="$enable_gtktest"
26655
26656else
26657 enable_gtktest=yes
26658fi;
26659
26660 for module in . $GTK_MODULES
26661 do
26662 case "$module" in
26663 gthread)
26664 gtk_config_args="$gtk_config_args gthread"
26665 ;;
26666 esac
26667 done
26668
26669 if test x$gtk_config_exec_prefix != x ; then
26670 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26671 if test x${GTK_CONFIG+set} != xset ; then
26672 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26673 fi
26674 fi
26675 if test x$gtk_config_prefix != x ; then
26676 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26677 if test x${GTK_CONFIG+set} != xset ; then
26678 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26679 fi
26680 fi
26681
26682 # Extract the first word of "gtk-config", so it can be a program name with args.
26683set dummy gtk-config; ac_word=$2
26684echo "$as_me:$LINENO: checking for $ac_word" >&5
26685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26686if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26687 echo $ECHO_N "(cached) $ECHO_C" >&6
26688else
26689 case $GTK_CONFIG in
26690 [\\/]* | ?:[\\/]*)
26691 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26692 ;;
26693 *)
26694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26695for as_dir in $PATH
26696do
26697 IFS=$as_save_IFS
26698 test -z "$as_dir" && as_dir=.
26699 for ac_exec_ext in '' $ac_executable_extensions; do
26700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26701 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26703 break 2
26704 fi
26705done
26706done
26707
26708 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26709 ;;
26710esac
26711fi
26712GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26713
26714if test -n "$GTK_CONFIG"; then
26715 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26716echo "${ECHO_T}$GTK_CONFIG" >&6
26717else
26718 echo "$as_me:$LINENO: result: no" >&5
26719echo "${ECHO_T}no" >&6
26720fi
26721
26722 min_gtk_version=1.2.7
26723 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26724echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26725 no_gtk=""
26726 if test "$GTK_CONFIG" = "no" ; then
26727 no_gtk=yes
26728 else
26729 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26730 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26731 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26732 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26733 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26734 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26735 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26736 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26737 if test "x$enable_gtktest" = "xyes" ; then
26738 ac_save_CFLAGS="$CFLAGS"
26739 ac_save_LIBS="$LIBS"
26740 CFLAGS="$CFLAGS $GTK_CFLAGS"
26741 LIBS="$GTK_LIBS $LIBS"
26742 rm -f conf.gtktest
26743 if test "$cross_compiling" = yes; then
26744 echo $ac_n "cross compiling; assumed OK... $ac_c"
26745else
26746 cat >conftest.$ac_ext <<_ACEOF
26747/* confdefs.h. */
26748_ACEOF
26749cat confdefs.h >>conftest.$ac_ext
26750cat >>conftest.$ac_ext <<_ACEOF
26751/* end confdefs.h. */
26752
26753#include <gtk/gtk.h>
26754#include <stdio.h>
26755#include <stdlib.h>
26756
26757int
26758main ()
26759{
26760 int major, minor, micro;
26761 char *tmp_version;
26762
26763 system ("touch conf.gtktest");
26764
26765 /* HP/UX 9 (%@#!) writes to sscanf strings */
26766 tmp_version = g_strdup("$min_gtk_version");
26767 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26768 printf("%s, bad version string\n", "$min_gtk_version");
26769 exit(1);
26770 }
26771
26772 if ((gtk_major_version != $gtk_config_major_version) ||
26773 (gtk_minor_version != $gtk_config_minor_version) ||
26774 (gtk_micro_version != $gtk_config_micro_version))
26775 {
26776 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26777 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26778 gtk_major_version, gtk_minor_version, gtk_micro_version);
26779 printf ("*** was found! If gtk-config was correct, then it is best\n");
26780 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26781 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26782 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26783 printf("*** required on your system.\n");
26784 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26785 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26786 printf("*** before re-running configure\n");
26787 }
26788#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26789 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26790 (gtk_minor_version != GTK_MINOR_VERSION) ||
26791 (gtk_micro_version != GTK_MICRO_VERSION))
26792 {
26793 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26794 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26795 printf("*** library (version %d.%d.%d)\n",
26796 gtk_major_version, gtk_minor_version, gtk_micro_version);
26797 }
26798#endif /* defined (GTK_MAJOR_VERSION) ... */
26799 else
26800 {
26801 if ((gtk_major_version > major) ||
26802 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26803 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26804 {
26805 return 0;
26806 }
26807 else
26808 {
26809 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26810 gtk_major_version, gtk_minor_version, gtk_micro_version);
26811 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26812 major, minor, micro);
26813 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26814 printf("***\n");
26815 printf("*** If you have already installed a sufficiently new version, this error\n");
26816 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26817 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26818 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26819 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26820 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26821 printf("*** so that the correct libraries are found at run-time))\n");
26822 }
26823 }
26824 return 1;
26825}
26826
26827_ACEOF
26828rm -f conftest$ac_exeext
26829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26830 (eval $ac_link) 2>&5
26831 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835 (eval $ac_try) 2>&5
26836 ac_status=$?
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; }; then
26839 :
26840else
26841 echo "$as_me: program exited with status $ac_status" >&5
26842echo "$as_me: failed program was:" >&5
26843sed 's/^/| /' conftest.$ac_ext >&5
26844
26845( exit $ac_status )
26846no_gtk=yes
26847fi
ac1cb8d3 26848rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26849fi
26850 CFLAGS="$ac_save_CFLAGS"
26851 LIBS="$ac_save_LIBS"
26852 fi
26853 fi
26854 if test "x$no_gtk" = x ; then
26855 echo "$as_me:$LINENO: result: yes" >&5
26856echo "${ECHO_T}yes" >&6
26857 wx_cv_lib_gtk=1.2.7
26858 else
26859 echo "$as_me:$LINENO: result: no" >&5
26860echo "${ECHO_T}no" >&6
26861 if test "$GTK_CONFIG" = "no" ; then
26862 echo "*** The gtk-config script installed by GTK could not be found"
26863 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26864 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26865 echo "*** full path to gtk-config."
26866 else
26867 if test -f conf.gtktest ; then
26868 :
26869 else
26870 echo "*** Could not run GTK test program, checking why..."
26871 CFLAGS="$CFLAGS $GTK_CFLAGS"
26872 LIBS="$LIBS $GTK_LIBS"
26873 cat >conftest.$ac_ext <<_ACEOF
26874/* confdefs.h. */
26875_ACEOF
26876cat confdefs.h >>conftest.$ac_ext
26877cat >>conftest.$ac_ext <<_ACEOF
26878/* end confdefs.h. */
26879
26880#include <gtk/gtk.h>
26881#include <stdio.h>
26882
26883int
26884main ()
26885{
26886 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26887 ;
26888 return 0;
26889}
26890_ACEOF
26891rm -f conftest.$ac_objext conftest$ac_exeext
26892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26893 (eval $ac_link) 2>conftest.er1
a848cd7e 26894 ac_status=$?
ac1cb8d3
VS
26895 grep -v '^ *+' conftest.er1 >conftest.err
26896 rm -f conftest.er1
26897 cat conftest.err >&5
a848cd7e
SC
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } &&
2b850ae1
RR
26900 { ac_try='test -z "$ac_c_werror_flag"
26901 || test ! -s conftest.err'
ac1cb8d3
VS
26902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903 (eval $ac_try) 2>&5
26904 ac_status=$?
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; } &&
26907 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26909 (eval $ac_try) 2>&5
26910 ac_status=$?
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); }; }; then
26913 echo "*** The test program compiled, but did not run. This usually means"
26914 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26915 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26916 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26917 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26918 echo "*** is required on your system"
26919 echo "***"
26920 echo "*** If you have an old version installed, it is best to remove it, although"
26921 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26922 echo "***"
26923 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26924 echo "*** came with the system with the command"
26925 echo "***"
26926 echo "*** rpm --erase --nodeps gtk gtk-devel"
26927else
26928 echo "$as_me: failed program was:" >&5
26929sed 's/^/| /' conftest.$ac_ext >&5
26930
26931 echo "*** The test program failed to compile or link. See the file config.log for the"
26932 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26933 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26934 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26935fi
ac1cb8d3
VS
26936rm -f conftest.err conftest.$ac_objext \
26937 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26938 CFLAGS="$ac_save_CFLAGS"
26939 LIBS="$ac_save_LIBS"
26940 fi
26941 fi
26942 GTK_CFLAGS=""
26943 GTK_LIBS=""
26944 :
26945 fi
26946
26947
26948 rm -f conf.gtktest
26949
26950
f34ca037 26951 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26952
26953# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26954if test "${with_gtk_prefix+set}" = set; then
26955 withval="$with_gtk_prefix"
26956 gtk_config_prefix="$withval"
26957else
26958 gtk_config_prefix=""
26959fi;
26960
26961# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26962if test "${with_gtk_exec_prefix+set}" = set; then
26963 withval="$with_gtk_exec_prefix"
26964 gtk_config_exec_prefix="$withval"
26965else
26966 gtk_config_exec_prefix=""
26967fi;
26968# Check whether --enable-gtktest or --disable-gtktest was given.
26969if test "${enable_gtktest+set}" = set; then
26970 enableval="$enable_gtktest"
26971
26972else
26973 enable_gtktest=yes
26974fi;
26975
26976 for module in . $GTK_MODULES
26977 do
26978 case "$module" in
26979 gthread)
26980 gtk_config_args="$gtk_config_args gthread"
26981 ;;
26982 esac
26983 done
26984
26985 if test x$gtk_config_exec_prefix != x ; then
26986 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26987 if test x${GTK_CONFIG+set} != xset ; then
26988 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26989 fi
26990 fi
26991 if test x$gtk_config_prefix != x ; then
26992 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26993 if test x${GTK_CONFIG+set} != xset ; then
26994 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26995 fi
26996 fi
26997
26998 # Extract the first word of "gtk-config", so it can be a program name with args.
26999set dummy gtk-config; ac_word=$2
27000echo "$as_me:$LINENO: checking for $ac_word" >&5
27001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27002if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27003 echo $ECHO_N "(cached) $ECHO_C" >&6
27004else
27005 case $GTK_CONFIG in
27006 [\\/]* | ?:[\\/]*)
27007 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27008 ;;
27009 *)
27010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27011for as_dir in $PATH
27012do
27013 IFS=$as_save_IFS
27014 test -z "$as_dir" && as_dir=.
27015 for ac_exec_ext in '' $ac_executable_extensions; do
27016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27017 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27019 break 2
27020 fi
27021done
27022done
27023
27024 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27025 ;;
27026esac
27027fi
27028GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27029
27030if test -n "$GTK_CONFIG"; then
27031 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27032echo "${ECHO_T}$GTK_CONFIG" >&6
27033else
27034 echo "$as_me:$LINENO: result: no" >&5
27035echo "${ECHO_T}no" >&6
27036fi
27037
27038 min_gtk_version=1.2.3
27039 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27040echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27041 no_gtk=""
27042 if test "$GTK_CONFIG" = "no" ; then
27043 no_gtk=yes
27044 else
27045 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27046 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27047 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27048 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27049 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27050 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27051 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27052 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27053 if test "x$enable_gtktest" = "xyes" ; then
27054 ac_save_CFLAGS="$CFLAGS"
27055 ac_save_LIBS="$LIBS"
27056 CFLAGS="$CFLAGS $GTK_CFLAGS"
27057 LIBS="$GTK_LIBS $LIBS"
27058 rm -f conf.gtktest
27059 if test "$cross_compiling" = yes; then
27060 echo $ac_n "cross compiling; assumed OK... $ac_c"
27061else
27062 cat >conftest.$ac_ext <<_ACEOF
27063/* confdefs.h. */
27064_ACEOF
27065cat confdefs.h >>conftest.$ac_ext
27066cat >>conftest.$ac_ext <<_ACEOF
27067/* end confdefs.h. */
27068
27069#include <gtk/gtk.h>
27070#include <stdio.h>
27071#include <stdlib.h>
27072
27073int
27074main ()
27075{
27076 int major, minor, micro;
27077 char *tmp_version;
27078
27079 system ("touch conf.gtktest");
27080
27081 /* HP/UX 9 (%@#!) writes to sscanf strings */
27082 tmp_version = g_strdup("$min_gtk_version");
27083 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27084 printf("%s, bad version string\n", "$min_gtk_version");
27085 exit(1);
27086 }
27087
27088 if ((gtk_major_version != $gtk_config_major_version) ||
27089 (gtk_minor_version != $gtk_config_minor_version) ||
27090 (gtk_micro_version != $gtk_config_micro_version))
27091 {
27092 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27093 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27094 gtk_major_version, gtk_minor_version, gtk_micro_version);
27095 printf ("*** was found! If gtk-config was correct, then it is best\n");
27096 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27097 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27098 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27099 printf("*** required on your system.\n");
27100 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27101 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27102 printf("*** before re-running configure\n");
27103 }
27104#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27105 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27106 (gtk_minor_version != GTK_MINOR_VERSION) ||
27107 (gtk_micro_version != GTK_MICRO_VERSION))
27108 {
27109 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27110 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27111 printf("*** library (version %d.%d.%d)\n",
27112 gtk_major_version, gtk_minor_version, gtk_micro_version);
27113 }
27114#endif /* defined (GTK_MAJOR_VERSION) ... */
27115 else
27116 {
27117 if ((gtk_major_version > major) ||
27118 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27119 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27120 {
27121 return 0;
27122 }
27123 else
27124 {
27125 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27126 gtk_major_version, gtk_minor_version, gtk_micro_version);
27127 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27128 major, minor, micro);
27129 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27130 printf("***\n");
27131 printf("*** If you have already installed a sufficiently new version, this error\n");
27132 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27133 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27134 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27135 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27136 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27137 printf("*** so that the correct libraries are found at run-time))\n");
27138 }
27139 }
27140 return 1;
27141}
27142
27143_ACEOF
27144rm -f conftest$ac_exeext
27145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27146 (eval $ac_link) 2>&5
27147 ac_status=$?
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151 (eval $ac_try) 2>&5
27152 ac_status=$?
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); }; }; then
27155 :
27156else
27157 echo "$as_me: program exited with status $ac_status" >&5
27158echo "$as_me: failed program was:" >&5
27159sed 's/^/| /' conftest.$ac_ext >&5
27160
27161( exit $ac_status )
27162no_gtk=yes
27163fi
ac1cb8d3 27164rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27165fi
27166 CFLAGS="$ac_save_CFLAGS"
27167 LIBS="$ac_save_LIBS"
27168 fi
27169 fi
27170 if test "x$no_gtk" = x ; then
27171 echo "$as_me:$LINENO: result: yes" >&5
27172echo "${ECHO_T}yes" >&6
27173 wx_cv_lib_gtk=1.2.3
27174 else
27175 echo "$as_me:$LINENO: result: no" >&5
27176echo "${ECHO_T}no" >&6
27177 if test "$GTK_CONFIG" = "no" ; then
27178 echo "*** The gtk-config script installed by GTK could not be found"
27179 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27180 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27181 echo "*** full path to gtk-config."
27182 else
27183 if test -f conf.gtktest ; then
27184 :
27185 else
27186 echo "*** Could not run GTK test program, checking why..."
27187 CFLAGS="$CFLAGS $GTK_CFLAGS"
27188 LIBS="$LIBS $GTK_LIBS"
27189 cat >conftest.$ac_ext <<_ACEOF
27190/* confdefs.h. */
27191_ACEOF
27192cat confdefs.h >>conftest.$ac_ext
27193cat >>conftest.$ac_ext <<_ACEOF
27194/* end confdefs.h. */
27195
27196#include <gtk/gtk.h>
27197#include <stdio.h>
27198
27199int
27200main ()
27201{
27202 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27203 ;
27204 return 0;
27205}
27206_ACEOF
27207rm -f conftest.$ac_objext conftest$ac_exeext
27208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27209 (eval $ac_link) 2>conftest.er1
a848cd7e 27210 ac_status=$?
ac1cb8d3
VS
27211 grep -v '^ *+' conftest.er1 >conftest.err
27212 rm -f conftest.er1
27213 cat conftest.err >&5
a848cd7e
SC
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); } &&
2b850ae1
RR
27216 { ac_try='test -z "$ac_c_werror_flag"
27217 || test ! -s conftest.err'
ac1cb8d3
VS
27218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27219 (eval $ac_try) 2>&5
27220 ac_status=$?
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; } &&
27223 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27225 (eval $ac_try) 2>&5
27226 ac_status=$?
27227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228 (exit $ac_status); }; }; then
27229 echo "*** The test program compiled, but did not run. This usually means"
27230 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27231 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27232 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27233 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27234 echo "*** is required on your system"
27235 echo "***"
27236 echo "*** If you have an old version installed, it is best to remove it, although"
27237 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27238 echo "***"
27239 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27240 echo "*** came with the system with the command"
27241 echo "***"
27242 echo "*** rpm --erase --nodeps gtk gtk-devel"
27243else
27244 echo "$as_me: failed program was:" >&5
27245sed 's/^/| /' conftest.$ac_ext >&5
27246
27247 echo "*** The test program failed to compile or link. See the file config.log for the"
27248 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27249 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27250 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27251fi
ac1cb8d3
VS
27252rm -f conftest.err conftest.$ac_objext \
27253 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27254 CFLAGS="$ac_save_CFLAGS"
27255 LIBS="$ac_save_LIBS"
27256 fi
27257 fi
27258 GTK_CFLAGS=""
27259 GTK_LIBS=""
27260 :
27261 fi
27262
27263
27264 rm -f conf.gtktest
27265
f34ca037 27266 fi
a848cd7e
SC
27267 fi
27268 fi
27269
27270 if test -z "$wx_cv_lib_gtk"; then
27271 wx_cv_lib_gtk=none
27272 else
27273 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27274 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27275 fi
27276
27277
27278fi
27279
27280
27281 if test "$gtk_version_cached" = 1; then
27282 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27283echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27284 fi
27285
27286 case "$wx_cv_lib_gtk" in
27287 2.0) WXGTK20=1
27288 TOOLKIT_VERSION=2
27289 ;;
27290 1.2.7) WXGTK127=1
27291 WXGTK12=1
27292 ;;
27293 1.2.3) WXGTK12=1
27294 ;;
27295 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27296The development files for GTK+ were not found. For GTK+ 2, please
27297ensure that pkg-config is in the path and that gtk+-2.0.pc is
27298installed. For GTK+ 1.2 please check that gtk-config is in the path,
27299and that the version is 1.2.3 or above. Also check that the
27300libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27301--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27302 " >&5
27303echo "$as_me: error:
f597b41c
MW
27304The development files for GTK+ were not found. For GTK+ 2, please
27305ensure that pkg-config is in the path and that gtk+-2.0.pc is
27306installed. For GTK+ 1.2 please check that gtk-config is in the path,
27307and that the version is 1.2.3 or above. Also check that the
27308libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27309--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27310 " >&2;}
27311 { (exit 1); exit 1; }; }
27312 ;;
27313 esac
27314
27315 if test "$WXGTK20" = 1; then
304205f1
VS
27316 save_CFLAGS="$CFLAGS"
27317 save_LIBS="$LIBS"
c92ad099 27318 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27319 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27320
d12aef51
VZ
27321 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27322echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27323 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27324/* confdefs.h. */
27325_ACEOF
27326cat confdefs.h >>conftest.$ac_ext
27327cat >>conftest.$ac_ext <<_ACEOF
27328/* end confdefs.h. */
304205f1 27329
d12aef51 27330 #include <gtk/gtk.h>
304205f1 27331
d12aef51
VZ
27332int
27333main ()
27334{
304205f1 27335
d12aef51 27336 void *f = gtk_icon_size_lookup;
abc736fd
MW
27337
27338 ;
27339 return 0;
27340}
27341_ACEOF
27342rm -f conftest.$ac_objext
27343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27344 (eval $ac_compile) 2>conftest.er1
27345 ac_status=$?
27346 grep -v '^ *+' conftest.er1 >conftest.err
27347 rm -f conftest.er1
27348 cat conftest.err >&5
27349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); } &&
2b850ae1
RR
27351 { ac_try='test -z "$ac_c_werror_flag"
27352 || test ! -s conftest.err'
abc736fd
MW
27353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27354 (eval $ac_try) 2>&5
27355 ac_status=$?
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); }; } &&
27358 { ac_try='test -s conftest.$ac_objext'
27359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27360 (eval $ac_try) 2>&5
27361 ac_status=$?
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); }; }; then
27364
27365 echo "$as_me:$LINENO: result: no" >&5
27366echo "${ECHO_T}no" >&6
27367
27368else
27369 echo "$as_me: failed program was:" >&5
27370sed 's/^/| /' conftest.$ac_ext >&5
27371
27372
27373 cat >>confdefs.h <<\_ACEOF
27374#define NEED_GTK_ICON_SIZE_LOOKUP 1
27375_ACEOF
27376
27377 echo "$as_me:$LINENO: result: yes" >&5
27378echo "${ECHO_T}yes" >&6
27379
27380fi
27381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27382
9755e73b
VS
27383 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27384echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27385 cat >conftest.$ac_ext <<_ACEOF
27386/* confdefs.h. */
27387_ACEOF
27388cat confdefs.h >>conftest.$ac_ext
27389cat >>conftest.$ac_ext <<_ACEOF
27390/* end confdefs.h. */
27391
27392 #include <gtk/gtk.h>
27393
27394int
27395main ()
27396{
27397
27398 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27399 Not GTK+ 2.4
9755e73b
VS
27400 #endif
27401
27402 ;
27403 return 0;
27404}
27405_ACEOF
27406rm -f conftest.$ac_objext
27407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27408 (eval $ac_compile) 2>conftest.er1
27409 ac_status=$?
27410 grep -v '^ *+' conftest.er1 >conftest.err
27411 rm -f conftest.er1
27412 cat conftest.err >&5
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); } &&
2b850ae1
RR
27415 { ac_try='test -z "$ac_c_werror_flag"
27416 || test ! -s conftest.err'
9755e73b
VS
27417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27418 (eval $ac_try) 2>&5
27419 ac_status=$?
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); }; } &&
27422 { ac_try='test -s conftest.$ac_objext'
27423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27424 (eval $ac_try) 2>&5
27425 ac_status=$?
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); }; }; then
27428
27429 cat >>confdefs.h <<\_ACEOF
27430#define __WXGTK24__ 1
27431_ACEOF
27432
27433 echo "$as_me:$LINENO: result: yes" >&5
27434echo "${ECHO_T}yes" >&6
27435
27436else
27437 echo "$as_me: failed program was:" >&5
27438sed 's/^/| /' conftest.$ac_ext >&5
27439
27440
27441 echo "$as_me:$LINENO: result: no" >&5
27442echo "${ECHO_T}no" >&6
27443
27444fi
27445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27446
304205f1
VS
27447 CFLAGS="$save_CFLAGS"
27448 LIBS="$save_LIBS"
a848cd7e
SC
27449 else
27450 if test "$wxUSE_UNICODE" = "yes"; then
27451 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27452echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27453 wxUSE_UNICODE=no
27454 fi
27455 fi
27456
27457 if test "$USE_DARWIN" != 1; then
27458
27459for ac_func in poll
27460do
27461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27462echo "$as_me:$LINENO: checking for $ac_func" >&5
27463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27464if eval "test \"\${$as_ac_var+set}\" = set"; then
27465 echo $ECHO_N "(cached) $ECHO_C" >&6
27466else
27467 cat >conftest.$ac_ext <<_ACEOF
27468/* confdefs.h. */
27469_ACEOF
27470cat confdefs.h >>conftest.$ac_ext
27471cat >>conftest.$ac_ext <<_ACEOF
27472/* end confdefs.h. */
ac1cb8d3
VS
27473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27475#define $ac_func innocuous_$ac_func
27476
a848cd7e
SC
27477/* System header to define __stub macros and hopefully few prototypes,
27478 which can conflict with char $ac_func (); below.
27479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27480 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27481
a848cd7e
SC
27482#ifdef __STDC__
27483# include <limits.h>
27484#else
27485# include <assert.h>
27486#endif
ac1cb8d3
VS
27487
27488#undef $ac_func
27489
a848cd7e
SC
27490/* Override any gcc2 internal prototype to avoid an error. */
27491#ifdef __cplusplus
27492extern "C"
27493{
27494#endif
27495/* We use char because int might match the return type of a gcc2
27496 builtin and then its argument prototype would still apply. */
27497char $ac_func ();
27498/* The GNU C library defines this for functions which it implements
27499 to always fail with ENOSYS. Some functions are actually named
27500 something starting with __ and the normal name is an alias. */
27501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27502choke me
27503#else
27504char (*f) () = $ac_func;
27505#endif
27506#ifdef __cplusplus
27507}
27508#endif
27509
27510int
27511main ()
27512{
27513return f != $ac_func;
27514 ;
27515 return 0;
27516}
27517_ACEOF
27518rm -f conftest.$ac_objext conftest$ac_exeext
27519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27520 (eval $ac_link) 2>conftest.er1
a848cd7e 27521 ac_status=$?
ac1cb8d3
VS
27522 grep -v '^ *+' conftest.er1 >conftest.err
27523 rm -f conftest.er1
27524 cat conftest.err >&5
a848cd7e
SC
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); } &&
2b850ae1
RR
27527 { ac_try='test -z "$ac_c_werror_flag"
27528 || test ! -s conftest.err'
ac1cb8d3
VS
27529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530 (eval $ac_try) 2>&5
27531 ac_status=$?
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; } &&
27534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27536 (eval $ac_try) 2>&5
27537 ac_status=$?
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); }; }; then
27540 eval "$as_ac_var=yes"
27541else
27542 echo "$as_me: failed program was:" >&5
27543sed 's/^/| /' conftest.$ac_ext >&5
27544
27545eval "$as_ac_var=no"
27546fi
ac1cb8d3
VS
27547rm -f conftest.err conftest.$ac_objext \
27548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27549fi
27550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27552if test `eval echo '${'$as_ac_var'}'` = yes; then
27553 cat >>confdefs.h <<_ACEOF
27554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27555_ACEOF
27556
27557fi
27558done
27559
27560 fi
27561
27562 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27563 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27564
27565 AFMINSTALL=afminstall
27566 TOOLKIT=GTK
27567 GUIDIST=GTK_DIST
27568
27569 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27570echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27571if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27572 echo $ECHO_N "(cached) $ECHO_C" >&6
27573else
27574 ac_check_lib_save_LIBS=$LIBS
27575LIBS="-lgdk $LIBS"
27576cat >conftest.$ac_ext <<_ACEOF
27577/* confdefs.h. */
27578_ACEOF
27579cat confdefs.h >>conftest.$ac_ext
27580cat >>conftest.$ac_ext <<_ACEOF
27581/* end confdefs.h. */
27582
27583/* Override any gcc2 internal prototype to avoid an error. */
27584#ifdef __cplusplus
27585extern "C"
27586#endif
27587/* We use char because int might match the return type of a gcc2
27588 builtin and then its argument prototype would still apply. */
27589char gdk_im_open ();
27590int
27591main ()
27592{
27593gdk_im_open ();
27594 ;
27595 return 0;
27596}
27597_ACEOF
27598rm -f conftest.$ac_objext conftest$ac_exeext
27599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27600 (eval $ac_link) 2>conftest.er1
a848cd7e 27601 ac_status=$?
ac1cb8d3
VS
27602 grep -v '^ *+' conftest.er1 >conftest.err
27603 rm -f conftest.er1
27604 cat conftest.err >&5
a848cd7e
SC
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); } &&
2b850ae1
RR
27607 { ac_try='test -z "$ac_c_werror_flag"
27608 || test ! -s conftest.err'
ac1cb8d3
VS
27609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610 (eval $ac_try) 2>&5
27611 ac_status=$?
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; } &&
27614 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27616 (eval $ac_try) 2>&5
27617 ac_status=$?
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); }; }; then
27620 ac_cv_lib_gdk_gdk_im_open=yes
27621else
27622 echo "$as_me: failed program was:" >&5
27623sed 's/^/| /' conftest.$ac_ext >&5
27624
27625ac_cv_lib_gdk_gdk_im_open=no
27626fi
ac1cb8d3
VS
27627rm -f conftest.err conftest.$ac_objext \
27628 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27629LIBS=$ac_check_lib_save_LIBS
27630fi
27631echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27632echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27633if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27634 cat >>confdefs.h <<\_ACEOF
27635#define HAVE_XIM 1
27636_ACEOF
27637
27638fi
27639
27640
27641
27642 if test "$wxUSE_GPE" = "yes"; then
27643 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27644echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27645
0ad5d837
VZ
27646 ac_find_libraries=
27647 for ac_dir in $SEARCH_LIB;
a848cd7e 27648 do
3eca31dc 27649 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27650 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27651 ac_find_libraries=$ac_dir
27652 break 2
27653 fi
27654 done
27655 done
27656
27657 if test "$ac_find_libraries" != "" ; then
27658
0ad5d837 27659 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27660 ac_path_to_link=""
27661 else
0ad5d837
VZ
27662 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27663 result=$?
27664 if test $result = 0; then
27665 ac_path_to_link=""
27666 else
27667 ac_path_to_link=" -L$ac_find_libraries"
27668 fi
a848cd7e
SC
27669 fi
27670
27671 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27672 WXGPE=1
0ad5d837
VZ
27673 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27674echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27675 else
27676 echo "$as_me:$LINENO: result: not found" >&5
27677echo "${ECHO_T}not found" >&6
27678 fi
27679
27680 fi
27681 fi
27682
27683 if test "$wxUSE_MGL" = 1; then
27684 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27685echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27686 if test "x$MGL_ROOT" = x ; then
27687 echo "$as_me:$LINENO: result: not found" >&5
27688echo "${ECHO_T}not found" >&6
27689 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27690echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27691 { (exit 1); exit 1; }; }
27692 else
27693 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27694echo "${ECHO_T}$MGL_ROOT" >&6
27695 fi
27696
27697 echo "$as_me:$LINENO: checking for libmgl location" >&5
27698echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27699 case "${host}" in
27700 *-*-linux* )
27701 if test "x$wxUSE_SHARED" = xyes ; then
27702 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27703 else
27704 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27705 fi
27706 ;;
27707 *-pc-msdosdjgpp )
27708 mgl_os_candidates="dos32/dj2"
27709 ;;
27710 *)
27711 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27712echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27713 { (exit 1); exit 1; }; }
27714 esac
27715
27716 mgl_lib_type=""
27717 mgl_os=""
27718
27719 for mgl_os_i in $mgl_os_candidates ; do
27720 if test "x$mgl_os" = x ; then
27721 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27722 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27723 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27724 mgl_lib_type=debug
27725 mgl_os=$mgl_os_i
27726 fi
27727 fi
27728 if test "x$mgl_lib_type" = x ; then
27729 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27730 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27731 mgl_lib_type=release
27732 mgl_os=$mgl_os_i
27733 fi
27734 fi
27735 fi
27736 done
27737
27738 if test "x$mgl_os" = x ; then
27739 echo "$as_me:$LINENO: result: not found" >&5
27740echo "${ECHO_T}not found" >&6
27741 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27742echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27743 { (exit 1); exit 1; }; }
27744 fi
27745 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27746echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27747
27748 wxUSE_UNIVERSAL="yes"
27749
27750 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27751 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27752
27753 AFMINSTALL=afminstall
27754 TOOLKIT=MGL
27755 GUIDIST=MGL_DIST
27756 fi
27757
27758 if test "$wxUSE_MICROWIN" = 1; then
27759 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27760echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27761 if test "x$MICROWINDOWS" = x ; then
27762 echo "$as_me:$LINENO: result: not found" >&5
27763echo "${ECHO_T}not found" >&6
27764 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27765echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27766 { (exit 1); exit 1; }; }
27767 else
27768 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27769echo "${ECHO_T}$MICROWINDOWS" >&6
27770 fi
27771
27772 if test -f $MICROWINDOWS/lib/libmwin.a; then
27773 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27774echo "${ECHO_T}MicroWindows' libraries found." >&6
27775 else
27776 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27777echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27778 { (exit 1); exit 1; }; }
27779 fi
27780
27781 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27782 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27783
27784 wxUSE_UNIVERSAL="yes"
27785
27786 AFMINSTALL=afminstall
27787 TOOLKIT=MICROWIN
27788 GUIDIST=MICROWIN_DIST
27789
27790 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27791 fi
27792
74b84332 27793 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
2b850ae1 27794 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27795echo $ECHO_N "checking for X... $ECHO_C" >&6
27796
27797
27798# Check whether --with-x or --without-x was given.
27799if test "${with_x+set}" = set; then
27800 withval="$with_x"
27801
27802fi;
27803# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27804if test "x$with_x" = xno; then
27805 # The user explicitly disabled X.
27806 have_x=disabled
27807else
27808 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27809 # Both variables are already set.
27810 have_x=yes
27811 else
27812 if test "${ac_cv_have_x+set}" = set; then
27813 echo $ECHO_N "(cached) $ECHO_C" >&6
27814else
27815 # One or both of the vars are not set, and there is no cached value.
27816ac_x_includes=no ac_x_libraries=no
27817rm -fr conftest.dir
27818if mkdir conftest.dir; then
27819 cd conftest.dir
27820 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27821 cat >Imakefile <<'_ACEOF'
27822acfindx:
27823 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27824_ACEOF
27825 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27826 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27827 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27828 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27829 for ac_extension in a so sl; do
27830 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27831 test -f $ac_im_libdir/libX11.$ac_extension; then
27832 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27833 fi
27834 done
27835 # Screen out bogus values from the imake configuration. They are
27836 # bogus both because they are the default anyway, and because
27837 # using them would break gcc on systems where it needs fixed includes.
27838 case $ac_im_incroot in
27839 /usr/include) ;;
27840 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27841 esac
27842 case $ac_im_usrlibdir in
27843 /usr/lib | /lib) ;;
27844 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27845 esac
27846 fi
27847 cd ..
27848 rm -fr conftest.dir
27849fi
27850
27851# Standard set of common directories for X headers.
27852# Check X11 before X11Rn because it is often a symlink to the current release.
27853ac_x_header_dirs='
27854/usr/X11/include
27855/usr/X11R6/include
27856/usr/X11R5/include
27857/usr/X11R4/include
27858
27859/usr/include/X11
27860/usr/include/X11R6
27861/usr/include/X11R5
27862/usr/include/X11R4
27863
27864/usr/local/X11/include
27865/usr/local/X11R6/include
27866/usr/local/X11R5/include
27867/usr/local/X11R4/include
27868
27869/usr/local/include/X11
27870/usr/local/include/X11R6
27871/usr/local/include/X11R5
27872/usr/local/include/X11R4
27873
27874/usr/X386/include
27875/usr/x386/include
27876/usr/XFree86/include/X11
27877
27878/usr/include
27879/usr/local/include
27880/usr/unsupported/include
27881/usr/athena/include
27882/usr/local/x11r5/include
27883/usr/lpp/Xamples/include
27884
27885/usr/openwin/include
27886/usr/openwin/share/include'
27887
27888if test "$ac_x_includes" = no; then
2b850ae1 27889 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
27890 # First, try using that file with no special directory specified.
27891 cat >conftest.$ac_ext <<_ACEOF
27892/* confdefs.h. */
27893_ACEOF
27894cat confdefs.h >>conftest.$ac_ext
27895cat >>conftest.$ac_ext <<_ACEOF
27896/* end confdefs.h. */
2b850ae1 27897#include <X11/Intrinsic.h>
a848cd7e
SC
27898_ACEOF
27899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27901 ac_status=$?
27902 grep -v '^ *+' conftest.er1 >conftest.err
27903 rm -f conftest.er1
27904 cat conftest.err >&5
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); } >/dev/null; then
27907 if test -s conftest.err; then
27908 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27910 else
27911 ac_cpp_err=
27912 fi
27913else
27914 ac_cpp_err=yes
27915fi
27916if test -z "$ac_cpp_err"; then
27917 # We can compile using X headers with no special include directory.
27918ac_x_includes=
27919else
27920 echo "$as_me: failed program was:" >&5
27921sed 's/^/| /' conftest.$ac_ext >&5
27922
27923 for ac_dir in $ac_x_header_dirs; do
2b850ae1 27924 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
27925 ac_x_includes=$ac_dir
27926 break
27927 fi
27928done
27929fi
27930rm -f conftest.err conftest.$ac_ext
27931fi # $ac_x_includes = no
27932
27933if test "$ac_x_libraries" = no; then
27934 # Check for the libraries.
27935 # See if we find them without any special options.
27936 # Don't add to $LIBS permanently.
27937 ac_save_LIBS=$LIBS
2b850ae1 27938 LIBS="-lXt $LIBS"
a848cd7e
SC
27939 cat >conftest.$ac_ext <<_ACEOF
27940/* confdefs.h. */
27941_ACEOF
27942cat confdefs.h >>conftest.$ac_ext
27943cat >>conftest.$ac_ext <<_ACEOF
27944/* end confdefs.h. */
2b850ae1 27945#include <X11/Intrinsic.h>
a848cd7e
SC
27946int
27947main ()
27948{
2b850ae1 27949XtMalloc (0)
a848cd7e
SC
27950 ;
27951 return 0;
27952}
27953_ACEOF
27954rm -f conftest.$ac_objext conftest$ac_exeext
27955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27956 (eval $ac_link) 2>conftest.er1
a848cd7e 27957 ac_status=$?
ac1cb8d3
VS
27958 grep -v '^ *+' conftest.er1 >conftest.err
27959 rm -f conftest.er1
27960 cat conftest.err >&5
a848cd7e
SC
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); } &&
2b850ae1
RR
27963 { ac_try='test -z "$ac_c_werror_flag"
27964 || test ! -s conftest.err'
ac1cb8d3
VS
27965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966 (eval $ac_try) 2>&5
27967 ac_status=$?
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; } &&
27970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27972 (eval $ac_try) 2>&5
27973 ac_status=$?
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); }; }; then
27976 LIBS=$ac_save_LIBS
27977# We can link X programs with no special library path.
27978ac_x_libraries=
27979else
27980 echo "$as_me: failed program was:" >&5
27981sed 's/^/| /' conftest.$ac_ext >&5
27982
27983LIBS=$ac_save_LIBS
27984for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27985do
27986 # Don't even attempt the hair of trying to link an X program!
27987 for ac_extension in a so sl; do
2b850ae1 27988 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
27989 ac_x_libraries=$ac_dir
27990 break 2
27991 fi
27992 done
27993done
27994fi
ac1cb8d3
VS
27995rm -f conftest.err conftest.$ac_objext \
27996 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27997fi # $ac_x_libraries = no
27998
27999if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28000 # Didn't find X anywhere. Cache the known absence of X.
28001 ac_cv_have_x="have_x=no"
28002else
28003 # Record where we found X for the cache.
28004 ac_cv_have_x="have_x=yes \
ac1cb8d3 28005 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28006fi
28007fi
28008
28009 fi
28010 eval "$ac_cv_have_x"
28011fi # $with_x != no
28012
28013if test "$have_x" != yes; then
28014 echo "$as_me:$LINENO: result: $have_x" >&5
28015echo "${ECHO_T}$have_x" >&6
28016 no_x=yes
28017else
28018 # If each of the values was on the command line, it overrides each guess.
28019 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28020 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28021 # Update the cache value to reflect the command line values.
28022 ac_cv_have_x="have_x=yes \
28023 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2b850ae1
RR
28024 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
28025echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
28026fi
28027
28028if test "$no_x" = yes; then
28029 # Not all programs may use this symbol, but it does not hurt to define it.
28030
28031cat >>confdefs.h <<\_ACEOF
28032#define X_DISPLAY_MISSING 1
28033_ACEOF
28034
28035 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28036else
28037 if test -n "$x_includes"; then
28038 X_CFLAGS="$X_CFLAGS -I$x_includes"
28039 fi
28040
28041 # It would also be nice to do this for all -L options, not just this one.
28042 if test -n "$x_libraries"; then
28043 X_LIBS="$X_LIBS -L$x_libraries"
28044 # For Solaris; some versions of Sun CC require a space after -R and
28045 # others require no space. Words are not sufficient . . . .
28046 case `(uname -sr) 2>/dev/null` in
28047 "SunOS 5"*)
28048 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28049echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28050 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28051 cat >conftest.$ac_ext <<_ACEOF
28052/* confdefs.h. */
28053_ACEOF
28054cat confdefs.h >>conftest.$ac_ext
28055cat >>conftest.$ac_ext <<_ACEOF
28056/* end confdefs.h. */
28057
28058int
28059main ()
28060{
28061
28062 ;
28063 return 0;
28064}
28065_ACEOF
28066rm -f conftest.$ac_objext conftest$ac_exeext
28067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28068 (eval $ac_link) 2>conftest.er1
a848cd7e 28069 ac_status=$?
ac1cb8d3
VS
28070 grep -v '^ *+' conftest.er1 >conftest.err
28071 rm -f conftest.er1
28072 cat conftest.err >&5
a848cd7e
SC
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); } &&
2b850ae1
RR
28075 { ac_try='test -z "$ac_c_werror_flag"
28076 || test ! -s conftest.err'
ac1cb8d3
VS
28077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28078 (eval $ac_try) 2>&5
28079 ac_status=$?
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; } &&
28082 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084 (eval $ac_try) 2>&5
28085 ac_status=$?
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; }; then
28088 ac_R_nospace=yes
28089else
28090 echo "$as_me: failed program was:" >&5
28091sed 's/^/| /' conftest.$ac_ext >&5
28092
28093ac_R_nospace=no
28094fi
ac1cb8d3
VS
28095rm -f conftest.err conftest.$ac_objext \
28096 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28097 if test $ac_R_nospace = yes; then
28098 echo "$as_me:$LINENO: result: no" >&5
28099echo "${ECHO_T}no" >&6
28100 X_LIBS="$X_LIBS -R$x_libraries"
28101 else
28102 LIBS="$ac_xsave_LIBS -R $x_libraries"
28103 cat >conftest.$ac_ext <<_ACEOF
28104/* confdefs.h. */
28105_ACEOF
28106cat confdefs.h >>conftest.$ac_ext
28107cat >>conftest.$ac_ext <<_ACEOF
28108/* end confdefs.h. */
28109
28110int
28111main ()
28112{
28113
28114 ;
28115 return 0;
28116}
28117_ACEOF
28118rm -f conftest.$ac_objext conftest$ac_exeext
28119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28120 (eval $ac_link) 2>conftest.er1
a848cd7e 28121 ac_status=$?
ac1cb8d3
VS
28122 grep -v '^ *+' conftest.er1 >conftest.err
28123 rm -f conftest.er1
28124 cat conftest.err >&5
a848cd7e
SC
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); } &&
2b850ae1
RR
28127 { ac_try='test -z "$ac_c_werror_flag"
28128 || test ! -s conftest.err'
ac1cb8d3
VS
28129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130 (eval $ac_try) 2>&5
28131 ac_status=$?
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; } &&
28134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
28140 ac_R_space=yes
28141else
28142 echo "$as_me: failed program was:" >&5
28143sed 's/^/| /' conftest.$ac_ext >&5
28144
28145ac_R_space=no
28146fi
ac1cb8d3
VS
28147rm -f conftest.err conftest.$ac_objext \
28148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28149 if test $ac_R_space = yes; then
28150 echo "$as_me:$LINENO: result: yes" >&5
28151echo "${ECHO_T}yes" >&6
28152 X_LIBS="$X_LIBS -R $x_libraries"
28153 else
28154 echo "$as_me:$LINENO: result: neither works" >&5
28155echo "${ECHO_T}neither works" >&6
28156 fi
28157 fi
28158 LIBS=$ac_xsave_LIBS
28159 esac
28160 fi
28161
28162 # Check for system-dependent libraries X programs must link with.
28163 # Do this before checking for the system-independent R6 libraries
28164 # (-lICE), since we may need -lsocket or whatever for X linking.
28165
28166 if test "$ISC" = yes; then
28167 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28168 else
28169 # Martyn Johnson says this is needed for Ultrix, if the X
28170 # libraries were built with DECnet support. And Karl Berry says
28171 # the Alpha needs dnet_stub (dnet does not exist).
28172 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28173 cat >conftest.$ac_ext <<_ACEOF
28174/* confdefs.h. */
28175_ACEOF
28176cat confdefs.h >>conftest.$ac_ext
28177cat >>conftest.$ac_ext <<_ACEOF
28178/* end confdefs.h. */
28179
28180/* Override any gcc2 internal prototype to avoid an error. */
28181#ifdef __cplusplus
28182extern "C"
28183#endif
28184/* We use char because int might match the return type of a gcc2
28185 builtin and then its argument prototype would still apply. */
28186char XOpenDisplay ();
28187int
28188main ()
28189{
28190XOpenDisplay ();
28191 ;
28192 return 0;
28193}
28194_ACEOF
28195rm -f conftest.$ac_objext conftest$ac_exeext
28196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28197 (eval $ac_link) 2>conftest.er1
a848cd7e 28198 ac_status=$?
ac1cb8d3
VS
28199 grep -v '^ *+' conftest.er1 >conftest.err
28200 rm -f conftest.er1
28201 cat conftest.err >&5
a848cd7e
SC
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); } &&
2b850ae1
RR
28204 { ac_try='test -z "$ac_c_werror_flag"
28205 || test ! -s conftest.err'
ac1cb8d3
VS
28206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28207 (eval $ac_try) 2>&5
28208 ac_status=$?
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; } &&
28211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28213 (eval $ac_try) 2>&5
28214 ac_status=$?
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); }; }; then
28217 :
28218else
28219 echo "$as_me: failed program was:" >&5
28220sed 's/^/| /' conftest.$ac_ext >&5
28221
28222echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28223echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28224if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28225 echo $ECHO_N "(cached) $ECHO_C" >&6
28226else
28227 ac_check_lib_save_LIBS=$LIBS
28228LIBS="-ldnet $LIBS"
28229cat >conftest.$ac_ext <<_ACEOF
28230/* confdefs.h. */
28231_ACEOF
28232cat confdefs.h >>conftest.$ac_ext
28233cat >>conftest.$ac_ext <<_ACEOF
28234/* end confdefs.h. */
28235
28236/* Override any gcc2 internal prototype to avoid an error. */
28237#ifdef __cplusplus
28238extern "C"
28239#endif
28240/* We use char because int might match the return type of a gcc2
28241 builtin and then its argument prototype would still apply. */
28242char dnet_ntoa ();
28243int
28244main ()
28245{
28246dnet_ntoa ();
28247 ;
28248 return 0;
28249}
28250_ACEOF
28251rm -f conftest.$ac_objext conftest$ac_exeext
28252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28253 (eval $ac_link) 2>conftest.er1
a848cd7e 28254 ac_status=$?
ac1cb8d3
VS
28255 grep -v '^ *+' conftest.er1 >conftest.err
28256 rm -f conftest.er1
28257 cat conftest.err >&5
a848cd7e
SC
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); } &&
2b850ae1
RR
28260 { ac_try='test -z "$ac_c_werror_flag"
28261 || test ! -s conftest.err'
ac1cb8d3
VS
28262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263 (eval $ac_try) 2>&5
28264 ac_status=$?
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; } &&
28267 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28269 (eval $ac_try) 2>&5
28270 ac_status=$?
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); }; }; then
28273 ac_cv_lib_dnet_dnet_ntoa=yes
28274else
28275 echo "$as_me: failed program was:" >&5
28276sed 's/^/| /' conftest.$ac_ext >&5
28277
28278ac_cv_lib_dnet_dnet_ntoa=no
28279fi
ac1cb8d3
VS
28280rm -f conftest.err conftest.$ac_objext \
28281 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28282LIBS=$ac_check_lib_save_LIBS
28283fi
28284echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28285echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28286if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28287 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28288fi
28289
28290 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28291 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28292echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28293if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28294 echo $ECHO_N "(cached) $ECHO_C" >&6
28295else
28296 ac_check_lib_save_LIBS=$LIBS
28297LIBS="-ldnet_stub $LIBS"
28298cat >conftest.$ac_ext <<_ACEOF
28299/* confdefs.h. */
28300_ACEOF
28301cat confdefs.h >>conftest.$ac_ext
28302cat >>conftest.$ac_ext <<_ACEOF
28303/* end confdefs.h. */
28304
28305/* Override any gcc2 internal prototype to avoid an error. */
28306#ifdef __cplusplus
28307extern "C"
28308#endif
28309/* We use char because int might match the return type of a gcc2
28310 builtin and then its argument prototype would still apply. */
28311char dnet_ntoa ();
28312int
28313main ()
28314{
28315dnet_ntoa ();
28316 ;
28317 return 0;
28318}
28319_ACEOF
28320rm -f conftest.$ac_objext conftest$ac_exeext
28321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28322 (eval $ac_link) 2>conftest.er1
a848cd7e 28323 ac_status=$?
ac1cb8d3
VS
28324 grep -v '^ *+' conftest.er1 >conftest.err
28325 rm -f conftest.er1
28326 cat conftest.err >&5
a848cd7e
SC
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); } &&
2b850ae1
RR
28329 { ac_try='test -z "$ac_c_werror_flag"
28330 || test ! -s conftest.err'
ac1cb8d3
VS
28331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332 (eval $ac_try) 2>&5
28333 ac_status=$?
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); }; } &&
28336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338 (eval $ac_try) 2>&5
28339 ac_status=$?
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; }; then
28342 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28343else
28344 echo "$as_me: failed program was:" >&5
28345sed 's/^/| /' conftest.$ac_ext >&5
28346
28347ac_cv_lib_dnet_stub_dnet_ntoa=no
28348fi
ac1cb8d3
VS
28349rm -f conftest.err conftest.$ac_objext \
28350 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28351LIBS=$ac_check_lib_save_LIBS
28352fi
28353echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28354echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28355if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28356 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28357fi
28358
28359 fi
28360fi
ac1cb8d3
VS
28361rm -f conftest.err conftest.$ac_objext \
28362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28363 LIBS="$ac_xsave_LIBS"
28364
28365 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28366 # to get the SysV transport functions.
28367 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28368 # needs -lnsl.
28369 # The nsl library prevents programs from opening the X display
28370 # on Irix 5.2, according to T.E. Dickey.
28371 # The functions gethostbyname, getservbyname, and inet_addr are
28372 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28373 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28374echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28375if test "${ac_cv_func_gethostbyname+set}" = set; then
28376 echo $ECHO_N "(cached) $ECHO_C" >&6
28377else
28378 cat >conftest.$ac_ext <<_ACEOF
28379/* confdefs.h. */
28380_ACEOF
28381cat confdefs.h >>conftest.$ac_ext
28382cat >>conftest.$ac_ext <<_ACEOF
28383/* end confdefs.h. */
ac1cb8d3
VS
28384/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28386#define gethostbyname innocuous_gethostbyname
28387
a848cd7e
SC
28388/* System header to define __stub macros and hopefully few prototypes,
28389 which can conflict with char gethostbyname (); below.
28390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28391 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28392
a848cd7e
SC
28393#ifdef __STDC__
28394# include <limits.h>
28395#else
28396# include <assert.h>
28397#endif
ac1cb8d3
VS
28398
28399#undef gethostbyname
28400
a848cd7e
SC
28401/* Override any gcc2 internal prototype to avoid an error. */
28402#ifdef __cplusplus
28403extern "C"
28404{
28405#endif
28406/* We use char because int might match the return type of a gcc2
28407 builtin and then its argument prototype would still apply. */
28408char gethostbyname ();
28409/* The GNU C library defines this for functions which it implements
28410 to always fail with ENOSYS. Some functions are actually named
28411 something starting with __ and the normal name is an alias. */
28412#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28413choke me
28414#else
28415char (*f) () = gethostbyname;
28416#endif
28417#ifdef __cplusplus
28418}
28419#endif
28420
28421int
28422main ()
28423{
28424return f != gethostbyname;
28425 ;
28426 return 0;
28427}
28428_ACEOF
28429rm -f conftest.$ac_objext conftest$ac_exeext
28430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 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); } &&
2b850ae1
RR
28438 { ac_try='test -z "$ac_c_werror_flag"
28439 || test ! -s conftest.err'
ac1cb8d3
VS
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
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_func_gethostbyname=yes
28452else
28453 echo "$as_me: failed program was:" >&5
28454sed 's/^/| /' conftest.$ac_ext >&5
28455
28456ac_cv_func_gethostbyname=no
28457fi
ac1cb8d3
VS
28458rm -f conftest.err conftest.$ac_objext \
28459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28460fi
28461echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28462echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28463
28464 if test $ac_cv_func_gethostbyname = no; then
28465 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28466echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28467if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28468 echo $ECHO_N "(cached) $ECHO_C" >&6
28469else
28470 ac_check_lib_save_LIBS=$LIBS
28471LIBS="-lnsl $LIBS"
28472cat >conftest.$ac_ext <<_ACEOF
28473/* confdefs.h. */
28474_ACEOF
28475cat confdefs.h >>conftest.$ac_ext
28476cat >>conftest.$ac_ext <<_ACEOF
28477/* end confdefs.h. */
28478
28479/* Override any gcc2 internal prototype to avoid an error. */
28480#ifdef __cplusplus
28481extern "C"
28482#endif
28483/* We use char because int might match the return type of a gcc2
28484 builtin and then its argument prototype would still apply. */
28485char gethostbyname ();
28486int
28487main ()
28488{
28489gethostbyname ();
28490 ;
28491 return 0;
28492}
28493_ACEOF
28494rm -f conftest.$ac_objext conftest$ac_exeext
28495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28496 (eval $ac_link) 2>conftest.er1
28497 ac_status=$?
28498 grep -v '^ *+' conftest.er1 >conftest.err
28499 rm -f conftest.er1
28500 cat conftest.err >&5
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); } &&
2b850ae1
RR
28503 { ac_try='test -z "$ac_c_werror_flag"
28504 || test ! -s conftest.err'
ac1cb8d3
VS
28505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28506 (eval $ac_try) 2>&5
28507 ac_status=$?
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); }; } &&
28510 { ac_try='test -s conftest$ac_exeext'
28511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28512 (eval $ac_try) 2>&5
28513 ac_status=$?
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); }; }; then
28516 ac_cv_lib_nsl_gethostbyname=yes
28517else
28518 echo "$as_me: failed program was:" >&5
28519sed 's/^/| /' conftest.$ac_ext >&5
28520
28521ac_cv_lib_nsl_gethostbyname=no
28522fi
28523rm -f conftest.err conftest.$ac_objext \
28524 conftest$ac_exeext conftest.$ac_ext
28525LIBS=$ac_check_lib_save_LIBS
28526fi
28527echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28528echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28529if test $ac_cv_lib_nsl_gethostbyname = yes; then
28530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28531fi
28532
28533 if test $ac_cv_lib_nsl_gethostbyname = no; then
28534 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28535echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28536if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28537 echo $ECHO_N "(cached) $ECHO_C" >&6
28538else
28539 ac_check_lib_save_LIBS=$LIBS
28540LIBS="-lbsd $LIBS"
28541cat >conftest.$ac_ext <<_ACEOF
28542/* confdefs.h. */
28543_ACEOF
28544cat confdefs.h >>conftest.$ac_ext
28545cat >>conftest.$ac_ext <<_ACEOF
28546/* end confdefs.h. */
28547
28548/* Override any gcc2 internal prototype to avoid an error. */
28549#ifdef __cplusplus
28550extern "C"
28551#endif
28552/* We use char because int might match the return type of a gcc2
28553 builtin and then its argument prototype would still apply. */
28554char gethostbyname ();
28555int
28556main ()
28557{
28558gethostbyname ();
28559 ;
28560 return 0;
28561}
28562_ACEOF
28563rm -f conftest.$ac_objext conftest$ac_exeext
28564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28565 (eval $ac_link) 2>conftest.er1
a848cd7e 28566 ac_status=$?
ac1cb8d3
VS
28567 grep -v '^ *+' conftest.er1 >conftest.err
28568 rm -f conftest.er1
28569 cat conftest.err >&5
a848cd7e
SC
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); } &&
2b850ae1
RR
28572 { ac_try='test -z "$ac_c_werror_flag"
28573 || test ! -s conftest.err'
a848cd7e
SC
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28576 ac_status=$?
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28578 (exit $ac_status); }; } &&
28579 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581 (eval $ac_try) 2>&5
28582 ac_status=$?
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; }; then
28585 ac_cv_lib_bsd_gethostbyname=yes
28586else
28587 echo "$as_me: failed program was:" >&5
28588sed 's/^/| /' conftest.$ac_ext >&5
28589
28590ac_cv_lib_bsd_gethostbyname=no
28591fi
ac1cb8d3
VS
28592rm -f conftest.err conftest.$ac_objext \
28593 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28594LIBS=$ac_check_lib_save_LIBS
28595fi
28596echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28597echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28598if test $ac_cv_lib_bsd_gethostbyname = yes; then
28599 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28600fi
28601
28602 fi
28603 fi
28604
28605 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28606 # socket/setsockopt and other routines are undefined under SCO ODT
28607 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28608 # on later versions), says Simon Leinen: it contains gethostby*
28609 # variants that don't use the name server (or something). -lsocket
28610 # must be given before -lnsl if both are needed. We assume that
28611 # if connect needs -lnsl, so does gethostbyname.
28612 echo "$as_me:$LINENO: checking for connect" >&5
28613echo $ECHO_N "checking for connect... $ECHO_C" >&6
28614if test "${ac_cv_func_connect+set}" = set; then
28615 echo $ECHO_N "(cached) $ECHO_C" >&6
28616else
28617 cat >conftest.$ac_ext <<_ACEOF
28618/* confdefs.h. */
28619_ACEOF
28620cat confdefs.h >>conftest.$ac_ext
28621cat >>conftest.$ac_ext <<_ACEOF
28622/* end confdefs.h. */
ac1cb8d3
VS
28623/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28625#define connect innocuous_connect
28626
a848cd7e
SC
28627/* System header to define __stub macros and hopefully few prototypes,
28628 which can conflict with char connect (); below.
28629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28630 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28631
a848cd7e
SC
28632#ifdef __STDC__
28633# include <limits.h>
28634#else
28635# include <assert.h>
28636#endif
ac1cb8d3
VS
28637
28638#undef connect
28639
a848cd7e
SC
28640/* Override any gcc2 internal prototype to avoid an error. */
28641#ifdef __cplusplus
28642extern "C"
28643{
28644#endif
28645/* We use char because int might match the return type of a gcc2
28646 builtin and then its argument prototype would still apply. */
28647char connect ();
28648/* The GNU C library defines this for functions which it implements
28649 to always fail with ENOSYS. Some functions are actually named
28650 something starting with __ and the normal name is an alias. */
28651#if defined (__stub_connect) || defined (__stub___connect)
28652choke me
28653#else
28654char (*f) () = connect;
28655#endif
28656#ifdef __cplusplus
28657}
28658#endif
28659
28660int
28661main ()
28662{
28663return f != connect;
28664 ;
28665 return 0;
28666}
28667_ACEOF
28668rm -f conftest.$ac_objext conftest$ac_exeext
28669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28670 (eval $ac_link) 2>conftest.er1
a848cd7e 28671 ac_status=$?
ac1cb8d3
VS
28672 grep -v '^ *+' conftest.er1 >conftest.err
28673 rm -f conftest.er1
28674 cat conftest.err >&5
a848cd7e
SC
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); } &&
2b850ae1
RR
28677 { ac_try='test -z "$ac_c_werror_flag"
28678 || test ! -s conftest.err'
ac1cb8d3
VS
28679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28680 (eval $ac_try) 2>&5
28681 ac_status=$?
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); }; } &&
28684 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28686 (eval $ac_try) 2>&5
28687 ac_status=$?
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); }; }; then
28690 ac_cv_func_connect=yes
28691else
28692 echo "$as_me: failed program was:" >&5
28693sed 's/^/| /' conftest.$ac_ext >&5
28694
28695ac_cv_func_connect=no
28696fi
ac1cb8d3
VS
28697rm -f conftest.err conftest.$ac_objext \
28698 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28699fi
28700echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28701echo "${ECHO_T}$ac_cv_func_connect" >&6
28702
28703 if test $ac_cv_func_connect = no; then
28704 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28705echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28706if test "${ac_cv_lib_socket_connect+set}" = set; then
28707 echo $ECHO_N "(cached) $ECHO_C" >&6
28708else
28709 ac_check_lib_save_LIBS=$LIBS
28710LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28711cat >conftest.$ac_ext <<_ACEOF
28712/* confdefs.h. */
28713_ACEOF
28714cat confdefs.h >>conftest.$ac_ext
28715cat >>conftest.$ac_ext <<_ACEOF
28716/* end confdefs.h. */
28717
28718/* Override any gcc2 internal prototype to avoid an error. */
28719#ifdef __cplusplus
28720extern "C"
28721#endif
28722/* We use char because int might match the return type of a gcc2
28723 builtin and then its argument prototype would still apply. */
28724char connect ();
28725int
28726main ()
28727{
28728connect ();
28729 ;
28730 return 0;
28731}
28732_ACEOF
28733rm -f conftest.$ac_objext conftest$ac_exeext
28734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28735 (eval $ac_link) 2>conftest.er1
a848cd7e 28736 ac_status=$?
ac1cb8d3
VS
28737 grep -v '^ *+' conftest.er1 >conftest.err
28738 rm -f conftest.er1
28739 cat conftest.err >&5
a848cd7e
SC
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); } &&
2b850ae1
RR
28742 { ac_try='test -z "$ac_c_werror_flag"
28743 || test ! -s conftest.err'
ac1cb8d3
VS
28744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745 (eval $ac_try) 2>&5
28746 ac_status=$?
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; } &&
28749 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751 (eval $ac_try) 2>&5
28752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; }; then
28755 ac_cv_lib_socket_connect=yes
28756else
28757 echo "$as_me: failed program was:" >&5
28758sed 's/^/| /' conftest.$ac_ext >&5
28759
28760ac_cv_lib_socket_connect=no
28761fi
ac1cb8d3
VS
28762rm -f conftest.err conftest.$ac_objext \
28763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28764LIBS=$ac_check_lib_save_LIBS
28765fi
28766echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28767echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28768if test $ac_cv_lib_socket_connect = yes; then
28769 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28770fi
28771
28772 fi
28773
28774 # Guillermo Gomez says -lposix is necessary on A/UX.
28775 echo "$as_me:$LINENO: checking for remove" >&5
28776echo $ECHO_N "checking for remove... $ECHO_C" >&6
28777if test "${ac_cv_func_remove+set}" = set; then
28778 echo $ECHO_N "(cached) $ECHO_C" >&6
28779else
28780 cat >conftest.$ac_ext <<_ACEOF
28781/* confdefs.h. */
28782_ACEOF
28783cat confdefs.h >>conftest.$ac_ext
28784cat >>conftest.$ac_ext <<_ACEOF
28785/* end confdefs.h. */
ac1cb8d3
VS
28786/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28788#define remove innocuous_remove
28789
a848cd7e
SC
28790/* System header to define __stub macros and hopefully few prototypes,
28791 which can conflict with char remove (); below.
28792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28793 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28794
a848cd7e
SC
28795#ifdef __STDC__
28796# include <limits.h>
28797#else
28798# include <assert.h>
28799#endif
ac1cb8d3
VS
28800
28801#undef remove
28802
a848cd7e
SC
28803/* Override any gcc2 internal prototype to avoid an error. */
28804#ifdef __cplusplus
28805extern "C"
28806{
28807#endif
28808/* We use char because int might match the return type of a gcc2
28809 builtin and then its argument prototype would still apply. */
28810char remove ();
28811/* The GNU C library defines this for functions which it implements
28812 to always fail with ENOSYS. Some functions are actually named
28813 something starting with __ and the normal name is an alias. */
28814#if defined (__stub_remove) || defined (__stub___remove)
28815choke me
28816#else
28817char (*f) () = remove;
28818#endif
28819#ifdef __cplusplus
28820}
28821#endif
28822
28823int
28824main ()
28825{
28826return f != remove;
28827 ;
28828 return 0;
28829}
28830_ACEOF
28831rm -f conftest.$ac_objext conftest$ac_exeext
28832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28833 (eval $ac_link) 2>conftest.er1
a848cd7e 28834 ac_status=$?
ac1cb8d3
VS
28835 grep -v '^ *+' conftest.er1 >conftest.err
28836 rm -f conftest.er1
28837 cat conftest.err >&5
a848cd7e
SC
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839 (exit $ac_status); } &&
2b850ae1
RR
28840 { ac_try='test -z "$ac_c_werror_flag"
28841 || test ! -s conftest.err'
ac1cb8d3
VS
28842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843 (eval $ac_try) 2>&5
28844 ac_status=$?
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; } &&
28847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28849 (eval $ac_try) 2>&5
28850 ac_status=$?
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); }; }; then
28853 ac_cv_func_remove=yes
28854else
28855 echo "$as_me: failed program was:" >&5
28856sed 's/^/| /' conftest.$ac_ext >&5
28857
28858ac_cv_func_remove=no
28859fi
ac1cb8d3
VS
28860rm -f conftest.err conftest.$ac_objext \
28861 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28862fi
28863echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28864echo "${ECHO_T}$ac_cv_func_remove" >&6
28865
28866 if test $ac_cv_func_remove = no; then
28867 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28868echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28869if test "${ac_cv_lib_posix_remove+set}" = set; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28871else
28872 ac_check_lib_save_LIBS=$LIBS
28873LIBS="-lposix $LIBS"
28874cat >conftest.$ac_ext <<_ACEOF
28875/* confdefs.h. */
28876_ACEOF
28877cat confdefs.h >>conftest.$ac_ext
28878cat >>conftest.$ac_ext <<_ACEOF
28879/* end confdefs.h. */
28880
28881/* Override any gcc2 internal prototype to avoid an error. */
28882#ifdef __cplusplus
28883extern "C"
28884#endif
28885/* We use char because int might match the return type of a gcc2
28886 builtin and then its argument prototype would still apply. */
28887char remove ();
28888int
28889main ()
28890{
28891remove ();
28892 ;
28893 return 0;
28894}
28895_ACEOF
28896rm -f conftest.$ac_objext conftest$ac_exeext
28897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28898 (eval $ac_link) 2>conftest.er1
a848cd7e 28899 ac_status=$?
ac1cb8d3
VS
28900 grep -v '^ *+' conftest.er1 >conftest.err
28901 rm -f conftest.er1
28902 cat conftest.err >&5
a848cd7e
SC
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); } &&
2b850ae1
RR
28905 { ac_try='test -z "$ac_c_werror_flag"
28906 || test ! -s conftest.err'
ac1cb8d3
VS
28907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908 (eval $ac_try) 2>&5
28909 ac_status=$?
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; } &&
28912 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28914 (eval $ac_try) 2>&5
28915 ac_status=$?
28916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); }; }; then
28918 ac_cv_lib_posix_remove=yes
28919else
28920 echo "$as_me: failed program was:" >&5
28921sed 's/^/| /' conftest.$ac_ext >&5
28922
28923ac_cv_lib_posix_remove=no
28924fi
ac1cb8d3
VS
28925rm -f conftest.err conftest.$ac_objext \
28926 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28927LIBS=$ac_check_lib_save_LIBS
28928fi
28929echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28930echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28931if test $ac_cv_lib_posix_remove = yes; then
28932 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28933fi
28934
28935 fi
28936
28937 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28938 echo "$as_me:$LINENO: checking for shmat" >&5
28939echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28940if test "${ac_cv_func_shmat+set}" = set; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28942else
28943 cat >conftest.$ac_ext <<_ACEOF
28944/* confdefs.h. */
28945_ACEOF
28946cat confdefs.h >>conftest.$ac_ext
28947cat >>conftest.$ac_ext <<_ACEOF
28948/* end confdefs.h. */
ac1cb8d3
VS
28949/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28951#define shmat innocuous_shmat
28952
a848cd7e
SC
28953/* System header to define __stub macros and hopefully few prototypes,
28954 which can conflict with char shmat (); below.
28955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28956 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28957
a848cd7e
SC
28958#ifdef __STDC__
28959# include <limits.h>
28960#else
28961# include <assert.h>
28962#endif
ac1cb8d3
VS
28963
28964#undef shmat
28965
a848cd7e
SC
28966/* Override any gcc2 internal prototype to avoid an error. */
28967#ifdef __cplusplus
28968extern "C"
28969{
28970#endif
28971/* We use char because int might match the return type of a gcc2
28972 builtin and then its argument prototype would still apply. */
28973char shmat ();
28974/* The GNU C library defines this for functions which it implements
28975 to always fail with ENOSYS. Some functions are actually named
28976 something starting with __ and the normal name is an alias. */
28977#if defined (__stub_shmat) || defined (__stub___shmat)
28978choke me
28979#else
28980char (*f) () = shmat;
28981#endif
28982#ifdef __cplusplus
28983}
28984#endif
28985
28986int
28987main ()
28988{
28989return f != shmat;
28990 ;
28991 return 0;
28992}
28993_ACEOF
28994rm -f conftest.$ac_objext conftest$ac_exeext
28995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28996 (eval $ac_link) 2>conftest.er1
a848cd7e 28997 ac_status=$?
ac1cb8d3
VS
28998 grep -v '^ *+' conftest.er1 >conftest.err
28999 rm -f conftest.er1
29000 cat conftest.err >&5
a848cd7e
SC
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); } &&
2b850ae1
RR
29003 { ac_try='test -z "$ac_c_werror_flag"
29004 || test ! -s conftest.err'
ac1cb8d3
VS
29005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006 (eval $ac_try) 2>&5
29007 ac_status=$?
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); }; } &&
29010 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012 (eval $ac_try) 2>&5
29013 ac_status=$?
29014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015 (exit $ac_status); }; }; then
29016 ac_cv_func_shmat=yes
29017else
29018 echo "$as_me: failed program was:" >&5
29019sed 's/^/| /' conftest.$ac_ext >&5
29020
29021ac_cv_func_shmat=no
29022fi
ac1cb8d3
VS
29023rm -f conftest.err conftest.$ac_objext \
29024 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29025fi
29026echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29027echo "${ECHO_T}$ac_cv_func_shmat" >&6
29028
29029 if test $ac_cv_func_shmat = no; then
29030 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29031echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29032if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29033 echo $ECHO_N "(cached) $ECHO_C" >&6
29034else
29035 ac_check_lib_save_LIBS=$LIBS
29036LIBS="-lipc $LIBS"
29037cat >conftest.$ac_ext <<_ACEOF
29038/* confdefs.h. */
29039_ACEOF
29040cat confdefs.h >>conftest.$ac_ext
29041cat >>conftest.$ac_ext <<_ACEOF
29042/* end confdefs.h. */
29043
29044/* Override any gcc2 internal prototype to avoid an error. */
29045#ifdef __cplusplus
29046extern "C"
29047#endif
29048/* We use char because int might match the return type of a gcc2
29049 builtin and then its argument prototype would still apply. */
29050char shmat ();
29051int
29052main ()
29053{
29054shmat ();
29055 ;
29056 return 0;
29057}
29058_ACEOF
29059rm -f conftest.$ac_objext conftest$ac_exeext
29060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29061 (eval $ac_link) 2>conftest.er1
a848cd7e 29062 ac_status=$?
ac1cb8d3
VS
29063 grep -v '^ *+' conftest.er1 >conftest.err
29064 rm -f conftest.er1
29065 cat conftest.err >&5
a848cd7e
SC
29066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067 (exit $ac_status); } &&
2b850ae1
RR
29068 { ac_try='test -z "$ac_c_werror_flag"
29069 || test ! -s conftest.err'
ac1cb8d3
VS
29070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29071 (eval $ac_try) 2>&5
29072 ac_status=$?
29073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074 (exit $ac_status); }; } &&
29075 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077 (eval $ac_try) 2>&5
29078 ac_status=$?
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; }; then
29081 ac_cv_lib_ipc_shmat=yes
29082else
29083 echo "$as_me: failed program was:" >&5
29084sed 's/^/| /' conftest.$ac_ext >&5
29085
29086ac_cv_lib_ipc_shmat=no
29087fi
ac1cb8d3
VS
29088rm -f conftest.err conftest.$ac_objext \
29089 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29090LIBS=$ac_check_lib_save_LIBS
29091fi
29092echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29093echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29094if test $ac_cv_lib_ipc_shmat = yes; then
29095 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29096fi
29097
29098 fi
29099 fi
29100
29101 # Check for libraries that X11R6 Xt/Xaw programs need.
29102 ac_save_LDFLAGS=$LDFLAGS
29103 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29104 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29105 # check for ICE first), but we must link in the order -lSM -lICE or
29106 # we get undefined symbols. So assume we have SM if we have ICE.
29107 # These have to be linked with before -lX11, unlike the other
29108 # libraries we check for below, so use a different variable.
29109 # John Interrante, Karl Berry
29110 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29111echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29112if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29113 echo $ECHO_N "(cached) $ECHO_C" >&6
29114else
29115 ac_check_lib_save_LIBS=$LIBS
29116LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29117cat >conftest.$ac_ext <<_ACEOF
29118/* confdefs.h. */
29119_ACEOF
29120cat confdefs.h >>conftest.$ac_ext
29121cat >>conftest.$ac_ext <<_ACEOF
29122/* end confdefs.h. */
29123
29124/* Override any gcc2 internal prototype to avoid an error. */
29125#ifdef __cplusplus
29126extern "C"
29127#endif
29128/* We use char because int might match the return type of a gcc2
29129 builtin and then its argument prototype would still apply. */
29130char IceConnectionNumber ();
29131int
29132main ()
29133{
29134IceConnectionNumber ();
29135 ;
29136 return 0;
29137}
29138_ACEOF
29139rm -f conftest.$ac_objext conftest$ac_exeext
29140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29141 (eval $ac_link) 2>conftest.er1
a848cd7e 29142 ac_status=$?
ac1cb8d3
VS
29143 grep -v '^ *+' conftest.er1 >conftest.err
29144 rm -f conftest.er1
29145 cat conftest.err >&5
a848cd7e
SC
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); } &&
2b850ae1
RR
29148 { ac_try='test -z "$ac_c_werror_flag"
29149 || test ! -s conftest.err'
ac1cb8d3
VS
29150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29151 (eval $ac_try) 2>&5
29152 ac_status=$?
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; } &&
29155 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29157 (eval $ac_try) 2>&5
29158 ac_status=$?
29159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160 (exit $ac_status); }; }; then
29161 ac_cv_lib_ICE_IceConnectionNumber=yes
29162else
29163 echo "$as_me: failed program was:" >&5
29164sed 's/^/| /' conftest.$ac_ext >&5
29165
29166ac_cv_lib_ICE_IceConnectionNumber=no
29167fi
ac1cb8d3
VS
29168rm -f conftest.err conftest.$ac_objext \
29169 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29170LIBS=$ac_check_lib_save_LIBS
29171fi
29172echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29173echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29174if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29175 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29176fi
29177
29178 LDFLAGS=$ac_save_LDFLAGS
29179
29180fi
29181
29182
29183 if test "$no_x" = "yes"; then
89d90d6d
VZ
29184 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29185echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29186 { (exit 1); exit 1; }; }
a848cd7e
SC
29187 fi
29188
74b84332
VS
29189 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29190 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29191 AFMINSTALL=afminstall
29192 COMPILED_X_PROGRAM=0
29193
74b84332
VS
29194 fi
29195
29196 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29197 if test "$wxUSE_NANOX" = "yes"; then
29198 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29199echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29200 if test "x$MICROWIN" = x ; then
29201 echo "$as_me:$LINENO: result: not found" >&5
29202echo "${ECHO_T}not found" >&6
29203 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29204echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29205 { (exit 1); exit 1; }; }
29206 else
29207 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29208echo "${ECHO_T}$MICROWIN" >&6
29209 cat >>confdefs.h <<\_ACEOF
29210#define wxUSE_NANOX 1
29211_ACEOF
29212
29213 fi
29214 fi
29215
29216 if test "$wxUSE_UNICODE" = "yes"; then
29217
29218 succeeded=no
29219
29220 if test -z "$PKG_CONFIG"; then
29221 # Extract the first word of "pkg-config", so it can be a program name with args.
29222set dummy pkg-config; ac_word=$2
29223echo "$as_me:$LINENO: checking for $ac_word" >&5
29224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29225if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29227else
29228 case $PKG_CONFIG in
29229 [\\/]* | ?:[\\/]*)
29230 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29231 ;;
29232 *)
29233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29234for as_dir in $PATH
29235do
29236 IFS=$as_save_IFS
29237 test -z "$as_dir" && as_dir=.
29238 for ac_exec_ext in '' $ac_executable_extensions; do
29239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29240 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29242 break 2
29243 fi
29244done
29245done
29246
29247 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29248 ;;
29249esac
29250fi
29251PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29252
29253if test -n "$PKG_CONFIG"; then
29254 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29255echo "${ECHO_T}$PKG_CONFIG" >&6
29256else
29257 echo "$as_me:$LINENO: result: no" >&5
29258echo "${ECHO_T}no" >&6
29259fi
29260
29261 fi
29262
29263 if test "$PKG_CONFIG" = "no" ; then
29264 echo "*** The pkg-config script could not be found. Make sure it is"
29265 echo "*** in your path, or set the PKG_CONFIG environment variable"
29266 echo "*** to the full path to pkg-config."
29267 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29268 else
29269 PKG_CONFIG_MIN_VERSION=0.9.0
29270 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29271 echo "$as_me:$LINENO: checking for pangox" >&5
29272echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29273
29274 if $PKG_CONFIG --exists "pangox" ; then
29275 echo "$as_me:$LINENO: result: yes" >&5
29276echo "${ECHO_T}yes" >&6
29277 succeeded=yes
29278
29279 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29280echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29281 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29282 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29283echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29284
29285 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29286echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29287 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29288 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29289echo "${ECHO_T}$PANGOX_LIBS" >&6
29290 else
29291 PANGOX_CFLAGS=""
29292 PANGOX_LIBS=""
29293 ## If we have a custom action on failure, don't print errors, but
29294 ## do set a variable so people can do so.
29295 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29296
29297 fi
29298
29299
29300
29301 else
29302 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29303 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29304 fi
29305 fi
29306
29307 if test $succeeded = yes; then
29308
c92ad099 29309 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29310 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29311
29312 else
29313
29314 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29315echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29316 { (exit 1); exit 1; }; }
29317
29318
29319 fi
29320
29321
29322 succeeded=no
29323
29324 if test -z "$PKG_CONFIG"; then
29325 # Extract the first word of "pkg-config", so it can be a program name with args.
29326set dummy pkg-config; ac_word=$2
29327echo "$as_me:$LINENO: checking for $ac_word" >&5
29328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29329if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29330 echo $ECHO_N "(cached) $ECHO_C" >&6
29331else
29332 case $PKG_CONFIG in
29333 [\\/]* | ?:[\\/]*)
29334 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29335 ;;
29336 *)
29337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29338for as_dir in $PATH
29339do
29340 IFS=$as_save_IFS
29341 test -z "$as_dir" && as_dir=.
29342 for ac_exec_ext in '' $ac_executable_extensions; do
29343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29344 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29346 break 2
29347 fi
29348done
29349done
29350
29351 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29352 ;;
29353esac
29354fi
29355PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29356
29357if test -n "$PKG_CONFIG"; then
29358 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29359echo "${ECHO_T}$PKG_CONFIG" >&6
29360else
29361 echo "$as_me:$LINENO: result: no" >&5
29362echo "${ECHO_T}no" >&6
29363fi
29364
29365 fi
29366
29367 if test "$PKG_CONFIG" = "no" ; then
29368 echo "*** The pkg-config script could not be found. Make sure it is"
29369 echo "*** in your path, or set the PKG_CONFIG environment variable"
29370 echo "*** to the full path to pkg-config."
29371 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29372 else
29373 PKG_CONFIG_MIN_VERSION=0.9.0
29374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29375 echo "$as_me:$LINENO: checking for pangoft2" >&5
29376echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29377
29378 if $PKG_CONFIG --exists "pangoft2" ; then
29379 echo "$as_me:$LINENO: result: yes" >&5
29380echo "${ECHO_T}yes" >&6
29381 succeeded=yes
29382
29383 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29384echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29385 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29386 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29387echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29388
29389 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29390echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29391 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29392 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29393echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29394 else
29395 PANGOFT2_CFLAGS=""
29396 PANGOFT2_LIBS=""
29397 ## If we have a custom action on failure, don't print errors, but
29398 ## do set a variable so people can do so.
29399 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29400
29401 fi
29402
29403
29404
29405 else
29406 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29407 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29408 fi
29409 fi
29410
29411 if test $succeeded = yes; then
29412
c92ad099 29413 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29414 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29415
29416 else
29417
29418 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29419echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29420 wxUSE_PRINTING_ARCHITECTURE="no"
29421
29422
29423 fi
29424
29425
29426 succeeded=no
29427
29428 if test -z "$PKG_CONFIG"; then
29429 # Extract the first word of "pkg-config", so it can be a program name with args.
29430set dummy pkg-config; ac_word=$2
29431echo "$as_me:$LINENO: checking for $ac_word" >&5
29432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29433if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29434 echo $ECHO_N "(cached) $ECHO_C" >&6
29435else
29436 case $PKG_CONFIG in
29437 [\\/]* | ?:[\\/]*)
29438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29439 ;;
29440 *)
29441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29442for as_dir in $PATH
29443do
29444 IFS=$as_save_IFS
29445 test -z "$as_dir" && as_dir=.
29446 for ac_exec_ext in '' $ac_executable_extensions; do
29447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29448 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29450 break 2
29451 fi
29452done
29453done
29454
29455 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29456 ;;
29457esac
29458fi
29459PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29460
29461if test -n "$PKG_CONFIG"; then
29462 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29463echo "${ECHO_T}$PKG_CONFIG" >&6
29464else
29465 echo "$as_me:$LINENO: result: no" >&5
29466echo "${ECHO_T}no" >&6
29467fi
29468
29469 fi
29470
29471 if test "$PKG_CONFIG" = "no" ; then
29472 echo "*** The pkg-config script could not be found. Make sure it is"
29473 echo "*** in your path, or set the PKG_CONFIG environment variable"
29474 echo "*** to the full path to pkg-config."
29475 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29476 else
29477 PKG_CONFIG_MIN_VERSION=0.9.0
29478 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29479 echo "$as_me:$LINENO: checking for pangoxft" >&5
29480echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29481
29482 if $PKG_CONFIG --exists "pangoxft" ; then
29483 echo "$as_me:$LINENO: result: yes" >&5
29484echo "${ECHO_T}yes" >&6
29485 succeeded=yes
29486
29487 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29488echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29489 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29490 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29491echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29492
29493 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29494echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29495 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29496 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29497echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29498 else
29499 PANGOXFT_CFLAGS=""
29500 PANGOXFT_LIBS=""
29501 ## If we have a custom action on failure, don't print errors, but
29502 ## do set a variable so people can do so.
29503 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29504
29505 fi
29506
29507
29508
29509 else
29510 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29511 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29512 fi
29513 fi
29514
29515 if test $succeeded = yes; then
29516
4ae1af05
MB
29517 cat >>confdefs.h <<\_ACEOF
29518#define HAVE_PANGO_XFT 1
29519_ACEOF
29520
c92ad099 29521 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29522 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29523
29524 else
29525
29526 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29527echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29528
29529
29530 fi
29531
304205f1
VS
29532 save_CFLAGS="$CFLAGS"
29533 save_LIBS="$LIBS"
c92ad099 29534 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
304205f1
VS
29535 LIBS="$LIBS $PANGOX_LIBS"
29536
29537for ac_func in pango_font_family_is_monospace
29538do
29539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29540echo "$as_me:$LINENO: checking for $ac_func" >&5
29541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29542if eval "test \"\${$as_ac_var+set}\" = set"; then
29543 echo $ECHO_N "(cached) $ECHO_C" >&6
29544else
29545 cat >conftest.$ac_ext <<_ACEOF
29546/* confdefs.h. */
29547_ACEOF
29548cat confdefs.h >>conftest.$ac_ext
29549cat >>conftest.$ac_ext <<_ACEOF
29550/* end confdefs.h. */
29551/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29553#define $ac_func innocuous_$ac_func
29554
29555/* System header to define __stub macros and hopefully few prototypes,
29556 which can conflict with char $ac_func (); below.
29557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29558 <limits.h> exists even on freestanding compilers. */
29559
29560#ifdef __STDC__
29561# include <limits.h>
29562#else
29563# include <assert.h>
29564#endif
29565
29566#undef $ac_func
29567
29568/* Override any gcc2 internal prototype to avoid an error. */
29569#ifdef __cplusplus
29570extern "C"
29571{
29572#endif
29573/* We use char because int might match the return type of a gcc2
29574 builtin and then its argument prototype would still apply. */
29575char $ac_func ();
29576/* The GNU C library defines this for functions which it implements
29577 to always fail with ENOSYS. Some functions are actually named
29578 something starting with __ and the normal name is an alias. */
29579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29580choke me
29581#else
29582char (*f) () = $ac_func;
29583#endif
29584#ifdef __cplusplus
29585}
29586#endif
29587
29588int
29589main ()
29590{
29591return f != $ac_func;
29592 ;
29593 return 0;
29594}
29595_ACEOF
29596rm -f conftest.$ac_objext conftest$ac_exeext
29597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29598 (eval $ac_link) 2>conftest.er1
29599 ac_status=$?
29600 grep -v '^ *+' conftest.er1 >conftest.err
29601 rm -f conftest.er1
29602 cat conftest.err >&5
29603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); } &&
2b850ae1
RR
29605 { ac_try='test -z "$ac_c_werror_flag"
29606 || test ! -s conftest.err'
304205f1
VS
29607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29608 (eval $ac_try) 2>&5
29609 ac_status=$?
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); }; } &&
29612 { ac_try='test -s conftest$ac_exeext'
29613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29614 (eval $ac_try) 2>&5
29615 ac_status=$?
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); }; }; then
29618 eval "$as_ac_var=yes"
29619else
29620 echo "$as_me: failed program was:" >&5
29621sed 's/^/| /' conftest.$ac_ext >&5
29622
29623eval "$as_ac_var=no"
29624fi
29625rm -f conftest.err conftest.$ac_objext \
29626 conftest$ac_exeext conftest.$ac_ext
29627fi
29628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29629echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29630if test `eval echo '${'$as_ac_var'}'` = yes; then
29631 cat >>confdefs.h <<_ACEOF
29632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29633_ACEOF
29634
29635fi
29636done
29637
29638 CFLAGS="$save_CFLAGS"
29639 LIBS="$save_LIBS"
a848cd7e
SC
29640 fi
29641
29642 wxUSE_UNIVERSAL="yes"
29643
29644 if test "$wxUSE_NANOX" = "yes"; then
29645 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29646 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"
29647 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29648 else
29649 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29650 fi
29651
a848cd7e
SC
29652 TOOLKIT=X11
29653 GUIDIST=X11_DIST
29654 fi
29655
29656 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29657 if test "$wxUSE_UNICODE" = "yes"; then
29658 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29659echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29660 { (exit 1); exit 1; }; }
29661 fi
29662
74b84332
VS
29663 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29664echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29665
74b84332
VS
29666ac_find_includes=
29667for ac_dir in $SEARCH_INCLUDE /usr/include;
29668 do
29669 if test -f "$ac_dir/Xm/Xm.h"; then
29670 ac_find_includes=$ac_dir
29671 break
29672 fi
29673 done
a848cd7e 29674
74b84332
VS
29675 if test "$ac_find_includes" != "" ; then
29676 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29677echo "${ECHO_T}found in $ac_find_includes" >&6
29678
29679 if test "x$ac_find_includes" = "x/usr/include"; then
29680 ac_path_to_include=""
29681 else
29682 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29683 result=$?
29684 if test $result = 0; then
29685 ac_path_to_include=""
29686 else
29687 ac_path_to_include=" -I$ac_find_includes"
29688 fi
a848cd7e
SC
29689 fi
29690
74b84332
VS
29691 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29692 else
e051b34e 29693 save_CFLAGS=$CFLAGS
c92ad099 29694 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 29695
74b84332 29696 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29697/* confdefs.h. */
29698_ACEOF
29699cat confdefs.h >>conftest.$ac_ext
29700cat >>conftest.$ac_ext <<_ACEOF
29701/* end confdefs.h. */
29702
74b84332
VS
29703 #include <Xm/Xm.h>
29704
a848cd7e
SC
29705int
29706main ()
29707{
29708
74b84332
VS
29709 int version;
29710 version = xmUseVersion;
29711
a848cd7e
SC
29712 ;
29713 return 0;
29714}
29715_ACEOF
74b84332
VS
29716rm -f conftest.$ac_objext
29717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29718 (eval $ac_compile) 2>conftest.er1
a848cd7e 29719 ac_status=$?
ac1cb8d3
VS
29720 grep -v '^ *+' conftest.er1 >conftest.err
29721 rm -f conftest.er1
29722 cat conftest.err >&5
a848cd7e
SC
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); } &&
2b850ae1
RR
29725 { ac_try='test -z "$ac_c_werror_flag"
29726 || test ! -s conftest.err'
ac1cb8d3
VS
29727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728 (eval $ac_try) 2>&5
29729 ac_status=$?
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); }; } &&
74b84332 29732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734 (eval $ac_try) 2>&5
29735 ac_status=$?
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); }; }; then
74b84332
VS
29738
29739 echo "$as_me:$LINENO: result: found in default search path" >&5
29740echo "${ECHO_T}found in default search path" >&6
29741 COMPILED_X_PROGRAM=1
29742
a848cd7e
SC
29743else
29744 echo "$as_me: failed program was:" >&5
29745sed 's/^/| /' conftest.$ac_ext >&5
29746
a848cd7e 29747
74b84332
VS
29748 echo "$as_me:$LINENO: result: no" >&5
29749echo "${ECHO_T}no" >&6
e051b34e
MW
29750 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29751echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29752 { (exit 1); exit 1; }; }
a848cd7e 29753
a848cd7e 29754
a848cd7e 29755fi
74b84332 29756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29757
29758 CFLAGS=$save_CFLAGS
74b84332
VS
29759 fi
29760
0ad5d837
VZ
29761
29762 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29763echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29764
0ad5d837
VZ
29765 ac_find_libraries=
29766 for ac_dir in $SEARCH_LIB;
74b84332 29767 do
3eca31dc 29768 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29769 if test -f "$ac_dir/libXm.$ac_extension"; then
29770 ac_find_libraries=$ac_dir
29771 break 2
a848cd7e 29772 fi
74b84332
VS
29773 done
29774 done
a848cd7e 29775
0ad5d837
VZ
29776
29777 if test "x$ac_find_libraries" != "x" ; then
29778 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29779echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29780
74b84332 29781
0ad5d837 29782 if test "$ac_find_libraries" = "default location"; then
74b84332 29783 ac_path_to_link=""
a848cd7e 29784 else
0ad5d837
VZ
29785 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29786 result=$?
29787 if test $result = 0; then
29788 ac_path_to_link=""
29789 else
29790 ac_path_to_link=" -L$ac_find_libraries"
29791 fi
74b84332
VS
29792 fi
29793
0ad5d837
VZ
29794 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29795 else
29796 save_CFLAGS=$CFLAGS
c92ad099 29797 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
29798 save_LIBS="$LIBS"
29799 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29800
0ad5d837 29801 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29802/* confdefs.h. */
29803_ACEOF
29804cat confdefs.h >>conftest.$ac_ext
29805cat >>conftest.$ac_ext <<_ACEOF
29806/* end confdefs.h. */
29807
0ad5d837 29808 #include <Xm/Xm.h>
74b84332 29809
a848cd7e
SC
29810int
29811main ()
29812{
74b84332 29813
0ad5d837
VZ
29814 int version;
29815 version = xmUseVersion;
74b84332 29816
a848cd7e
SC
29817 ;
29818 return 0;
29819}
29820_ACEOF
0ad5d837
VZ
29821rm -f conftest.$ac_objext conftest$ac_exeext
29822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29823 (eval $ac_link) 2>conftest.er1
a848cd7e 29824 ac_status=$?
ac1cb8d3
VS
29825 grep -v '^ *+' conftest.er1 >conftest.err
29826 rm -f conftest.er1
29827 cat conftest.err >&5
a848cd7e
SC
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); } &&
2b850ae1
RR
29830 { ac_try='test -z "$ac_c_werror_flag"
29831 || test ! -s conftest.err'
ac1cb8d3
VS
29832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833 (eval $ac_try) 2>&5
29834 ac_status=$?
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; } &&
0ad5d837 29837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29839 (eval $ac_try) 2>&5
29840 ac_status=$?
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; }; then
74b84332 29843
0ad5d837 29844 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29845echo "${ECHO_T}found in default search path" >&6
0ad5d837 29846 COMPILED_X_PROGRAM=1
74b84332 29847
a848cd7e
SC
29848else
29849 echo "$as_me: failed program was:" >&5
29850sed 's/^/| /' conftest.$ac_ext >&5
29851
74b84332 29852
6f9cf1e6 29853 echo "$as_me:$LINENO: result: no" >&5
74b84332 29854echo "${ECHO_T}no" >&6
6f9cf1e6 29855 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29856echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29857 { (exit 1); exit 1; }; }
29858
29859
29860fi
0ad5d837
VZ
29861rm -f conftest.err conftest.$ac_objext \
29862 conftest$ac_exeext conftest.$ac_ext
74b84332 29863
0ad5d837 29864 CFLAGS=$save_CFLAGS
6f9cf1e6 29865 LIBS="$save_LIBS"
74b84332
VS
29866 fi
29867
29868 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29869echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29870 libp_link=""
29871 libsm_ice_link=""
29872 libs_found=0
29873 for libp in "" " -lXp"; do
29874 if test "$libs_found" = "0"; then
29875 for libsm_ice in "" " -lSM -lICE"; do
29876 if test "$libs_found" = "0"; then
29877 save_LIBS="$LIBS"
29878 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29879 save_CFLAGS=$CFLAGS
c92ad099 29880 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
29881
29882 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29883/* confdefs.h. */
29884_ACEOF
29885cat confdefs.h >>conftest.$ac_ext
29886cat >>conftest.$ac_ext <<_ACEOF
29887/* end confdefs.h. */
29888
74b84332
VS
29889 #include <Xm/Xm.h>
29890 #include <Xm/List.h>
29891
a848cd7e
SC
29892int
29893main ()
29894{
74b84332
VS
29895
29896 XmString string = NULL;
29897 Widget w = NULL;
29898 int position = 0;
29899 XmListAddItem(w, string, position);
29900
a848cd7e
SC
29901 ;
29902 return 0;
29903}
29904_ACEOF
29905rm -f conftest.$ac_objext conftest$ac_exeext
29906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29907 (eval $ac_link) 2>conftest.er1
a848cd7e 29908 ac_status=$?
ac1cb8d3
VS
29909 grep -v '^ *+' conftest.er1 >conftest.err
29910 rm -f conftest.er1
29911 cat conftest.err >&5
a848cd7e
SC
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); } &&
2b850ae1
RR
29914 { ac_try='test -z "$ac_c_werror_flag"
29915 || test ! -s conftest.err'
ac1cb8d3
VS
29916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29917 (eval $ac_try) 2>&5
29918 ac_status=$?
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); }; } &&
29921 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29923 (eval $ac_try) 2>&5
29924 ac_status=$?
29925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926 (exit $ac_status); }; }; then
29927
29928 libp_link="$libp"
29929 libsm_ice_link="$libsm_ice"
29930 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29931echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29932 libs_found=1
29933
29934else
29935 echo "$as_me: failed program was:" >&5
29936sed 's/^/| /' conftest.$ac_ext >&5
29937
29938
29939
29940fi
ac1cb8d3
VS
29941rm -f conftest.err conftest.$ac_objext \
29942 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29943
29944 LIBS="$save_LIBS"
29945 CFLAGS=$save_CFLAGS
29946 fi
29947 done
29948 fi
29949 done
29950
29951 if test "$libs_found" = "0"; then
29952 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29953echo "${ECHO_T}can't find the right libraries" >&6
29954 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29955echo "$as_me: error: can't link a simple motif program" >&2;}
29956 { (exit 1); exit 1; }; }
29957 fi
29958
62fa8b3a
MW
29959 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29960echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29961if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29962 echo $ECHO_N "(cached) $ECHO_C" >&6
29963else
29964 ac_check_lib_save_LIBS=$LIBS
29965LIBS="-lSgm $LIBS"
29966cat >conftest.$ac_ext <<_ACEOF
29967/* confdefs.h. */
29968_ACEOF
29969cat confdefs.h >>conftest.$ac_ext
29970cat >>conftest.$ac_ext <<_ACEOF
29971/* end confdefs.h. */
29972
29973/* Override any gcc2 internal prototype to avoid an error. */
29974#ifdef __cplusplus
29975extern "C"
29976#endif
29977/* We use char because int might match the return type of a gcc2
29978 builtin and then its argument prototype would still apply. */
29979char SgCreateList ();
29980int
29981main ()
29982{
29983SgCreateList ();
29984 ;
29985 return 0;
29986}
29987_ACEOF
29988rm -f conftest.$ac_objext conftest$ac_exeext
29989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29990 (eval $ac_link) 2>conftest.er1
29991 ac_status=$?
29992 grep -v '^ *+' conftest.er1 >conftest.err
29993 rm -f conftest.er1
29994 cat conftest.err >&5
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); } &&
2b850ae1
RR
29997 { ac_try='test -z "$ac_c_werror_flag"
29998 || test ! -s conftest.err'
62fa8b3a
MW
29999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30000 (eval $ac_try) 2>&5
30001 ac_status=$?
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); }; } &&
30004 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30010 ac_cv_lib_Sgm_SgCreateList=yes
30011else
30012 echo "$as_me: failed program was:" >&5
30013sed 's/^/| /' conftest.$ac_ext >&5
30014
30015ac_cv_lib_Sgm_SgCreateList=no
30016fi
30017rm -f conftest.err conftest.$ac_objext \
30018 conftest$ac_exeext conftest.$ac_ext
30019LIBS=$ac_check_lib_save_LIBS
30020fi
30021echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30022echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30023if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30024 libsgm_link=" -lSgm"
30025fi
30026
30027
a848cd7e 30028 save_CFLAGS=$CFLAGS
c92ad099 30029 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 30030
a848cd7e
SC
30031 echo "$as_me:$LINENO: checking for Motif 2" >&5
30032echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30033if test "${wx_cv_lib_motif2+set}" = set; then
30034 echo $ECHO_N "(cached) $ECHO_C" >&6
30035else
30036 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30037/* confdefs.h. */
30038_ACEOF
30039cat confdefs.h >>conftest.$ac_ext
30040cat >>conftest.$ac_ext <<_ACEOF
30041/* end confdefs.h. */
30042
0ad5d837 30043 #include <Xm/Xm.h>
a848cd7e
SC
30044
30045int
30046main ()
30047{
30048
0ad5d837
VZ
30049 #if XmVersion < 2000
30050 Not Motif 2
30051 #endif
a848cd7e
SC
30052
30053 ;
30054 return 0;
30055}
30056_ACEOF
30057rm -f conftest.$ac_objext
30058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30059 (eval $ac_compile) 2>conftest.er1
a848cd7e 30060 ac_status=$?
ac1cb8d3
VS
30061 grep -v '^ *+' conftest.er1 >conftest.err
30062 rm -f conftest.er1
30063 cat conftest.err >&5
a848cd7e
SC
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); } &&
2b850ae1
RR
30066 { ac_try='test -z "$ac_c_werror_flag"
30067 || test ! -s conftest.err'
ac1cb8d3
VS
30068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30069 (eval $ac_try) 2>&5
30070 ac_status=$?
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); }; } &&
30073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30075 (eval $ac_try) 2>&5
30076 ac_status=$?
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); }; }; then
0ad5d837 30079 wx_cv_lib_motif2="yes"
a848cd7e
SC
30080else
30081 echo "$as_me: failed program was:" >&5
30082sed 's/^/| /' conftest.$ac_ext >&5
30083
0ad5d837
VZ
30084wx_cv_lib_motif2="no"
30085fi
30086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30087fi
30088echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30089echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30090 if test "$wx_cv_lib_motif2" = "yes"; then
30091 cat >>confdefs.h <<\_ACEOF
30092#define __WXMOTIF20__ 1
30093_ACEOF
a848cd7e 30094
0ad5d837
VZ
30095 else
30096 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30097#define __WXMOTIF20__ 0
30098_ACEOF
30099
0ad5d837 30100 fi
2113bc77
MW
30101
30102 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30103echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30104if test "${wx_cv_lib_lesstif+set}" = set; then
30105 echo $ECHO_N "(cached) $ECHO_C" >&6
30106else
30107 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30108/* confdefs.h. */
30109_ACEOF
30110cat confdefs.h >>conftest.$ac_ext
30111cat >>conftest.$ac_ext <<_ACEOF
30112/* end confdefs.h. */
30113
0ad5d837 30114 #include <Xm/Xm.h>
2113bc77
MW
30115
30116int
30117main ()
30118{
30119
0ad5d837
VZ
30120 #if !defined(LesstifVersion) || LesstifVersion <= 0
30121 Not Lesstif
30122 #endif
2113bc77
MW
30123
30124 ;
30125 return 0;
30126}
30127_ACEOF
30128rm -f conftest.$ac_objext
30129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30130 (eval $ac_compile) 2>conftest.er1
30131 ac_status=$?
30132 grep -v '^ *+' conftest.er1 >conftest.err
30133 rm -f conftest.er1
30134 cat conftest.err >&5
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); } &&
2b850ae1
RR
30137 { ac_try='test -z "$ac_c_werror_flag"
30138 || test ! -s conftest.err'
2113bc77
MW
30139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30140 (eval $ac_try) 2>&5
30141 ac_status=$?
30142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143 (exit $ac_status); }; } &&
30144 { ac_try='test -s conftest.$ac_objext'
30145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30146 (eval $ac_try) 2>&5
30147 ac_status=$?
30148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30149 (exit $ac_status); }; }; then
0ad5d837 30150 wx_cv_lib_lesstif="yes"
2113bc77
MW
30151else
30152 echo "$as_me: failed program was:" >&5
30153sed 's/^/| /' conftest.$ac_ext >&5
30154
0ad5d837
VZ
30155wx_cv_lib_lesstif="no"
30156fi
30157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30158
0ad5d837
VZ
30159fi
30160echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30161echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30162 if test "$wx_cv_lib_lesstif" = "yes"; then
30163 cat >>confdefs.h <<\_ACEOF
30164#define __WXLESSTIF__ 1
30165_ACEOF
30166
30167 else
30168 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30169#define __WXLESSTIF__ 0
30170_ACEOF
30171
0ad5d837 30172 fi
2113bc77 30173
a848cd7e
SC
30174 CFLAGS=$save_CFLAGS
30175
62fa8b3a 30176 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30177 TOOLKIT=MOTIF
30178 GUIDIST=MOTIF_DIST
30179 fi
30180
74b84332 30181 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30182 if test "$wxUSE_LIBXPM" = "sys"; then
30183 echo "$as_me:$LINENO: checking for Xpm library" >&5
30184echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30185
0ad5d837
VZ
30186 ac_find_libraries=
30187 for ac_dir in $SEARCH_LIB;
a848cd7e 30188 do
3eca31dc 30189 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30190 if test -f "$ac_dir/libXpm.$ac_extension"; then
30191 ac_find_libraries=$ac_dir
30192 break 2
30193 fi
30194 done
30195 done
30196
30197 if test "$ac_find_libraries" != "" ; then
30198
0ad5d837 30199 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30200 ac_path_to_link=""
30201 else
0ad5d837
VZ
30202 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30203 result=$?
30204 if test $result = 0; then
30205 ac_path_to_link=""
30206 else
30207 ac_path_to_link=" -L$ac_find_libraries"
30208 fi
a848cd7e
SC
30209 fi
30210
30211 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30212 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30213echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30214
30215 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30216echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30217if test "${wx_cv_x11_xpm_h+set}" = set; then
30218 echo $ECHO_N "(cached) $ECHO_C" >&6
30219else
30220
30221 save_CFLAGS=$CFLAGS
c92ad099 30222 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30223
30224 cat >conftest.$ac_ext <<_ACEOF
30225/* confdefs.h. */
30226_ACEOF
30227cat confdefs.h >>conftest.$ac_ext
30228cat >>conftest.$ac_ext <<_ACEOF
30229/* end confdefs.h. */
30230
30231 #include <X11/xpm.h>
30232
30233int
30234main ()
30235{
30236
30237 int version;
30238 version = XpmLibraryVersion();
30239
30240 ;
30241 return 0;
30242}
30243_ACEOF
30244rm -f conftest.$ac_objext
30245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30246 (eval $ac_compile) 2>conftest.er1
a848cd7e 30247 ac_status=$?
ac1cb8d3
VS
30248 grep -v '^ *+' conftest.er1 >conftest.err
30249 rm -f conftest.er1
30250 cat conftest.err >&5
a848cd7e
SC
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252 (exit $ac_status); } &&
2b850ae1
RR
30253 { ac_try='test -z "$ac_c_werror_flag"
30254 || test ! -s conftest.err'
ac1cb8d3
VS
30255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30256 (eval $ac_try) 2>&5
30257 ac_status=$?
30258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 (exit $ac_status); }; } &&
30260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30262 (eval $ac_try) 2>&5
30263 ac_status=$?
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); }; }; then
30266 wx_cv_x11_xpm_h=yes
30267else
30268 echo "$as_me: failed program was:" >&5
30269sed 's/^/| /' conftest.$ac_ext >&5
30270
30271wx_cv_x11_xpm_h=no
30272
30273fi
ac1cb8d3 30274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30275
30276 CFLAGS=$save_CFLAGS
30277
30278
30279fi
30280echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30281echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30282
30283 if test $wx_cv_x11_xpm_h = "yes"; then
30284 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30285 cat >>confdefs.h <<\_ACEOF
30286#define wxHAVE_LIB_XPM 1
30287_ACEOF
30288
30289 else
30290 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30291echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30292 fi
30293 fi
30294
30295 fi
30296
30297 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30298echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30299if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30300 echo $ECHO_N "(cached) $ECHO_C" >&6
30301else
30302 ac_check_lib_save_LIBS=$LIBS
30303LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30304cat >conftest.$ac_ext <<_ACEOF
30305/* confdefs.h. */
30306_ACEOF
30307cat confdefs.h >>conftest.$ac_ext
30308cat >>conftest.$ac_ext <<_ACEOF
30309/* end confdefs.h. */
30310
30311/* Override any gcc2 internal prototype to avoid an error. */
30312#ifdef __cplusplus
30313extern "C"
30314#endif
30315/* We use char because int might match the return type of a gcc2
30316 builtin and then its argument prototype would still apply. */
30317char XShapeQueryExtension ();
30318int
30319main ()
30320{
30321XShapeQueryExtension ();
30322 ;
30323 return 0;
30324}
30325_ACEOF
30326rm -f conftest.$ac_objext conftest$ac_exeext
30327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30328 (eval $ac_link) 2>conftest.er1
a848cd7e 30329 ac_status=$?
ac1cb8d3
VS
30330 grep -v '^ *+' conftest.er1 >conftest.err
30331 rm -f conftest.er1
30332 cat conftest.err >&5
a848cd7e
SC
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); } &&
2b850ae1
RR
30335 { ac_try='test -z "$ac_c_werror_flag"
30336 || test ! -s conftest.err'
ac1cb8d3
VS
30337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30338 (eval $ac_try) 2>&5
30339 ac_status=$?
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); }; } &&
30342 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30344 (eval $ac_try) 2>&5
30345 ac_status=$?
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); }; }; then
30348 ac_cv_lib_Xext_XShapeQueryExtension=yes
30349else
30350 echo "$as_me: failed program was:" >&5
30351sed 's/^/| /' conftest.$ac_ext >&5
30352
30353ac_cv_lib_Xext_XShapeQueryExtension=no
30354fi
ac1cb8d3
VS
30355rm -f conftest.err conftest.$ac_objext \
30356 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30357LIBS=$ac_check_lib_save_LIBS
30358fi
30359echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30360echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30361if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30362
30363 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30364 wxHAVE_XEXT_LIB=1
30365
30366fi
30367
30368
30369 if test "$wxHAVE_XEXT_LIB" = 1; then
30370 save_CFLAGS="$CFLAGS"
c92ad099 30371 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30372
30373 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30374echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30375 cat >conftest.$ac_ext <<_ACEOF
30376/* confdefs.h. */
30377_ACEOF
30378cat confdefs.h >>conftest.$ac_ext
30379cat >>conftest.$ac_ext <<_ACEOF
30380/* end confdefs.h. */
30381
30382 #include <X11/Xlib.h>
30383 #include <X11/extensions/shape.h>
30384
30385int
30386main ()
30387{
30388
30389 int dummy1, dummy2;
30390 XShapeQueryExtension((Display*)NULL,
30391 (int*)NULL, (int*)NULL);
30392
30393 ;
30394 return 0;
30395}
30396_ACEOF
30397rm -f conftest.$ac_objext
30398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30399 (eval $ac_compile) 2>conftest.er1
a848cd7e 30400 ac_status=$?
ac1cb8d3
VS
30401 grep -v '^ *+' conftest.er1 >conftest.err
30402 rm -f conftest.er1
30403 cat conftest.err >&5
a848cd7e
SC
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); } &&
2b850ae1
RR
30406 { ac_try='test -z "$ac_c_werror_flag"
30407 || test ! -s conftest.err'
ac1cb8d3
VS
30408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30409 (eval $ac_try) 2>&5
30410 ac_status=$?
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); }; } &&
30413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30415 (eval $ac_try) 2>&5
30416 ac_status=$?
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); }; }; then
30419
30420 cat >>confdefs.h <<\_ACEOF
30421#define HAVE_XSHAPE 1
30422_ACEOF
30423
30424 echo "$as_me:$LINENO: result: found" >&5
30425echo "${ECHO_T}found" >&6
30426
30427else
30428 echo "$as_me: failed program was:" >&5
30429sed 's/^/| /' conftest.$ac_ext >&5
30430
30431
30432 echo "$as_me:$LINENO: result: not found" >&5
30433echo "${ECHO_T}not found" >&6
30434
30435fi
ac1cb8d3 30436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30437 CFLAGS="$save_CFLAGS"
30438
30439 fi
30440 fi
30441
30442 if test "$wxUSE_MAC" = 1; then
30443 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30444echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30445 if test "$GCC" = yes; then
30446 echo "$as_me:$LINENO: result: gcc" >&5
30447echo "${ECHO_T}gcc" >&6
30448 CPPFLAGS_PASCAL="-fpascal-strings"
30449 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30450 echo "$as_me:$LINENO: result: xlc" >&5
30451echo "${ECHO_T}xlc" >&6
30452 CPPFLAGS_PASCAL="-qmacpstr"
30453 else
30454 echo "$as_me:$LINENO: result: none" >&5
30455echo "${ECHO_T}none" >&6
30456 fi
30457
1e9e8aba 30458 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30459 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30460 else
c92ad099 30461 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30462 fi
a848cd7e 30463
a848cd7e
SC
30464 TOOLKIT=MAC
30465 GUIDIST=MACX_DIST
dd21ced8 30466 WXBASEPORT="_carbon"
a848cd7e
SC
30467 fi
30468
30469 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30470 TOOLKIT=COCOA
30471 GUIDIST=COCOA_DIST
30472 fi
30473
30474 if test "$wxUSE_PM" = 1; then
30475 TOOLKIT=PM
de59c161
RD
30476 GUIDIST=PM_DIST
30477 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30478echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30479if test "${wx_cv_spbcdata+set}" = set; then
30480 echo $ECHO_N "(cached) $ECHO_C" >&6
30481else
30482
30483 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30484/* confdefs.h. */
30485_ACEOF
30486cat confdefs.h >>conftest.$ac_ext
30487cat >>conftest.$ac_ext <<_ACEOF
30488/* end confdefs.h. */
30489
30490 #define INCL_PM
30491 #include <os2.h>
30492
30493int
30494main ()
30495{
30496
30497 SPBCDATA test;
30498
30499 ;
30500 return 0;
30501}
30502_ACEOF
30503rm -f conftest.$ac_objext
30504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30505 (eval $ac_compile) 2>conftest.er1
de59c161 30506 ac_status=$?
ac1cb8d3
VS
30507 grep -v '^ *+' conftest.er1 >conftest.err
30508 rm -f conftest.er1
30509 cat conftest.err >&5
de59c161
RD
30510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511 (exit $ac_status); } &&
2b850ae1
RR
30512 { ac_try='test -z "$ac_c_werror_flag"
30513 || test ! -s conftest.err'
ac1cb8d3
VS
30514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30515 (eval $ac_try) 2>&5
30516 ac_status=$?
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); }; } &&
30519 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30521 (eval $ac_try) 2>&5
30522 ac_status=$?
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); }; }; then
30525 wx_cv_spbcdata=yes
30526else
30527 echo "$as_me: failed program was:" >&5
30528sed 's/^/| /' conftest.$ac_ext >&5
30529
30530wx_cv_spbcdata=no
30531
30532fi
ac1cb8d3 30533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30534
30535
30536fi
30537echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30538echo "${ECHO_T}$wx_cv_spbcdata" >&6
30539
30540 if test $wx_cv_spbcdata = "yes"; then
30541 cat >>confdefs.h <<\_ACEOF
30542#define HAVE_SPBCDATA 1
30543_ACEOF
30544
30545 fi
a848cd7e
SC
30546 fi
30547
30548 if test "$TOOLKIT" = "PM" ; then
30549 TOOLKIT_DIR="os2"
30550 else
30551 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30552 fi
30553
a848cd7e 30554 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30555 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30556 WIDGET_SET=univ
a848cd7e
SC
30557 fi
30558
30559 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30560 DISTDIR="wx\$(TOOLKIT)"
30561else
30562 USE_GUI=0
30563
30564 TOOLKIT_DIR="base"
30565
30566 if test "$USE_WIN32" = 1 ; then
a848cd7e 30567 TOOLKIT="MSW"
a848cd7e
SC
30568 fi
30569
a848cd7e
SC
30570 GUIDIST="BASE_DIST"
30571 DISTDIR="wxBase"
30572fi
30573
30574
d12aef51
VZ
30575if test "$wxUSE_GUI" = "yes"; then
30576 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30577
30578for ac_header in X11/Xlib.h
30579do
30580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30581if eval "test \"\${$as_ac_Header+set}\" = set"; then
30582 echo "$as_me:$LINENO: checking for $ac_header" >&5
30583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30584if eval "test \"\${$as_ac_Header+set}\" = set"; then
30585 echo $ECHO_N "(cached) $ECHO_C" >&6
30586fi
30587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30589else
30590 # Is the header compilable?
30591echo "$as_me:$LINENO: checking $ac_header usability" >&5
30592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30593cat >conftest.$ac_ext <<_ACEOF
30594/* confdefs.h. */
30595_ACEOF
30596cat confdefs.h >>conftest.$ac_ext
30597cat >>conftest.$ac_ext <<_ACEOF
30598/* end confdefs.h. */
30599$ac_includes_default
30600#include <$ac_header>
30601_ACEOF
30602rm -f conftest.$ac_objext
30603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30604 (eval $ac_compile) 2>conftest.er1
30605 ac_status=$?
30606 grep -v '^ *+' conftest.er1 >conftest.err
30607 rm -f conftest.er1
30608 cat conftest.err >&5
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); } &&
2b850ae1
RR
30611 { ac_try='test -z "$ac_c_werror_flag"
30612 || test ! -s conftest.err'
d12aef51
VZ
30613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30614 (eval $ac_try) 2>&5
30615 ac_status=$?
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; } &&
30618 { ac_try='test -s conftest.$ac_objext'
30619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620 (eval $ac_try) 2>&5
30621 ac_status=$?
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; }; then
30624 ac_header_compiler=yes
30625else
30626 echo "$as_me: failed program was:" >&5
30627sed 's/^/| /' conftest.$ac_ext >&5
30628
30629ac_header_compiler=no
30630fi
30631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30633echo "${ECHO_T}$ac_header_compiler" >&6
30634
30635# Is the header present?
30636echo "$as_me:$LINENO: checking $ac_header presence" >&5
30637echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30638cat >conftest.$ac_ext <<_ACEOF
30639/* confdefs.h. */
30640_ACEOF
30641cat confdefs.h >>conftest.$ac_ext
30642cat >>conftest.$ac_ext <<_ACEOF
30643/* end confdefs.h. */
30644#include <$ac_header>
30645_ACEOF
30646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30648 ac_status=$?
30649 grep -v '^ *+' conftest.er1 >conftest.err
30650 rm -f conftest.er1
30651 cat conftest.err >&5
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); } >/dev/null; then
30654 if test -s conftest.err; then
30655 ac_cpp_err=$ac_c_preproc_warn_flag
30656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30657 else
30658 ac_cpp_err=
30659 fi
30660else
30661 ac_cpp_err=yes
30662fi
30663if test -z "$ac_cpp_err"; then
30664 ac_header_preproc=yes
30665else
30666 echo "$as_me: failed program was:" >&5
30667sed 's/^/| /' conftest.$ac_ext >&5
30668
30669 ac_header_preproc=no
30670fi
30671rm -f conftest.err conftest.$ac_ext
30672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30673echo "${ECHO_T}$ac_header_preproc" >&6
30674
30675# So? What about this header?
30676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30677 yes:no: )
30678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30682 ac_header_preproc=yes
30683 ;;
30684 no:yes:* )
30685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30697 (
30698 cat <<\_ASBOX
30699## ----------------------------------------- ##
30700## Report this to wx-dev@lists.wxwidgets.org ##
30701## ----------------------------------------- ##
30702_ASBOX
30703 ) |
30704 sed "s/^/$as_me: WARNING: /" >&2
30705 ;;
30706esac
30707echo "$as_me:$LINENO: checking for $ac_header" >&5
30708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30709if eval "test \"\${$as_ac_Header+set}\" = set"; then
30710 echo $ECHO_N "(cached) $ECHO_C" >&6
30711else
30712 eval "$as_ac_Header=\$ac_header_preproc"
30713fi
30714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30716
30717fi
30718if test `eval echo '${'$as_ac_Header'}'` = yes; then
30719 cat >>confdefs.h <<_ACEOF
30720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30721_ACEOF
30722
30723fi
30724
30725done
30726
30727
30728for ac_header in X11/XKBlib.h
30729do
30730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30731echo "$as_me:$LINENO: checking for $ac_header" >&5
30732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30733if eval "test \"\${$as_ac_Header+set}\" = set"; then
30734 echo $ECHO_N "(cached) $ECHO_C" >&6
30735else
30736 cat >conftest.$ac_ext <<_ACEOF
30737/* confdefs.h. */
30738_ACEOF
30739cat confdefs.h >>conftest.$ac_ext
30740cat >>conftest.$ac_ext <<_ACEOF
30741/* end confdefs.h. */
30742
30743 #if HAVE_X11_XLIB_H
30744 #include <X11/Xlib.h>
30745 #endif
30746
30747
30748#include <$ac_header>
30749_ACEOF
30750rm -f conftest.$ac_objext
30751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30752 (eval $ac_compile) 2>conftest.er1
30753 ac_status=$?
30754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } &&
2b850ae1
RR
30759 { ac_try='test -z "$ac_c_werror_flag"
30760 || test ! -s conftest.err'
d12aef51
VZ
30761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30762 (eval $ac_try) 2>&5
30763 ac_status=$?
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); }; } &&
30766 { ac_try='test -s conftest.$ac_objext'
30767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768 (eval $ac_try) 2>&5
30769 ac_status=$?
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; }; then
30772 eval "$as_ac_Header=yes"
30773else
30774 echo "$as_me: failed program was:" >&5
30775sed 's/^/| /' conftest.$ac_ext >&5
30776
30777eval "$as_ac_Header=no"
30778fi
30779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30780fi
30781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30783if test `eval echo '${'$as_ac_Header'}'` = yes; then
30784 cat >>confdefs.h <<_ACEOF
30785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30786_ACEOF
30787
30788fi
30789
30790done
30791
30792 fi
30793fi
30794
a848cd7e
SC
30795
30796
30797IODBC_C_SRC=""
30798
30799
30800if test "$TOOLKIT" != "MSW" ; then
30801
30802 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30803
30804 if test "${ac_cv_header_sql_h+set}" = set; then
30805 echo "$as_me:$LINENO: checking for sql.h" >&5
30806echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30807if test "${ac_cv_header_sql_h+set}" = set; then
30808 echo $ECHO_N "(cached) $ECHO_C" >&6
30809fi
30810echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30811echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30812else
30813 # Is the header compilable?
30814echo "$as_me:$LINENO: checking sql.h usability" >&5
30815echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30816cat >conftest.$ac_ext <<_ACEOF
30817/* confdefs.h. */
30818_ACEOF
30819cat confdefs.h >>conftest.$ac_ext
30820cat >>conftest.$ac_ext <<_ACEOF
30821/* end confdefs.h. */
30822$ac_includes_default
30823#include <sql.h>
30824_ACEOF
30825rm -f conftest.$ac_objext
30826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30827 (eval $ac_compile) 2>conftest.er1
a848cd7e 30828 ac_status=$?
ac1cb8d3
VS
30829 grep -v '^ *+' conftest.er1 >conftest.err
30830 rm -f conftest.er1
30831 cat conftest.err >&5
a848cd7e
SC
30832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833 (exit $ac_status); } &&
2b850ae1
RR
30834 { ac_try='test -z "$ac_c_werror_flag"
30835 || test ! -s conftest.err'
ac1cb8d3
VS
30836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30837 (eval $ac_try) 2>&5
30838 ac_status=$?
30839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840 (exit $ac_status); }; } &&
30841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30843 (eval $ac_try) 2>&5
30844 ac_status=$?
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); }; }; then
30847 ac_header_compiler=yes
30848else
30849 echo "$as_me: failed program was:" >&5
30850sed 's/^/| /' conftest.$ac_ext >&5
30851
30852ac_header_compiler=no
30853fi
ac1cb8d3 30854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30856echo "${ECHO_T}$ac_header_compiler" >&6
30857
30858# Is the header present?
30859echo "$as_me:$LINENO: checking sql.h presence" >&5
30860echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30861cat >conftest.$ac_ext <<_ACEOF
30862/* confdefs.h. */
30863_ACEOF
30864cat confdefs.h >>conftest.$ac_ext
30865cat >>conftest.$ac_ext <<_ACEOF
30866/* end confdefs.h. */
30867#include <sql.h>
30868_ACEOF
30869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30871 ac_status=$?
30872 grep -v '^ *+' conftest.er1 >conftest.err
30873 rm -f conftest.er1
30874 cat conftest.err >&5
30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876 (exit $ac_status); } >/dev/null; then
30877 if test -s conftest.err; then
30878 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30880 else
30881 ac_cpp_err=
30882 fi
30883else
30884 ac_cpp_err=yes
30885fi
30886if test -z "$ac_cpp_err"; then
30887 ac_header_preproc=yes
30888else
30889 echo "$as_me: failed program was:" >&5
30890sed 's/^/| /' conftest.$ac_ext >&5
30891
30892 ac_header_preproc=no
30893fi
30894rm -f conftest.err conftest.$ac_ext
30895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30896echo "${ECHO_T}$ac_header_preproc" >&6
30897
30898# So? What about this header?
ac1cb8d3
VS
30899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30900 yes:no: )
a848cd7e
SC
30901 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30902echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30903 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30904echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30905 ac_header_preproc=yes
a848cd7e 30906 ;;
ac1cb8d3 30907 no:yes:* )
a848cd7e
SC
30908 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30909echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30910 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30911echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30912 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30913echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30914 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30915echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30916 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30917echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30918 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30919echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30920 (
30921 cat <<\_ASBOX
ac1cb8d3
VS
30922## ----------------------------------------- ##
30923## Report this to wx-dev@lists.wxwidgets.org ##
30924## ----------------------------------------- ##
a848cd7e
SC
30925_ASBOX
30926 ) |
30927 sed "s/^/$as_me: WARNING: /" >&2
30928 ;;
30929esac
30930echo "$as_me:$LINENO: checking for sql.h" >&5
30931echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30932if test "${ac_cv_header_sql_h+set}" = set; then
30933 echo $ECHO_N "(cached) $ECHO_C" >&6
30934else
30935 ac_cv_header_sql_h=$ac_header_preproc
30936fi
30937echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30938echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30939
30940fi
30941if test $ac_cv_header_sql_h = yes; then
30942 found_sql_h=1
30943fi
30944
30945
30946 if test "x$found_sql_h" = "x1" ; then
30947 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30948echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30949if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30950 echo $ECHO_N "(cached) $ECHO_C" >&6
30951else
30952 ac_check_lib_save_LIBS=$LIBS
30953LIBS="-liodbc $LIBS"
30954cat >conftest.$ac_ext <<_ACEOF
30955/* confdefs.h. */
30956_ACEOF
30957cat confdefs.h >>conftest.$ac_ext
30958cat >>conftest.$ac_ext <<_ACEOF
30959/* end confdefs.h. */
30960
30961/* Override any gcc2 internal prototype to avoid an error. */
30962#ifdef __cplusplus
30963extern "C"
30964#endif
30965/* We use char because int might match the return type of a gcc2
30966 builtin and then its argument prototype would still apply. */
30967char SQLAllocEnv ();
30968int
30969main ()
30970{
30971SQLAllocEnv ();
30972 ;
30973 return 0;
30974}
30975_ACEOF
30976rm -f conftest.$ac_objext conftest$ac_exeext
30977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30978 (eval $ac_link) 2>conftest.er1
a848cd7e 30979 ac_status=$?
ac1cb8d3
VS
30980 grep -v '^ *+' conftest.er1 >conftest.err
30981 rm -f conftest.er1
30982 cat conftest.err >&5
a848cd7e
SC
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); } &&
2b850ae1
RR
30985 { ac_try='test -z "$ac_c_werror_flag"
30986 || test ! -s conftest.err'
ac1cb8d3
VS
30987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30988 (eval $ac_try) 2>&5
30989 ac_status=$?
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); }; } &&
30992 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30994 (eval $ac_try) 2>&5
30995 ac_status=$?
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); }; }; then
30998 ac_cv_lib_iodbc_SQLAllocEnv=yes
30999else
31000 echo "$as_me: failed program was:" >&5
31001sed 's/^/| /' conftest.$ac_ext >&5
31002
31003ac_cv_lib_iodbc_SQLAllocEnv=no
31004fi
ac1cb8d3
VS
31005rm -f conftest.err conftest.$ac_objext \
31006 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31007LIBS=$ac_check_lib_save_LIBS
31008fi
31009echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31010echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31011if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31012 ODBC_LINK=" -liodbc"
31013else
31014
31015 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31016echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31017if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31018 echo $ECHO_N "(cached) $ECHO_C" >&6
31019else
31020 ac_check_lib_save_LIBS=$LIBS
31021LIBS="-lunixodbc $LIBS"
31022cat >conftest.$ac_ext <<_ACEOF
31023/* confdefs.h. */
31024_ACEOF
31025cat confdefs.h >>conftest.$ac_ext
31026cat >>conftest.$ac_ext <<_ACEOF
31027/* end confdefs.h. */
31028
31029/* Override any gcc2 internal prototype to avoid an error. */
31030#ifdef __cplusplus
31031extern "C"
31032#endif
31033/* We use char because int might match the return type of a gcc2
31034 builtin and then its argument prototype would still apply. */
31035char SQLAllocEnv ();
31036int
31037main ()
31038{
31039SQLAllocEnv ();
31040 ;
31041 return 0;
31042}
31043_ACEOF
31044rm -f conftest.$ac_objext conftest$ac_exeext
31045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31046 (eval $ac_link) 2>conftest.er1
a848cd7e 31047 ac_status=$?
ac1cb8d3
VS
31048 grep -v '^ *+' conftest.er1 >conftest.err
31049 rm -f conftest.er1
31050 cat conftest.err >&5
a848cd7e
SC
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); } &&
2b850ae1
RR
31053 { ac_try='test -z "$ac_c_werror_flag"
31054 || test ! -s conftest.err'
ac1cb8d3
VS
31055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31056 (eval $ac_try) 2>&5
31057 ac_status=$?
31058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059 (exit $ac_status); }; } &&
31060 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31062 (eval $ac_try) 2>&5
31063 ac_status=$?
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); }; }; then
31066 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31067else
31068 echo "$as_me: failed program was:" >&5
31069sed 's/^/| /' conftest.$ac_ext >&5
31070
31071ac_cv_lib_unixodbc_SQLAllocEnv=no
31072fi
ac1cb8d3
VS
31073rm -f conftest.err conftest.$ac_objext \
31074 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31075LIBS=$ac_check_lib_save_LIBS
31076fi
31077echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31078echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31079if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31080 ODBC_LINK=" -lunixodbc"
31081else
31082
31083 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31084echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31085if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31086 echo $ECHO_N "(cached) $ECHO_C" >&6
31087else
31088 ac_check_lib_save_LIBS=$LIBS
31089LIBS="-lodbc $LIBS"
31090cat >conftest.$ac_ext <<_ACEOF
31091/* confdefs.h. */
31092_ACEOF
31093cat confdefs.h >>conftest.$ac_ext
31094cat >>conftest.$ac_ext <<_ACEOF
31095/* end confdefs.h. */
31096
31097/* Override any gcc2 internal prototype to avoid an error. */
31098#ifdef __cplusplus
31099extern "C"
31100#endif
31101/* We use char because int might match the return type of a gcc2
31102 builtin and then its argument prototype would still apply. */
31103char SQLAllocEnv ();
31104int
31105main ()
31106{
31107SQLAllocEnv ();
31108 ;
31109 return 0;
31110}
31111_ACEOF
31112rm -f conftest.$ac_objext conftest$ac_exeext
31113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31114 (eval $ac_link) 2>conftest.er1
a848cd7e 31115 ac_status=$?
ac1cb8d3
VS
31116 grep -v '^ *+' conftest.er1 >conftest.err
31117 rm -f conftest.er1
31118 cat conftest.err >&5
a848cd7e
SC
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); } &&
2b850ae1
RR
31121 { ac_try='test -z "$ac_c_werror_flag"
31122 || test ! -s conftest.err'
ac1cb8d3
VS
31123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31124 (eval $ac_try) 2>&5
31125 ac_status=$?
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); }; } &&
31128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31130 (eval $ac_try) 2>&5
31131 ac_status=$?
31132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); }; }; then
31134 ac_cv_lib_odbc_SQLAllocEnv=yes
31135else
31136 echo "$as_me: failed program was:" >&5
31137sed 's/^/| /' conftest.$ac_ext >&5
31138
31139ac_cv_lib_odbc_SQLAllocEnv=no
31140fi
ac1cb8d3
VS
31141rm -f conftest.err conftest.$ac_objext \
31142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31143LIBS=$ac_check_lib_save_LIBS
31144fi
31145echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31146echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31147if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31148 ODBC_LINK=" -lodbc"
31149fi
31150
31151
31152fi
31153
31154
31155fi
31156
31157 fi
31158 if test "x$ODBC_LINK" = "x" ; then
31159 if test "$wxUSE_ODBC" = "sys" ; then
31160 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31161echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31162 { (exit 1); exit 1; }; }
31163 else
31164 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31165echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31166 wxUSE_ODBC=builtin
31167 fi
31168 else
31169 wxUSE_ODBC=sys
31170 fi
31171 fi
a848cd7e 31172
2da0c077
RD
31173 if test "$wxUSE_ODBC" = "builtin" ; then
31174 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31175#define wxUSE_BUILTIN_IODBC 1
31176_ACEOF
31177
a848cd7e
SC
31178 fi
31179fi
31180
2da0c077
RD
31181if test "$wxUSE_ODBC" != "no" ; then
31182 cat >>confdefs.h <<\_ACEOF
31183#define wxUSE_ODBC 1
31184_ACEOF
31185
31186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31187
5ff751d6 31188 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31189fi
a848cd7e 31190
01cb68df 31191
a848cd7e 31192if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31193 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31194 echo "$as_me:$LINENO: checking for Xinerama" >&5
31195echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31196
0ad5d837
VZ
31197 ac_find_libraries=
31198 for ac_dir in $SEARCH_LIB;
31199 do
31200 for ac_extension in a so sl dylib dll.a; do
31201 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31202 ac_find_libraries=$ac_dir
31203 break 2
31204 fi
31205 done
31206 done
31207
a848cd7e
SC
31208 if test "$ac_find_libraries" != "" ; then
31209
0ad5d837 31210 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31211 ac_path_to_link=""
31212 else
0ad5d837
VZ
31213 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31214 result=$?
31215 if test $result = 0; then
31216 ac_path_to_link=""
31217 else
31218 ac_path_to_link=" -L$ac_find_libraries"
31219 fi
a848cd7e
SC
31220 fi
31221
31222 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31223 LDFLAGS="$LDFLAGS $ac_path_to_link"
31224 fi
31225 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31226 echo "$as_me:$LINENO: result: yes" >&5
31227echo "${ECHO_T}yes" >&6
31228
31229 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31230echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31231
0ad5d837
VZ
31232 ac_find_libraries=
31233 for ac_dir in $SEARCH_LIB;
a848cd7e 31234 do
3eca31dc 31235 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31236 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31237 ac_find_libraries=$ac_dir
31238 break 2
31239 fi
31240 done
31241 done
31242
31243 if test "$ac_find_libraries" != "" ; then
31244 echo "$as_me:$LINENO: result: yes" >&5
31245echo "${ECHO_T}yes" >&6
31246
31247for ac_header in X11/extensions/xf86vmode.h
31248do
31249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31250echo "$as_me:$LINENO: checking for $ac_header" >&5
31251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31252if eval "test \"\${$as_ac_Header+set}\" = set"; then
31253 echo $ECHO_N "(cached) $ECHO_C" >&6
31254else
31255 cat >conftest.$ac_ext <<_ACEOF
31256/* confdefs.h. */
31257_ACEOF
31258cat confdefs.h >>conftest.$ac_ext
31259cat >>conftest.$ac_ext <<_ACEOF
31260/* end confdefs.h. */
31261
31262 #if HAVE_X11_XLIB_H
31263 #include <X11/Xlib.h>
31264 #endif
31265
31266
31267#include <$ac_header>
31268_ACEOF
31269rm -f conftest.$ac_objext
31270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31271 (eval $ac_compile) 2>conftest.er1
a848cd7e 31272 ac_status=$?
ac1cb8d3
VS
31273 grep -v '^ *+' conftest.er1 >conftest.err
31274 rm -f conftest.er1
31275 cat conftest.err >&5
a848cd7e
SC
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); } &&
2b850ae1
RR
31278 { ac_try='test -z "$ac_c_werror_flag"
31279 || test ! -s conftest.err'
ac1cb8d3
VS
31280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31281 (eval $ac_try) 2>&5
31282 ac_status=$?
31283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284 (exit $ac_status); }; } &&
31285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31287 (eval $ac_try) 2>&5
31288 ac_status=$?
31289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290 (exit $ac_status); }; }; then
31291 eval "$as_ac_Header=yes"
31292else
31293 echo "$as_me: failed program was:" >&5
31294sed 's/^/| /' conftest.$ac_ext >&5
31295
31296eval "$as_ac_Header=no"
31297fi
ac1cb8d3 31298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31299fi
31300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31302if test `eval echo '${'$as_ac_Header'}'` = yes; then
31303 cat >>confdefs.h <<_ACEOF
31304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31305_ACEOF
31306
31307 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31308
31309fi
31310
31311done
31312
31313 else
31314 echo "$as_me:$LINENO: result: no" >&5
31315echo "${ECHO_T}no" >&6
31316 fi
31317
31318 else
31319 echo "$as_me:$LINENO: result: no" >&5
31320echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31321 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31322echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31323 wxUSE_DISPLAY="no"
31324 fi
01cb68df
RG
31325 elif test "$wxUSE_MSW" = 1; then
31326
e5efa97e 31327for ac_header in ddraw.h
01cb68df
RG
31328do
31329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31330echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31332if eval "test \"\${$as_ac_Header+set}\" = set"; then
31333 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31334else
5294a27e 31335 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31336/* confdefs.h. */
31337_ACEOF
31338cat confdefs.h >>conftest.$ac_ext
31339cat >>conftest.$ac_ext <<_ACEOF
31340/* end confdefs.h. */
5294a27e
VZ
31341#include <windows.h>
31342
01cb68df
RG
31343#include <$ac_header>
31344_ACEOF
31345rm -f conftest.$ac_objext
31346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31347 (eval $ac_compile) 2>conftest.er1
01cb68df 31348 ac_status=$?
ac1cb8d3
VS
31349 grep -v '^ *+' conftest.er1 >conftest.err
31350 rm -f conftest.er1
31351 cat conftest.err >&5
01cb68df
RG
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); } &&
2b850ae1
RR
31354 { ac_try='test -z "$ac_c_werror_flag"
31355 || test ! -s conftest.err'
ac1cb8d3
VS
31356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31357 (eval $ac_try) 2>&5
31358 ac_status=$?
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); }; } &&
31361 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363 (eval $ac_try) 2>&5
31364 ac_status=$?
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; }; then
5294a27e 31367 eval "$as_ac_Header=yes"
01cb68df
RG
31368else
31369 echo "$as_me: failed program was:" >&5
31370sed 's/^/| /' conftest.$ac_ext >&5
31371
5294a27e 31372eval "$as_ac_Header=no"
01cb68df 31373fi
ac1cb8d3 31374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31375fi
31376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31378if test `eval echo '${'$as_ac_Header'}'` = yes; then
31379 cat >>confdefs.h <<_ACEOF
31380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31381_ACEOF
31382
01cb68df
RG
31383fi
31384
31385done
31386
a848cd7e
SC
31387 fi
31388fi
31389
31390
31391USE_OPENGL=0
31392if test "$wxUSE_OPENGL" = "yes"; then
31393 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31394 OPENGL_LIBS="-framework OpenGL -framework AGL"
31395 elif test "$wxUSE_MSW" = 1; then
31396 OPENGL_LIBS="-lopengl32 -lglu32"
31397 else
31398
31399
31400ac_find_includes=
31401for ac_dir in $SEARCH_INCLUDE /usr/include;
31402 do
31403 if test -f "$ac_dir/GL/gl.h"; then
31404 ac_find_includes=$ac_dir
31405 break
31406 fi
31407 done
31408
31409 if test "$ac_find_includes" != "" ; then
31410 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31411echo "${ECHO_T}found in $ac_find_includes" >&6
31412
31413 if test "x$ac_find_includes" = "x/usr/include"; then
31414 ac_path_to_include=""
31415 else
31416 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31417 result=$?
31418 if test $result = 0; then
31419 ac_path_to_include=""
31420 else
31421 ac_path_to_include=" -I$ac_find_includes"
31422 fi
31423 fi
31424
c92ad099 31425 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31426 fi
31427
31428 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31429 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31430echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31431if test "${ac_cv_header_GL_gl_h+set}" = set; then
31432 echo $ECHO_N "(cached) $ECHO_C" >&6
31433fi
31434echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31435echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31436else
31437 # Is the header compilable?
31438echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31439echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31440cat >conftest.$ac_ext <<_ACEOF
31441/* confdefs.h. */
31442_ACEOF
31443cat confdefs.h >>conftest.$ac_ext
31444cat >>conftest.$ac_ext <<_ACEOF
31445/* end confdefs.h. */
31446$ac_includes_default
31447#include <GL/gl.h>
31448_ACEOF
31449rm -f conftest.$ac_objext
31450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31451 (eval $ac_compile) 2>conftest.er1
a848cd7e 31452 ac_status=$?
ac1cb8d3
VS
31453 grep -v '^ *+' conftest.er1 >conftest.err
31454 rm -f conftest.er1
31455 cat conftest.err >&5
a848cd7e
SC
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); } &&
2b850ae1
RR
31458 { ac_try='test -z "$ac_c_werror_flag"
31459 || test ! -s conftest.err'
ac1cb8d3
VS
31460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31461 (eval $ac_try) 2>&5
31462 ac_status=$?
31463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); }; } &&
31465 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31467 (eval $ac_try) 2>&5
31468 ac_status=$?
31469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470 (exit $ac_status); }; }; then
31471 ac_header_compiler=yes
31472else
31473 echo "$as_me: failed program was:" >&5
31474sed 's/^/| /' conftest.$ac_ext >&5
31475
31476ac_header_compiler=no
31477fi
ac1cb8d3 31478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31479echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31480echo "${ECHO_T}$ac_header_compiler" >&6
31481
31482# Is the header present?
31483echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31484echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31485cat >conftest.$ac_ext <<_ACEOF
31486/* confdefs.h. */
31487_ACEOF
31488cat confdefs.h >>conftest.$ac_ext
31489cat >>conftest.$ac_ext <<_ACEOF
31490/* end confdefs.h. */
31491#include <GL/gl.h>
31492_ACEOF
31493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31495 ac_status=$?
31496 grep -v '^ *+' conftest.er1 >conftest.err
31497 rm -f conftest.er1
31498 cat conftest.err >&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } >/dev/null; then
31501 if test -s conftest.err; then
31502 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31504 else
31505 ac_cpp_err=
31506 fi
31507else
31508 ac_cpp_err=yes
31509fi
31510if test -z "$ac_cpp_err"; then
31511 ac_header_preproc=yes
31512else
31513 echo "$as_me: failed program was:" >&5
31514sed 's/^/| /' conftest.$ac_ext >&5
31515
31516 ac_header_preproc=no
31517fi
31518rm -f conftest.err conftest.$ac_ext
31519echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31520echo "${ECHO_T}$ac_header_preproc" >&6
31521
31522# So? What about this header?
ac1cb8d3
VS
31523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31524 yes:no: )
a848cd7e
SC
31525 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31526echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31527 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31528echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31529 ac_header_preproc=yes
a848cd7e 31530 ;;
ac1cb8d3 31531 no:yes:* )
a848cd7e
SC
31532 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31533echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31534 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31535echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31536 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31537echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31538 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31539echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31540 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31541echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31542 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31543echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31544 (
31545 cat <<\_ASBOX
ac1cb8d3
VS
31546## ----------------------------------------- ##
31547## Report this to wx-dev@lists.wxwidgets.org ##
31548## ----------------------------------------- ##
a848cd7e
SC
31549_ASBOX
31550 ) |
31551 sed "s/^/$as_me: WARNING: /" >&2
31552 ;;
31553esac
31554echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31555echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31556if test "${ac_cv_header_GL_gl_h+set}" = set; then
31557 echo $ECHO_N "(cached) $ECHO_C" >&6
31558else
31559 ac_cv_header_GL_gl_h=$ac_header_preproc
31560fi
31561echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31562echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31563
31564fi
31565if test $ac_cv_header_GL_gl_h = yes; then
31566
31567 found_gl=0
31568
31569 echo "$as_me:$LINENO: checking for -lGL" >&5
31570echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31571
0ad5d837
VZ
31572 ac_find_libraries=
31573 for ac_dir in $SEARCH_LIB;
a848cd7e 31574 do
3eca31dc 31575 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31576 if test -f "$ac_dir/libGL.$ac_extension"; then
31577 ac_find_libraries=$ac_dir
31578 break 2
31579 fi
31580 done
31581 done
31582
31583 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31584 echo "$as_me:$LINENO: result: yes" >&5
31585echo "${ECHO_T}yes" >&6
31586
a848cd7e 31587
0ad5d837 31588 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31589 ac_path_to_link=""
31590 else
0ad5d837
VZ
31591 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31592 result=$?
31593 if test $result = 0; then
31594 ac_path_to_link=""
31595 else
31596 ac_path_to_link=" -L$ac_find_libraries"
31597 fi
a848cd7e
SC
31598 fi
31599
31600 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31601 LDFLAGS_GL="$ac_path_to_link"
31602 fi
31603
69120ee4
VZ
31604 echo "$as_me:$LINENO: checking for -lGLU" >&5
31605echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31606
0ad5d837
VZ
31607 ac_find_libraries=
31608 for ac_dir in $SEARCH_LIB;
31609 do
31610 for ac_extension in a so sl dylib dll.a; do
31611 if test -f "$ac_dir/libGLU.$ac_extension"; then
31612 ac_find_libraries=$ac_dir
31613 break 2
31614 fi
31615 done
31616 done
31617
a848cd7e
SC
31618 if test "$ac_find_libraries" != "" ; then
31619
0ad5d837 31620 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31621 ac_path_to_link=""
31622 else
0ad5d837
VZ
31623 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31624 result=$?
31625 if test $result = 0; then
31626 ac_path_to_link=""
31627 else
31628 ac_path_to_link=" -L$ac_find_libraries"
31629 fi
a848cd7e
SC
31630 fi
31631
31632 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31633 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31634 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31635 fi
31636
31637 found_gl=1
31638 OPENGL_LIBS="-lGL -lGLU"
31639 echo "$as_me:$LINENO: result: yes" >&5
31640echo "${ECHO_T}yes" >&6
69120ee4
VZ
31641 else
31642 echo "$as_me:$LINENO: result: no" >&5
31643echo "${ECHO_T}no" >&6
a848cd7e 31644 fi
69120ee4
VZ
31645 else
31646 echo "$as_me:$LINENO: result: no" >&5
31647echo "${ECHO_T}no" >&6
a848cd7e
SC
31648 fi
31649
31650 if test "$found_gl" != 1; then
a848cd7e
SC
31651 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31652echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31653
0ad5d837
VZ
31654 ac_find_libraries=
31655 for ac_dir in $SEARCH_LIB;
a848cd7e 31656 do
3eca31dc 31657 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31658 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31659 ac_find_libraries=$ac_dir
31660 break 2
31661 fi
31662 done
31663 done
31664
31665 if test "$ac_find_libraries" != "" ; then
31666
0ad5d837 31667 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31668 ac_path_to_link=""
31669 else
0ad5d837
VZ
31670 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31671 result=$?
31672 if test $result = 0; then
31673 ac_path_to_link=""
31674 else
31675 ac_path_to_link=" -L$ac_find_libraries"
31676 fi
a848cd7e
SC
31677 fi
31678
31679 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31680 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31681 echo "$as_me:$LINENO: result: yes" >&5
31682echo "${ECHO_T}yes" >&6
31683 else
31684 echo "$as_me:$LINENO: result: no" >&5
31685echo "${ECHO_T}no" >&6
31686 fi
31687 fi
31688
31689fi
31690
31691
31692
31693 if test "x$OPENGL_LIBS" = "x"; then
31694 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31695echo "$as_me: error: OpenGL libraries not available" >&2;}
31696 { (exit 1); exit 1; }; }
31697 fi
31698 fi
31699
31700 if test "$wxUSE_OPENGL" = "yes"; then
31701 USE_OPENGL=1
31702 cat >>confdefs.h <<\_ACEOF
31703#define wxUSE_OPENGL 1
31704_ACEOF
31705
31706 cat >>confdefs.h <<\_ACEOF
31707#define wxUSE_GLCANVAS 1
31708_ACEOF
31709
31710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31711 fi
31712fi
31713
a848cd7e
SC
31714
31715if test -n "$TOOLKIT" ; then
31716 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31717fi
31718
a848cd7e
SC
31719
31720
31721if test "$wxUSE_SHARED" = "yes"; then
31722 case "${host}" in
31723 *-pc-msdosdjgpp )
31724 wxUSE_SHARED=no
31725 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31726echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31727 ;;
31728 esac
31729fi
31730
a848cd7e 31731if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31732
31733
31734 found_versioning=no
31735
31736
31737 if test $found_versioning = no ; then
31738 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31739echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31740if test "${wx_cv_version_script+set}" = set; then
31741 echo $ECHO_N "(cached) $ECHO_C" >&6
31742else
31743
31744 echo "VER_1 { *; };" >conftest.sym
31745 echo "int main() { return 0; }" >conftest.cpp
31746
31747 if { ac_try='
31748 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31749 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31751 (eval $ac_try) 2>&5
31752 ac_status=$?
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); }; } ; then
31755 if test -s conftest.stderr ; then
31756 wx_cv_version_script=no
31757 else
31758 wx_cv_version_script=yes
31759 fi
31760 else
31761 wx_cv_version_script=no
31762 fi
e5d4b470
MW
31763
31764 if test $wx_cv_version_script = yes
31765 then
31766 echo "struct B { virtual ~B() { } }; \
31767 struct D : public B { }; \
31768 void F() { D d; }" > conftest.cpp
31769
31770 if { ac_try='
31771 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31772 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31774 (eval $ac_try) 2>&5
31775 ac_status=$?
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); }; } &&
31778 { ac_try='
31779 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31780 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
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 then
31787 if { ac_try='
31788 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31789 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31791 (eval $ac_try) 2>&5
31792 ac_status=$?
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; }
31795 then
31796 wx_cv_version_script=yes
31797 else
31798 wx_cv_version_script=no
31799 fi
31800 fi
31801 fi
31802
a848cd7e 31803 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31804 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31805
31806fi
31807echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31808echo "${ECHO_T}$wx_cv_version_script" >&6
31809 if test $wx_cv_version_script = yes ; then
31810 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31811 fi
31812 fi
31813
31814
31815 case "${host}" in
31816 *-*-linux* | *-*-gnu* )
31817 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31818 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31819 ;;
a848cd7e
SC
31820
31821 *-*-solaris2* )
31822 if test "$GCC" = yes ; then
c92ad099 31823 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
31824
31825 saveLdflags="$LDFLAGS"
31826 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31827 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31828echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31829 cat >conftest.$ac_ext <<_ACEOF
31830/* confdefs.h. */
31831_ACEOF
31832cat confdefs.h >>conftest.$ac_ext
31833cat >>conftest.$ac_ext <<_ACEOF
31834/* end confdefs.h. */
31835
31836int
31837main ()
31838{
31839
31840 ;
31841 return 0;
31842}
31843_ACEOF
31844rm -f conftest.$ac_objext conftest$ac_exeext
31845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31846 (eval $ac_link) 2>conftest.er1
a848cd7e 31847 ac_status=$?
ac1cb8d3
VS
31848 grep -v '^ *+' conftest.er1 >conftest.err
31849 rm -f conftest.er1
31850 cat conftest.err >&5
a848cd7e
SC
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); } &&
2b850ae1
RR
31853 { ac_try='test -z "$ac_c_werror_flag"
31854 || test ! -s conftest.err'
ac1cb8d3
VS
31855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31856 (eval $ac_try) 2>&5
31857 ac_status=$?
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); }; } &&
31860 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31862 (eval $ac_try) 2>&5
31863 ac_status=$?
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); }; }; then
31866
31867 echo "$as_me:$LINENO: result: yes" >&5
31868echo "${ECHO_T}yes" >&6
31869 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31870 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31871
31872else
31873 echo "$as_me: failed program was:" >&5
31874sed 's/^/| /' conftest.$ac_ext >&5
31875
31876
31877 echo "$as_me:$LINENO: result: no" >&5
31878echo "${ECHO_T}no" >&6
31879 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31880echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31881 LDFLAGS="$saveLdflags -Wl,-R,/"
31882 cat >conftest.$ac_ext <<_ACEOF
31883/* confdefs.h. */
31884_ACEOF
31885cat confdefs.h >>conftest.$ac_ext
31886cat >>conftest.$ac_ext <<_ACEOF
31887/* end confdefs.h. */
31888
31889int
31890main ()
31891{
31892
31893 ;
31894 return 0;
31895}
31896_ACEOF
31897rm -f conftest.$ac_objext conftest$ac_exeext
31898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31899 (eval $ac_link) 2>conftest.er1
a848cd7e 31900 ac_status=$?
ac1cb8d3
VS
31901 grep -v '^ *+' conftest.er1 >conftest.err
31902 rm -f conftest.er1
31903 cat conftest.err >&5
a848cd7e
SC
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); } &&
2b850ae1
RR
31906 { ac_try='test -z "$ac_c_werror_flag"
31907 || test ! -s conftest.err'
ac1cb8d3
VS
31908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909 (eval $ac_try) 2>&5
31910 ac_status=$?
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; } &&
31913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31915 (eval $ac_try) 2>&5
31916 ac_status=$?
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); }; }; then
31919
ffa0583f 31920 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31921echo "${ECHO_T}yes" >&6
ffa0583f
RL
31922 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31923 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31924
a848cd7e
SC
31925else
31926 echo "$as_me: failed program was:" >&5
31927sed 's/^/| /' conftest.$ac_ext >&5
31928
31929
31930 echo "$as_me:$LINENO: result: no" >&5
31931echo "${ECHO_T}no" >&6
31932
31933fi
ac1cb8d3
VS
31934rm -f conftest.err conftest.$ac_objext \
31935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31936
31937fi
ac1cb8d3
VS
31938rm -f conftest.err conftest.$ac_objext \
31939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31940 LDFLAGS="$saveLdflags"
31941 else
a848cd7e 31942 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31943 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31944 fi
31945 ;;
31946
cfda0ea8 31947 *-*-darwin* )
0caebc27
MW
31948 install_name_tool=`which install_name_tool`
31949 if test "$install_name_tool" -a -x "$install_name_tool"; then
31950 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31951 cat <<EOF >change-install-names
a848cd7e
SC
31952#!/bin/sh
31953libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31954inst_cmd="install_name_tool "
31955for i in \${libnames} ; do
31956 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31957done
31958\${inst_cmd} \${3}
31959EOF
0caebc27
MW
31960 chmod +x change-install-names
31961 fi
a848cd7e
SC
31962 ;;
31963
31964 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
31965 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
31966 ;;
a848cd7e 31967
81f90336
MW
31968 *-*-hpux* )
31969 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31970 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 31971 ;;
81f90336 31972
a848cd7e 31973 esac
ceec2216 31974
ffa0583f
RL
31975 if test $wxUSE_RPATH = "no"; then
31976 SAMPLES_RPATH_FLAG=''
31977 SAMPLES_RPATH_POSTLINK=''
31978 WXCONFIG_RPATH=''
31979 fi
31980
31981 SHARED=1
31982
31983else
31984
ceec2216
RL
31985 config_linkage_component="-static"
31986 SHARED=0
ffa0583f 31987
ceec2216 31988fi
a848cd7e 31989
a848cd7e 31990
ceec2216
RL
31991UNICODE=0
31992lib_unicode_suffix=
31993WX_CHARTYPE="ansi"
31994if test "$wxUSE_UNICODE" = "yes"; then
31995 lib_unicode_suffix=u
31996 WX_CHARTYPE="unicode"
31997 UNICODE=1
a848cd7e
SC
31998fi
31999
ceec2216
RL
32000lib_debug_suffix=
32001WX_DEBUGTYPE="release"
32002DEBUG_FLAG=0
32003if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32004 lib_debug_suffix=d
32005 WX_DEBUGTYPE="debug"
32006 DEBUG_FLAG=1
32007fi
a848cd7e 32008
ceec2216
RL
32009WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32010WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32011
ceec2216
RL
32012DEBUG_INFO=0
32013if test "$wxUSE_DEBUG_INFO" = "yes"; then
32014 DEBUG_INFO=1
32015fi
a848cd7e 32016
ceec2216 32017WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32018
ceec2216 32019TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32020
ceec2216 32021TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32022
ceec2216
RL
32023if test "$cross_compiling" = "yes"; then
32024 HOST_SUFFIX="-$host_alias"
32025 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32026 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32027fi
32028
dd21ced8 32029WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32030if test "${TOOLKIT_DIR}" = "os2"; then
32031 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32032else
32033 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32034fi
ceec2216
RL
32035
32036
32037
1d1af5ea
DE
32038if test "$wxUSE_COCOA" = 1; then
32039
32040
32041 ac_ext=c
32042ac_cpp='$CPP $CPPFLAGS'
32043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32045ac_compiler_gnu=$ac_cv_c_compiler_gnu
32046
32047ac_ext=m
32048
32049 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32050echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32051 cat >conftest.$ac_ext <<_ACEOF
32052/* confdefs.h. */
32053_ACEOF
32054cat confdefs.h >>conftest.$ac_ext
32055cat >>conftest.$ac_ext <<_ACEOF
32056/* end confdefs.h. */
32057#include <AppKit/NSEvent.h>
32058#include <CoreFoundation/CoreFoundation.h>
32059
32060int
32061main ()
32062{
32063
32064 ;
32065 return 0;
32066}
32067_ACEOF
32068rm -f conftest.$ac_objext
32069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32070 (eval $ac_compile) 2>conftest.er1
32071 ac_status=$?
32072 grep -v '^ *+' conftest.er1 >conftest.err
32073 rm -f conftest.er1
32074 cat conftest.err >&5
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); } &&
2b850ae1
RR
32077 { ac_try='test -z "$ac_c_werror_flag"
32078 || test ! -s conftest.err'
1d1af5ea
DE
32079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32080 (eval $ac_try) 2>&5
32081 ac_status=$?
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; } &&
32084 { ac_try='test -s conftest.$ac_objext'
32085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32086 (eval $ac_try) 2>&5
32087 ac_status=$?
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); }; }; then
32090 echo "$as_me:$LINENO: result: no" >&5
32091echo "${ECHO_T}no" >&6
32092else
32093 echo "$as_me: failed program was:" >&5
32094sed 's/^/| /' conftest.$ac_ext >&5
32095
32096echo "$as_me:$LINENO: result: yes" >&5
32097echo "${ECHO_T}yes" >&6
32098 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32099echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32100 cat >conftest.$ac_ext <<_ACEOF
32101/* confdefs.h. */
32102_ACEOF
32103cat confdefs.h >>conftest.$ac_ext
32104cat >>conftest.$ac_ext <<_ACEOF
32105/* end confdefs.h. */
32106#define __Point__ 1
32107#include <AppKit/NSEvent.h>
32108#include <CoreFoundation/CoreFoundation.h>
32109
32110int
32111main ()
32112{
32113
32114 ;
32115 return 0;
32116}
32117_ACEOF
32118rm -f conftest.$ac_objext
32119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32120 (eval $ac_compile) 2>conftest.er1
32121 ac_status=$?
32122 grep -v '^ *+' conftest.er1 >conftest.err
32123 rm -f conftest.er1
32124 cat conftest.err >&5
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); } &&
2b850ae1
RR
32127 { ac_try='test -z "$ac_c_werror_flag"
32128 || test ! -s conftest.err'
1d1af5ea
DE
32129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32130 (eval $ac_try) 2>&5
32131 ac_status=$?
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); }; } &&
32134 { ac_try='test -s conftest.$ac_objext'
32135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32136 (eval $ac_try) 2>&5
32137 ac_status=$?
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; }; then
32140 echo "$as_me:$LINENO: result: yes" >&5
32141echo "${ECHO_T}yes" >&6
32142 cat >>confdefs.h <<\_ACEOF
32143#define __Point__ 1
32144_ACEOF
32145
32146
32147else
32148 echo "$as_me: failed program was:" >&5
32149sed 's/^/| /' conftest.$ac_ext >&5
32150
32151{ { echo "$as_me:$LINENO: error: no
32152See \`config.log' for more details." >&5
32153echo "$as_me: error: no
32154See \`config.log' for more details." >&2;}
32155 { (exit 1); exit 1; }; }
32156
32157fi
32158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32159
32160fi
32161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32162 ac_ext=c
32163ac_cpp='$CPP $CPPFLAGS'
32164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32166ac_compiler_gnu=$ac_cv_c_compiler_gnu
32167
32168fi
32169
a848cd7e 32170if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32171 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32172 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32173
a848cd7e 32174 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32175
32176 # Extract the first word of "Rez", so it can be a program name with args.
32177set dummy Rez; ac_word=$2
32178echo "$as_me:$LINENO: checking for $ac_word" >&5
32179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32180if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32181 echo $ECHO_N "(cached) $ECHO_C" >&6
32182else
8ced02f6
DE
32183 if test -n "$REZ"; then
32184 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32185else
32186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32187for as_dir in $PATH
32188do
32189 IFS=$as_save_IFS
32190 test -z "$as_dir" && as_dir=.
32191 for ac_exec_ext in '' $ac_executable_extensions; do
32192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32193 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32195 break 2
32196 fi
32197done
32198done
32199
8ced02f6 32200 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32201fi
32202fi
8ced02f6
DE
32203REZ=$ac_cv_prog_REZ
32204if test -n "$REZ"; then
32205 echo "$as_me:$LINENO: result: $REZ" >&5
32206echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32207else
32208 echo "$as_me:$LINENO: result: no" >&5
32209echo "${ECHO_T}no" >&6
32210fi
32211
32212 # Extract the first word of "DeRez", so it can be a program name with args.
32213set dummy DeRez; ac_word=$2
32214echo "$as_me:$LINENO: checking for $ac_word" >&5
32215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32216if test "${ac_cv_prog_DEREZ+set}" = set; then
32217 echo $ECHO_N "(cached) $ECHO_C" >&6
32218else
32219 if test -n "$DEREZ"; then
32220 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32221else
32222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32223for as_dir in $PATH
32224do
32225 IFS=$as_save_IFS
32226 test -z "$as_dir" && as_dir=.
32227 for ac_exec_ext in '' $ac_executable_extensions; do
32228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32229 ac_cv_prog_DEREZ="DeRez"
32230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32231 break 2
32232 fi
32233done
32234done
32235
32236 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32237fi
32238fi
32239DEREZ=$ac_cv_prog_DEREZ
32240if test -n "$DEREZ"; then
32241 echo "$as_me:$LINENO: result: $DEREZ" >&5
32242echo "${ECHO_T}$DEREZ" >&6
32243else
32244 echo "$as_me:$LINENO: result: no" >&5
32245echo "${ECHO_T}no" >&6
32246fi
32247
32248 # Extract the first word of "SetFile", so it can be a program name with args.
32249set dummy SetFile; ac_word=$2
32250echo "$as_me:$LINENO: checking for $ac_word" >&5
32251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32252if test "${ac_cv_prog_SETFILE+set}" = set; then
32253 echo $ECHO_N "(cached) $ECHO_C" >&6
32254else
32255 if test -n "$SETFILE"; then
32256 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32257else
32258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32259for as_dir in $PATH
32260do
32261 IFS=$as_save_IFS
32262 test -z "$as_dir" && as_dir=.
32263 for ac_exec_ext in '' $ac_executable_extensions; do
32264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32265 ac_cv_prog_SETFILE="SetFile"
32266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32267 break 2
32268 fi
32269done
32270done
32271
32272 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32273fi
32274fi
32275SETFILE=$ac_cv_prog_SETFILE
32276if test -n "$SETFILE"; then
32277 echo "$as_me:$LINENO: result: $SETFILE" >&5
32278echo "${ECHO_T}$SETFILE" >&6
32279else
32280 echo "$as_me:$LINENO: result: no" >&5
32281echo "${ECHO_T}no" >&6
32282fi
32283
32284
32285 MACSETFILE="\$(SETFILE)"
32286
32287 if test "$wxUSE_MAC" = 1; then
8ced02f6 32288 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32289 RESCOMP="$REZ"
32290 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32291 else
004ee6da
RL
32292 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32293 RESCOMP="echo -n \| $REZ"
32294 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32295 fi
004ee6da 32296
a848cd7e 32297else
ffa0583f 32298 MACSETFILE="@true"
a848cd7e 32299
8ced02f6 32300 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32301 RESCOMP="emxbind"
32302 WXCONFIG_RESFLAGS="-ep"
32303
32304 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32305 else
8ced02f6 32306 POSTLINK_COMMAND="@true"
a848cd7e 32307 fi
004ee6da 32308
a848cd7e
SC
32309fi
32310
32311
32312
32313echo "$as_me:$LINENO: checking for mode_t" >&5
32314echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32315if test "${ac_cv_type_mode_t+set}" = set; then
32316 echo $ECHO_N "(cached) $ECHO_C" >&6
32317else
32318 cat >conftest.$ac_ext <<_ACEOF
32319/* confdefs.h. */
32320_ACEOF
32321cat confdefs.h >>conftest.$ac_ext
32322cat >>conftest.$ac_ext <<_ACEOF
32323/* end confdefs.h. */
32324$ac_includes_default
32325int
32326main ()
32327{
32328if ((mode_t *) 0)
32329 return 0;
32330if (sizeof (mode_t))
32331 return 0;
32332 ;
32333 return 0;
32334}
32335_ACEOF
32336rm -f conftest.$ac_objext
32337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32338 (eval $ac_compile) 2>conftest.er1
a848cd7e 32339 ac_status=$?
ac1cb8d3
VS
32340 grep -v '^ *+' conftest.er1 >conftest.err
32341 rm -f conftest.er1
32342 cat conftest.err >&5
a848cd7e
SC
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); } &&
2b850ae1
RR
32345 { ac_try='test -z "$ac_c_werror_flag"
32346 || test ! -s conftest.err'
ac1cb8d3
VS
32347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32348 (eval $ac_try) 2>&5
32349 ac_status=$?
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); }; } &&
32352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32354 (eval $ac_try) 2>&5
32355 ac_status=$?
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); }; }; then
32358 ac_cv_type_mode_t=yes
32359else
32360 echo "$as_me: failed program was:" >&5
32361sed 's/^/| /' conftest.$ac_ext >&5
32362
32363ac_cv_type_mode_t=no
32364fi
ac1cb8d3 32365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32366fi
32367echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32368echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32369if test $ac_cv_type_mode_t = yes; then
32370 :
32371else
32372
32373cat >>confdefs.h <<_ACEOF
32374#define mode_t int
32375_ACEOF
32376
32377fi
32378
32379echo "$as_me:$LINENO: checking for off_t" >&5
32380echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32381if test "${ac_cv_type_off_t+set}" = set; then
32382 echo $ECHO_N "(cached) $ECHO_C" >&6
32383else
32384 cat >conftest.$ac_ext <<_ACEOF
32385/* confdefs.h. */
32386_ACEOF
32387cat confdefs.h >>conftest.$ac_ext
32388cat >>conftest.$ac_ext <<_ACEOF
32389/* end confdefs.h. */
32390$ac_includes_default
32391int
32392main ()
32393{
32394if ((off_t *) 0)
32395 return 0;
32396if (sizeof (off_t))
32397 return 0;
32398 ;
32399 return 0;
32400}
32401_ACEOF
32402rm -f conftest.$ac_objext
32403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32404 (eval $ac_compile) 2>conftest.er1
a848cd7e 32405 ac_status=$?
ac1cb8d3
VS
32406 grep -v '^ *+' conftest.er1 >conftest.err
32407 rm -f conftest.er1
32408 cat conftest.err >&5
a848cd7e
SC
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); } &&
2b850ae1
RR
32411 { ac_try='test -z "$ac_c_werror_flag"
32412 || test ! -s conftest.err'
ac1cb8d3
VS
32413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32414 (eval $ac_try) 2>&5
32415 ac_status=$?
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); }; } &&
32418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32420 (eval $ac_try) 2>&5
32421 ac_status=$?
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); }; }; then
32424 ac_cv_type_off_t=yes
32425else
32426 echo "$as_me: failed program was:" >&5
32427sed 's/^/| /' conftest.$ac_ext >&5
32428
32429ac_cv_type_off_t=no
32430fi
ac1cb8d3 32431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32432fi
32433echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32434echo "${ECHO_T}$ac_cv_type_off_t" >&6
32435if test $ac_cv_type_off_t = yes; then
32436 :
32437else
32438
32439cat >>confdefs.h <<_ACEOF
32440#define off_t long
32441_ACEOF
32442
32443fi
32444
32445echo "$as_me:$LINENO: checking for pid_t" >&5
32446echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32447if test "${ac_cv_type_pid_t+set}" = set; then
32448 echo $ECHO_N "(cached) $ECHO_C" >&6
32449else
32450 cat >conftest.$ac_ext <<_ACEOF
32451/* confdefs.h. */
32452_ACEOF
32453cat confdefs.h >>conftest.$ac_ext
32454cat >>conftest.$ac_ext <<_ACEOF
32455/* end confdefs.h. */
32456$ac_includes_default
32457int
32458main ()
32459{
32460if ((pid_t *) 0)
32461 return 0;
32462if (sizeof (pid_t))
32463 return 0;
32464 ;
32465 return 0;
32466}
32467_ACEOF
32468rm -f conftest.$ac_objext
32469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32470 (eval $ac_compile) 2>conftest.er1
a848cd7e 32471 ac_status=$?
ac1cb8d3
VS
32472 grep -v '^ *+' conftest.er1 >conftest.err
32473 rm -f conftest.er1
32474 cat conftest.err >&5
a848cd7e
SC
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); } &&
2b850ae1
RR
32477 { ac_try='test -z "$ac_c_werror_flag"
32478 || test ! -s conftest.err'
ac1cb8d3
VS
32479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32480 (eval $ac_try) 2>&5
32481 ac_status=$?
32482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483 (exit $ac_status); }; } &&
32484 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32486 (eval $ac_try) 2>&5
32487 ac_status=$?
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; }; then
32490 ac_cv_type_pid_t=yes
32491else
32492 echo "$as_me: failed program was:" >&5
32493sed 's/^/| /' conftest.$ac_ext >&5
32494
32495ac_cv_type_pid_t=no
32496fi
ac1cb8d3 32497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32498fi
32499echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32500echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32501if test $ac_cv_type_pid_t = yes; then
32502 :
32503else
32504
32505cat >>confdefs.h <<_ACEOF
32506#define pid_t int
32507_ACEOF
32508
32509fi
32510
32511echo "$as_me:$LINENO: checking for size_t" >&5
32512echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32513if test "${ac_cv_type_size_t+set}" = set; then
32514 echo $ECHO_N "(cached) $ECHO_C" >&6
32515else
32516 cat >conftest.$ac_ext <<_ACEOF
32517/* confdefs.h. */
32518_ACEOF
32519cat confdefs.h >>conftest.$ac_ext
32520cat >>conftest.$ac_ext <<_ACEOF
32521/* end confdefs.h. */
32522$ac_includes_default
32523int
32524main ()
32525{
32526if ((size_t *) 0)
32527 return 0;
32528if (sizeof (size_t))
32529 return 0;
32530 ;
32531 return 0;
32532}
32533_ACEOF
32534rm -f conftest.$ac_objext
32535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32536 (eval $ac_compile) 2>conftest.er1
a848cd7e 32537 ac_status=$?
ac1cb8d3
VS
32538 grep -v '^ *+' conftest.er1 >conftest.err
32539 rm -f conftest.er1
32540 cat conftest.err >&5
a848cd7e
SC
32541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542 (exit $ac_status); } &&
2b850ae1
RR
32543 { ac_try='test -z "$ac_c_werror_flag"
32544 || test ! -s conftest.err'
ac1cb8d3
VS
32545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 (eval $ac_try) 2>&5
32547 ac_status=$?
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; } &&
32550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32552 (eval $ac_try) 2>&5
32553 ac_status=$?
32554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555 (exit $ac_status); }; }; then
32556 ac_cv_type_size_t=yes
32557else
32558 echo "$as_me: failed program was:" >&5
32559sed 's/^/| /' conftest.$ac_ext >&5
32560
32561ac_cv_type_size_t=no
32562fi
ac1cb8d3 32563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32564fi
32565echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32566echo "${ECHO_T}$ac_cv_type_size_t" >&6
32567if test $ac_cv_type_size_t = yes; then
32568 :
32569else
32570
32571cat >>confdefs.h <<_ACEOF
32572#define size_t unsigned
32573_ACEOF
32574
32575fi
32576
32577echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32578echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32579if test "${ac_cv_type_uid_t+set}" = set; then
32580 echo $ECHO_N "(cached) $ECHO_C" >&6
32581else
32582 cat >conftest.$ac_ext <<_ACEOF
32583/* confdefs.h. */
32584_ACEOF
32585cat confdefs.h >>conftest.$ac_ext
32586cat >>conftest.$ac_ext <<_ACEOF
32587/* end confdefs.h. */
32588#include <sys/types.h>
32589
32590_ACEOF
32591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32592 $EGREP "uid_t" >/dev/null 2>&1; then
32593 ac_cv_type_uid_t=yes
32594else
32595 ac_cv_type_uid_t=no
32596fi
32597rm -f conftest*
32598
32599fi
32600echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32601echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32602if test $ac_cv_type_uid_t = no; then
32603
32604cat >>confdefs.h <<\_ACEOF
32605#define uid_t int
32606_ACEOF
32607
32608
32609cat >>confdefs.h <<\_ACEOF
32610#define gid_t int
32611_ACEOF
32612
32613fi
32614
32615
d51253e8
RL
32616echo "$as_me:$LINENO: checking for ssize_t" >&5
32617echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32618if test "${ac_cv_type_ssize_t+set}" = set; then
32619 echo $ECHO_N "(cached) $ECHO_C" >&6
32620else
32621 cat >conftest.$ac_ext <<_ACEOF
32622/* confdefs.h. */
32623_ACEOF
32624cat confdefs.h >>conftest.$ac_ext
32625cat >>conftest.$ac_ext <<_ACEOF
32626/* end confdefs.h. */
32627$ac_includes_default
32628int
32629main ()
32630{
32631if ((ssize_t *) 0)
32632 return 0;
32633if (sizeof (ssize_t))
32634 return 0;
32635 ;
32636 return 0;
32637}
32638_ACEOF
32639rm -f conftest.$ac_objext
32640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32641 (eval $ac_compile) 2>conftest.er1
32642 ac_status=$?
32643 grep -v '^ *+' conftest.er1 >conftest.err
32644 rm -f conftest.er1
32645 cat conftest.err >&5
32646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647 (exit $ac_status); } &&
2b850ae1
RR
32648 { ac_try='test -z "$ac_c_werror_flag"
32649 || test ! -s conftest.err'
d51253e8
RL
32650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651 (eval $ac_try) 2>&5
32652 ac_status=$?
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; } &&
32655 { ac_try='test -s conftest.$ac_objext'
32656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32657 (eval $ac_try) 2>&5
32658 ac_status=$?
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); }; }; then
32661 ac_cv_type_ssize_t=yes
32662else
32663 echo "$as_me: failed program was:" >&5
32664sed 's/^/| /' conftest.$ac_ext >&5
32665
32666ac_cv_type_ssize_t=no
32667fi
32668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32669fi
32670echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32671echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32672if test $ac_cv_type_ssize_t = yes; then
32673
32674cat >>confdefs.h <<_ACEOF
32675#define HAVE_SSIZE_T 1
32676_ACEOF
32677
32678
32679fi
32680
32681
a848cd7e
SC
32682ac_ext=cc
32683ac_cpp='$CXXCPP $CPPFLAGS'
32684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32687
32688echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32689echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32690if test "${wx_cv_size_t_is_uint+set}" = set; then
32691 echo $ECHO_N "(cached) $ECHO_C" >&6
32692else
32693
32694 cat >conftest.$ac_ext <<_ACEOF
32695/* confdefs.h. */
32696_ACEOF
32697cat confdefs.h >>conftest.$ac_ext
32698cat >>conftest.$ac_ext <<_ACEOF
32699/* end confdefs.h. */
32700#include <stddef.h>
32701int
32702main ()
32703{
32704
32705 return 0; }
32706
32707 struct Foo { void foo(size_t); void foo(unsigned int); };
32708
32709 int bar() {
32710
32711 ;
32712 return 0;
32713}
32714_ACEOF
32715rm -f conftest.$ac_objext
32716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32717 (eval $ac_compile) 2>conftest.er1
a848cd7e 32718 ac_status=$?
ac1cb8d3
VS
32719 grep -v '^ *+' conftest.er1 >conftest.err
32720 rm -f conftest.er1
32721 cat conftest.err >&5
a848cd7e
SC
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); } &&
2b850ae1
RR
32724 { ac_try='test -z "$ac_cxx_werror_flag"
32725 || test ! -s conftest.err'
ac1cb8d3
VS
32726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32727 (eval $ac_try) 2>&5
32728 ac_status=$?
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); }; } &&
32731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32733 (eval $ac_try) 2>&5
32734 ac_status=$?
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); }; }; then
32737 wx_cv_size_t_is_uint=no
32738else
32739 echo "$as_me: failed program was:" >&5
32740sed 's/^/| /' conftest.$ac_ext >&5
32741
32742wx_cv_size_t_is_uint=yes
32743
32744fi
ac1cb8d3 32745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32746
32747
32748fi
32749echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32750echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32751
32752if test "$wx_cv_size_t_is_uint" = "yes"; then
32753 cat >>confdefs.h <<\_ACEOF
32754#define wxSIZE_T_IS_UINT 1
32755_ACEOF
32756
32757else
32758 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32759echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32760if test "${wx_cv_size_t_is_ulong+set}" = set; then
32761 echo $ECHO_N "(cached) $ECHO_C" >&6
32762else
32763 cat >conftest.$ac_ext <<_ACEOF
32764/* confdefs.h. */
32765_ACEOF
32766cat confdefs.h >>conftest.$ac_ext
32767cat >>conftest.$ac_ext <<_ACEOF
32768/* end confdefs.h. */
32769#include <stddef.h>
32770int
32771main ()
32772{
32773
32774 return 0; }
32775
32776 struct Foo { void foo(size_t); void foo(unsigned long); };
32777
32778 int bar() {
32779
32780 ;
32781 return 0;
32782}
32783_ACEOF
32784rm -f conftest.$ac_objext
32785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32786 (eval $ac_compile) 2>conftest.er1
a848cd7e 32787 ac_status=$?
ac1cb8d3
VS
32788 grep -v '^ *+' conftest.er1 >conftest.err
32789 rm -f conftest.er1
32790 cat conftest.err >&5
a848cd7e
SC
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } &&
2b850ae1
RR
32793 { ac_try='test -z "$ac_cxx_werror_flag"
32794 || test ! -s conftest.err'
ac1cb8d3
VS
32795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32796 (eval $ac_try) 2>&5
32797 ac_status=$?
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); }; } &&
32800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32802 (eval $ac_try) 2>&5
32803 ac_status=$?
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); }; }; then
32806 wx_cv_size_t_is_ulong=no
32807else
32808 echo "$as_me: failed program was:" >&5
32809sed 's/^/| /' conftest.$ac_ext >&5
32810
32811wx_cv_size_t_is_ulong=yes
32812
32813fi
ac1cb8d3 32814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32815
32816fi
32817echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32818echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32819
32820 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32821 cat >>confdefs.h <<\_ACEOF
32822#define wxSIZE_T_IS_ULONG 1
32823_ACEOF
32824
32825 fi
32826fi
32827
32828ac_ext=c
32829ac_cpp='$CPP $CPPFLAGS'
32830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32832ac_compiler_gnu=$ac_cv_c_compiler_gnu
32833
32834
32835
32836echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32837echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32838if test "${wx_cv_struct_pw_gecos+set}" = set; then
32839 echo $ECHO_N "(cached) $ECHO_C" >&6
32840else
32841
32842 cat >conftest.$ac_ext <<_ACEOF
32843/* confdefs.h. */
32844_ACEOF
32845cat confdefs.h >>conftest.$ac_ext
32846cat >>conftest.$ac_ext <<_ACEOF
32847/* end confdefs.h. */
32848#include <pwd.h>
32849int
32850main ()
32851{
32852
32853 char *p;
32854 struct passwd *pw;
32855 p = pw->pw_gecos;
32856
32857 ;
32858 return 0;
32859}
32860_ACEOF
32861rm -f conftest.$ac_objext
32862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32863 (eval $ac_compile) 2>conftest.er1
a848cd7e 32864 ac_status=$?
ac1cb8d3
VS
32865 grep -v '^ *+' conftest.er1 >conftest.err
32866 rm -f conftest.er1
32867 cat conftest.err >&5
a848cd7e
SC
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); } &&
2b850ae1
RR
32870 { ac_try='test -z "$ac_c_werror_flag"
32871 || test ! -s conftest.err'
ac1cb8d3
VS
32872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32873 (eval $ac_try) 2>&5
32874 ac_status=$?
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); }; } &&
32877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32879 (eval $ac_try) 2>&5
32880 ac_status=$?
32881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882 (exit $ac_status); }; }; then
32883
32884 wx_cv_struct_pw_gecos=yes
32885
32886else
32887 echo "$as_me: failed program was:" >&5
32888sed 's/^/| /' conftest.$ac_ext >&5
32889
32890
32891 wx_cv_struct_pw_gecos=no
32892
32893
32894fi
ac1cb8d3 32895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32896
32897
32898fi
32899echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32900echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32901
32902if test "$wx_cv_struct_pw_gecos" = "yes"; then
32903 cat >>confdefs.h <<\_ACEOF
32904#define HAVE_PW_GECOS 1
32905_ACEOF
32906
32907fi
32908
32909
47a7e797 32910if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32911 cat >>confdefs.h <<\_ACEOF
32912#define wxUSE_WCHAR_T 1
32913_ACEOF
32914
32915
32916 WCSLEN_FOUND=0
32917 WCHAR_LINK=
32918
32919for ac_func in wcslen
32920do
32921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32922echo "$as_me:$LINENO: checking for $ac_func" >&5
32923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32924if eval "test \"\${$as_ac_var+set}\" = set"; then
32925 echo $ECHO_N "(cached) $ECHO_C" >&6
32926else
32927 cat >conftest.$ac_ext <<_ACEOF
32928/* confdefs.h. */
32929_ACEOF
32930cat confdefs.h >>conftest.$ac_ext
32931cat >>conftest.$ac_ext <<_ACEOF
32932/* end confdefs.h. */
ac1cb8d3
VS
32933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32935#define $ac_func innocuous_$ac_func
32936
a848cd7e
SC
32937/* System header to define __stub macros and hopefully few prototypes,
32938 which can conflict with char $ac_func (); below.
32939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32940 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32941
a848cd7e
SC
32942#ifdef __STDC__
32943# include <limits.h>
32944#else
32945# include <assert.h>
32946#endif
ac1cb8d3
VS
32947
32948#undef $ac_func
32949
a848cd7e
SC
32950/* Override any gcc2 internal prototype to avoid an error. */
32951#ifdef __cplusplus
32952extern "C"
32953{
32954#endif
32955/* We use char because int might match the return type of a gcc2
32956 builtin and then its argument prototype would still apply. */
32957char $ac_func ();
32958/* The GNU C library defines this for functions which it implements
32959 to always fail with ENOSYS. Some functions are actually named
32960 something starting with __ and the normal name is an alias. */
32961#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32962choke me
32963#else
32964char (*f) () = $ac_func;
32965#endif
32966#ifdef __cplusplus
32967}
32968#endif
32969
32970int
32971main ()
32972{
32973return f != $ac_func;
32974 ;
32975 return 0;
32976}
32977_ACEOF
32978rm -f conftest.$ac_objext conftest$ac_exeext
32979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32980 (eval $ac_link) 2>conftest.er1
a848cd7e 32981 ac_status=$?
ac1cb8d3
VS
32982 grep -v '^ *+' conftest.er1 >conftest.err
32983 rm -f conftest.er1
32984 cat conftest.err >&5
a848cd7e
SC
32985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986 (exit $ac_status); } &&
2b850ae1
RR
32987 { ac_try='test -z "$ac_c_werror_flag"
32988 || test ! -s conftest.err'
ac1cb8d3
VS
32989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32990 (eval $ac_try) 2>&5
32991 ac_status=$?
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993 (exit $ac_status); }; } &&
32994 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32996 (eval $ac_try) 2>&5
32997 ac_status=$?
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); }; }; then
33000 eval "$as_ac_var=yes"
33001else
33002 echo "$as_me: failed program was:" >&5
33003sed 's/^/| /' conftest.$ac_ext >&5
33004
33005eval "$as_ac_var=no"
33006fi
ac1cb8d3
VS
33007rm -f conftest.err conftest.$ac_objext \
33008 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33009fi
33010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33011echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33012if test `eval echo '${'$as_ac_var'}'` = yes; then
33013 cat >>confdefs.h <<_ACEOF
33014#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33015_ACEOF
33016 WCSLEN_FOUND=1
33017fi
33018done
33019
33020
33021 if test "$WCSLEN_FOUND" = 0; then
33022 if test "$TOOLKIT" = "MSW"; then
33023 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33024echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33025if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33026 echo $ECHO_N "(cached) $ECHO_C" >&6
33027else
33028 ac_check_lib_save_LIBS=$LIBS
33029LIBS="-lmsvcrt $LIBS"
33030cat >conftest.$ac_ext <<_ACEOF
33031/* confdefs.h. */
33032_ACEOF
33033cat confdefs.h >>conftest.$ac_ext
33034cat >>conftest.$ac_ext <<_ACEOF
33035/* end confdefs.h. */
33036
33037/* Override any gcc2 internal prototype to avoid an error. */
33038#ifdef __cplusplus
33039extern "C"
33040#endif
33041/* We use char because int might match the return type of a gcc2
33042 builtin and then its argument prototype would still apply. */
33043char wcslen ();
33044int
33045main ()
33046{
33047wcslen ();
33048 ;
33049 return 0;
33050}
33051_ACEOF
33052rm -f conftest.$ac_objext conftest$ac_exeext
33053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33054 (eval $ac_link) 2>conftest.er1
a848cd7e 33055 ac_status=$?
ac1cb8d3
VS
33056 grep -v '^ *+' conftest.er1 >conftest.err
33057 rm -f conftest.er1
33058 cat conftest.err >&5
a848cd7e
SC
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); } &&
2b850ae1
RR
33061 { ac_try='test -z "$ac_c_werror_flag"
33062 || test ! -s conftest.err'
ac1cb8d3
VS
33063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33064 (eval $ac_try) 2>&5
33065 ac_status=$?
33066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067 (exit $ac_status); }; } &&
33068 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33070 (eval $ac_try) 2>&5
33071 ac_status=$?
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); }; }; then
33074 ac_cv_lib_msvcrt_wcslen=yes
33075else
33076 echo "$as_me: failed program was:" >&5
33077sed 's/^/| /' conftest.$ac_ext >&5
33078
33079ac_cv_lib_msvcrt_wcslen=no
33080fi
ac1cb8d3
VS
33081rm -f conftest.err conftest.$ac_objext \
33082 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33083LIBS=$ac_check_lib_save_LIBS
33084fi
33085echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33086echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33087if test $ac_cv_lib_msvcrt_wcslen = yes; then
33088 WCHAR_OK=1
33089fi
33090
33091 else
33092 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33093echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33094if test "${ac_cv_lib_w_wcslen+set}" = set; then
33095 echo $ECHO_N "(cached) $ECHO_C" >&6
33096else
33097 ac_check_lib_save_LIBS=$LIBS
33098LIBS="-lw $LIBS"
33099cat >conftest.$ac_ext <<_ACEOF
33100/* confdefs.h. */
33101_ACEOF
33102cat confdefs.h >>conftest.$ac_ext
33103cat >>conftest.$ac_ext <<_ACEOF
33104/* end confdefs.h. */
33105
33106/* Override any gcc2 internal prototype to avoid an error. */
33107#ifdef __cplusplus
33108extern "C"
33109#endif
33110/* We use char because int might match the return type of a gcc2
33111 builtin and then its argument prototype would still apply. */
33112char wcslen ();
33113int
33114main ()
33115{
33116wcslen ();
33117 ;
33118 return 0;
33119}
33120_ACEOF
33121rm -f conftest.$ac_objext conftest$ac_exeext
33122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33123 (eval $ac_link) 2>conftest.er1
a848cd7e 33124 ac_status=$?
ac1cb8d3
VS
33125 grep -v '^ *+' conftest.er1 >conftest.err
33126 rm -f conftest.er1
33127 cat conftest.err >&5
a848cd7e
SC
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); } &&
2b850ae1
RR
33130 { ac_try='test -z "$ac_c_werror_flag"
33131 || test ! -s conftest.err'
ac1cb8d3
VS
33132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33133 (eval $ac_try) 2>&5
33134 ac_status=$?
33135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136 (exit $ac_status); }; } &&
33137 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33139 (eval $ac_try) 2>&5
33140 ac_status=$?
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); }; }; then
33143 ac_cv_lib_w_wcslen=yes
33144else
33145 echo "$as_me: failed program was:" >&5
33146sed 's/^/| /' conftest.$ac_ext >&5
33147
33148ac_cv_lib_w_wcslen=no
33149fi
ac1cb8d3
VS
33150rm -f conftest.err conftest.$ac_objext \
33151 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33152LIBS=$ac_check_lib_save_LIBS
33153fi
33154echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33155echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33156if test $ac_cv_lib_w_wcslen = yes; then
33157
33158 WCHAR_LINK=" -lw"
33159 WCSLEN_FOUND=1
33160
33161fi
33162
33163 fi
33164 fi
33165
33166 if test "$WCSLEN_FOUND" = 1; then
33167 cat >>confdefs.h <<\_ACEOF
33168#define HAVE_WCSLEN 1
33169_ACEOF
33170
33171 fi
33172
efdf6afe 33173 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33174 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33175 fi
33176
efdf6afe
VZ
33177 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33178echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33179if test "${ac_cv_type_mbstate_t+set}" = set; then
33180 echo $ECHO_N "(cached) $ECHO_C" >&6
33181else
33182 cat >conftest.$ac_ext <<_ACEOF
33183/* confdefs.h. */
33184_ACEOF
33185cat confdefs.h >>conftest.$ac_ext
33186cat >>conftest.$ac_ext <<_ACEOF
33187/* end confdefs.h. */
33188#include <wchar.h>
33189
33190int
33191main ()
33192{
33193if ((mbstate_t *) 0)
33194 return 0;
33195if (sizeof (mbstate_t))
33196 return 0;
33197 ;
33198 return 0;
33199}
33200_ACEOF
33201rm -f conftest.$ac_objext
33202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33203 (eval $ac_compile) 2>conftest.er1
33204 ac_status=$?
33205 grep -v '^ *+' conftest.er1 >conftest.err
33206 rm -f conftest.er1
33207 cat conftest.err >&5
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); } &&
2b850ae1
RR
33210 { ac_try='test -z "$ac_c_werror_flag"
33211 || test ! -s conftest.err'
efdf6afe
VZ
33212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33213 (eval $ac_try) 2>&5
33214 ac_status=$?
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); }; } &&
33217 { ac_try='test -s conftest.$ac_objext'
33218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33219 (eval $ac_try) 2>&5
33220 ac_status=$?
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); }; }; then
33223 ac_cv_type_mbstate_t=yes
33224else
33225 echo "$as_me: failed program was:" >&5
33226sed 's/^/| /' conftest.$ac_ext >&5
33227
33228ac_cv_type_mbstate_t=no
33229fi
33230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33231fi
33232echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33233echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33234if test $ac_cv_type_mbstate_t = yes; then
33235
33236cat >>confdefs.h <<_ACEOF
33237#define HAVE_MBSTATE_T 1
33238_ACEOF
33239
a848cd7e
SC
33240
33241for ac_func in wcsrtombs
33242do
33243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33244echo "$as_me:$LINENO: checking for $ac_func" >&5
33245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33246if eval "test \"\${$as_ac_var+set}\" = set"; then
33247 echo $ECHO_N "(cached) $ECHO_C" >&6
33248else
33249 cat >conftest.$ac_ext <<_ACEOF
33250/* confdefs.h. */
33251_ACEOF
33252cat confdefs.h >>conftest.$ac_ext
33253cat >>conftest.$ac_ext <<_ACEOF
33254/* end confdefs.h. */
ac1cb8d3
VS
33255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33257#define $ac_func innocuous_$ac_func
33258
a848cd7e
SC
33259/* System header to define __stub macros and hopefully few prototypes,
33260 which can conflict with char $ac_func (); below.
33261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33262 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33263
a848cd7e
SC
33264#ifdef __STDC__
33265# include <limits.h>
33266#else
33267# include <assert.h>
33268#endif
ac1cb8d3
VS
33269
33270#undef $ac_func
33271
a848cd7e
SC
33272/* Override any gcc2 internal prototype to avoid an error. */
33273#ifdef __cplusplus
33274extern "C"
33275{
33276#endif
33277/* We use char because int might match the return type of a gcc2
33278 builtin and then its argument prototype would still apply. */
33279char $ac_func ();
33280/* The GNU C library defines this for functions which it implements
33281 to always fail with ENOSYS. Some functions are actually named
33282 something starting with __ and the normal name is an alias. */
33283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33284choke me
33285#else
33286char (*f) () = $ac_func;
33287#endif
33288#ifdef __cplusplus
33289}
33290#endif
33291
33292int
33293main ()
33294{
33295return f != $ac_func;
33296 ;
33297 return 0;
33298}
33299_ACEOF
33300rm -f conftest.$ac_objext conftest$ac_exeext
33301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33302 (eval $ac_link) 2>conftest.er1
a848cd7e 33303 ac_status=$?
ac1cb8d3
VS
33304 grep -v '^ *+' conftest.er1 >conftest.err
33305 rm -f conftest.er1
33306 cat conftest.err >&5
a848cd7e
SC
33307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308 (exit $ac_status); } &&
2b850ae1
RR
33309 { ac_try='test -z "$ac_c_werror_flag"
33310 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
33316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33318 (eval $ac_try) 2>&5
33319 ac_status=$?
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); }; }; then
33322 eval "$as_ac_var=yes"
33323else
33324 echo "$as_me: failed program was:" >&5
33325sed 's/^/| /' conftest.$ac_ext >&5
33326
33327eval "$as_ac_var=no"
33328fi
ac1cb8d3
VS
33329rm -f conftest.err conftest.$ac_objext \
33330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33331fi
33332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33334if test `eval echo '${'$as_ac_var'}'` = yes; then
33335 cat >>confdefs.h <<_ACEOF
33336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33337_ACEOF
33338
33339fi
33340done
33341
efdf6afe
VZ
33342fi
33343
a848cd7e
SC
33344else
33345 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33346echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33347fi
33348
a848cd7e
SC
33349ac_ext=cc
33350ac_cpp='$CXXCPP $CPPFLAGS'
33351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33354
33355
33356
4a767dd5
VZ
33357
33358for ac_func in snprintf vsnprintf
a848cd7e
SC
33359do
33360as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33361echo "$as_me:$LINENO: checking for $ac_func" >&5
33362echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33363if eval "test \"\${$as_ac_var+set}\" = set"; then
33364 echo $ECHO_N "(cached) $ECHO_C" >&6
33365else
33366 cat >conftest.$ac_ext <<_ACEOF
33367/* confdefs.h. */
33368_ACEOF
33369cat confdefs.h >>conftest.$ac_ext
33370cat >>conftest.$ac_ext <<_ACEOF
33371/* end confdefs.h. */
ac1cb8d3
VS
33372/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33374#define $ac_func innocuous_$ac_func
33375
a848cd7e
SC
33376/* System header to define __stub macros and hopefully few prototypes,
33377 which can conflict with char $ac_func (); below.
33378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33379 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33380
a848cd7e
SC
33381#ifdef __STDC__
33382# include <limits.h>
33383#else
33384# include <assert.h>
33385#endif
ac1cb8d3
VS
33386
33387#undef $ac_func
33388
a848cd7e
SC
33389/* Override any gcc2 internal prototype to avoid an error. */
33390#ifdef __cplusplus
33391extern "C"
33392{
33393#endif
33394/* We use char because int might match the return type of a gcc2
33395 builtin and then its argument prototype would still apply. */
33396char $ac_func ();
33397/* The GNU C library defines this for functions which it implements
33398 to always fail with ENOSYS. Some functions are actually named
33399 something starting with __ and the normal name is an alias. */
33400#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33401choke me
33402#else
33403char (*f) () = $ac_func;
33404#endif
33405#ifdef __cplusplus
33406}
33407#endif
33408
33409int
33410main ()
33411{
33412return f != $ac_func;
33413 ;
33414 return 0;
33415}
33416_ACEOF
33417rm -f conftest.$ac_objext conftest$ac_exeext
33418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33419 (eval $ac_link) 2>conftest.er1
a848cd7e 33420 ac_status=$?
ac1cb8d3
VS
33421 grep -v '^ *+' conftest.er1 >conftest.err
33422 rm -f conftest.er1
33423 cat conftest.err >&5
a848cd7e
SC
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); } &&
2b850ae1
RR
33426 { ac_try='test -z "$ac_cxx_werror_flag"
33427 || test ! -s conftest.err'
ac1cb8d3
VS
33428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33429 (eval $ac_try) 2>&5
33430 ac_status=$?
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); }; } &&
33433 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33435 (eval $ac_try) 2>&5
33436 ac_status=$?
33437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438 (exit $ac_status); }; }; then
33439 eval "$as_ac_var=yes"
33440else
33441 echo "$as_me: failed program was:" >&5
33442sed 's/^/| /' conftest.$ac_ext >&5
33443
33444eval "$as_ac_var=no"
33445fi
ac1cb8d3
VS
33446rm -f conftest.err conftest.$ac_objext \
33447 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33448fi
33449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33450echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33451if test `eval echo '${'$as_ac_var'}'` = yes; then
33452 cat >>confdefs.h <<_ACEOF
33453#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33454_ACEOF
33455
33456fi
33457done
33458
33459
33460if test "$ac_cv_func_vsnprintf" = "yes"; then
33461 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33462echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33463if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33464 echo $ECHO_N "(cached) $ECHO_C" >&6
33465else
33466
efdf6afe 33467 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33468/* confdefs.h. */
33469_ACEOF
33470cat confdefs.h >>conftest.$ac_ext
33471cat >>conftest.$ac_ext <<_ACEOF
33472/* end confdefs.h. */
33473
33474 #include <stdio.h>
33475 #include <stdarg.h>
efdf6afe
VZ
33476 #ifdef __MSL__
33477 #if __MSL__ >= 0x6000
33478 namespace std {}
33479 using namespace std;
33480 #endif
33481 #endif
a848cd7e
SC
33482
33483int
33484main ()
33485{
33486
33487 char *buf;
33488 va_list ap;
62fa8b3a 33489 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33490
33491 ;
33492 return 0;
33493}
33494_ACEOF
33495rm -f conftest.$ac_objext
33496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33497 (eval $ac_compile) 2>conftest.er1
33498 ac_status=$?
33499 grep -v '^ *+' conftest.er1 >conftest.err
33500 rm -f conftest.er1
33501 cat conftest.err >&5
33502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503 (exit $ac_status); } &&
2b850ae1
RR
33504 { ac_try='test -z "$ac_cxx_werror_flag"
33505 || test ! -s conftest.err'
c122b164
DE
33506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33507 (eval $ac_try) 2>&5
33508 ac_status=$?
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); }; } &&
33511 { ac_try='test -s conftest.$ac_objext'
33512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33513 (eval $ac_try) 2>&5
33514 ac_status=$?
33515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516 (exit $ac_status); }; }; then
33517 wx_cv_func_vsnprintf_decl=yes
33518else
33519 echo "$as_me: failed program was:" >&5
33520sed 's/^/| /' conftest.$ac_ext >&5
33521
a848cd7e
SC
33522wx_cv_func_vsnprintf_decl=no
33523
33524fi
ac1cb8d3 33525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33526
33527
33528fi
33529echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33530echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33531
33532 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33533 cat >>confdefs.h <<\_ACEOF
33534#define HAVE_VSNPRINTF_DECL 1
33535_ACEOF
33536
62fa8b3a
MW
33537
33538 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33539echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33540if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33541 echo $ECHO_N "(cached) $ECHO_C" >&6
33542else
33543
33544 cat >conftest.$ac_ext <<_ACEOF
33545/* confdefs.h. */
33546_ACEOF
33547cat confdefs.h >>conftest.$ac_ext
33548cat >>conftest.$ac_ext <<_ACEOF
33549/* end confdefs.h. */
33550
33551 #include <stdio.h>
33552 #include <stdarg.h>
33553 #ifdef __MSL__
33554 #if __MSL__ >= 0x6000
33555 namespace std {}
33556 using namespace std;
33557 #endif
33558 #endif
33559
33560int
33561main ()
33562{
33563
33564 char *buf;
33565 va_list ap;
33566 const char *fmt = "%s";
33567 vsnprintf(buf, 10u, fmt, ap);
33568
33569 ;
33570 return 0;
33571}
33572_ACEOF
33573rm -f conftest.$ac_objext
33574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33575 (eval $ac_compile) 2>conftest.er1
33576 ac_status=$?
33577 grep -v '^ *+' conftest.er1 >conftest.err
33578 rm -f conftest.er1
33579 cat conftest.err >&5
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); } &&
2b850ae1
RR
33582 { ac_try='test -z "$ac_cxx_werror_flag"
33583 || test ! -s conftest.err'
62fa8b3a
MW
33584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585 (eval $ac_try) 2>&5
33586 ac_status=$?
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); }; } &&
33589 { ac_try='test -s conftest.$ac_objext'
33590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591 (eval $ac_try) 2>&5
33592 ac_status=$?
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); }; }; then
33595 wx_cv_func_broken_vsnprintf_decl=no
33596else
33597 echo "$as_me: failed program was:" >&5
33598sed 's/^/| /' conftest.$ac_ext >&5
33599
33600wx_cv_func_broken_vsnprintf_decl=yes
33601
33602fi
33603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33604
33605
33606fi
33607echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33608echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33609
33610 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33611 cat >>confdefs.h <<\_ACEOF
33612#define HAVE_BROKEN_VSNPRINTF_DECL 1
33613_ACEOF
33614
33615 fi
a848cd7e
SC
33616 fi
33617fi
33618
4a767dd5
VZ
33619if test "$ac_cv_func_snprintf" = "yes"; then
33620 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33621echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33622if test "${wx_cv_func_snprintf_decl+set}" = set; then
33623 echo $ECHO_N "(cached) $ECHO_C" >&6
33624else
33625
33626 cat >conftest.$ac_ext <<_ACEOF
33627/* confdefs.h. */
33628_ACEOF
33629cat confdefs.h >>conftest.$ac_ext
33630cat >>conftest.$ac_ext <<_ACEOF
33631/* end confdefs.h. */
33632
33633 #include <stdio.h>
33634 #include <stdarg.h>
33635 #ifdef __MSL__
33636 #if __MSL__ >= 0x6000
33637 namespace std {}
33638 using namespace std;
33639 #endif
33640 #endif
33641
33642int
33643main ()
33644{
33645
33646 char *buf;
62fa8b3a 33647 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33648
33649 ;
33650 return 0;
33651}
33652_ACEOF
33653rm -f conftest.$ac_objext
33654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33655 (eval $ac_compile) 2>conftest.er1
33656 ac_status=$?
33657 grep -v '^ *+' conftest.er1 >conftest.err
33658 rm -f conftest.er1
33659 cat conftest.err >&5
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); } &&
2b850ae1
RR
33662 { ac_try='test -z "$ac_cxx_werror_flag"
33663 || test ! -s conftest.err'
4a767dd5
VZ
33664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33665 (eval $ac_try) 2>&5
33666 ac_status=$?
33667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668 (exit $ac_status); }; } &&
33669 { ac_try='test -s conftest.$ac_objext'
33670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33671 (eval $ac_try) 2>&5
33672 ac_status=$?
33673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674 (exit $ac_status); }; }; then
33675 wx_cv_func_snprintf_decl=yes
33676else
33677 echo "$as_me: failed program was:" >&5
33678sed 's/^/| /' conftest.$ac_ext >&5
33679
33680wx_cv_func_snprintf_decl=no
33681
33682fi
33683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33684
33685
33686fi
33687echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33688echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33689
33690 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33691 cat >>confdefs.h <<\_ACEOF
33692#define HAVE_SNPRINTF_DECL 1
33693_ACEOF
33694
62fa8b3a
MW
33695
33696 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33697echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33698if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33699 echo $ECHO_N "(cached) $ECHO_C" >&6
33700else
33701
33702 cat >conftest.$ac_ext <<_ACEOF
33703/* confdefs.h. */
33704_ACEOF
33705cat confdefs.h >>conftest.$ac_ext
33706cat >>conftest.$ac_ext <<_ACEOF
33707/* end confdefs.h. */
33708
33709 #include <stdio.h>
33710 #include <stdarg.h>
33711 #ifdef __MSL__
33712 #if __MSL__ >= 0x6000
33713 namespace std {}
33714 using namespace std;
33715 #endif
33716 #endif
33717
33718int
33719main ()
33720{
33721
33722 char *buf;
33723 const char *fmt = "%s";
33724 snprintf(buf, 10u, fmt, "wx");
33725
33726 ;
33727 return 0;
33728}
33729_ACEOF
33730rm -f conftest.$ac_objext
33731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33732 (eval $ac_compile) 2>conftest.er1
33733 ac_status=$?
33734 grep -v '^ *+' conftest.er1 >conftest.err
33735 rm -f conftest.er1
33736 cat conftest.err >&5
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); } &&
2b850ae1
RR
33739 { ac_try='test -z "$ac_cxx_werror_flag"
33740 || test ! -s conftest.err'
62fa8b3a
MW
33741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33742 (eval $ac_try) 2>&5
33743 ac_status=$?
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); }; } &&
33746 { ac_try='test -s conftest.$ac_objext'
33747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33748 (eval $ac_try) 2>&5
33749 ac_status=$?
33750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751 (exit $ac_status); }; }; then
33752 wx_cv_func_broken_snprintf_decl=no
33753else
33754 echo "$as_me: failed program was:" >&5
33755sed 's/^/| /' conftest.$ac_ext >&5
33756
33757wx_cv_func_broken_snprintf_decl=yes
33758
33759fi
33760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33761
33762
33763fi
33764echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33765echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33766
33767 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33768 cat >>confdefs.h <<\_ACEOF
33769#define HAVE_BROKEN_SNPRINTF_DECL 1
33770_ACEOF
33771
33772 fi
4a767dd5
VZ
33773 fi
33774fi
33775
a848cd7e
SC
33776if test "$wxUSE_UNICODE" = yes; then
33777
33778
33779
fbe47c7b
VS
33780
33781
33782
33783for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33784do
33785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33786echo "$as_me:$LINENO: checking for $ac_func" >&5
33787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33788if eval "test \"\${$as_ac_var+set}\" = set"; then
33789 echo $ECHO_N "(cached) $ECHO_C" >&6
33790else
33791 cat >conftest.$ac_ext <<_ACEOF
33792/* confdefs.h. */
33793_ACEOF
33794cat confdefs.h >>conftest.$ac_ext
33795cat >>conftest.$ac_ext <<_ACEOF
33796/* end confdefs.h. */
ac1cb8d3
VS
33797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33799#define $ac_func innocuous_$ac_func
33800
a848cd7e
SC
33801/* System header to define __stub macros and hopefully few prototypes,
33802 which can conflict with char $ac_func (); below.
33803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33804 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33805
a848cd7e
SC
33806#ifdef __STDC__
33807# include <limits.h>
33808#else
33809# include <assert.h>
33810#endif
ac1cb8d3
VS
33811
33812#undef $ac_func
33813
a848cd7e
SC
33814/* Override any gcc2 internal prototype to avoid an error. */
33815#ifdef __cplusplus
33816extern "C"
33817{
33818#endif
33819/* We use char because int might match the return type of a gcc2
33820 builtin and then its argument prototype would still apply. */
33821char $ac_func ();
33822/* The GNU C library defines this for functions which it implements
33823 to always fail with ENOSYS. Some functions are actually named
33824 something starting with __ and the normal name is an alias. */
33825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33826choke me
33827#else
33828char (*f) () = $ac_func;
33829#endif
33830#ifdef __cplusplus
33831}
33832#endif
33833
33834int
33835main ()
33836{
33837return f != $ac_func;
33838 ;
33839 return 0;
33840}
33841_ACEOF
33842rm -f conftest.$ac_objext conftest$ac_exeext
33843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33844 (eval $ac_link) 2>conftest.er1
a848cd7e 33845 ac_status=$?
ac1cb8d3
VS
33846 grep -v '^ *+' conftest.er1 >conftest.err
33847 rm -f conftest.er1
33848 cat conftest.err >&5
a848cd7e
SC
33849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 (exit $ac_status); } &&
2b850ae1
RR
33851 { ac_try='test -z "$ac_cxx_werror_flag"
33852 || test ! -s conftest.err'
ac1cb8d3
VS
33853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33854 (eval $ac_try) 2>&5
33855 ac_status=$?
33856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857 (exit $ac_status); }; } &&
33858 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33860 (eval $ac_try) 2>&5
33861 ac_status=$?
33862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863 (exit $ac_status); }; }; then
33864 eval "$as_ac_var=yes"
33865else
33866 echo "$as_me: failed program was:" >&5
33867sed 's/^/| /' conftest.$ac_ext >&5
33868
33869eval "$as_ac_var=no"
33870fi
ac1cb8d3
VS
33871rm -f conftest.err conftest.$ac_objext \
33872 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33873fi
33874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33875echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33876if test `eval echo '${'$as_ac_var'}'` = yes; then
33877 cat >>confdefs.h <<_ACEOF
33878#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33879_ACEOF
33880
33881fi
33882done
33883
33884
33885 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33886echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33887 cat >conftest.$ac_ext <<_ACEOF
33888/* confdefs.h. */
33889_ACEOF
33890cat confdefs.h >>conftest.$ac_ext
33891cat >>conftest.$ac_ext <<_ACEOF
33892/* end confdefs.h. */
33893#include <wchar.h>
33894int
33895main ()
33896{
33897&_vsnwprintf;
33898 ;
33899 return 0;
33900}
33901_ACEOF
33902rm -f conftest.$ac_objext
33903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33904 (eval $ac_compile) 2>conftest.er1
a848cd7e 33905 ac_status=$?
ac1cb8d3
VS
33906 grep -v '^ *+' conftest.er1 >conftest.err
33907 rm -f conftest.er1
33908 cat conftest.err >&5
a848cd7e
SC
33909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910 (exit $ac_status); } &&
2b850ae1
RR
33911 { ac_try='test -z "$ac_cxx_werror_flag"
33912 || test ! -s conftest.err'
ac1cb8d3
VS
33913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33914 (eval $ac_try) 2>&5
33915 ac_status=$?
33916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917 (exit $ac_status); }; } &&
33918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33920 (eval $ac_try) 2>&5
33921 ac_status=$?
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); }; }; then
33924 echo "$as_me:$LINENO: result: yes" >&5
33925echo "${ECHO_T}yes" >&6
33926 cat >>confdefs.h <<\_ACEOF
33927#define HAVE__VSNWPRINTF 1
33928_ACEOF
33929
33930else
33931 echo "$as_me: failed program was:" >&5
33932sed 's/^/| /' conftest.$ac_ext >&5
33933
33934echo "$as_me:$LINENO: result: no" >&5
33935echo "${ECHO_T}no" >&6
33936fi
ac1cb8d3 33937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33938fi
33939
33940ac_ext=c
33941ac_cpp='$CPP $CPPFLAGS'
33942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33944ac_compiler_gnu=$ac_cv_c_compiler_gnu
33945
33946
6ebeb4c7
VZ
33947if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33948
33949for ac_func in fnmatch
33950do
33951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33952echo "$as_me:$LINENO: checking for $ac_func" >&5
33953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33954if eval "test \"\${$as_ac_var+set}\" = set"; then
33955 echo $ECHO_N "(cached) $ECHO_C" >&6
33956else
33957 cat >conftest.$ac_ext <<_ACEOF
33958/* confdefs.h. */
33959_ACEOF
33960cat confdefs.h >>conftest.$ac_ext
33961cat >>conftest.$ac_ext <<_ACEOF
33962/* end confdefs.h. */
33963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33965#define $ac_func innocuous_$ac_func
33966
33967/* System header to define __stub macros and hopefully few prototypes,
33968 which can conflict with char $ac_func (); below.
33969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33970 <limits.h> exists even on freestanding compilers. */
33971
33972#ifdef __STDC__
33973# include <limits.h>
33974#else
33975# include <assert.h>
33976#endif
33977
33978#undef $ac_func
33979
33980/* Override any gcc2 internal prototype to avoid an error. */
33981#ifdef __cplusplus
33982extern "C"
33983{
33984#endif
33985/* We use char because int might match the return type of a gcc2
33986 builtin and then its argument prototype would still apply. */
33987char $ac_func ();
33988/* The GNU C library defines this for functions which it implements
33989 to always fail with ENOSYS. Some functions are actually named
33990 something starting with __ and the normal name is an alias. */
33991#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33992choke me
33993#else
33994char (*f) () = $ac_func;
33995#endif
33996#ifdef __cplusplus
33997}
33998#endif
33999
34000int
34001main ()
34002{
34003return f != $ac_func;
34004 ;
34005 return 0;
34006}
34007_ACEOF
34008rm -f conftest.$ac_objext conftest$ac_exeext
34009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34010 (eval $ac_link) 2>conftest.er1
34011 ac_status=$?
34012 grep -v '^ *+' conftest.er1 >conftest.err
34013 rm -f conftest.er1
34014 cat conftest.err >&5
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); } &&
2b850ae1
RR
34017 { ac_try='test -z "$ac_c_werror_flag"
34018 || test ! -s conftest.err'
6ebeb4c7
VZ
34019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020 (eval $ac_try) 2>&5
34021 ac_status=$?
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); }; } &&
34024 { ac_try='test -s conftest$ac_exeext'
34025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026 (eval $ac_try) 2>&5
34027 ac_status=$?
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; }; then
34030 eval "$as_ac_var=yes"
34031else
34032 echo "$as_me: failed program was:" >&5
34033sed 's/^/| /' conftest.$ac_ext >&5
34034
34035eval "$as_ac_var=no"
34036fi
34037rm -f conftest.err conftest.$ac_objext \
34038 conftest$ac_exeext conftest.$ac_ext
34039fi
34040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34042if test `eval echo '${'$as_ac_var'}'` = yes; then
34043 cat >>confdefs.h <<_ACEOF
34044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34045_ACEOF
34046
34047fi
34048done
34049
34050fi
34051
34052if test "$wxUSE_FILE" = "yes"; then
34053
34054for ac_func in fsync
34055do
34056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34057echo "$as_me:$LINENO: checking for $ac_func" >&5
34058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34059if eval "test \"\${$as_ac_var+set}\" = set"; then
34060 echo $ECHO_N "(cached) $ECHO_C" >&6
34061else
34062 cat >conftest.$ac_ext <<_ACEOF
34063/* confdefs.h. */
34064_ACEOF
34065cat confdefs.h >>conftest.$ac_ext
34066cat >>conftest.$ac_ext <<_ACEOF
34067/* end confdefs.h. */
34068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34070#define $ac_func innocuous_$ac_func
34071
34072/* System header to define __stub macros and hopefully few prototypes,
34073 which can conflict with char $ac_func (); below.
34074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34075 <limits.h> exists even on freestanding compilers. */
34076
34077#ifdef __STDC__
34078# include <limits.h>
34079#else
34080# include <assert.h>
34081#endif
34082
34083#undef $ac_func
34084
34085/* Override any gcc2 internal prototype to avoid an error. */
34086#ifdef __cplusplus
34087extern "C"
34088{
34089#endif
34090/* We use char because int might match the return type of a gcc2
34091 builtin and then its argument prototype would still apply. */
34092char $ac_func ();
34093/* The GNU C library defines this for functions which it implements
34094 to always fail with ENOSYS. Some functions are actually named
34095 something starting with __ and the normal name is an alias. */
34096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34097choke me
34098#else
34099char (*f) () = $ac_func;
34100#endif
34101#ifdef __cplusplus
34102}
34103#endif
34104
34105int
34106main ()
34107{
34108return f != $ac_func;
34109 ;
34110 return 0;
34111}
34112_ACEOF
34113rm -f conftest.$ac_objext conftest$ac_exeext
34114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34115 (eval $ac_link) 2>conftest.er1
34116 ac_status=$?
34117 grep -v '^ *+' conftest.er1 >conftest.err
34118 rm -f conftest.er1
34119 cat conftest.err >&5
34120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121 (exit $ac_status); } &&
2b850ae1
RR
34122 { ac_try='test -z "$ac_c_werror_flag"
34123 || test ! -s conftest.err'
6ebeb4c7
VZ
34124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34125 (eval $ac_try) 2>&5
34126 ac_status=$?
34127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 (exit $ac_status); }; } &&
34129 { ac_try='test -s conftest$ac_exeext'
34130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34131 (eval $ac_try) 2>&5
34132 ac_status=$?
34133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 (exit $ac_status); }; }; then
34135 eval "$as_ac_var=yes"
34136else
34137 echo "$as_me: failed program was:" >&5
34138sed 's/^/| /' conftest.$ac_ext >&5
34139
34140eval "$as_ac_var=no"
34141fi
34142rm -f conftest.err conftest.$ac_objext \
34143 conftest$ac_exeext conftest.$ac_ext
34144fi
34145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34146echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34147if test `eval echo '${'$as_ac_var'}'` = yes; then
34148 cat >>confdefs.h <<_ACEOF
34149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34150_ACEOF
34151
34152fi
34153done
34154
34155fi
a848cd7e
SC
34156
34157
34158if test "$TOOLKIT" != "MSW"; then
34159
34160
a848cd7e
SC
34161ac_ext=cc
34162ac_cpp='$CXXCPP $CPPFLAGS'
34163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34166
34167
34168
34169
34170# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34171if test "${with_libiconv_prefix+set}" = set; then
34172 withval="$with_libiconv_prefix"
34173
34174 for dir in `echo "$withval" | tr : ' '`; do
34175 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34176 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34177 done
34178
34179fi;
34180
34181 echo "$as_me:$LINENO: checking for iconv" >&5
34182echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34183if test "${am_cv_func_iconv+set}" = set; then
34184 echo $ECHO_N "(cached) $ECHO_C" >&6
34185else
34186
34187 am_cv_func_iconv="no, consider installing GNU libiconv"
34188 am_cv_lib_iconv=no
34189 cat >conftest.$ac_ext <<_ACEOF
34190/* confdefs.h. */
34191_ACEOF
34192cat confdefs.h >>conftest.$ac_ext
34193cat >>conftest.$ac_ext <<_ACEOF
34194/* end confdefs.h. */
34195#include <stdlib.h>
34196#include <iconv.h>
34197int
34198main ()
34199{
34200iconv_t cd = iconv_open("","");
34201 iconv(cd,NULL,NULL,NULL,NULL);
34202 iconv_close(cd);
34203 ;
34204 return 0;
34205}
34206_ACEOF
34207rm -f conftest.$ac_objext conftest$ac_exeext
34208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34209 (eval $ac_link) 2>conftest.er1
a848cd7e 34210 ac_status=$?
ac1cb8d3
VS
34211 grep -v '^ *+' conftest.er1 >conftest.err
34212 rm -f conftest.er1
34213 cat conftest.err >&5
a848cd7e
SC
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); } &&
2b850ae1
RR
34216 { ac_try='test -z "$ac_cxx_werror_flag"
34217 || test ! -s conftest.err'
ac1cb8d3
VS
34218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34219 (eval $ac_try) 2>&5
34220 ac_status=$?
34221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222 (exit $ac_status); }; } &&
34223 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225 (eval $ac_try) 2>&5
34226 ac_status=$?
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; }; then
34229 am_cv_func_iconv=yes
34230else
34231 echo "$as_me: failed program was:" >&5
34232sed 's/^/| /' conftest.$ac_ext >&5
34233
34234fi
ac1cb8d3
VS
34235rm -f conftest.err conftest.$ac_objext \
34236 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34237 if test "$am_cv_func_iconv" != yes; then
34238 am_save_LIBS="$LIBS"
34239 LIBS="$LIBS -liconv"
34240 cat >conftest.$ac_ext <<_ACEOF
34241/* confdefs.h. */
34242_ACEOF
34243cat confdefs.h >>conftest.$ac_ext
34244cat >>conftest.$ac_ext <<_ACEOF
34245/* end confdefs.h. */
34246#include <stdlib.h>
34247#include <iconv.h>
34248int
34249main ()
34250{
34251iconv_t cd = iconv_open("","");
34252 iconv(cd,NULL,NULL,NULL,NULL);
34253 iconv_close(cd);
34254 ;
34255 return 0;
34256}
34257_ACEOF
34258rm -f conftest.$ac_objext conftest$ac_exeext
34259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34260 (eval $ac_link) 2>conftest.er1
a848cd7e 34261 ac_status=$?
ac1cb8d3
VS
34262 grep -v '^ *+' conftest.er1 >conftest.err
34263 rm -f conftest.er1
34264 cat conftest.err >&5
a848cd7e
SC
34265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266 (exit $ac_status); } &&
2b850ae1
RR
34267 { ac_try='test -z "$ac_cxx_werror_flag"
34268 || test ! -s conftest.err'
ac1cb8d3
VS
34269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34270 (eval $ac_try) 2>&5
34271 ac_status=$?
34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273 (exit $ac_status); }; } &&
34274 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34276 (eval $ac_try) 2>&5
34277 ac_status=$?
34278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279 (exit $ac_status); }; }; then
34280 am_cv_lib_iconv=yes
34281 am_cv_func_iconv=yes
34282else
34283 echo "$as_me: failed program was:" >&5
34284sed 's/^/| /' conftest.$ac_ext >&5
34285
34286fi
ac1cb8d3
VS
34287rm -f conftest.err conftest.$ac_objext \
34288 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34289 LIBS="$am_save_LIBS"
34290 fi
34291
34292fi
34293echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34294echo "${ECHO_T}$am_cv_func_iconv" >&6
34295 if test "$am_cv_func_iconv" = yes; then
34296
34297cat >>confdefs.h <<\_ACEOF
34298#define HAVE_ICONV 1
34299_ACEOF
34300
34301 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34302echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34303if test "${wx_cv_func_iconv_const+set}" = set; then
34304 echo $ECHO_N "(cached) $ECHO_C" >&6
34305else
34306 cat >conftest.$ac_ext <<_ACEOF
34307/* confdefs.h. */
34308_ACEOF
34309cat confdefs.h >>conftest.$ac_ext
34310cat >>conftest.$ac_ext <<_ACEOF
34311/* end confdefs.h. */
34312
34313#include <stdlib.h>
34314#include <iconv.h>
34315extern
34316#ifdef __cplusplus
34317"C"
34318#endif
34319#if defined(__STDC__) || defined(__cplusplus)
34320size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34321#else
34322size_t iconv();
34323#endif
34324
34325int
34326main ()
34327{
34328
34329 ;
34330 return 0;
34331}
34332_ACEOF
34333rm -f conftest.$ac_objext
34334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34335 (eval $ac_compile) 2>conftest.er1
a848cd7e 34336 ac_status=$?
ac1cb8d3
VS
34337 grep -v '^ *+' conftest.er1 >conftest.err
34338 rm -f conftest.er1
34339 cat conftest.err >&5
a848cd7e
SC
34340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 (exit $ac_status); } &&
2b850ae1
RR
34342 { ac_try='test -z "$ac_cxx_werror_flag"
34343 || test ! -s conftest.err'
ac1cb8d3
VS
34344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34345 (eval $ac_try) 2>&5
34346 ac_status=$?
34347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348 (exit $ac_status); }; } &&
34349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34351 (eval $ac_try) 2>&5
34352 ac_status=$?
34353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354 (exit $ac_status); }; }; then
34355 wx_cv_func_iconv_const="no"
34356else
34357 echo "$as_me: failed program was:" >&5
34358sed 's/^/| /' conftest.$ac_ext >&5
34359
34360wx_cv_func_iconv_const="yes"
34361
34362fi
ac1cb8d3 34363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34364
34365fi
34366echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34367echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34368
34369 iconv_const=
34370 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34371 iconv_const="const"
34372 fi
34373
34374
34375cat >>confdefs.h <<_ACEOF
34376#define ICONV_CONST $iconv_const
34377_ACEOF
34378
34379 fi
34380 LIBICONV=
34381 if test "$am_cv_lib_iconv" = yes; then
34382 LIBICONV="-liconv"
34383 fi
34384
34385
34386LIBS="$LIBICONV $LIBS"
34387ac_ext=c
34388ac_cpp='$CPP $CPPFLAGS'
34389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34391ac_compiler_gnu=$ac_cv_c_compiler_gnu
34392
34393
34394if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34395
34396for ac_func in sigaction
34397do
34398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34399echo "$as_me:$LINENO: checking for $ac_func" >&5
34400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34401if eval "test \"\${$as_ac_var+set}\" = set"; then
34402 echo $ECHO_N "(cached) $ECHO_C" >&6
34403else
34404 cat >conftest.$ac_ext <<_ACEOF
34405/* confdefs.h. */
34406_ACEOF
34407cat confdefs.h >>conftest.$ac_ext
34408cat >>conftest.$ac_ext <<_ACEOF
34409/* end confdefs.h. */
ac1cb8d3
VS
34410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34412#define $ac_func innocuous_$ac_func
34413
a848cd7e
SC
34414/* System header to define __stub macros and hopefully few prototypes,
34415 which can conflict with char $ac_func (); below.
34416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34417 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34418
a848cd7e
SC
34419#ifdef __STDC__
34420# include <limits.h>
34421#else
34422# include <assert.h>
34423#endif
ac1cb8d3
VS
34424
34425#undef $ac_func
34426
a848cd7e
SC
34427/* Override any gcc2 internal prototype to avoid an error. */
34428#ifdef __cplusplus
34429extern "C"
34430{
34431#endif
34432/* We use char because int might match the return type of a gcc2
34433 builtin and then its argument prototype would still apply. */
34434char $ac_func ();
34435/* The GNU C library defines this for functions which it implements
34436 to always fail with ENOSYS. Some functions are actually named
34437 something starting with __ and the normal name is an alias. */
34438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34439choke me
34440#else
34441char (*f) () = $ac_func;
34442#endif
34443#ifdef __cplusplus
34444}
34445#endif
34446
34447int
34448main ()
34449{
34450return f != $ac_func;
34451 ;
34452 return 0;
34453}
34454_ACEOF
34455rm -f conftest.$ac_objext conftest$ac_exeext
34456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34457 (eval $ac_link) 2>conftest.er1
a848cd7e 34458 ac_status=$?
ac1cb8d3
VS
34459 grep -v '^ *+' conftest.er1 >conftest.err
34460 rm -f conftest.er1
34461 cat conftest.err >&5
a848cd7e
SC
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); } &&
2b850ae1
RR
34464 { ac_try='test -z "$ac_c_werror_flag"
34465 || test ! -s conftest.err'
ac1cb8d3
VS
34466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34467 (eval $ac_try) 2>&5
34468 ac_status=$?
34469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470 (exit $ac_status); }; } &&
34471 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34473 (eval $ac_try) 2>&5
34474 ac_status=$?
34475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476 (exit $ac_status); }; }; then
34477 eval "$as_ac_var=yes"
34478else
34479 echo "$as_me: failed program was:" >&5
34480sed 's/^/| /' conftest.$ac_ext >&5
34481
34482eval "$as_ac_var=no"
34483fi
ac1cb8d3
VS
34484rm -f conftest.err conftest.$ac_objext \
34485 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34486fi
34487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34489if test `eval echo '${'$as_ac_var'}'` = yes; then
34490 cat >>confdefs.h <<_ACEOF
34491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34492_ACEOF
34493
34494fi
34495done
34496
34497
34498 if test "$ac_cv_func_sigaction" = "no"; then
34499 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34500echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34501 wxUSE_ON_FATAL_EXCEPTION=no
34502 fi
34503
34504 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
34505 ac_ext=cc
34506ac_cpp='$CXXCPP $CPPFLAGS'
34507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34510
34511
34512 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34513echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34514if test "${wx_cv_type_sa_handler+set}" = set; then
34515 echo $ECHO_N "(cached) $ECHO_C" >&6
34516else
34517
34518 cat >conftest.$ac_ext <<_ACEOF
34519/* confdefs.h. */
34520_ACEOF
34521cat confdefs.h >>conftest.$ac_ext
34522cat >>conftest.$ac_ext <<_ACEOF
34523/* end confdefs.h. */
34524#include <signal.h>
34525int
34526main ()
34527{
34528
34529 extern void testSigHandler(int);
34530
34531 struct sigaction sa;
34532 sa.sa_handler = testSigHandler;
34533
34534 ;
34535 return 0;
34536}
34537_ACEOF
34538rm -f conftest.$ac_objext
34539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34540 (eval $ac_compile) 2>conftest.er1
a848cd7e 34541 ac_status=$?
ac1cb8d3
VS
34542 grep -v '^ *+' conftest.er1 >conftest.err
34543 rm -f conftest.er1
34544 cat conftest.err >&5
a848cd7e
SC
34545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546 (exit $ac_status); } &&
2b850ae1
RR
34547 { ac_try='test -z "$ac_cxx_werror_flag"
34548 || test ! -s conftest.err'
ac1cb8d3
VS
34549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34550 (eval $ac_try) 2>&5
34551 ac_status=$?
34552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553 (exit $ac_status); }; } &&
34554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34556 (eval $ac_try) 2>&5
34557 ac_status=$?
34558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559 (exit $ac_status); }; }; then
34560
34561 wx_cv_type_sa_handler=int
34562
34563else
34564 echo "$as_me: failed program was:" >&5
34565sed 's/^/| /' conftest.$ac_ext >&5
34566
34567
34568 wx_cv_type_sa_handler=void
34569
34570fi
ac1cb8d3 34571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34572
34573fi
34574echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34575echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34576
34577 ac_ext=c
34578ac_cpp='$CPP $CPPFLAGS'
34579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34581ac_compiler_gnu=$ac_cv_c_compiler_gnu
34582
34583
34584 cat >>confdefs.h <<_ACEOF
34585#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34586_ACEOF
34587
34588 fi
34589fi
34590
eaff0f0d 34591if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
34592 ac_ext=cc
34593ac_cpp='$CXXCPP $CPPFLAGS'
34594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34597
34598
34599 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34600echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34601if test "${wx_cv_func_backtrace+set}" = set; then
34602 echo $ECHO_N "(cached) $ECHO_C" >&6
34603else
34604
34605 cat >conftest.$ac_ext <<_ACEOF
34606/* confdefs.h. */
34607_ACEOF
34608cat confdefs.h >>conftest.$ac_ext
34609cat >>conftest.$ac_ext <<_ACEOF
34610/* end confdefs.h. */
34611#include <execinfo.h>
34612int
34613main ()
34614{
34615
34616 void *trace[1];
34617 char **messages;
34618
34619 backtrace(trace, 1);
34620 messages = backtrace_symbols(trace, 1);
34621
34622 ;
34623 return 0;
34624}
34625_ACEOF
34626rm -f conftest.$ac_objext
34627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34628 (eval $ac_compile) 2>conftest.er1
34629 ac_status=$?
34630 grep -v '^ *+' conftest.er1 >conftest.err
34631 rm -f conftest.er1
34632 cat conftest.err >&5
34633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634 (exit $ac_status); } &&
2b850ae1
RR
34635 { ac_try='test -z "$ac_cxx_werror_flag"
34636 || test ! -s conftest.err'
eaff0f0d
VZ
34637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34638 (eval $ac_try) 2>&5
34639 ac_status=$?
34640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641 (exit $ac_status); }; } &&
34642 { ac_try='test -s conftest.$ac_objext'
34643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34644 (eval $ac_try) 2>&5
34645 ac_status=$?
34646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647 (exit $ac_status); }; }; then
34648 wx_cv_func_backtrace=yes
34649else
34650 echo "$as_me: failed program was:" >&5
34651sed 's/^/| /' conftest.$ac_ext >&5
34652
34653wx_cv_func_backtrace=no
34654
34655fi
34656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34657
34658
34659fi
34660echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34661echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34662
34663
34664 if test "$wx_cv_func_backtrace" = "no"; then
34665 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34666echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34667 wxUSE_STACKWALKER=no
34668 else
34669 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34670echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34671if test "${wx_cv_func_cxa_demangle+set}" = set; then
34672 echo $ECHO_N "(cached) $ECHO_C" >&6
34673else
34674
34675 cat >conftest.$ac_ext <<_ACEOF
34676/* confdefs.h. */
34677_ACEOF
34678cat confdefs.h >>conftest.$ac_ext
34679cat >>conftest.$ac_ext <<_ACEOF
34680/* end confdefs.h. */
34681#include <cxxabi.h>
34682int
34683main ()
34684{
34685
34686 int rc;
34687 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34688
34689 ;
34690 return 0;
34691}
34692_ACEOF
dfe0c803
JS
34693rm -f conftest.$ac_objext conftest$ac_exeext
34694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34695 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34696 ac_status=$?
34697 grep -v '^ *+' conftest.er1 >conftest.err
34698 rm -f conftest.er1
34699 cat conftest.err >&5
34700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701 (exit $ac_status); } &&
2b850ae1
RR
34702 { ac_try='test -z "$ac_cxx_werror_flag"
34703 || test ! -s conftest.err'
eaff0f0d
VZ
34704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34705 (eval $ac_try) 2>&5
34706 ac_status=$?
34707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34708 (exit $ac_status); }; } &&
dfe0c803 34709 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34711 (eval $ac_try) 2>&5
34712 ac_status=$?
34713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34714 (exit $ac_status); }; }; then
34715 wx_cv_func_cxa_demangle=yes
34716else
34717 echo "$as_me: failed program was:" >&5
34718sed 's/^/| /' conftest.$ac_ext >&5
34719
34720wx_cv_func_cxa_demangle=no
34721
34722fi
dfe0c803
JS
34723rm -f conftest.err conftest.$ac_objext \
34724 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34725
34726
34727fi
34728echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34729echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34730
34731 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34732 cat >>confdefs.h <<\_ACEOF
34733#define HAVE_CXA_DEMANGLE 1
34734_ACEOF
34735
34736 fi
34737 fi
34738
34739 ac_ext=c
34740ac_cpp='$CPP $CPPFLAGS'
34741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34743ac_compiler_gnu=$ac_cv_c_compiler_gnu
34744
34745fi
34746
898beab1
DE
34747if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34748 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34749echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34750 wxUSE_STACKWALKER=no
34751fi
34752
34753
a848cd7e
SC
34754
34755
34756for ac_func in mkstemp mktemp
34757do
34758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34759echo "$as_me:$LINENO: checking for $ac_func" >&5
34760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34761if eval "test \"\${$as_ac_var+set}\" = set"; then
34762 echo $ECHO_N "(cached) $ECHO_C" >&6
34763else
34764 cat >conftest.$ac_ext <<_ACEOF
34765/* confdefs.h. */
34766_ACEOF
34767cat confdefs.h >>conftest.$ac_ext
34768cat >>conftest.$ac_ext <<_ACEOF
34769/* end confdefs.h. */
ac1cb8d3
VS
34770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34772#define $ac_func innocuous_$ac_func
34773
a848cd7e
SC
34774/* System header to define __stub macros and hopefully few prototypes,
34775 which can conflict with char $ac_func (); below.
34776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34777 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34778
a848cd7e
SC
34779#ifdef __STDC__
34780# include <limits.h>
34781#else
34782# include <assert.h>
34783#endif
ac1cb8d3
VS
34784
34785#undef $ac_func
34786
a848cd7e
SC
34787/* Override any gcc2 internal prototype to avoid an error. */
34788#ifdef __cplusplus
34789extern "C"
34790{
34791#endif
34792/* We use char because int might match the return type of a gcc2
34793 builtin and then its argument prototype would still apply. */
34794char $ac_func ();
34795/* The GNU C library defines this for functions which it implements
34796 to always fail with ENOSYS. Some functions are actually named
34797 something starting with __ and the normal name is an alias. */
34798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34799choke me
34800#else
34801char (*f) () = $ac_func;
34802#endif
34803#ifdef __cplusplus
34804}
34805#endif
34806
34807int
34808main ()
34809{
34810return f != $ac_func;
34811 ;
34812 return 0;
34813}
34814_ACEOF
34815rm -f conftest.$ac_objext conftest$ac_exeext
34816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34817 (eval $ac_link) 2>conftest.er1
a848cd7e 34818 ac_status=$?
ac1cb8d3
VS
34819 grep -v '^ *+' conftest.er1 >conftest.err
34820 rm -f conftest.er1
34821 cat conftest.err >&5
a848cd7e
SC
34822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823 (exit $ac_status); } &&
2b850ae1
RR
34824 { ac_try='test -z "$ac_c_werror_flag"
34825 || test ! -s conftest.err'
ac1cb8d3
VS
34826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34827 (eval $ac_try) 2>&5
34828 ac_status=$?
34829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830 (exit $ac_status); }; } &&
34831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34833 (eval $ac_try) 2>&5
34834 ac_status=$?
34835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836 (exit $ac_status); }; }; then
34837 eval "$as_ac_var=yes"
34838else
34839 echo "$as_me: failed program was:" >&5
34840sed 's/^/| /' conftest.$ac_ext >&5
34841
34842eval "$as_ac_var=no"
34843fi
ac1cb8d3
VS
34844rm -f conftest.err conftest.$ac_objext \
34845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34846fi
34847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34848echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34849if test `eval echo '${'$as_ac_var'}'` = yes; then
34850 cat >>confdefs.h <<_ACEOF
34851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34852_ACEOF
34853 break
34854fi
34855done
34856
34857
34858echo "$as_me:$LINENO: checking for statfs" >&5
34859echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34860if test "${wx_cv_func_statfs+set}" = set; then
34861 echo $ECHO_N "(cached) $ECHO_C" >&6
34862else
34863 cat >conftest.$ac_ext <<_ACEOF
34864/* confdefs.h. */
34865_ACEOF
34866cat confdefs.h >>conftest.$ac_ext
34867cat >>conftest.$ac_ext <<_ACEOF
34868/* end confdefs.h. */
34869
34870 #if defined(__BSD__)
84ae7ca4
VZ
34871 #include <sys/param.h>
34872 #include <sys/mount.h>
a848cd7e 34873 #else
84ae7ca4 34874 #include <sys/vfs.h>
a848cd7e
SC
34875 #endif
34876
34877int
34878main ()
34879{
34880
34881 long l;
34882 struct statfs fs;
34883 statfs("/", &fs);
34884 l = fs.f_bsize;
34885 l += fs.f_blocks;
34886 l += fs.f_bavail;
34887
34888 ;
34889 return 0;
34890}
34891_ACEOF
34892rm -f conftest.$ac_objext
34893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34894 (eval $ac_compile) 2>conftest.er1
a848cd7e 34895 ac_status=$?
ac1cb8d3
VS
34896 grep -v '^ *+' conftest.er1 >conftest.err
34897 rm -f conftest.er1
34898 cat conftest.err >&5
a848cd7e
SC
34899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34900 (exit $ac_status); } &&
2b850ae1
RR
34901 { ac_try='test -z "$ac_c_werror_flag"
34902 || test ! -s conftest.err'
ac1cb8d3
VS
34903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34904 (eval $ac_try) 2>&5
34905 ac_status=$?
34906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907 (exit $ac_status); }; } &&
34908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34910 (eval $ac_try) 2>&5
34911 ac_status=$?
34912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913 (exit $ac_status); }; }; then
84ae7ca4 34914 wx_cv_func_statfs=yes
a848cd7e
SC
34915else
34916 echo "$as_me: failed program was:" >&5
34917sed 's/^/| /' conftest.$ac_ext >&5
34918
84ae7ca4 34919wx_cv_func_statfs=no
a848cd7e
SC
34920
34921fi
ac1cb8d3 34922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34923
34924fi
34925echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34926echo "${ECHO_T}$wx_cv_func_statfs" >&6
34927
34928if test "$wx_cv_func_statfs" = "yes"; then
5ec3bc43 34929 ac_ext=cc
84ae7ca4
VZ
34930ac_cpp='$CXXCPP $CPPFLAGS'
34931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34934
34935 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34936echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34937if test "${wx_cv_func_statfs_decl+set}" = set; then
34938 echo $ECHO_N "(cached) $ECHO_C" >&6
34939else
0683aca6
VZ
34940 cat >conftest.$ac_ext <<_ACEOF
34941/* confdefs.h. */
34942_ACEOF
34943cat confdefs.h >>conftest.$ac_ext
34944cat >>conftest.$ac_ext <<_ACEOF
34945/* end confdefs.h. */
84ae7ca4 34946
0683aca6
VZ
34947 #if defined(__BSD__)
34948 #include <sys/param.h>
34949 #include <sys/mount.h>
34950 #else
34951 #include <sys/vfs.h>
34952 #endif
34953
34954int
34955main ()
34956{
34957
34958 struct statfs fs;
34959 statfs("", &fs);
34960
34961 ;
34962 return 0;
34963}
34964_ACEOF
34965rm -f conftest.$ac_objext
34966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34967 (eval $ac_compile) 2>conftest.er1
34968 ac_status=$?
34969 grep -v '^ *+' conftest.er1 >conftest.err
34970 rm -f conftest.er1
34971 cat conftest.err >&5
34972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973 (exit $ac_status); } &&
2b850ae1
RR
34974 { ac_try='test -z "$ac_cxx_werror_flag"
34975 || test ! -s conftest.err'
0683aca6
VZ
34976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34977 (eval $ac_try) 2>&5
34978 ac_status=$?
34979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34980 (exit $ac_status); }; } &&
34981 { ac_try='test -s conftest.$ac_objext'
34982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34983 (eval $ac_try) 2>&5
34984 ac_status=$?
34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); }; }; then
34987 wx_cv_func_statfs_decl=yes
34988else
34989 echo "$as_me: failed program was:" >&5
34990sed 's/^/| /' conftest.$ac_ext >&5
34991
34992wx_cv_func_statfs_decl=no
34993
34994fi
34995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34996
34997fi
34998echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34999echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
35000 ac_ext=c
35001ac_cpp='$CPP $CPPFLAGS'
35002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35004ac_compiler_gnu=$ac_cv_c_compiler_gnu
35005
35006
35007 if test "$wx_cv_func_statfs_decl" = "yes"; then
35008 cat >>confdefs.h <<\_ACEOF
35009#define HAVE_STATFS_DECL 1
35010_ACEOF
35011
35012 fi
35013
a848cd7e
SC
35014 wx_cv_type_statvfs_t="struct statfs"
35015 cat >>confdefs.h <<\_ACEOF
35016#define HAVE_STATFS 1
35017_ACEOF
35018
35019else
35020 echo "$as_me:$LINENO: checking for statvfs" >&5
35021echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35022if test "${wx_cv_func_statvfs+set}" = set; then
35023 echo $ECHO_N "(cached) $ECHO_C" >&6
35024else
35025 cat >conftest.$ac_ext <<_ACEOF
35026/* confdefs.h. */
35027_ACEOF
35028cat confdefs.h >>conftest.$ac_ext
35029cat >>conftest.$ac_ext <<_ACEOF
35030/* end confdefs.h. */
35031
35032 #include <stddef.h>
35033 #include <sys/statvfs.h>
35034
35035int
35036main ()
35037{
35038
35039 statvfs("/", NULL);
35040
35041 ;
35042 return 0;
35043}
35044_ACEOF
35045rm -f conftest.$ac_objext
35046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35047 (eval $ac_compile) 2>conftest.er1
a848cd7e 35048 ac_status=$?
ac1cb8d3
VS
35049 grep -v '^ *+' conftest.er1 >conftest.err
35050 rm -f conftest.er1
35051 cat conftest.err >&5
a848cd7e
SC
35052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053 (exit $ac_status); } &&
2b850ae1
RR
35054 { ac_try='test -z "$ac_c_werror_flag"
35055 || test ! -s conftest.err'
ac1cb8d3
VS
35056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35057 (eval $ac_try) 2>&5
35058 ac_status=$?
35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); }; } &&
35061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35063 (eval $ac_try) 2>&5
35064 ac_status=$?
35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); }; }; then
35067 wx_cv_func_statvfs=yes
35068else
35069 echo "$as_me: failed program was:" >&5
35070sed 's/^/| /' conftest.$ac_ext >&5
35071
35072wx_cv_func_statvfs=no
35073
35074fi
ac1cb8d3 35075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35076
35077fi
35078echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35079echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35080
35081 if test "$wx_cv_func_statvfs" = "yes"; then
5ec3bc43 35082 ac_ext=cc
a848cd7e
SC
35083ac_cpp='$CXXCPP $CPPFLAGS'
35084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35087
35088
35089 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
35090echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35091if test "${wx_cv_type_statvfs_t+set}" = set; then
35092 echo $ECHO_N "(cached) $ECHO_C" >&6
35093else
35094 cat >conftest.$ac_ext <<_ACEOF
35095/* confdefs.h. */
35096_ACEOF
35097cat confdefs.h >>conftest.$ac_ext
35098cat >>conftest.$ac_ext <<_ACEOF
35099/* end confdefs.h. */
35100
35101 #include <sys/statvfs.h>
35102
35103int
35104main ()
35105{
35106
35107 long l;
35108 statvfs_t fs;
35109 statvfs("/", &fs);
35110 l = fs.f_bsize;
35111 l += fs.f_blocks;
35112 l += fs.f_bavail;
35113
35114 ;
35115 return 0;
35116}
35117_ACEOF
35118rm -f conftest.$ac_objext
35119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35120 (eval $ac_compile) 2>conftest.er1
a848cd7e 35121 ac_status=$?
ac1cb8d3
VS
35122 grep -v '^ *+' conftest.er1 >conftest.err
35123 rm -f conftest.er1
35124 cat conftest.err >&5
a848cd7e
SC
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); } &&
2b850ae1
RR
35127 { ac_try='test -z "$ac_cxx_werror_flag"
35128 || test ! -s conftest.err'
ac1cb8d3
VS
35129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35130 (eval $ac_try) 2>&5
35131 ac_status=$?
35132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133 (exit $ac_status); }; } &&
35134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35136 (eval $ac_try) 2>&5
35137 ac_status=$?
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); }; }; then
35140 wx_cv_type_statvfs_t=statvfs_t
35141else
35142 echo "$as_me: failed program was:" >&5
35143sed 's/^/| /' conftest.$ac_ext >&5
35144
35145
35146 cat >conftest.$ac_ext <<_ACEOF
35147/* confdefs.h. */
35148_ACEOF
35149cat confdefs.h >>conftest.$ac_ext
35150cat >>conftest.$ac_ext <<_ACEOF
35151/* end confdefs.h. */
35152
35153 #include <sys/statvfs.h>
35154
35155int
35156main ()
35157{
35158
35159 long l;
35160 struct statvfs fs;
35161 statvfs("/", &fs);
35162 l = fs.f_bsize;
35163 l += fs.f_blocks;
35164 l += fs.f_bavail;
35165
35166 ;
35167 return 0;
35168}
35169_ACEOF
35170rm -f conftest.$ac_objext
35171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35172 (eval $ac_compile) 2>conftest.er1
a848cd7e 35173 ac_status=$?
ac1cb8d3
VS
35174 grep -v '^ *+' conftest.er1 >conftest.err
35175 rm -f conftest.er1
35176 cat conftest.err >&5
a848cd7e
SC
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); } &&
2b850ae1
RR
35179 { ac_try='test -z "$ac_cxx_werror_flag"
35180 || test ! -s conftest.err'
ac1cb8d3
VS
35181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35182 (eval $ac_try) 2>&5
35183 ac_status=$?
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); }; } &&
35186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35188 (eval $ac_try) 2>&5
35189 ac_status=$?
35190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191 (exit $ac_status); }; }; then
35192 wx_cv_type_statvfs_t="struct statvfs"
35193else
35194 echo "$as_me: failed program was:" >&5
35195sed 's/^/| /' conftest.$ac_ext >&5
35196
35197wx_cv_type_statvfs_t="unknown"
35198
35199fi
ac1cb8d3 35200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35201
35202
35203fi
ac1cb8d3 35204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35205
35206fi
35207echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35208echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35209
35210 ac_ext=c
35211ac_cpp='$CPP $CPPFLAGS'
35212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35214ac_compiler_gnu=$ac_cv_c_compiler_gnu
35215
35216
35217 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35218 cat >>confdefs.h <<\_ACEOF
35219#define HAVE_STATVFS 1
35220_ACEOF
35221
35222 fi
35223 else
35224 wx_cv_type_statvfs_t="unknown"
35225 fi
35226fi
35227
35228if test "$wx_cv_type_statvfs_t" != "unknown"; then
35229 cat >>confdefs.h <<_ACEOF
35230#define WX_STATFS_T $wx_cv_type_statvfs_t
35231_ACEOF
35232
35233else
35234 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35235echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35236fi
35237
35238if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35239
35240
35241for ac_func in fcntl flock
35242do
35243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35244echo "$as_me:$LINENO: checking for $ac_func" >&5
35245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35246if eval "test \"\${$as_ac_var+set}\" = set"; then
35247 echo $ECHO_N "(cached) $ECHO_C" >&6
35248else
35249 cat >conftest.$ac_ext <<_ACEOF
35250/* confdefs.h. */
35251_ACEOF
35252cat confdefs.h >>conftest.$ac_ext
35253cat >>conftest.$ac_ext <<_ACEOF
35254/* end confdefs.h. */
ac1cb8d3
VS
35255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35257#define $ac_func innocuous_$ac_func
35258
a848cd7e
SC
35259/* System header to define __stub macros and hopefully few prototypes,
35260 which can conflict with char $ac_func (); below.
35261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35262 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35263
a848cd7e
SC
35264#ifdef __STDC__
35265# include <limits.h>
35266#else
35267# include <assert.h>
35268#endif
ac1cb8d3
VS
35269
35270#undef $ac_func
35271
a848cd7e
SC
35272/* Override any gcc2 internal prototype to avoid an error. */
35273#ifdef __cplusplus
35274extern "C"
35275{
35276#endif
35277/* We use char because int might match the return type of a gcc2
35278 builtin and then its argument prototype would still apply. */
35279char $ac_func ();
35280/* The GNU C library defines this for functions which it implements
35281 to always fail with ENOSYS. Some functions are actually named
35282 something starting with __ and the normal name is an alias. */
35283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35284choke me
35285#else
35286char (*f) () = $ac_func;
35287#endif
35288#ifdef __cplusplus
35289}
35290#endif
35291
35292int
35293main ()
35294{
35295return f != $ac_func;
35296 ;
35297 return 0;
35298}
35299_ACEOF
35300rm -f conftest.$ac_objext conftest$ac_exeext
35301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35302 (eval $ac_link) 2>conftest.er1
a848cd7e 35303 ac_status=$?
ac1cb8d3
VS
35304 grep -v '^ *+' conftest.er1 >conftest.err
35305 rm -f conftest.er1
35306 cat conftest.err >&5
a848cd7e
SC
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); } &&
2b850ae1
RR
35309 { ac_try='test -z "$ac_c_werror_flag"
35310 || test ! -s conftest.err'
ac1cb8d3
VS
35311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312 (eval $ac_try) 2>&5
35313 ac_status=$?
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); }; } &&
35316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35318 (eval $ac_try) 2>&5
35319 ac_status=$?
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); }; }; then
35322 eval "$as_ac_var=yes"
35323else
35324 echo "$as_me: failed program was:" >&5
35325sed 's/^/| /' conftest.$ac_ext >&5
35326
35327eval "$as_ac_var=no"
35328fi
ac1cb8d3
VS
35329rm -f conftest.err conftest.$ac_objext \
35330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35331fi
35332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35334if test `eval echo '${'$as_ac_var'}'` = yes; then
35335 cat >>confdefs.h <<_ACEOF
35336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35337_ACEOF
35338 break
35339fi
35340done
35341
35342
35343 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35344 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35345echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35346 wxUSE_SNGLINST_CHECKER=no
35347 fi
35348fi
35349
35350
35351for ac_func in timegm
35352do
35353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35354echo "$as_me:$LINENO: checking for $ac_func" >&5
35355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35356if eval "test \"\${$as_ac_var+set}\" = set"; then
35357 echo $ECHO_N "(cached) $ECHO_C" >&6
35358else
35359 cat >conftest.$ac_ext <<_ACEOF
35360/* confdefs.h. */
35361_ACEOF
35362cat confdefs.h >>conftest.$ac_ext
35363cat >>conftest.$ac_ext <<_ACEOF
35364/* end confdefs.h. */
ac1cb8d3
VS
35365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35367#define $ac_func innocuous_$ac_func
35368
a848cd7e
SC
35369/* System header to define __stub macros and hopefully few prototypes,
35370 which can conflict with char $ac_func (); below.
35371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35372 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35373
a848cd7e
SC
35374#ifdef __STDC__
35375# include <limits.h>
35376#else
35377# include <assert.h>
35378#endif
ac1cb8d3
VS
35379
35380#undef $ac_func
35381
a848cd7e
SC
35382/* Override any gcc2 internal prototype to avoid an error. */
35383#ifdef __cplusplus
35384extern "C"
35385{
35386#endif
35387/* We use char because int might match the return type of a gcc2
35388 builtin and then its argument prototype would still apply. */
35389char $ac_func ();
35390/* The GNU C library defines this for functions which it implements
35391 to always fail with ENOSYS. Some functions are actually named
35392 something starting with __ and the normal name is an alias. */
35393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35394choke me
35395#else
35396char (*f) () = $ac_func;
35397#endif
35398#ifdef __cplusplus
35399}
35400#endif
35401
35402int
35403main ()
35404{
35405return f != $ac_func;
35406 ;
35407 return 0;
35408}
35409_ACEOF
35410rm -f conftest.$ac_objext conftest$ac_exeext
35411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35412 (eval $ac_link) 2>conftest.er1
a848cd7e 35413 ac_status=$?
ac1cb8d3
VS
35414 grep -v '^ *+' conftest.er1 >conftest.err
35415 rm -f conftest.er1
35416 cat conftest.err >&5
a848cd7e
SC
35417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35418 (exit $ac_status); } &&
2b850ae1
RR
35419 { ac_try='test -z "$ac_c_werror_flag"
35420 || test ! -s conftest.err'
ac1cb8d3
VS
35421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35422 (eval $ac_try) 2>&5
35423 ac_status=$?
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); }; } &&
35426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35428 (eval $ac_try) 2>&5
35429 ac_status=$?
35430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431 (exit $ac_status); }; }; then
35432 eval "$as_ac_var=yes"
35433else
35434 echo "$as_me: failed program was:" >&5
35435sed 's/^/| /' conftest.$ac_ext >&5
35436
35437eval "$as_ac_var=no"
35438fi
ac1cb8d3
VS
35439rm -f conftest.err conftest.$ac_objext \
35440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35441fi
35442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35443echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35444if test `eval echo '${'$as_ac_var'}'` = yes; then
35445 cat >>confdefs.h <<_ACEOF
35446#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35447_ACEOF
35448
35449fi
35450done
35451
35452
35453
35454
35455for ac_func in putenv setenv
35456do
35457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35458echo "$as_me:$LINENO: checking for $ac_func" >&5
35459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35460if eval "test \"\${$as_ac_var+set}\" = set"; then
35461 echo $ECHO_N "(cached) $ECHO_C" >&6
35462else
35463 cat >conftest.$ac_ext <<_ACEOF
35464/* confdefs.h. */
35465_ACEOF
35466cat confdefs.h >>conftest.$ac_ext
35467cat >>conftest.$ac_ext <<_ACEOF
35468/* end confdefs.h. */
ac1cb8d3
VS
35469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35471#define $ac_func innocuous_$ac_func
35472
a848cd7e
SC
35473/* System header to define __stub macros and hopefully few prototypes,
35474 which can conflict with char $ac_func (); below.
35475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35476 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35477
a848cd7e
SC
35478#ifdef __STDC__
35479# include <limits.h>
35480#else
35481# include <assert.h>
35482#endif
ac1cb8d3
VS
35483
35484#undef $ac_func
35485
a848cd7e
SC
35486/* Override any gcc2 internal prototype to avoid an error. */
35487#ifdef __cplusplus
35488extern "C"
35489{
35490#endif
35491/* We use char because int might match the return type of a gcc2
35492 builtin and then its argument prototype would still apply. */
35493char $ac_func ();
35494/* The GNU C library defines this for functions which it implements
35495 to always fail with ENOSYS. Some functions are actually named
35496 something starting with __ and the normal name is an alias. */
35497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35498choke me
35499#else
35500char (*f) () = $ac_func;
35501#endif
35502#ifdef __cplusplus
35503}
35504#endif
35505
35506int
35507main ()
35508{
35509return f != $ac_func;
35510 ;
35511 return 0;
35512}
35513_ACEOF
35514rm -f conftest.$ac_objext conftest$ac_exeext
35515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35516 (eval $ac_link) 2>conftest.er1
a848cd7e 35517 ac_status=$?
ac1cb8d3
VS
35518 grep -v '^ *+' conftest.er1 >conftest.err
35519 rm -f conftest.er1
35520 cat conftest.err >&5
a848cd7e
SC
35521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); } &&
2b850ae1
RR
35523 { ac_try='test -z "$ac_c_werror_flag"
35524 || test ! -s conftest.err'
ac1cb8d3
VS
35525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35526 (eval $ac_try) 2>&5
35527 ac_status=$?
35528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529 (exit $ac_status); }; } &&
35530 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35532 (eval $ac_try) 2>&5
35533 ac_status=$?
35534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35535 (exit $ac_status); }; }; then
35536 eval "$as_ac_var=yes"
35537else
35538 echo "$as_me: failed program was:" >&5
35539sed 's/^/| /' conftest.$ac_ext >&5
35540
35541eval "$as_ac_var=no"
35542fi
ac1cb8d3
VS
35543rm -f conftest.err conftest.$ac_objext \
35544 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35545fi
35546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35548if test `eval echo '${'$as_ac_var'}'` = yes; then
35549 cat >>confdefs.h <<_ACEOF
35550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35551_ACEOF
35552 break
35553fi
35554done
35555
35556
35557HAVE_SOME_SLEEP_FUNC=0
35558if test "$USE_BEOS" = 1; then
35559 cat >>confdefs.h <<\_ACEOF
35560#define HAVE_SLEEP 1
35561_ACEOF
35562
35563 HAVE_SOME_SLEEP_FUNC=1
35564fi
35565
35566if test "$USE_DARWIN" = 1; then
35567 cat >>confdefs.h <<\_ACEOF
35568#define HAVE_USLEEP 1
35569_ACEOF
35570
35571 HAVE_SOME_SLEEP_FUNC=1
35572fi
35573
35574if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35575 POSIX4_LINK=
35576
35577for ac_func in nanosleep
35578do
35579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35580echo "$as_me:$LINENO: checking for $ac_func" >&5
35581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35582if eval "test \"\${$as_ac_var+set}\" = set"; then
35583 echo $ECHO_N "(cached) $ECHO_C" >&6
35584else
35585 cat >conftest.$ac_ext <<_ACEOF
35586/* confdefs.h. */
35587_ACEOF
35588cat confdefs.h >>conftest.$ac_ext
35589cat >>conftest.$ac_ext <<_ACEOF
35590/* end confdefs.h. */
ac1cb8d3
VS
35591/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35593#define $ac_func innocuous_$ac_func
35594
a848cd7e
SC
35595/* System header to define __stub macros and hopefully few prototypes,
35596 which can conflict with char $ac_func (); below.
35597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35598 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35599
a848cd7e
SC
35600#ifdef __STDC__
35601# include <limits.h>
35602#else
35603# include <assert.h>
35604#endif
ac1cb8d3
VS
35605
35606#undef $ac_func
35607
a848cd7e
SC
35608/* Override any gcc2 internal prototype to avoid an error. */
35609#ifdef __cplusplus
35610extern "C"
35611{
35612#endif
35613/* We use char because int might match the return type of a gcc2
35614 builtin and then its argument prototype would still apply. */
35615char $ac_func ();
35616/* The GNU C library defines this for functions which it implements
35617 to always fail with ENOSYS. Some functions are actually named
35618 something starting with __ and the normal name is an alias. */
35619#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35620choke me
35621#else
35622char (*f) () = $ac_func;
35623#endif
35624#ifdef __cplusplus
35625}
35626#endif
35627
35628int
35629main ()
35630{
35631return f != $ac_func;
35632 ;
35633 return 0;
35634}
35635_ACEOF
35636rm -f conftest.$ac_objext conftest$ac_exeext
35637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35638 (eval $ac_link) 2>conftest.er1
a848cd7e 35639 ac_status=$?
ac1cb8d3
VS
35640 grep -v '^ *+' conftest.er1 >conftest.err
35641 rm -f conftest.er1
35642 cat conftest.err >&5
a848cd7e
SC
35643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644 (exit $ac_status); } &&
2b850ae1
RR
35645 { ac_try='test -z "$ac_c_werror_flag"
35646 || test ! -s conftest.err'
ac1cb8d3
VS
35647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35648 (eval $ac_try) 2>&5
35649 ac_status=$?
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); }; } &&
35652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35654 (eval $ac_try) 2>&5
35655 ac_status=$?
35656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657 (exit $ac_status); }; }; then
35658 eval "$as_ac_var=yes"
35659else
35660 echo "$as_me: failed program was:" >&5
35661sed 's/^/| /' conftest.$ac_ext >&5
35662
35663eval "$as_ac_var=no"
35664fi
ac1cb8d3
VS
35665rm -f conftest.err conftest.$ac_objext \
35666 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35667fi
35668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35669echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35670if test `eval echo '${'$as_ac_var'}'` = yes; then
35671 cat >>confdefs.h <<_ACEOF
35672#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35673_ACEOF
35674 cat >>confdefs.h <<\_ACEOF
35675#define HAVE_NANOSLEEP 1
35676_ACEOF
35677
35678else
35679
35680 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35681echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35682if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35683 echo $ECHO_N "(cached) $ECHO_C" >&6
35684else
35685 ac_check_lib_save_LIBS=$LIBS
35686LIBS="-lposix4 $LIBS"
35687cat >conftest.$ac_ext <<_ACEOF
35688/* confdefs.h. */
35689_ACEOF
35690cat confdefs.h >>conftest.$ac_ext
35691cat >>conftest.$ac_ext <<_ACEOF
35692/* end confdefs.h. */
35693
35694/* Override any gcc2 internal prototype to avoid an error. */
35695#ifdef __cplusplus
35696extern "C"
35697#endif
35698/* We use char because int might match the return type of a gcc2
35699 builtin and then its argument prototype would still apply. */
35700char nanosleep ();
35701int
35702main ()
35703{
35704nanosleep ();
35705 ;
35706 return 0;
35707}
35708_ACEOF
35709rm -f conftest.$ac_objext conftest$ac_exeext
35710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35711 (eval $ac_link) 2>conftest.er1
a848cd7e 35712 ac_status=$?
ac1cb8d3
VS
35713 grep -v '^ *+' conftest.er1 >conftest.err
35714 rm -f conftest.er1
35715 cat conftest.err >&5
a848cd7e
SC
35716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717 (exit $ac_status); } &&
2b850ae1
RR
35718 { ac_try='test -z "$ac_c_werror_flag"
35719 || test ! -s conftest.err'
ac1cb8d3
VS
35720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35721 (eval $ac_try) 2>&5
35722 ac_status=$?
35723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724 (exit $ac_status); }; } &&
35725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35727 (eval $ac_try) 2>&5
35728 ac_status=$?
35729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 (exit $ac_status); }; }; then
35731 ac_cv_lib_posix4_nanosleep=yes
35732else
35733 echo "$as_me: failed program was:" >&5
35734sed 's/^/| /' conftest.$ac_ext >&5
35735
35736ac_cv_lib_posix4_nanosleep=no
35737fi
ac1cb8d3
VS
35738rm -f conftest.err conftest.$ac_objext \
35739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35740LIBS=$ac_check_lib_save_LIBS
35741fi
35742echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35743echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35744if test $ac_cv_lib_posix4_nanosleep = yes; then
35745
35746 cat >>confdefs.h <<\_ACEOF
35747#define HAVE_NANOSLEEP 1
35748_ACEOF
35749
35750 POSIX4_LINK=" -lposix4"
35751
35752else
35753
35754
35755for ac_func in usleep
35756do
35757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35758echo "$as_me:$LINENO: checking for $ac_func" >&5
35759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35760if eval "test \"\${$as_ac_var+set}\" = set"; then
35761 echo $ECHO_N "(cached) $ECHO_C" >&6
35762else
35763 cat >conftest.$ac_ext <<_ACEOF
35764/* confdefs.h. */
35765_ACEOF
35766cat confdefs.h >>conftest.$ac_ext
35767cat >>conftest.$ac_ext <<_ACEOF
35768/* end confdefs.h. */
ac1cb8d3
VS
35769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35771#define $ac_func innocuous_$ac_func
35772
a848cd7e
SC
35773/* System header to define __stub macros and hopefully few prototypes,
35774 which can conflict with char $ac_func (); below.
35775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35776 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35777
a848cd7e
SC
35778#ifdef __STDC__
35779# include <limits.h>
35780#else
35781# include <assert.h>
35782#endif
ac1cb8d3
VS
35783
35784#undef $ac_func
35785
a848cd7e
SC
35786/* Override any gcc2 internal prototype to avoid an error. */
35787#ifdef __cplusplus
35788extern "C"
35789{
35790#endif
35791/* We use char because int might match the return type of a gcc2
35792 builtin and then its argument prototype would still apply. */
35793char $ac_func ();
35794/* The GNU C library defines this for functions which it implements
35795 to always fail with ENOSYS. Some functions are actually named
35796 something starting with __ and the normal name is an alias. */
35797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35798choke me
35799#else
35800char (*f) () = $ac_func;
35801#endif
35802#ifdef __cplusplus
35803}
35804#endif
35805
35806int
35807main ()
35808{
35809return f != $ac_func;
35810 ;
35811 return 0;
35812}
35813_ACEOF
35814rm -f conftest.$ac_objext conftest$ac_exeext
35815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35816 (eval $ac_link) 2>conftest.er1
a848cd7e 35817 ac_status=$?
ac1cb8d3
VS
35818 grep -v '^ *+' conftest.er1 >conftest.err
35819 rm -f conftest.er1
35820 cat conftest.err >&5
a848cd7e
SC
35821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822 (exit $ac_status); } &&
2b850ae1
RR
35823 { ac_try='test -z "$ac_c_werror_flag"
35824 || test ! -s conftest.err'
ac1cb8d3
VS
35825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35826 (eval $ac_try) 2>&5
35827 ac_status=$?
35828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829 (exit $ac_status); }; } &&
35830 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35832 (eval $ac_try) 2>&5
35833 ac_status=$?
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); }; }; then
35836 eval "$as_ac_var=yes"
35837else
35838 echo "$as_me: failed program was:" >&5
35839sed 's/^/| /' conftest.$ac_ext >&5
35840
35841eval "$as_ac_var=no"
35842fi
ac1cb8d3
VS
35843rm -f conftest.err conftest.$ac_objext \
35844 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35845fi
35846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35848if test `eval echo '${'$as_ac_var'}'` = yes; then
35849 cat >>confdefs.h <<_ACEOF
35850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35851_ACEOF
35852 cat >>confdefs.h <<\_ACEOF
35853#define HAVE_USLEEP 1
35854_ACEOF
35855
35856else
35857 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35858echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35859
35860fi
35861done
35862
35863
35864
35865fi
35866
35867
35868
35869fi
35870done
35871
35872fi
35873
35874
35875
35876for ac_func in uname gethostname
35877do
35878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35879echo "$as_me:$LINENO: checking for $ac_func" >&5
35880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35881if eval "test \"\${$as_ac_var+set}\" = set"; then
35882 echo $ECHO_N "(cached) $ECHO_C" >&6
35883else
35884 cat >conftest.$ac_ext <<_ACEOF
35885/* confdefs.h. */
35886_ACEOF
35887cat confdefs.h >>conftest.$ac_ext
35888cat >>conftest.$ac_ext <<_ACEOF
35889/* end confdefs.h. */
ac1cb8d3
VS
35890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35892#define $ac_func innocuous_$ac_func
35893
a848cd7e
SC
35894/* System header to define __stub macros and hopefully few prototypes,
35895 which can conflict with char $ac_func (); below.
35896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35897 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35898
a848cd7e
SC
35899#ifdef __STDC__
35900# include <limits.h>
35901#else
35902# include <assert.h>
35903#endif
ac1cb8d3
VS
35904
35905#undef $ac_func
35906
a848cd7e
SC
35907/* Override any gcc2 internal prototype to avoid an error. */
35908#ifdef __cplusplus
35909extern "C"
35910{
35911#endif
35912/* We use char because int might match the return type of a gcc2
35913 builtin and then its argument prototype would still apply. */
35914char $ac_func ();
35915/* The GNU C library defines this for functions which it implements
35916 to always fail with ENOSYS. Some functions are actually named
35917 something starting with __ and the normal name is an alias. */
35918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35919choke me
35920#else
35921char (*f) () = $ac_func;
35922#endif
35923#ifdef __cplusplus
35924}
35925#endif
35926
35927int
35928main ()
35929{
35930return f != $ac_func;
35931 ;
35932 return 0;
35933}
35934_ACEOF
35935rm -f conftest.$ac_objext conftest$ac_exeext
35936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35937 (eval $ac_link) 2>conftest.er1
a848cd7e 35938 ac_status=$?
ac1cb8d3
VS
35939 grep -v '^ *+' conftest.er1 >conftest.err
35940 rm -f conftest.er1
35941 cat conftest.err >&5
a848cd7e
SC
35942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35943 (exit $ac_status); } &&
2b850ae1
RR
35944 { ac_try='test -z "$ac_c_werror_flag"
35945 || test ! -s conftest.err'
ac1cb8d3
VS
35946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35947 (eval $ac_try) 2>&5
35948 ac_status=$?
35949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950 (exit $ac_status); }; } &&
35951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35953 (eval $ac_try) 2>&5
35954 ac_status=$?
35955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956 (exit $ac_status); }; }; then
35957 eval "$as_ac_var=yes"
35958else
35959 echo "$as_me: failed program was:" >&5
35960sed 's/^/| /' conftest.$ac_ext >&5
35961
35962eval "$as_ac_var=no"
35963fi
ac1cb8d3
VS
35964rm -f conftest.err conftest.$ac_objext \
35965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35966fi
35967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35969if test `eval echo '${'$as_ac_var'}'` = yes; then
35970 cat >>confdefs.h <<_ACEOF
35971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35972_ACEOF
35973 break
35974fi
35975done
35976
35977
a848cd7e
SC
35978ac_ext=cc
35979ac_cpp='$CXXCPP $CPPFLAGS'
35980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35983
35984
35985
35986for ac_func in strtok_r
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); } &&
2b850ae1
RR
36054 { ac_try='test -z "$ac_cxx_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
36084fi
36085done
36086
36087
36088ac_ext=c
36089ac_cpp='$CPP $CPPFLAGS'
36090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36092ac_compiler_gnu=$ac_cv_c_compiler_gnu
36093
36094
36095INET_LINK=
36096
36097for ac_func in inet_addr
36098do
36099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36100echo "$as_me:$LINENO: checking for $ac_func" >&5
36101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36102if eval "test \"\${$as_ac_var+set}\" = set"; then
36103 echo $ECHO_N "(cached) $ECHO_C" >&6
36104else
36105 cat >conftest.$ac_ext <<_ACEOF
36106/* confdefs.h. */
36107_ACEOF
36108cat confdefs.h >>conftest.$ac_ext
36109cat >>conftest.$ac_ext <<_ACEOF
36110/* end confdefs.h. */
ac1cb8d3
VS
36111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36113#define $ac_func innocuous_$ac_func
36114
a848cd7e
SC
36115/* System header to define __stub macros and hopefully few prototypes,
36116 which can conflict with char $ac_func (); below.
36117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36118 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36119
a848cd7e
SC
36120#ifdef __STDC__
36121# include <limits.h>
36122#else
36123# include <assert.h>
36124#endif
ac1cb8d3
VS
36125
36126#undef $ac_func
36127
a848cd7e
SC
36128/* Override any gcc2 internal prototype to avoid an error. */
36129#ifdef __cplusplus
36130extern "C"
36131{
36132#endif
36133/* We use char because int might match the return type of a gcc2
36134 builtin and then its argument prototype would still apply. */
36135char $ac_func ();
36136/* The GNU C library defines this for functions which it implements
36137 to always fail with ENOSYS. Some functions are actually named
36138 something starting with __ and the normal name is an alias. */
36139#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36140choke me
36141#else
36142char (*f) () = $ac_func;
36143#endif
36144#ifdef __cplusplus
36145}
36146#endif
36147
36148int
36149main ()
36150{
36151return f != $ac_func;
36152 ;
36153 return 0;
36154}
36155_ACEOF
36156rm -f conftest.$ac_objext conftest$ac_exeext
36157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36158 (eval $ac_link) 2>conftest.er1
a848cd7e 36159 ac_status=$?
ac1cb8d3
VS
36160 grep -v '^ *+' conftest.er1 >conftest.err
36161 rm -f conftest.er1
36162 cat conftest.err >&5
a848cd7e
SC
36163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164 (exit $ac_status); } &&
2b850ae1
RR
36165 { ac_try='test -z "$ac_c_werror_flag"
36166 || test ! -s conftest.err'
ac1cb8d3
VS
36167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36168 (eval $ac_try) 2>&5
36169 ac_status=$?
36170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171 (exit $ac_status); }; } &&
36172 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36174 (eval $ac_try) 2>&5
36175 ac_status=$?
36176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177 (exit $ac_status); }; }; then
36178 eval "$as_ac_var=yes"
36179else
36180 echo "$as_me: failed program was:" >&5
36181sed 's/^/| /' conftest.$ac_ext >&5
36182
36183eval "$as_ac_var=no"
36184fi
ac1cb8d3
VS
36185rm -f conftest.err conftest.$ac_objext \
36186 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36187fi
36188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36189echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36190if test `eval echo '${'$as_ac_var'}'` = yes; then
36191 cat >>confdefs.h <<_ACEOF
36192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36193_ACEOF
36194 cat >>confdefs.h <<\_ACEOF
36195#define HAVE_INET_ADDR 1
36196_ACEOF
36197
36198else
36199
36200 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36201echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36202if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36203 echo $ECHO_N "(cached) $ECHO_C" >&6
36204else
36205 ac_check_lib_save_LIBS=$LIBS
36206LIBS="-lnsl $LIBS"
36207cat >conftest.$ac_ext <<_ACEOF
36208/* confdefs.h. */
36209_ACEOF
36210cat confdefs.h >>conftest.$ac_ext
36211cat >>conftest.$ac_ext <<_ACEOF
36212/* end confdefs.h. */
36213
36214/* Override any gcc2 internal prototype to avoid an error. */
36215#ifdef __cplusplus
36216extern "C"
36217#endif
36218/* We use char because int might match the return type of a gcc2
36219 builtin and then its argument prototype would still apply. */
36220char inet_addr ();
36221int
36222main ()
36223{
36224inet_addr ();
36225 ;
36226 return 0;
36227}
36228_ACEOF
36229rm -f conftest.$ac_objext conftest$ac_exeext
36230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36231 (eval $ac_link) 2>conftest.er1
a848cd7e 36232 ac_status=$?
ac1cb8d3
VS
36233 grep -v '^ *+' conftest.er1 >conftest.err
36234 rm -f conftest.er1
36235 cat conftest.err >&5
a848cd7e
SC
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); } &&
2b850ae1
RR
36238 { ac_try='test -z "$ac_c_werror_flag"
36239 || test ! -s conftest.err'
ac1cb8d3
VS
36240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36241 (eval $ac_try) 2>&5
36242 ac_status=$?
36243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244 (exit $ac_status); }; } &&
36245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36247 (eval $ac_try) 2>&5
36248 ac_status=$?
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); }; }; then
36251 ac_cv_lib_nsl_inet_addr=yes
36252else
36253 echo "$as_me: failed program was:" >&5
36254sed 's/^/| /' conftest.$ac_ext >&5
36255
36256ac_cv_lib_nsl_inet_addr=no
36257fi
ac1cb8d3
VS
36258rm -f conftest.err conftest.$ac_objext \
36259 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36260LIBS=$ac_check_lib_save_LIBS
36261fi
36262echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36263echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36264if test $ac_cv_lib_nsl_inet_addr = yes; then
36265 INET_LINK="nsl"
36266else
36267
36268 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36269echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36270if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36271 echo $ECHO_N "(cached) $ECHO_C" >&6
36272else
36273 ac_check_lib_save_LIBS=$LIBS
36274LIBS="-lresolv $LIBS"
36275cat >conftest.$ac_ext <<_ACEOF
36276/* confdefs.h. */
36277_ACEOF
36278cat confdefs.h >>conftest.$ac_ext
36279cat >>conftest.$ac_ext <<_ACEOF
36280/* end confdefs.h. */
36281
36282/* Override any gcc2 internal prototype to avoid an error. */
36283#ifdef __cplusplus
36284extern "C"
36285#endif
36286/* We use char because int might match the return type of a gcc2
36287 builtin and then its argument prototype would still apply. */
36288char inet_addr ();
36289int
36290main ()
36291{
36292inet_addr ();
36293 ;
36294 return 0;
36295}
36296_ACEOF
36297rm -f conftest.$ac_objext conftest$ac_exeext
36298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36299 (eval $ac_link) 2>conftest.er1
a848cd7e 36300 ac_status=$?
ac1cb8d3
VS
36301 grep -v '^ *+' conftest.er1 >conftest.err
36302 rm -f conftest.er1
36303 cat conftest.err >&5
a848cd7e
SC
36304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36305 (exit $ac_status); } &&
2b850ae1
RR
36306 { ac_try='test -z "$ac_c_werror_flag"
36307 || test ! -s conftest.err'
ac1cb8d3
VS
36308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36309 (eval $ac_try) 2>&5
36310 ac_status=$?
36311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312 (exit $ac_status); }; } &&
36313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36315 (eval $ac_try) 2>&5
36316 ac_status=$?
36317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); }; }; then
36319 ac_cv_lib_resolv_inet_addr=yes
36320else
36321 echo "$as_me: failed program was:" >&5
36322sed 's/^/| /' conftest.$ac_ext >&5
36323
36324ac_cv_lib_resolv_inet_addr=no
36325fi
ac1cb8d3
VS
36326rm -f conftest.err conftest.$ac_objext \
36327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36328LIBS=$ac_check_lib_save_LIBS
36329fi
36330echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36331echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36332if test $ac_cv_lib_resolv_inet_addr = yes; then
36333 INET_LINK="resolv"
36334else
36335
36336 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36337echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36338if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36339 echo $ECHO_N "(cached) $ECHO_C" >&6
36340else
36341 ac_check_lib_save_LIBS=$LIBS
36342LIBS="-lsocket $LIBS"
36343cat >conftest.$ac_ext <<_ACEOF
36344/* confdefs.h. */
36345_ACEOF
36346cat confdefs.h >>conftest.$ac_ext
36347cat >>conftest.$ac_ext <<_ACEOF
36348/* end confdefs.h. */
36349
36350/* Override any gcc2 internal prototype to avoid an error. */
36351#ifdef __cplusplus
36352extern "C"
36353#endif
36354/* We use char because int might match the return type of a gcc2
36355 builtin and then its argument prototype would still apply. */
36356char inet_addr ();
36357int
36358main ()
36359{
36360inet_addr ();
36361 ;
36362 return 0;
36363}
36364_ACEOF
36365rm -f conftest.$ac_objext conftest$ac_exeext
36366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36367 (eval $ac_link) 2>conftest.er1
a848cd7e 36368 ac_status=$?
ac1cb8d3
VS
36369 grep -v '^ *+' conftest.er1 >conftest.err
36370 rm -f conftest.er1
36371 cat conftest.err >&5
a848cd7e
SC
36372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36373 (exit $ac_status); } &&
2b850ae1
RR
36374 { ac_try='test -z "$ac_c_werror_flag"
36375 || test ! -s conftest.err'
ac1cb8d3
VS
36376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36377 (eval $ac_try) 2>&5
36378 ac_status=$?
36379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); }; } &&
36381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36383 (eval $ac_try) 2>&5
36384 ac_status=$?
36385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386 (exit $ac_status); }; }; then
36387 ac_cv_lib_socket_inet_addr=yes
36388else
36389 echo "$as_me: failed program was:" >&5
36390sed 's/^/| /' conftest.$ac_ext >&5
36391
36392ac_cv_lib_socket_inet_addr=no
36393fi
ac1cb8d3
VS
36394rm -f conftest.err conftest.$ac_objext \
36395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36396LIBS=$ac_check_lib_save_LIBS
36397fi
36398echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36399echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36400if test $ac_cv_lib_socket_inet_addr = yes; then
36401 INET_LINK="socket"
36402
36403fi
36404
36405
36406
36407fi
36408
36409
36410
36411fi
36412
36413
36414
36415fi
36416done
36417
36418
36419
36420for ac_func in inet_aton
36421do
36422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36423echo "$as_me:$LINENO: checking for $ac_func" >&5
36424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36425if eval "test \"\${$as_ac_var+set}\" = set"; then
36426 echo $ECHO_N "(cached) $ECHO_C" >&6
36427else
36428 cat >conftest.$ac_ext <<_ACEOF
36429/* confdefs.h. */
36430_ACEOF
36431cat confdefs.h >>conftest.$ac_ext
36432cat >>conftest.$ac_ext <<_ACEOF
36433/* end confdefs.h. */
ac1cb8d3
VS
36434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36436#define $ac_func innocuous_$ac_func
36437
a848cd7e
SC
36438/* System header to define __stub macros and hopefully few prototypes,
36439 which can conflict with char $ac_func (); below.
36440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36441 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36442
a848cd7e
SC
36443#ifdef __STDC__
36444# include <limits.h>
36445#else
36446# include <assert.h>
36447#endif
ac1cb8d3
VS
36448
36449#undef $ac_func
36450
a848cd7e
SC
36451/* Override any gcc2 internal prototype to avoid an error. */
36452#ifdef __cplusplus
36453extern "C"
36454{
36455#endif
36456/* We use char because int might match the return type of a gcc2
36457 builtin and then its argument prototype would still apply. */
36458char $ac_func ();
36459/* The GNU C library defines this for functions which it implements
36460 to always fail with ENOSYS. Some functions are actually named
36461 something starting with __ and the normal name is an alias. */
36462#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36463choke me
36464#else
36465char (*f) () = $ac_func;
36466#endif
36467#ifdef __cplusplus
36468}
36469#endif
36470
36471int
36472main ()
36473{
36474return f != $ac_func;
36475 ;
36476 return 0;
36477}
36478_ACEOF
36479rm -f conftest.$ac_objext conftest$ac_exeext
36480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36481 (eval $ac_link) 2>conftest.er1
a848cd7e 36482 ac_status=$?
ac1cb8d3
VS
36483 grep -v '^ *+' conftest.er1 >conftest.err
36484 rm -f conftest.er1
36485 cat conftest.err >&5
a848cd7e
SC
36486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36487 (exit $ac_status); } &&
2b850ae1
RR
36488 { ac_try='test -z "$ac_c_werror_flag"
36489 || test ! -s conftest.err'
ac1cb8d3
VS
36490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36491 (eval $ac_try) 2>&5
36492 ac_status=$?
36493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494 (exit $ac_status); }; } &&
36495 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36497 (eval $ac_try) 2>&5
36498 ac_status=$?
36499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500 (exit $ac_status); }; }; then
36501 eval "$as_ac_var=yes"
36502else
36503 echo "$as_me: failed program was:" >&5
36504sed 's/^/| /' conftest.$ac_ext >&5
36505
36506eval "$as_ac_var=no"
36507fi
ac1cb8d3
VS
36508rm -f conftest.err conftest.$ac_objext \
36509 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36510fi
36511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36512echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36513if test `eval echo '${'$as_ac_var'}'` = yes; then
36514 cat >>confdefs.h <<_ACEOF
36515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36516_ACEOF
36517 cat >>confdefs.h <<\_ACEOF
36518#define HAVE_INET_ATON 1
36519_ACEOF
36520
36521else
36522
36523 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36524echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36525echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36526if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36527 echo $ECHO_N "(cached) $ECHO_C" >&6
36528else
36529 ac_check_lib_save_LIBS=$LIBS
36530LIBS="-l$INET_LINK $LIBS"
36531cat >conftest.$ac_ext <<_ACEOF
36532/* confdefs.h. */
36533_ACEOF
36534cat confdefs.h >>conftest.$ac_ext
36535cat >>conftest.$ac_ext <<_ACEOF
36536/* end confdefs.h. */
36537
36538/* Override any gcc2 internal prototype to avoid an error. */
36539#ifdef __cplusplus
36540extern "C"
36541#endif
36542/* We use char because int might match the return type of a gcc2
36543 builtin and then its argument prototype would still apply. */
36544char inet_aton ();
36545int
36546main ()
36547{
36548inet_aton ();
36549 ;
36550 return 0;
36551}
36552_ACEOF
36553rm -f conftest.$ac_objext conftest$ac_exeext
36554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36555 (eval $ac_link) 2>conftest.er1
a848cd7e 36556 ac_status=$?
ac1cb8d3
VS
36557 grep -v '^ *+' conftest.er1 >conftest.err
36558 rm -f conftest.er1
36559 cat conftest.err >&5
a848cd7e
SC
36560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561 (exit $ac_status); } &&
2b850ae1
RR
36562 { ac_try='test -z "$ac_c_werror_flag"
36563 || test ! -s conftest.err'
ac1cb8d3
VS
36564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36565 (eval $ac_try) 2>&5
36566 ac_status=$?
36567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568 (exit $ac_status); }; } &&
36569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36571 (eval $ac_try) 2>&5
36572 ac_status=$?
36573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574 (exit $ac_status); }; }; then
36575 eval "$as_ac_Lib=yes"
36576else
36577 echo "$as_me: failed program was:" >&5
36578sed 's/^/| /' conftest.$ac_ext >&5
36579
36580eval "$as_ac_Lib=no"
36581fi
ac1cb8d3
VS
36582rm -f conftest.err conftest.$ac_objext \
36583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36584LIBS=$ac_check_lib_save_LIBS
36585fi
36586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36587echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36588if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36589 cat >>confdefs.h <<\_ACEOF
36590#define HAVE_INET_ATON 1
36591_ACEOF
36592
36593fi
36594
36595
36596fi
36597done
36598
36599
36600if test "x$INET_LINK" != "x"; then
36601 cat >>confdefs.h <<\_ACEOF
36602#define HAVE_INET_ADDR 1
36603_ACEOF
36604
36605 INET_LINK=" -l$INET_LINK"
36606fi
36607
36608fi
36609
36610
36611
36612EXTRALIBS_ESD=
36613echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36614echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36615if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36616 echo $ECHO_N "(cached) $ECHO_C" >&6
36617else
36618 ac_check_lib_save_LIBS=$LIBS
36619LIBS="-lesd $LIBS"
36620cat >conftest.$ac_ext <<_ACEOF
36621/* confdefs.h. */
36622_ACEOF
36623cat confdefs.h >>conftest.$ac_ext
36624cat >>conftest.$ac_ext <<_ACEOF
36625/* end confdefs.h. */
36626
36627/* Override any gcc2 internal prototype to avoid an error. */
36628#ifdef __cplusplus
36629extern "C"
36630#endif
36631/* We use char because int might match the return type of a gcc2
36632 builtin and then its argument prototype would still apply. */
36633char esd_close ();
36634int
36635main ()
36636{
36637esd_close ();
36638 ;
36639 return 0;
36640}
36641_ACEOF
36642rm -f conftest.$ac_objext conftest$ac_exeext
36643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36644 (eval $ac_link) 2>conftest.er1
a848cd7e 36645 ac_status=$?
ac1cb8d3
VS
36646 grep -v '^ *+' conftest.er1 >conftest.err
36647 rm -f conftest.er1
36648 cat conftest.err >&5
a848cd7e
SC
36649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650 (exit $ac_status); } &&
2b850ae1
RR
36651 { ac_try='test -z "$ac_c_werror_flag"
36652 || test ! -s conftest.err'
ac1cb8d3
VS
36653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36654 (eval $ac_try) 2>&5
36655 ac_status=$?
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); }; } &&
36658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660 (eval $ac_try) 2>&5
36661 ac_status=$?
36662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 (exit $ac_status); }; }; then
36664 ac_cv_lib_esd_esd_close=yes
36665else
36666 echo "$as_me: failed program was:" >&5
36667sed 's/^/| /' conftest.$ac_ext >&5
36668
36669ac_cv_lib_esd_esd_close=no
36670fi
ac1cb8d3
VS
36671rm -f conftest.err conftest.$ac_objext \
36672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36673LIBS=$ac_check_lib_save_LIBS
36674fi
36675echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36676echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36677if test $ac_cv_lib_esd_esd_close = yes; then
36678
36679
36680for ac_header in esd.h
36681do
36682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36683if eval "test \"\${$as_ac_Header+set}\" = set"; then
36684 echo "$as_me:$LINENO: checking for $ac_header" >&5
36685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36686if eval "test \"\${$as_ac_Header+set}\" = set"; then
36687 echo $ECHO_N "(cached) $ECHO_C" >&6
36688fi
36689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36691else
36692 # Is the header compilable?
36693echo "$as_me:$LINENO: checking $ac_header usability" >&5
36694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36695cat >conftest.$ac_ext <<_ACEOF
36696/* confdefs.h. */
36697_ACEOF
36698cat confdefs.h >>conftest.$ac_ext
36699cat >>conftest.$ac_ext <<_ACEOF
36700/* end confdefs.h. */
36701$ac_includes_default
36702#include <$ac_header>
36703_ACEOF
36704rm -f conftest.$ac_objext
36705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36706 (eval $ac_compile) 2>conftest.er1
a848cd7e 36707 ac_status=$?
ac1cb8d3
VS
36708 grep -v '^ *+' conftest.er1 >conftest.err
36709 rm -f conftest.er1
36710 cat conftest.err >&5
a848cd7e
SC
36711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36712 (exit $ac_status); } &&
2b850ae1
RR
36713 { ac_try='test -z "$ac_c_werror_flag"
36714 || test ! -s conftest.err'
ac1cb8d3
VS
36715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36716 (eval $ac_try) 2>&5
36717 ac_status=$?
36718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719 (exit $ac_status); }; } &&
36720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36722 (eval $ac_try) 2>&5
36723 ac_status=$?
36724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725 (exit $ac_status); }; }; then
36726 ac_header_compiler=yes
36727else
36728 echo "$as_me: failed program was:" >&5
36729sed 's/^/| /' conftest.$ac_ext >&5
36730
36731ac_header_compiler=no
36732fi
ac1cb8d3 36733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36735echo "${ECHO_T}$ac_header_compiler" >&6
36736
36737# Is the header present?
36738echo "$as_me:$LINENO: checking $ac_header presence" >&5
36739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36740cat >conftest.$ac_ext <<_ACEOF
36741/* confdefs.h. */
36742_ACEOF
36743cat confdefs.h >>conftest.$ac_ext
36744cat >>conftest.$ac_ext <<_ACEOF
36745/* end confdefs.h. */
36746#include <$ac_header>
36747_ACEOF
36748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36750 ac_status=$?
36751 grep -v '^ *+' conftest.er1 >conftest.err
36752 rm -f conftest.er1
36753 cat conftest.err >&5
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); } >/dev/null; then
36756 if test -s conftest.err; then
36757 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36759 else
36760 ac_cpp_err=
36761 fi
36762else
36763 ac_cpp_err=yes
36764fi
36765if test -z "$ac_cpp_err"; then
36766 ac_header_preproc=yes
36767else
36768 echo "$as_me: failed program was:" >&5
36769sed 's/^/| /' conftest.$ac_ext >&5
36770
36771 ac_header_preproc=no
36772fi
36773rm -f conftest.err conftest.$ac_ext
36774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36775echo "${ECHO_T}$ac_header_preproc" >&6
36776
36777# So? What about this header?
ac1cb8d3
VS
36778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36779 yes:no: )
a848cd7e
SC
36780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36784 ac_header_preproc=yes
a848cd7e 36785 ;;
ac1cb8d3 36786 no:yes:* )
a848cd7e
SC
36787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36790echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36794echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36799 (
36800 cat <<\_ASBOX
ac1cb8d3
VS
36801## ----------------------------------------- ##
36802## Report this to wx-dev@lists.wxwidgets.org ##
36803## ----------------------------------------- ##
a848cd7e
SC
36804_ASBOX
36805 ) |
36806 sed "s/^/$as_me: WARNING: /" >&2
36807 ;;
36808esac
36809echo "$as_me:$LINENO: checking for $ac_header" >&5
36810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36811if eval "test \"\${$as_ac_Header+set}\" = set"; then
36812 echo $ECHO_N "(cached) $ECHO_C" >&6
36813else
ac1cb8d3 36814 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36815fi
36816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36818
36819fi
36820if test `eval echo '${'$as_ac_Header'}'` = yes; then
36821 cat >>confdefs.h <<_ACEOF
36822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36823_ACEOF
36824
36825 EXTRALIBS_ESD="-lesd"
36826
36827fi
36828
36829done
36830
36831
36832fi
36833
36834
36835
36836echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36837echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36838cat >conftest.$ac_ext <<_ACEOF
36839/* confdefs.h. */
36840_ACEOF
36841cat confdefs.h >>conftest.$ac_ext
36842cat >>conftest.$ac_ext <<_ACEOF
36843/* end confdefs.h. */
36844#ifdef __linux__
36845 #include <linux/cdrom.h>
36846 #else
36847 /* For Solaris */
36848 #include <sys/cdio.h>
36849 #endif
36850
36851int
36852main ()
36853{
36854struct cdrom_tocentry entry, old_entry;
36855 ;
36856 return 0;
36857}
36858_ACEOF
36859rm -f conftest.$ac_objext
36860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36861 (eval $ac_compile) 2>conftest.er1
a848cd7e 36862 ac_status=$?
ac1cb8d3
VS
36863 grep -v '^ *+' conftest.er1 >conftest.err
36864 rm -f conftest.er1
36865 cat conftest.err >&5
a848cd7e
SC
36866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867 (exit $ac_status); } &&
2b850ae1
RR
36868 { ac_try='test -z "$ac_c_werror_flag"
36869 || test ! -s conftest.err'
ac1cb8d3
VS
36870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36871 (eval $ac_try) 2>&5
36872 ac_status=$?
36873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874 (exit $ac_status); }; } &&
36875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36877 (eval $ac_try) 2>&5
36878 ac_status=$?
36879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880 (exit $ac_status); }; }; then
36881 echo "$as_me:$LINENO: result: yes" >&5
36882echo "${ECHO_T}yes" >&6
36883 cat >>confdefs.h <<\_ACEOF
36884#define HAVE_KNOWN_CDROM_INTERFACE 1
36885_ACEOF
36886
36887else
36888 echo "$as_me: failed program was:" >&5
36889sed 's/^/| /' conftest.$ac_ext >&5
36890
36891echo "$as_me:$LINENO: result: no" >&5
36892echo "${ECHO_T}no" >&6
36893fi
ac1cb8d3 36894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36895
36896
36897cat >confcache <<\_ACEOF
36898# This file is a shell script that caches the results of configure
36899# tests run on this system so they can be shared between configure
36900# scripts and configure runs, see configure's option --config-cache.
36901# It is not useful on other systems. If it contains results you don't
36902# want to keep, you may remove or edit it.
36903#
36904# config.status only pays attention to the cache file if you give it
36905# the --recheck option to rerun configure.
36906#
36907# `ac_cv_env_foo' variables (set or unset) will be overridden when
36908# loading this file, other *unset* `ac_cv_foo' will be assigned the
36909# following values.
36910
36911_ACEOF
36912
36913# The following way of writing the cache mishandles newlines in values,
36914# but we know of no workaround that is simple, portable, and efficient.
36915# So, don't put newlines in cache variables' values.
36916# Ultrix sh set writes to stderr and can't be redirected directly,
36917# and sets the high bit in the cache file unless we assign to the vars.
36918{
36919 (set) 2>&1 |
36920 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36921 *ac_space=\ *)
36922 # `set' does not quote correctly, so add quotes (double-quote
36923 # substitution turns \\\\ into \\, and sed turns \\ into \).
36924 sed -n \
ac1cb8d3
VS
36925 "s/'/'\\\\''/g;
36926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36927 ;;
36928 *)
36929 # `set' quotes correctly as required by POSIX, so do not add quotes.
36930 sed -n \
ac1cb8d3 36931 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36932 ;;
36933 esac;
36934} |
36935 sed '
36936 t clear
36937 : clear
36938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36939 t end
36940 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36941 : end' >>confcache
36942if diff $cache_file confcache >/dev/null 2>&1; then :; else
36943 if test -w $cache_file; then
36944 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36945 cat confcache >$cache_file
36946 else
36947 echo "not updating unwritable cache $cache_file"
36948 fi
36949fi
36950rm -f confcache
36951
36952
a848cd7e
SC
36953if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36954
36955
36956 THREADS_LINK=
36957 THREADS_CFLAGS=
36958
36959 if test "$wxUSE_THREADS" = "yes" ; then
36960 if test "$USE_BEOS" = 1; then
36961 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36962echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36963 wxUSE_THREADS="no"
36964 fi
36965 fi
36966
36967 if test "$wxUSE_THREADS" = "yes" ; then
36968
36969
36970 THREAD_OPTS="-pthread"
36971 case "${host}" in
36972 *-*-solaris2* | *-*-sunos4* )
36973 if test "x$GCC" = "xyes"; then
36974 THREAD_OPTS="-pthreads $THREAD_OPTS"
36975 else
36976 THREAD_OPTS="-mt $THREAD_OPTS"
36977 fi
36978 ;;
36979 *-*-freebsd*)
36980 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36981 ;;
36982 *-*-darwin* | *-*-cygwin* )
36983 THREAD_OPTS=""
36984 ;;
36985 *-*-aix*)
36986 THREAD_OPTS="pthreads"
36987 ;;
36988 *-hp-hpux* )
00421666
MW
36989 if test "x$GCC" = "xyes"; then
36990 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36991 THREAD_OPTS=""
36992 else
0093c2fc 36993 THREAD_OPTS="-mt"
a848cd7e
SC
36994 fi
36995 ;;
36996
36997 *-*-irix* )
36998 if test "x$GCC" = "xyes"; then
36999 THREAD_OPTS=""
37000 fi
37001 ;;
37002
37003 *-*-*UnixWare*)
37004 if test "x$GCC" != "xyes"; then
37005 THREAD_OPTS="-Ethread"
37006 fi
37007 ;;
37008 esac
37009
37010 THREAD_OPTS="$THREAD_OPTS pthread none"
37011
37012 THREADS_OK=no
37013 for flag in $THREAD_OPTS; do
37014 case $flag in
37015 none)
37016 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37017echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37018 ;;
37019
37020 -*)
37021 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37022echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
37023 THREADS_CFLAGS="$flag"
37024 ;;
37025
37026 *)
37027 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37028echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37029 THREADS_LINK="-l$flag"
37030 ;;
37031 esac
37032
37033 save_LIBS="$LIBS"
37034 save_CFLAGS="$CFLAGS"
37035 LIBS="$THREADS_LINK $LIBS"
37036 CFLAGS="$THREADS_CFLAGS $CFLAGS"
37037
37038 cat >conftest.$ac_ext <<_ACEOF
37039/* confdefs.h. */
37040_ACEOF
37041cat confdefs.h >>conftest.$ac_ext
37042cat >>conftest.$ac_ext <<_ACEOF
37043/* end confdefs.h. */
37044#include <pthread.h>
37045int
37046main ()
37047{
37048pthread_create(0,0,0,0);
37049 ;
37050 return 0;
37051}
37052_ACEOF
37053rm -f conftest.$ac_objext conftest$ac_exeext
37054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37055 (eval $ac_link) 2>conftest.er1
a848cd7e 37056 ac_status=$?
ac1cb8d3
VS
37057 grep -v '^ *+' conftest.er1 >conftest.err
37058 rm -f conftest.er1
37059 cat conftest.err >&5
a848cd7e
SC
37060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061 (exit $ac_status); } &&
2b850ae1
RR
37062 { ac_try='test -z "$ac_c_werror_flag"
37063 || test ! -s conftest.err'
ac1cb8d3
VS
37064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37065 (eval $ac_try) 2>&5
37066 ac_status=$?
37067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37068 (exit $ac_status); }; } &&
37069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37071 (eval $ac_try) 2>&5
37072 ac_status=$?
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); }; }; then
37075 THREADS_OK=yes
37076else
37077 echo "$as_me: failed program was:" >&5
37078sed 's/^/| /' conftest.$ac_ext >&5
37079
37080fi
ac1cb8d3
VS
37081rm -f conftest.err conftest.$ac_objext \
37082 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37083
37084 LIBS="$save_LIBS"
37085 CFLAGS="$save_CFLAGS"
37086
37087 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37088echo "${ECHO_T}$THREADS_OK" >&6
37089 if test "x$THREADS_OK" = "xyes"; then
37090 break;
37091 fi
37092
37093 THREADS_LINK=""
37094 THREADS_CFLAGS=""
37095 done
37096
37097 if test "x$THREADS_OK" != "xyes"; then
37098 wxUSE_THREADS=no
37099 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37100echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37101 else
37102 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
37103 LIBS="$THREADS_LINK $LIBS"
37104
37105 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37106echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37107 flag=no
37108 case "${host}" in
37109 *-aix*)
37110 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37111 flag="-D_THREAD_SAFE"
37112 ;;
37113 *-freebsd*)
37114 flag="-D_THREAD_SAFE"
37115 ;;
37116 *-hp-hpux* )
37117 flag="-D_REENTRANT"
37118 if test "x$GCC" != "xyes"; then
37119 flag="$flag -D_RWSTD_MULTI_THREAD"
37120 fi
37121 ;;
37122 *solaris* | alpha*-osf*)
37123 flag="-D_REENTRANT"
37124 ;;
37125 esac
37126 echo "$as_me:$LINENO: result: ${flag}" >&5
37127echo "${ECHO_T}${flag}" >&6
37128 if test "x$flag" != xno; then
37129 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
37130 fi
37131
5ff751d6 37132 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
37133 fi
37134 fi
37135
37136 if test "$wxUSE_THREADS" = "yes" ; then
37137
37138for ac_func in thr_setconcurrency
37139do
37140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37141echo "$as_me:$LINENO: checking for $ac_func" >&5
37142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37143if eval "test \"\${$as_ac_var+set}\" = set"; then
37144 echo $ECHO_N "(cached) $ECHO_C" >&6
37145else
37146 cat >conftest.$ac_ext <<_ACEOF
37147/* confdefs.h. */
37148_ACEOF
37149cat confdefs.h >>conftest.$ac_ext
37150cat >>conftest.$ac_ext <<_ACEOF
37151/* end confdefs.h. */
ac1cb8d3
VS
37152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37154#define $ac_func innocuous_$ac_func
37155
a848cd7e
SC
37156/* System header to define __stub macros and hopefully few prototypes,
37157 which can conflict with char $ac_func (); below.
37158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37159 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37160
a848cd7e
SC
37161#ifdef __STDC__
37162# include <limits.h>
37163#else
37164# include <assert.h>
37165#endif
ac1cb8d3
VS
37166
37167#undef $ac_func
37168
a848cd7e
SC
37169/* Override any gcc2 internal prototype to avoid an error. */
37170#ifdef __cplusplus
37171extern "C"
37172{
37173#endif
37174/* We use char because int might match the return type of a gcc2
37175 builtin and then its argument prototype would still apply. */
37176char $ac_func ();
37177/* The GNU C library defines this for functions which it implements
37178 to always fail with ENOSYS. Some functions are actually named
37179 something starting with __ and the normal name is an alias. */
37180#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37181choke me
37182#else
37183char (*f) () = $ac_func;
37184#endif
37185#ifdef __cplusplus
37186}
37187#endif
37188
37189int
37190main ()
37191{
37192return f != $ac_func;
37193 ;
37194 return 0;
37195}
37196_ACEOF
37197rm -f conftest.$ac_objext conftest$ac_exeext
37198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37199 (eval $ac_link) 2>conftest.er1
a848cd7e 37200 ac_status=$?
ac1cb8d3
VS
37201 grep -v '^ *+' conftest.er1 >conftest.err
37202 rm -f conftest.er1
37203 cat conftest.err >&5
a848cd7e
SC
37204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); } &&
2b850ae1
RR
37206 { ac_try='test -z "$ac_c_werror_flag"
37207 || test ! -s conftest.err'
ac1cb8d3
VS
37208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37209 (eval $ac_try) 2>&5
37210 ac_status=$?
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); }; } &&
37213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215 (eval $ac_try) 2>&5
37216 ac_status=$?
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); }; }; then
37219 eval "$as_ac_var=yes"
37220else
37221 echo "$as_me: failed program was:" >&5
37222sed 's/^/| /' conftest.$ac_ext >&5
37223
37224eval "$as_ac_var=no"
37225fi
ac1cb8d3
VS
37226rm -f conftest.err conftest.$ac_objext \
37227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37228fi
37229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37231if test `eval echo '${'$as_ac_var'}'` = yes; then
37232 cat >>confdefs.h <<_ACEOF
37233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37234_ACEOF
37235
37236fi
37237done
37238
37239
6ebeb4c7
VZ
37240 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37241echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37242if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37243 echo $ECHO_N "(cached) $ECHO_C" >&6
37244else
37245
37246 cat >conftest.$ac_ext <<_ACEOF
37247/* confdefs.h. */
37248_ACEOF
37249cat confdefs.h >>conftest.$ac_ext
37250cat >>conftest.$ac_ext <<_ACEOF
37251/* end confdefs.h. */
37252#include <pthread.h>
37253 void ThreadCleanupFunc(void *p);
37254
37255int
37256main ()
37257{
37258
37259 void *p;
37260 pthread_cleanup_push(ThreadCleanupFunc, p);
37261 pthread_cleanup_pop(0);
37262
37263 ;
37264 return 0;
37265}
37266_ACEOF
37267rm -f conftest.$ac_objext
37268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37269 (eval $ac_compile) 2>conftest.er1
37270 ac_status=$?
37271 grep -v '^ *+' conftest.er1 >conftest.err
37272 rm -f conftest.er1
37273 cat conftest.err >&5
37274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37275 (exit $ac_status); } &&
2b850ae1
RR
37276 { ac_try='test -z "$ac_c_werror_flag"
37277 || test ! -s conftest.err'
6ebeb4c7
VZ
37278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37279 (eval $ac_try) 2>&5
37280 ac_status=$?
37281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37282 (exit $ac_status); }; } &&
37283 { ac_try='test -s conftest.$ac_objext'
37284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37285 (eval $ac_try) 2>&5
37286 ac_status=$?
37287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288 (exit $ac_status); }; }; then
37289
37290 wx_cv_func_pthread_cleanup=yes
37291
37292else
37293 echo "$as_me: failed program was:" >&5
37294sed 's/^/| /' conftest.$ac_ext >&5
37295
37296
37297 wx_cv_func_pthread_cleanup=no
37298
37299
37300fi
37301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37302
37303fi
37304echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37305echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37306 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37307 cat >>confdefs.h <<\_ACEOF
37308#define wxHAVE_PTHREAD_CLEANUP 1
37309_ACEOF
37310
37311 fi
37312
a848cd7e
SC
37313
37314for ac_header in sched.h
37315do
37316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37317if eval "test \"\${$as_ac_Header+set}\" = set"; then
37318 echo "$as_me:$LINENO: checking for $ac_header" >&5
37319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37320if eval "test \"\${$as_ac_Header+set}\" = set"; then
37321 echo $ECHO_N "(cached) $ECHO_C" >&6
37322fi
37323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37325else
37326 # Is the header compilable?
37327echo "$as_me:$LINENO: checking $ac_header usability" >&5
37328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37329cat >conftest.$ac_ext <<_ACEOF
37330/* confdefs.h. */
37331_ACEOF
37332cat confdefs.h >>conftest.$ac_ext
37333cat >>conftest.$ac_ext <<_ACEOF
37334/* end confdefs.h. */
37335$ac_includes_default
37336#include <$ac_header>
37337_ACEOF
37338rm -f conftest.$ac_objext
37339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37340 (eval $ac_compile) 2>conftest.er1
a848cd7e 37341 ac_status=$?
ac1cb8d3
VS
37342 grep -v '^ *+' conftest.er1 >conftest.err
37343 rm -f conftest.er1
37344 cat conftest.err >&5
a848cd7e
SC
37345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346 (exit $ac_status); } &&
2b850ae1
RR
37347 { ac_try='test -z "$ac_c_werror_flag"
37348 || test ! -s conftest.err'
ac1cb8d3
VS
37349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350 (eval $ac_try) 2>&5
37351 ac_status=$?
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); }; } &&
37354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37356 (eval $ac_try) 2>&5
37357 ac_status=$?
37358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37359 (exit $ac_status); }; }; then
37360 ac_header_compiler=yes
37361else
37362 echo "$as_me: failed program was:" >&5
37363sed 's/^/| /' conftest.$ac_ext >&5
37364
37365ac_header_compiler=no
37366fi
ac1cb8d3 37367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37368echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37369echo "${ECHO_T}$ac_header_compiler" >&6
37370
37371# Is the header present?
37372echo "$as_me:$LINENO: checking $ac_header presence" >&5
37373echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37374cat >conftest.$ac_ext <<_ACEOF
37375/* confdefs.h. */
37376_ACEOF
37377cat confdefs.h >>conftest.$ac_ext
37378cat >>conftest.$ac_ext <<_ACEOF
37379/* end confdefs.h. */
37380#include <$ac_header>
37381_ACEOF
37382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37384 ac_status=$?
37385 grep -v '^ *+' conftest.er1 >conftest.err
37386 rm -f conftest.er1
37387 cat conftest.err >&5
37388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389 (exit $ac_status); } >/dev/null; then
37390 if test -s conftest.err; then
37391 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37393 else
37394 ac_cpp_err=
37395 fi
37396else
37397 ac_cpp_err=yes
37398fi
37399if test -z "$ac_cpp_err"; then
37400 ac_header_preproc=yes
37401else
37402 echo "$as_me: failed program was:" >&5
37403sed 's/^/| /' conftest.$ac_ext >&5
37404
37405 ac_header_preproc=no
37406fi
37407rm -f conftest.err conftest.$ac_ext
37408echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37409echo "${ECHO_T}$ac_header_preproc" >&6
37410
37411# So? What about this header?
ac1cb8d3
VS
37412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37413 yes:no: )
a848cd7e
SC
37414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37418 ac_header_preproc=yes
a848cd7e 37419 ;;
ac1cb8d3 37420 no:yes:* )
a848cd7e
SC
37421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37433 (
37434 cat <<\_ASBOX
ac1cb8d3
VS
37435## ----------------------------------------- ##
37436## Report this to wx-dev@lists.wxwidgets.org ##
37437## ----------------------------------------- ##
a848cd7e
SC
37438_ASBOX
37439 ) |
37440 sed "s/^/$as_me: WARNING: /" >&2
37441 ;;
37442esac
37443echo "$as_me:$LINENO: checking for $ac_header" >&5
37444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37445if eval "test \"\${$as_ac_Header+set}\" = set"; then
37446 echo $ECHO_N "(cached) $ECHO_C" >&6
37447else
ac1cb8d3 37448 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37449fi
37450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37452
37453fi
37454if test `eval echo '${'$as_ac_Header'}'` = yes; then
37455 cat >>confdefs.h <<_ACEOF
37456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37457_ACEOF
37458
37459fi
37460
37461done
37462
37463 if test "$ac_cv_header_sched_h" = "yes"; then
37464 echo "$as_me:$LINENO: checking for sched_yield" >&5
37465echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37466if test "${ac_cv_func_sched_yield+set}" = set; then
37467 echo $ECHO_N "(cached) $ECHO_C" >&6
37468else
37469 cat >conftest.$ac_ext <<_ACEOF
37470/* confdefs.h. */
37471_ACEOF
37472cat confdefs.h >>conftest.$ac_ext
37473cat >>conftest.$ac_ext <<_ACEOF
37474/* end confdefs.h. */
ac1cb8d3
VS
37475/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37477#define sched_yield innocuous_sched_yield
37478
a848cd7e
SC
37479/* System header to define __stub macros and hopefully few prototypes,
37480 which can conflict with char sched_yield (); below.
37481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37482 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37483
a848cd7e
SC
37484#ifdef __STDC__
37485# include <limits.h>
37486#else
37487# include <assert.h>
37488#endif
ac1cb8d3
VS
37489
37490#undef sched_yield
37491
a848cd7e
SC
37492/* Override any gcc2 internal prototype to avoid an error. */
37493#ifdef __cplusplus
37494extern "C"
37495{
37496#endif
37497/* We use char because int might match the return type of a gcc2
37498 builtin and then its argument prototype would still apply. */
37499char sched_yield ();
37500/* The GNU C library defines this for functions which it implements
37501 to always fail with ENOSYS. Some functions are actually named
37502 something starting with __ and the normal name is an alias. */
37503#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37504choke me
37505#else
37506char (*f) () = sched_yield;
37507#endif
37508#ifdef __cplusplus
37509}
37510#endif
37511
37512int
37513main ()
37514{
37515return f != sched_yield;
37516 ;
37517 return 0;
37518}
37519_ACEOF
37520rm -f conftest.$ac_objext conftest$ac_exeext
37521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37522 (eval $ac_link) 2>conftest.er1
a848cd7e 37523 ac_status=$?
ac1cb8d3
VS
37524 grep -v '^ *+' conftest.er1 >conftest.err
37525 rm -f conftest.er1
37526 cat conftest.err >&5
a848cd7e
SC
37527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37528 (exit $ac_status); } &&
2b850ae1
RR
37529 { ac_try='test -z "$ac_c_werror_flag"
37530 || test ! -s conftest.err'
ac1cb8d3
VS
37531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37532 (eval $ac_try) 2>&5
37533 ac_status=$?
37534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37535 (exit $ac_status); }; } &&
37536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37538 (eval $ac_try) 2>&5
37539 ac_status=$?
37540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541 (exit $ac_status); }; }; then
37542 ac_cv_func_sched_yield=yes
37543else
37544 echo "$as_me: failed program was:" >&5
37545sed 's/^/| /' conftest.$ac_ext >&5
37546
37547ac_cv_func_sched_yield=no
37548fi
ac1cb8d3
VS
37549rm -f conftest.err conftest.$ac_objext \
37550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37551fi
37552echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37553echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37554if test $ac_cv_func_sched_yield = yes; then
37555 cat >>confdefs.h <<\_ACEOF
37556#define HAVE_SCHED_YIELD 1
37557_ACEOF
37558
37559else
37560
37561 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37562echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37563if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37564 echo $ECHO_N "(cached) $ECHO_C" >&6
37565else
37566 ac_check_lib_save_LIBS=$LIBS
37567LIBS="-lposix4 $LIBS"
37568cat >conftest.$ac_ext <<_ACEOF
37569/* confdefs.h. */
37570_ACEOF
37571cat confdefs.h >>conftest.$ac_ext
37572cat >>conftest.$ac_ext <<_ACEOF
37573/* end confdefs.h. */
37574
37575/* Override any gcc2 internal prototype to avoid an error. */
37576#ifdef __cplusplus
37577extern "C"
37578#endif
37579/* We use char because int might match the return type of a gcc2
37580 builtin and then its argument prototype would still apply. */
37581char sched_yield ();
37582int
37583main ()
37584{
37585sched_yield ();
37586 ;
37587 return 0;
37588}
37589_ACEOF
37590rm -f conftest.$ac_objext conftest$ac_exeext
37591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37592 (eval $ac_link) 2>conftest.er1
a848cd7e 37593 ac_status=$?
ac1cb8d3
VS
37594 grep -v '^ *+' conftest.er1 >conftest.err
37595 rm -f conftest.er1
37596 cat conftest.err >&5
a848cd7e
SC
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); } &&
2b850ae1
RR
37599 { ac_try='test -z "$ac_c_werror_flag"
37600 || test ! -s conftest.err'
ac1cb8d3
VS
37601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37602 (eval $ac_try) 2>&5
37603 ac_status=$?
37604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605 (exit $ac_status); }; } &&
37606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37608 (eval $ac_try) 2>&5
37609 ac_status=$?
37610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); }; }; then
37612 ac_cv_lib_posix4_sched_yield=yes
37613else
37614 echo "$as_me: failed program was:" >&5
37615sed 's/^/| /' conftest.$ac_ext >&5
37616
37617ac_cv_lib_posix4_sched_yield=no
37618fi
ac1cb8d3
VS
37619rm -f conftest.err conftest.$ac_objext \
37620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37621LIBS=$ac_check_lib_save_LIBS
37622fi
37623echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37624echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37625if test $ac_cv_lib_posix4_sched_yield = yes; then
37626 cat >>confdefs.h <<\_ACEOF
37627#define HAVE_SCHED_YIELD 1
37628_ACEOF
37629 POSIX4_LINK=" -lposix4"
37630else
37631 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37632echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37633
37634fi
37635
37636
37637
37638fi
37639
37640 fi
37641
37642 HAVE_PRIOR_FUNCS=0
37643 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37644echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37645if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37646 echo $ECHO_N "(cached) $ECHO_C" >&6
37647else
37648 cat >conftest.$ac_ext <<_ACEOF
37649/* confdefs.h. */
37650_ACEOF
37651cat confdefs.h >>conftest.$ac_ext
37652cat >>conftest.$ac_ext <<_ACEOF
37653/* end confdefs.h. */
ac1cb8d3
VS
37654/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37656#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37657
a848cd7e
SC
37658/* System header to define __stub macros and hopefully few prototypes,
37659 which can conflict with char pthread_attr_getschedpolicy (); below.
37660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37661 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37662
a848cd7e
SC
37663#ifdef __STDC__
37664# include <limits.h>
37665#else
37666# include <assert.h>
37667#endif
ac1cb8d3
VS
37668
37669#undef pthread_attr_getschedpolicy
37670
a848cd7e
SC
37671/* Override any gcc2 internal prototype to avoid an error. */
37672#ifdef __cplusplus
37673extern "C"
37674{
37675#endif
37676/* We use char because int might match the return type of a gcc2
37677 builtin and then its argument prototype would still apply. */
37678char pthread_attr_getschedpolicy ();
37679/* The GNU C library defines this for functions which it implements
37680 to always fail with ENOSYS. Some functions are actually named
37681 something starting with __ and the normal name is an alias. */
37682#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37683choke me
37684#else
37685char (*f) () = pthread_attr_getschedpolicy;
37686#endif
37687#ifdef __cplusplus
37688}
37689#endif
37690
37691int
37692main ()
37693{
37694return f != pthread_attr_getschedpolicy;
37695 ;
37696 return 0;
37697}
37698_ACEOF
37699rm -f conftest.$ac_objext conftest$ac_exeext
37700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37701 (eval $ac_link) 2>conftest.er1
a848cd7e 37702 ac_status=$?
ac1cb8d3
VS
37703 grep -v '^ *+' conftest.er1 >conftest.err
37704 rm -f conftest.er1
37705 cat conftest.err >&5
a848cd7e
SC
37706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37707 (exit $ac_status); } &&
2b850ae1
RR
37708 { ac_try='test -z "$ac_c_werror_flag"
37709 || test ! -s conftest.err'
ac1cb8d3
VS
37710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37711 (eval $ac_try) 2>&5
37712 ac_status=$?
37713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37714 (exit $ac_status); }; } &&
37715 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37717 (eval $ac_try) 2>&5
37718 ac_status=$?
37719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720 (exit $ac_status); }; }; then
37721 ac_cv_func_pthread_attr_getschedpolicy=yes
37722else
37723 echo "$as_me: failed program was:" >&5
37724sed 's/^/| /' conftest.$ac_ext >&5
37725
37726ac_cv_func_pthread_attr_getschedpolicy=no
37727fi
ac1cb8d3
VS
37728rm -f conftest.err conftest.$ac_objext \
37729 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37730fi
37731echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37732echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37733if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37734 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37735echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37736if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37737 echo $ECHO_N "(cached) $ECHO_C" >&6
37738else
37739 cat >conftest.$ac_ext <<_ACEOF
37740/* confdefs.h. */
37741_ACEOF
37742cat confdefs.h >>conftest.$ac_ext
37743cat >>conftest.$ac_ext <<_ACEOF
37744/* end confdefs.h. */
ac1cb8d3
VS
37745/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37747#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37748
a848cd7e
SC
37749/* System header to define __stub macros and hopefully few prototypes,
37750 which can conflict with char pthread_attr_setschedparam (); below.
37751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37752 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37753
a848cd7e
SC
37754#ifdef __STDC__
37755# include <limits.h>
37756#else
37757# include <assert.h>
37758#endif
ac1cb8d3
VS
37759
37760#undef pthread_attr_setschedparam
37761
a848cd7e
SC
37762/* Override any gcc2 internal prototype to avoid an error. */
37763#ifdef __cplusplus
37764extern "C"
37765{
37766#endif
37767/* We use char because int might match the return type of a gcc2
37768 builtin and then its argument prototype would still apply. */
37769char pthread_attr_setschedparam ();
37770/* The GNU C library defines this for functions which it implements
37771 to always fail with ENOSYS. Some functions are actually named
37772 something starting with __ and the normal name is an alias. */
37773#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37774choke me
37775#else
37776char (*f) () = pthread_attr_setschedparam;
37777#endif
37778#ifdef __cplusplus
37779}
37780#endif
37781
37782int
37783main ()
37784{
37785return f != pthread_attr_setschedparam;
37786 ;
37787 return 0;
37788}
37789_ACEOF
37790rm -f conftest.$ac_objext conftest$ac_exeext
37791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37792 (eval $ac_link) 2>conftest.er1
a848cd7e 37793 ac_status=$?
ac1cb8d3
VS
37794 grep -v '^ *+' conftest.er1 >conftest.err
37795 rm -f conftest.er1
37796 cat conftest.err >&5
a848cd7e
SC
37797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798 (exit $ac_status); } &&
2b850ae1
RR
37799 { ac_try='test -z "$ac_c_werror_flag"
37800 || test ! -s conftest.err'
ac1cb8d3
VS
37801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37802 (eval $ac_try) 2>&5
37803 ac_status=$?
37804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37805 (exit $ac_status); }; } &&
37806 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37808 (eval $ac_try) 2>&5
37809 ac_status=$?
37810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811 (exit $ac_status); }; }; then
37812 ac_cv_func_pthread_attr_setschedparam=yes
37813else
37814 echo "$as_me: failed program was:" >&5
37815sed 's/^/| /' conftest.$ac_ext >&5
37816
37817ac_cv_func_pthread_attr_setschedparam=no
37818fi
ac1cb8d3
VS
37819rm -f conftest.err conftest.$ac_objext \
37820 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37821fi
37822echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37823echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37824if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37825 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37826echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37827if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37828 echo $ECHO_N "(cached) $ECHO_C" >&6
37829else
37830 cat >conftest.$ac_ext <<_ACEOF
37831/* confdefs.h. */
37832_ACEOF
37833cat confdefs.h >>conftest.$ac_ext
37834cat >>conftest.$ac_ext <<_ACEOF
37835/* end confdefs.h. */
ac1cb8d3
VS
37836/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37838#define sched_get_priority_max innocuous_sched_get_priority_max
37839
a848cd7e
SC
37840/* System header to define __stub macros and hopefully few prototypes,
37841 which can conflict with char sched_get_priority_max (); below.
37842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37843 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37844
a848cd7e
SC
37845#ifdef __STDC__
37846# include <limits.h>
37847#else
37848# include <assert.h>
37849#endif
ac1cb8d3
VS
37850
37851#undef sched_get_priority_max
37852
a848cd7e
SC
37853/* Override any gcc2 internal prototype to avoid an error. */
37854#ifdef __cplusplus
37855extern "C"
37856{
37857#endif
37858/* We use char because int might match the return type of a gcc2
37859 builtin and then its argument prototype would still apply. */
37860char sched_get_priority_max ();
37861/* The GNU C library defines this for functions which it implements
37862 to always fail with ENOSYS. Some functions are actually named
37863 something starting with __ and the normal name is an alias. */
37864#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37865choke me
37866#else
37867char (*f) () = sched_get_priority_max;
37868#endif
37869#ifdef __cplusplus
37870}
37871#endif
37872
37873int
37874main ()
37875{
37876return f != sched_get_priority_max;
37877 ;
37878 return 0;
37879}
37880_ACEOF
37881rm -f conftest.$ac_objext conftest$ac_exeext
37882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37883 (eval $ac_link) 2>conftest.er1
a848cd7e 37884 ac_status=$?
ac1cb8d3
VS
37885 grep -v '^ *+' conftest.er1 >conftest.err
37886 rm -f conftest.er1
37887 cat conftest.err >&5
a848cd7e
SC
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); } &&
2b850ae1
RR
37890 { ac_try='test -z "$ac_c_werror_flag"
37891 || test ! -s conftest.err'
ac1cb8d3
VS
37892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37893 (eval $ac_try) 2>&5
37894 ac_status=$?
37895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896 (exit $ac_status); }; } &&
37897 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37899 (eval $ac_try) 2>&5
37900 ac_status=$?
37901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902 (exit $ac_status); }; }; then
37903 ac_cv_func_sched_get_priority_max=yes
37904else
37905 echo "$as_me: failed program was:" >&5
37906sed 's/^/| /' conftest.$ac_ext >&5
37907
37908ac_cv_func_sched_get_priority_max=no
37909fi
ac1cb8d3
VS
37910rm -f conftest.err conftest.$ac_objext \
37911 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37912fi
37913echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37914echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37915if test $ac_cv_func_sched_get_priority_max = yes; then
37916 HAVE_PRIOR_FUNCS=1
37917else
37918 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37919echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37920if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37921 echo $ECHO_N "(cached) $ECHO_C" >&6
37922else
37923 ac_check_lib_save_LIBS=$LIBS
37924LIBS="-lposix4 $LIBS"
37925cat >conftest.$ac_ext <<_ACEOF
37926/* confdefs.h. */
37927_ACEOF
37928cat confdefs.h >>conftest.$ac_ext
37929cat >>conftest.$ac_ext <<_ACEOF
37930/* end confdefs.h. */
37931
37932/* Override any gcc2 internal prototype to avoid an error. */
37933#ifdef __cplusplus
37934extern "C"
37935#endif
37936/* We use char because int might match the return type of a gcc2
37937 builtin and then its argument prototype would still apply. */
37938char sched_get_priority_max ();
37939int
37940main ()
37941{
37942sched_get_priority_max ();
37943 ;
37944 return 0;
37945}
37946_ACEOF
37947rm -f conftest.$ac_objext conftest$ac_exeext
37948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37949 (eval $ac_link) 2>conftest.er1
a848cd7e 37950 ac_status=$?
ac1cb8d3
VS
37951 grep -v '^ *+' conftest.er1 >conftest.err
37952 rm -f conftest.er1
37953 cat conftest.err >&5
a848cd7e
SC
37954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37955 (exit $ac_status); } &&
2b850ae1
RR
37956 { ac_try='test -z "$ac_c_werror_flag"
37957 || test ! -s conftest.err'
ac1cb8d3
VS
37958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37959 (eval $ac_try) 2>&5
37960 ac_status=$?
37961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962 (exit $ac_status); }; } &&
37963 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37965 (eval $ac_try) 2>&5
37966 ac_status=$?
37967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968 (exit $ac_status); }; }; then
37969 ac_cv_lib_posix4_sched_get_priority_max=yes
37970else
37971 echo "$as_me: failed program was:" >&5
37972sed 's/^/| /' conftest.$ac_ext >&5
37973
37974ac_cv_lib_posix4_sched_get_priority_max=no
37975fi
ac1cb8d3
VS
37976rm -f conftest.err conftest.$ac_objext \
37977 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37978LIBS=$ac_check_lib_save_LIBS
37979fi
37980echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37981echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37982if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37983
37984 HAVE_PRIOR_FUNCS=1
37985 POSIX4_LINK=" -lposix4"
37986
37987fi
37988
37989
37990fi
37991
37992
37993fi
37994
37995
37996fi
37997
37998
37999 if test "$HAVE_PRIOR_FUNCS" = 1; then
38000 cat >>confdefs.h <<\_ACEOF
38001#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38002_ACEOF
38003
38004 else
38005 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38006echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38007 fi
38008
38009 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38010echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38011if test "${ac_cv_func_pthread_cancel+set}" = set; then
38012 echo $ECHO_N "(cached) $ECHO_C" >&6
38013else
38014 cat >conftest.$ac_ext <<_ACEOF
38015/* confdefs.h. */
38016_ACEOF
38017cat confdefs.h >>conftest.$ac_ext
38018cat >>conftest.$ac_ext <<_ACEOF
38019/* end confdefs.h. */
ac1cb8d3
VS
38020/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38022#define pthread_cancel innocuous_pthread_cancel
38023
a848cd7e
SC
38024/* System header to define __stub macros and hopefully few prototypes,
38025 which can conflict with char pthread_cancel (); below.
38026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38027 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38028
a848cd7e
SC
38029#ifdef __STDC__
38030# include <limits.h>
38031#else
38032# include <assert.h>
38033#endif
ac1cb8d3
VS
38034
38035#undef pthread_cancel
38036
a848cd7e
SC
38037/* Override any gcc2 internal prototype to avoid an error. */
38038#ifdef __cplusplus
38039extern "C"
38040{
38041#endif
38042/* We use char because int might match the return type of a gcc2
38043 builtin and then its argument prototype would still apply. */
38044char pthread_cancel ();
38045/* The GNU C library defines this for functions which it implements
38046 to always fail with ENOSYS. Some functions are actually named
38047 something starting with __ and the normal name is an alias. */
38048#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38049choke me
38050#else
38051char (*f) () = pthread_cancel;
38052#endif
38053#ifdef __cplusplus
38054}
38055#endif
38056
38057int
38058main ()
38059{
38060return f != pthread_cancel;
38061 ;
38062 return 0;
38063}
38064_ACEOF
38065rm -f conftest.$ac_objext conftest$ac_exeext
38066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38067 (eval $ac_link) 2>conftest.er1
a848cd7e 38068 ac_status=$?
ac1cb8d3
VS
38069 grep -v '^ *+' conftest.er1 >conftest.err
38070 rm -f conftest.er1
38071 cat conftest.err >&5
a848cd7e
SC
38072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073 (exit $ac_status); } &&
2b850ae1
RR
38074 { ac_try='test -z "$ac_c_werror_flag"
38075 || test ! -s conftest.err'
ac1cb8d3
VS
38076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38077 (eval $ac_try) 2>&5
38078 ac_status=$?
38079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38080 (exit $ac_status); }; } &&
38081 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38083 (eval $ac_try) 2>&5
38084 ac_status=$?
38085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38086 (exit $ac_status); }; }; then
38087 ac_cv_func_pthread_cancel=yes
38088else
38089 echo "$as_me: failed program was:" >&5
38090sed 's/^/| /' conftest.$ac_ext >&5
38091
38092ac_cv_func_pthread_cancel=no
38093fi
ac1cb8d3
VS
38094rm -f conftest.err conftest.$ac_objext \
38095 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38096fi
38097echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38098echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38099if test $ac_cv_func_pthread_cancel = yes; then
38100 cat >>confdefs.h <<\_ACEOF
38101#define HAVE_PTHREAD_CANCEL 1
38102_ACEOF
38103
38104else
38105 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38106echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38107fi
38108
38109
abc736fd
MW
38110 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38111echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38112if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38113 echo $ECHO_N "(cached) $ECHO_C" >&6
38114else
38115 cat >conftest.$ac_ext <<_ACEOF
38116/* confdefs.h. */
38117_ACEOF
38118cat confdefs.h >>conftest.$ac_ext
38119cat >>conftest.$ac_ext <<_ACEOF
38120/* end confdefs.h. */
38121/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38123#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38124
38125/* System header to define __stub macros and hopefully few prototypes,
38126 which can conflict with char pthread_attr_setstacksize (); below.
38127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38128 <limits.h> exists even on freestanding compilers. */
38129
38130#ifdef __STDC__
38131# include <limits.h>
38132#else
38133# include <assert.h>
38134#endif
38135
38136#undef pthread_attr_setstacksize
38137
38138/* Override any gcc2 internal prototype to avoid an error. */
38139#ifdef __cplusplus
38140extern "C"
38141{
38142#endif
38143/* We use char because int might match the return type of a gcc2
38144 builtin and then its argument prototype would still apply. */
38145char pthread_attr_setstacksize ();
38146/* The GNU C library defines this for functions which it implements
38147 to always fail with ENOSYS. Some functions are actually named
38148 something starting with __ and the normal name is an alias. */
38149#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38150choke me
38151#else
38152char (*f) () = pthread_attr_setstacksize;
38153#endif
38154#ifdef __cplusplus
38155}
38156#endif
38157
38158int
38159main ()
38160{
38161return f != pthread_attr_setstacksize;
38162 ;
38163 return 0;
38164}
38165_ACEOF
38166rm -f conftest.$ac_objext conftest$ac_exeext
38167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38168 (eval $ac_link) 2>conftest.er1
38169 ac_status=$?
38170 grep -v '^ *+' conftest.er1 >conftest.err
38171 rm -f conftest.er1
38172 cat conftest.err >&5
38173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38174 (exit $ac_status); } &&
2b850ae1
RR
38175 { ac_try='test -z "$ac_c_werror_flag"
38176 || test ! -s conftest.err'
abc736fd
MW
38177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38178 (eval $ac_try) 2>&5
38179 ac_status=$?
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); }; } &&
38182 { ac_try='test -s conftest$ac_exeext'
38183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38184 (eval $ac_try) 2>&5
38185 ac_status=$?
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); }; }; then
38188 ac_cv_func_pthread_attr_setstacksize=yes
38189else
38190 echo "$as_me: failed program was:" >&5
38191sed 's/^/| /' conftest.$ac_ext >&5
38192
38193ac_cv_func_pthread_attr_setstacksize=no
38194fi
38195rm -f conftest.err conftest.$ac_objext \
38196 conftest$ac_exeext conftest.$ac_ext
38197fi
38198echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38199echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38200if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38201 cat >>confdefs.h <<\_ACEOF
38202#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38203_ACEOF
38204
38205fi
38206
a848cd7e
SC
38207
38208
38209 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38210echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38211if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38212 echo $ECHO_N "(cached) $ECHO_C" >&6
38213else
38214
38215 cat >conftest.$ac_ext <<_ACEOF
38216/* confdefs.h. */
38217_ACEOF
38218cat confdefs.h >>conftest.$ac_ext
38219cat >>conftest.$ac_ext <<_ACEOF
38220/* end confdefs.h. */
38221#include <pthread.h>
38222int
38223main ()
38224{
38225
38226 pthread_mutexattr_t attr;
38227 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38228
38229 ;
38230 return 0;
38231}
38232_ACEOF
38233rm -f conftest.$ac_objext
38234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38235 (eval $ac_compile) 2>conftest.er1
a848cd7e 38236 ac_status=$?
ac1cb8d3
VS
38237 grep -v '^ *+' conftest.er1 >conftest.err
38238 rm -f conftest.er1
38239 cat conftest.err >&5
a848cd7e
SC
38240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38241 (exit $ac_status); } &&
2b850ae1
RR
38242 { ac_try='test -z "$ac_c_werror_flag"
38243 || test ! -s conftest.err'
ac1cb8d3
VS
38244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38245 (eval $ac_try) 2>&5
38246 ac_status=$?
38247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38248 (exit $ac_status); }; } &&
38249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38251 (eval $ac_try) 2>&5
38252 ac_status=$?
38253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254 (exit $ac_status); }; }; then
123dca7d 38255 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38256else
38257 echo "$as_me: failed program was:" >&5
38258sed 's/^/| /' conftest.$ac_ext >&5
38259
123dca7d 38260wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38261
38262fi
ac1cb8d3 38263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38264
38265fi
38266echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38267echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38268
38269 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38270 cat >>confdefs.h <<\_ACEOF
38271#define HAVE_PTHREAD_MUTEXATTR_T 1
38272_ACEOF
38273
123dca7d
VZ
38274
38275 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38276echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38277if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38278 echo $ECHO_N "(cached) $ECHO_C" >&6
38279else
38280
38281 cat >conftest.$ac_ext <<_ACEOF
38282/* confdefs.h. */
38283_ACEOF
38284cat confdefs.h >>conftest.$ac_ext
38285cat >>conftest.$ac_ext <<_ACEOF
38286/* end confdefs.h. */
38287#include <pthread.h>
38288int
38289main ()
38290{
38291
38292 pthread_mutexattr_t attr;
38293 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38294
38295 ;
38296 return 0;
38297}
38298_ACEOF
38299rm -f conftest.$ac_objext
38300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38301 (eval $ac_compile) 2>conftest.er1
38302 ac_status=$?
38303 grep -v '^ *+' conftest.er1 >conftest.err
38304 rm -f conftest.er1
38305 cat conftest.err >&5
38306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38307 (exit $ac_status); } &&
2b850ae1
RR
38308 { ac_try='test -z "$ac_c_werror_flag"
38309 || test ! -s conftest.err'
123dca7d
VZ
38310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38311 (eval $ac_try) 2>&5
38312 ac_status=$?
38313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38314 (exit $ac_status); }; } &&
38315 { ac_try='test -s conftest.$ac_objext'
38316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38317 (eval $ac_try) 2>&5
38318 ac_status=$?
38319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320 (exit $ac_status); }; }; then
38321 wx_cv_func_pthread_mutexattr_settype_decl=yes
38322else
38323 echo "$as_me: failed program was:" >&5
38324sed 's/^/| /' conftest.$ac_ext >&5
38325
38326wx_cv_func_pthread_mutexattr_settype_decl=no
38327
38328fi
38329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38330
38331fi
38332echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38333echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38334 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38335 cat >>confdefs.h <<\_ACEOF
38336#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38337_ACEOF
38338
38339 fi
a848cd7e
SC
38340 else
38341 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38342echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38343if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38344 echo $ECHO_N "(cached) $ECHO_C" >&6
38345else
38346
38347 cat >conftest.$ac_ext <<_ACEOF
38348/* confdefs.h. */
38349_ACEOF
38350cat confdefs.h >>conftest.$ac_ext
38351cat >>conftest.$ac_ext <<_ACEOF
38352/* end confdefs.h. */
38353#include <pthread.h>
38354int
38355main ()
38356{
38357
38358 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38359
38360 ;
38361 return 0;
38362}
38363_ACEOF
38364rm -f conftest.$ac_objext
38365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38366 (eval $ac_compile) 2>conftest.er1
a848cd7e 38367 ac_status=$?
ac1cb8d3
VS
38368 grep -v '^ *+' conftest.er1 >conftest.err
38369 rm -f conftest.er1
38370 cat conftest.err >&5
a848cd7e
SC
38371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372 (exit $ac_status); } &&
2b850ae1
RR
38373 { ac_try='test -z "$ac_c_werror_flag"
38374 || test ! -s conftest.err'
ac1cb8d3
VS
38375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38376 (eval $ac_try) 2>&5
38377 ac_status=$?
38378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38379 (exit $ac_status); }; } &&
38380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38382 (eval $ac_try) 2>&5
38383 ac_status=$?
38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385 (exit $ac_status); }; }; then
38386
38387 wx_cv_type_pthread_rec_mutex_init=yes
38388
38389else
38390 echo "$as_me: failed program was:" >&5
38391sed 's/^/| /' conftest.$ac_ext >&5
38392
38393
38394 wx_cv_type_pthread_rec_mutex_init=no
38395
38396
38397fi
ac1cb8d3 38398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38399
38400fi
38401echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38402echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38403 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38404 cat >>confdefs.h <<\_ACEOF
38405#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38406_ACEOF
38407
38408 else
38409 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38410echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38411 fi
38412 fi
38413 fi
38414
38415else
38416 if test "$wxUSE_THREADS" = "yes" ; then
38417 case "${host}" in
38418 *-*-mingw32* )
38419 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38420echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38421if test "${wx_cv_cflags_mthread+set}" = set; then
38422 echo $ECHO_N "(cached) $ECHO_C" >&6
38423else
38424
38425 CFLAGS_OLD="$CFLAGS"
c92ad099 38426 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
38427 cat >conftest.$ac_ext <<_ACEOF
38428/* confdefs.h. */
38429_ACEOF
38430cat confdefs.h >>conftest.$ac_ext
38431cat >>conftest.$ac_ext <<_ACEOF
38432/* end confdefs.h. */
38433
38434int
38435main ()
38436{
38437
38438 ;
38439 return 0;
38440}
38441_ACEOF
38442rm -f conftest.$ac_objext
38443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38444 (eval $ac_compile) 2>conftest.er1
a848cd7e 38445 ac_status=$?
ac1cb8d3
VS
38446 grep -v '^ *+' conftest.er1 >conftest.err
38447 rm -f conftest.er1
38448 cat conftest.err >&5
a848cd7e
SC
38449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38450 (exit $ac_status); } &&
2b850ae1
RR
38451 { ac_try='test -z "$ac_c_werror_flag"
38452 || test ! -s conftest.err'
ac1cb8d3
VS
38453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38454 (eval $ac_try) 2>&5
38455 ac_status=$?
38456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38457 (exit $ac_status); }; } &&
38458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38460 (eval $ac_try) 2>&5
38461 ac_status=$?
38462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463 (exit $ac_status); }; }; then
38464 wx_cv_cflags_mthread=yes
38465else
38466 echo "$as_me: failed program was:" >&5
38467sed 's/^/| /' conftest.$ac_ext >&5
38468
38469wx_cv_cflags_mthread=no
38470
38471fi
ac1cb8d3 38472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38473
38474
38475fi
38476echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38477echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38478
38479 if test "$wx_cv_cflags_mthread" = "yes"; then
5ff751d6 38480 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
38481 LDFLAGS="$LDFLAGS -mthreads"
38482 else
38483 CFLAGS="$CFLAGS_OLD"
38484 fi
38485 ;;
38486 *-pc-os2*emx )
5ff751d6
VZ
38487 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38488 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38489 LDFLAGS="$LDFLAGS -Zmt"
38490 ;;
38491 esac
38492 fi
38493fi
38494
004ee6da
RL
38495echo "$as_me:$LINENO: checking for localtime_r" >&5
38496echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38497if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38498 echo $ECHO_N "(cached) $ECHO_C" >&6
38499else
38500 cat >conftest.$ac_ext <<_ACEOF
38501/* confdefs.h. */
38502_ACEOF
38503cat confdefs.h >>conftest.$ac_ext
38504cat >>conftest.$ac_ext <<_ACEOF
38505/* end confdefs.h. */
004ee6da 38506/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38508#define localtime_r innocuous_localtime_r
ac1cb8d3 38509
a848cd7e 38510/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38511 which can conflict with char localtime_r (); below.
a848cd7e
SC
38512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38513 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38514
a848cd7e
SC
38515#ifdef __STDC__
38516# include <limits.h>
38517#else
38518# include <assert.h>
38519#endif
ac1cb8d3 38520
004ee6da 38521#undef localtime_r
ac1cb8d3 38522
a848cd7e
SC
38523/* Override any gcc2 internal prototype to avoid an error. */
38524#ifdef __cplusplus
38525extern "C"
38526{
38527#endif
38528/* We use char because int might match the return type of a gcc2
38529 builtin and then its argument prototype would still apply. */
004ee6da 38530char localtime_r ();
a848cd7e
SC
38531/* The GNU C library defines this for functions which it implements
38532 to always fail with ENOSYS. Some functions are actually named
38533 something starting with __ and the normal name is an alias. */
004ee6da 38534#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38535choke me
38536#else
004ee6da 38537char (*f) () = localtime_r;
a848cd7e
SC
38538#endif
38539#ifdef __cplusplus
38540}
38541#endif
38542
38543int
38544main ()
38545{
004ee6da
RL
38546return f != localtime_r;
38547 ;
38548 return 0;
38549}
38550_ACEOF
38551rm -f conftest.$ac_objext conftest$ac_exeext
38552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38553 (eval $ac_link) 2>conftest.er1
38554 ac_status=$?
38555 grep -v '^ *+' conftest.er1 >conftest.err
38556 rm -f conftest.er1
38557 cat conftest.err >&5
38558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559 (exit $ac_status); } &&
2b850ae1
RR
38560 { ac_try='test -z "$ac_c_werror_flag"
38561 || test ! -s conftest.err'
004ee6da
RL
38562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38563 (eval $ac_try) 2>&5
38564 ac_status=$?
38565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38566 (exit $ac_status); }; } &&
38567 { ac_try='test -s conftest$ac_exeext'
38568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38569 (eval $ac_try) 2>&5
38570 ac_status=$?
38571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572 (exit $ac_status); }; }; then
38573 ac_cv_func_localtime_r=yes
38574else
38575 echo "$as_me: failed program was:" >&5
38576sed 's/^/| /' conftest.$ac_ext >&5
38577
38578ac_cv_func_localtime_r=no
38579fi
38580rm -f conftest.err conftest.$ac_objext \
38581 conftest$ac_exeext conftest.$ac_ext
38582fi
38583echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38584echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38585if test $ac_cv_func_localtime_r = yes; then
38586 cat >>confdefs.h <<\_ACEOF
38587#define HAVE_LOCALTIME_R 1
38588_ACEOF
38589
38590fi
38591
38592echo "$as_me:$LINENO: checking for gmtime_r" >&5
38593echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38594if test "${ac_cv_func_gmtime_r+set}" = set; then
38595 echo $ECHO_N "(cached) $ECHO_C" >&6
38596else
38597 cat >conftest.$ac_ext <<_ACEOF
38598/* confdefs.h. */
38599_ACEOF
38600cat confdefs.h >>conftest.$ac_ext
38601cat >>conftest.$ac_ext <<_ACEOF
38602/* end confdefs.h. */
38603/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38605#define gmtime_r innocuous_gmtime_r
38606
38607/* System header to define __stub macros and hopefully few prototypes,
38608 which can conflict with char gmtime_r (); below.
38609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38610 <limits.h> exists even on freestanding compilers. */
38611
38612#ifdef __STDC__
38613# include <limits.h>
38614#else
38615# include <assert.h>
38616#endif
38617
38618#undef gmtime_r
38619
38620/* Override any gcc2 internal prototype to avoid an error. */
38621#ifdef __cplusplus
38622extern "C"
38623{
38624#endif
38625/* We use char because int might match the return type of a gcc2
38626 builtin and then its argument prototype would still apply. */
38627char gmtime_r ();
38628/* The GNU C library defines this for functions which it implements
38629 to always fail with ENOSYS. Some functions are actually named
38630 something starting with __ and the normal name is an alias. */
38631#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38632choke me
38633#else
38634char (*f) () = gmtime_r;
38635#endif
38636#ifdef __cplusplus
38637}
38638#endif
38639
38640int
38641main ()
38642{
38643return f != gmtime_r;
38644 ;
38645 return 0;
38646}
38647_ACEOF
38648rm -f conftest.$ac_objext conftest$ac_exeext
38649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38650 (eval $ac_link) 2>conftest.er1
38651 ac_status=$?
38652 grep -v '^ *+' conftest.er1 >conftest.err
38653 rm -f conftest.er1
38654 cat conftest.err >&5
38655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656 (exit $ac_status); } &&
2b850ae1
RR
38657 { ac_try='test -z "$ac_c_werror_flag"
38658 || test ! -s conftest.err'
004ee6da
RL
38659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38660 (eval $ac_try) 2>&5
38661 ac_status=$?
38662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38663 (exit $ac_status); }; } &&
38664 { ac_try='test -s conftest$ac_exeext'
38665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38666 (eval $ac_try) 2>&5
38667 ac_status=$?
38668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669 (exit $ac_status); }; }; then
38670 ac_cv_func_gmtime_r=yes
38671else
38672 echo "$as_me: failed program was:" >&5
38673sed 's/^/| /' conftest.$ac_ext >&5
38674
38675ac_cv_func_gmtime_r=no
38676fi
38677rm -f conftest.err conftest.$ac_objext \
38678 conftest$ac_exeext conftest.$ac_ext
38679fi
38680echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38681echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38682if test $ac_cv_func_gmtime_r = yes; then
38683 cat >>confdefs.h <<\_ACEOF
38684#define HAVE_GMTIME_R 1
38685_ACEOF
38686
38687fi
38688
38689echo "$as_me:$LINENO: checking for readdir_r" >&5
38690echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38691if test "${ac_cv_func_readdir_r+set}" = set; then
38692 echo $ECHO_N "(cached) $ECHO_C" >&6
38693else
38694 cat >conftest.$ac_ext <<_ACEOF
38695/* confdefs.h. */
38696_ACEOF
38697cat confdefs.h >>conftest.$ac_ext
38698cat >>conftest.$ac_ext <<_ACEOF
38699/* end confdefs.h. */
38700/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38702#define readdir_r innocuous_readdir_r
38703
38704/* System header to define __stub macros and hopefully few prototypes,
38705 which can conflict with char readdir_r (); below.
38706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38707 <limits.h> exists even on freestanding compilers. */
38708
38709#ifdef __STDC__
38710# include <limits.h>
38711#else
38712# include <assert.h>
38713#endif
38714
38715#undef readdir_r
38716
38717/* Override any gcc2 internal prototype to avoid an error. */
38718#ifdef __cplusplus
38719extern "C"
38720{
38721#endif
38722/* We use char because int might match the return type of a gcc2
38723 builtin and then its argument prototype would still apply. */
38724char readdir_r ();
38725/* The GNU C library defines this for functions which it implements
38726 to always fail with ENOSYS. Some functions are actually named
38727 something starting with __ and the normal name is an alias. */
38728#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38729choke me
38730#else
38731char (*f) () = readdir_r;
38732#endif
38733#ifdef __cplusplus
38734}
38735#endif
38736
38737int
38738main ()
38739{
38740return f != readdir_r;
38741 ;
38742 return 0;
38743}
38744_ACEOF
38745rm -f conftest.$ac_objext conftest$ac_exeext
38746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38747 (eval $ac_link) 2>conftest.er1
38748 ac_status=$?
38749 grep -v '^ *+' conftest.er1 >conftest.err
38750 rm -f conftest.er1
38751 cat conftest.err >&5
38752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38753 (exit $ac_status); } &&
2b850ae1
RR
38754 { ac_try='test -z "$ac_c_werror_flag"
38755 || test ! -s conftest.err'
004ee6da
RL
38756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38757 (eval $ac_try) 2>&5
38758 ac_status=$?
38759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38760 (exit $ac_status); }; } &&
38761 { ac_try='test -s conftest$ac_exeext'
38762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38763 (eval $ac_try) 2>&5
38764 ac_status=$?
38765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38766 (exit $ac_status); }; }; then
38767 ac_cv_func_readdir_r=yes
38768else
38769 echo "$as_me: failed program was:" >&5
38770sed 's/^/| /' conftest.$ac_ext >&5
38771
38772ac_cv_func_readdir_r=no
38773fi
38774rm -f conftest.err conftest.$ac_objext \
38775 conftest$ac_exeext conftest.$ac_ext
38776fi
38777echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38778echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38779if test $ac_cv_func_readdir_r = yes; then
38780 cat >>confdefs.h <<\_ACEOF
38781#define HAVE_READDIR_R 1
38782_ACEOF
38783
38784fi
38785
004ee6da 38786
5ec3bc43
JS
38787ac_ext=cc
38788ac_cpp='$CXXCPP $CPPFLAGS'
38789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38792
004ee6da
RL
38793
38794
38795 ac_ext=c
38796ac_cpp='$CPP $CPPFLAGS'
38797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38799ac_compiler_gnu=$ac_cv_c_compiler_gnu
38800
38801 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38802echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38803
38804 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38805 echo $ECHO_N "(cached) $ECHO_C" >&6
38806else
38807
38808
38809################################################################
38810
38811ac_cv_func_which_gethostbyname_r=unknown
38812
38813#
38814# ONE ARGUMENT (sanity check)
38815#
38816
38817# This should fail, as there is no variant of gethostbyname_r() that takes
38818# a single argument. If it actually compiles, then we can assume that
38819# netdb.h is not declaring the function, and the compiler is thereby
38820# assuming an implicit prototype. In which case, we're out of luck.
38821#
38822cat >conftest.$ac_ext <<_ACEOF
38823/* confdefs.h. */
38824_ACEOF
38825cat confdefs.h >>conftest.$ac_ext
38826cat >>conftest.$ac_ext <<_ACEOF
38827/* end confdefs.h. */
38828#include <netdb.h>
38829int
38830main ()
38831{
38832
38833 char *name = "www.gnu.org";
38834 (void)gethostbyname_r(name) /* ; */
38835
38836 ;
38837 return 0;
38838}
38839_ACEOF
38840rm -f conftest.$ac_objext
38841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38842 (eval $ac_compile) 2>conftest.er1
38843 ac_status=$?
38844 grep -v '^ *+' conftest.er1 >conftest.err
38845 rm -f conftest.er1
38846 cat conftest.err >&5
38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848 (exit $ac_status); } &&
2b850ae1
RR
38849 { ac_try='test -z "$ac_c_werror_flag"
38850 || test ! -s conftest.err'
004ee6da
RL
38851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38852 (eval $ac_try) 2>&5
38853 ac_status=$?
38854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855 (exit $ac_status); }; } &&
38856 { ac_try='test -s conftest.$ac_objext'
38857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38858 (eval $ac_try) 2>&5
38859 ac_status=$?
38860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861 (exit $ac_status); }; }; then
38862 ac_cv_func_which_gethostbyname_r=no
38863else
38864 echo "$as_me: failed program was:" >&5
38865sed 's/^/| /' conftest.$ac_ext >&5
38866
38867fi
38868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38869
38870#
38871# SIX ARGUMENTS
38872# (e.g. Linux)
38873#
38874
38875if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38876
38877cat >conftest.$ac_ext <<_ACEOF
38878/* confdefs.h. */
38879_ACEOF
38880cat confdefs.h >>conftest.$ac_ext
38881cat >>conftest.$ac_ext <<_ACEOF
38882/* end confdefs.h. */
38883#include <netdb.h>
38884int
38885main ()
38886{
38887
38888 char *name = "www.gnu.org";
38889 struct hostent ret, *retp;
38890 char buf[1024];
38891 int buflen = 1024;
38892 int my_h_errno;
38893 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
38894
38895 ;
38896 return 0;
38897}
38898_ACEOF
38899rm -f conftest.$ac_objext
38900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38901 (eval $ac_compile) 2>conftest.er1
38902 ac_status=$?
38903 grep -v '^ *+' conftest.er1 >conftest.err
38904 rm -f conftest.er1
38905 cat conftest.err >&5
38906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907 (exit $ac_status); } &&
2b850ae1
RR
38908 { ac_try='test -z "$ac_c_werror_flag"
38909 || test ! -s conftest.err'
004ee6da
RL
38910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38911 (eval $ac_try) 2>&5
38912 ac_status=$?
38913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914 (exit $ac_status); }; } &&
38915 { ac_try='test -s conftest.$ac_objext'
38916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38917 (eval $ac_try) 2>&5
38918 ac_status=$?
38919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38920 (exit $ac_status); }; }; then
38921 ac_cv_func_which_gethostbyname_r=six
38922else
38923 echo "$as_me: failed program was:" >&5
38924sed 's/^/| /' conftest.$ac_ext >&5
38925
38926fi
38927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38928
38929fi
38930
38931#
38932# FIVE ARGUMENTS
38933# (e.g. Solaris)
38934#
38935
38936if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38937
38938cat >conftest.$ac_ext <<_ACEOF
38939/* confdefs.h. */
38940_ACEOF
38941cat confdefs.h >>conftest.$ac_ext
38942cat >>conftest.$ac_ext <<_ACEOF
38943/* end confdefs.h. */
38944#include <netdb.h>
38945int
38946main ()
38947{
38948
38949 char *name = "www.gnu.org";
38950 struct hostent ret;
38951 char buf[1024];
38952 int buflen = 1024;
38953 int my_h_errno;
38954 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
38955
38956 ;
38957 return 0;
38958}
38959_ACEOF
38960rm -f conftest.$ac_objext
38961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38962 (eval $ac_compile) 2>conftest.er1
38963 ac_status=$?
38964 grep -v '^ *+' conftest.er1 >conftest.err
38965 rm -f conftest.er1
38966 cat conftest.err >&5
38967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38968 (exit $ac_status); } &&
2b850ae1
RR
38969 { ac_try='test -z "$ac_c_werror_flag"
38970 || test ! -s conftest.err'
004ee6da
RL
38971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38972 (eval $ac_try) 2>&5
38973 ac_status=$?
38974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38975 (exit $ac_status); }; } &&
38976 { ac_try='test -s conftest.$ac_objext'
38977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38978 (eval $ac_try) 2>&5
38979 ac_status=$?
38980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38981 (exit $ac_status); }; }; then
38982 ac_cv_func_which_gethostbyname_r=five
38983else
38984 echo "$as_me: failed program was:" >&5
38985sed 's/^/| /' conftest.$ac_ext >&5
38986
38987fi
38988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38989
38990fi
38991
38992#
38993# THREE ARGUMENTS
38994# (e.g. AIX, HP-UX, Tru64)
38995#
38996
38997if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38998
38999cat >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#include <netdb.h>
39006int
39007main ()
39008{
39009
39010 char *name = "www.gnu.org";
39011 struct hostent ret;
39012 struct hostent_data data;
39013 (void)gethostbyname_r(name, &ret, &data) /* ; */
39014
39015 ;
39016 return 0;
39017}
39018_ACEOF
39019rm -f conftest.$ac_objext
39020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39021 (eval $ac_compile) 2>conftest.er1
39022 ac_status=$?
39023 grep -v '^ *+' conftest.er1 >conftest.err
39024 rm -f conftest.er1
39025 cat conftest.err >&5
39026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39027 (exit $ac_status); } &&
2b850ae1
RR
39028 { ac_try='test -z "$ac_c_werror_flag"
39029 || test ! -s conftest.err'
004ee6da
RL
39030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39031 (eval $ac_try) 2>&5
39032 ac_status=$?
39033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034 (exit $ac_status); }; } &&
39035 { ac_try='test -s conftest.$ac_objext'
39036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39037 (eval $ac_try) 2>&5
39038 ac_status=$?
39039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040 (exit $ac_status); }; }; then
39041 ac_cv_func_which_gethostbyname_r=three
39042else
39043 echo "$as_me: failed program was:" >&5
39044sed 's/^/| /' conftest.$ac_ext >&5
39045
39046fi
39047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39048
39049fi
39050
39051################################################################
39052
39053
39054fi
39055
39056case "$ac_cv_func_which_gethostbyname_r" in
39057 three)
39058 echo "$as_me:$LINENO: result: three" >&5
39059echo "${ECHO_T}three" >&6
39060 cat >>confdefs.h <<\_ACEOF
39061#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39062_ACEOF
39063
39064 ;;
39065
39066 five)
39067 echo "$as_me:$LINENO: result: five" >&5
39068echo "${ECHO_T}five" >&6
39069 cat >>confdefs.h <<\_ACEOF
39070#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39071_ACEOF
39072
39073 ;;
39074
39075 six)
39076 echo "$as_me:$LINENO: result: six" >&5
39077echo "${ECHO_T}six" >&6
39078 cat >>confdefs.h <<\_ACEOF
39079#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39080_ACEOF
39081
39082 ;;
39083
39084 no)
39085 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39086echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39087 ;;
39088
39089 unknown)
39090 echo "$as_me:$LINENO: result: can't tell" >&5
39091echo "${ECHO_T}can't tell" >&6
39092 ;;
39093
39094 *)
39095 { { echo "$as_me:$LINENO: error: internal error" >&5
39096echo "$as_me: error: internal error" >&2;}
39097 { (exit 1); exit 1; }; }
39098 ;;
39099esac
39100
5ec3bc43
JS
39101ac_ext=cc
39102ac_cpp='$CXXCPP $CPPFLAGS'
39103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39106
39107
39108
39109 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39110 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39111 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39112echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39113if test "${ac_cv_func_gethostbyname+set}" = set; then
39114 echo $ECHO_N "(cached) $ECHO_C" >&6
39115else
39116 cat >conftest.$ac_ext <<_ACEOF
39117/* confdefs.h. */
39118_ACEOF
39119cat confdefs.h >>conftest.$ac_ext
39120cat >>conftest.$ac_ext <<_ACEOF
39121/* end confdefs.h. */
39122/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39124#define gethostbyname innocuous_gethostbyname
39125
39126/* System header to define __stub macros and hopefully few prototypes,
39127 which can conflict with char gethostbyname (); below.
39128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39129 <limits.h> exists even on freestanding compilers. */
39130
39131#ifdef __STDC__
39132# include <limits.h>
39133#else
39134# include <assert.h>
39135#endif
39136
39137#undef gethostbyname
39138
39139/* Override any gcc2 internal prototype to avoid an error. */
39140#ifdef __cplusplus
39141extern "C"
39142{
39143#endif
39144/* We use char because int might match the return type of a gcc2
39145 builtin and then its argument prototype would still apply. */
39146char gethostbyname ();
39147/* The GNU C library defines this for functions which it implements
39148 to always fail with ENOSYS. Some functions are actually named
39149 something starting with __ and the normal name is an alias. */
39150#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39151choke me
39152#else
39153char (*f) () = gethostbyname;
39154#endif
39155#ifdef __cplusplus
39156}
39157#endif
39158
39159int
39160main ()
39161{
39162return f != gethostbyname;
39163 ;
39164 return 0;
39165}
39166_ACEOF
39167rm -f conftest.$ac_objext conftest$ac_exeext
39168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39169 (eval $ac_link) 2>conftest.er1
39170 ac_status=$?
39171 grep -v '^ *+' conftest.er1 >conftest.err
39172 rm -f conftest.er1
39173 cat conftest.err >&5
39174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175 (exit $ac_status); } &&
2b850ae1
RR
39176 { ac_try='test -z "$ac_cxx_werror_flag"
39177 || test ! -s conftest.err'
004ee6da
RL
39178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39179 (eval $ac_try) 2>&5
39180 ac_status=$?
39181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39182 (exit $ac_status); }; } &&
39183 { ac_try='test -s conftest$ac_exeext'
39184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39185 (eval $ac_try) 2>&5
39186 ac_status=$?
39187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39188 (exit $ac_status); }; }; then
39189 ac_cv_func_gethostbyname=yes
39190else
39191 echo "$as_me: failed program was:" >&5
39192sed 's/^/| /' conftest.$ac_ext >&5
39193
39194ac_cv_func_gethostbyname=no
39195fi
39196rm -f conftest.err conftest.$ac_objext \
39197 conftest$ac_exeext conftest.$ac_ext
39198fi
39199echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39200echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39201if test $ac_cv_func_gethostbyname = yes; then
39202 cat >>confdefs.h <<\_ACEOF
39203#define HAVE_GETHOSTBYNAME 1
39204_ACEOF
39205
39206fi
39207
39208 fi
39209 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39210echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39211if test "${ac_cv_func_getservbyname_r+set}" = set; then
39212 echo $ECHO_N "(cached) $ECHO_C" >&6
39213else
39214 cat >conftest.$ac_ext <<_ACEOF
39215/* confdefs.h. */
39216_ACEOF
39217cat confdefs.h >>conftest.$ac_ext
39218cat >>conftest.$ac_ext <<_ACEOF
39219/* end confdefs.h. */
39220/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39222#define getservbyname_r innocuous_getservbyname_r
39223
39224/* System header to define __stub macros and hopefully few prototypes,
39225 which can conflict with char getservbyname_r (); below.
39226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39227 <limits.h> exists even on freestanding compilers. */
39228
39229#ifdef __STDC__
39230# include <limits.h>
39231#else
39232# include <assert.h>
39233#endif
39234
39235#undef getservbyname_r
39236
39237/* Override any gcc2 internal prototype to avoid an error. */
39238#ifdef __cplusplus
39239extern "C"
39240{
39241#endif
39242/* We use char because int might match the return type of a gcc2
39243 builtin and then its argument prototype would still apply. */
39244char getservbyname_r ();
39245/* The GNU C library defines this for functions which it implements
39246 to always fail with ENOSYS. Some functions are actually named
39247 something starting with __ and the normal name is an alias. */
39248#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39249choke me
39250#else
39251char (*f) () = getservbyname_r;
39252#endif
39253#ifdef __cplusplus
39254}
39255#endif
39256
39257int
39258main ()
39259{
39260return f != getservbyname_r;
39261 ;
39262 return 0;
39263}
39264_ACEOF
39265rm -f conftest.$ac_objext conftest$ac_exeext
39266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39267 (eval $ac_link) 2>conftest.er1
39268 ac_status=$?
39269 grep -v '^ *+' conftest.er1 >conftest.err
39270 rm -f conftest.er1
39271 cat conftest.err >&5
39272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39273 (exit $ac_status); } &&
2b850ae1
RR
39274 { ac_try='test -z "$ac_cxx_werror_flag"
39275 || test ! -s conftest.err'
004ee6da
RL
39276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39277 (eval $ac_try) 2>&5
39278 ac_status=$?
39279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39280 (exit $ac_status); }; } &&
39281 { ac_try='test -s conftest$ac_exeext'
39282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39283 (eval $ac_try) 2>&5
39284 ac_status=$?
39285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286 (exit $ac_status); }; }; then
39287 ac_cv_func_getservbyname_r=yes
39288else
39289 echo "$as_me: failed program was:" >&5
39290sed 's/^/| /' conftest.$ac_ext >&5
39291
39292ac_cv_func_getservbyname_r=no
39293fi
39294rm -f conftest.err conftest.$ac_objext \
39295 conftest$ac_exeext conftest.$ac_ext
39296fi
39297echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39298echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39299if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39300 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39301/* confdefs.h. */
39302_ACEOF
39303cat confdefs.h >>conftest.$ac_ext
39304cat >>conftest.$ac_ext <<_ACEOF
39305/* end confdefs.h. */
99879bbf 39306#include <netdb.h>
004ee6da
RL
39307int
39308main ()
39309{
39310
99879bbf
MR
39311 char *name;
39312 char *proto;
39313 struct servent *se;
39314 struct servent_data data;
39315 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39316
39317 ;
39318 return 0;
39319}
39320_ACEOF
39321rm -f conftest.$ac_objext
39322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39323 (eval $ac_compile) 2>conftest.er1
39324 ac_status=$?
39325 grep -v '^ *+' conftest.er1 >conftest.err
39326 rm -f conftest.er1
39327 cat conftest.err >&5
39328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39329 (exit $ac_status); } &&
2b850ae1
RR
39330 { ac_try='test -z "$ac_cxx_werror_flag"
39331 || test ! -s conftest.err'
004ee6da
RL
39332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39333 (eval $ac_try) 2>&5
39334 ac_status=$?
39335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39336 (exit $ac_status); }; } &&
39337 { ac_try='test -s conftest.$ac_objext'
39338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39339 (eval $ac_try) 2>&5
39340 ac_status=$?
39341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39342 (exit $ac_status); }; }; then
39343 ac_cv_func_which_getservbyname_r=four
39344else
39345 echo "$as_me: failed program was:" >&5
39346sed 's/^/| /' conftest.$ac_ext >&5
39347
99879bbf 39348cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39349/* confdefs.h. */
39350_ACEOF
39351cat confdefs.h >>conftest.$ac_ext
39352cat >>conftest.$ac_ext <<_ACEOF
39353/* end confdefs.h. */
99879bbf 39354#include <netdb.h>
004ee6da
RL
39355int
39356main ()
39357{
39358
99879bbf
MR
39359 char *name;
39360 char *proto;
39361 struct servent *se, *res;
39362 char buffer[2048];
39363 int buflen = 2048;
39364 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39365
39366 ;
39367 return 0;
39368}
39369_ACEOF
39370rm -f conftest.$ac_objext
39371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39372 (eval $ac_compile) 2>conftest.er1
39373 ac_status=$?
39374 grep -v '^ *+' conftest.er1 >conftest.err
39375 rm -f conftest.er1
39376 cat conftest.err >&5
39377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39378 (exit $ac_status); } &&
2b850ae1
RR
39379 { ac_try='test -z "$ac_cxx_werror_flag"
39380 || test ! -s conftest.err'
004ee6da
RL
39381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39382 (eval $ac_try) 2>&5
39383 ac_status=$?
39384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385 (exit $ac_status); }; } &&
39386 { ac_try='test -s conftest.$ac_objext'
39387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39388 (eval $ac_try) 2>&5
39389 ac_status=$?
39390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39391 (exit $ac_status); }; }; then
39392 ac_cv_func_which_getservbyname_r=six
39393else
39394 echo "$as_me: failed program was:" >&5
39395sed 's/^/| /' conftest.$ac_ext >&5
39396
99879bbf 39397cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39398/* confdefs.h. */
39399_ACEOF
39400cat confdefs.h >>conftest.$ac_ext
39401cat >>conftest.$ac_ext <<_ACEOF
39402/* end confdefs.h. */
99879bbf 39403#include <netdb.h>
004ee6da
RL
39404int
39405main ()
39406{
39407
99879bbf
MR
39408 char *name;
39409 char *proto;
39410 struct servent *se;
39411 char buffer[2048];
39412 int buflen = 2048;
39413 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39414
39415 ;
39416 return 0;
39417}
39418_ACEOF
39419rm -f conftest.$ac_objext
39420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39421 (eval $ac_compile) 2>conftest.er1
39422 ac_status=$?
39423 grep -v '^ *+' conftest.er1 >conftest.err
39424 rm -f conftest.er1
39425 cat conftest.err >&5
39426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427 (exit $ac_status); } &&
2b850ae1
RR
39428 { ac_try='test -z "$ac_cxx_werror_flag"
39429 || test ! -s conftest.err'
004ee6da
RL
39430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39431 (eval $ac_try) 2>&5
39432 ac_status=$?
39433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39434 (exit $ac_status); }; } &&
39435 { ac_try='test -s conftest.$ac_objext'
39436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39437 (eval $ac_try) 2>&5
39438 ac_status=$?
39439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440 (exit $ac_status); }; }; then
39441 ac_cv_func_which_getservbyname_r=five
39442else
39443 echo "$as_me: failed program was:" >&5
39444sed 's/^/| /' conftest.$ac_ext >&5
39445
39446ac_cv_func_which_getservbyname_r=no
99879bbf 39447
004ee6da
RL
39448fi
39449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39450
004ee6da
RL
39451fi
39452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39453
004ee6da
RL
39454fi
39455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39456else
39457 ac_cv_func_which_getservbyname_r=no
39458fi
39459
004ee6da
RL
39460
39461if test $ac_cv_func_which_getservbyname_r = six; then
39462 cat >>confdefs.h <<\_ACEOF
39463#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39464_ACEOF
39465
39466elif test $ac_cv_func_which_getservbyname_r = five; then
39467 cat >>confdefs.h <<\_ACEOF
39468#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39469_ACEOF
39470
39471elif test $ac_cv_func_which_getservbyname_r = four; then
39472 cat >>confdefs.h <<\_ACEOF
39473#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39474_ACEOF
39475
004ee6da
RL
39476fi
39477
39478
39479 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39480 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39481
39482for ac_func in getservbyname
39483do
39484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39485echo "$as_me:$LINENO: checking for $ac_func" >&5
39486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39487if eval "test \"\${$as_ac_var+set}\" = set"; then
39488 echo $ECHO_N "(cached) $ECHO_C" >&6
39489else
39490 cat >conftest.$ac_ext <<_ACEOF
39491/* confdefs.h. */
39492_ACEOF
39493cat confdefs.h >>conftest.$ac_ext
39494cat >>conftest.$ac_ext <<_ACEOF
39495/* end confdefs.h. */
39496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39498#define $ac_func innocuous_$ac_func
39499
39500/* System header to define __stub macros and hopefully few prototypes,
39501 which can conflict with char $ac_func (); below.
39502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39503 <limits.h> exists even on freestanding compilers. */
39504
39505#ifdef __STDC__
39506# include <limits.h>
39507#else
39508# include <assert.h>
39509#endif
39510
39511#undef $ac_func
39512
39513/* Override any gcc2 internal prototype to avoid an error. */
39514#ifdef __cplusplus
39515extern "C"
39516{
39517#endif
39518/* We use char because int might match the return type of a gcc2
39519 builtin and then its argument prototype would still apply. */
39520char $ac_func ();
39521/* The GNU C library defines this for functions which it implements
39522 to always fail with ENOSYS. Some functions are actually named
39523 something starting with __ and the normal name is an alias. */
39524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39525choke me
39526#else
39527char (*f) () = $ac_func;
39528#endif
39529#ifdef __cplusplus
39530}
39531#endif
39532
39533int
39534main ()
39535{
39536return f != $ac_func;
39537 ;
39538 return 0;
39539}
39540_ACEOF
39541rm -f conftest.$ac_objext conftest$ac_exeext
39542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39543 (eval $ac_link) 2>conftest.er1
39544 ac_status=$?
39545 grep -v '^ *+' conftest.er1 >conftest.err
39546 rm -f conftest.er1
39547 cat conftest.err >&5
39548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39549 (exit $ac_status); } &&
2b850ae1
RR
39550 { ac_try='test -z "$ac_cxx_werror_flag"
39551 || test ! -s conftest.err'
004ee6da
RL
39552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39553 (eval $ac_try) 2>&5
39554 ac_status=$?
39555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556 (exit $ac_status); }; } &&
39557 { ac_try='test -s conftest$ac_exeext'
39558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559 (eval $ac_try) 2>&5
39560 ac_status=$?
39561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562 (exit $ac_status); }; }; then
39563 eval "$as_ac_var=yes"
39564else
39565 echo "$as_me: failed program was:" >&5
39566sed 's/^/| /' conftest.$ac_ext >&5
39567
39568eval "$as_ac_var=no"
39569fi
39570rm -f conftest.err conftest.$ac_objext \
39571 conftest$ac_exeext conftest.$ac_ext
39572fi
39573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39574echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39575if test `eval echo '${'$as_ac_var'}'` = yes; then
39576 cat >>confdefs.h <<_ACEOF
39577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39578_ACEOF
39579 cat >>confdefs.h <<\_ACEOF
39580#define HAVE_GETSERVBYNAME 1
39581_ACEOF
39582
39583fi
39584done
39585
39586 fi
5ec3bc43
JS
39587 ac_ext=c
39588ac_cpp='$CPP $CPPFLAGS'
39589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39591ac_compiler_gnu=$ac_cv_c_compiler_gnu
39592
004ee6da 39593
004ee6da
RL
39594if test "$wxUSE_THREADS" = "yes"; then
39595 cat >>confdefs.h <<\_ACEOF
39596#define wxUSE_THREADS 1
39597_ACEOF
39598
39599
39600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39601else
39602 if test "$ac_cv_func_strtok_r" = "yes"; then
39603 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39604echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39605 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39606 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39607 echo "$as_me:$LINENO: result: yes" >&5
39608echo "${ECHO_T}yes" >&6
39609 else
39610 echo "$as_me:$LINENO: result: no" >&5
39611echo "${ECHO_T}no" >&6
39612 fi
39613 fi
39614fi
39615
39616if test "$WXGTK20" = 1 ; then
39617 cat >>confdefs.h <<_ACEOF
39618#define __WXGTK20__ $WXGTK20
39619_ACEOF
39620
39621 WXGTK12=1
39622fi
39623
39624if test "$WXGTK12" = 1 ; then
39625 cat >>confdefs.h <<_ACEOF
39626#define __WXGTK12__ $WXGTK12
39627_ACEOF
39628
39629fi
39630
39631if test "$WXGTK127" = 1 ; then
39632 cat >>confdefs.h <<_ACEOF
39633#define __WXGTK127__ $WXGTK127
39634_ACEOF
39635
39636fi
39637
39638if test "$WXGPE" = 1 ; then
39639 cat >>confdefs.h <<_ACEOF
39640#define __WXGPE__ $WXGPE
39641_ACEOF
39642
39643fi
39644
39645DEBUG_CFLAGS=
39646if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39647 DEBUG_CFLAGS="-g"
39648 wxUSE_OPTIMISE=no
39649fi
39650
39651if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39652 wxUSE_DEBUG_INFO=yes
39653 if test "$GCC" = yes; then
39654 DEBUG_CFLAGS="-ggdb"
39655 fi
39656fi
39657
39658if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39659 cat >>confdefs.h <<\_ACEOF
39660#define WXDEBUG 1
39661_ACEOF
39662
39663 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39664else
39665 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
39666 if test "x$wxGTK_VERSION" = "x1" ; then
39667 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
39668 fi
004ee6da
RL
39669 fi
39670fi
39671
39672if test "$wxUSE_MEM_TRACING" = "yes" ; then
39673 cat >>confdefs.h <<\_ACEOF
39674#define wxUSE_MEMORY_TRACING 1
39675_ACEOF
39676
39677 cat >>confdefs.h <<\_ACEOF
39678#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39679_ACEOF
39680
39681 cat >>confdefs.h <<\_ACEOF
39682#define wxUSE_DEBUG_NEW_ALWAYS 1
39683_ACEOF
39684
39685 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39686fi
39687
39688if test "$wxUSE_DMALLOC" = "yes" ; then
39689 DMALLOC_LIBS="-ldmallocthcxx"
39690fi
39691
39692PROFILE_FLAGS=
39693if test "$wxUSE_PROFILE" = "yes" ; then
39694 PROFILE_FLAGS=" -pg"
39695fi
39696
39697if test "$GCC" = "yes" ; then
39698 if test "$wxUSE_NO_RTTI" = "yes" ; then
39699 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39700 fi
39701 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39702 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39703 fi
39704 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39705 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39706 fi
39707
39708 case "${host}" in
39709 powerpc*-*-aix* )
39710 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39711 ;;
39712 *-hppa* )
39713 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39714 ;;
39715 esac
39716fi
39717
39718OPTIMISE_CFLAGS=
39719if test "$wxUSE_OPTIMISE" = "no" ; then
39720 if test "$GCC" = yes ; then
39721 OPTIMISE_CFLAGS="-O0"
39722 fi
39723else
39724 if test "$GCC" = yes ; then
e5efa97e
VZ
39725 case "${host}" in
39726 *-pc-os2_emx | *-pc-os2-emx )
39727 OPTIMISE_CFLAGS="-O2"
39728 ;;
39729 *)
39730 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
39731 ;;
39732 esac
004ee6da
RL
39733 else
39734 OPTIMISE_CFLAGS="-O"
39735 fi
39736fi
39737
39738
39739if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39740 cat >>confdefs.h <<\_ACEOF
39741#define WXWIN_COMPATIBILITY_2_4 1
39742_ACEOF
39743
39744
39745 WXWIN_COMPATIBILITY_2_6="yes"
39746fi
39747
39748if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39749 cat >>confdefs.h <<\_ACEOF
39750#define WXWIN_COMPATIBILITY_2_6 1
39751_ACEOF
39752
39753fi
39754
39755
39756if test "$wxUSE_GUI" = "yes"; then
39757 cat >>confdefs.h <<\_ACEOF
39758#define wxUSE_GUI 1
39759_ACEOF
39760
39761
39762 fi
39763
39764
39765if test "$wxUSE_UNIX" = "yes"; then
39766 cat >>confdefs.h <<\_ACEOF
39767#define wxUSE_UNIX 1
39768_ACEOF
39769
39770fi
39771
39772
39773if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39774
39775 HAVE_DL_FUNCS=0
39776 HAVE_SHL_FUNCS=0
39777 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39778 if test "$USE_DARWIN" = 1; then
39779 HAVE_DL_FUNCS=1
39780 elif test "$USE_DOS" = 1; then
39781 HAVE_DL_FUNCS=0
39782 else
39783
39784for ac_func in dlopen
39785do
39786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39787echo "$as_me:$LINENO: checking for $ac_func" >&5
39788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39789if eval "test \"\${$as_ac_var+set}\" = set"; then
39790 echo $ECHO_N "(cached) $ECHO_C" >&6
39791else
39792 cat >conftest.$ac_ext <<_ACEOF
39793/* confdefs.h. */
39794_ACEOF
39795cat confdefs.h >>conftest.$ac_ext
39796cat >>conftest.$ac_ext <<_ACEOF
39797/* end confdefs.h. */
39798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39800#define $ac_func innocuous_$ac_func
39801
39802/* System header to define __stub macros and hopefully few prototypes,
39803 which can conflict with char $ac_func (); below.
39804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39805 <limits.h> exists even on freestanding compilers. */
39806
39807#ifdef __STDC__
39808# include <limits.h>
39809#else
39810# include <assert.h>
39811#endif
39812
39813#undef $ac_func
39814
39815/* Override any gcc2 internal prototype to avoid an error. */
39816#ifdef __cplusplus
39817extern "C"
39818{
39819#endif
39820/* We use char because int might match the return type of a gcc2
39821 builtin and then its argument prototype would still apply. */
39822char $ac_func ();
39823/* The GNU C library defines this for functions which it implements
39824 to always fail with ENOSYS. Some functions are actually named
39825 something starting with __ and the normal name is an alias. */
39826#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39827choke me
39828#else
39829char (*f) () = $ac_func;
39830#endif
39831#ifdef __cplusplus
39832}
39833#endif
39834
39835int
39836main ()
39837{
39838return f != $ac_func;
a848cd7e
SC
39839 ;
39840 return 0;
39841}
39842_ACEOF
39843rm -f conftest.$ac_objext conftest$ac_exeext
39844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39845 (eval $ac_link) 2>conftest.er1
a848cd7e 39846 ac_status=$?
ac1cb8d3
VS
39847 grep -v '^ *+' conftest.er1 >conftest.err
39848 rm -f conftest.er1
39849 cat conftest.err >&5
a848cd7e
SC
39850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851 (exit $ac_status); } &&
2b850ae1
RR
39852 { ac_try='test -z "$ac_c_werror_flag"
39853 || test ! -s conftest.err'
ac1cb8d3
VS
39854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39855 (eval $ac_try) 2>&5
39856 ac_status=$?
39857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39858 (exit $ac_status); }; } &&
39859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39861 (eval $ac_try) 2>&5
39862 ac_status=$?
39863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864 (exit $ac_status); }; }; then
39865 eval "$as_ac_var=yes"
39866else
39867 echo "$as_me: failed program was:" >&5
39868sed 's/^/| /' conftest.$ac_ext >&5
39869
39870eval "$as_ac_var=no"
39871fi
ac1cb8d3
VS
39872rm -f conftest.err conftest.$ac_objext \
39873 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39874fi
39875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39876echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39877if test `eval echo '${'$as_ac_var'}'` = yes; then
39878 cat >>confdefs.h <<_ACEOF
39879#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39880_ACEOF
39881
39882 cat >>confdefs.h <<\_ACEOF
39883#define HAVE_DLOPEN 1
39884_ACEOF
39885
39886 HAVE_DL_FUNCS=1
39887
39888else
39889
39890 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39891echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39892if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39893 echo $ECHO_N "(cached) $ECHO_C" >&6
39894else
39895 ac_check_lib_save_LIBS=$LIBS
39896LIBS="-ldl $LIBS"
39897cat >conftest.$ac_ext <<_ACEOF
39898/* confdefs.h. */
39899_ACEOF
39900cat confdefs.h >>conftest.$ac_ext
39901cat >>conftest.$ac_ext <<_ACEOF
39902/* end confdefs.h. */
39903
39904/* Override any gcc2 internal prototype to avoid an error. */
39905#ifdef __cplusplus
39906extern "C"
39907#endif
39908/* We use char because int might match the return type of a gcc2
39909 builtin and then its argument prototype would still apply. */
39910char dlopen ();
39911int
39912main ()
39913{
39914dlopen ();
39915 ;
39916 return 0;
39917}
39918_ACEOF
39919rm -f conftest.$ac_objext conftest$ac_exeext
39920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39921 (eval $ac_link) 2>conftest.er1
a848cd7e 39922 ac_status=$?
ac1cb8d3
VS
39923 grep -v '^ *+' conftest.er1 >conftest.err
39924 rm -f conftest.er1
39925 cat conftest.err >&5
a848cd7e
SC
39926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39927 (exit $ac_status); } &&
2b850ae1
RR
39928 { ac_try='test -z "$ac_c_werror_flag"
39929 || test ! -s conftest.err'
ac1cb8d3
VS
39930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39931 (eval $ac_try) 2>&5
39932 ac_status=$?
39933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39934 (exit $ac_status); }; } &&
39935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39937 (eval $ac_try) 2>&5
39938 ac_status=$?
39939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39940 (exit $ac_status); }; }; then
39941 ac_cv_lib_dl_dlopen=yes
39942else
39943 echo "$as_me: failed program was:" >&5
39944sed 's/^/| /' conftest.$ac_ext >&5
39945
39946ac_cv_lib_dl_dlopen=no
39947fi
ac1cb8d3
VS
39948rm -f conftest.err conftest.$ac_objext \
39949 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39950LIBS=$ac_check_lib_save_LIBS
39951fi
39952echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39953echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
39954if test $ac_cv_lib_dl_dlopen = yes; then
39955
39956 cat >>confdefs.h <<\_ACEOF
39957#define HAVE_DLOPEN 1
39958_ACEOF
39959
39960 HAVE_DL_FUNCS=1
39961 DL_LINK=" -ldl$DL_LINK"
39962
39963else
39964
39965
39966for ac_func in shl_load
39967do
39968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39969echo "$as_me:$LINENO: checking for $ac_func" >&5
39970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39971if eval "test \"\${$as_ac_var+set}\" = set"; then
39972 echo $ECHO_N "(cached) $ECHO_C" >&6
39973else
39974 cat >conftest.$ac_ext <<_ACEOF
39975/* confdefs.h. */
39976_ACEOF
39977cat confdefs.h >>conftest.$ac_ext
39978cat >>conftest.$ac_ext <<_ACEOF
39979/* end confdefs.h. */
ac1cb8d3
VS
39980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39982#define $ac_func innocuous_$ac_func
39983
a848cd7e
SC
39984/* System header to define __stub macros and hopefully few prototypes,
39985 which can conflict with char $ac_func (); below.
39986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39987 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39988
a848cd7e
SC
39989#ifdef __STDC__
39990# include <limits.h>
39991#else
39992# include <assert.h>
39993#endif
ac1cb8d3
VS
39994
39995#undef $ac_func
39996
a848cd7e
SC
39997/* Override any gcc2 internal prototype to avoid an error. */
39998#ifdef __cplusplus
39999extern "C"
40000{
40001#endif
40002/* We use char because int might match the return type of a gcc2
40003 builtin and then its argument prototype would still apply. */
40004char $ac_func ();
40005/* The GNU C library defines this for functions which it implements
40006 to always fail with ENOSYS. Some functions are actually named
40007 something starting with __ and the normal name is an alias. */
40008#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40009choke me
40010#else
40011char (*f) () = $ac_func;
40012#endif
40013#ifdef __cplusplus
40014}
40015#endif
40016
40017int
40018main ()
40019{
40020return f != $ac_func;
40021 ;
40022 return 0;
40023}
40024_ACEOF
40025rm -f conftest.$ac_objext conftest$ac_exeext
40026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40027 (eval $ac_link) 2>conftest.er1
a848cd7e 40028 ac_status=$?
ac1cb8d3
VS
40029 grep -v '^ *+' conftest.er1 >conftest.err
40030 rm -f conftest.er1
40031 cat conftest.err >&5
a848cd7e
SC
40032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40033 (exit $ac_status); } &&
2b850ae1
RR
40034 { ac_try='test -z "$ac_c_werror_flag"
40035 || test ! -s conftest.err'
ac1cb8d3
VS
40036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40037 (eval $ac_try) 2>&5
40038 ac_status=$?
40039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040 (exit $ac_status); }; } &&
40041 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40043 (eval $ac_try) 2>&5
40044 ac_status=$?
40045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046 (exit $ac_status); }; }; then
40047 eval "$as_ac_var=yes"
40048else
40049 echo "$as_me: failed program was:" >&5
40050sed 's/^/| /' conftest.$ac_ext >&5
40051
40052eval "$as_ac_var=no"
40053fi
ac1cb8d3
VS
40054rm -f conftest.err conftest.$ac_objext \
40055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40056fi
40057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40059if test `eval echo '${'$as_ac_var'}'` = yes; then
40060 cat >>confdefs.h <<_ACEOF
40061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40062_ACEOF
40063
40064 cat >>confdefs.h <<\_ACEOF
40065#define HAVE_SHL_LOAD 1
40066_ACEOF
40067
40068 HAVE_SHL_FUNCS=1
40069
40070else
40071
40072 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40073echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40074if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40075 echo $ECHO_N "(cached) $ECHO_C" >&6
40076else
40077 ac_check_lib_save_LIBS=$LIBS
40078LIBS="-lshl_load $LIBS"
40079cat >conftest.$ac_ext <<_ACEOF
40080/* confdefs.h. */
40081_ACEOF
40082cat confdefs.h >>conftest.$ac_ext
40083cat >>conftest.$ac_ext <<_ACEOF
40084/* end confdefs.h. */
40085
40086/* Override any gcc2 internal prototype to avoid an error. */
40087#ifdef __cplusplus
40088extern "C"
40089#endif
40090/* We use char because int might match the return type of a gcc2
40091 builtin and then its argument prototype would still apply. */
40092char dld ();
40093int
40094main ()
40095{
40096dld ();
40097 ;
40098 return 0;
40099}
40100_ACEOF
40101rm -f conftest.$ac_objext conftest$ac_exeext
40102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40103 (eval $ac_link) 2>conftest.er1
a848cd7e 40104 ac_status=$?
ac1cb8d3
VS
40105 grep -v '^ *+' conftest.er1 >conftest.err
40106 rm -f conftest.er1
40107 cat conftest.err >&5
a848cd7e
SC
40108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40109 (exit $ac_status); } &&
2b850ae1
RR
40110 { ac_try='test -z "$ac_c_werror_flag"
40111 || test ! -s conftest.err'
ac1cb8d3
VS
40112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40113 (eval $ac_try) 2>&5
40114 ac_status=$?
40115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40116 (exit $ac_status); }; } &&
40117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40119 (eval $ac_try) 2>&5
40120 ac_status=$?
40121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40122 (exit $ac_status); }; }; then
40123 ac_cv_lib_shl_load_dld=yes
40124else
40125 echo "$as_me: failed program was:" >&5
40126sed 's/^/| /' conftest.$ac_ext >&5
40127
40128ac_cv_lib_shl_load_dld=no
40129fi
ac1cb8d3
VS
40130rm -f conftest.err conftest.$ac_objext \
40131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40132LIBS=$ac_check_lib_save_LIBS
40133fi
40134echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40135echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40136if test $ac_cv_lib_shl_load_dld = yes; then
40137
40138 HAVE_SHL_FUNCS=1
40139 DL_LINK=" -ldld$DL_LINK"
40140
40141fi
40142
40143
40144fi
40145done
40146
40147
40148fi
40149
40150
40151fi
40152done
40153
40154
40155 if test "$HAVE_DL_FUNCS" = 1; then
40156
40157for ac_func in dlerror
40158do
40159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40160echo "$as_me:$LINENO: checking for $ac_func" >&5
40161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40162if eval "test \"\${$as_ac_var+set}\" = set"; then
40163 echo $ECHO_N "(cached) $ECHO_C" >&6
40164else
40165 cat >conftest.$ac_ext <<_ACEOF
40166/* confdefs.h. */
40167_ACEOF
40168cat confdefs.h >>conftest.$ac_ext
40169cat >>conftest.$ac_ext <<_ACEOF
40170/* end confdefs.h. */
ac1cb8d3
VS
40171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40173#define $ac_func innocuous_$ac_func
40174
a848cd7e
SC
40175/* System header to define __stub macros and hopefully few prototypes,
40176 which can conflict with char $ac_func (); below.
40177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40178 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40179
a848cd7e
SC
40180#ifdef __STDC__
40181# include <limits.h>
40182#else
40183# include <assert.h>
40184#endif
ac1cb8d3
VS
40185
40186#undef $ac_func
40187
a848cd7e
SC
40188/* Override any gcc2 internal prototype to avoid an error. */
40189#ifdef __cplusplus
40190extern "C"
40191{
40192#endif
40193/* We use char because int might match the return type of a gcc2
40194 builtin and then its argument prototype would still apply. */
40195char $ac_func ();
40196/* The GNU C library defines this for functions which it implements
40197 to always fail with ENOSYS. Some functions are actually named
40198 something starting with __ and the normal name is an alias. */
40199#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40200choke me
40201#else
40202char (*f) () = $ac_func;
40203#endif
40204#ifdef __cplusplus
40205}
40206#endif
40207
40208int
40209main ()
40210{
40211return f != $ac_func;
40212 ;
40213 return 0;
40214}
40215_ACEOF
40216rm -f conftest.$ac_objext conftest$ac_exeext
40217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40218 (eval $ac_link) 2>conftest.er1
a848cd7e 40219 ac_status=$?
ac1cb8d3
VS
40220 grep -v '^ *+' conftest.er1 >conftest.err
40221 rm -f conftest.er1
40222 cat conftest.err >&5
a848cd7e
SC
40223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40224 (exit $ac_status); } &&
2b850ae1
RR
40225 { ac_try='test -z "$ac_c_werror_flag"
40226 || test ! -s conftest.err'
ac1cb8d3
VS
40227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40228 (eval $ac_try) 2>&5
40229 ac_status=$?
40230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40231 (exit $ac_status); }; } &&
40232 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40234 (eval $ac_try) 2>&5
40235 ac_status=$?
40236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40237 (exit $ac_status); }; }; then
40238 eval "$as_ac_var=yes"
40239else
40240 echo "$as_me: failed program was:" >&5
40241sed 's/^/| /' conftest.$ac_ext >&5
40242
40243eval "$as_ac_var=no"
40244fi
ac1cb8d3
VS
40245rm -f conftest.err conftest.$ac_objext \
40246 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40247fi
40248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40249echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40250if test `eval echo '${'$as_ac_var'}'` = yes; then
40251 cat >>confdefs.h <<_ACEOF
40252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40253_ACEOF
40254 cat >>confdefs.h <<\_ACEOF
40255#define HAVE_DLERROR 1
40256_ACEOF
40257
40258else
40259
40260 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40261echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40262if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40263 echo $ECHO_N "(cached) $ECHO_C" >&6
40264else
40265 ac_check_lib_save_LIBS=$LIBS
40266LIBS="-ldl $LIBS"
40267cat >conftest.$ac_ext <<_ACEOF
40268/* confdefs.h. */
40269_ACEOF
40270cat confdefs.h >>conftest.$ac_ext
40271cat >>conftest.$ac_ext <<_ACEOF
40272/* end confdefs.h. */
40273
40274/* Override any gcc2 internal prototype to avoid an error. */
40275#ifdef __cplusplus
40276extern "C"
40277#endif
40278/* We use char because int might match the return type of a gcc2
40279 builtin and then its argument prototype would still apply. */
40280char dlerror ();
40281int
40282main ()
40283{
40284dlerror ();
40285 ;
40286 return 0;
40287}
40288_ACEOF
40289rm -f conftest.$ac_objext conftest$ac_exeext
40290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40291 (eval $ac_link) 2>conftest.er1
a848cd7e 40292 ac_status=$?
ac1cb8d3
VS
40293 grep -v '^ *+' conftest.er1 >conftest.err
40294 rm -f conftest.er1
40295 cat conftest.err >&5
a848cd7e
SC
40296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40297 (exit $ac_status); } &&
2b850ae1
RR
40298 { ac_try='test -z "$ac_c_werror_flag"
40299 || test ! -s conftest.err'
ac1cb8d3
VS
40300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40301 (eval $ac_try) 2>&5
40302 ac_status=$?
40303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40304 (exit $ac_status); }; } &&
40305 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40307 (eval $ac_try) 2>&5
40308 ac_status=$?
40309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40310 (exit $ac_status); }; }; then
40311 ac_cv_lib_dl_dlerror=yes
40312else
40313 echo "$as_me: failed program was:" >&5
40314sed 's/^/| /' conftest.$ac_ext >&5
40315
40316ac_cv_lib_dl_dlerror=no
40317fi
ac1cb8d3
VS
40318rm -f conftest.err conftest.$ac_objext \
40319 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40320LIBS=$ac_check_lib_save_LIBS
40321fi
40322echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40323echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40324if test $ac_cv_lib_dl_dlerror = yes; then
40325 cat >>confdefs.h <<\_ACEOF
40326#define HAVE_DLERROR 1
40327_ACEOF
40328
40329fi
40330
40331
40332
40333fi
40334done
40335
40336 fi
40337 fi
40338
40339 if test "$HAVE_DL_FUNCS" = 0; then
40340 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40341 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40342 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40343echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40344 wxUSE_DYNAMIC_LOADER=no
40345 wxUSE_DYNLIB_CLASS=no
40346 else
40347 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40348echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40349 fi
40350 fi
40351 fi
40352 fi
40353fi
40354
40355if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40356 cat >>confdefs.h <<\_ACEOF
40357#define wxUSE_DYNAMIC_LOADER 1
40358_ACEOF
40359
40360fi
40361if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40362 cat >>confdefs.h <<\_ACEOF
40363#define wxUSE_DYNLIB_CLASS 1
40364_ACEOF
40365
40366fi
40367
40368
40369
40370if test "$wxUSE_PLUGINS" = "yes" ; then
40371 if test "$wxUSE_SHARED" = "no" ; then
40372 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40373echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40374 wxUSE_PLUGINS=no
40375 fi
40376 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40377 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40378echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40379 wxUSE_PLUGINS=no
40380 fi
40381 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40382 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40383echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40384 wxUSE_PLUGINS=no
40385 fi
40386 if test "$wxUSE_PLUGINS" = "yes" ; then
40387 cat >>confdefs.h <<\_ACEOF
40388#define wxUSE_PLUGINS 1
40389_ACEOF
40390
40391 fi
40392fi
40393
40394
40395if test "$wxUSE_STL" = "yes"; then
40396 cat >>confdefs.h <<\_ACEOF
40397#define wxUSE_STL 1
40398_ACEOF
40399
40400fi
40401
40402if test "$wxUSE_APPLE_IEEE" = "yes"; then
40403 cat >>confdefs.h <<\_ACEOF
40404#define wxUSE_APPLE_IEEE 1
40405_ACEOF
40406
40407fi
40408
40409if test "$wxUSE_TIMER" = "yes"; then
40410 cat >>confdefs.h <<\_ACEOF
40411#define wxUSE_TIMER 1
40412_ACEOF
40413
40414fi
40415
9c112555 40416if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40417 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40418echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40419if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40420 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40421else
d12aef51
VZ
40422
40423 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40424/* confdefs.h. */
40425_ACEOF
40426cat confdefs.h >>conftest.$ac_ext
40427cat >>conftest.$ac_ext <<_ACEOF
40428/* end confdefs.h. */
d12aef51
VZ
40429
40430 #include <sys/soundcard.h>
40431
40432int
40433main ()
40434{
40435
40436 ioctl(0, SNDCTL_DSP_SYNC, 0);
40437
40438 ;
40439 return 0;
40440}
a848cd7e 40441_ACEOF
d12aef51
VZ
40442rm -f conftest.$ac_objext conftest$ac_exeext
40443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40444 (eval $ac_link) 2>conftest.er1
a848cd7e 40445 ac_status=$?
ac1cb8d3
VS
40446 grep -v '^ *+' conftest.er1 >conftest.err
40447 rm -f conftest.er1
40448 cat conftest.err >&5
a848cd7e
SC
40449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40450 (exit $ac_status); } &&
2b850ae1
RR
40451 { ac_try='test -z "$ac_c_werror_flag"
40452 || test ! -s conftest.err'
ac1cb8d3
VS
40453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40454 (eval $ac_try) 2>&5
40455 ac_status=$?
40456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40457 (exit $ac_status); }; } &&
d12aef51 40458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40460 (eval $ac_try) 2>&5
40461 ac_status=$?
40462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40463 (exit $ac_status); }; }; then
d12aef51 40464 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40465else
40466 echo "$as_me: failed program was:" >&5
40467sed 's/^/| /' conftest.$ac_ext >&5
40468
a848cd7e 40469
d12aef51
VZ
40470 saveLibs="$LIBS"
40471 LIBS="$saveLibs -lossaudio"
40472 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40473/* confdefs.h. */
40474_ACEOF
40475cat confdefs.h >>conftest.$ac_ext
40476cat >>conftest.$ac_ext <<_ACEOF
40477/* end confdefs.h. */
d12aef51
VZ
40478
40479 #include <sys/soundcard.h>
40480
40481int
40482main ()
40483{
40484
40485 ioctl(0, SNDCTL_DSP_SYNC, 0);
40486
40487 ;
40488 return 0;
40489}
a848cd7e 40490_ACEOF
d12aef51
VZ
40491rm -f conftest.$ac_objext conftest$ac_exeext
40492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40493 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40494 ac_status=$?
40495 grep -v '^ *+' conftest.er1 >conftest.err
40496 rm -f conftest.er1
40497 cat conftest.err >&5
40498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40499 (exit $ac_status); } &&
2b850ae1
RR
40500 { ac_try='test -z "$ac_c_werror_flag"
40501 || test ! -s conftest.err'
d12aef51
VZ
40502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40503 (eval $ac_try) 2>&5
40504 ac_status=$?
40505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40506 (exit $ac_status); }; } &&
40507 { ac_try='test -s conftest$ac_exeext'
40508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40509 (eval $ac_try) 2>&5
40510 ac_status=$?
40511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40512 (exit $ac_status); }; }; then
40513 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40514else
40515 echo "$as_me: failed program was:" >&5
40516sed 's/^/| /' conftest.$ac_ext >&5
40517
a848cd7e 40518
d12aef51
VZ
40519 LIBS="$saveLibs"
40520 ac_cv_header_sys_soundcard=no
40521
40522
a848cd7e 40523fi
d12aef51
VZ
40524rm -f conftest.err conftest.$ac_objext \
40525 conftest$ac_exeext conftest.$ac_ext
40526
a848cd7e
SC
40527
40528fi
d12aef51
VZ
40529rm -f conftest.err conftest.$ac_objext \
40530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40531
40532fi
d12aef51
VZ
40533echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40534echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40535
d12aef51
VZ
40536 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40537 cat >>confdefs.h <<\_ACEOF
40538#define HAVE_SYS_SOUNDCARD_H 1
40539_ACEOF
a848cd7e 40540
d12aef51
VZ
40541 else
40542 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40543 fi
9c112555
MW
40544fi
40545WITH_PLUGIN_SDL=0
40546if test "$wxUSE_SOUND" = "yes"; then
40547 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40548 if test "$wxUSE_LIBSDL" != "no"; then
40549
40550# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40551if test "${with_sdl_prefix+set}" = set; then
40552 withval="$with_sdl_prefix"
40553 sdl_prefix="$withval"
40554else
40555 sdl_prefix=""
40556fi;
40557
40558# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40559if test "${with_sdl_exec_prefix+set}" = set; then
40560 withval="$with_sdl_exec_prefix"
40561 sdl_exec_prefix="$withval"
40562else
40563 sdl_exec_prefix=""
40564fi;
40565# Check whether --enable-sdltest or --disable-sdltest was given.
40566if test "${enable_sdltest+set}" = set; then
40567 enableval="$enable_sdltest"
40568
40569else
40570 enable_sdltest=yes
40571fi;
40572
40573 if test x$sdl_exec_prefix != x ; then
40574 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40575 if test x${SDL_CONFIG+set} != xset ; then
40576 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40577 fi
40578 fi
40579 if test x$sdl_prefix != x ; then
40580 sdl_args="$sdl_args --prefix=$sdl_prefix"
40581 if test x${SDL_CONFIG+set} != xset ; then
40582 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40583 fi
40584 fi
40585
40586
40587 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40588 # Extract the first word of "sdl-config", so it can be a program name with args.
40589set dummy sdl-config; ac_word=$2
40590echo "$as_me:$LINENO: checking for $ac_word" >&5
40591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40592if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40593 echo $ECHO_N "(cached) $ECHO_C" >&6
40594else
40595 case $SDL_CONFIG in
40596 [\\/]* | ?:[\\/]*)
40597 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40598 ;;
40599 *)
40600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40601for as_dir in $PATH
40602do
40603 IFS=$as_save_IFS
40604 test -z "$as_dir" && as_dir=.
40605 for ac_exec_ext in '' $ac_executable_extensions; do
40606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40607 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40609 break 2
40610 fi
40611done
40612done
40613
40614 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40615 ;;
40616esac
40617fi
40618SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40619
40620if test -n "$SDL_CONFIG"; then
40621 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40622echo "${ECHO_T}$SDL_CONFIG" >&6
40623else
40624 echo "$as_me:$LINENO: result: no" >&5
40625echo "${ECHO_T}no" >&6
40626fi
40627
40628 min_sdl_version=1.2.0
40629 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40630echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40631 no_sdl=""
40632 if test "$SDL_CONFIG" = "no" ; then
40633 no_sdl=yes
40634 else
40635 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40636 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40637
40638 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40639 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40640 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40641 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40642 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40643 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40644 if test "x$enable_sdltest" = "xyes" ; then
40645 ac_save_CFLAGS="$CFLAGS"
94acd38e 40646 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40647 ac_save_LIBS="$LIBS"
40648 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40649 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40650 LIBS="$LIBS $SDL_LIBS"
40651 rm -f conf.sdltest
40652 if test "$cross_compiling" = yes; then
40653 echo $ac_n "cross compiling; assumed OK... $ac_c"
40654else
40655 cat >conftest.$ac_ext <<_ACEOF
40656/* confdefs.h. */
40657_ACEOF
40658cat confdefs.h >>conftest.$ac_ext
40659cat >>conftest.$ac_ext <<_ACEOF
40660/* end confdefs.h. */
40661
40662#include <stdio.h>
40663#include <stdlib.h>
40664#include <string.h>
40665#include "SDL.h"
40666
40667char*
40668my_strdup (char *str)
40669{
40670 char *new_str;
40671
40672 if (str)
40673 {
40674 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40675 strcpy (new_str, str);
40676 }
40677 else
40678 new_str = NULL;
40679
40680 return new_str;
40681}
40682
40683int main (int argc, char *argv[])
40684{
40685 int major, minor, micro;
40686 char *tmp_version;
40687
40688 /* This hangs on some systems (?)
40689 system ("touch conf.sdltest");
40690 */
40691 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40692
40693 /* HP/UX 9 (%@#!) writes to sscanf strings */
40694 tmp_version = my_strdup("$min_sdl_version");
40695 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40696 printf("%s, bad version string\n", "$min_sdl_version");
40697 exit(1);
40698 }
40699
40700 if (($sdl_major_version > major) ||
40701 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40702 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40703 {
40704 return 0;
40705 }
40706 else
40707 {
40708 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40709 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40710 printf("*** best to upgrade to the required version.\n");
40711 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40712 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40713 printf("*** config.cache before re-running configure\n");
40714 return 1;
40715 }
40716}
40717
40718
40719_ACEOF
40720rm -f conftest$ac_exeext
40721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40722 (eval $ac_link) 2>&5
40723 ac_status=$?
40724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40727 (eval $ac_try) 2>&5
40728 ac_status=$?
40729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730 (exit $ac_status); }; }; then
40731 :
40732else
40733 echo "$as_me: program exited with status $ac_status" >&5
40734echo "$as_me: failed program was:" >&5
40735sed 's/^/| /' conftest.$ac_ext >&5
40736
40737( exit $ac_status )
40738no_sdl=yes
40739fi
ac1cb8d3 40740rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40741fi
40742 CFLAGS="$ac_save_CFLAGS"
94acd38e 40743 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40744 LIBS="$ac_save_LIBS"
40745 fi
40746 fi
40747 if test "x$no_sdl" = x ; then
40748 echo "$as_me:$LINENO: result: yes" >&5
40749echo "${ECHO_T}yes" >&6
40750
40751 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40752 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40753 cat >>confdefs.h <<\_ACEOF
40754#define wxUSE_LIBSDL 1
40755_ACEOF
40756
40757
40758 else
40759 echo "$as_me:$LINENO: result: no" >&5
40760echo "${ECHO_T}no" >&6
40761 if test "$SDL_CONFIG" = "no" ; then
40762 echo "*** The sdl-config script installed by SDL could not be found"
40763 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40764 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40765 echo "*** full path to sdl-config."
40766 else
40767 if test -f conf.sdltest ; then
40768 :
40769 else
40770 echo "*** Could not run SDL test program, checking why..."
40771 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40772 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40773 LIBS="$LIBS $SDL_LIBS"
40774 cat >conftest.$ac_ext <<_ACEOF
40775/* confdefs.h. */
40776_ACEOF
40777cat confdefs.h >>conftest.$ac_ext
40778cat >>conftest.$ac_ext <<_ACEOF
40779/* end confdefs.h. */
40780
40781#include <stdio.h>
40782#include "SDL.h"
40783
40784int main(int argc, char *argv[])
40785{ return 0; }
40786#undef main
40787#define main K_and_R_C_main
40788
40789int
40790main ()
40791{
40792 return 0;
40793 ;
40794 return 0;
40795}
40796_ACEOF
40797rm -f conftest.$ac_objext conftest$ac_exeext
40798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40799 (eval $ac_link) 2>conftest.er1
a848cd7e 40800 ac_status=$?
ac1cb8d3
VS
40801 grep -v '^ *+' conftest.er1 >conftest.err
40802 rm -f conftest.er1
40803 cat conftest.err >&5
a848cd7e
SC
40804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805 (exit $ac_status); } &&
2b850ae1
RR
40806 { ac_try='test -z "$ac_c_werror_flag"
40807 || test ! -s conftest.err'
ac1cb8d3
VS
40808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40809 (eval $ac_try) 2>&5
40810 ac_status=$?
40811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812 (exit $ac_status); }; } &&
40813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40815 (eval $ac_try) 2>&5
40816 ac_status=$?
40817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818 (exit $ac_status); }; }; then
40819 echo "*** The test program compiled, but did not run. This usually means"
40820 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40821 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40822 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40823 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40824 echo "*** is required on your system"
40825 echo "***"
40826 echo "*** If you have an old version installed, it is best to remove it, although"
40827 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40828else
40829 echo "$as_me: failed program was:" >&5
40830sed 's/^/| /' conftest.$ac_ext >&5
40831
40832 echo "*** The test program failed to compile or link. See the file config.log for the"
40833 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40834 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40835 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40836fi
ac1cb8d3
VS
40837rm -f conftest.err conftest.$ac_objext \
40838 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40839 CFLAGS="$ac_save_CFLAGS"
94acd38e 40840 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40841 LIBS="$ac_save_LIBS"
40842 fi
40843 fi
40844 SDL_CFLAGS=""
40845 SDL_LIBS=""
40846 wxUSE_LIBSDL="no"
40847 fi
40848
40849
40850 rm -f conf.sdltest
40851
40852 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40853 WITH_PLUGIN_SDL=1
40854 fi
40855 fi
40856 fi
40857
40858 cat >>confdefs.h <<\_ACEOF
40859#define wxUSE_SOUND 1
40860_ACEOF
40861
40862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40863fi
40864
d1c38808
VZ
40865if test "$WXGTK20" = 1; then
40866 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40867 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40868
40869
40870 succeeded=no
40871
40872 if test -z "$PKG_CONFIG"; then
40873 # Extract the first word of "pkg-config", so it can be a program name with args.
40874set dummy pkg-config; ac_word=$2
40875echo "$as_me:$LINENO: checking for $ac_word" >&5
40876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40877if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40878 echo $ECHO_N "(cached) $ECHO_C" >&6
40879else
40880 case $PKG_CONFIG in
40881 [\\/]* | ?:[\\/]*)
40882 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40883 ;;
40884 *)
40885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40886for as_dir in $PATH
40887do
40888 IFS=$as_save_IFS
40889 test -z "$as_dir" && as_dir=.
40890 for ac_exec_ext in '' $ac_executable_extensions; do
40891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40892 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40894 break 2
40895 fi
40896done
40897done
40898
40899 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40900 ;;
40901esac
40902fi
40903PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40904
40905if test -n "$PKG_CONFIG"; then
40906 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40907echo "${ECHO_T}$PKG_CONFIG" >&6
40908else
40909 echo "$as_me:$LINENO: result: no" >&5
40910echo "${ECHO_T}no" >&6
40911fi
40912
40913 fi
40914
40915 if test "$PKG_CONFIG" = "no" ; then
40916 echo "*** The pkg-config script could not be found. Make sure it is"
40917 echo "*** in your path, or set the PKG_CONFIG environment variable"
40918 echo "*** to the full path to pkg-config."
40919 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40920 else
40921 PKG_CONFIG_MIN_VERSION=0.9.0
40922 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
40923 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
40924echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 40925
ffa762ff 40926 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
40927 echo "$as_me:$LINENO: result: yes" >&5
40928echo "${ECHO_T}yes" >&6
40929 succeeded=yes
40930
40931 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
40932echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 40933 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40934 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
40935echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
40936
40937 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
40938echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 40939 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40940 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
40941echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
40942 else
40943 LIBGNOMEPRINTUI_CFLAGS=""
40944 LIBGNOMEPRINTUI_LIBS=""
40945 ## If we have a custom action on failure, don't print errors, but
40946 ## do set a variable so people can do so.
ffa762ff 40947 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40948
40949 fi
40950
40951
40952
40953 else
40954 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40955 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40956 fi
40957 fi
40958
40959 if test $succeeded = yes; then
40960
c92ad099 40961 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
40962 cat >>confdefs.h <<\_ACEOF
40963#define wxUSE_LIBGNOMEPRINT 1
40964_ACEOF
40965
40966
40967 else
40968
40969 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
40970echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
40971 wxUSE_LIBGNOMEPRINT="no"
40972
40973
40974 fi
40975
40976 fi
40977 fi
40978fi
40979
2b850ae1
RR
40980if test "$WXGTK20" = 1; then
40981 if test "$wxUSE_MIMETYPE" = "yes" ; then
40982 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
40983
40984
40985 succeeded=no
40986
40987 if test -z "$PKG_CONFIG"; then
40988 # Extract the first word of "pkg-config", so it can be a program name with args.
40989set dummy pkg-config; ac_word=$2
40990echo "$as_me:$LINENO: checking for $ac_word" >&5
40991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40992if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40993 echo $ECHO_N "(cached) $ECHO_C" >&6
40994else
40995 case $PKG_CONFIG in
40996 [\\/]* | ?:[\\/]*)
40997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40998 ;;
40999 *)
41000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41001for as_dir in $PATH
41002do
41003 IFS=$as_save_IFS
41004 test -z "$as_dir" && as_dir=.
41005 for ac_exec_ext in '' $ac_executable_extensions; do
41006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41009 break 2
41010 fi
41011done
41012done
41013
41014 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41015 ;;
41016esac
41017fi
41018PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41019
41020if test -n "$PKG_CONFIG"; then
41021 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41022echo "${ECHO_T}$PKG_CONFIG" >&6
41023else
41024 echo "$as_me:$LINENO: result: no" >&5
41025echo "${ECHO_T}no" >&6
41026fi
41027
41028 fi
41029
41030 if test "$PKG_CONFIG" = "no" ; then
41031 echo "*** The pkg-config script could not be found. Make sure it is"
41032 echo "*** in your path, or set the PKG_CONFIG environment variable"
41033 echo "*** to the full path to pkg-config."
41034 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41035 else
41036 PKG_CONFIG_MIN_VERSION=0.9.0
41037 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41038 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41039echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41040
41041 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41042 echo "$as_me:$LINENO: result: yes" >&5
41043echo "${ECHO_T}yes" >&6
41044 succeeded=yes
41045
41046 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41047echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41048 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41049 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41050echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41051
41052 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41053echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41054 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41055 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41056echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41057 else
41058 GNOMEVFS_CFLAGS=""
41059 GNOMEVFS_LIBS=""
41060 ## If we have a custom action on failure, don't print errors, but
41061 ## do set a variable so people can do so.
41062 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41063
41064 fi
41065
41066
41067
41068 else
41069 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41070 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41071 fi
41072 fi
41073
41074 if test $succeeded = yes; then
41075
41076 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41077 cat >>confdefs.h <<\_ACEOF
41078#define wxUSE_LIBGNOMEVFS 1
41079_ACEOF
41080
41081
41082 else
41083
41084 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41085echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41086 wxUSE_LIBGNOMEVFS="no"
41087
41088
41089 fi
41090
41091 fi
41092 fi
41093fi
41094
3565d135
RR
41095if test "$WXGTK20" = 1; then
41096 if test "$wxUSE_LIBHILDON" = "yes" ; then
41097
41098 succeeded=no
41099
41100 if test -z "$PKG_CONFIG"; then
41101 # Extract the first word of "pkg-config", so it can be a program name with args.
41102set dummy pkg-config; ac_word=$2
41103echo "$as_me:$LINENO: checking for $ac_word" >&5
41104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41105if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41106 echo $ECHO_N "(cached) $ECHO_C" >&6
41107else
41108 case $PKG_CONFIG in
41109 [\\/]* | ?:[\\/]*)
41110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41111 ;;
41112 *)
41113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41114for as_dir in $PATH
41115do
41116 IFS=$as_save_IFS
41117 test -z "$as_dir" && as_dir=.
41118 for ac_exec_ext in '' $ac_executable_extensions; do
41119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41122 break 2
41123 fi
41124done
41125done
41126
41127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41128 ;;
41129esac
41130fi
41131PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41132
41133if test -n "$PKG_CONFIG"; then
41134 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41135echo "${ECHO_T}$PKG_CONFIG" >&6
41136else
41137 echo "$as_me:$LINENO: result: no" >&5
41138echo "${ECHO_T}no" >&6
41139fi
41140
41141 fi
41142
41143 if test "$PKG_CONFIG" = "no" ; then
41144 echo "*** The pkg-config script could not be found. Make sure it is"
41145 echo "*** in your path, or set the PKG_CONFIG environment variable"
41146 echo "*** to the full path to pkg-config."
41147 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41148 else
41149 PKG_CONFIG_MIN_VERSION=0.9.0
41150 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41151 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41152echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41153
41154 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41155 echo "$as_me:$LINENO: result: yes" >&5
41156echo "${ECHO_T}yes" >&6
41157 succeeded=yes
41158
41159 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41160echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41161 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41162 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41163echo "${ECHO_T}$HILDON_CFLAGS" >&6
41164
41165 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41166echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41167 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41168 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41169echo "${ECHO_T}$HILDON_LIBS" >&6
41170 else
41171 HILDON_CFLAGS=""
41172 HILDON_LIBS=""
41173 ## If we have a custom action on failure, don't print errors, but
41174 ## do set a variable so people can do so.
41175 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41176
41177 fi
41178
41179
41180
41181 else
41182 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41183 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41184 fi
41185 fi
41186
41187 if test $succeeded = yes; then
41188
41189 EXTRALIBS_HILDON="$HILDON_LIBS"
41190 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41191 cat >>confdefs.h <<\_ACEOF
41192#define wxUSE_LIBHILDON 1
41193_ACEOF
41194
41195
41196 else
41197
41198 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41199echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41200 wxUSE_LIBHILDON="no"
41201
41202
41203 fi
41204
41205 fi
41206fi
d1c38808 41207
a848cd7e
SC
41208if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41209 cat >>confdefs.h <<\_ACEOF
41210#define wxUSE_CMDLINE_PARSER 1
41211_ACEOF
41212
41213fi
41214
41215if test "$wxUSE_STOPWATCH" = "yes"; then
41216 cat >>confdefs.h <<\_ACEOF
41217#define wxUSE_STOPWATCH 1
41218_ACEOF
41219
41220fi
41221
41222if test "$wxUSE_DATETIME" = "yes"; then
41223 cat >>confdefs.h <<\_ACEOF
41224#define wxUSE_DATETIME 1
41225_ACEOF
41226
41227fi
41228
41229if test "$wxUSE_FILE" = "yes"; then
41230 cat >>confdefs.h <<\_ACEOF
41231#define wxUSE_FILE 1
41232_ACEOF
41233
41234fi
41235
41236if test "$wxUSE_FFILE" = "yes"; then
41237 cat >>confdefs.h <<\_ACEOF
41238#define wxUSE_FFILE 1
41239_ACEOF
41240
41241fi
41242
41243if test "$wxUSE_FILESYSTEM" = "yes"; then
41244 cat >>confdefs.h <<\_ACEOF
41245#define wxUSE_FILESYSTEM 1
41246_ACEOF
41247
41248fi
41249
41250if test "$wxUSE_FS_ZIP" = "yes"; then
41251 cat >>confdefs.h <<\_ACEOF
41252#define wxUSE_FS_ZIP 1
41253_ACEOF
41254
41255fi
41256
9e8e867f 41257if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41258 cat >>confdefs.h <<\_ACEOF
9e8e867f 41259#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41260_ACEOF
41261
41262fi
41263
41264if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41265 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41266 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41267echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41268 elif test "$wxUSE_ZLIB" = "no"; then
41269 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41270echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41271 else
41272 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41273#define wxUSE_ZIPSTREAM 1
41274_ACEOF
41275
81f90336 41276 fi
a848cd7e
SC
41277fi
41278
a848cd7e 41279if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41280 if test "$USE_UNIX" != 1; then
41281 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41282echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41283 wxUSE_ON_FATAL_EXCEPTION=no
41284 else
41285 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41286#define wxUSE_ON_FATAL_EXCEPTION 1
41287_ACEOF
41288
18228ab4 41289 fi
a848cd7e
SC
41290fi
41291
eaff0f0d
VZ
41292if test "$wxUSE_STACKWALKER" = "yes"; then
41293 cat >>confdefs.h <<\_ACEOF
41294#define wxUSE_STACKWALKER 1
41295_ACEOF
41296
41297fi
41298
36b6448c 41299if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41300 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41301 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41302echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41303 wxUSE_DEBUGREPORT=no
41304 else
41305 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41306#define wxUSE_DEBUGREPORT 1
41307_ACEOF
41308
21dfc162
MW
41309 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41311 fi
dfe0c803 41312 fi
36b6448c
VZ
41313fi
41314
a848cd7e
SC
41315if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41316 cat >>confdefs.h <<\_ACEOF
41317#define wxUSE_SNGLINST_CHECKER 1
41318_ACEOF
41319
41320fi
41321
41322if test "$wxUSE_BUSYINFO" = "yes"; then
41323 cat >>confdefs.h <<\_ACEOF
41324#define wxUSE_BUSYINFO 1
41325_ACEOF
41326
41327fi
41328
41329if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41330 cat >>confdefs.h <<\_ACEOF
41331#define wxUSE_STD_IOSTREAM 1
41332_ACEOF
41333
41334fi
41335
59746b65
MW
41336if test "$wxUSE_STD_STRING" = "yes"; then
41337 cat >>confdefs.h <<\_ACEOF
41338#define wxUSE_STD_STRING 1
41339_ACEOF
41340
41341fi
41342
07158944
VZ
41343if test "$wxUSE_STDPATHS" = "yes"; then
41344 cat >>confdefs.h <<\_ACEOF
41345#define wxUSE_STDPATHS 1
41346_ACEOF
41347
41348fi
41349
a848cd7e
SC
41350if test "$wxUSE_TEXTBUFFER" = "yes"; then
41351 cat >>confdefs.h <<\_ACEOF
41352#define wxUSE_TEXTBUFFER 1
41353_ACEOF
41354
41355fi
41356
41357if test "$wxUSE_TEXTFILE" = "yes"; then
41358 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41359 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41360echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41361 else
41362 cat >>confdefs.h <<\_ACEOF
41363#define wxUSE_TEXTFILE 1
41364_ACEOF
41365
41366 fi
41367fi
41368
41369if test "$wxUSE_CONFIG" = "yes" ; then
41370 if test "$wxUSE_TEXTFILE" != "yes"; then
41371 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41372echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41373 else
41374 cat >>confdefs.h <<\_ACEOF
41375#define wxUSE_CONFIG 1
89be85c2
VS
41376_ACEOF
41377
41378 cat >>confdefs.h <<\_ACEOF
41379#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41380_ACEOF
41381
41382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41383 fi
41384fi
41385
41386if test "$wxUSE_INTL" = "yes" ; then
41387 if test "$wxUSE_FILE" != "yes"; then
41388 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41389echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41390 else
41391 cat >>confdefs.h <<\_ACEOF
41392#define wxUSE_INTL 1
41393_ACEOF
41394
41395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41396 GUIDIST="$GUIDIST INTL_DIST"
41397 fi
41398fi
41399
41400if test "$wxUSE_LOG" = "yes"; then
41401 cat >>confdefs.h <<\_ACEOF
41402#define wxUSE_LOG 1
41403_ACEOF
41404
41405
41406 if test "$wxUSE_LOGGUI" = "yes"; then
41407 cat >>confdefs.h <<\_ACEOF
41408#define wxUSE_LOGGUI 1
41409_ACEOF
41410
41411 fi
41412
41413 if test "$wxUSE_LOGWINDOW" = "yes"; then
41414 cat >>confdefs.h <<\_ACEOF
41415#define wxUSE_LOGWINDOW 1
41416_ACEOF
41417
41418 fi
41419
41420 if test "$wxUSE_LOGDIALOG" = "yes"; then
41421 cat >>confdefs.h <<\_ACEOF
41422#define wxUSE_LOG_DIALOG 1
41423_ACEOF
41424
41425 fi
0b78747f
MW
41426
41427 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41428fi
41429
41430if test "$wxUSE_LONGLONG" = "yes"; then
41431 cat >>confdefs.h <<\_ACEOF
41432#define wxUSE_LONGLONG 1
41433_ACEOF
41434
41435fi
41436
41437if test "$wxUSE_GEOMETRY" = "yes"; then
41438 cat >>confdefs.h <<\_ACEOF
41439#define wxUSE_GEOMETRY 1
41440_ACEOF
41441
41442fi
41443
a848cd7e
SC
41444if test "$wxUSE_STREAMS" = "yes" ; then
41445 cat >>confdefs.h <<\_ACEOF
41446#define wxUSE_STREAMS 1
41447_ACEOF
41448
41449fi
41450
41451
41452if test "$wxUSE_DATETIME" = "yes"; then
41453
41454for ac_func in strptime
41455do
41456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41457echo "$as_me:$LINENO: checking for $ac_func" >&5
41458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41459if eval "test \"\${$as_ac_var+set}\" = set"; then
41460 echo $ECHO_N "(cached) $ECHO_C" >&6
41461else
41462 cat >conftest.$ac_ext <<_ACEOF
41463/* confdefs.h. */
41464_ACEOF
41465cat confdefs.h >>conftest.$ac_ext
41466cat >>conftest.$ac_ext <<_ACEOF
41467/* end confdefs.h. */
ac1cb8d3
VS
41468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41470#define $ac_func innocuous_$ac_func
41471
a848cd7e
SC
41472/* System header to define __stub macros and hopefully few prototypes,
41473 which can conflict with char $ac_func (); below.
41474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41475 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41476
a848cd7e
SC
41477#ifdef __STDC__
41478# include <limits.h>
41479#else
41480# include <assert.h>
41481#endif
ac1cb8d3
VS
41482
41483#undef $ac_func
41484
a848cd7e
SC
41485/* Override any gcc2 internal prototype to avoid an error. */
41486#ifdef __cplusplus
41487extern "C"
41488{
41489#endif
41490/* We use char because int might match the return type of a gcc2
41491 builtin and then its argument prototype would still apply. */
41492char $ac_func ();
41493/* The GNU C library defines this for functions which it implements
41494 to always fail with ENOSYS. Some functions are actually named
41495 something starting with __ and the normal name is an alias. */
41496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41497choke me
41498#else
41499char (*f) () = $ac_func;
41500#endif
41501#ifdef __cplusplus
41502}
41503#endif
41504
41505int
41506main ()
41507{
41508return f != $ac_func;
41509 ;
41510 return 0;
41511}
41512_ACEOF
41513rm -f conftest.$ac_objext conftest$ac_exeext
41514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41515 (eval $ac_link) 2>conftest.er1
a848cd7e 41516 ac_status=$?
ac1cb8d3
VS
41517 grep -v '^ *+' conftest.er1 >conftest.err
41518 rm -f conftest.er1
41519 cat conftest.err >&5
a848cd7e
SC
41520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41521 (exit $ac_status); } &&
2b850ae1
RR
41522 { ac_try='test -z "$ac_c_werror_flag"
41523 || test ! -s conftest.err'
ac1cb8d3
VS
41524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41525 (eval $ac_try) 2>&5
41526 ac_status=$?
41527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41528 (exit $ac_status); }; } &&
41529 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41531 (eval $ac_try) 2>&5
41532 ac_status=$?
41533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41534 (exit $ac_status); }; }; then
41535 eval "$as_ac_var=yes"
41536else
41537 echo "$as_me: failed program was:" >&5
41538sed 's/^/| /' conftest.$ac_ext >&5
41539
41540eval "$as_ac_var=no"
41541fi
ac1cb8d3
VS
41542rm -f conftest.err conftest.$ac_objext \
41543 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41544fi
41545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41546echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41547if test `eval echo '${'$as_ac_var'}'` = yes; then
41548 cat >>confdefs.h <<_ACEOF
41549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41550_ACEOF
41551
41552fi
41553done
41554
f536f005
VZ
41555 if test "$ac_cv_func_strptime" = "yes"; then
41556 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41557echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41558if test "${wx_cv_func_strptime_decl+set}" = set; then
41559 echo $ECHO_N "(cached) $ECHO_C" >&6
41560else
41561
f536f005
VZ
41562 ac_ext=cc
41563ac_cpp='$CXXCPP $CPPFLAGS'
41564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41567
41568 cat >conftest.$ac_ext <<_ACEOF
41569/* confdefs.h. */
41570_ACEOF
41571cat confdefs.h >>conftest.$ac_ext
41572cat >>conftest.$ac_ext <<_ACEOF
41573/* end confdefs.h. */
41574
41575 #include <time.h>
41576
41577int
41578main ()
41579{
41580
41581 struct tm t;
41582 strptime("foo", "bar", &t);
41583
41584 ;
41585 return 0;
41586}
41587_ACEOF
41588rm -f conftest.$ac_objext
41589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41590 (eval $ac_compile) 2>conftest.er1
41591 ac_status=$?
41592 grep -v '^ *+' conftest.er1 >conftest.err
41593 rm -f conftest.er1
41594 cat conftest.err >&5
41595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41596 (exit $ac_status); } &&
2b850ae1
RR
41597 { ac_try='test -z "$ac_cxx_werror_flag"
41598 || test ! -s conftest.err'
f536f005
VZ
41599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41600 (eval $ac_try) 2>&5
41601 ac_status=$?
41602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41603 (exit $ac_status); }; } &&
41604 { ac_try='test -s conftest.$ac_objext'
41605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41606 (eval $ac_try) 2>&5
41607 ac_status=$?
41608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41609 (exit $ac_status); }; }; then
41610 wx_cv_func_strptime_decl=yes
41611else
41612 echo "$as_me: failed program was:" >&5
41613sed 's/^/| /' conftest.$ac_ext >&5
41614
41615wx_cv_func_strptime_decl=no
41616
41617fi
41618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41619 ac_ext=c
41620ac_cpp='$CPP $CPPFLAGS'
41621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41623ac_compiler_gnu=$ac_cv_c_compiler_gnu
41624
41625
41626
41627fi
41628echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41629echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41630 fi
41631 if test "$wx_cv_func_strptime_decl" = "yes"; then
41632 cat >>confdefs.h <<\_ACEOF
41633#define HAVE_STRPTIME_DECL 1
41634_ACEOF
41635
41636 fi
a848cd7e
SC
41637
41638 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41639echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41640if test "${wx_cv_var_timezone+set}" = set; then
41641 echo $ECHO_N "(cached) $ECHO_C" >&6
41642else
41643
41644 cat >conftest.$ac_ext <<_ACEOF
41645/* confdefs.h. */
41646_ACEOF
41647cat confdefs.h >>conftest.$ac_ext
41648cat >>conftest.$ac_ext <<_ACEOF
41649/* end confdefs.h. */
41650
41651 #include <time.h>
41652
41653int
41654main ()
41655{
41656
41657 int tz;
41658 tz = timezone;
41659
41660 ;
41661 return 0;
41662}
41663_ACEOF
41664rm -f conftest.$ac_objext
41665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41666 (eval $ac_compile) 2>conftest.er1
a848cd7e 41667 ac_status=$?
ac1cb8d3
VS
41668 grep -v '^ *+' conftest.er1 >conftest.err
41669 rm -f conftest.er1
41670 cat conftest.err >&5
a848cd7e
SC
41671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41672 (exit $ac_status); } &&
2b850ae1
RR
41673 { ac_try='test -z "$ac_c_werror_flag"
41674 || test ! -s conftest.err'
ac1cb8d3
VS
41675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41676 (eval $ac_try) 2>&5
41677 ac_status=$?
41678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41679 (exit $ac_status); }; } &&
41680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41682 (eval $ac_try) 2>&5
41683 ac_status=$?
41684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41685 (exit $ac_status); }; }; then
41686
41687 wx_cv_var_timezone=timezone
41688
41689else
41690 echo "$as_me: failed program was:" >&5
41691sed 's/^/| /' conftest.$ac_ext >&5
41692
41693
41694 cat >conftest.$ac_ext <<_ACEOF
41695/* confdefs.h. */
41696_ACEOF
41697cat confdefs.h >>conftest.$ac_ext
41698cat >>conftest.$ac_ext <<_ACEOF
41699/* end confdefs.h. */
41700
41701 #include <time.h>
41702
41703int
41704main ()
41705{
41706
41707 int tz;
41708 tz = _timezone;
41709
41710 ;
41711 return 0;
41712}
41713_ACEOF
41714rm -f conftest.$ac_objext
41715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41716 (eval $ac_compile) 2>conftest.er1
a848cd7e 41717 ac_status=$?
ac1cb8d3
VS
41718 grep -v '^ *+' conftest.er1 >conftest.err
41719 rm -f conftest.er1
41720 cat conftest.err >&5
a848cd7e
SC
41721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722 (exit $ac_status); } &&
2b850ae1
RR
41723 { ac_try='test -z "$ac_c_werror_flag"
41724 || test ! -s conftest.err'
ac1cb8d3
VS
41725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41726 (eval $ac_try) 2>&5
41727 ac_status=$?
41728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41729 (exit $ac_status); }; } &&
41730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41732 (eval $ac_try) 2>&5
41733 ac_status=$?
41734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41735 (exit $ac_status); }; }; then
41736
41737 wx_cv_var_timezone=_timezone
41738
41739else
41740 echo "$as_me: failed program was:" >&5
41741sed 's/^/| /' conftest.$ac_ext >&5
41742
41743
41744 cat >conftest.$ac_ext <<_ACEOF
41745/* confdefs.h. */
41746_ACEOF
41747cat confdefs.h >>conftest.$ac_ext
41748cat >>conftest.$ac_ext <<_ACEOF
41749/* end confdefs.h. */
41750
41751 #include <time.h>
41752
41753int
41754main ()
41755{
41756
41757 int tz;
41758 tz = __timezone;
41759
41760 ;
41761 return 0;
41762}
41763_ACEOF
41764rm -f conftest.$ac_objext
41765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41766 (eval $ac_compile) 2>conftest.er1
a848cd7e 41767 ac_status=$?
ac1cb8d3
VS
41768 grep -v '^ *+' conftest.er1 >conftest.err
41769 rm -f conftest.er1
41770 cat conftest.err >&5
a848cd7e
SC
41771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41772 (exit $ac_status); } &&
2b850ae1
RR
41773 { ac_try='test -z "$ac_c_werror_flag"
41774 || test ! -s conftest.err'
ac1cb8d3
VS
41775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41776 (eval $ac_try) 2>&5
41777 ac_status=$?
41778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41779 (exit $ac_status); }; } &&
41780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41782 (eval $ac_try) 2>&5
41783 ac_status=$?
41784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41785 (exit $ac_status); }; }; then
41786
41787 wx_cv_var_timezone=__timezone
41788
41789else
41790 echo "$as_me: failed program was:" >&5
41791sed 's/^/| /' conftest.$ac_ext >&5
41792
41793
41794 if test "$USE_DOS" = 0 ; then
41795 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41796echo "$as_me: WARNING: no timezone variable" >&2;}
41797 fi
41798
41799
41800fi
ac1cb8d3 41801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41802
41803
41804fi
ac1cb8d3 41805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41806
41807
41808fi
ac1cb8d3 41809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41810
41811
41812fi
41813echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41814echo "${ECHO_T}$wx_cv_var_timezone" >&6
41815
41816 if test "x$wx_cv_var_timezone" != x ; then
41817 cat >>confdefs.h <<_ACEOF
41818#define WX_TIMEZONE $wx_cv_var_timezone
41819_ACEOF
41820
41821 fi
41822
41823
41824for ac_func in localtime
41825do
41826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41827echo "$as_me:$LINENO: checking for $ac_func" >&5
41828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41829if eval "test \"\${$as_ac_var+set}\" = set"; then
41830 echo $ECHO_N "(cached) $ECHO_C" >&6
41831else
41832 cat >conftest.$ac_ext <<_ACEOF
41833/* confdefs.h. */
41834_ACEOF
41835cat confdefs.h >>conftest.$ac_ext
41836cat >>conftest.$ac_ext <<_ACEOF
41837/* end confdefs.h. */
ac1cb8d3
VS
41838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41840#define $ac_func innocuous_$ac_func
41841
a848cd7e
SC
41842/* System header to define __stub macros and hopefully few prototypes,
41843 which can conflict with char $ac_func (); below.
41844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41845 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41846
a848cd7e
SC
41847#ifdef __STDC__
41848# include <limits.h>
41849#else
41850# include <assert.h>
41851#endif
ac1cb8d3
VS
41852
41853#undef $ac_func
41854
a848cd7e
SC
41855/* Override any gcc2 internal prototype to avoid an error. */
41856#ifdef __cplusplus
41857extern "C"
41858{
41859#endif
41860/* We use char because int might match the return type of a gcc2
41861 builtin and then its argument prototype would still apply. */
41862char $ac_func ();
41863/* The GNU C library defines this for functions which it implements
41864 to always fail with ENOSYS. Some functions are actually named
41865 something starting with __ and the normal name is an alias. */
41866#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41867choke me
41868#else
41869char (*f) () = $ac_func;
41870#endif
41871#ifdef __cplusplus
41872}
41873#endif
41874
41875int
41876main ()
41877{
41878return f != $ac_func;
41879 ;
41880 return 0;
41881}
41882_ACEOF
41883rm -f conftest.$ac_objext conftest$ac_exeext
41884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41885 (eval $ac_link) 2>conftest.er1
a848cd7e 41886 ac_status=$?
ac1cb8d3
VS
41887 grep -v '^ *+' conftest.er1 >conftest.err
41888 rm -f conftest.er1
41889 cat conftest.err >&5
a848cd7e
SC
41890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41891 (exit $ac_status); } &&
2b850ae1
RR
41892 { ac_try='test -z "$ac_c_werror_flag"
41893 || test ! -s conftest.err'
ac1cb8d3
VS
41894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41895 (eval $ac_try) 2>&5
41896 ac_status=$?
41897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41898 (exit $ac_status); }; } &&
41899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41901 (eval $ac_try) 2>&5
41902 ac_status=$?
41903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41904 (exit $ac_status); }; }; then
41905 eval "$as_ac_var=yes"
41906else
41907 echo "$as_me: failed program was:" >&5
41908sed 's/^/| /' conftest.$ac_ext >&5
41909
41910eval "$as_ac_var=no"
41911fi
ac1cb8d3
VS
41912rm -f conftest.err conftest.$ac_objext \
41913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41914fi
41915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41917if test `eval echo '${'$as_ac_var'}'` = yes; then
41918 cat >>confdefs.h <<_ACEOF
41919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41920_ACEOF
41921
41922fi
41923done
41924
41925
41926 if test "$ac_cv_func_localtime" = "yes"; then
41927 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41928echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41929if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41930 echo $ECHO_N "(cached) $ECHO_C" >&6
41931else
41932
41933 cat >conftest.$ac_ext <<_ACEOF
41934/* confdefs.h. */
41935_ACEOF
41936cat confdefs.h >>conftest.$ac_ext
41937cat >>conftest.$ac_ext <<_ACEOF
41938/* end confdefs.h. */
41939
41940 #include <time.h>
41941
41942int
41943main ()
41944{
41945
41946 struct tm tm;
41947 tm.tm_gmtoff++;
41948
41949 ;
41950 return 0;
41951}
41952_ACEOF
41953rm -f conftest.$ac_objext
41954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41955 (eval $ac_compile) 2>conftest.er1
a848cd7e 41956 ac_status=$?
ac1cb8d3
VS
41957 grep -v '^ *+' conftest.er1 >conftest.err
41958 rm -f conftest.er1
41959 cat conftest.err >&5
a848cd7e
SC
41960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41961 (exit $ac_status); } &&
2b850ae1
RR
41962 { ac_try='test -z "$ac_c_werror_flag"
41963 || test ! -s conftest.err'
ac1cb8d3
VS
41964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41965 (eval $ac_try) 2>&5
41966 ac_status=$?
41967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41968 (exit $ac_status); }; } &&
41969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41971 (eval $ac_try) 2>&5
41972 ac_status=$?
41973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41974 (exit $ac_status); }; }; then
41975
41976 wx_cv_struct_tm_has_gmtoff=yes
41977
41978else
41979 echo "$as_me: failed program was:" >&5
41980sed 's/^/| /' conftest.$ac_ext >&5
41981
41982wx_cv_struct_tm_has_gmtoff=no
41983
41984fi
ac1cb8d3 41985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41986
41987fi
41988echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
41989echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
41990 fi
41991
41992 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
41993 cat >>confdefs.h <<\_ACEOF
41994#define WX_GMTOFF_IN_TM 1
41995_ACEOF
41996
41997 fi
41998
41999
42000
42001for ac_func in gettimeofday ftime
42002do
42003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42004echo "$as_me:$LINENO: checking for $ac_func" >&5
42005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42006if eval "test \"\${$as_ac_var+set}\" = set"; then
42007 echo $ECHO_N "(cached) $ECHO_C" >&6
42008else
42009 cat >conftest.$ac_ext <<_ACEOF
42010/* confdefs.h. */
42011_ACEOF
42012cat confdefs.h >>conftest.$ac_ext
42013cat >>conftest.$ac_ext <<_ACEOF
42014/* end confdefs.h. */
ac1cb8d3
VS
42015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42017#define $ac_func innocuous_$ac_func
42018
a848cd7e
SC
42019/* System header to define __stub macros and hopefully few prototypes,
42020 which can conflict with char $ac_func (); below.
42021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42022 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42023
a848cd7e
SC
42024#ifdef __STDC__
42025# include <limits.h>
42026#else
42027# include <assert.h>
42028#endif
ac1cb8d3
VS
42029
42030#undef $ac_func
42031
a848cd7e
SC
42032/* Override any gcc2 internal prototype to avoid an error. */
42033#ifdef __cplusplus
42034extern "C"
42035{
42036#endif
42037/* We use char because int might match the return type of a gcc2
42038 builtin and then its argument prototype would still apply. */
42039char $ac_func ();
42040/* The GNU C library defines this for functions which it implements
42041 to always fail with ENOSYS. Some functions are actually named
42042 something starting with __ and the normal name is an alias. */
42043#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42044choke me
42045#else
42046char (*f) () = $ac_func;
42047#endif
42048#ifdef __cplusplus
42049}
42050#endif
42051
42052int
42053main ()
42054{
42055return f != $ac_func;
42056 ;
42057 return 0;
42058}
42059_ACEOF
42060rm -f conftest.$ac_objext conftest$ac_exeext
42061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42062 (eval $ac_link) 2>conftest.er1
a848cd7e 42063 ac_status=$?
ac1cb8d3
VS
42064 grep -v '^ *+' conftest.er1 >conftest.err
42065 rm -f conftest.er1
42066 cat conftest.err >&5
a848cd7e
SC
42067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42068 (exit $ac_status); } &&
2b850ae1
RR
42069 { ac_try='test -z "$ac_c_werror_flag"
42070 || test ! -s conftest.err'
ac1cb8d3
VS
42071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42072 (eval $ac_try) 2>&5
42073 ac_status=$?
42074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42075 (exit $ac_status); }; } &&
42076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42078 (eval $ac_try) 2>&5
42079 ac_status=$?
42080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42081 (exit $ac_status); }; }; then
42082 eval "$as_ac_var=yes"
42083else
42084 echo "$as_me: failed program was:" >&5
42085sed 's/^/| /' conftest.$ac_ext >&5
42086
42087eval "$as_ac_var=no"
42088fi
ac1cb8d3
VS
42089rm -f conftest.err conftest.$ac_objext \
42090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42091fi
42092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42093echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42094if test `eval echo '${'$as_ac_var'}'` = yes; then
42095 cat >>confdefs.h <<_ACEOF
42096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42097_ACEOF
42098 break
42099fi
42100done
42101
42102
42103 if test "$ac_cv_func_gettimeofday" = "yes"; then
42104 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42105echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42106if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42107 echo $ECHO_N "(cached) $ECHO_C" >&6
42108else
42109
5ec3bc43 42110 ac_ext=cc
a848cd7e
SC
42111ac_cpp='$CXXCPP $CPPFLAGS'
42112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42115
42116
42117 cat >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 #include <sys/time.h>
42125 #include <unistd.h>
42126
42127int
42128main ()
42129{
42130
42131 struct timeval tv;
42132 gettimeofday(&tv, NULL);
42133
42134 ;
42135 return 0;
42136}
42137_ACEOF
42138rm -f conftest.$ac_objext
42139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42140 (eval $ac_compile) 2>conftest.er1
a848cd7e 42141 ac_status=$?
ac1cb8d3
VS
42142 grep -v '^ *+' conftest.er1 >conftest.err
42143 rm -f conftest.er1
42144 cat conftest.err >&5
a848cd7e
SC
42145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42146 (exit $ac_status); } &&
2b850ae1
RR
42147 { ac_try='test -z "$ac_cxx_werror_flag"
42148 || test ! -s conftest.err'
ac1cb8d3
VS
42149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42150 (eval $ac_try) 2>&5
42151 ac_status=$?
42152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42153 (exit $ac_status); }; } &&
42154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42156 (eval $ac_try) 2>&5
42157 ac_status=$?
42158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42159 (exit $ac_status); }; }; then
42160 wx_cv_func_gettimeofday_has_2_args=yes
42161else
42162 echo "$as_me: failed program was:" >&5
42163sed 's/^/| /' conftest.$ac_ext >&5
42164
42165cat >conftest.$ac_ext <<_ACEOF
42166/* confdefs.h. */
42167_ACEOF
42168cat confdefs.h >>conftest.$ac_ext
42169cat >>conftest.$ac_ext <<_ACEOF
42170/* end confdefs.h. */
42171
42172 #include <sys/time.h>
42173 #include <unistd.h>
42174
42175int
42176main ()
42177{
42178
42179 struct timeval tv;
42180 gettimeofday(&tv);
42181
42182 ;
42183 return 0;
42184}
42185_ACEOF
42186rm -f conftest.$ac_objext
42187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42188 (eval $ac_compile) 2>conftest.er1
a848cd7e 42189 ac_status=$?
ac1cb8d3
VS
42190 grep -v '^ *+' conftest.er1 >conftest.err
42191 rm -f conftest.er1
42192 cat conftest.err >&5
a848cd7e
SC
42193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42194 (exit $ac_status); } &&
2b850ae1
RR
42195 { ac_try='test -z "$ac_cxx_werror_flag"
42196 || test ! -s conftest.err'
ac1cb8d3
VS
42197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42198 (eval $ac_try) 2>&5
42199 ac_status=$?
42200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42201 (exit $ac_status); }; } &&
42202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42204 (eval $ac_try) 2>&5
42205 ac_status=$?
42206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42207 (exit $ac_status); }; }; then
42208 wx_cv_func_gettimeofday_has_2_args=no
42209else
42210 echo "$as_me: failed program was:" >&5
42211sed 's/^/| /' conftest.$ac_ext >&5
42212
42213
42214 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42215echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42216 wx_cv_func_gettimeofday_has_2_args=unknown
42217
42218
42219fi
ac1cb8d3 42220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42221
42222fi
ac1cb8d3 42223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42224 ac_ext=c
42225ac_cpp='$CPP $CPPFLAGS'
42226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42228ac_compiler_gnu=$ac_cv_c_compiler_gnu
42229
42230
42231fi
42232echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42233echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42234
42235 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42236 cat >>confdefs.h <<\_ACEOF
42237#define WX_GETTIMEOFDAY_NO_TZ 1
42238_ACEOF
42239
42240 fi
42241 fi
42242
42243 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42244fi
42245
42246
42247if test "$wxUSE_SOCKETS" = "yes"; then
42248 if test "$wxUSE_MGL" = "1"; then
42249 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42250echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42251 wxUSE_SOCKETS="no"
42252 fi
42253fi
42254
42255if test "$wxUSE_SOCKETS" = "yes"; then
42256 if test "$TOOLKIT" != "MSW"; then
42257 echo "$as_me:$LINENO: checking for socket" >&5
42258echo $ECHO_N "checking for socket... $ECHO_C" >&6
42259if test "${ac_cv_func_socket+set}" = set; then
42260 echo $ECHO_N "(cached) $ECHO_C" >&6
42261else
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. */
ac1cb8d3
VS
42268/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42270#define socket innocuous_socket
42271
a848cd7e
SC
42272/* System header to define __stub macros and hopefully few prototypes,
42273 which can conflict with char socket (); below.
42274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42275 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42276
a848cd7e
SC
42277#ifdef __STDC__
42278# include <limits.h>
42279#else
42280# include <assert.h>
42281#endif
ac1cb8d3
VS
42282
42283#undef socket
42284
a848cd7e
SC
42285/* Override any gcc2 internal prototype to avoid an error. */
42286#ifdef __cplusplus
42287extern "C"
42288{
42289#endif
42290/* We use char because int might match the return type of a gcc2
42291 builtin and then its argument prototype would still apply. */
42292char socket ();
42293/* The GNU C library defines this for functions which it implements
42294 to always fail with ENOSYS. Some functions are actually named
42295 something starting with __ and the normal name is an alias. */
42296#if defined (__stub_socket) || defined (__stub___socket)
42297choke me
42298#else
42299char (*f) () = socket;
42300#endif
42301#ifdef __cplusplus
42302}
42303#endif
42304
42305int
42306main ()
42307{
42308return f != socket;
42309 ;
42310 return 0;
42311}
42312_ACEOF
42313rm -f conftest.$ac_objext conftest$ac_exeext
42314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42315 (eval $ac_link) 2>conftest.er1
a848cd7e 42316 ac_status=$?
ac1cb8d3
VS
42317 grep -v '^ *+' conftest.er1 >conftest.err
42318 rm -f conftest.er1
42319 cat conftest.err >&5
a848cd7e
SC
42320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42321 (exit $ac_status); } &&
2b850ae1
RR
42322 { ac_try='test -z "$ac_c_werror_flag"
42323 || test ! -s conftest.err'
ac1cb8d3
VS
42324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42325 (eval $ac_try) 2>&5
42326 ac_status=$?
42327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42328 (exit $ac_status); }; } &&
42329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42331 (eval $ac_try) 2>&5
42332 ac_status=$?
42333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42334 (exit $ac_status); }; }; then
42335 ac_cv_func_socket=yes
42336else
42337 echo "$as_me: failed program was:" >&5
42338sed 's/^/| /' conftest.$ac_ext >&5
42339
42340ac_cv_func_socket=no
42341fi
ac1cb8d3
VS
42342rm -f conftest.err conftest.$ac_objext \
42343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42344fi
42345echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42346echo "${ECHO_T}$ac_cv_func_socket" >&6
42347if test $ac_cv_func_socket = yes; then
42348 :
42349else
42350
42351 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42352echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42353if test "${ac_cv_lib_socket_socket+set}" = set; then
42354 echo $ECHO_N "(cached) $ECHO_C" >&6
42355else
42356 ac_check_lib_save_LIBS=$LIBS
42357LIBS="-lsocket $LIBS"
42358cat >conftest.$ac_ext <<_ACEOF
42359/* confdefs.h. */
42360_ACEOF
42361cat confdefs.h >>conftest.$ac_ext
42362cat >>conftest.$ac_ext <<_ACEOF
42363/* end confdefs.h. */
42364
42365/* Override any gcc2 internal prototype to avoid an error. */
42366#ifdef __cplusplus
42367extern "C"
42368#endif
42369/* We use char because int might match the return type of a gcc2
42370 builtin and then its argument prototype would still apply. */
42371char socket ();
42372int
42373main ()
42374{
42375socket ();
42376 ;
42377 return 0;
42378}
42379_ACEOF
42380rm -f conftest.$ac_objext conftest$ac_exeext
42381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42382 (eval $ac_link) 2>conftest.er1
a848cd7e 42383 ac_status=$?
ac1cb8d3
VS
42384 grep -v '^ *+' conftest.er1 >conftest.err
42385 rm -f conftest.er1
42386 cat conftest.err >&5
a848cd7e
SC
42387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42388 (exit $ac_status); } &&
2b850ae1
RR
42389 { ac_try='test -z "$ac_c_werror_flag"
42390 || test ! -s conftest.err'
ac1cb8d3
VS
42391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42392 (eval $ac_try) 2>&5
42393 ac_status=$?
42394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42395 (exit $ac_status); }; } &&
42396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42398 (eval $ac_try) 2>&5
42399 ac_status=$?
42400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42401 (exit $ac_status); }; }; then
42402 ac_cv_lib_socket_socket=yes
42403else
42404 echo "$as_me: failed program was:" >&5
42405sed 's/^/| /' conftest.$ac_ext >&5
42406
42407ac_cv_lib_socket_socket=no
42408fi
ac1cb8d3
VS
42409rm -f conftest.err conftest.$ac_objext \
42410 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42411LIBS=$ac_check_lib_save_LIBS
42412fi
42413echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42414echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42415if test $ac_cv_lib_socket_socket = yes; then
42416 if test "$INET_LINK" != " -lsocket"; then
42417 INET_LINK="$INET_LINK -lsocket"
42418 fi
42419else
42420
42421 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42422echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42423 wxUSE_SOCKETS=no
42424
42425
42426fi
42427
42428
42429
42430fi
42431
42432 fi
42433fi
42434
42435if test "$wxUSE_SOCKETS" = "yes" ; then
42436 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
42437 ac_ext=cc
42438ac_cpp='$CXXCPP $CPPFLAGS'
42439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42442
42443 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42444echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42445if test "${wx_cv_type_getsockname3+set}" = set; then
42446 echo $ECHO_N "(cached) $ECHO_C" >&6
42447else
42448
42449 cat >conftest.$ac_ext <<_ACEOF
42450/* confdefs.h. */
42451_ACEOF
42452cat confdefs.h >>conftest.$ac_ext
42453cat >>conftest.$ac_ext <<_ACEOF
42454/* end confdefs.h. */
42455
42456 #include <sys/types.h>
42457 #include <sys/socket.h>
42458
42459int
42460main ()
42461{
42462
42463 socklen_t len;
42464 getsockname(0, 0, &len);
42465
42466 ;
42467 return 0;
42468}
42469_ACEOF
42470rm -f conftest.$ac_objext
42471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42472 (eval $ac_compile) 2>conftest.er1
a848cd7e 42473 ac_status=$?
ac1cb8d3
VS
42474 grep -v '^ *+' conftest.er1 >conftest.err
42475 rm -f conftest.er1
42476 cat conftest.err >&5
a848cd7e
SC
42477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42478 (exit $ac_status); } &&
2b850ae1
RR
42479 { ac_try='test -z "$ac_cxx_werror_flag"
42480 || test ! -s conftest.err'
ac1cb8d3
VS
42481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42482 (eval $ac_try) 2>&5
42483 ac_status=$?
42484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485 (exit $ac_status); }; } &&
42486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42488 (eval $ac_try) 2>&5
42489 ac_status=$?
42490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42491 (exit $ac_status); }; }; then
42492 wx_cv_type_getsockname3=socklen_t
42493else
42494 echo "$as_me: failed program was:" >&5
42495sed 's/^/| /' conftest.$ac_ext >&5
42496
42497
6459a506 42498 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42499 if test "$GCC" = yes ; then
c92ad099 42500 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42501 fi
42502
42503 cat >conftest.$ac_ext <<_ACEOF
42504/* confdefs.h. */
42505_ACEOF
42506cat confdefs.h >>conftest.$ac_ext
42507cat >>conftest.$ac_ext <<_ACEOF
42508/* end confdefs.h. */
42509
42510 #include <sys/types.h>
42511 #include <sys/socket.h>
42512
42513int
42514main ()
42515{
42516
42517 size_t len;
42518 getsockname(0, 0, &len);
42519
42520 ;
42521 return 0;
42522}
42523_ACEOF
42524rm -f conftest.$ac_objext
42525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42526 (eval $ac_compile) 2>conftest.er1
a848cd7e 42527 ac_status=$?
ac1cb8d3
VS
42528 grep -v '^ *+' conftest.er1 >conftest.err
42529 rm -f conftest.er1
42530 cat conftest.err >&5
a848cd7e
SC
42531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42532 (exit $ac_status); } &&
2b850ae1
RR
42533 { ac_try='test -z "$ac_cxx_werror_flag"
42534 || test ! -s conftest.err'
ac1cb8d3
VS
42535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42536 (eval $ac_try) 2>&5
42537 ac_status=$?
42538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42539 (exit $ac_status); }; } &&
42540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42542 (eval $ac_try) 2>&5
42543 ac_status=$?
42544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42545 (exit $ac_status); }; }; then
42546 wx_cv_type_getsockname3=size_t
42547else
42548 echo "$as_me: failed program was:" >&5
42549sed 's/^/| /' conftest.$ac_ext >&5
42550
42551cat >conftest.$ac_ext <<_ACEOF
42552/* confdefs.h. */
42553_ACEOF
42554cat confdefs.h >>conftest.$ac_ext
42555cat >>conftest.$ac_ext <<_ACEOF
42556/* end confdefs.h. */
42557
42558 #include <sys/types.h>
42559 #include <sys/socket.h>
42560
42561int
42562main ()
42563{
42564
42565 int len;
42566 getsockname(0, 0, &len);
42567
42568 ;
42569 return 0;
42570}
42571_ACEOF
42572rm -f conftest.$ac_objext
42573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42574 (eval $ac_compile) 2>conftest.er1
a848cd7e 42575 ac_status=$?
ac1cb8d3
VS
42576 grep -v '^ *+' conftest.er1 >conftest.err
42577 rm -f conftest.er1
42578 cat conftest.err >&5
a848cd7e
SC
42579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580 (exit $ac_status); } &&
2b850ae1
RR
42581 { ac_try='test -z "$ac_cxx_werror_flag"
42582 || test ! -s conftest.err'
ac1cb8d3
VS
42583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42584 (eval $ac_try) 2>&5
42585 ac_status=$?
42586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587 (exit $ac_status); }; } &&
42588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42590 (eval $ac_try) 2>&5
42591 ac_status=$?
42592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42593 (exit $ac_status); }; }; then
42594 wx_cv_type_getsockname3=int
42595else
42596 echo "$as_me: failed program was:" >&5
42597sed 's/^/| /' conftest.$ac_ext >&5
42598
42599wx_cv_type_getsockname3=unknown
42600
42601fi
ac1cb8d3 42602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42603
42604fi
ac1cb8d3 42605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42606
6459a506 42607 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42608
42609
42610fi
ac1cb8d3 42611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42612
42613fi
42614echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42615echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42616
42617 if test "$wx_cv_type_getsockname3" = "unknown"; then
42618 wxUSE_SOCKETS=no
42619 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42620echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42621 else
42622 cat >>confdefs.h <<_ACEOF
9e03e02d 42623#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42624_ACEOF
42625
42626 fi
42627 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42628echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42629if test "${wx_cv_type_getsockopt5+set}" = set; then
42630 echo $ECHO_N "(cached) $ECHO_C" >&6
42631else
42632
42633 cat >conftest.$ac_ext <<_ACEOF
42634/* confdefs.h. */
42635_ACEOF
42636cat confdefs.h >>conftest.$ac_ext
42637cat >>conftest.$ac_ext <<_ACEOF
42638/* end confdefs.h. */
42639
42640 #include <sys/types.h>
42641 #include <sys/socket.h>
42642
42643int
42644main ()
42645{
42646
42647 socklen_t len;
42648 getsockopt(0, 0, 0, 0, &len);
42649
42650 ;
42651 return 0;
42652}
42653_ACEOF
42654rm -f conftest.$ac_objext
42655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42656 (eval $ac_compile) 2>conftest.er1
42657 ac_status=$?
42658 grep -v '^ *+' conftest.er1 >conftest.err
42659 rm -f conftest.er1
42660 cat conftest.err >&5
42661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42662 (exit $ac_status); } &&
2b850ae1
RR
42663 { ac_try='test -z "$ac_cxx_werror_flag"
42664 || test ! -s conftest.err'
5b674b9d
DE
42665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42666 (eval $ac_try) 2>&5
42667 ac_status=$?
42668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42669 (exit $ac_status); }; } &&
42670 { ac_try='test -s conftest.$ac_objext'
42671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42672 (eval $ac_try) 2>&5
42673 ac_status=$?
42674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42675 (exit $ac_status); }; }; then
42676 wx_cv_type_getsockopt5=socklen_t
42677else
42678 echo "$as_me: failed program was:" >&5
42679sed 's/^/| /' conftest.$ac_ext >&5
42680
42681
6459a506 42682 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42683 if test "$GCC" = yes ; then
c92ad099 42684 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42685 fi
42686
42687 cat >conftest.$ac_ext <<_ACEOF
42688/* confdefs.h. */
42689_ACEOF
42690cat confdefs.h >>conftest.$ac_ext
42691cat >>conftest.$ac_ext <<_ACEOF
42692/* end confdefs.h. */
42693
42694 #include <sys/types.h>
42695 #include <sys/socket.h>
42696
42697int
42698main ()
42699{
42700
42701 size_t len;
42702 getsockopt(0, 0, 0, 0, &len);
42703
42704 ;
42705 return 0;
42706}
42707_ACEOF
42708rm -f conftest.$ac_objext
42709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42710 (eval $ac_compile) 2>conftest.er1
42711 ac_status=$?
42712 grep -v '^ *+' conftest.er1 >conftest.err
42713 rm -f conftest.er1
42714 cat conftest.err >&5
42715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42716 (exit $ac_status); } &&
2b850ae1
RR
42717 { ac_try='test -z "$ac_cxx_werror_flag"
42718 || test ! -s conftest.err'
5b674b9d
DE
42719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42720 (eval $ac_try) 2>&5
42721 ac_status=$?
42722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42723 (exit $ac_status); }; } &&
42724 { ac_try='test -s conftest.$ac_objext'
42725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42726 (eval $ac_try) 2>&5
42727 ac_status=$?
42728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42729 (exit $ac_status); }; }; then
42730 wx_cv_type_getsockopt5=size_t
42731else
42732 echo "$as_me: failed program was:" >&5
42733sed 's/^/| /' conftest.$ac_ext >&5
42734
42735cat >conftest.$ac_ext <<_ACEOF
42736/* confdefs.h. */
42737_ACEOF
42738cat confdefs.h >>conftest.$ac_ext
42739cat >>conftest.$ac_ext <<_ACEOF
42740/* end confdefs.h. */
42741
42742 #include <sys/types.h>
42743 #include <sys/socket.h>
42744
42745int
42746main ()
42747{
42748
42749 int len;
42750 getsockopt(0, 0, 0, 0, &len);
42751
42752 ;
42753 return 0;
42754}
42755_ACEOF
42756rm -f conftest.$ac_objext
42757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42758 (eval $ac_compile) 2>conftest.er1
42759 ac_status=$?
42760 grep -v '^ *+' conftest.er1 >conftest.err
42761 rm -f conftest.er1
42762 cat conftest.err >&5
42763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42764 (exit $ac_status); } &&
2b850ae1
RR
42765 { ac_try='test -z "$ac_cxx_werror_flag"
42766 || test ! -s conftest.err'
5b674b9d
DE
42767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42768 (eval $ac_try) 2>&5
42769 ac_status=$?
42770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42771 (exit $ac_status); }; } &&
42772 { ac_try='test -s conftest.$ac_objext'
42773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42774 (eval $ac_try) 2>&5
42775 ac_status=$?
42776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42777 (exit $ac_status); }; }; then
42778 wx_cv_type_getsockopt5=int
42779else
42780 echo "$as_me: failed program was:" >&5
42781sed 's/^/| /' conftest.$ac_ext >&5
42782
42783wx_cv_type_getsockopt5=unknown
42784
42785fi
42786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42787
42788fi
42789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42790
6459a506 42791 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42792
42793
42794fi
42795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42796
42797fi
42798echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42799echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42800
42801 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42802 wxUSE_SOCKETS=no
42803 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42804echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42805 else
42806 cat >>confdefs.h <<_ACEOF
42807#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42808_ACEOF
42809
42810 fi
4d4ff94c
VZ
42811 ac_ext=c
42812ac_cpp='$CPP $CPPFLAGS'
42813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42815ac_compiler_gnu=$ac_cv_c_compiler_gnu
42816
a848cd7e
SC
42817 fi
42818fi
42819
42820if test "$wxUSE_SOCKETS" = "yes" ; then
42821 cat >>confdefs.h <<\_ACEOF
42822#define wxUSE_SOCKETS 1
42823_ACEOF
42824
42825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42826fi
42827
42828if test "$wxUSE_PROTOCOL" = "yes"; then
42829 if test "$wxUSE_SOCKETS" != "yes"; then
42830 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42831echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42832 wxUSE_PROTOCOL=no
42833 fi
42834fi
42835
42836if test "$wxUSE_PROTOCOL" = "yes"; then
42837 cat >>confdefs.h <<\_ACEOF
42838#define wxUSE_PROTOCOL 1
42839_ACEOF
42840
42841
42842 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42843 cat >>confdefs.h <<\_ACEOF
42844#define wxUSE_PROTOCOL_HTTP 1
42845_ACEOF
42846
42847 fi
42848 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42849 cat >>confdefs.h <<\_ACEOF
42850#define wxUSE_PROTOCOL_FTP 1
42851_ACEOF
42852
42853 fi
42854 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42855 cat >>confdefs.h <<\_ACEOF
42856#define wxUSE_PROTOCOL_FILE 1
42857_ACEOF
42858
42859 fi
42860else
42861 if test "$wxUSE_FS_INET" = "yes"; then
42862 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42863echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42864 wxUSE_FS_INET="no"
42865 fi
42866fi
42867
42868if test "$wxUSE_URL" = "yes"; then
42869 if test "$wxUSE_PROTOCOL" != "yes"; then
42870 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42871echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42872 wxUSE_URL=no
42873 fi
42874 if test "$wxUSE_URL" = "yes"; then
42875 cat >>confdefs.h <<\_ACEOF
42876#define wxUSE_URL 1
42877_ACEOF
42878
42879 fi
42880fi
42881
42882if test "$wxUSE_FS_INET" = "yes"; then
42883 cat >>confdefs.h <<\_ACEOF
42884#define wxUSE_FS_INET 1
42885_ACEOF
42886
42887fi
42888
42889
ee45c548
MW
42890if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42891 wxUSE_JOYSTICK=no
42892
42893 if test "$TOOLKIT" = "MSW"; then
42894 wxUSE_JOYSTICK=yes
42895
42896 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42897 if test "$USE_DARWIN" = 1; then
42898 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42899echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
42900 ac_ext=cc
42901ac_cpp='$CXXCPP $CPPFLAGS'
42902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42905
42906 cat >conftest.$ac_ext <<_ACEOF
42907/* confdefs.h. */
42908_ACEOF
42909cat confdefs.h >>conftest.$ac_ext
42910cat >>conftest.$ac_ext <<_ACEOF
42911/* end confdefs.h. */
42912 #include <IOKit/hid/IOHIDLib.h>
42913int
42914main ()
42915{
42916 IOHIDQueueInterface *qi = NULL;
42917 IOHIDCallbackFunction cb = NULL;
42918 qi->setEventCallout(NULL, cb, NULL, NULL);
42919 ;
42920 return 0;
42921}
42922_ACEOF
42923rm -f conftest.$ac_objext
42924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42925 (eval $ac_compile) 2>conftest.er1
42926 ac_status=$?
42927 grep -v '^ *+' conftest.er1 >conftest.err
42928 rm -f conftest.er1
42929 cat conftest.err >&5
42930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42931 (exit $ac_status); } &&
2b850ae1
RR
42932 { ac_try='test -z "$ac_cxx_werror_flag"
42933 || test ! -s conftest.err'
ee45c548
MW
42934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42935 (eval $ac_try) 2>&5
42936 ac_status=$?
42937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42938 (exit $ac_status); }; } &&
42939 { ac_try='test -s conftest.$ac_objext'
42940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42941 (eval $ac_try) 2>&5
42942 ac_status=$?
42943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42944 (exit $ac_status); }; }; then
42945 wxUSE_JOYSTICK=yes
a848cd7e 42946
ee45c548
MW
42947else
42948 echo "$as_me: failed program was:" >&5
42949sed 's/^/| /' conftest.$ac_ext >&5
42950
42951fi
42952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42953 ac_ext=c
42954ac_cpp='$CPP $CPPFLAGS'
42955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42957ac_compiler_gnu=$ac_cv_c_compiler_gnu
42958
42959 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42960echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42961 fi
42962
42963 else
a848cd7e
SC
42964
42965for ac_header in linux/joystick.h
42966do
42967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42968if eval "test \"\${$as_ac_Header+set}\" = set"; then
42969 echo "$as_me:$LINENO: checking for $ac_header" >&5
42970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42971if eval "test \"\${$as_ac_Header+set}\" = set"; then
42972 echo $ECHO_N "(cached) $ECHO_C" >&6
42973fi
42974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42976else
42977 # Is the header compilable?
42978echo "$as_me:$LINENO: checking $ac_header usability" >&5
42979echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42980cat >conftest.$ac_ext <<_ACEOF
42981/* confdefs.h. */
42982_ACEOF
42983cat confdefs.h >>conftest.$ac_ext
42984cat >>conftest.$ac_ext <<_ACEOF
42985/* end confdefs.h. */
42986$ac_includes_default
42987#include <$ac_header>
42988_ACEOF
42989rm -f conftest.$ac_objext
42990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42991 (eval $ac_compile) 2>conftest.er1
a848cd7e 42992 ac_status=$?
ac1cb8d3
VS
42993 grep -v '^ *+' conftest.er1 >conftest.err
42994 rm -f conftest.er1
42995 cat conftest.err >&5
a848cd7e
SC
42996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42997 (exit $ac_status); } &&
2b850ae1
RR
42998 { ac_try='test -z "$ac_c_werror_flag"
42999 || test ! -s conftest.err'
ac1cb8d3
VS
43000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43001 (eval $ac_try) 2>&5
43002 ac_status=$?
43003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43004 (exit $ac_status); }; } &&
43005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43007 (eval $ac_try) 2>&5
43008 ac_status=$?
43009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010 (exit $ac_status); }; }; then
43011 ac_header_compiler=yes
43012else
43013 echo "$as_me: failed program was:" >&5
43014sed 's/^/| /' conftest.$ac_ext >&5
43015
43016ac_header_compiler=no
43017fi
ac1cb8d3 43018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43019echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43020echo "${ECHO_T}$ac_header_compiler" >&6
43021
43022# Is the header present?
43023echo "$as_me:$LINENO: checking $ac_header presence" >&5
43024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43025cat >conftest.$ac_ext <<_ACEOF
43026/* confdefs.h. */
43027_ACEOF
43028cat confdefs.h >>conftest.$ac_ext
43029cat >>conftest.$ac_ext <<_ACEOF
43030/* end confdefs.h. */
43031#include <$ac_header>
43032_ACEOF
43033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43035 ac_status=$?
43036 grep -v '^ *+' conftest.er1 >conftest.err
43037 rm -f conftest.er1
43038 cat conftest.err >&5
43039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43040 (exit $ac_status); } >/dev/null; then
43041 if test -s conftest.err; then
43042 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 43043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
43044 else
43045 ac_cpp_err=
43046 fi
43047else
43048 ac_cpp_err=yes
43049fi
43050if test -z "$ac_cpp_err"; then
43051 ac_header_preproc=yes
43052else
43053 echo "$as_me: failed program was:" >&5
43054sed 's/^/| /' conftest.$ac_ext >&5
43055
43056 ac_header_preproc=no
43057fi
43058rm -f conftest.err conftest.$ac_ext
43059echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43060echo "${ECHO_T}$ac_header_preproc" >&6
43061
43062# So? What about this header?
ac1cb8d3
VS
43063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43064 yes:no: )
a848cd7e
SC
43065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43066echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43068echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43069 ac_header_preproc=yes
a848cd7e 43070 ;;
ac1cb8d3 43071 no:yes:* )
a848cd7e
SC
43072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43073echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43075echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43077echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43079echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43081echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43083echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43084 (
43085 cat <<\_ASBOX
ac1cb8d3
VS
43086## ----------------------------------------- ##
43087## Report this to wx-dev@lists.wxwidgets.org ##
43088## ----------------------------------------- ##
a848cd7e
SC
43089_ASBOX
43090 ) |
43091 sed "s/^/$as_me: WARNING: /" >&2
43092 ;;
43093esac
43094echo "$as_me:$LINENO: checking for $ac_header" >&5
43095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43096if eval "test \"\${$as_ac_Header+set}\" = set"; then
43097 echo $ECHO_N "(cached) $ECHO_C" >&6
43098else
ac1cb8d3 43099 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43100fi
43101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43103
43104fi
43105if test `eval echo '${'$as_ac_Header'}'` = yes; then
43106 cat >>confdefs.h <<_ACEOF
43107#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43108_ACEOF
ee45c548 43109 wxUSE_JOYSTICK=yes
a848cd7e
SC
43110fi
43111
43112done
43113
ee45c548 43114 fi
4cb1d3da 43115
ee45c548
MW
43116 if test "$wxUSE_JOYSTICK" = "yes"; then
43117 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43118#define wxUSE_JOYSTICK 1
43119_ACEOF
43120
ee45c548
MW
43121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43122 else
43123 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43124echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43125 fi
43126fi
43127
43128
43129
43130if test "$wxUSE_FONTMAP" = "yes" ; then
43131 cat >>confdefs.h <<\_ACEOF
43132#define wxUSE_FONTMAP 1
43133_ACEOF
43134
43135fi
43136
43137if test "$wxUSE_UNICODE" = "yes" ; then
43138 cat >>confdefs.h <<\_ACEOF
43139#define wxUSE_UNICODE 1
43140_ACEOF
43141
43142
43143 if test "$USE_WIN32" != 1; then
43144 wxUSE_UNICODE_MSLU=no
43145 fi
43146
43147 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43148 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43149echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43150if test "${ac_cv_lib_unicows_main+set}" = set; then
43151 echo $ECHO_N "(cached) $ECHO_C" >&6
43152else
43153 ac_check_lib_save_LIBS=$LIBS
43154LIBS="-lunicows $LIBS"
43155cat >conftest.$ac_ext <<_ACEOF
43156/* confdefs.h. */
43157_ACEOF
43158cat confdefs.h >>conftest.$ac_ext
43159cat >>conftest.$ac_ext <<_ACEOF
43160/* end confdefs.h. */
43161
43162
43163int
43164main ()
43165{
43166main ();
43167 ;
43168 return 0;
43169}
43170_ACEOF
43171rm -f conftest.$ac_objext conftest$ac_exeext
43172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43173 (eval $ac_link) 2>conftest.er1
a848cd7e 43174 ac_status=$?
ac1cb8d3
VS
43175 grep -v '^ *+' conftest.er1 >conftest.err
43176 rm -f conftest.er1
43177 cat conftest.err >&5
a848cd7e
SC
43178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43179 (exit $ac_status); } &&
2b850ae1
RR
43180 { ac_try='test -z "$ac_c_werror_flag"
43181 || test ! -s conftest.err'
ac1cb8d3
VS
43182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43183 (eval $ac_try) 2>&5
43184 ac_status=$?
43185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43186 (exit $ac_status); }; } &&
43187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43189 (eval $ac_try) 2>&5
43190 ac_status=$?
43191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43192 (exit $ac_status); }; }; then
43193 ac_cv_lib_unicows_main=yes
43194else
43195 echo "$as_me: failed program was:" >&5
43196sed 's/^/| /' conftest.$ac_ext >&5
43197
43198ac_cv_lib_unicows_main=no
43199fi
ac1cb8d3
VS
43200rm -f conftest.err conftest.$ac_objext \
43201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43202LIBS=$ac_check_lib_save_LIBS
43203fi
43204echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43205echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43206if test $ac_cv_lib_unicows_main = yes; then
43207
43208 cat >>confdefs.h <<\_ACEOF
43209#define wxUSE_UNICODE_MSLU 1
43210_ACEOF
43211
43212
43213else
43214
43215 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43216 Applications will only run on Windows NT/2000/XP!" >&5
43217echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43218 Applications will only run on Windows NT/2000/XP!" >&2;}
43219 wxUSE_UNICODE_MSLU=no
43220
43221fi
43222
43223 fi
43224fi
43225
43226if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43227 cat >>confdefs.h <<\_ACEOF
43228#define wxUSE_EXPERIMENTAL_PRINTF 1
43229_ACEOF
43230
43231fi
43232
43233
43234if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43235 cat >>confdefs.h <<\_ACEOF
43236#define wxUSE_POSTSCRIPT 1
43237_ACEOF
43238
43239fi
43240
43241cat >>confdefs.h <<\_ACEOF
43242#define wxUSE_AFM_FOR_POSTSCRIPT 1
43243_ACEOF
43244
43245
43246cat >>confdefs.h <<\_ACEOF
43247#define wxUSE_NORMALIZED_PS_FONTS 1
43248_ACEOF
43249
43250
43251
43252if test "$wxUSE_CONSTRAINTS" = "yes"; then
43253 cat >>confdefs.h <<\_ACEOF
43254#define wxUSE_CONSTRAINTS 1
43255_ACEOF
43256
43257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43258fi
43259
8a7b1113
VZ
43260if test "$wxUSE_MDI" = "yes"; then
43261 cat >>confdefs.h <<\_ACEOF
43262#define wxUSE_MDI 1
43263_ACEOF
43264
43265
43266 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43267 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43268#define wxUSE_MDI_ARCHITECTURE 1
43269_ACEOF
43270
8a7b1113
VZ
43271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43272 fi
a848cd7e
SC
43273fi
43274
43275if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43276 cat >>confdefs.h <<\_ACEOF
43277#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43278_ACEOF
43279
43280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43281 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43283 fi
43284fi
43285
43286if test "$wxUSE_HELP" = "yes"; then
43287 cat >>confdefs.h <<\_ACEOF
43288#define wxUSE_HELP 1
43289_ACEOF
43290
43291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43292
43293 if test "$wxUSE_MSW" = 1; then
43294 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43295 cat >>confdefs.h <<\_ACEOF
43296#define wxUSE_MS_HTML_HELP 1
43297_ACEOF
43298
43299 fi
43300 fi
43301
43302 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43303 if test "$wxUSE_HTML" = "yes"; then
43304 cat >>confdefs.h <<\_ACEOF
43305#define wxUSE_WXHTML_HELP 1
43306_ACEOF
43307
43308 else
43309 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43310echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43311 wxUSE_WXHTML_HELP=no
43312 fi
43313 fi
43314fi
43315
43316if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43317 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43318 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43319echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43320 else
43321 cat >>confdefs.h <<\_ACEOF
43322#define wxUSE_PRINTING_ARCHITECTURE 1
43323_ACEOF
43324
43325 fi
43326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43327fi
43328
43329if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43330 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43331echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43332 { (exit 1); exit 1; }; }
43333fi
43334
43335
efdf6afe
VZ
43336if test "$wxUSE_METAFILE" = "yes"; then
43337 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43338 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43339echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43340 wxUSE_METAFILE=no
43341 fi
43342fi
43343
43344
a848cd7e
SC
43345if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43346 -o "$wxUSE_CLIPBOARD" = "yes" \
43347 -o "$wxUSE_OLE" = "yes" \
43348 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43349
43350for ac_header in ole2.h
43351do
43352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43353if eval "test \"\${$as_ac_Header+set}\" = set"; then
43354 echo "$as_me:$LINENO: checking for $ac_header" >&5
43355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43356if eval "test \"\${$as_ac_Header+set}\" = set"; then
43357 echo $ECHO_N "(cached) $ECHO_C" >&6
43358fi
43359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43361else
43362 # Is the header compilable?
43363echo "$as_me:$LINENO: checking $ac_header usability" >&5
43364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43365cat >conftest.$ac_ext <<_ACEOF
43366/* confdefs.h. */
43367_ACEOF
43368cat confdefs.h >>conftest.$ac_ext
43369cat >>conftest.$ac_ext <<_ACEOF
43370/* end confdefs.h. */
43371$ac_includes_default
43372#include <$ac_header>
43373_ACEOF
43374rm -f conftest.$ac_objext
43375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43376 (eval $ac_compile) 2>conftest.er1
a848cd7e 43377 ac_status=$?
ac1cb8d3
VS
43378 grep -v '^ *+' conftest.er1 >conftest.err
43379 rm -f conftest.er1
43380 cat conftest.err >&5
a848cd7e
SC
43381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43382 (exit $ac_status); } &&
2b850ae1
RR
43383 { ac_try='test -z "$ac_c_werror_flag"
43384 || test ! -s conftest.err'
ac1cb8d3
VS
43385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43386 (eval $ac_try) 2>&5
43387 ac_status=$?
43388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43389 (exit $ac_status); }; } &&
43390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43392 (eval $ac_try) 2>&5
43393 ac_status=$?
43394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43395 (exit $ac_status); }; }; then
43396 ac_header_compiler=yes
43397else
43398 echo "$as_me: failed program was:" >&5
43399sed 's/^/| /' conftest.$ac_ext >&5
43400
43401ac_header_compiler=no
43402fi
ac1cb8d3 43403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43404echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43405echo "${ECHO_T}$ac_header_compiler" >&6
43406
43407# Is the header present?
43408echo "$as_me:$LINENO: checking $ac_header presence" >&5
43409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43410cat >conftest.$ac_ext <<_ACEOF
43411/* confdefs.h. */
43412_ACEOF
43413cat confdefs.h >>conftest.$ac_ext
43414cat >>conftest.$ac_ext <<_ACEOF
43415/* end confdefs.h. */
43416#include <$ac_header>
43417_ACEOF
43418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43420 ac_status=$?
43421 grep -v '^ *+' conftest.er1 >conftest.err
43422 rm -f conftest.er1
43423 cat conftest.err >&5
43424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43425 (exit $ac_status); } >/dev/null; then
43426 if test -s conftest.err; then
43427 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 43428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
43429 else
43430 ac_cpp_err=
43431 fi
43432else
43433 ac_cpp_err=yes
43434fi
43435if test -z "$ac_cpp_err"; then
43436 ac_header_preproc=yes
43437else
43438 echo "$as_me: failed program was:" >&5
43439sed 's/^/| /' conftest.$ac_ext >&5
43440
43441 ac_header_preproc=no
43442fi
43443rm -f conftest.err conftest.$ac_ext
43444echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43445echo "${ECHO_T}$ac_header_preproc" >&6
43446
43447# So? What about this header?
ac1cb8d3
VS
43448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43449 yes:no: )
a848cd7e
SC
43450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43454 ac_header_preproc=yes
a848cd7e 43455 ;;
ac1cb8d3 43456 no:yes:* )
a848cd7e
SC
43457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43469 (
43470 cat <<\_ASBOX
ac1cb8d3
VS
43471## ----------------------------------------- ##
43472## Report this to wx-dev@lists.wxwidgets.org ##
43473## ----------------------------------------- ##
a848cd7e
SC
43474_ASBOX
43475 ) |
43476 sed "s/^/$as_me: WARNING: /" >&2
43477 ;;
43478esac
43479echo "$as_me:$LINENO: checking for $ac_header" >&5
43480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43481if eval "test \"\${$as_ac_Header+set}\" = set"; then
43482 echo $ECHO_N "(cached) $ECHO_C" >&6
43483else
ac1cb8d3 43484 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43485fi
43486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43488
43489fi
43490if test `eval echo '${'$as_ac_Header'}'` = yes; then
43491 cat >>confdefs.h <<_ACEOF
43492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43493_ACEOF
43494
43495fi
43496
43497done
43498
43499
43500 if test "$ac_cv_header_ole2_h" = "yes" ; then
43501 if test "$GCC" = yes ; then
a848cd7e
SC
43502 ac_ext=cc
43503ac_cpp='$CXXCPP $CPPFLAGS'
43504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43507
43508
43509 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43510echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43511 cat >conftest.$ac_ext <<_ACEOF
43512/* confdefs.h. */
43513_ACEOF
43514cat confdefs.h >>conftest.$ac_ext
43515cat >>conftest.$ac_ext <<_ACEOF
43516/* end confdefs.h. */
43517#include <windows.h>
43518 #include <ole2.h>
43519int
43520main ()
43521{
43522
43523 ;
43524 return 0;
43525}
43526_ACEOF
43527rm -f conftest.$ac_objext
43528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43529 (eval $ac_compile) 2>conftest.er1
a848cd7e 43530 ac_status=$?
ac1cb8d3
VS
43531 grep -v '^ *+' conftest.er1 >conftest.err
43532 rm -f conftest.er1
43533 cat conftest.err >&5
a848cd7e
SC
43534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43535 (exit $ac_status); } &&
2b850ae1
RR
43536 { ac_try='test -z "$ac_cxx_werror_flag"
43537 || test ! -s conftest.err'
ac1cb8d3
VS
43538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43539 (eval $ac_try) 2>&5
43540 ac_status=$?
43541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43542 (exit $ac_status); }; } &&
43543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43545 (eval $ac_try) 2>&5
43546 ac_status=$?
43547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43548 (exit $ac_status); }; }; then
43549 echo "$as_me:$LINENO: result: no" >&5
43550echo "${ECHO_T}no" >&6
43551else
43552 echo "$as_me: failed program was:" >&5
43553sed 's/^/| /' conftest.$ac_ext >&5
43554
43555echo "$as_me:$LINENO: result: yes" >&5
43556echo "${ECHO_T}yes" >&6
5ff751d6 43557 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43558fi
ac1cb8d3 43559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43560 ac_ext=c
43561ac_cpp='$CPP $CPPFLAGS'
43562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43564ac_compiler_gnu=$ac_cv_c_compiler_gnu
43565
a848cd7e
SC
43566 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43567 if test "$wxUSE_OLE" = "yes" ; then
43568 cat >>confdefs.h <<\_ACEOF
43569#define wxUSE_OLE 1
43570_ACEOF
43571
0b78747f 43572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43573 fi
43574 fi
43575
43576 if test "$wxUSE_DATAOBJ" = "yes" ; then
43577 cat >>confdefs.h <<\_ACEOF
43578#define wxUSE_DATAOBJ 1
43579_ACEOF
43580
43581 fi
43582 else
43583 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43584echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43585
43586 wxUSE_CLIPBOARD=no
43587 wxUSE_DRAG_AND_DROP=no
43588 wxUSE_DATAOBJ=no
43589 wxUSE_OLE=no
43590 fi
43591
43592 if test "$wxUSE_METAFILE" = "yes"; then
43593 cat >>confdefs.h <<\_ACEOF
43594#define wxUSE_METAFILE 1
43595_ACEOF
43596
43597
43598 cat >>confdefs.h <<\_ACEOF
43599#define wxUSE_ENH_METAFILE 1
43600_ACEOF
43601
43602 fi
43603fi
43604
43605if test "$wxUSE_IPC" = "yes"; then
0b78747f 43606 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43607 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43608echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43609 wxUSE_IPC=no
a848cd7e
SC
43610 fi
43611
0b78747f
MW
43612 if test "$wxUSE_IPC" = "yes"; then
43613 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43614#define wxUSE_IPC 1
43615_ACEOF
43616
0b78747f
MW
43617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43618 fi
a848cd7e
SC
43619fi
43620
eb730a0c 43621if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43622 if test "$wxUSE_MGL" = 1; then
43623 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43624echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43625 wxUSE_DATAOBJ=no
43626 else
43627 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43628#define wxUSE_DATAOBJ 1
43629_ACEOF
43630
2113bc77 43631 fi
eb730a0c
JS
43632else
43633 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43634echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43635 wxUSE_CLIPBOARD=no
43636 wxUSE_DRAG_AND_DROP=no
43637fi
43638
a848cd7e
SC
43639if test "$wxUSE_CLIPBOARD" = "yes"; then
43640 if test "$wxUSE_MGL" = 1; then
43641 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43642echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43643 wxUSE_CLIPBOARD=no
43644 fi
43645
43646 if test "$wxUSE_CLIPBOARD" = "yes"; then
43647 cat >>confdefs.h <<\_ACEOF
43648#define wxUSE_CLIPBOARD 1
43649_ACEOF
43650
a848cd7e
SC
43651 fi
43652fi
43653
43654if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43655 if test "$wxUSE_GTK" = 1; then
43656 if test "$WXGTK12" != 1; then
43657 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43658echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43659 wxUSE_DRAG_AND_DROP=no
43660 fi
43661 fi
43662
43663 if test "$wxUSE_MOTIF" = 1; then
43664 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43665echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43666 wxUSE_DRAG_AND_DROP=no
43667 fi
43668
43669 if test "$wxUSE_X11" = 1; then
43670 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43671echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43672 wxUSE_DRAG_AND_DROP=no
43673 fi
43674
43675 if test "$wxUSE_MGL" = 1; then
43676 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43677echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43678 wxUSE_DRAG_AND_DROP=no
43679 fi
43680
43681 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43682 cat >>confdefs.h <<\_ACEOF
43683#define wxUSE_DRAG_AND_DROP 1
43684_ACEOF
43685
43686 fi
43687
43688fi
43689
43690if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43692fi
43693
43694if test "$wxUSE_SPLINES" = "yes" ; then
43695 cat >>confdefs.h <<\_ACEOF
43696#define wxUSE_SPLINES 1
43697_ACEOF
43698
43699fi
43700
fbe2ca43
SN
43701if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43702 cat >>confdefs.h <<\_ACEOF
43703#define wxUSE_MOUSEWHEEL 1
43704_ACEOF
43705
43706fi
43707
a848cd7e
SC
43708
43709USES_CONTROLS=0
43710if test "$wxUSE_CONTROLS" = "yes"; then
43711 USES_CONTROLS=1
43712fi
43713
43714if test "$wxUSE_ACCEL" = "yes"; then
43715 cat >>confdefs.h <<\_ACEOF
43716#define wxUSE_ACCEL 1
43717_ACEOF
43718
43719 USES_CONTROLS=1
43720fi
43721
43722if test "$wxUSE_BUTTON" = "yes"; then
43723 cat >>confdefs.h <<\_ACEOF
43724#define wxUSE_BUTTON 1
43725_ACEOF
43726
43727 USES_CONTROLS=1
43728fi
43729
43730if test "$wxUSE_BMPBUTTON" = "yes"; then
43731 cat >>confdefs.h <<\_ACEOF
43732#define wxUSE_BMPBUTTON 1
43733_ACEOF
43734
43735 USES_CONTROLS=1
43736fi
43737
43738if test "$wxUSE_CALCTRL" = "yes"; then
43739 cat >>confdefs.h <<\_ACEOF
43740#define wxUSE_CALENDARCTRL 1
43741_ACEOF
43742
43743 USES_CONTROLS=1
43744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43745fi
43746
43747if test "$wxUSE_CARET" = "yes"; then
43748 cat >>confdefs.h <<\_ACEOF
43749#define wxUSE_CARET 1
43750_ACEOF
43751
43752 USES_CONTROLS=1
43753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43754fi
43755
43756if test "$wxUSE_COMBOBOX" = "yes"; then
43757 cat >>confdefs.h <<\_ACEOF
43758#define wxUSE_COMBOBOX 1
43759_ACEOF
43760
43761 USES_CONTROLS=1
43762fi
43763
43764if test "$wxUSE_CHOICE" = "yes"; then
43765 cat >>confdefs.h <<\_ACEOF
43766#define wxUSE_CHOICE 1
43767_ACEOF
43768
43769 USES_CONTROLS=1
43770fi
43771
92bbdbcd
WS
43772if test "$wxUSE_CHOICEBOOK" = "yes"; then
43773 cat >>confdefs.h <<\_ACEOF
43774#define wxUSE_CHOICEBOOK 1
43775_ACEOF
43776
43777 USES_CONTROLS=1
43778fi
43779
a848cd7e
SC
43780if test "$wxUSE_CHECKBOX" = "yes"; then
43781 cat >>confdefs.h <<\_ACEOF
43782#define wxUSE_CHECKBOX 1
43783_ACEOF
43784
43785 USES_CONTROLS=1
43786fi
43787
43788if test "$wxUSE_CHECKLST" = "yes"; then
43789 cat >>confdefs.h <<\_ACEOF
43790#define wxUSE_CHECKLISTBOX 1
43791_ACEOF
43792
43793 USES_CONTROLS=1
43794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43795fi
43796
da98e9be
VZ
43797if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43798 cat >>confdefs.h <<\_ACEOF
43799#define wxUSE_DATEPICKCTRL 1
43800_ACEOF
43801
43802 USES_CONTROLS=1
43803fi
43804
a848cd7e
SC
43805if test "$wxUSE_DISPLAY" = "yes"; then
43806 cat >>confdefs.h <<\_ACEOF
43807#define wxUSE_DISPLAY 1
43808_ACEOF
43809
0b78747f 43810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43811fi
43812
43813if test "$wxUSE_GAUGE" = "yes"; then
43814 cat >>confdefs.h <<\_ACEOF
43815#define wxUSE_GAUGE 1
43816_ACEOF
43817
43818 USES_CONTROLS=1
43819fi
43820
43821if test "$wxUSE_GRID" = "yes"; then
43822 cat >>confdefs.h <<\_ACEOF
43823#define wxUSE_GRID 1
43824_ACEOF
43825
43826 USES_CONTROLS=1
43827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43828fi
43829
20e34ecc
RR
43830if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43831 cat >>confdefs.h <<\_ACEOF
43832#define wxUSE_DATAVIEWCTRL 1
43833_ACEOF
43834
43835 USES_CONTROLS=1
43836 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43837fi
43838
a848cd7e
SC
43839if test "$wxUSE_IMAGLIST" = "yes"; then
43840 cat >>confdefs.h <<\_ACEOF
43841#define wxUSE_IMAGLIST 1
43842_ACEOF
43843
43844fi
43845
43846if test "$wxUSE_LISTBOOK" = "yes"; then
43847 cat >>confdefs.h <<\_ACEOF
43848#define wxUSE_LISTBOOK 1
43849_ACEOF
43850
43851 USES_CONTROLS=1
43852fi
43853
43854if test "$wxUSE_LISTBOX" = "yes"; then
43855 cat >>confdefs.h <<\_ACEOF
43856#define wxUSE_LISTBOX 1
43857_ACEOF
43858
43859 USES_CONTROLS=1
0b78747f 43860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43861fi
43862
43863if test "$wxUSE_LISTCTRL" = "yes"; then
43864 if test "$wxUSE_IMAGLIST" = "yes"; then
43865 cat >>confdefs.h <<\_ACEOF
43866#define wxUSE_LISTCTRL 1
43867_ACEOF
43868
43869 USES_CONTROLS=1
43870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43871 else
43872 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43873echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43874 fi
43875fi
43876
43877if test "$wxUSE_NOTEBOOK" = "yes"; then
43878 cat >>confdefs.h <<\_ACEOF
43879#define wxUSE_NOTEBOOK 1
43880_ACEOF
43881
43882 USES_CONTROLS=1
43883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43884fi
43885
43886
43887if test "$wxUSE_RADIOBOX" = "yes"; then
43888 cat >>confdefs.h <<\_ACEOF
43889#define wxUSE_RADIOBOX 1
43890_ACEOF
43891
43892 USES_CONTROLS=1
43893fi
43894
43895if test "$wxUSE_RADIOBTN" = "yes"; then
43896 cat >>confdefs.h <<\_ACEOF
43897#define wxUSE_RADIOBTN 1
43898_ACEOF
43899
43900 USES_CONTROLS=1
43901fi
43902
43903if test "$wxUSE_SASH" = "yes"; then
43904 cat >>confdefs.h <<\_ACEOF
43905#define wxUSE_SASH 1
43906_ACEOF
43907
43908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43909fi
43910
43911if test "$wxUSE_SCROLLBAR" = "yes"; then
43912 cat >>confdefs.h <<\_ACEOF
43913#define wxUSE_SCROLLBAR 1
43914_ACEOF
43915
43916 USES_CONTROLS=1
43917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43918fi
43919
43920if test "$wxUSE_SLIDER" = "yes"; then
43921 cat >>confdefs.h <<\_ACEOF
43922#define wxUSE_SLIDER 1
43923_ACEOF
43924
43925 USES_CONTROLS=1
43926fi
43927
43928if test "$wxUSE_SPINBTN" = "yes"; then
43929 cat >>confdefs.h <<\_ACEOF
43930#define wxUSE_SPINBTN 1
43931_ACEOF
43932
43933 USES_CONTROLS=1
43934fi
43935
43936if test "$wxUSE_SPINCTRL" = "yes"; then
43937 cat >>confdefs.h <<\_ACEOF
43938#define wxUSE_SPINCTRL 1
43939_ACEOF
43940
43941 USES_CONTROLS=1
43942fi
43943
43944if test "$wxUSE_SPLITTER" = "yes"; then
43945 cat >>confdefs.h <<\_ACEOF
43946#define wxUSE_SPLITTER 1
43947_ACEOF
43948
43949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43950fi
43951
43952if test "$wxUSE_STATBMP" = "yes"; then
43953 cat >>confdefs.h <<\_ACEOF
43954#define wxUSE_STATBMP 1
43955_ACEOF
43956
43957 USES_CONTROLS=1
43958fi
43959
43960if test "$wxUSE_STATBOX" = "yes"; then
43961 cat >>confdefs.h <<\_ACEOF
43962#define wxUSE_STATBOX 1
43963_ACEOF
43964
43965 USES_CONTROLS=1
43966fi
43967
43968if test "$wxUSE_STATTEXT" = "yes"; then
43969 cat >>confdefs.h <<\_ACEOF
43970#define wxUSE_STATTEXT 1
43971_ACEOF
43972
43973 USES_CONTROLS=1
43974fi
43975
43976if test "$wxUSE_STATLINE" = "yes"; then
43977 cat >>confdefs.h <<\_ACEOF
43978#define wxUSE_STATLINE 1
43979_ACEOF
43980
43981 USES_CONTROLS=1
43982fi
43983
43984if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
43985 cat >>confdefs.h <<\_ACEOF
43986#define wxUSE_NATIVE_STATUSBAR 1
43987_ACEOF
43988
a848cd7e
SC
43989 cat >>confdefs.h <<\_ACEOF
43990#define wxUSE_STATUSBAR 1
43991_ACEOF
43992
43993 USES_CONTROLS=1
43994
43995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
43996fi
43997
f10e38c4 43998if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
43999 cat >>confdefs.h <<\_ACEOF
44000#define wxUSE_TAB_DIALOG 1
44001_ACEOF
44002
a848cd7e
SC
44003fi
44004
44005if test "$wxUSE_TEXTCTRL" = "yes"; then
44006 cat >>confdefs.h <<\_ACEOF
44007#define wxUSE_TEXTCTRL 1
44008_ACEOF
44009
44010 USES_CONTROLS=1
44011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44012fi
44013
44014if test "$wxUSE_TOGGLEBTN" = "yes"; then
44015 if test "$wxUSE_COCOA" = 1 ; then
44016 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44017echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44018 wxUSE_TOGGLEBTN=no
44019 fi
44020 if test "$wxUSE_UNIVERSAL" = "yes"; then
44021 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
44022echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
44023 wxUSE_TOGGLEBTN=no
44024 fi
44025
44026 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44027 cat >>confdefs.h <<\_ACEOF
44028#define wxUSE_TOGGLEBTN 1
44029_ACEOF
44030
44031 USES_CONTROLS=1
44032 fi
44033fi
44034
44035if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44036 cat >>confdefs.h <<\_ACEOF
44037#define wxUSE_TOOLBAR_SIMPLE 1
44038_ACEOF
44039
44040 wxUSE_TOOLBAR="yes"
44041 USES_CONTROLS=1
44042fi
44043
44044if test "$wxUSE_TOOLBAR" = "yes"; then
44045 cat >>confdefs.h <<\_ACEOF
44046#define wxUSE_TOOLBAR 1
44047_ACEOF
44048
44049 USES_CONTROLS=1
44050
44051 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44052 wxUSE_TOOLBAR_NATIVE="yes"
44053 fi
44054
44055 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44056 cat >>confdefs.h <<\_ACEOF
44057#define wxUSE_TOOLBAR_NATIVE 1
44058_ACEOF
44059
44060 USES_CONTROLS=1
44061 fi
44062
44063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44064fi
44065
44066if test "$wxUSE_TOOLTIPS" = "yes"; then
44067 if test "$wxUSE_MOTIF" = 1; then
44068 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44069echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44070 else
44071 if test "$wxUSE_UNIVERSAL" = "yes"; then
44072 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44073echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44074 else
44075 cat >>confdefs.h <<\_ACEOF
44076#define wxUSE_TOOLTIPS 1
44077_ACEOF
44078
44079 fi
44080 fi
44081fi
44082
0093c2fc
VZ
44083if test "$wxUSE_TREEBOOK" = "yes"; then
44084 cat >>confdefs.h <<\_ACEOF
44085#define wxUSE_TREEBOOK 1
44086_ACEOF
44087
44088 USES_CONTROLS=1
44089fi
44090
5ec3bc43
JS
44091if test "$wxUSE_TOOLBOOK" = "yes"; then
44092 cat >>confdefs.h <<\_ACEOF
44093#define wxUSE_TOOLBOOK 1
44094_ACEOF
44095
44096 USES_CONTROLS=1
44097fi
44098
a848cd7e
SC
44099if test "$wxUSE_TREECTRL" = "yes"; then
44100 if test "$wxUSE_IMAGLIST" = "yes"; then
44101 cat >>confdefs.h <<\_ACEOF
44102#define wxUSE_TREECTRL 1
44103_ACEOF
44104
44105 USES_CONTROLS=1
44106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44107 else
44108 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44109echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44110 fi
44111fi
44112
44113if test "$wxUSE_POPUPWIN" = "yes"; then
44114 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44115 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44116echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44117 else
44118 if test "$wxUSE_PM" = 1; then
44119 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44120echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44121 else
44122 cat >>confdefs.h <<\_ACEOF
44123#define wxUSE_POPUPWIN 1
44124_ACEOF
44125
0b78747f 44126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44127
44128 USES_CONTROLS=1
44129 fi
44130 fi
44131fi
44132
0dcd06dd 44133if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44134 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44135 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44136echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44137 else
44138 cat >>confdefs.h <<\_ACEOF
44139#define wxUSE_DIALUP_MANAGER 1
44140_ACEOF
44141
44142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44143 fi
44144fi
44145
a848cd7e
SC
44146if test "$wxUSE_TIPWINDOW" = "yes"; then
44147 if test "$wxUSE_PM" = 1; then
44148 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44149echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44150 else
44151 cat >>confdefs.h <<\_ACEOF
44152#define wxUSE_TIPWINDOW 1
44153_ACEOF
44154
44155 fi
44156fi
44157
44158if test "$USES_CONTROLS" = 1; then
44159 cat >>confdefs.h <<\_ACEOF
44160#define wxUSE_CONTROLS 1
44161_ACEOF
44162
44163fi
44164
44165
44166if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44167 cat >>confdefs.h <<\_ACEOF
44168#define wxUSE_ACCESSIBILITY 1
44169_ACEOF
44170
44171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44172fi
44173
38b4a946
VZ
44174if test "$wxUSE_DC_CACHEING" = "yes"; then
44175 cat >>confdefs.h <<\_ACEOF
44176#define wxUSE_DC_CACHEING 1
44177_ACEOF
44178
44179fi
44180
a848cd7e
SC
44181if test "$wxUSE_DRAGIMAGE" = "yes"; then
44182 cat >>confdefs.h <<\_ACEOF
44183#define wxUSE_DRAGIMAGE 1
44184_ACEOF
44185
44186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44187fi
44188
44189if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44190 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44191 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44192echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44193 else
44194 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44195#define wxUSE_EXCEPTIONS 1
44196_ACEOF
44197
07bea8f0
VS
44198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44199 fi
a848cd7e
SC
44200fi
44201
44202USE_HTML=0
44203if test "$wxUSE_HTML" = "yes"; then
44204 cat >>confdefs.h <<\_ACEOF
44205#define wxUSE_HTML 1
44206_ACEOF
44207
44208 USE_HTML=1
44209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44210 if test "$wxUSE_MAC" = 1; then
44211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44212 fi
a848cd7e 44213fi
646b6ec1 44214if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44215 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44216 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44217 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44218 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44219echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44220if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44221 echo $ECHO_N "(cached) $ECHO_C" >&6
44222else
44223 cat >conftest.$ac_ext <<_ACEOF
44224/* confdefs.h. */
44225_ACEOF
44226cat confdefs.h >>conftest.$ac_ext
44227cat >>conftest.$ac_ext <<_ACEOF
44228/* end confdefs.h. */
44229#include <Carbon/Carbon.h>
44230
44231#include <WebKit/HIWebView.h>
44232_ACEOF
44233rm -f conftest.$ac_objext
44234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44235 (eval $ac_compile) 2>conftest.er1
44236 ac_status=$?
44237 grep -v '^ *+' conftest.er1 >conftest.err
44238 rm -f conftest.er1
44239 cat conftest.err >&5
44240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44241 (exit $ac_status); } &&
2b850ae1
RR
44242 { ac_try='test -z "$ac_c_werror_flag"
44243 || test ! -s conftest.err'
07bea8f0
VS
44244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44245 (eval $ac_try) 2>&5
44246 ac_status=$?
44247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44248 (exit $ac_status); }; } &&
44249 { ac_try='test -s conftest.$ac_objext'
44250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44251 (eval $ac_try) 2>&5
44252 ac_status=$?
44253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44254 (exit $ac_status); }; }; then
44255 ac_cv_header_WebKit_HIWebView_h=yes
44256else
44257 echo "$as_me: failed program was:" >&5
44258sed 's/^/| /' conftest.$ac_ext >&5
44259
44260ac_cv_header_WebKit_HIWebView_h=no
44261fi
44262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44263fi
44264echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44265echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44266if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44267
44268 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44269#define wxUSE_WEBKIT 1
44270_ACEOF
44271
07bea8f0
VS
44272 WEBKIT_LINK="-framework WebKit"
44273
44274else
44275
44276 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44277echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44278 wxUSE_WEBKIT=no
44279
646b6ec1
VS
44280fi
44281
07bea8f0
VS
44282
44283 CPPFLAGS="$old_CPPFLAGS"
44284 elif test "$wxUSE_COCOA" = 1; then
44285 cat >>confdefs.h <<\_ACEOF
44286#define wxUSE_WEBKIT 1
44287_ACEOF
44288
44289 else
44290 wxUSE_WEBKIT=no
44291 fi
44292fi
44293
9a8f0513
VS
44294USE_XRC=0
44295if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44296 if test "$wxUSE_XML" != "yes"; then
44297 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44298echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44299 wxUSE_XRC=no
44300 else
44301 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44302#define wxUSE_XRC 1
44303_ACEOF
44304
d2ebf0b7
VS
44305 USE_XRC=1
44306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44307 fi
9a8f0513 44308fi
07bea8f0 44309
a848cd7e
SC
44310if test "$wxUSE_MENUS" = "yes"; then
44311 cat >>confdefs.h <<\_ACEOF
44312#define wxUSE_MENUS 1
44313_ACEOF
44314
44315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44316fi
44317
44318if test "$wxUSE_METAFILE" = "yes"; then
44319 cat >>confdefs.h <<\_ACEOF
44320#define wxUSE_METAFILE 1
44321_ACEOF
44322
44323fi
44324
44325if test "$wxUSE_MIMETYPE" = "yes"; then
44326 cat >>confdefs.h <<\_ACEOF
44327#define wxUSE_MIMETYPE 1
44328_ACEOF
44329
44330fi
44331
44332if test "$wxUSE_MINIFRAME" = "yes"; then
44333 cat >>confdefs.h <<\_ACEOF
44334#define wxUSE_MINIFRAME 1
44335_ACEOF
44336
44337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44338fi
44339
44340if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44341 cat >>confdefs.h <<\_ACEOF
44342#define wxUSE_SYSTEM_OPTIONS 1
44343_ACEOF
44344
44345 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44346 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44348 fi
44349fi
44350
44351
44352if test "$wxUSE_VALIDATORS" = "yes"; then
44353 cat >>confdefs.h <<\_ACEOF
44354#define wxUSE_VALIDATORS 1
44355_ACEOF
44356
44357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44358fi
44359
44360if test "$wxUSE_PALETTE" = "yes" ; then
44361 cat >>confdefs.h <<\_ACEOF
44362#define wxUSE_PALETTE 1
44363_ACEOF
44364
44365fi
44366
44367if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44368 LIBS=" -lunicows $LIBS"
44369fi
44370
91dea314
MW
44371USE_RICHTEXT=0
44372if test "$wxUSE_RICHTEXT" = "yes"; then
44373 cat >>confdefs.h <<\_ACEOF
44374#define wxUSE_RICHTEXT 1
44375_ACEOF
44376
44377 USE_RICHTEXT=1
44378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44379fi
44380
a848cd7e
SC
44381
44382if test "$wxUSE_IMAGE" = "yes" ; then
44383 cat >>confdefs.h <<\_ACEOF
44384#define wxUSE_IMAGE 1
44385_ACEOF
44386
44387
44388 if test "$wxUSE_GIF" = "yes" ; then
44389 cat >>confdefs.h <<\_ACEOF
44390#define wxUSE_GIF 1
44391_ACEOF
44392
44393 fi
44394
44395 if test "$wxUSE_PCX" = "yes" ; then
44396 cat >>confdefs.h <<\_ACEOF
44397#define wxUSE_PCX 1
44398_ACEOF
44399
44400 fi
44401
44402 if test "$wxUSE_IFF" = "yes" ; then
44403 cat >>confdefs.h <<\_ACEOF
44404#define wxUSE_IFF 1
44405_ACEOF
44406
44407 fi
44408
44409 if test "$wxUSE_PNM" = "yes" ; then
44410 cat >>confdefs.h <<\_ACEOF
44411#define wxUSE_PNM 1
44412_ACEOF
44413
44414 fi
44415
44416 if test "$wxUSE_XPM" = "yes" ; then
44417 cat >>confdefs.h <<\_ACEOF
44418#define wxUSE_XPM 1
44419_ACEOF
44420
44421 fi
44422
44423 if test "$wxUSE_ICO_CUR" = "yes" ; then
44424 cat >>confdefs.h <<\_ACEOF
44425#define wxUSE_ICO_CUR 1
44426_ACEOF
44427
44428 fi
44429fi
44430
44431
44432if test "$wxUSE_CHOICEDLG" = "yes"; then
44433 cat >>confdefs.h <<\_ACEOF
44434#define wxUSE_CHOICEDLG 1
44435_ACEOF
44436
44437fi
44438
44439if test "$wxUSE_COLOURDLG" = "yes"; then
44440 cat >>confdefs.h <<\_ACEOF
44441#define wxUSE_COLOURDLG 1
44442_ACEOF
44443
44444fi
44445
44446if test "$wxUSE_FILEDLG" = "yes"; then
44447 cat >>confdefs.h <<\_ACEOF
44448#define wxUSE_FILEDLG 1
44449_ACEOF
44450
44451fi
44452
44453if test "$wxUSE_FINDREPLDLG" = "yes"; then
44454 cat >>confdefs.h <<\_ACEOF
44455#define wxUSE_FINDREPLDLG 1
44456_ACEOF
44457
44458fi
44459
44460if test "$wxUSE_FONTDLG" = "yes"; then
44461 cat >>confdefs.h <<\_ACEOF
44462#define wxUSE_FONTDLG 1
44463_ACEOF
44464
44465fi
44466
44467if test "$wxUSE_DIRDLG" = "yes"; then
44468 if test "$wxUSE_TREECTRL" != "yes"; then
44469 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44470echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44471 else
44472 cat >>confdefs.h <<\_ACEOF
44473#define wxUSE_DIRDLG 1
44474_ACEOF
44475
44476 fi
44477fi
44478
44479if test "$wxUSE_MSGDLG" = "yes"; then
44480 cat >>confdefs.h <<\_ACEOF
44481#define wxUSE_MSGDLG 1
44482_ACEOF
44483
44484fi
44485
44486if test "$wxUSE_NUMBERDLG" = "yes"; then
44487 cat >>confdefs.h <<\_ACEOF
44488#define wxUSE_NUMBERDLG 1
44489_ACEOF
44490
44491fi
44492
44493if test "$wxUSE_PROGRESSDLG" = "yes"; then
44494 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44495 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44496echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44497 else
44498 cat >>confdefs.h <<\_ACEOF
44499#define wxUSE_PROGRESSDLG 1
44500_ACEOF
44501
44502 fi
44503fi
44504
44505if test "$wxUSE_SPLASH" = "yes"; then
44506 cat >>confdefs.h <<\_ACEOF
44507#define wxUSE_SPLASH 1
44508_ACEOF
44509
2057db16 44510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44511fi
44512
44513if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44514 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44515 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44516echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44517 else
44518 cat >>confdefs.h <<\_ACEOF
44519#define wxUSE_STARTUP_TIPS 1
44520_ACEOF
44521
44522 fi
44523fi
44524
44525if test "$wxUSE_TEXTDLG" = "yes"; then
44526 cat >>confdefs.h <<\_ACEOF
44527#define wxUSE_TEXTDLG 1
44528_ACEOF
44529
44530fi
44531
44532if test "$wxUSE_WIZARDDLG" = "yes"; then
44533 cat >>confdefs.h <<\_ACEOF
44534#define wxUSE_WIZARDDLG 1
44535_ACEOF
44536
44537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44538fi
44539
44540
f10e38c4
VZ
44541USE_MEDIA=0
44542
ce756cb0 44543if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44544 if test "$wxUSE_GTK" = 1; then
44545 wxUSE_GSTREAMER="yes"
44546
f10e38c4
VZ
44547 GST_VERSION_MAJOR=0
44548 GST_VERSION_MINOR=10
44549 GST_VERSION_RELEASE=0
44550 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44551 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44552
44553 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 44554
dae87f93 44555 succeeded=no
ce756cb0 44556
dae87f93
RN
44557 if test -z "$PKG_CONFIG"; then
44558 # Extract the first word of "pkg-config", so it can be a program name with args.
44559set dummy pkg-config; ac_word=$2
44560echo "$as_me:$LINENO: checking for $ac_word" >&5
44561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44562if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44563 echo $ECHO_N "(cached) $ECHO_C" >&6
44564else
44565 case $PKG_CONFIG in
44566 [\\/]* | ?:[\\/]*)
44567 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44568 ;;
44569 *)
44570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44571for as_dir in $PATH
44572do
44573 IFS=$as_save_IFS
44574 test -z "$as_dir" && as_dir=.
44575 for ac_exec_ext in '' $ac_executable_extensions; do
44576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44577 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44579 break 2
44580 fi
44581done
44582done
44583
44584 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44585 ;;
44586esac
44587fi
44588PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44589
44590if test -n "$PKG_CONFIG"; then
44591 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44592echo "${ECHO_T}$PKG_CONFIG" >&6
44593else
44594 echo "$as_me:$LINENO: result: no" >&5
44595echo "${ECHO_T}no" >&6
44596fi
44597
44598 fi
44599
44600 if test "$PKG_CONFIG" = "no" ; then
44601 echo "*** The pkg-config script could not be found. Make sure it is"
44602 echo "*** in your path, or set the PKG_CONFIG environment variable"
44603 echo "*** to the full path to pkg-config."
44604 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44605 else
44606 PKG_CONFIG_MIN_VERSION=0.9.0
44607 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
f10e38c4
VZ
44608 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44609 gstreamer-plugins-base-$GST_MAJORMINOR
44610 gconf-2.0" >&5
44611echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44612 gstreamer-plugins-base-$GST_MAJORMINOR
44613 gconf-2.0... $ECHO_C" >&6
44614
44615 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44616 gstreamer-plugins-base-$GST_MAJORMINOR
44617 gconf-2.0" ; then
dae87f93 44618 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44619echo "${ECHO_T}yes" >&6
dae87f93 44620 succeeded=yes
ce756cb0 44621
f10e38c4
VZ
44622 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44623echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44624 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44625 gstreamer-plugins-base-$GST_MAJORMINOR
44626 gconf-2.0"`
44627 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44628echo "${ECHO_T}$GST_CFLAGS" >&6
44629
44630 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44631echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44632 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44633 gstreamer-plugins-base-$GST_MAJORMINOR
44634 gconf-2.0"`
44635 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44636echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 44637 else
f10e38c4
VZ
44638 GST_CFLAGS=""
44639 GST_LIBS=""
dae87f93
RN
44640 ## If we have a custom action on failure, don't print errors, but
44641 ## do set a variable so people can do so.
f10e38c4
VZ
44642 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44643 gstreamer-plugins-base-$GST_MAJORMINOR
44644 gconf-2.0"`
ce756cb0 44645
dae87f93
RN
44646 fi
44647
44648
44649
44650 else
44651 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44652 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44653 fi
44654 fi
44655
44656 if test $succeeded = yes; then
44657
f10e38c4
VZ
44658 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44659 LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
ce756cb0 44660
ce756cb0 44661 else
dae87f93 44662
f10e38c4 44663 GST_VERSION_MINOR=8
dae87f93
RN
44664
44665 fi
44666
f10e38c4
VZ
44667 else
44668 GST_VERSION_MINOR=8
44669 fi
dae87f93 44670
f10e38c4
VZ
44671 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44672 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 44673
f10e38c4 44674 if test x$GST_VERSION_MINOR = x8; then
dae87f93 44675
f10e38c4 44676 succeeded=no
dae87f93 44677
f10e38c4
VZ
44678 if test -z "$PKG_CONFIG"; then
44679 # Extract the first word of "pkg-config", so it can be a program name with args.
44680set dummy pkg-config; ac_word=$2
dae87f93
RN
44681echo "$as_me:$LINENO: checking for $ac_word" >&5
44682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 44683if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
44684 echo $ECHO_N "(cached) $ECHO_C" >&6
44685else
f10e38c4
VZ
44686 case $PKG_CONFIG in
44687 [\\/]* | ?:[\\/]*)
44688 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44689 ;;
44690 *)
44691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
44692for as_dir in $PATH
44693do
44694 IFS=$as_save_IFS
44695 test -z "$as_dir" && as_dir=.
44696 for ac_exec_ext in '' $ac_executable_extensions; do
44697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 44698 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
44699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44700 break 2
ce756cb0 44701 fi
dae87f93
RN
44702done
44703done
44704
f10e38c4
VZ
44705 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44706 ;;
44707esac
dae87f93 44708fi
f10e38c4
VZ
44709PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44710
44711if test -n "$PKG_CONFIG"; then
44712 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44713echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
44714else
44715 echo "$as_me:$LINENO: result: no" >&5
44716echo "${ECHO_T}no" >&6
44717fi
44718
f10e38c4 44719 fi
ce756cb0 44720
f10e38c4
VZ
44721 if test "$PKG_CONFIG" = "no" ; then
44722 echo "*** The pkg-config script could not be found. Make sure it is"
44723 echo "*** in your path, or set the PKG_CONFIG environment variable"
44724 echo "*** to the full path to pkg-config."
44725 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44726 else
44727 PKG_CONFIG_MIN_VERSION=0.9.0
44728 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44729 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44730 gstreamer-interfaces-$GST_MAJORMINOR
44731 gstreamer-gconf-$GST_MAJORMINOR" >&5
44732echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44733 gstreamer-interfaces-$GST_MAJORMINOR
44734 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
44735
44736 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44737 gstreamer-interfaces-$GST_MAJORMINOR
44738 gstreamer-gconf-$GST_MAJORMINOR" ; then
44739 echo "$as_me:$LINENO: result: yes" >&5
44740echo "${ECHO_T}yes" >&6
44741 succeeded=yes
dae87f93 44742
f10e38c4
VZ
44743 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44744echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44745 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44746 gstreamer-interfaces-$GST_MAJORMINOR
44747 gstreamer-gconf-$GST_MAJORMINOR"`
44748 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44749echo "${ECHO_T}$GST_CFLAGS" >&6
44750
44751 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44752echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44753 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44754 gstreamer-interfaces-$GST_MAJORMINOR
44755 gstreamer-gconf-$GST_MAJORMINOR"`
44756 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44757echo "${ECHO_T}$GST_LIBS" >&6
44758 else
44759 GST_CFLAGS=""
44760 GST_LIBS=""
44761 ## If we have a custom action on failure, don't print errors, but
44762 ## do set a variable so people can do so.
44763 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44764 gstreamer-interfaces-$GST_MAJORMINOR
44765 gstreamer-gconf-$GST_MAJORMINOR"`
dae87f93 44766
dae87f93
RN
44767 fi
44768
44769
ce756cb0 44770
f10e38c4
VZ
44771 else
44772 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44773 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44774 fi
44775 fi
ce756cb0 44776
f10e38c4 44777 if test $succeeded = yes; then
dae87f93 44778
f10e38c4
VZ
44779 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44780 LIBS="$LIBS $GST_LIBS"
dae87f93 44781
f10e38c4 44782 else
ce756cb0 44783
f10e38c4
VZ
44784 { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
44785echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
44786 wxUSE_GSTREAMER="no"
ce756cb0 44787
f10e38c4 44788 fi
ce756cb0 44789
dae87f93 44790 fi
ce756cb0 44791
f10e38c4 44792
dae87f93
RN
44793 if test "$wxUSE_GSTREAMER" = "yes"; then
44794 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44795#define wxUSE_GSTREAMER 1
44796_ACEOF
44797
dae87f93
RN
44798 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44799echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44800 fi
44801 fi
f10e38c4 44802 USE_MEDIA=1
ce756cb0
RN
44803 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44804 cat >>confdefs.h <<\_ACEOF
44805#define wxUSE_MEDIACTRL 1
44806_ACEOF
44807
44808fi
44809
44810
a848cd7e
SC
44811if test "$cross_compiling" = "yes"; then
44812 OSINFO="\"$host\""
44813else
44814 OSINFO=`uname -s -r -m`
44815 OSINFO="\"$OSINFO\""
44816fi
44817
44818cat >>confdefs.h <<_ACEOF
44819#define WXWIN_OS_DESCRIPTION $OSINFO
44820_ACEOF
44821
44822
44823
44824if test "x$prefix" != "xNONE"; then
44825 wxPREFIX=$prefix
44826else
44827 wxPREFIX=$ac_default_prefix
44828fi
44829
44830cat >>confdefs.h <<_ACEOF
44831#define wxINSTALL_PREFIX "$wxPREFIX"
44832_ACEOF
44833
44834
a848cd7e
SC
44835
44836
44837CORE_BASE_LIBS="net base"
44838CORE_GUI_LIBS="adv core"
44839
44840if test "$wxUSE_XML" = "yes" ; then
44841 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44842fi
44843if test "$wxUSE_ODBC" != "no" ; then
44844 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44845 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44846fi
44847if test "$wxUSE_HTML" = "yes" ; then
44848 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44849fi
61639efb
VZ
44850if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44851 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44852fi
9a8f0513
VS
44853if test "$wxUSE_XRC" = "yes" ; then
44854 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44855fi
a848cd7e
SC
44856
44857if test "$wxUSE_GUI" != "yes"; then
44858 CORE_GUI_LIBS=""
44859fi
44860
44861
44862
44863
44864
44865
44866
a848cd7e 44867if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44868 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44869 if test "$USE_DARWIN" = 1; then
44870 LDFLAGS="$LDFLAGS -framework QuickTime"
44871 else
44872 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44873 fi
07bea8f0 44874 fi
5dcf30a0 44875 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44876 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44877 else
44878 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44879 fi
a848cd7e
SC
44880fi
44881if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44882 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44883 if test "$wxUSE_MEDIACTRL" = "yes"; then
44884 LDFLAGS="$LDFLAGS -framework QuickTime"
44885 fi
a848cd7e 44886fi
19b27e78
MW
44887if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44888 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44889fi
a848cd7e
SC
44890
44891
44892LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44893
44894have_cos=0
44895have_floor=0
44896
44897for ac_func in cos
44898do
44899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44900echo "$as_me:$LINENO: checking for $ac_func" >&5
44901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44902if eval "test \"\${$as_ac_var+set}\" = set"; then
44903 echo $ECHO_N "(cached) $ECHO_C" >&6
44904else
44905 cat >conftest.$ac_ext <<_ACEOF
44906/* confdefs.h. */
44907_ACEOF
44908cat confdefs.h >>conftest.$ac_ext
44909cat >>conftest.$ac_ext <<_ACEOF
44910/* end confdefs.h. */
ac1cb8d3
VS
44911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44913#define $ac_func innocuous_$ac_func
44914
a848cd7e
SC
44915/* System header to define __stub macros and hopefully few prototypes,
44916 which can conflict with char $ac_func (); below.
44917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44918 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44919
a848cd7e
SC
44920#ifdef __STDC__
44921# include <limits.h>
44922#else
44923# include <assert.h>
44924#endif
ac1cb8d3
VS
44925
44926#undef $ac_func
44927
a848cd7e
SC
44928/* Override any gcc2 internal prototype to avoid an error. */
44929#ifdef __cplusplus
44930extern "C"
44931{
44932#endif
44933/* We use char because int might match the return type of a gcc2
44934 builtin and then its argument prototype would still apply. */
44935char $ac_func ();
44936/* The GNU C library defines this for functions which it implements
44937 to always fail with ENOSYS. Some functions are actually named
44938 something starting with __ and the normal name is an alias. */
44939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44940choke me
44941#else
44942char (*f) () = $ac_func;
44943#endif
44944#ifdef __cplusplus
44945}
44946#endif
44947
44948int
44949main ()
44950{
44951return f != $ac_func;
44952 ;
44953 return 0;
44954}
44955_ACEOF
44956rm -f conftest.$ac_objext conftest$ac_exeext
44957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44958 (eval $ac_link) 2>conftest.er1
a848cd7e 44959 ac_status=$?
ac1cb8d3
VS
44960 grep -v '^ *+' conftest.er1 >conftest.err
44961 rm -f conftest.er1
44962 cat conftest.err >&5
a848cd7e
SC
44963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44964 (exit $ac_status); } &&
2b850ae1
RR
44965 { ac_try='test -z "$ac_c_werror_flag"
44966 || test ! -s conftest.err'
ac1cb8d3
VS
44967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44968 (eval $ac_try) 2>&5
44969 ac_status=$?
44970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44971 (exit $ac_status); }; } &&
44972 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44974 (eval $ac_try) 2>&5
44975 ac_status=$?
44976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44977 (exit $ac_status); }; }; then
44978 eval "$as_ac_var=yes"
44979else
44980 echo "$as_me: failed program was:" >&5
44981sed 's/^/| /' conftest.$ac_ext >&5
44982
44983eval "$as_ac_var=no"
44984fi
ac1cb8d3
VS
44985rm -f conftest.err conftest.$ac_objext \
44986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44987fi
44988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44989echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44990if test `eval echo '${'$as_ac_var'}'` = yes; then
44991 cat >>confdefs.h <<_ACEOF
44992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44993_ACEOF
44994 have_cos=1
44995fi
44996done
44997
44998
44999for ac_func in floor
45000do
45001as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45002echo "$as_me:$LINENO: checking for $ac_func" >&5
45003echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45004if eval "test \"\${$as_ac_var+set}\" = set"; then
45005 echo $ECHO_N "(cached) $ECHO_C" >&6
45006else
45007 cat >conftest.$ac_ext <<_ACEOF
45008/* confdefs.h. */
45009_ACEOF
45010cat confdefs.h >>conftest.$ac_ext
45011cat >>conftest.$ac_ext <<_ACEOF
45012/* end confdefs.h. */
ac1cb8d3
VS
45013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45015#define $ac_func innocuous_$ac_func
45016
a848cd7e
SC
45017/* System header to define __stub macros and hopefully few prototypes,
45018 which can conflict with char $ac_func (); below.
45019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45020 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 45021
a848cd7e
SC
45022#ifdef __STDC__
45023# include <limits.h>
45024#else
45025# include <assert.h>
45026#endif
ac1cb8d3
VS
45027
45028#undef $ac_func
45029
a848cd7e
SC
45030/* Override any gcc2 internal prototype to avoid an error. */
45031#ifdef __cplusplus
45032extern "C"
45033{
45034#endif
45035/* We use char because int might match the return type of a gcc2
45036 builtin and then its argument prototype would still apply. */
45037char $ac_func ();
45038/* The GNU C library defines this for functions which it implements
45039 to always fail with ENOSYS. Some functions are actually named
45040 something starting with __ and the normal name is an alias. */
45041#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45042choke me
45043#else
45044char (*f) () = $ac_func;
45045#endif
45046#ifdef __cplusplus
45047}
45048#endif
45049
45050int
45051main ()
45052{
45053return f != $ac_func;
45054 ;
45055 return 0;
45056}
45057_ACEOF
45058rm -f conftest.$ac_objext conftest$ac_exeext
45059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45060 (eval $ac_link) 2>conftest.er1
a848cd7e 45061 ac_status=$?
ac1cb8d3
VS
45062 grep -v '^ *+' conftest.er1 >conftest.err
45063 rm -f conftest.er1
45064 cat conftest.err >&5
a848cd7e
SC
45065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45066 (exit $ac_status); } &&
2b850ae1
RR
45067 { ac_try='test -z "$ac_c_werror_flag"
45068 || test ! -s conftest.err'
ac1cb8d3
VS
45069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45070 (eval $ac_try) 2>&5
45071 ac_status=$?
45072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45073 (exit $ac_status); }; } &&
45074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45076 (eval $ac_try) 2>&5
45077 ac_status=$?
45078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45079 (exit $ac_status); }; }; then
45080 eval "$as_ac_var=yes"
45081else
45082 echo "$as_me: failed program was:" >&5
45083sed 's/^/| /' conftest.$ac_ext >&5
45084
45085eval "$as_ac_var=no"
45086fi
ac1cb8d3
VS
45087rm -f conftest.err conftest.$ac_objext \
45088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45089fi
45090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45091echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45092if test `eval echo '${'$as_ac_var'}'` = yes; then
45093 cat >>confdefs.h <<_ACEOF
45094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45095_ACEOF
45096 have_floor=1
45097fi
45098done
45099
45100echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
45101echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
45102if test "$have_cos" = 1 -a "$have_floor" = 1; then
45103 echo "$as_me:$LINENO: result: yes" >&5
45104echo "${ECHO_T}yes" >&6
45105else
45106 echo "$as_me:$LINENO: result: no" >&5
45107echo "${ECHO_T}no" >&6
45108 LIBS="$LIBS -lm"
45109 # use different functions to avoid configure caching
45110 have_sin=0
45111 have_ceil=0
45112
45113for ac_func in sin
45114do
45115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45116echo "$as_me:$LINENO: checking for $ac_func" >&5
45117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45118if eval "test \"\${$as_ac_var+set}\" = set"; then
45119 echo $ECHO_N "(cached) $ECHO_C" >&6
45120else
45121 cat >conftest.$ac_ext <<_ACEOF
45122/* confdefs.h. */
45123_ACEOF
45124cat confdefs.h >>conftest.$ac_ext
45125cat >>conftest.$ac_ext <<_ACEOF
45126/* end confdefs.h. */
ac1cb8d3
VS
45127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45129#define $ac_func innocuous_$ac_func
45130
a848cd7e
SC
45131/* System header to define __stub macros and hopefully few prototypes,
45132 which can conflict with char $ac_func (); below.
45133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45134 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 45135
a848cd7e
SC
45136#ifdef __STDC__
45137# include <limits.h>
45138#else
45139# include <assert.h>
45140#endif
ac1cb8d3
VS
45141
45142#undef $ac_func
45143
a848cd7e
SC
45144/* Override any gcc2 internal prototype to avoid an error. */
45145#ifdef __cplusplus
45146extern "C"
45147{
45148#endif
45149/* We use char because int might match the return type of a gcc2
45150 builtin and then its argument prototype would still apply. */
45151char $ac_func ();
45152/* The GNU C library defines this for functions which it implements
45153 to always fail with ENOSYS. Some functions are actually named
45154 something starting with __ and the normal name is an alias. */
45155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45156choke me
45157#else
45158char (*f) () = $ac_func;
45159#endif
45160#ifdef __cplusplus
45161}
45162#endif
45163
45164int
45165main ()
45166{
45167return f != $ac_func;
45168 ;
45169 return 0;
45170}
45171_ACEOF
45172rm -f conftest.$ac_objext conftest$ac_exeext
45173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45174 (eval $ac_link) 2>conftest.er1
a848cd7e 45175 ac_status=$?
ac1cb8d3
VS
45176 grep -v '^ *+' conftest.er1 >conftest.err
45177 rm -f conftest.er1
45178 cat conftest.err >&5
a848cd7e
SC
45179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45180 (exit $ac_status); } &&
2b850ae1
RR
45181 { ac_try='test -z "$ac_c_werror_flag"
45182 || test ! -s conftest.err'
ac1cb8d3
VS
45183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45184 (eval $ac_try) 2>&5
45185 ac_status=$?
45186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45187 (exit $ac_status); }; } &&
45188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45190 (eval $ac_try) 2>&5
45191 ac_status=$?
45192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45193 (exit $ac_status); }; }; then
45194 eval "$as_ac_var=yes"
45195else
45196 echo "$as_me: failed program was:" >&5
45197sed 's/^/| /' conftest.$ac_ext >&5
45198
45199eval "$as_ac_var=no"
45200fi
ac1cb8d3
VS
45201rm -f conftest.err conftest.$ac_objext \
45202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45203fi
45204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45206if test `eval echo '${'$as_ac_var'}'` = yes; then
45207 cat >>confdefs.h <<_ACEOF
45208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45209_ACEOF
45210 have_sin=1
45211fi
45212done
45213
45214
45215for ac_func in ceil
45216do
45217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45218echo "$as_me:$LINENO: checking for $ac_func" >&5
45219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45220if eval "test \"\${$as_ac_var+set}\" = set"; then
45221 echo $ECHO_N "(cached) $ECHO_C" >&6
45222else
45223 cat >conftest.$ac_ext <<_ACEOF
45224/* confdefs.h. */
45225_ACEOF
45226cat confdefs.h >>conftest.$ac_ext
45227cat >>conftest.$ac_ext <<_ACEOF
45228/* end confdefs.h. */
ac1cb8d3
VS
45229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45231#define $ac_func innocuous_$ac_func
45232
a848cd7e
SC
45233/* System header to define __stub macros and hopefully few prototypes,
45234 which can conflict with char $ac_func (); below.
45235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45236 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 45237
a848cd7e
SC
45238#ifdef __STDC__
45239# include <limits.h>
45240#else
45241# include <assert.h>
45242#endif
ac1cb8d3
VS
45243
45244#undef $ac_func
45245
a848cd7e
SC
45246/* Override any gcc2 internal prototype to avoid an error. */
45247#ifdef __cplusplus
45248extern "C"
45249{
45250#endif
45251/* We use char because int might match the return type of a gcc2
45252 builtin and then its argument prototype would still apply. */
45253char $ac_func ();
45254/* The GNU C library defines this for functions which it implements
45255 to always fail with ENOSYS. Some functions are actually named
45256 something starting with __ and the normal name is an alias. */
45257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45258choke me
45259#else
45260char (*f) () = $ac_func;
45261#endif
45262#ifdef __cplusplus
45263}
45264#endif
45265
45266int
45267main ()
45268{
45269return f != $ac_func;
45270 ;
45271 return 0;
45272}
45273_ACEOF
45274rm -f conftest.$ac_objext conftest$ac_exeext
45275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45276 (eval $ac_link) 2>conftest.er1
a848cd7e 45277 ac_status=$?
ac1cb8d3
VS
45278 grep -v '^ *+' conftest.er1 >conftest.err
45279 rm -f conftest.er1
45280 cat conftest.err >&5
a848cd7e
SC
45281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45282 (exit $ac_status); } &&
2b850ae1
RR
45283 { ac_try='test -z "$ac_c_werror_flag"
45284 || test ! -s conftest.err'
ac1cb8d3
VS
45285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45286 (eval $ac_try) 2>&5
45287 ac_status=$?
45288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45289 (exit $ac_status); }; } &&
45290 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45292 (eval $ac_try) 2>&5
45293 ac_status=$?
45294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45295 (exit $ac_status); }; }; then
45296 eval "$as_ac_var=yes"
45297else
45298 echo "$as_me: failed program was:" >&5
45299sed 's/^/| /' conftest.$ac_ext >&5
45300
45301eval "$as_ac_var=no"
45302fi
ac1cb8d3
VS
45303rm -f conftest.err conftest.$ac_objext \
45304 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45305fi
45306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45307echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45308if test `eval echo '${'$as_ac_var'}'` = yes; then
45309 cat >>confdefs.h <<_ACEOF
45310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45311_ACEOF
45312 have_ceil=1
45313fi
45314done
45315
45316 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
45317echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
45318 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
45319 echo "$as_me:$LINENO: result: yes" >&5
45320echo "${ECHO_T}yes" >&6
45321 else
45322 echo "$as_me:$LINENO: result: no" >&5
45323echo "${ECHO_T}no" >&6
45324 # not sure we should warn the user, crash, etc.
45325 fi
45326fi
45327
45328if test "$wxUSE_GUI" = "yes"; then
45329
45330
8bce5cda
MW
45331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45332 dynamic erase event exec font image minimal mobile \
45333 mobile/wxedit mobile/styles propsize render \
9e39d889 45334 rotate shaped vscroll widgets"
a848cd7e
SC
45335
45336 if test "$wxUSE_MONOLITHIC" != "yes"; then
45337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45338 fi
0b78747f 45339 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45341 if test "$wxUSE_UNIVERSAL" != "yes"; then
45342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45343 fi
45344 fi
45345 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45347 fi
a848cd7e
SC
45348else
45349 SAMPLES_SUBDIRS="console"
45350fi
45351
45352
48f625bc 45353if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45354 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45355elif test "$GCC" = yes ; then
45356 CWARNINGS="-Wall -Wundef"
45357fi
45358
48f625bc 45359if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45360 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45361elif test "$GXX" = yes ; then
45362 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45363fi
a848cd7e 45364
a848cd7e 45365
5ff751d6
VZ
45366WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45367WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45368
45369
c92ad099 45370CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45371 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45372 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45373 $CPPFLAGS `
5ff751d6 45374
8aeeb05c 45375C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45376CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45377CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45378
45379WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45380
a848cd7e 45381
95986553
DE
45382if test "x$MWCC" = "xyes"; then
45383
45384 CC="$CC -cwd source -I-"
45385 CXX="$CXX -cwd source -I-"
45386fi
45387
a848cd7e 45388
0c3c69fc 45389LIBS=`echo $LIBS`
a848cd7e
SC
45390EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45391EXTRALIBS_XML="$EXPAT_LINK"
45392EXTRALIBS_HTML="$MSPACK_LINK"
45393EXTRALIBS_ODBC="$ODBC_LINK"
45394if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45395 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45396fi
45397if test "$wxUSE_OPENGL" = "yes"; then
45398 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45399fi
45400
8aeeb05c 45401LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45402
5ff751d6 45403WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45404
45405if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45406 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45407fi
45408if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45409 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45410fi
45411if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45412 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45413fi
45414if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45415 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45416fi
45417if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45418 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45419fi
45420if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45421 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45422fi
45423if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45424 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45425fi
45426
45427for i in $wxconfig_3rdparty ; do
5ff751d6 45428 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45429done
45430
45431
45432if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45433 WXUNIV=1
45434else
45435 WXUNIV=0
45436fi
45437
45438
45439
45440
45441
45442
45443
45444
45445
45446if test $wxUSE_MONOLITHIC = "yes" ; then
45447 MONOLITHIC=1
45448else
45449 MONOLITHIC=0
45450fi
45451
45452if test $wxUSE_PLUGINS = "yes" ; then
45453 USE_PLUGINS=1
45454else
45455 USE_PLUGINS=0
45456fi
45457
45458if test $wxUSE_ODBC != "no" ; then
45459 USE_ODBC=1
45460else
45461 USE_ODBC=0
45462fi
45463
16358932
VZ
45464if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45465 USE_QA=1
45466else
45467 USE_QA=0
45468fi
45469
a848cd7e
SC
45470if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45471 OFFICIAL_BUILD=1
45472else
45473 OFFICIAL_BUILD=0
45474fi
45475
45476
45477
45478
45479
45480
45481
45482
45483
45484
45485
45486
45487
45488
45489
45490
45491
45492
45493
ceec2216 45494
d1c38808 45495
3565d135 45496
2b850ae1 45497
a848cd7e
SC
45498
45499
45500TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45501
45502
45503
45504
45505
45506
45507
45508
4d4ff94c
VZ
45509case "$TOOLKIT" in
45510 GTK)
45511 TOOLKIT_USER="GTK+"
45512 if test "$WXGTK20" = 1; then
45513 TOOLKIT_USER="$TOOLKIT_USER 2"
45514 fi
9a8f0513 45515 ;;
4d4ff94c
VZ
45516
45517 *)
45518 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45519 ;;
4d4ff94c 45520esac
a848cd7e 45521
fb00f58d
JS
45522if test "$wxUSE_WINE" = "yes"; then
45523 BAKEFILE_FORCE_PLATFORM=win32
45524fi
45525
7afc46ab
KO
45526if test "$wxUSE_MAC" = 1 ; then
45527 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45528 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45529 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45530 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45531 bk_use_pch=no
45532 fi
45533 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45534 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45535 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45536fi
45537
9a8f0513 45538
1e9e8aba
DE
45539
45540
a848cd7e 45541 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45542 if test "x${host}" = "x" ; then
45543 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45544echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45545 { (exit 1); exit 1; }; }
45546 fi
45547
a848cd7e
SC
45548 BAKEFILE_HOST="${host}"
45549 fi
45550
45551 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45552
45553 if test -n "$ac_tool_prefix"; then
45554 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45555set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45556echo "$as_me:$LINENO: checking for $ac_word" >&5
45557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45558if test "${ac_cv_prog_RANLIB+set}" = set; then
45559 echo $ECHO_N "(cached) $ECHO_C" >&6
45560else
45561 if test -n "$RANLIB"; then
45562 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45563else
45564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45565for as_dir in $PATH
45566do
45567 IFS=$as_save_IFS
45568 test -z "$as_dir" && as_dir=.
45569 for ac_exec_ext in '' $ac_executable_extensions; do
45570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45571 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45573 break 2
45574 fi
45575done
45576done
45577
45578fi
45579fi
45580RANLIB=$ac_cv_prog_RANLIB
45581if test -n "$RANLIB"; then
45582 echo "$as_me:$LINENO: result: $RANLIB" >&5
45583echo "${ECHO_T}$RANLIB" >&6
45584else
45585 echo "$as_me:$LINENO: result: no" >&5
45586echo "${ECHO_T}no" >&6
45587fi
45588
45589fi
45590if test -z "$ac_cv_prog_RANLIB"; then
45591 ac_ct_RANLIB=$RANLIB
45592 # Extract the first word of "ranlib", so it can be a program name with args.
45593set dummy ranlib; ac_word=$2
45594echo "$as_me:$LINENO: checking for $ac_word" >&5
45595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45596if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45597 echo $ECHO_N "(cached) $ECHO_C" >&6
45598else
45599 if test -n "$ac_ct_RANLIB"; then
45600 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45601else
45602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45603for as_dir in $PATH
45604do
45605 IFS=$as_save_IFS
45606 test -z "$as_dir" && as_dir=.
45607 for ac_exec_ext in '' $ac_executable_extensions; do
45608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45609 ac_cv_prog_ac_ct_RANLIB="ranlib"
45610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45611 break 2
45612 fi
45613done
45614done
45615
45616 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45617fi
45618fi
45619ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45620if test -n "$ac_ct_RANLIB"; then
45621 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45622echo "${ECHO_T}$ac_ct_RANLIB" >&6
45623else
45624 echo "$as_me:$LINENO: result: no" >&5
45625echo "${ECHO_T}no" >&6
45626fi
45627
45628 RANLIB=$ac_ct_RANLIB
45629else
45630 RANLIB="$ac_cv_prog_RANLIB"
45631fi
45632
45633 # Find a good install program. We prefer a C program (faster),
45634# so one script is as good as another. But avoid the broken or
45635# incompatible versions:
45636# SysV /etc/install, /usr/sbin/install
45637# SunOS /usr/etc/install
45638# IRIX /sbin/install
45639# AIX /bin/install
45640# AmigaOS /C/install, which installs bootblocks on floppy discs
45641# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45642# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45643# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45644# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45645# ./install, which can be erroneously created by make from ./install.sh.
45646echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45647echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45648if test -z "$INSTALL"; then
45649if test "${ac_cv_path_install+set}" = set; then
45650 echo $ECHO_N "(cached) $ECHO_C" >&6
45651else
45652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45653for as_dir in $PATH
45654do
45655 IFS=$as_save_IFS
45656 test -z "$as_dir" && as_dir=.
45657 # Account for people who put trailing slashes in PATH elements.
45658case $as_dir/ in
45659 ./ | .// | /cC/* | \
45660 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45661 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45662 /usr/ucb/* ) ;;
45663 *)
45664 # OSF1 and SCO ODT 3.0 have their own names for install.
45665 # Don't use installbsd from OSF since it installs stuff as root
45666 # by default.
45667 for ac_prog in ginstall scoinst install; do
45668 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45669 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45670 if test $ac_prog = install &&
45671 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45672 # AIX install. It has an incompatible calling convention.
45673 :
45674 elif test $ac_prog = install &&
45675 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45676 # program-specific install script used by HP pwplus--don't use.
45677 :
45678 else
45679 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45680 break 3
45681 fi
45682 fi
a848cd7e
SC
45683 done
45684 done
45685 ;;
45686esac
45687done
45688
45689
45690fi
45691 if test "${ac_cv_path_install+set}" = set; then
45692 INSTALL=$ac_cv_path_install
45693 else
45694 # As a last resort, use the slow shell script. We don't cache a
45695 # path for INSTALL within a source directory, because that will
45696 # break other packages using the cache if that directory is
45697 # removed, or if the path is relative.
45698 INSTALL=$ac_install_sh
45699 fi
45700fi
45701echo "$as_me:$LINENO: result: $INSTALL" >&5
45702echo "${ECHO_T}$INSTALL" >&6
45703
45704# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45705# It thinks the first close brace ends the variable substitution.
45706test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45707
45708test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45709
45710test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45711
45712 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45713echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45714LN_S=$as_ln_s
45715if test "$LN_S" = "ln -s"; then
45716 echo "$as_me:$LINENO: result: yes" >&5
45717echo "${ECHO_T}yes" >&6
45718else
45719 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45720echo "${ECHO_T}no, using $LN_S" >&6
45721fi
45722
45723
45724 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45725echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45726set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45727if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45728 echo $ECHO_N "(cached) $ECHO_C" >&6
45729else
45730 cat >conftest.make <<\_ACEOF
45731all:
45732 @echo 'ac_maketemp="$(MAKE)"'
45733_ACEOF
45734# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45735eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45736if test -n "$ac_maketemp"; then
45737 eval ac_cv_prog_make_${ac_make}_set=yes
45738else
45739 eval ac_cv_prog_make_${ac_make}_set=no
45740fi
45741rm -f conftest.make
45742fi
45743if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45744 echo "$as_me:$LINENO: result: yes" >&5
45745echo "${ECHO_T}yes" >&6
45746 SET_MAKE=
45747else
45748 echo "$as_me:$LINENO: result: no" >&5
45749echo "${ECHO_T}no" >&6
45750 SET_MAKE="MAKE=${MAKE-make}"
45751fi
45752
45753
45754
45755 if test -n "$ac_tool_prefix"; then
45756 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45757set dummy ${ac_tool_prefix}ar; ac_word=$2
45758echo "$as_me:$LINENO: checking for $ac_word" >&5
45759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45760if test "${ac_cv_prog_AR+set}" = set; then
45761 echo $ECHO_N "(cached) $ECHO_C" >&6
45762else
45763 if test -n "$AR"; then
45764 ac_cv_prog_AR="$AR" # Let the user override the test.
45765else
45766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45767for as_dir in $PATH
45768do
45769 IFS=$as_save_IFS
45770 test -z "$as_dir" && as_dir=.
45771 for ac_exec_ext in '' $ac_executable_extensions; do
45772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45773 ac_cv_prog_AR="${ac_tool_prefix}ar"
45774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45775 break 2
45776 fi
45777done
45778done
45779
45780fi
45781fi
45782AR=$ac_cv_prog_AR
45783if test -n "$AR"; then
45784 echo "$as_me:$LINENO: result: $AR" >&5
45785echo "${ECHO_T}$AR" >&6
45786else
45787 echo "$as_me:$LINENO: result: no" >&5
45788echo "${ECHO_T}no" >&6
45789fi
45790
45791fi
45792if test -z "$ac_cv_prog_AR"; then
45793 ac_ct_AR=$AR
45794 # Extract the first word of "ar", so it can be a program name with args.
45795set dummy ar; ac_word=$2
45796echo "$as_me:$LINENO: checking for $ac_word" >&5
45797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45798if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45799 echo $ECHO_N "(cached) $ECHO_C" >&6
45800else
45801 if test -n "$ac_ct_AR"; then
45802 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45803else
45804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45805for as_dir in $PATH
45806do
45807 IFS=$as_save_IFS
45808 test -z "$as_dir" && as_dir=.
45809 for ac_exec_ext in '' $ac_executable_extensions; do
45810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45811 ac_cv_prog_ac_ct_AR="ar"
45812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45813 break 2
45814 fi
45815done
45816done
45817
45818 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45819fi
45820fi
45821ac_ct_AR=$ac_cv_prog_ac_ct_AR
45822if test -n "$ac_ct_AR"; then
45823 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45824echo "${ECHO_T}$ac_ct_AR" >&6
45825else
45826 echo "$as_me:$LINENO: result: no" >&5
45827echo "${ECHO_T}no" >&6
45828fi
45829
45830 AR=$ac_ct_AR
45831else
45832 AR="$ac_cv_prog_AR"
45833fi
45834
45835 if test -n "$ac_tool_prefix"; then
45836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45837set dummy ${ac_tool_prefix}strip; ac_word=$2
45838echo "$as_me:$LINENO: checking for $ac_word" >&5
45839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45840if test "${ac_cv_prog_STRIP+set}" = set; then
45841 echo $ECHO_N "(cached) $ECHO_C" >&6
45842else
45843 if test -n "$STRIP"; then
45844 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45845else
45846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45847for as_dir in $PATH
45848do
45849 IFS=$as_save_IFS
45850 test -z "$as_dir" && as_dir=.
45851 for ac_exec_ext in '' $ac_executable_extensions; do
45852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45853 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45855 break 2
45856 fi
45857done
45858done
45859
45860fi
45861fi
45862STRIP=$ac_cv_prog_STRIP
45863if test -n "$STRIP"; then
45864 echo "$as_me:$LINENO: result: $STRIP" >&5
45865echo "${ECHO_T}$STRIP" >&6
45866else
45867 echo "$as_me:$LINENO: result: no" >&5
45868echo "${ECHO_T}no" >&6
45869fi
45870
45871fi
45872if test -z "$ac_cv_prog_STRIP"; then
45873 ac_ct_STRIP=$STRIP
45874 # Extract the first word of "strip", so it can be a program name with args.
45875set dummy strip; ac_word=$2
45876echo "$as_me:$LINENO: checking for $ac_word" >&5
45877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45878if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45879 echo $ECHO_N "(cached) $ECHO_C" >&6
45880else
45881 if test -n "$ac_ct_STRIP"; then
45882 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45883else
45884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45885for as_dir in $PATH
45886do
45887 IFS=$as_save_IFS
45888 test -z "$as_dir" && as_dir=.
45889 for ac_exec_ext in '' $ac_executable_extensions; do
45890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45891 ac_cv_prog_ac_ct_STRIP="strip"
45892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45893 break 2
45894 fi
45895done
45896done
45897
45898 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45899fi
45900fi
45901ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45902if test -n "$ac_ct_STRIP"; then
45903 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45904echo "${ECHO_T}$ac_ct_STRIP" >&6
45905else
45906 echo "$as_me:$LINENO: result: no" >&5
45907echo "${ECHO_T}no" >&6
45908fi
45909
45910 STRIP=$ac_ct_STRIP
45911else
45912 STRIP="$ac_cv_prog_STRIP"
45913fi
45914
45915 if test -n "$ac_tool_prefix"; then
45916 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45917set dummy ${ac_tool_prefix}nm; ac_word=$2
45918echo "$as_me:$LINENO: checking for $ac_word" >&5
45919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45920if test "${ac_cv_prog_NM+set}" = set; then
45921 echo $ECHO_N "(cached) $ECHO_C" >&6
45922else
45923 if test -n "$NM"; then
45924 ac_cv_prog_NM="$NM" # Let the user override the test.
45925else
45926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45927for as_dir in $PATH
45928do
45929 IFS=$as_save_IFS
45930 test -z "$as_dir" && as_dir=.
45931 for ac_exec_ext in '' $ac_executable_extensions; do
45932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45933 ac_cv_prog_NM="${ac_tool_prefix}nm"
45934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45935 break 2
45936 fi
45937done
45938done
45939
45940fi
45941fi
45942NM=$ac_cv_prog_NM
45943if test -n "$NM"; then
45944 echo "$as_me:$LINENO: result: $NM" >&5
45945echo "${ECHO_T}$NM" >&6
45946else
45947 echo "$as_me:$LINENO: result: no" >&5
45948echo "${ECHO_T}no" >&6
45949fi
45950
45951fi
45952if test -z "$ac_cv_prog_NM"; then
45953 ac_ct_NM=$NM
45954 # Extract the first word of "nm", so it can be a program name with args.
45955set dummy nm; ac_word=$2
45956echo "$as_me:$LINENO: checking for $ac_word" >&5
45957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45958if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45959 echo $ECHO_N "(cached) $ECHO_C" >&6
45960else
45961 if test -n "$ac_ct_NM"; then
45962 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45963else
45964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45965for as_dir in $PATH
45966do
45967 IFS=$as_save_IFS
45968 test -z "$as_dir" && as_dir=.
45969 for ac_exec_ext in '' $ac_executable_extensions; do
45970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45971 ac_cv_prog_ac_ct_NM="nm"
45972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45973 break 2
45974 fi
45975done
45976done
45977
45978 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45979fi
45980fi
45981ac_ct_NM=$ac_cv_prog_ac_ct_NM
45982if test -n "$ac_ct_NM"; then
45983 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45984echo "${ECHO_T}$ac_ct_NM" >&6
45985else
45986 echo "$as_me:$LINENO: result: no" >&5
45987echo "${ECHO_T}no" >&6
45988fi
45989
45990 NM=$ac_ct_NM
45991else
45992 NM="$ac_cv_prog_NM"
45993fi
45994
45995
45996 case ${BAKEFILE_HOST} in
45997 *-hp-hpux* )
1e9e8aba 45998 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45999 ;;
46000 *) INSTALL_DIR="$INSTALL -d"
46001 ;;
46002 esac
46003
46004
46005 LDFLAGS_GUI=
46006 case ${BAKEFILE_HOST} in
46007 *-*-cygwin* | *-*-mingw32* )
46008 LDFLAGS_GUI="-mwindows"
46009 esac
46010
46011
46012 fi
46013
46014 echo "$as_me:$LINENO: checking if make is GNU make" >&5
46015echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46016if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46017 echo $ECHO_N "(cached) $ECHO_C" >&6
46018else
46019
46020 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46021 egrep -s GNU > /dev/null); then
46022 bakefile_cv_prog_makeisgnu="yes"
46023 else
46024 bakefile_cv_prog_makeisgnu="no"
46025 fi
46026
46027fi
46028echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46029echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46030
46031 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46032 IF_GNU_MAKE=""
46033 else
46034 IF_GNU_MAKE="#"
46035 fi
46036
46037
46038
46039 PLATFORM_UNIX=0
46040 PLATFORM_WIN32=0
46041 PLATFORM_MSDOS=0
46042 PLATFORM_MAC=0
1e9e8aba 46043 PLATFORM_MACOS=0
a848cd7e
SC
46044 PLATFORM_MACOSX=0
46045 PLATFORM_OS2=0
1e9e8aba 46046 PLATFORM_BEOS=0
a848cd7e
SC
46047
46048 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46049 case "${BAKEFILE_HOST}" in
810b94f0 46050 *-*-mingw32* )
a848cd7e
SC
46051 PLATFORM_WIN32=1
46052 ;;
46053 *-pc-msdosdjgpp )
46054 PLATFORM_MSDOS=1
46055 ;;
46056 *-pc-os2_emx | *-pc-os2-emx )
46057 PLATFORM_OS2=1
46058 ;;
47bd5406 46059 *-*-darwin* )
a848cd7e
SC
46060 PLATFORM_MAC=1
46061 PLATFORM_MACOSX=1
46062 ;;
1e9e8aba
DE
46063 *-*-beos* )
46064 PLATFORM_BEOS=1
46065 ;;
46066 powerpc-apple-macos* )
46067 PLATFORM_MAC=1
46068 PLATFORM_MACOS=1
46069 ;;
a848cd7e
SC
46070 * )
46071 PLATFORM_UNIX=1
46072 ;;
46073 esac
46074 else
46075 case "$BAKEFILE_FORCE_PLATFORM" in
46076 win32 )
46077 PLATFORM_WIN32=1
46078 ;;
46079 msdos )
46080 PLATFORM_MSDOS=1
46081 ;;
46082 os2 )
46083 PLATFORM_OS2=1
46084 ;;
46085 darwin )
46086 PLATFORM_MAC=1
46087 PLATFORM_MACOSX=1
46088 ;;
46089 unix )
46090 PLATFORM_UNIX=1
46091 ;;
1e9e8aba
DE
46092 beos )
46093 PLATFORM_BEOS=1
46094 ;;
a848cd7e
SC
46095 * )
46096 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46097echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46098 { (exit 1); exit 1; }; }
46099 ;;
46100 esac
46101 fi
46102
46103
46104
46105
46106
46107
46108
46109
46110
1e9e8aba
DE
46111
46112
a848cd7e
SC
46113 # Check whether --enable-omf or --disable-omf was given.
46114if test "${enable_omf+set}" = set; then
46115 enableval="$enable_omf"
46116 bk_os2_use_omf="$enableval"
46117fi;
46118
46119 case "${BAKEFILE_HOST}" in
46120 *-*-darwin* )
47bd5406
VZ
46121 if test "x$GCC" = "xyes"; then
46122 CFLAGS="$CFLAGS -fno-common"
46123 CXXFLAGS="$CXXFLAGS -fno-common"
46124 fi
46125 if test "x$XLCC" = "xyes"; then
46126 CFLAGS="$CFLAGS -qnocommon"
46127 CXXFLAGS="$CXXFLAGS -qnocommon"
46128 fi
a848cd7e
SC
46129 ;;
46130
46131 *-pc-os2_emx | *-pc-os2-emx )
46132 if test "x$bk_os2_use_omf" = "xyes" ; then
46133 AR=emxomfar
46134 RANLIB=:
46135 LDFLAGS="-Zomf $LDFLAGS"
46136 CFLAGS="-Zomf $CFLAGS"
46137 CXXFLAGS="-Zomf $CXXFLAGS"
46138 OS2_LIBEXT="lib"
46139 else
46140 OS2_LIBEXT="a"
46141 fi
46142 ;;
1e9e8aba
DE
46143
46144 i*86-*-beos* )
46145 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46146 ;;
a848cd7e
SC
46147 esac
46148
46149
46150 SO_SUFFIX="so"
46151 SO_SUFFIX_MODULE="so"
46152 EXEEXT=""
46153 LIBPREFIX="lib"
46154 LIBEXT=".a"
46155 DLLPREFIX="lib"
46156 DLLPREFIX_MODULE=""
46157 DLLIMP_SUFFIX=""
810b94f0 46158 dlldir="$libdir"
a848cd7e
SC
46159
46160 case "${BAKEFILE_HOST}" in
46161 *-hp-hpux* )
46162 SO_SUFFIX="sl"
46163 SO_SUFFIX_MODULE="sl"
46164 ;;
46165 *-*-aix* )
46166 SO_SUFFIX="a"
46167 SO_SUFFIX_MODULE="a"
46168 ;;
810b94f0
MW
46169 *-*-cygwin* )
46170 SO_SUFFIX="dll"
46171 SO_SUFFIX_MODULE="dll"
46172 DLLIMP_SUFFIX="dll.a"
46173 EXEEXT=".exe"
46174 DLLPREFIX="cyg"
46175 dlldir="$bindir"
46176 ;;
46177 *-*-mingw32* )
a848cd7e
SC
46178 SO_SUFFIX="dll"
46179 SO_SUFFIX_MODULE="dll"
46180 DLLIMP_SUFFIX="dll.a"
46181 EXEEXT=".exe"
46182 DLLPREFIX=""
810b94f0 46183 dlldir="$bindir"
a848cd7e
SC
46184 ;;
46185 *-pc-msdosdjgpp )
46186 EXEEXT=".exe"
46187 DLLPREFIX=""
810b94f0 46188 dlldir="$bindir"
a848cd7e
SC
46189 ;;
46190 *-pc-os2_emx | *-pc-os2-emx )
46191 SO_SUFFIX="dll"
46192 SO_SUFFIX_MODULE="dll"
46193 DLLIMP_SUFFIX=$OS2_LIBEXT
46194 EXEEXT=".exe"
46195 DLLPREFIX=""
46196 LIBPREFIX=""
46197 LIBEXT=".$OS2_LIBEXT"
810b94f0 46198 dlldir="$bindir"
a848cd7e 46199 ;;
47bd5406 46200 *-*-darwin* )
a848cd7e
SC
46201 SO_SUFFIX="dylib"
46202 SO_SUFFIX_MODULE="bundle"
46203 ;;
46204 esac
46205
46206 if test "x$DLLIMP_SUFFIX" = "x" ; then
46207 DLLIMP_SUFFIX="$SO_SUFFIX"
46208 fi
46209
46210
46211
46212
46213
46214
46215
46216
46217
46218
46219
810b94f0 46220
1e9e8aba
DE
46221 PIC_FLAG=""
46222 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46223 PIC_FLAG="-fPIC"
46224 fi
46225
1e9e8aba
DE
46226 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46227 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46228 WINDOWS_IMPLIB=0
1e9e8aba 46229
a848cd7e
SC
46230 case "${BAKEFILE_HOST}" in
46231 *-hp-hpux* )
1e9e8aba 46232 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46233 LDFLAGS="$LDFLAGS -L/usr/lib"
46234
46235 SHARED_LD_CC="${CC} -b -o"
46236 SHARED_LD_CXX="${CXX} -b -o"
46237 PIC_FLAG="+Z"
46238 fi
46239 ;;
46240
46241 *-*-linux* )
46242 if test "x$GCC" != "xyes"; then
46243 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46244echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46245if test "${bakefile_cv_prog_icc+set}" = set; then
46246 echo $ECHO_N "(cached) $ECHO_C" >&6
46247else
46248
46249 cat >conftest.$ac_ext <<_ACEOF
46250/* confdefs.h. */
46251_ACEOF
46252cat confdefs.h >>conftest.$ac_ext
46253cat >>conftest.$ac_ext <<_ACEOF
46254/* end confdefs.h. */
46255
46256int
46257main ()
46258{
46259
46260 #ifndef __INTEL_COMPILER
e5efa97e 46261 This is not ICC
a848cd7e
SC
46262 #endif
46263
46264 ;
46265 return 0;
46266}
46267_ACEOF
46268rm -f conftest.$ac_objext
46269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46270 (eval $ac_compile) 2>conftest.er1
a848cd7e 46271 ac_status=$?
ac1cb8d3
VS
46272 grep -v '^ *+' conftest.er1 >conftest.err
46273 rm -f conftest.er1
46274 cat conftest.err >&5
a848cd7e
SC
46275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46276 (exit $ac_status); } &&
2b850ae1
RR
46277 { ac_try='test -z "$ac_c_werror_flag"
46278 || test ! -s conftest.err'
ac1cb8d3
VS
46279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46280 (eval $ac_try) 2>&5
46281 ac_status=$?
46282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46283 (exit $ac_status); }; } &&
46284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46286 (eval $ac_try) 2>&5
46287 ac_status=$?
46288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46289 (exit $ac_status); }; }; then
46290 bakefile_cv_prog_icc=yes
46291else
46292 echo "$as_me: failed program was:" >&5
46293sed 's/^/| /' conftest.$ac_ext >&5
46294
46295bakefile_cv_prog_icc=no
46296
46297fi
ac1cb8d3 46298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46299
46300fi
46301echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46302echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46303 if test "$bakefile_cv_prog_icc" = "yes"; then
46304 PIC_FLAG="-KPIC"
46305 fi
46306 fi
46307 ;;
46308
46309 *-*-solaris2* )
46310 if test "x$GCC" != xyes ; then
46311 SHARED_LD_CC="${CC} -G -o"
46312 SHARED_LD_CXX="${CXX} -G -o"
46313 PIC_FLAG="-KPIC"
46314 fi
46315 ;;
46316
46317 *-*-darwin* )
46318
473276a9
VS
46319D='$'
46320cat <<EOF >shared-ld-sh
a848cd7e
SC
46321#!/bin/sh
46322#-----------------------------------------------------------------------------
46323#-- Name: distrib/mac/shared-ld-sh
46324#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46325#-- Author: Gilles Depeyrot
46326#-- Copyright: (c) 2002 Gilles Depeyrot
46327#-- Licence: any use permitted
46328#-----------------------------------------------------------------------------
46329
46330verbose=0
46331args=""
46332objects=""
46333linking_flag="-dynamiclib"
810b94f0 46334ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46335
473276a9
VS
46336while test ${D}# -gt 0; do
46337 case ${D}1 in
a848cd7e
SC
46338
46339 -v)
46340 verbose=1
46341 ;;
46342
46343 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46344 # collect these options and values
473276a9 46345 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46346 shift
46347 ;;
46348
810b94f0
MW
46349 -s|-Wl,*)
46350 # collect these load args
46351 ldargs="${D}{ldargs} ${D}1"
2113bc77 46352 ;;
810b94f0
MW
46353
46354 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46355 # collect these options
473276a9 46356 args="${D}{args} ${D}1"
a848cd7e
SC
46357 ;;
46358
46359 -dynamiclib|-bundle)
473276a9 46360 linking_flag="${D}1"
a848cd7e
SC
46361 ;;
46362
46363 -*)
473276a9 46364 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46365 exit 1
46366 ;;
46367
46368 *.o | *.a | *.dylib)
46369 # collect object files
473276a9 46370 objects="${D}{objects} ${D}1"
a848cd7e
SC
46371 ;;
46372
46373 *)
473276a9 46374 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46375 exit 1
46376 ;;
46377
46378 esac
46379 shift
46380done
46381
810b94f0
MW
46382status=0
46383
a848cd7e
SC
46384#
46385# Link one module containing all the others
46386#
473276a9 46387if test ${D}{verbose} = 1; then
810b94f0 46388 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46389fi
810b94f0 46390c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46391status=${D}?
a848cd7e
SC
46392
46393#
810b94f0
MW
46394# Link the shared library from the single module created, but only if the
46395# previous command didn't fail:
a848cd7e 46396#
810b94f0
MW
46397if test ${D}{status} = 0; then
46398 if test ${D}{verbose} = 1; then
46399 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46400 fi
46401 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46402 status=${D}?
a848cd7e
SC
46403fi
46404
46405#
46406# Remove intermediate module
46407#
473276a9 46408rm -f master.${D}${D}.o
a848cd7e 46409
810b94f0 46410exit ${D}status
a848cd7e 46411EOF
473276a9 46412
583d6b4b
VZ
46413 chmod +x shared-ld-sh
46414
46415 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46416 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46417
46418
46419 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46420echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46421if test "${bakefile_cv_gcc31+set}" = set; then
46422 echo $ECHO_N "(cached) $ECHO_C" >&6
46423else
46424
46425 cat >conftest.$ac_ext <<_ACEOF
46426/* confdefs.h. */
46427_ACEOF
46428cat confdefs.h >>conftest.$ac_ext
46429cat >>conftest.$ac_ext <<_ACEOF
46430/* end confdefs.h. */
46431
46432int
46433main ()
46434{
46435
46436 #if (__GNUC__ < 3) || \
46437 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46438 This is old gcc
583d6b4b 46439 #endif
a848cd7e 46440
583d6b4b
VZ
46441 ;
46442 return 0;
46443}
46444_ACEOF
46445rm -f conftest.$ac_objext
46446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46447 (eval $ac_compile) 2>conftest.er1
46448 ac_status=$?
46449 grep -v '^ *+' conftest.er1 >conftest.err
46450 rm -f conftest.er1
46451 cat conftest.err >&5
46452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46453 (exit $ac_status); } &&
2b850ae1
RR
46454 { ac_try='test -z "$ac_c_werror_flag"
46455 || test ! -s conftest.err'
583d6b4b
VZ
46456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46457 (eval $ac_try) 2>&5
46458 ac_status=$?
46459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46460 (exit $ac_status); }; } &&
46461 { ac_try='test -s conftest.$ac_objext'
46462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46463 (eval $ac_try) 2>&5
46464 ac_status=$?
46465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46466 (exit $ac_status); }; }; then
46467
46468 bakefile_cv_gcc31=yes
46469
46470else
46471 echo "$as_me: failed program was:" >&5
46472sed 's/^/| /' conftest.$ac_ext >&5
46473
46474
46475 bakefile_cv_gcc31=no
46476
46477
46478fi
46479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46480
46481fi
46482echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46483echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46484 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46485 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46486 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46487 else
46488 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46489 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46490 fi
46491
47bd5406
VZ
46492 if test "x$GCC" == "xyes"; then
46493 PIC_FLAG="-dynamic -fPIC"
46494 fi
46495 if test "x$XLCC" = "xyes"; then
46496 PIC_FLAG="-dynamic -DPIC"
46497 fi
a848cd7e
SC
46498 ;;
46499
46500 *-*-aix* )
f6b50c59 46501 if test "x$GCC" = "xyes"; then
583d6b4b 46502 PIC_FLAG=""
f6b50c59 46503
583d6b4b
VZ
46504 case "${BAKEFILE_HOST}" in
46505 *-*-aix5* )
46506 LD_EXPFULL="-Wl,-bexpfull"
46507 ;;
46508 esac
f6b50c59 46509
583d6b4b
VZ
46510 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46511 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46512 else
46513 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46514set dummy makeC++SharedLib; ac_word=$2
46515echo "$as_me:$LINENO: checking for $ac_word" >&5
46516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46517if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46518 echo $ECHO_N "(cached) $ECHO_C" >&6
46519else
46520 if test -n "$AIX_CXX_LD"; then
46521 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46522else
46523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46524for as_dir in $PATH
46525do
46526 IFS=$as_save_IFS
46527 test -z "$as_dir" && as_dir=.
46528 for ac_exec_ext in '' $ac_executable_extensions; do
46529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46530 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46532 break 2
46533 fi
46534done
46535done
46536
46537 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46538fi
46539fi
46540AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46541if test -n "$AIX_CXX_LD"; then
46542 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46543echo "${ECHO_T}$AIX_CXX_LD" >&6
46544else
46545 echo "$as_me:$LINENO: result: no" >&5
46546echo "${ECHO_T}no" >&6
46547fi
46548
f6b50c59 46549 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46550 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46551 fi
46552 ;;
46553
46554 *-*-beos* )
1e9e8aba
DE
46555 SHARED_LD_CC="${LD} -nostart -o"
46556 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46557 ;;
46558
46559 *-*-irix* )
46560 if test "x$GCC" != "xyes"; then
46561 PIC_FLAG="-KPIC"
46562 fi
46563 ;;
46564
46565 *-*-cygwin* | *-*-mingw32* )
46566 PIC_FLAG=""
1e9e8aba
DE
46567 SHARED_LD_CC="\$(CC) -shared -o"
46568 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46569 WINDOWS_IMPLIB=1
a848cd7e
SC
46570 ;;
46571
46572 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46573 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46574 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46575 PIC_FLAG=""
473276a9
VS
46576
46577D='$'
46578cat <<EOF >dllar.sh
46579#!/bin/sh
46580#
46581# dllar - a tool to build both a .dll and an .a file
46582# from a set of object (.o) files for EMX/OS2.
46583#
46584# Written by Andrew Zabolotny, bit@freya.etu.ru
46585# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46586#
46587# This script will accept a set of files on the command line.
46588# All the public symbols from the .o files will be exported into
46589# a .DEF file, then linker will be run (through gcc) against them to
46590# build a shared library consisting of all given .o files. All libraries
46591# (.a) will be first decompressed into component .o files then act as
46592# described above. You can optionally give a description (-d "description")
46593# which will be put into .DLL. To see the list of accepted options (as well
46594# as command-line format) simply run this program without options. The .DLL
46595# is built to be imported by name (there is no guarantee that new versions
46596# of the library you build will have same ordinals for same symbols).
46597#
46598# dllar is free software; you can redistribute it and/or modify
46599# it under the terms of the GNU General Public License as published by
46600# the Free Software Foundation; either version 2, or (at your option)
46601# any later version.
46602#
46603# dllar is distributed in the hope that it will be useful,
46604# but WITHOUT ANY WARRANTY; without even the implied warranty of
46605# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46606# GNU General Public License for more details.
46607#
46608# You should have received a copy of the GNU General Public License
46609# along with dllar; see the file COPYING. If not, write to the Free
46610# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46611# 02111-1307, USA.
46612
46613# To successfuly run this program you will need:
46614# - Current drive should have LFN support (HPFS, ext2, network, etc)
46615# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46616# - gcc
46617# (used to build the .dll)
46618# - emxexp
46619# (used to create .def file from .o files)
46620# - emximp
46621# (used to create .a file from .def file)
46622# - GNU text utilites (cat, sort, uniq)
46623# used to process emxexp output
46624# - GNU file utilities (mv, rm)
46625# - GNU sed
46626# - lxlite (optional, see flag below)
46627# (used for general .dll cleanup)
46628#
46629
46630flag_USE_LXLITE=1;
46631
46632#
46633# helper functions
46634# basnam, variant of basename, which does _not_ remove the path, _iff_
46635# second argument (suffix to remove) is given
46636basnam(){
46637 case ${D}# in
46638 1)
1e9e8aba 46639 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46640 ;;
46641 2)
46642 echo ${D}1 | sed 's/'${D}2'${D}//'
46643 ;;
46644 *)
46645 echo "error in basnam ${D}*"
46646 exit 8
46647 ;;
46648 esac
46649}
46650
46651# Cleanup temporary files and output
46652CleanUp() {
46653 cd ${D}curDir
46654 for i in ${D}inputFiles ; do
46655 case ${D}i in
46656 *!)
46657 rm -rf \`basnam ${D}i !\`
46658 ;;
46659 *)
46660 ;;
46661 esac
46662 done
46663
46664 # Kill result in case of failure as there is just to many stupid make/nmake
46665 # things out there which doesn't do this.
1e9e8aba 46666 if [ ${D}# -eq 0 ]; then
473276a9
VS
46667 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46668 fi
46669}
46670
46671# Print usage and exit script with rc=1.
46672PrintHelp() {
b1d22ded
DE
46673 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46674 echo ' [-name-mangler-script script.sh]'
46675 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46676 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46677 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46678 echo ' [*.o] [*.a]'
473276a9
VS
46679 echo '*> "output_file" should have no extension.'
46680 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46681 echo ' The import library name is derived from this and is set to "name".a,'
46682 echo ' unless overridden by -import'
46683 echo '*> "importlib_name" should have no extension.'
46684 echo ' If it has the .o, or .a extension, it is automatically removed.'
46685 echo ' This name is used as the import library name and may be longer and'
46686 echo ' more descriptive than the DLL name which has to follow the old '
46687 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46688 echo '*> "script.sh may be given to override the output_file name by a'
46689 echo ' different name. It is mainly useful if the regular make process'
46690 echo ' of some package does not take into account OS/2 restriction of'
46691 echo ' DLL name lengths. It takes the importlib name as input and is'
46692 echo ' supposed to procude a shorter name as output. The script should'
46693 echo ' expect to get importlib_name without extension and should produce'
46694 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46695 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46696 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46697 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46698 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46699 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46700 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46701 echo ' If the last character of a symbol is "*", all symbols beginning'
46702 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46703 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46704 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46705 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46706 echo ' C runtime DLLs.'
b1d22ded 46707 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46708 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46709 echo ' unchanged to GCC at the end of command line.'
46710 echo '*> If you create a DLL from a library and you do not specify -o,'
46711 echo ' the basename for DLL and import library will be set to library name,'
46712 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46713 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46714 echo ' library will be renamed into gcc_s.a.'
46715 echo '--------'
46716 echo 'Example:'
46717 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46718 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46719 CleanUp
46720 exit 1
46721}
46722
46723# Execute a command.
46724# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46725# @Uses Whatever CleanUp() uses.
46726doCommand() {
46727 echo "${D}*"
46728 eval ${D}*
46729 rcCmd=${D}?
46730
1e9e8aba 46731 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46732 echo "command failed, exit code="${D}rcCmd
46733 CleanUp
46734 exit ${D}rcCmd
46735 fi
46736}
46737
46738# main routine
46739# setup globals
46740cmdLine=${D}*
46741outFile=""
46742outimpFile=""
46743inputFiles=""
b1d22ded 46744renameScript=""
473276a9
VS
46745description=""
46746CC=gcc.exe
46747CFLAGS="-s -Zcrtdll"
46748EXTRA_CFLAGS=""
46749EXPORT_BY_ORDINALS=0
46750exclude_symbols=""
46751library_flags=""
46752curDir=\`pwd\`
46753curDirS=curDir
46754case ${D}curDirS in
46755*/)
46756 ;;
46757*)
46758 curDirS=${D}{curDirS}"/"
46759 ;;
46760esac
46761# Parse commandline
46762libsToLink=0
b1d22ded 46763omfLinking=0
1e9e8aba 46764while [ ${D}1 ]; do
473276a9
VS
46765 case ${D}1 in
46766 -ord*)
46767 EXPORT_BY_ORDINALS=1;
46768 ;;
46769 -o*)
46770 shift
46771 outFile=${D}1
46772 ;;
46773 -i*)
46774 shift
46775 outimpFile=${D}1
46776 ;;
b1d22ded
DE
46777 -name-mangler-script)
46778 shift
46779 renameScript=${D}1
46780 ;;
473276a9
VS
46781 -d*)
46782 shift
46783 description=${D}1
46784 ;;
46785 -f*)
46786 shift
46787 CFLAGS=${D}1
46788 ;;
46789 -c*)
46790 shift
46791 CC=${D}1
46792 ;;
46793 -h*)
46794 PrintHelp
46795 ;;
46796 -ex*)
46797 shift
46798 exclude_symbols=${D}{exclude_symbols}${D}1" "
46799 ;;
46800 -libf*)
46801 shift
46802 library_flags=${D}{library_flags}${D}1" "
46803 ;;
46804 -nocrt*)
46805 CFLAGS="-s"
46806 ;;
46807 -nolxl*)
46808 flag_USE_LXLITE=0
46809 ;;
46810 -* | /*)
46811 case ${D}1 in
46812 -L* | -l*)
46813 libsToLink=1
46814 ;;
b1d22ded
DE
46815 -Zomf)
46816 omfLinking=1
46817 ;;
473276a9
VS
46818 *)
46819 ;;
46820 esac
46821 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46822 ;;
b1d22ded
DE
46823 *.dll)
46824 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46825 if [ ${D}omfLinking -eq 1 ]; then
46826 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46827 else
46828 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46829 fi
46830 ;;
473276a9
VS
46831 *)
46832 found=0;
1e9e8aba 46833 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46834 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46835 else
46836 for file in ${D}1 ; do
1e9e8aba 46837 if [ -f ${D}file ]; then
473276a9
VS
46838 inputFiles="${D}{inputFiles} ${D}file"
46839 found=1
46840 fi
46841 done
1e9e8aba 46842 if [ ${D}found -eq 0 ]; then
473276a9
VS
46843 echo "ERROR: No file(s) found: "${D}1
46844 exit 8
46845 fi
46846 fi
46847 ;;
46848 esac
46849 shift
46850done # iterate cmdline words
46851
46852#
1e9e8aba 46853if [ -z "${D}inputFiles" ]; then
473276a9
VS
46854 echo "dllar: no input files"
46855 PrintHelp
46856fi
46857
46858# Now extract all .o files from .a files
46859newInputFiles=""
46860for file in ${D}inputFiles ; do
46861 case ${D}file in
46862 *.a | *.lib)
46863 case ${D}file in
46864 *.a)
46865 suffix=".a"
46866 AR="ar"
46867 ;;
46868 *.lib)
46869 suffix=".lib"
46870 AR="emxomfar"
46871 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46872 ;;
46873 *)
46874 ;;
46875 esac
46876 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46877 mkdir ${D}dirname
1e9e8aba 46878 if [ ${D}? -ne 0 ]; then
473276a9
VS
46879 echo "Failed to create subdirectory ./${D}dirname"
46880 CleanUp
46881 exit 8;
46882 fi
46883 # Append '!' to indicate archive
46884 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46885 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46886 cd ${D}curDir
46887 found=0;
46888 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46889 if [ -f ${D}subfile ]; then
473276a9 46890 found=1
1e9e8aba 46891 if [ -s ${D}subfile ]; then
473276a9
VS
46892 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46893 newInputFiles="${D}newInputFiles ${D}subfile"
46894 fi
46895 fi
46896 done
1e9e8aba
DE
46897 if [ ${D}found -eq 0 ]; then
46898 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46899 fi
46900 ;;
46901 *)
46902 newInputFiles="${D}{newInputFiles} ${D}file"
46903 ;;
46904 esac
46905done
46906inputFiles="${D}newInputFiles"
46907
46908# Output filename(s).
46909do_backup=0;
1e9e8aba 46910if [ -z ${D}outFile ]; then
473276a9
VS
46911 do_backup=1;
46912 set outFile ${D}inputFiles; outFile=${D}2
46913fi
46914
46915# If it is an archive, remove the '!' and the '_%' suffixes
46916case ${D}outFile in
46917*_%!)
46918 outFile=\`basnam ${D}outFile _%!\`
46919 ;;
46920*)
46921 ;;
46922esac
46923case ${D}outFile in
46924*.dll)
46925 outFile=\`basnam ${D}outFile .dll\`
46926 ;;
46927*.DLL)
46928 outFile=\`basnam ${D}outFile .DLL\`
46929 ;;
46930*.o)
46931 outFile=\`basnam ${D}outFile .o\`
46932 ;;
46933*.obj)
46934 outFile=\`basnam ${D}outFile .obj\`
46935 ;;
46936*.a)
46937 outFile=\`basnam ${D}outFile .a\`
46938 ;;
46939*.lib)
46940 outFile=\`basnam ${D}outFile .lib\`
46941 ;;
46942*)
46943 ;;
46944esac
46945case ${D}outimpFile in
46946*.a)
46947 outimpFile=\`basnam ${D}outimpFile .a\`
46948 ;;
46949*.lib)
46950 outimpFile=\`basnam ${D}outimpFile .lib\`
46951 ;;
46952*)
46953 ;;
46954esac
1e9e8aba 46955if [ -z ${D}outimpFile ]; then
473276a9
VS
46956 outimpFile=${D}outFile
46957fi
46958defFile="${D}{outFile}.def"
46959arcFile="${D}{outimpFile}.a"
46960arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46961
46962#create ${D}dllFile as something matching 8.3 restrictions,
46963if [ -z ${D}renameScript ] ; then
46964 dllFile="${D}outFile"
46965else
46966 dllFile=\`${D}renameScript ${D}outimpFile\`
46967fi
473276a9 46968
1e9e8aba
DE
46969if [ ${D}do_backup -ne 0 ] ; then
46970 if [ -f ${D}arcFile ] ; then
473276a9
VS
46971 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46972 fi
1e9e8aba 46973 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46974 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46975 fi
46976fi
46977
46978# Extract public symbols from all the object files.
46979tmpdefFile=${D}{defFile}_%
46980rm -f ${D}tmpdefFile
46981for file in ${D}inputFiles ; do
46982 case ${D}file in
46983 *!)
46984 ;;
46985 *)
46986 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46987 ;;
46988 esac
46989done
46990
46991# Create the def file.
46992rm -f ${D}defFile
46993echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46994dllFile="${D}{dllFile}.dll"
46995if [ ! -z ${D}description ]; then
1e9e8aba 46996 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46997fi
46998echo "EXPORTS" >> ${D}defFile
46999
47000doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47001grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47002
47003# Checks if the export is ok or not.
47004for word in ${D}exclude_symbols; do
47005 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47006 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47007done
47008
47009
1e9e8aba
DE
47010if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47011 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
47012 sed '
47013 N
47014 : loop
1e9e8aba 47015 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
47016 t loop
47017 ' > ${D}{tmpdefFile}%
47018 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47019else
47020 rm -f ${D}{tmpdefFile}%
47021fi
47022cat ${D}tmpdefFile >> ${D}defFile
47023rm -f ${D}tmpdefFile
47024
47025# Do linking, create implib, and apply lxlite.
47026gccCmdl="";
47027for file in ${D}inputFiles ; do
47028 case ${D}file in
47029 *!)
47030 ;;
47031 *)
47032 gccCmdl="${D}gccCmdl ${D}file"
47033 ;;
47034 esac
47035done
47036doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47037touch "${D}{outFile}.dll"
47038
47039doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 47040if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 47041 add_flags="";
1e9e8aba 47042 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
47043 add_flags="-ynd"
47044 fi
47045 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47046fi
47047doCommand "emxomf -s -l ${D}arcFile"
47048
47049# Successful exit.
47050CleanUp 1
47051exit 0
47052EOF
47053
47054 chmod +x dllar.sh
a848cd7e
SC
47055 ;;
47056
1e9e8aba 47057 powerpc-apple-macos* | \
0ad5d837 47058 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
47059 *-*-sunos4* | \
47060 *-*-osf* | \
47061 *-*-dgux5* | \
47a7e797
MW
47062 *-*-sysv5* | \
47063 *-pc-msdosdjgpp )
a848cd7e
SC
47064 ;;
47065
47066 *)
47067 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
47068echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
47069 { (exit 1); exit 1; }; }
47070 esac
47071
2057db16
VS
47072 if test "x$PIC_FLAG" != "x" ; then
47073 PIC_FLAG="$PIC_FLAG -DPIC"
47074 fi
47075
a848cd7e
SC
47076 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47077 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47078 fi
47079 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47080 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47081 fi
47082
47083
47084
47085
47086
47087
47088
47089
810b94f0 47090
a848cd7e
SC
47091 USE_SOVERSION=0
47092 USE_SOVERLINUX=0
47093 USE_SOVERSOLARIS=0
810b94f0 47094 USE_SOVERCYGWIN=0
a848cd7e
SC
47095 USE_SOSYMLINKS=0
47096 USE_MACVERSION=0
47097 SONAME_FLAG=
47098
47099 case "${BAKEFILE_HOST}" in
0ad5d837 47100 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
47101 SONAME_FLAG="-Wl,-soname,"
47102 USE_SOVERSION=1
47103 USE_SOVERLINUX=1
47104 USE_SOSYMLINKS=1
47105 ;;
47106
a848cd7e
SC
47107 *-*-solaris2* )
47108 SONAME_FLAG="-h "
47109 USE_SOVERSION=1
47110 USE_SOVERSOLARIS=1
47111 USE_SOSYMLINKS=1
47112 ;;
47113
47114 *-*-darwin* )
47115 USE_MACVERSION=1
47116 USE_SOVERSION=1
47117 USE_SOSYMLINKS=1
47118 ;;
810b94f0
MW
47119
47120 *-*-cygwin* )
47121 USE_SOVERSION=1
47122 USE_SOVERCYGWIN=1
47123 ;;
a848cd7e
SC
47124 esac
47125
47126
47127
47128
47129
47130
47131
47132
47133
810b94f0 47134
f10e38c4
VZ
47135 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47136if test "${enable_dependency_tracking+set}" = set; then
47137 enableval="$enable_dependency_tracking"
47138 bk_use_trackdeps="$enableval"
47139fi;
47140
a848cd7e
SC
47141 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47142echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47143
f10e38c4
VZ
47144 if test "x$bk_use_trackdeps" = "xno" ; then
47145 DEPS_TRACKING=0
47146 echo "$as_me:$LINENO: result: disabled" >&5
47147echo "${ECHO_T}disabled" >&6
47148 else
47149 DEPS_TRACKING=1
47150
47151 if test "x$GCC" = "xyes"; then
47152 DEPSMODE=gcc
47153 case "${BAKEFILE_HOST}" in
47154 *-*-darwin* )
47155 DEPSFLAG="-no-cpp-precomp -MMD"
47156 ;;
47157 * )
47158 DEPSFLAG="-MMD"
47159 ;;
47160 esac
47161 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47162echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47163 elif test "x$MWCC" = "xyes"; then
47164 DEPSMODE=mwcc
47165 DEPSFLAG="-MM"
47166 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47167echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47168 elif test "x$SUNCC" = "xyes"; then
47169 DEPSMODE=unixcc
47170 DEPSFLAG="-xM1"
47171 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47172echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47173 elif test "x$SGICC" = "xyes"; then
47174 DEPSMODE=unixcc
47175 DEPSFLAG="-M"
47176 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47177echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47178 elif test "x$HPCC" = "xyes"; then
47179 DEPSMODE=unixcc
47180 DEPSFLAG="+make"
47181 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47182echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47183 elif test "x$COMPAQCC" = "xyes"; then
47184 DEPSMODE=gcc
47185 DEPSFLAG="-MD"
47186 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47187echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47188 else
47189 DEPS_TRACKING=0
47190 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47191echo "${ECHO_T}none" >&6
f10e38c4 47192 fi
a848cd7e 47193
f10e38c4 47194 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47195
47196D='$'
47197cat <<EOF >bk-deps
a848cd7e
SC
47198#!/bin/sh
47199
47200# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47201# script. It is used to track C/C++ files dependencies in portable way.
47202#
47203# Permission is given to use this file in any way.
47204
473276a9 47205DEPSMODE=${DEPSMODE}
a848cd7e 47206DEPSDIR=.deps
0ad5d837 47207DEPSFLAG="${DEPSFLAG}"
a848cd7e 47208
473276a9 47209mkdir -p ${D}DEPSDIR
a848cd7e 47210
473276a9 47211if test ${D}DEPSMODE = gcc ; then
0ad5d837 47212 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47213 status=${D}?
47214 if test ${D}{status} != 0 ; then
47215 exit ${D}{status}
a848cd7e
SC
47216 fi
47217 # move created file to the location we want it in:
473276a9
VS
47218 while test ${D}# -gt 0; do
47219 case "${D}1" in
a848cd7e
SC
47220 -o )
47221 shift
473276a9 47222 objfile=${D}1
a848cd7e
SC
47223 ;;
47224 -* )
47225 ;;
47226 * )
473276a9 47227 srcfile=${D}1
a848cd7e
SC
47228 ;;
47229 esac
47230 shift
47231 done
1e9e8aba
DE
47232 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47233 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47234 if test -f ${D}depfile ; then
47235 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47236 rm -f ${D}depfile
a848cd7e 47237 else
a1aa0349 47238 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47239 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47240 if test ! -f ${D}depfile ; then
47241 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47242 depfile="${D}objfile.d"
47243 fi
473276a9
VS
47244 if test -f ${D}depfile ; then
47245 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47246 rm -f ${D}depfile
a848cd7e
SC
47247 fi
47248 fi
47249 exit 0
81f90336 47250elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47251 ${D}* || exit ${D}?
81f90336
MW
47252 # Run mwcc again with -MM and redirect into the dep file we want
47253 # NOTE: We can't use shift here because we need ${D}* to be valid
47254 prevarg=
47255 for arg in ${D}* ; do
47256 if test "${D}prevarg" = "-o"; then
47257 objfile=${D}arg
47258 else
47259 case "${D}arg" in
47260 -* )
47261 ;;
47262 * )
47263 srcfile=${D}arg
47264 ;;
47265 esac
47266 fi
47267 prevarg="${D}arg"
47268 done
0ad5d837 47269 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47270 exit 0
0ad5d837 47271elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47272 ${D}* || exit ${D}?
a9e5b1f0
MW
47273 # Run compiler again with deps flag and redirect into the dep file.
47274 # It doesn't work if the '-o FILE' option is used, but without it the
47275 # dependency file will contain the wrong name for the object. So it is
47276 # removed from the command line, and the dep file is fixed with sed.
47277 cmd=""
47278 while test ${D}# -gt 0; do
47279 case "${D}1" in
47280 -o )
47281 shift
47282 objfile=${D}1
47283 ;;
47284 * )
47285 eval arg${D}#=\\${D}1
47286 cmd="${D}cmd \\${D}arg${D}#"
47287 ;;
47288 esac
47289 shift
47290 done
0ad5d837 47291 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47292 exit 0
a848cd7e 47293else
473276a9
VS
47294 ${D}*
47295 exit ${D}?
a848cd7e
SC
47296fi
47297EOF
473276a9 47298
f10e38c4
VZ
47299 chmod +x bk-deps
47300 fi
a848cd7e
SC
47301 fi
47302
47303
47304
47305
a848cd7e
SC
47306 case ${BAKEFILE_HOST} in
47307 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47308 if test -n "$ac_tool_prefix"; then
47309 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47310set dummy ${ac_tool_prefix}windres; ac_word=$2
47311echo "$as_me:$LINENO: checking for $ac_word" >&5
47312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47313if test "${ac_cv_prog_WINDRES+set}" = set; then
47314 echo $ECHO_N "(cached) $ECHO_C" >&6
47315else
47316 if test -n "$WINDRES"; then
47317 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47318else
47319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47320for as_dir in $PATH
47321do
47322 IFS=$as_save_IFS
47323 test -z "$as_dir" && as_dir=.
47324 for ac_exec_ext in '' $ac_executable_extensions; do
47325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47326 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47328 break 2
47329 fi
47330done
47331done
47332
47333fi
47334fi
47335WINDRES=$ac_cv_prog_WINDRES
47336if test -n "$WINDRES"; then
47337 echo "$as_me:$LINENO: result: $WINDRES" >&5
47338echo "${ECHO_T}$WINDRES" >&6
47339else
47340 echo "$as_me:$LINENO: result: no" >&5
47341echo "${ECHO_T}no" >&6
47342fi
47343
47344fi
47345if test -z "$ac_cv_prog_WINDRES"; then
47346 ac_ct_WINDRES=$WINDRES
47347 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47348set dummy windres; ac_word=$2
47349echo "$as_me:$LINENO: checking for $ac_word" >&5
47350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47351if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47352 echo $ECHO_N "(cached) $ECHO_C" >&6
47353else
8ced02f6
DE
47354 if test -n "$ac_ct_WINDRES"; then
47355 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47356else
47357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47358for as_dir in $PATH
47359do
47360 IFS=$as_save_IFS
47361 test -z "$as_dir" && as_dir=.
47362 for ac_exec_ext in '' $ac_executable_extensions; do
47363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47364 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47366 break 2
47367 fi
47368done
47369done
47370
a848cd7e
SC
47371fi
47372fi
8ced02f6
DE
47373ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47374if test -n "$ac_ct_WINDRES"; then
47375 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47376echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47377else
47378 echo "$as_me:$LINENO: result: no" >&5
47379echo "${ECHO_T}no" >&6
47380fi
47381
8ced02f6
DE
47382 WINDRES=$ac_ct_WINDRES
47383else
47384 WINDRES="$ac_cv_prog_WINDRES"
47385fi
47386
a848cd7e
SC
47387 ;;
47388
1e9e8aba 47389 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47390 # Extract the first word of "Rez", so it can be a program name with args.
47391set dummy Rez; ac_word=$2
47392echo "$as_me:$LINENO: checking for $ac_word" >&5
47393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47394if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47395 echo $ECHO_N "(cached) $ECHO_C" >&6
47396else
8ced02f6
DE
47397 if test -n "$REZ"; then
47398 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47399else
47400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47401for as_dir in $PATH
47402do
47403 IFS=$as_save_IFS
47404 test -z "$as_dir" && as_dir=.
47405 for ac_exec_ext in '' $ac_executable_extensions; do
47406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47407 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47409 break 2
47410 fi
47411done
47412done
47413
8ced02f6 47414 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47415fi
47416fi
8ced02f6
DE
47417REZ=$ac_cv_prog_REZ
47418if test -n "$REZ"; then
47419 echo "$as_me:$LINENO: result: $REZ" >&5
47420echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47421else
47422 echo "$as_me:$LINENO: result: no" >&5
47423echo "${ECHO_T}no" >&6
47424fi
47425
47426 # Extract the first word of "SetFile", so it can be a program name with args.
47427set dummy SetFile; ac_word=$2
47428echo "$as_me:$LINENO: checking for $ac_word" >&5
47429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47430if test "${ac_cv_prog_SETFILE+set}" = set; then
47431 echo $ECHO_N "(cached) $ECHO_C" >&6
47432else
47433 if test -n "$SETFILE"; then
47434 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47435else
47436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47437for as_dir in $PATH
47438do
47439 IFS=$as_save_IFS
47440 test -z "$as_dir" && as_dir=.
47441 for ac_exec_ext in '' $ac_executable_extensions; do
47442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47443 ac_cv_prog_SETFILE="SetFile"
47444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47445 break 2
47446 fi
47447done
47448done
47449
47450 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47451fi
47452fi
47453SETFILE=$ac_cv_prog_SETFILE
47454if test -n "$SETFILE"; then
47455 echo "$as_me:$LINENO: result: $SETFILE" >&5
47456echo "${ECHO_T}$SETFILE" >&6
47457else
47458 echo "$as_me:$LINENO: result: no" >&5
47459echo "${ECHO_T}no" >&6
47460fi
47461
47462 ;;
47463 esac
47464
47465
47466
47467
47468
8ced02f6 47469
f10e38c4 47470 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47471
dcc1b6ad 47472
f10e38c4 47473BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47474
646b6ec1 47475
74b84332 47476
a848cd7e
SC
47477 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47478if test "${enable_precomp_headers+set}" = set; then
47479 enableval="$enable_precomp_headers"
47480 bk_use_pch="$enableval"
47481fi;
47482
47483 GCC_PCH=0
f10e38c4
VZ
47484 ICC_PCH=0
47485 USE_PCH=0
a848cd7e 47486
5c60e845
MW
47487 case ${BAKEFILE_HOST} in
47488 *-*-cygwin* )
47489 bk_use_pch="no"
47490 ;;
47491 esac
47492
a848cd7e
SC
47493 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47494 if test "x$GCC" = "xyes"; then
47495 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47496echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47497 cat >conftest.$ac_ext <<_ACEOF
47498/* confdefs.h. */
47499_ACEOF
47500cat confdefs.h >>conftest.$ac_ext
47501cat >>conftest.$ac_ext <<_ACEOF
47502/* end confdefs.h. */
47503
47504int
47505main ()
47506{
47507
47508 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47509 There is no PCH support
a848cd7e
SC
47510 #endif
47511 #if (__GNUC__ < 3)
e5efa97e 47512 There is no PCH support
a848cd7e
SC
47513 #endif
47514 #if (__GNUC__ == 3) && \
47515 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47516 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47517 ( defined(__INTEL_COMPILER) )
e5efa97e 47518 There is no PCH support
a848cd7e
SC
47519 #endif
47520
47521 ;
47522 return 0;
47523}
47524_ACEOF
47525rm -f conftest.$ac_objext
47526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47527 (eval $ac_compile) 2>conftest.er1
a848cd7e 47528 ac_status=$?
ac1cb8d3
VS
47529 grep -v '^ *+' conftest.er1 >conftest.err
47530 rm -f conftest.er1
47531 cat conftest.err >&5
a848cd7e
SC
47532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47533 (exit $ac_status); } &&
2b850ae1
RR
47534 { ac_try='test -z "$ac_c_werror_flag"
47535 || test ! -s conftest.err'
ac1cb8d3
VS
47536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47537 (eval $ac_try) 2>&5
47538 ac_status=$?
47539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47540 (exit $ac_status); }; } &&
47541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47543 (eval $ac_try) 2>&5
47544 ac_status=$?
47545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47546 (exit $ac_status); }; }; then
47547
47548 echo "$as_me:$LINENO: result: yes" >&5
47549echo "${ECHO_T}yes" >&6
a848cd7e
SC
47550 GCC_PCH=1
47551
47552else
47553 echo "$as_me: failed program was:" >&5
47554sed 's/^/| /' conftest.$ac_ext >&5
47555
47556
f10e38c4
VZ
47557 cat >conftest.$ac_ext <<_ACEOF
47558/* confdefs.h. */
47559_ACEOF
47560cat confdefs.h >>conftest.$ac_ext
47561cat >>conftest.$ac_ext <<_ACEOF
47562/* end confdefs.h. */
47563
47564int
47565main ()
47566{
47567
47568 #if !defined(__INTEL_COMPILER) || \
47569 (__INTEL_COMPILER < 800)
e5efa97e 47570 There is no PCH support
f10e38c4
VZ
47571 #endif
47572
47573 ;
47574 return 0;
47575}
47576_ACEOF
47577rm -f conftest.$ac_objext
47578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47579 (eval $ac_compile) 2>conftest.er1
47580 ac_status=$?
47581 grep -v '^ *+' conftest.er1 >conftest.err
47582 rm -f conftest.er1
47583 cat conftest.err >&5
47584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47585 (exit $ac_status); } &&
2b850ae1
RR
47586 { ac_try='test -z "$ac_c_werror_flag"
47587 || test ! -s conftest.err'
f10e38c4
VZ
47588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47589 (eval $ac_try) 2>&5
47590 ac_status=$?
47591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47592 (exit $ac_status); }; } &&
47593 { ac_try='test -s conftest.$ac_objext'
47594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47595 (eval $ac_try) 2>&5
47596 ac_status=$?
47597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47598 (exit $ac_status); }; }; then
47599
47600 echo "$as_me:$LINENO: result: yes" >&5
47601echo "${ECHO_T}yes" >&6
47602 ICC_PCH=1
47603
47604else
47605 echo "$as_me: failed program was:" >&5
47606sed 's/^/| /' conftest.$ac_ext >&5
47607
47608
47609 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47610echo "${ECHO_T}no" >&6
47611
47612fi
ac1cb8d3 47613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47614
47615fi
47616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47617 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47618 USE_PCH=1
1e9e8aba
DE
47619
47620D='$'
47621cat <<EOF >bk-make-pch
a848cd7e
SC
47622#!/bin/sh
47623
47624# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47625# script. It is used to generated precompiled headers.
47626#
47627# Permission is given to use this file in any way.
47628
1e9e8aba
DE
47629outfile="${D}{1}"
47630header="${D}{2}"
a848cd7e
SC
47631shift
47632shift
47633
f10e38c4
VZ
47634compiler=""
47635headerfile=""
47636
1e9e8aba 47637while test ${D}{#} -gt 0; do
f10e38c4 47638 add_to_cmdline=1
1e9e8aba 47639 case "${D}{1}" in
a848cd7e 47640 -I* )
1e9e8aba
DE
47641 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47642 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47643 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47644 fi
47645 ;;
f10e38c4
VZ
47646 -use-pch|-use_pch )
47647 shift
47648 add_to_cmdline=0
47649 ;;
a848cd7e 47650 esac
f10e38c4
VZ
47651 if test ${D}add_to_cmdline = 1 ; then
47652 compiler="${D}{compiler} ${D}{1}"
47653 fi
a848cd7e
SC
47654 shift
47655done
47656
1e9e8aba 47657if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47658 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47659else
1e9e8aba
DE
47660 if test -f ${D}{outfile} ; then
47661 rm -f ${D}{outfile}
a848cd7e 47662 else
1e9e8aba 47663 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47664 fi
1e9e8aba 47665 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47666 mkdir -p .deps
f10e38c4
VZ
47667 if test "x${GCC_PCH}" = "x1" ; then
47668 # can do this because gcc is >= 3.4:
47669 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47670 elif test "x${ICC_PCH}" = "x1" ; then
47671 filename=pch_gen-${D}${D}
47672 file=${D}{filename}.c
47673 dfile=${D}{filename}.d
47674 cat > ${D}file <<EOT
47675#include "${D}header"
47676EOT
47677 # using -MF icc complains about differing command lines in creation/use
47678 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47679 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47680 rm -f ${D}file ${D}dfile ${D}{filename}.o
47681 fi
1e9e8aba 47682 exit ${D}{?}
a848cd7e
SC
47683fi
47684EOF
1e9e8aba 47685
a848cd7e
SC
47686 chmod +x bk-make-pch
47687 fi
47688 fi
47689 fi
47690
47691
47692
f10e38c4 47693
a848cd7e
SC
47694 COND_BUILD_DEBUG="#"
47695 if test "x$BUILD" = "xdebug" ; then
47696 COND_BUILD_DEBUG=""
47697 fi
47698
47699 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47700 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47701 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47702 fi
47703
47704 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47705 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47706 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47707 fi
47708
47709 COND_BUILD_DEBUG_UNICODE_0="#"
47710 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47711 COND_BUILD_DEBUG_UNICODE_0=""
47712 fi
47713
47714 COND_BUILD_DEBUG_UNICODE_1="#"
47715 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47716 COND_BUILD_DEBUG_UNICODE_1=""
47717 fi
47718
47719 COND_BUILD_RELEASE="#"
47720 if test "x$BUILD" = "xrelease" ; then
47721 COND_BUILD_RELEASE=""
47722 fi
47723
47724 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47725 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47726 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47727 fi
47728
47729 COND_BUILD_RELEASE_UNICODE_0="#"
47730 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47731 COND_BUILD_RELEASE_UNICODE_0=""
47732 fi
47733
47734 COND_BUILD_RELEASE_UNICODE_1="#"
47735 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47736 COND_BUILD_RELEASE_UNICODE_1=""
47737 fi
47738
47739 COND_DEBUG_FLAG_1="#"
47740 if test "x$DEBUG_FLAG" = "x1" ; then
47741 COND_DEBUG_FLAG_1=""
47742 fi
47743
47744 COND_DEBUG_INFO_0="#"
47745 if test "x$DEBUG_INFO" = "x0" ; then
47746 COND_DEBUG_INFO_0=""
47747 fi
47748
47749 COND_DEBUG_INFO_1="#"
47750 if test "x$DEBUG_INFO" = "x1" ; then
47751 COND_DEBUG_INFO_1=""
47752 fi
47753
47754 COND_DEPS_TRACKING_0="#"
47755 if test "x$DEPS_TRACKING" = "x0" ; then
47756 COND_DEPS_TRACKING_0=""
47757 fi
47758
47759 COND_DEPS_TRACKING_1="#"
47760 if test "x$DEPS_TRACKING" = "x1" ; then
47761 COND_DEPS_TRACKING_1=""
47762 fi
47763
47764 COND_GCC_PCH_1="#"
47765 if test "x$GCC_PCH" = "x1" ; then
47766 COND_GCC_PCH_1=""
47767 fi
47768
f10e38c4
VZ
47769 COND_ICC_PCH_1="#"
47770 if test "x$ICC_PCH" = "x1" ; then
47771 COND_ICC_PCH_1=""
47772 fi
47773
a848cd7e
SC
47774 COND_MONOLITHIC_0="#"
47775 if test "x$MONOLITHIC" = "x0" ; then
47776 COND_MONOLITHIC_0=""
47777 fi
47778
47779 COND_MONOLITHIC_0_SHARED_0="#"
47780 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47781 COND_MONOLITHIC_0_SHARED_0=""
47782 fi
47783
47784 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47785 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47786 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47787 fi
47788
90970d69
DE
47789 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47790 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47791 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47792 fi
47793
f10e38c4
VZ
47794 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47795 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47796 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47797 fi
47798
a848cd7e
SC
47799 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47800 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47801 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47802 fi
47803
6671c68b
VZ
47804 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47805 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47806 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47807 fi
47808
a848cd7e
SC
47809 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47810 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47811 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47812 fi
47813
ceec2216
RL
47814 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47815 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47816 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47817 fi
47818
a848cd7e
SC
47819 COND_MONOLITHIC_0_SHARED_1="#"
47820 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47821 COND_MONOLITHIC_0_SHARED_1=""
47822 fi
47823
47824 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47825 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47826 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47827 fi
47828
90970d69
DE
47829 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47830 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47831 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47832 fi
47833
f10e38c4
VZ
47834 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47835 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47836 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47837 fi
47838
a848cd7e
SC
47839 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47840 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47842 fi
47843
6671c68b
VZ
47844 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47845 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47846 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47847 fi
47848
a848cd7e
SC
47849 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47850 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47851 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47852 fi
47853
ceec2216
RL
47854 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47855 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47856 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47857 fi
47858
e5efa97e
VZ
47859 COND_MONOLITHIC_0_USE_MEDIA_1="#"
47860 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47861 COND_MONOLITHIC_0_USE_MEDIA_1=""
47862 fi
47863
a848cd7e
SC
47864 COND_MONOLITHIC_0_USE_ODBC_1="#"
47865 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47866 COND_MONOLITHIC_0_USE_ODBC_1=""
47867 fi
47868
47869 COND_MONOLITHIC_1="#"
47870 if test "x$MONOLITHIC" = "x1" ; then
47871 COND_MONOLITHIC_1=""
47872 fi
47873
47874 COND_MONOLITHIC_1_SHARED_0="#"
47875 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47876 COND_MONOLITHIC_1_SHARED_0=""
47877 fi
47878
47879 COND_MONOLITHIC_1_SHARED_1="#"
47880 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47881 COND_MONOLITHIC_1_SHARED_1=""
47882 fi
47883
47884 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47885 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47886 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47887 fi
47888
47889 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47890 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47891 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47892 fi
47893
eb730a0c
JS
47894 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47895 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47896 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47897 fi
47898
a848cd7e
SC
47899 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47900 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47901 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47902 fi
47903
47904 COND_PLATFORM_MACOSX_1="#"
47905 if test "x$PLATFORM_MACOSX" = "x1" ; then
47906 COND_PLATFORM_MACOSX_1=""
47907 fi
47908
a30f955f
VS
47909 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47910 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47911 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47912 fi
47913
a848cd7e
SC
47914 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47915 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47916 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47917 fi
47918
47919 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47920 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47921 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47922 fi
47923
47924 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47925 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47926 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47927 fi
47928
fc480dc1
DE
47929 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47930 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47931 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47932 fi
47933
1e9e8aba
DE
47934 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47935 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47936 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47937 fi
47938
ebee3cd0
VS
47939 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47940 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47941 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47942 fi
47943
47944 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47945 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47946 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47947 fi
47948
a848cd7e
SC
47949 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47950 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47951 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47952 fi
47953
47954 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47955 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47956 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47957 fi
47958
b48a2016
DE
47959 COND_PLATFORM_MACOS_1="#"
47960 if test "x$PLATFORM_MACOS" = "x1" ; then
47961 COND_PLATFORM_MACOS_1=""
47962 fi
47963
083508af
MW
47964 COND_PLATFORM_MAC_1="#"
47965 if test "x$PLATFORM_MAC" = "x1" ; then
47966 COND_PLATFORM_MAC_1=""
47967 fi
47968
e5efa97e
VZ
47969 COND_PLATFORM_MSDOS_0="#"
47970 if test "x$PLATFORM_MSDOS" = "x0" ; then
47971 COND_PLATFORM_MSDOS_0=""
47972 fi
47973
83d8eb47
MW
47974 COND_PLATFORM_MSDOS_1="#"
47975 if test "x$PLATFORM_MSDOS" = "x1" ; then
47976 COND_PLATFORM_MSDOS_1=""
47977 fi
47978
a848cd7e
SC
47979 COND_PLATFORM_OS2_1="#"
47980 if test "x$PLATFORM_OS2" = "x1" ; then
47981 COND_PLATFORM_OS2_1=""
47982 fi
47983
47984 COND_PLATFORM_UNIX_0="#"
47985 if test "x$PLATFORM_UNIX" = "x0" ; then
47986 COND_PLATFORM_UNIX_0=""
47987 fi
47988
47989 COND_PLATFORM_UNIX_1="#"
47990 if test "x$PLATFORM_UNIX" = "x1" ; then
47991 COND_PLATFORM_UNIX_1=""
47992 fi
47993
47994 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47995 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47996 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47997 fi
47998
47999 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48000 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48001 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48002 fi
48003
48004 COND_PLATFORM_WIN32_0="#"
48005 if test "x$PLATFORM_WIN32" = "x0" ; then
48006 COND_PLATFORM_WIN32_0=""
48007 fi
48008
48009 COND_PLATFORM_WIN32_1="#"
48010 if test "x$PLATFORM_WIN32" = "x1" ; then
48011 COND_PLATFORM_WIN32_1=""
48012 fi
48013
48014 COND_SHARED_0="#"
48015 if test "x$SHARED" = "x0" ; then
48016 COND_SHARED_0=""
48017 fi
48018
083508af
MW
48019 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48020 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48021 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48022 fi
48023
48024 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48025 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48026 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48027 fi
48028
48029 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48030 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48031 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48032 fi
48033
a848cd7e
SC
48034 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48035 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48036 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48037 fi
48038
48039 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48040 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48041 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48042 fi
48043
48044 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48045 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48046 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48047 fi
48048
48049 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48050 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48051 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48052 fi
48053
083508af
MW
48054 COND_SHARED_0_USE_XRC_1="#"
48055 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48056 COND_SHARED_0_USE_XRC_1=""
48057 fi
48058
a848cd7e
SC
48059 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48060 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48061 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48062 fi
48063
48064 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48065 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48066 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48067 fi
48068
48069 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48070 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48071 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48072 fi
48073
48074 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48075 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48076 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48077 fi
48078
48079 COND_SHARED_1="#"
48080 if test "x$SHARED" = "x1" ; then
48081 COND_SHARED_1=""
48082 fi
48083
48084 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48085 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48086 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48087 fi
48088
083508af
MW
48089 COND_SHARED_1_USE_XRC_1="#"
48090 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48091 COND_SHARED_1_USE_XRC_1=""
48092 fi
48093
a30f955f
VS
48094 COND_TOOLKIT_="#"
48095 if test "x$TOOLKIT" = "x" ; then
48096 COND_TOOLKIT_=""
48097 fi
48098
a848cd7e
SC
48099 COND_TOOLKIT_COCOA="#"
48100 if test "x$TOOLKIT" = "xCOCOA" ; then
48101 COND_TOOLKIT_COCOA=""
48102 fi
48103
a49baeab
DE
48104 COND_TOOLKIT_COCOA_USE_GUI_1="#"
48105 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48106 COND_TOOLKIT_COCOA_USE_GUI_1=""
48107 fi
48108
a848cd7e
SC
48109 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48110 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48111 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48112 fi
48113
48114 COND_TOOLKIT_GTK="#"
48115 if test "x$TOOLKIT" = "xGTK" ; then
48116 COND_TOOLKIT_GTK=""
48117 fi
48118
d044deea
MW
48119 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48120 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48121 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48122 fi
48123
48124 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48125 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48126 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48127 fi
48128
48129 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48130 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48131 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48132 fi
48133
48134 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48135 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48136 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48137 fi
48138
48139 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48140 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48141 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48142 fi
48143
48144 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48145 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48146 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48147 fi
48148
a848cd7e
SC
48149 COND_TOOLKIT_GTK_USE_GUI_1="#"
48150 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48151 COND_TOOLKIT_GTK_USE_GUI_1=""
48152 fi
48153
a848cd7e
SC
48154 COND_TOOLKIT_MAC="#"
48155 if test "x$TOOLKIT" = "xMAC" ; then
48156 COND_TOOLKIT_MAC=""
48157 fi
48158
48159 COND_TOOLKIT_MAC_USE_GUI_1="#"
48160 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48161 COND_TOOLKIT_MAC_USE_GUI_1=""
48162 fi
48163
48164 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48165 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48166 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48167 fi
48168
48169 COND_TOOLKIT_MGL="#"
48170 if test "x$TOOLKIT" = "xMGL" ; then
48171 COND_TOOLKIT_MGL=""
48172 fi
48173
48174 COND_TOOLKIT_MGL_USE_GUI_1="#"
48175 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48176 COND_TOOLKIT_MGL_USE_GUI_1=""
48177 fi
48178
48179 COND_TOOLKIT_MOTIF="#"
48180 if test "x$TOOLKIT" = "xMOTIF" ; then
48181 COND_TOOLKIT_MOTIF=""
48182 fi
48183
48184 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48185 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48186 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48187 fi
48188
48189 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48190 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48191 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48192 fi
48193
48194 COND_TOOLKIT_MSW="#"
48195 if test "x$TOOLKIT" = "xMSW" ; then
48196 COND_TOOLKIT_MSW=""
48197 fi
48198
48199 COND_TOOLKIT_MSW_USE_GUI_1="#"
48200 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48201 COND_TOOLKIT_MSW_USE_GUI_1=""
48202 fi
48203
48204 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48205 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48206 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48207 fi
48208
0ee4059d
DE
48209 COND_TOOLKIT_MSW_WXUNIV_0="#"
48210 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48211 COND_TOOLKIT_MSW_WXUNIV_0=""
48212 fi
48213
a848cd7e
SC
48214 COND_TOOLKIT_PM="#"
48215 if test "x$TOOLKIT" = "xPM" ; then
48216 COND_TOOLKIT_PM=""
48217 fi
48218
48219 COND_TOOLKIT_PM_USE_GUI_1="#"
48220 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48221 COND_TOOLKIT_PM_USE_GUI_1=""
48222 fi
48223
48224 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48225 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48226 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48227 fi
48228
3fd9c298
DE
48229 COND_TOOLKIT_WINCE="#"
48230 if test "x$TOOLKIT" = "xWINCE" ; then
48231 COND_TOOLKIT_WINCE=""
48232 fi
48233
48234 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48235 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48236 COND_TOOLKIT_WINCE_USE_GUI_1=""
48237 fi
48238
48239 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48240 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48241 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48242 fi
48243
0ee4059d
DE
48244 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48245 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48246 COND_TOOLKIT_WINCE_WXUNIV_0=""
48247 fi
48248
a848cd7e
SC
48249 COND_TOOLKIT_X11="#"
48250 if test "x$TOOLKIT" = "xX11" ; then
48251 COND_TOOLKIT_X11=""
48252 fi
48253
48254 COND_TOOLKIT_X11_USE_GUI_1="#"
48255 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48256 COND_TOOLKIT_X11_USE_GUI_1=""
48257 fi
48258
48259 COND_UNICODE_1="#"
48260 if test "x$UNICODE" = "x1" ; then
48261 COND_UNICODE_1=""
48262 fi
48263
48264 COND_USE_EXCEPTIONS_0="#"
48265 if test "x$USE_EXCEPTIONS" = "x0" ; then
48266 COND_USE_EXCEPTIONS_0=""
48267 fi
48268
48269 COND_USE_EXCEPTIONS_1="#"
48270 if test "x$USE_EXCEPTIONS" = "x1" ; then
48271 COND_USE_EXCEPTIONS_1=""
48272 fi
48273
48274 COND_USE_GUI_0="#"
48275 if test "x$USE_GUI" = "x0" ; then
48276 COND_USE_GUI_0=""
48277 fi
48278
48279 COND_USE_GUI_1="#"
48280 if test "x$USE_GUI" = "x1" ; then
48281 COND_USE_GUI_1=""
48282 fi
48283
48284 COND_USE_GUI_1_WXUNIV_0="#"
48285 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48286 COND_USE_GUI_1_WXUNIV_0=""
48287 fi
48288
48289 COND_USE_GUI_1_WXUNIV_1="#"
48290 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48291 COND_USE_GUI_1_WXUNIV_1=""
48292 fi
48293
48294 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48295 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48296 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48297 fi
48298
48299 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48300 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48301 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48302 fi
48303
48304 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48305 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48306 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48307 fi
48308
083508af
MW
48309 COND_USE_ODBC_1="#"
48310 if test "x$USE_ODBC" = "x1" ; then
48311 COND_USE_ODBC_1=""
48312 fi
48313
48314 COND_USE_OPENGL_1="#"
48315 if test "x$USE_OPENGL" = "x1" ; then
48316 COND_USE_OPENGL_1=""
48317 fi
48318
f10e38c4
VZ
48319 COND_USE_PCH_1="#"
48320 if test "x$USE_PCH" = "x1" ; then
48321 COND_USE_PCH_1=""
48322 fi
48323
a848cd7e
SC
48324 COND_USE_PLUGINS_0="#"
48325 if test "x$USE_PLUGINS" = "x0" ; then
48326 COND_USE_PLUGINS_0=""
48327 fi
48328
0b78747f
MW
48329 COND_USE_RTTI_0="#"
48330 if test "x$USE_RTTI" = "x0" ; then
48331 COND_USE_RTTI_0=""
48332 fi
48333
48334 COND_USE_RTTI_1="#"
48335 if test "x$USE_RTTI" = "x1" ; then
48336 COND_USE_RTTI_1=""
48337 fi
48338
a848cd7e
SC
48339 COND_USE_SOSYMLINKS_1="#"
48340 if test "x$USE_SOSYMLINKS" = "x1" ; then
48341 COND_USE_SOSYMLINKS_1=""
48342 fi
48343
eb730a0c
JS
48344 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48345 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48346 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48347 fi
48348
a848cd7e
SC
48349 COND_USE_SOVERLINUX_1="#"
48350 if test "x$USE_SOVERLINUX" = "x1" ; then
48351 COND_USE_SOVERLINUX_1=""
48352 fi
48353
48354 COND_USE_SOVERSION_0="#"
48355 if test "x$USE_SOVERSION" = "x0" ; then
48356 COND_USE_SOVERSION_0=""
48357 fi
48358
48359 COND_USE_SOVERSOLARIS_1="#"
48360 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48361 COND_USE_SOVERSOLARIS_1=""
48362 fi
48363
0b78747f
MW
48364 COND_USE_THREADS_0="#"
48365 if test "x$USE_THREADS" = "x0" ; then
48366 COND_USE_THREADS_0=""
48367 fi
48368
48369 COND_USE_THREADS_1="#"
48370 if test "x$USE_THREADS" = "x1" ; then
48371 COND_USE_THREADS_1=""
48372 fi
48373
a13a7f89
RL
48374 COND_USE_XRC_1="#"
48375 if test "x$USE_XRC" = "x1" ; then
48376 COND_USE_XRC_1=""
48377 fi
48378
eb730a0c
JS
48379 COND_WINDOWS_IMPLIB_1="#"
48380 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48381 COND_WINDOWS_IMPLIB_1=""
48382 fi
48383
a848cd7e
SC
48384 COND_WITH_PLUGIN_SDL_1="#"
48385 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48386 COND_WITH_PLUGIN_SDL_1=""
48387 fi
48388
1e6eb025
VZ
48389 COND_WXUNIV_0="#"
48390 if test "x$WXUNIV" = "x0" ; then
48391 COND_WXUNIV_0=""
48392 fi
48393
a848cd7e
SC
48394 COND_WXUNIV_1="#"
48395 if test "x$WXUNIV" = "x1" ; then
48396 COND_WXUNIV_1=""
48397 fi
48398
48399 COND_WXUSE_EXPAT_BUILTIN="#"
48400 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48401 COND_WXUSE_EXPAT_BUILTIN=""
48402 fi
48403
48404 COND_WXUSE_LIBJPEG_BUILTIN="#"
48405 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48406 COND_WXUSE_LIBJPEG_BUILTIN=""
48407 fi
48408
48409 COND_WXUSE_LIBPNG_BUILTIN="#"
48410 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48411 COND_WXUSE_LIBPNG_BUILTIN=""
48412 fi
48413
48414 COND_WXUSE_LIBTIFF_BUILTIN="#"
48415 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48416 COND_WXUSE_LIBTIFF_BUILTIN=""
48417 fi
48418
48419 COND_WXUSE_ODBC_BUILTIN="#"
48420 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48421 COND_WXUSE_ODBC_BUILTIN=""
48422 fi
48423
48424 COND_WXUSE_REGEX_BUILTIN="#"
48425 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48426 COND_WXUSE_REGEX_BUILTIN=""
48427 fi
48428
48429 COND_WXUSE_ZLIB_BUILTIN="#"
48430 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48431 COND_WXUSE_ZLIB_BUILTIN=""
48432 fi
48433
48434
48435
810b94f0
MW
48436 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48437 { { 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
48438echo "$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;}
48439 { (exit 1); exit 1; }; }
48440 fi
48441
2057db16
VS
48442 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48443 { { 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
48444echo "$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;}
48445 { (exit 1); exit 1; }; }
48446 fi
48447
a848cd7e 48448
7afc46ab
KO
48449
48450if test "$wxUSE_MAC" = 1 ; then
48451 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48452 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48453 mv temp bk-deps
48454 chmod +x bk-deps
48455 fi
48456fi
48457
ceec2216
RL
48458if test "$wxUSE_SHARED" = "yes"; then
48459
48460 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48461 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48462
5b674b9d
DE
48463 case "${host}" in
48464 *-pc-os2_emx | *-pc-os2-emx )
48465 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48466 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48467 cp -p ${srcdir}/src/os2/dllnames.sh .
48468 cp -p ${srcdir}/src/os2/dllar.sh .
48469 ;;
48470 esac
ceec2216
RL
48471else
48472
48473 EXE_LINKER="$CXX -o"
48474
48475fi
69120ee4
VZ
48476if test "$wxUSE_OMF" = "yes"; then
48477 case "${host}" in
48478 *-pc-os2_emx | *-pc-os2-emx )
48479 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48480 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48481 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48482 ;;
48483 esac
48484fi
a848cd7e 48485
c08ebc62 48486if test $GCC_PCH = 1 ; then
254e8e29 48487 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48488fi
a848cd7e 48489
5ff751d6 48490WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48491
48492SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48493
48494
48495
48496
48497
48498
48499
48500
48501
48502
48503
48504
48505
48506
48507
48508
48509
48510
48511
48512
48513
48514
48515
48516
48517
48518
48519
48520
48521
48522
48523
48524
48525
48526
48527
48528
48529
48530
48531
48532
48533
48534
a848cd7e
SC
48535
48536
48537
48538
48539
48540
48541
48542
48543
48544
48545
48546
a848cd7e
SC
48547
48548
ddd14b14 48549
370d2fd7 48550
8ced02f6 48551
a848cd7e
SC
48552
48553
48554echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48555echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48556set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48557if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48558 echo $ECHO_N "(cached) $ECHO_C" >&6
48559else
48560 cat >conftest.make <<\_ACEOF
48561all:
48562 @echo 'ac_maketemp="$(MAKE)"'
48563_ACEOF
48564# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48565eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48566if test -n "$ac_maketemp"; then
48567 eval ac_cv_prog_make_${ac_make}_set=yes
48568else
48569 eval ac_cv_prog_make_${ac_make}_set=no
48570fi
48571rm -f conftest.make
48572fi
48573if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48574 echo "$as_me:$LINENO: result: yes" >&5
48575echo "${ECHO_T}yes" >&6
48576 SET_MAKE=
48577else
48578 echo "$as_me:$LINENO: result: no" >&5
48579echo "${ECHO_T}no" >&6
48580 SET_MAKE="MAKE=${MAKE-make}"
48581fi
48582
48583
a848cd7e 48584
ceec2216
RL
48585 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48586
a848cd7e 48587
5c60e845
MW
48588if test "$USE_WIN32" = 1; then
48589 ac_config_commands="$ac_config_commands
48590 rcdefs.h
48591 "
48592
48593fi
48594
ceec2216 48595 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48596
a848cd7e 48597
ceec2216 48598 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48599
ceec2216
RL
48600
48601 ac_config_files="$ac_config_files version-script Makefile"
48602
48603
5c60e845 48604 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48605
48606
9103d280 48607
1c14217d 48608if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48609if test "$wxUSE_GUI" = "yes"; then
48610 SUBDIRS="samples demos utils contrib"
48611else SUBDIRS="samples utils"
48612fi
48613
48614
48615
48616# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48617if test "${with_cppunit_prefix+set}" = set; then
48618 withval="$with_cppunit_prefix"
48619 cppunit_config_prefix="$withval"
48620else
48621 cppunit_config_prefix=""
48622fi;
48623
48624# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48625if test "${with_cppunit_exec_prefix+set}" = set; then
48626 withval="$with_cppunit_exec_prefix"
48627 cppunit_config_exec_prefix="$withval"
48628else
48629 cppunit_config_exec_prefix=""
48630fi;
48631
48632 if test x$cppunit_config_exec_prefix != x ; then
48633 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48634 if test x${CPPUNIT_CONFIG+set} != xset ; then
48635 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48636 fi
48637 fi
48638 if test x$cppunit_config_prefix != x ; then
48639 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48640 if test x${CPPUNIT_CONFIG+set} != xset ; then
48641 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48642 fi
48643 fi
48644
48645 # Extract the first word of "cppunit-config", so it can be a program name with args.
48646set dummy cppunit-config; ac_word=$2
48647echo "$as_me:$LINENO: checking for $ac_word" >&5
48648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48649if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48650 echo $ECHO_N "(cached) $ECHO_C" >&6
48651else
48652 case $CPPUNIT_CONFIG in
48653 [\\/]* | ?:[\\/]*)
48654 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48655 ;;
48656 *)
48657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48658for as_dir in $PATH
48659do
48660 IFS=$as_save_IFS
48661 test -z "$as_dir" && as_dir=.
48662 for ac_exec_ext in '' $ac_executable_extensions; do
48663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48664 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48666 break 2
48667 fi
48668done
48669done
48670
48671 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48672 ;;
48673esac
48674fi
48675CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48676
48677if test -n "$CPPUNIT_CONFIG"; then
48678 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48679echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48680else
48681 echo "$as_me:$LINENO: result: no" >&5
48682echo "${ECHO_T}no" >&6
48683fi
48684
48685 cppunit_version_min=1.8.0
48686
48687 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48688echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48689 no_cppunit=""
48690 if test "$CPPUNIT_CONFIG" = "no" ; then
48691 no_cppunit=yes
48692 else
48693 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48694 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48695 cppunit_version=`$CPPUNIT_CONFIG --version`
48696
48697 cppunit_major_version=`echo $cppunit_version | \
48698 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48699 cppunit_minor_version=`echo $cppunit_version | \
48700 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48701 cppunit_micro_version=`echo $cppunit_version | \
48702 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48703
48704 cppunit_major_min=`echo $cppunit_version_min | \
48705 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48706 cppunit_minor_min=`echo $cppunit_version_min | \
48707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48708 cppunit_micro_min=`echo $cppunit_version_min | \
48709 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48710
48711 cppunit_version_proper=`expr \
48712 $cppunit_major_version \> $cppunit_major_min \| \
48713 $cppunit_major_version \= $cppunit_major_min \& \
48714 $cppunit_minor_version \> $cppunit_minor_min \| \
48715 $cppunit_major_version \= $cppunit_major_min \& \
48716 $cppunit_minor_version \= $cppunit_minor_min \& \
48717 $cppunit_micro_version \>= $cppunit_micro_min `
48718
48719 if test "$cppunit_version_proper" = "1" ; then
48720 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48721echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48722 else
48723 echo "$as_me:$LINENO: result: no" >&5
48724echo "${ECHO_T}no" >&6
48725 no_cppunit=yes
48726 fi
48727 fi
48728
48729 if test "x$no_cppunit" = x ; then
c2218763 48730 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48731 else
48732 CPPUNIT_CFLAGS=""
48733 CPPUNIT_LIBS=""
c2218763 48734 :
a848cd7e
SC
48735 fi
48736
48737
48738
48739
48740
48741for subdir in `echo $SUBDIRS`; do
48742 if test -d ${srcdir}/${subdir} ; then
48743 if test "$wxUSE_GUI" = "yes"; then
48744 if test ${subdir} = "samples"; then
48745 makefiles="samples/Makefile.in $makefiles"
48746 for sample in `echo $SAMPLES_SUBDIRS`; do
48747 if test -d $srcdir/samples/$sample; then
48748 makefiles="samples/$sample/Makefile.in $makefiles"
48749 fi
48750 done
9c112555
MW
48751 else
48752 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48753 eval "disabled=\$$disabled_var"
48754 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48755 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48756 fi
48757 else if test ${subdir} = "samples"; then
48758 makefiles="samples/Makefile.in samples/console/Makefile.in"
48759 elif test ${subdir} = "utils"; then
6537ccf8
VS
48760 makefiles=""
48761 for util in HelpGen tex2rtf ; do
48762 if test -d $srcdir/utils/$util ; then
48763 makefiles="utils/$util/Makefile.in \
48764 utils/$util/src/Makefile.in \
48765 $makefiles"
48766 fi
48767 done
a848cd7e
SC
48768 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48769 fi
48770 fi
48771
48772 for mkin in $makefiles ; do
48773 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48774 ac_config_files="$ac_config_files $mk"
48775
48776 done
48777 fi
48778done
1c14217d 48779fi
a848cd7e
SC
48780cat >confcache <<\_ACEOF
48781# This file is a shell script that caches the results of configure
48782# tests run on this system so they can be shared between configure
48783# scripts and configure runs, see configure's option --config-cache.
48784# It is not useful on other systems. If it contains results you don't
48785# want to keep, you may remove or edit it.
48786#
48787# config.status only pays attention to the cache file if you give it
48788# the --recheck option to rerun configure.
48789#
48790# `ac_cv_env_foo' variables (set or unset) will be overridden when
48791# loading this file, other *unset* `ac_cv_foo' will be assigned the
48792# following values.
48793
48794_ACEOF
48795
48796# The following way of writing the cache mishandles newlines in values,
48797# but we know of no workaround that is simple, portable, and efficient.
48798# So, don't put newlines in cache variables' values.
48799# Ultrix sh set writes to stderr and can't be redirected directly,
48800# and sets the high bit in the cache file unless we assign to the vars.
48801{
48802 (set) 2>&1 |
48803 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48804 *ac_space=\ *)
48805 # `set' does not quote correctly, so add quotes (double-quote
48806 # substitution turns \\\\ into \\, and sed turns \\ into \).
48807 sed -n \
ac1cb8d3
VS
48808 "s/'/'\\\\''/g;
48809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48810 ;;
48811 *)
48812 # `set' quotes correctly as required by POSIX, so do not add quotes.
48813 sed -n \
ac1cb8d3 48814 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48815 ;;
48816 esac;
48817} |
48818 sed '
48819 t clear
48820 : clear
48821 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48822 t end
48823 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48824 : end' >>confcache
48825if diff $cache_file confcache >/dev/null 2>&1; then :; else
48826 if test -w $cache_file; then
48827 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48828 cat confcache >$cache_file
48829 else
48830 echo "not updating unwritable cache $cache_file"
48831 fi
48832fi
48833rm -f confcache
48834
48835test "x$prefix" = xNONE && prefix=$ac_default_prefix
48836# Let make expand exec_prefix.
48837test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48838
48839# VPATH may cause trouble with some makes, so we remove $(srcdir),
48840# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48841# trailing colons and then remove the whole line if VPATH becomes empty
48842# (actually we leave an empty line to preserve line numbers).
48843if test "x$srcdir" = x.; then
ac1cb8d3 48844 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48845s/:*\$(srcdir):*/:/;
48846s/:*\${srcdir}:*/:/;
48847s/:*@srcdir@:*/:/;
ac1cb8d3 48848s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48849s/:*$//;
ac1cb8d3 48850s/^[^=]*=[ ]*$//;
a848cd7e
SC
48851}'
48852fi
48853
48854DEFS=-DHAVE_CONFIG_H
48855
48856ac_libobjs=
48857ac_ltlibobjs=
48858for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48859 # 1. Remove the extension, and $U if already installed.
48860 ac_i=`echo "$ac_i" |
ac1cb8d3 48861 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48862 # 2. Add them.
48863 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48864 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48865done
48866LIBOBJS=$ac_libobjs
48867
48868LTLIBOBJS=$ac_ltlibobjs
48869
48870
48871
48872: ${CONFIG_STATUS=./config.status}
48873ac_clean_files_save=$ac_clean_files
48874ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48875{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48876echo "$as_me: creating $CONFIG_STATUS" >&6;}
48877cat >$CONFIG_STATUS <<_ACEOF
48878#! $SHELL
48879# Generated by $as_me.
48880# Run this file to recreate the current configuration.
48881# Compiler output produced by configure, useful for debugging
48882# configure, is in config.log if it exists.
48883
48884debug=false
48885ac_cs_recheck=false
48886ac_cs_silent=false
48887SHELL=\${CONFIG_SHELL-$SHELL}
48888_ACEOF
48889
48890cat >>$CONFIG_STATUS <<\_ACEOF
48891## --------------------- ##
48892## M4sh Initialization. ##
48893## --------------------- ##
48894
48895# Be Bourne compatible
48896if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48897 emulate sh
48898 NULLCMD=:
48899 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48900 # is contrary to our usage. Disable this feature.
48901 alias -g '${1+"$@"}'='"$@"'
48902elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48903 set -o posix
48904fi
ac1cb8d3 48905DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48906
48907# Support unset when possible.
ac1cb8d3 48908if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48909 as_unset=unset
48910else
48911 as_unset=false
48912fi
48913
48914
48915# Work around bugs in pre-3.0 UWIN ksh.
48916$as_unset ENV MAIL MAILPATH
48917PS1='$ '
48918PS2='> '
48919PS4='+ '
48920
48921# NLS nuisances.
48922for as_var in \
48923 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48924 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48925 LC_TELEPHONE LC_TIME
48926do
ac1cb8d3 48927 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48928 eval $as_var=C; export $as_var
48929 else
48930 $as_unset $as_var
48931 fi
48932done
48933
48934# Required to use basename.
48935if expr a : '\(a\)' >/dev/null 2>&1; then
48936 as_expr=expr
48937else
48938 as_expr=false
48939fi
48940
48941if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48942 as_basename=basename
48943else
48944 as_basename=false
48945fi
48946
48947
48948# Name of the executable.
48949as_me=`$as_basename "$0" ||
48950$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48951 X"$0" : 'X\(//\)$' \| \
48952 X"$0" : 'X\(/\)$' \| \
48953 . : '\(.\)' 2>/dev/null ||
48954echo X/"$0" |
48955 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48956 /^X\/\(\/\/\)$/{ s//\1/; q; }
48957 /^X\/\(\/\).*/{ s//\1/; q; }
48958 s/.*/./; q'`
48959
48960
48961# PATH needs CR, and LINENO needs CR and PATH.
48962# Avoid depending upon Character Ranges.
48963as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48964as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48965as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48966as_cr_digits='0123456789'
48967as_cr_alnum=$as_cr_Letters$as_cr_digits
48968
48969# The user is always right.
48970if test "${PATH_SEPARATOR+set}" != set; then
48971 echo "#! /bin/sh" >conf$$.sh
48972 echo "exit 0" >>conf$$.sh
48973 chmod +x conf$$.sh
48974 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48975 PATH_SEPARATOR=';'
48976 else
48977 PATH_SEPARATOR=:
48978 fi
48979 rm -f conf$$.sh
48980fi
48981
48982
48983 as_lineno_1=$LINENO
48984 as_lineno_2=$LINENO
48985 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48986 test "x$as_lineno_1" != "x$as_lineno_2" &&
48987 test "x$as_lineno_3" = "x$as_lineno_2" || {
48988 # Find who we are. Look in the path if we contain no path at all
48989 # relative or not.
48990 case $0 in
48991 *[\\/]* ) as_myself=$0 ;;
48992 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48993for as_dir in $PATH
48994do
48995 IFS=$as_save_IFS
48996 test -z "$as_dir" && as_dir=.
48997 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48998done
48999
49000 ;;
49001 esac
49002 # We did not find ourselves, most probably we were run as `sh COMMAND'
49003 # in which case we are not to be found in the path.
49004 if test "x$as_myself" = x; then
49005 as_myself=$0
49006 fi
49007 if test ! -f "$as_myself"; then
49008 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49009echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49010 { (exit 1); exit 1; }; }
49011 fi
49012 case $CONFIG_SHELL in
49013 '')
49014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49015for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49016do
49017 IFS=$as_save_IFS
49018 test -z "$as_dir" && as_dir=.
49019 for as_base in sh bash ksh sh5; do
49020 case $as_dir in
49021 /*)
49022 if ("$as_dir/$as_base" -c '
49023 as_lineno_1=$LINENO
49024 as_lineno_2=$LINENO
49025 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49026 test "x$as_lineno_1" != "x$as_lineno_2" &&
49027 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49028 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49029 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49030 CONFIG_SHELL=$as_dir/$as_base
49031 export CONFIG_SHELL
49032 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49033 fi;;
49034 esac
49035 done
49036done
49037;;
49038 esac
49039
49040 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49041 # uniformly replaced by the line number. The first 'sed' inserts a
49042 # line-number line before each line; the second 'sed' does the real
49043 # work. The second script uses 'N' to pair each line-number line
49044 # with the numbered line, and appends trailing '-' during
49045 # substitution so that $LINENO is not a special case at line end.
49046 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49047 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49048 sed '=' <$as_myself |
49049 sed '
49050 N
49051 s,$,-,
49052 : loop
49053 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49054 t loop
49055 s,-$,,
49056 s,^['$as_cr_digits']*\n,,
49057 ' >$as_me.lineno &&
49058 chmod +x $as_me.lineno ||
49059 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49060echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49061 { (exit 1); exit 1; }; }
49062
49063 # Don't try to exec as it changes $[0], causing all sort of problems
49064 # (the dirname of $[0] is not the place where we might find the
49065 # original and so on. Autoconf is especially sensible to this).
49066 . ./$as_me.lineno
49067 # Exit status is that of the last command.
49068 exit
49069}
49070
49071
49072case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49073 *c*,-n*) ECHO_N= ECHO_C='
49074' ECHO_T=' ' ;;
49075 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49076 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49077esac
49078
49079if expr a : '\(a\)' >/dev/null 2>&1; then
49080 as_expr=expr
49081else
49082 as_expr=false
49083fi
49084
49085rm -f conf$$ conf$$.exe conf$$.file
49086echo >conf$$.file
49087if ln -s conf$$.file conf$$ 2>/dev/null; then
49088 # We could just check for DJGPP; but this test a) works b) is more generic
49089 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49090 if test -f conf$$.exe; then
49091 # Don't use ln at all; we don't have any links
49092 as_ln_s='cp -p'
49093 else
49094 as_ln_s='ln -s'
49095 fi
49096elif ln conf$$.file conf$$ 2>/dev/null; then
49097 as_ln_s=ln
49098else
49099 as_ln_s='cp -p'
49100fi
49101rm -f conf$$ conf$$.exe conf$$.file
49102
49103if mkdir -p . 2>/dev/null; then
49104 as_mkdir_p=:
49105else
ac1cb8d3 49106 test -d ./-p && rmdir ./-p
a848cd7e
SC
49107 as_mkdir_p=false
49108fi
49109
49110as_executable_p="test -f"
49111
49112# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 49113as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49114
49115# Sed expression to map a string onto a valid variable name.
ac1cb8d3 49116as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49117
49118
49119# IFS
49120# We need space, tab and new line, in precisely that order.
49121as_nl='
49122'
49123IFS=" $as_nl"
49124
49125# CDPATH.
49126$as_unset CDPATH
49127
49128exec 6>&1
49129
49130# Open the log real soon, to keep \$[0] and so on meaningful, and to
49131# report actual input values of CONFIG_FILES etc. instead of their
49132# values after options handling. Logging --version etc. is OK.
49133exec 5>>config.log
49134{
49135 echo
49136 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49137## Running $as_me. ##
49138_ASBOX
49139} >&5
49140cat >&5 <<_CSEOF
49141
dd8df4fc 49142This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49143generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49144
49145 CONFIG_FILES = $CONFIG_FILES
49146 CONFIG_HEADERS = $CONFIG_HEADERS
49147 CONFIG_LINKS = $CONFIG_LINKS
49148 CONFIG_COMMANDS = $CONFIG_COMMANDS
49149 $ $0 $@
49150
49151_CSEOF
49152echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49153echo >&5
49154_ACEOF
49155
49156# Files that config.status was made for.
49157if test -n "$ac_config_files"; then
49158 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49159fi
49160
49161if test -n "$ac_config_headers"; then
49162 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49163fi
49164
49165if test -n "$ac_config_links"; then
49166 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49167fi
49168
49169if test -n "$ac_config_commands"; then
49170 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49171fi
49172
49173cat >>$CONFIG_STATUS <<\_ACEOF
49174
49175ac_cs_usage="\
49176\`$as_me' instantiates files from templates according to the
49177current configuration.
49178
49179Usage: $0 [OPTIONS] [FILE]...
49180
49181 -h, --help print this help, then exit
49182 -V, --version print version number, then exit
49183 -q, --quiet do not print progress messages
49184 -d, --debug don't remove temporary files
49185 --recheck update $as_me by reconfiguring in the same conditions
49186 --file=FILE[:TEMPLATE]
ac1cb8d3 49187 instantiate the configuration file FILE
a848cd7e 49188 --header=FILE[:TEMPLATE]
ac1cb8d3 49189 instantiate the configuration header FILE
a848cd7e
SC
49190
49191Configuration files:
49192$config_files
49193
49194Configuration headers:
49195$config_headers
49196
49197Configuration commands:
49198$config_commands
49199
49200Report bugs to <bug-autoconf@gnu.org>."
49201_ACEOF
49202
49203cat >>$CONFIG_STATUS <<_ACEOF
49204ac_cs_version="\\
dd8df4fc 49205wxWidgets config.status 2.7.0
ac1cb8d3 49206configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49207 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49208
ac1cb8d3 49209Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49210This config.status script is free software; the Free Software Foundation
49211gives unlimited permission to copy, distribute and modify it."
49212srcdir=$srcdir
49213INSTALL="$INSTALL"
49214_ACEOF
49215
49216cat >>$CONFIG_STATUS <<\_ACEOF
49217# If no file are specified by the user, then we need to provide default
49218# value. By we need to know if files were specified by the user.
49219ac_need_defaults=:
49220while test $# != 0
49221do
49222 case $1 in
49223 --*=*)
49224 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49225 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49226 ac_shift=:
49227 ;;
49228 -*)
49229 ac_option=$1
49230 ac_optarg=$2
49231 ac_shift=shift
49232 ;;
49233 *) # This is not an option, so the user has probably given explicit
49234 # arguments.
49235 ac_option=$1
49236 ac_need_defaults=false;;
49237 esac
49238
49239 case $ac_option in
49240 # Handling of the options.
49241_ACEOF
49242cat >>$CONFIG_STATUS <<\_ACEOF
49243 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49244 ac_cs_recheck=: ;;
49245 --version | --vers* | -V )
49246 echo "$ac_cs_version"; exit 0 ;;
49247 --he | --h)
49248 # Conflict between --help and --header
49249 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49250Try \`$0 --help' for more information." >&5
49251echo "$as_me: error: ambiguous option: $1
49252Try \`$0 --help' for more information." >&2;}
49253 { (exit 1); exit 1; }; };;
49254 --help | --hel | -h )
49255 echo "$ac_cs_usage"; exit 0 ;;
49256 --debug | --d* | -d )
49257 debug=: ;;
49258 --file | --fil | --fi | --f )
49259 $ac_shift
49260 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49261 ac_need_defaults=false;;
49262 --header | --heade | --head | --hea )
49263 $ac_shift
49264 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49265 ac_need_defaults=false;;
49266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49267 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49268 ac_cs_silent=: ;;
49269
49270 # This is an error.
49271 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49272Try \`$0 --help' for more information." >&5
49273echo "$as_me: error: unrecognized option: $1
49274Try \`$0 --help' for more information." >&2;}
49275 { (exit 1); exit 1; }; } ;;
49276
49277 *) ac_config_targets="$ac_config_targets $1" ;;
49278
49279 esac
49280 shift
49281done
49282
49283ac_configure_extra_args=
49284
49285if $ac_cs_silent; then
49286 exec 6>/dev/null
49287 ac_configure_extra_args="$ac_configure_extra_args --silent"
49288fi
49289
49290_ACEOF
49291cat >>$CONFIG_STATUS <<_ACEOF
49292if \$ac_cs_recheck; then
49293 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49294 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49295fi
49296
49297_ACEOF
49298
49299cat >>$CONFIG_STATUS <<_ACEOF
49300#
49301# INIT-COMMANDS section.
49302#
49303
5c60e845
MW
49304
49305 CPP="$CPP"
49306 infile="$srcdir/include/wx/msw/genrcdefs.h"
49307 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49308
49309
ceec2216
RL
49310 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49311 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49312 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49313 LN_S="${LN_S}"
a848cd7e
SC
49314
49315
49316_ACEOF
49317
49318
49319
49320cat >>$CONFIG_STATUS <<\_ACEOF
49321for ac_config_target in $ac_config_targets
49322do
49323 case "$ac_config_target" in
49324 # Handling of arguments.
ceec2216
RL
49325 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49326 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49327 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49328 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49329 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49330 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49331 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49332 "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
49333 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49334echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49335 { (exit 1); exit 1; }; };;
49336 esac
49337done
49338
49339# If the user did not use the arguments to specify the items to instantiate,
49340# then the envvar interface is used. Set only those that are not.
49341# We use the long form for the default assignment because of an extremely
49342# bizarre bug on SunOS 4.1.3.
49343if $ac_need_defaults; then
49344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49345 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49346 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49347fi
49348
49349# Have a temporary directory for convenience. Make it in the build tree
49350# simply because there is no reason to put it here, and in addition,
49351# creating and moving files from /tmp can sometimes cause problems.
49352# Create a temporary directory, and hook for its removal unless debugging.
49353$debug ||
49354{
49355 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49356 trap '{ (exit 1); exit 1; }' 1 2 13 15
49357}
49358
49359# Create a (secure) tmp directory for tmp files.
49360
49361{
49362 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49363 test -n "$tmp" && test -d "$tmp"
49364} ||
49365{
49366 tmp=./confstat$$-$RANDOM
49367 (umask 077 && mkdir $tmp)
49368} ||
49369{
49370 echo "$me: cannot create a temporary directory in ." >&2
49371 { (exit 1); exit 1; }
49372}
49373
49374_ACEOF
49375
49376cat >>$CONFIG_STATUS <<_ACEOF
49377
49378#
49379# CONFIG_FILES section.
49380#
49381
49382# No need to generate the scripts if there are no CONFIG_FILES.
49383# This happens for instance when ./config.status config.h
49384if test -n "\$CONFIG_FILES"; then
49385 # Protect against being on the right side of a sed subst in config.status.
49386 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49387 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49388s,@SHELL@,$SHELL,;t t
49389s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49390s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49391s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49392s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49393s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49394s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49395s,@exec_prefix@,$exec_prefix,;t t
49396s,@prefix@,$prefix,;t t
49397s,@program_transform_name@,$program_transform_name,;t t
49398s,@bindir@,$bindir,;t t
49399s,@sbindir@,$sbindir,;t t
49400s,@libexecdir@,$libexecdir,;t t
49401s,@datadir@,$datadir,;t t
49402s,@sysconfdir@,$sysconfdir,;t t
49403s,@sharedstatedir@,$sharedstatedir,;t t
49404s,@localstatedir@,$localstatedir,;t t
49405s,@libdir@,$libdir,;t t
49406s,@includedir@,$includedir,;t t
49407s,@oldincludedir@,$oldincludedir,;t t
49408s,@infodir@,$infodir,;t t
49409s,@mandir@,$mandir,;t t
49410s,@build_alias@,$build_alias,;t t
49411s,@host_alias@,$host_alias,;t t
49412s,@target_alias@,$target_alias,;t t
49413s,@DEFS@,$DEFS,;t t
49414s,@ECHO_C@,$ECHO_C,;t t
49415s,@ECHO_N@,$ECHO_N,;t t
49416s,@ECHO_T@,$ECHO_T,;t t
49417s,@LIBS@,$LIBS,;t t
49418s,@build@,$build,;t t
49419s,@build_cpu@,$build_cpu,;t t
49420s,@build_vendor@,$build_vendor,;t t
49421s,@build_os@,$build_os,;t t
49422s,@host@,$host,;t t
49423s,@host_cpu@,$host_cpu,;t t
49424s,@host_vendor@,$host_vendor,;t t
49425s,@host_os@,$host_os,;t t
49426s,@target@,$target,;t t
49427s,@target_cpu@,$target_cpu,;t t
49428s,@target_vendor@,$target_vendor,;t t
49429s,@target_os@,$target_os,;t t
49430s,@CC@,$CC,;t t
49431s,@CFLAGS@,$CFLAGS,;t t
49432s,@LDFLAGS@,$LDFLAGS,;t t
49433s,@CPPFLAGS@,$CPPFLAGS,;t t
49434s,@ac_ct_CC@,$ac_ct_CC,;t t
49435s,@EXEEXT@,$EXEEXT,;t t
49436s,@OBJEXT@,$OBJEXT,;t t
49437s,@CPP@,$CPP,;t t
49438s,@EGREP@,$EGREP,;t t
49439s,@CXX@,$CXX,;t t
49440s,@CXXFLAGS@,$CXXFLAGS,;t t
49441s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49442s,@RANLIB@,$RANLIB,;t t
49443s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49444s,@AR@,$AR,;t t
8c80d384 49445s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49446s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49447s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49448s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49449s,@STRIP@,$STRIP,;t t
8c80d384 49450s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49451s,@WINDRES@,$WINDRES,;t t
49452s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49453s,@DLLTOOL@,$DLLTOOL,;t t
49454s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49455s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49456s,@LN_S@,$LN_S,;t t
49457s,@CXXCPP@,$CXXCPP,;t t
49458s,@subdirs@,$subdirs,;t t
49459s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49460s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49461s,@GTK_LIBS@,$GTK_LIBS,;t t
49462s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49463s,@X_CFLAGS@,$X_CFLAGS,;t t
49464s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49465s,@X_LIBS@,$X_LIBS,;t t
49466s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49467s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49468s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49469s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49470s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49471s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49472s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49473s,@REZ@,$REZ,;t t
a848cd7e
SC
49474s,@DEREZ@,$DEREZ,;t t
49475s,@SETFILE@,$SETFILE,;t t
49476s,@LIBICONV@,$LIBICONV,;t t
49477s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49478s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49479s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49480s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49481s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49482s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49483s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49484s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49485s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49486s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49487s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49488s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49489s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49490s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49491s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49492s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49493s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49494s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49495s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49496s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49497s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49498s,@VENDOR@,$VENDOR,;t t
49499s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49500s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49501s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49502s,@WXUNIV@,$WXUNIV,;t t
49503s,@MONOLITHIC@,$MONOLITHIC,;t t
49504s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49505s,@EXTRALIBS@,$EXTRALIBS,;t t
49506s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49507s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49508s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49509s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49510s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49511s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49512s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49513s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49514s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49515s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49516s,@UNICODE@,$UNICODE,;t t
49517s,@BUILD@,$BUILD,;t t
49518s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49519s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49520s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49521s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49522s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49523s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49524s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49525s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49526s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49527s,@SET_MAKE@,$SET_MAKE,;t t
49528s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49529s,@NM@,$NM,;t t
49530s,@ac_ct_NM@,$ac_ct_NM,;t t
49531s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49532s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49533s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49534s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49535s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49536s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49537s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49538s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49539s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49540s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49541s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49542s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49543s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49544s,@LIBPREFIX@,$LIBPREFIX,;t t
49545s,@LIBEXT@,$LIBEXT,;t t
49546s,@DLLPREFIX@,$DLLPREFIX,;t t
49547s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49548s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49549s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49550s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49551s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49552s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49553s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49554s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49555s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49556s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49557s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49558s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49559s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49560s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49561s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49562s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49563s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49564s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49565s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49566s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49567s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49568s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49569s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49570s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49571s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49572s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49573s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49574s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49575s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49576s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49577s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49578s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49579s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49580s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49581s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49582s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49583s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49584s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49585s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 49586s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 49587s,@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 49588s,@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 49589s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49590s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49591s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49592s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49593s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 49594s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 49595s,@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 49596s,@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 49597s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49598s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49599s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49600s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49601s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49602s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49603s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49604s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49605s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49606s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49607s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49608s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49609s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49610s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49611s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49612s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49613s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49614s,@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
49615s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49616s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49617s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49618s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49619s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49620s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49621s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49622s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49623s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49624s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49625s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49626s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49627s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49628s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49629s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49630s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49631s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49632s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49633s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49634s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49635s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49636s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49637s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49638s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49639s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49640s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49641s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49642s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49643s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49644s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49645s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49646s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49647s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49648s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49649s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49650s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49651s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49652s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49653s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49654s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49655s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49656s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49657s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49658s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49659s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49660s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49661s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49662s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49663s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49664s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49665s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49666s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49667s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49668s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49669s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49670s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49671s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49672s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49673s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49674s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49675s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49676s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49677s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49678s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49679s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49680s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49681s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49682s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49683s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49684s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49685s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49686s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49687s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49688s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49689s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49690s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49691s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49692s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49693s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49694s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49695s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49696s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49697s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49698s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49699s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49700s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49701s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49702s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49703s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49704s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49705s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49706s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49707s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49708s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49709s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49710s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49711s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49712s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49713s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49714s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49715s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49716s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49717s,@USE_GUI@,$USE_GUI,;t t
49718s,@AFMINSTALL@,$AFMINSTALL,;t t
49719s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49720s,@TOOLKIT@,$TOOLKIT,;t t
49721s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49722s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49723s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49724s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49725s,@WIDGET_SET@,$WIDGET_SET,;t t
49726s,@WX_RELEASE@,$WX_RELEASE,;t t
49727s,@WX_VERSION@,$WX_VERSION,;t t
49728s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49729s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49730s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49731s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49732s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49733s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49734s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49735s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49736s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49737s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49738s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49739s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49740s,@DISTDIR@,$DISTDIR,;t t
49741s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49742s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49743s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49744s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49745s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49746s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49747s,@RESFLAGS@,$RESFLAGS,;t t
49748s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49749s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49750s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49751s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49752s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49753s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49754s,@GCC@,$GCC,;t t
a848cd7e
SC
49755s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49756s,@LIBOBJS@,$LIBOBJS,;t t
49757s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49758CEOF
49759
49760_ACEOF
49761
49762 cat >>$CONFIG_STATUS <<\_ACEOF
49763 # Split the substitutions into bite-sized pieces for seds with
49764 # small command number limits, like on Digital OSF/1 and HP-UX.
49765 ac_max_sed_lines=48
49766 ac_sed_frag=1 # Number of current file.
49767 ac_beg=1 # First line for current file.
49768 ac_end=$ac_max_sed_lines # Line after last line for current file.
49769 ac_more_lines=:
49770 ac_sed_cmds=
49771 while $ac_more_lines; do
49772 if test $ac_beg -gt 1; then
49773 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49774 else
49775 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49776 fi
49777 if test ! -s $tmp/subs.frag; then
49778 ac_more_lines=false
49779 else
49780 # The purpose of the label and of the branching condition is to
49781 # speed up the sed processing (if there are no `@' at all, there
49782 # is no need to browse any of the substitutions).
49783 # These are the two extra sed commands mentioned above.
49784 (echo ':t
49785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49786 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49787 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49788 else
ac1cb8d3 49789 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49790 fi
49791 ac_sed_frag=`expr $ac_sed_frag + 1`
49792 ac_beg=$ac_end
49793 ac_end=`expr $ac_end + $ac_max_sed_lines`
49794 fi
49795 done
49796 if test -z "$ac_sed_cmds"; then
49797 ac_sed_cmds=cat
49798 fi
49799fi # test -n "$CONFIG_FILES"
49800
49801_ACEOF
49802cat >>$CONFIG_STATUS <<\_ACEOF
49803for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49804 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49805 case $ac_file in
49806 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49807 cat >$tmp/stdin
49808 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49809 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49810 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49811 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49812 * ) ac_file_in=$ac_file.in ;;
49813 esac
49814
49815 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49816 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49817$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49818 X"$ac_file" : 'X\(//\)[^/]' \| \
49819 X"$ac_file" : 'X\(//\)$' \| \
49820 X"$ac_file" : 'X\(/\)' \| \
49821 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49822echo X"$ac_file" |
49823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49825 /^X\(\/\/\)$/{ s//\1/; q; }
49826 /^X\(\/\).*/{ s//\1/; q; }
49827 s/.*/./; q'`
49828 { if $as_mkdir_p; then
49829 mkdir -p "$ac_dir"
49830 else
49831 as_dir="$ac_dir"
49832 as_dirs=
49833 while test ! -d "$as_dir"; do
49834 as_dirs="$as_dir $as_dirs"
49835 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49836$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49837 X"$as_dir" : 'X\(//\)[^/]' \| \
49838 X"$as_dir" : 'X\(//\)$' \| \
49839 X"$as_dir" : 'X\(/\)' \| \
49840 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49841echo X"$as_dir" |
49842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49844 /^X\(\/\/\)$/{ s//\1/; q; }
49845 /^X\(\/\).*/{ s//\1/; q; }
49846 s/.*/./; q'`
49847 done
49848 test ! -n "$as_dirs" || mkdir $as_dirs
49849 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49850echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49851 { (exit 1); exit 1; }; }; }
49852
49853 ac_builddir=.
49854
49855if test "$ac_dir" != .; then
49856 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49857 # A "../" for each directory in $ac_dir_suffix.
49858 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49859else
49860 ac_dir_suffix= ac_top_builddir=
49861fi
49862
49863case $srcdir in
49864 .) # No --srcdir option. We are building in place.
49865 ac_srcdir=.
49866 if test -z "$ac_top_builddir"; then
49867 ac_top_srcdir=.
49868 else
49869 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49870 fi ;;
49871 [\\/]* | ?:[\\/]* ) # Absolute path.
49872 ac_srcdir=$srcdir$ac_dir_suffix;
49873 ac_top_srcdir=$srcdir ;;
49874 *) # Relative path.
49875 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49876 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49877esac
ac1cb8d3
VS
49878
49879# Do not use `cd foo && pwd` to compute absolute paths, because
49880# the directories may not exist.
49881case `pwd` in
49882.) ac_abs_builddir="$ac_dir";;
49883*)
49884 case "$ac_dir" in
49885 .) ac_abs_builddir=`pwd`;;
49886 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49887 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49888 esac;;
49889esac
49890case $ac_abs_builddir in
49891.) ac_abs_top_builddir=${ac_top_builddir}.;;
49892*)
49893 case ${ac_top_builddir}. in
49894 .) ac_abs_top_builddir=$ac_abs_builddir;;
49895 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49896 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49897 esac;;
49898esac
49899case $ac_abs_builddir in
49900.) ac_abs_srcdir=$ac_srcdir;;
49901*)
49902 case $ac_srcdir in
49903 .) ac_abs_srcdir=$ac_abs_builddir;;
49904 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49905 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49906 esac;;
49907esac
49908case $ac_abs_builddir in
49909.) ac_abs_top_srcdir=$ac_top_srcdir;;
49910*)
49911 case $ac_top_srcdir in
49912 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49913 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49914 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49915 esac;;
49916esac
a848cd7e
SC
49917
49918
49919 case $INSTALL in
49920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49921 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49922 esac
49923
2b850ae1
RR
49924 if test x"$ac_file" != x-; then
49925 { echo "$as_me:$LINENO: creating $ac_file" >&5
49926echo "$as_me: creating $ac_file" >&6;}
49927 rm -f "$ac_file"
49928 fi
a848cd7e
SC
49929 # Let's still pretend it is `configure' which instantiates (i.e., don't
49930 # use $as_me), people would be surprised to read:
49931 # /* config.h. Generated by config.status. */
49932 if test x"$ac_file" = x-; then
49933 configure_input=
49934 else
49935 configure_input="$ac_file. "
49936 fi
49937 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49938 sed 's,.*/,,'` by configure."
a848cd7e
SC
49939
49940 # First look for the input files in the build tree, otherwise in the
49941 # src tree.
49942 ac_file_inputs=`IFS=:
49943 for f in $ac_file_in; do
49944 case $f in
49945 -) echo $tmp/stdin ;;
49946 [\\/$]*)
ac1cb8d3
VS
49947 # Absolute (can't be DOS-style, as IFS=:)
49948 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49949echo "$as_me: error: cannot find input file: $f" >&2;}
49950 { (exit 1); exit 1; }; }
ac1cb8d3 49951 echo "$f";;
a848cd7e 49952 *) # Relative
ac1cb8d3
VS
49953 if test -f "$f"; then
49954 # Build tree
49955 echo "$f"
49956 elif test -f "$srcdir/$f"; then
49957 # Source tree
49958 echo "$srcdir/$f"
49959 else
49960 # /dev/null tree
49961 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49962echo "$as_me: error: cannot find input file: $f" >&2;}
49963 { (exit 1); exit 1; }; }
ac1cb8d3 49964 fi;;
a848cd7e
SC
49965 esac
49966 done` || { (exit 1); exit 1; }
49967_ACEOF
49968cat >>$CONFIG_STATUS <<_ACEOF
49969 sed "$ac_vpsub
49970$extrasub
49971_ACEOF
49972cat >>$CONFIG_STATUS <<\_ACEOF
49973:t
49974/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49975s,@configure_input@,$configure_input,;t t
49976s,@srcdir@,$ac_srcdir,;t t
49977s,@abs_srcdir@,$ac_abs_srcdir,;t t
49978s,@top_srcdir@,$ac_top_srcdir,;t t
49979s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49980s,@builddir@,$ac_builddir,;t t
49981s,@abs_builddir@,$ac_abs_builddir,;t t
49982s,@top_builddir@,$ac_top_builddir,;t t
49983s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49984s,@INSTALL@,$ac_INSTALL,;t t
49985" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49986 rm -f $tmp/stdin
49987 if test x"$ac_file" != x-; then
49988 mv $tmp/out $ac_file
49989 else
49990 cat $tmp/out
49991 rm -f $tmp/out
49992 fi
49993
ceec2216
RL
49994 # Run the commands associated with the file.
49995 case $ac_file in
49996 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49997 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49998 esac
a848cd7e
SC
49999done
50000_ACEOF
50001cat >>$CONFIG_STATUS <<\_ACEOF
50002
50003#
50004# CONFIG_HEADER section.
50005#
50006
50007# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50008# NAME is the cpp macro being defined and VALUE is the value it is being given.
50009#
50010# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
50011ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50012ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
50013ac_dC=' '
50014ac_dD=',;t'
50015# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 50016ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
50017ac_uB='$,\1#\2define\3'
50018ac_uC=' '
50019ac_uD=',;t'
50020
50021for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50022 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50023 case $ac_file in
50024 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50025 cat >$tmp/stdin
50026 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50028 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50029 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50030 * ) ac_file_in=$ac_file.in ;;
50031 esac
50032
50033 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50034echo "$as_me: creating $ac_file" >&6;}
50035
50036 # First look for the input files in the build tree, otherwise in the
50037 # src tree.
50038 ac_file_inputs=`IFS=:
50039 for f in $ac_file_in; do
50040 case $f in
50041 -) echo $tmp/stdin ;;
50042 [\\/$]*)
ac1cb8d3
VS
50043 # Absolute (can't be DOS-style, as IFS=:)
50044 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50045echo "$as_me: error: cannot find input file: $f" >&2;}
50046 { (exit 1); exit 1; }; }
ac1cb8d3
VS
50047 # Do quote $f, to prevent DOS paths from being IFS'd.
50048 echo "$f";;
a848cd7e 50049 *) # Relative
ac1cb8d3
VS
50050 if test -f "$f"; then
50051 # Build tree
50052 echo "$f"
50053 elif test -f "$srcdir/$f"; then
50054 # Source tree
50055 echo "$srcdir/$f"
50056 else
50057 # /dev/null tree
50058 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50059echo "$as_me: error: cannot find input file: $f" >&2;}
50060 { (exit 1); exit 1; }; }
ac1cb8d3 50061 fi;;
a848cd7e
SC
50062 esac
50063 done` || { (exit 1); exit 1; }
50064 # Remove the trailing spaces.
ac1cb8d3 50065 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
50066
50067_ACEOF
50068
50069# Transform confdefs.h into two sed scripts, `conftest.defines' and
50070# `conftest.undefs', that substitutes the proper values into
50071# config.h.in to produce config.h. The first handles `#define'
50072# templates, and the second `#undef' templates.
50073# And first: Protect against being on the right side of a sed subst in
50074# config.status. Protect against being in an unquoted here document
50075# in config.status.
50076rm -f conftest.defines conftest.undefs
50077# Using a here document instead of a string reduces the quoting nightmare.
50078# Putting comments in sed scripts is not portable.
50079#
50080# `end' is used to avoid that the second main sed command (meant for
50081# 0-ary CPP macros) applies to n-ary macro definitions.
50082# See the Autoconf documentation for `clear'.
50083cat >confdef2sed.sed <<\_ACEOF
50084s/[\\&,]/\\&/g
50085s,[\\$`],\\&,g
50086t clear
50087: clear
ac1cb8d3 50088s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 50089t end
ac1cb8d3 50090s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
50091: end
50092_ACEOF
50093# If some macros were called several times there might be several times
50094# the same #defines, which is useless. Nevertheless, we may not want to
50095# sort them, since we want the *last* AC-DEFINE to be honored.
50096uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50097sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50098rm -f confdef2sed.sed
50099
50100# This sed command replaces #undef with comments. This is necessary, for
50101# example, in the case of _POSIX_SOURCE, which is predefined and required
50102# on some systems where configure will not decide to define it.
50103cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 50104s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
50105_ACEOF
50106
50107# Break up conftest.defines because some shells have a limit on the size
50108# of here documents, and old seds have small limits too (100 cmds).
50109echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 50110echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
50111echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50112echo ' :' >>$CONFIG_STATUS
50113rm -f conftest.tail
50114while grep . conftest.defines >/dev/null
50115do
50116 # Write a limited-size here document to $tmp/defines.sed.
50117 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50118 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 50119 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
50120 # Work around the forget-to-reset-the-flag bug.
50121 echo 't clr' >>$CONFIG_STATUS
50122 echo ': clr' >>$CONFIG_STATUS
50123 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50124 echo 'CEOF
50125 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50126 rm -f $tmp/in
50127 mv $tmp/out $tmp/in
50128' >>$CONFIG_STATUS
50129 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50130 rm -f conftest.defines
50131 mv conftest.tail conftest.defines
50132done
50133rm -f conftest.defines
50134echo ' fi # grep' >>$CONFIG_STATUS
50135echo >>$CONFIG_STATUS
50136
50137# Break up conftest.undefs because some shells have a limit on the size
50138# of here documents, and old seds have small limits too (100 cmds).
50139echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50140rm -f conftest.tail
50141while grep . conftest.undefs >/dev/null
50142do
50143 # Write a limited-size here document to $tmp/undefs.sed.
50144 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50145 # Speed up: don't consider the non `#undef'
ac1cb8d3 50146 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50147 # Work around the forget-to-reset-the-flag bug.
50148 echo 't clr' >>$CONFIG_STATUS
50149 echo ': clr' >>$CONFIG_STATUS
50150 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50151 echo 'CEOF
50152 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50153 rm -f $tmp/in
50154 mv $tmp/out $tmp/in
50155' >>$CONFIG_STATUS
50156 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50157 rm -f conftest.undefs
50158 mv conftest.tail conftest.undefs
50159done
50160rm -f conftest.undefs
50161
50162cat >>$CONFIG_STATUS <<\_ACEOF
50163 # Let's still pretend it is `configure' which instantiates (i.e., don't
50164 # use $as_me), people would be surprised to read:
50165 # /* config.h. Generated by config.status. */
50166 if test x"$ac_file" = x-; then
50167 echo "/* Generated by configure. */" >$tmp/config.h
50168 else
50169 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50170 fi
50171 cat $tmp/in >>$tmp/config.h
50172 rm -f $tmp/in
50173 if test x"$ac_file" != x-; then
50174 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50175 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50176echo "$as_me: $ac_file is unchanged" >&6;}
50177 else
50178 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50179$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50180 X"$ac_file" : 'X\(//\)[^/]' \| \
50181 X"$ac_file" : 'X\(//\)$' \| \
50182 X"$ac_file" : 'X\(/\)' \| \
50183 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50184echo X"$ac_file" |
50185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50187 /^X\(\/\/\)$/{ s//\1/; q; }
50188 /^X\(\/\).*/{ s//\1/; q; }
50189 s/.*/./; q'`
50190 { if $as_mkdir_p; then
50191 mkdir -p "$ac_dir"
50192 else
50193 as_dir="$ac_dir"
50194 as_dirs=
50195 while test ! -d "$as_dir"; do
50196 as_dirs="$as_dir $as_dirs"
50197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50198$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50199 X"$as_dir" : 'X\(//\)[^/]' \| \
50200 X"$as_dir" : 'X\(//\)$' \| \
50201 X"$as_dir" : 'X\(/\)' \| \
50202 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50203echo X"$as_dir" |
50204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50206 /^X\(\/\/\)$/{ s//\1/; q; }
50207 /^X\(\/\).*/{ s//\1/; q; }
50208 s/.*/./; q'`
50209 done
50210 test ! -n "$as_dirs" || mkdir $as_dirs
50211 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50212echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50213 { (exit 1); exit 1; }; }; }
50214
50215 rm -f $ac_file
50216 mv $tmp/config.h $ac_file
50217 fi
50218 else
50219 cat $tmp/config.h
50220 rm -f $tmp/config.h
50221 fi
50222done
50223_ACEOF
50224cat >>$CONFIG_STATUS <<\_ACEOF
50225
50226#
50227# CONFIG_COMMANDS section.
50228#
50229for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50230 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50231 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50232 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50233$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50234 X"$ac_dest" : 'X\(//\)[^/]' \| \
50235 X"$ac_dest" : 'X\(//\)$' \| \
50236 X"$ac_dest" : 'X\(/\)' \| \
50237 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50238echo X"$ac_dest" |
50239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50241 /^X\(\/\/\)$/{ s//\1/; q; }
50242 /^X\(\/\).*/{ s//\1/; q; }
50243 s/.*/./; q'`
ac1cb8d3
VS
50244 { if $as_mkdir_p; then
50245 mkdir -p "$ac_dir"
50246 else
50247 as_dir="$ac_dir"
50248 as_dirs=
50249 while test ! -d "$as_dir"; do
50250 as_dirs="$as_dir $as_dirs"
50251 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50252$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50253 X"$as_dir" : 'X\(//\)[^/]' \| \
50254 X"$as_dir" : 'X\(//\)$' \| \
50255 X"$as_dir" : 'X\(/\)' \| \
50256 . : '\(.\)' 2>/dev/null ||
50257echo X"$as_dir" |
50258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50259 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50260 /^X\(\/\/\)$/{ s//\1/; q; }
50261 /^X\(\/\).*/{ s//\1/; q; }
50262 s/.*/./; q'`
50263 done
50264 test ! -n "$as_dirs" || mkdir $as_dirs
50265 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50266echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50267 { (exit 1); exit 1; }; }; }
50268
a848cd7e
SC
50269 ac_builddir=.
50270
50271if test "$ac_dir" != .; then
50272 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50273 # A "../" for each directory in $ac_dir_suffix.
50274 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50275else
50276 ac_dir_suffix= ac_top_builddir=
50277fi
50278
50279case $srcdir in
50280 .) # No --srcdir option. We are building in place.
50281 ac_srcdir=.
50282 if test -z "$ac_top_builddir"; then
50283 ac_top_srcdir=.
50284 else
50285 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50286 fi ;;
50287 [\\/]* | ?:[\\/]* ) # Absolute path.
50288 ac_srcdir=$srcdir$ac_dir_suffix;
50289 ac_top_srcdir=$srcdir ;;
50290 *) # Relative path.
50291 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50292 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50293esac
ac1cb8d3
VS
50294
50295# Do not use `cd foo && pwd` to compute absolute paths, because
50296# the directories may not exist.
50297case `pwd` in
50298.) ac_abs_builddir="$ac_dir";;
50299*)
50300 case "$ac_dir" in
50301 .) ac_abs_builddir=`pwd`;;
50302 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50303 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50304 esac;;
50305esac
50306case $ac_abs_builddir in
50307.) ac_abs_top_builddir=${ac_top_builddir}.;;
50308*)
50309 case ${ac_top_builddir}. in
50310 .) ac_abs_top_builddir=$ac_abs_builddir;;
50311 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50312 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50313 esac;;
50314esac
50315case $ac_abs_builddir in
50316.) ac_abs_srcdir=$ac_srcdir;;
50317*)
50318 case $ac_srcdir in
50319 .) ac_abs_srcdir=$ac_abs_builddir;;
50320 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50321 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50322 esac;;
50323esac
50324case $ac_abs_builddir in
50325.) ac_abs_top_srcdir=$ac_top_srcdir;;
50326*)
50327 case $ac_top_srcdir in
50328 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50329 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50330 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50331 esac;;
50332esac
a848cd7e
SC
50333
50334
50335 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50336echo "$as_me: executing $ac_dest commands" >&6;}
50337 case $ac_dest in
5c60e845
MW
50338 rcdefs.h )
50339 mkdir -p $outdir &&
50340 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50341 ;;
ceec2216
RL
50342 wx-config ) rm -f wx-config
50343 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50344 ;;
a848cd7e
SC
50345 esac
50346done
50347_ACEOF
50348
50349cat >>$CONFIG_STATUS <<\_ACEOF
50350
50351{ (exit 0); exit 0; }
50352_ACEOF
50353chmod +x $CONFIG_STATUS
50354ac_clean_files=$ac_clean_files_save
50355
50356
50357# configure is writing to config.log, and then calls config.status.
50358# config.status does its own redirection, appending to config.log.
50359# Unfortunately, on DOS this fails, as config.log is still kept open
50360# by configure, so config.status won't be able to write to it; its
50361# output is simply discarded. So we exec the FD to /dev/null,
50362# effectively closing config.log, so it can be properly (re)opened and
50363# appended to by config.status. When coming back to configure, we
50364# need to make the FD available again.
50365if test "$no_create" != yes; then
50366 ac_cs_success=:
50367 ac_config_status_args=
50368 test "$silent" = yes &&
50369 ac_config_status_args="$ac_config_status_args --quiet"
50370 exec 5>/dev/null
50371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50372 exec 5>>config.log
50373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50374 # would make configure fail if this is the last instruction.
50375 $ac_cs_success || { (exit 1); exit 1; }
50376fi
50377
50378#
50379# CONFIG_SUBDIRS section.
50380#
50381if test "$no_recursion" != yes; then
50382
50383 # Remove --cache-file and --srcdir arguments so they do not pile up.
50384 ac_sub_configure_args=
50385 ac_prev=
50386 for ac_arg in $ac_configure_args; do
50387 if test -n "$ac_prev"; then
50388 ac_prev=
50389 continue
50390 fi
50391 case $ac_arg in
50392 -cache-file | --cache-file | --cache-fil | --cache-fi \
50393 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50394 ac_prev=cache_file ;;
50395 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50396 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50397 | --c=*)
50398 ;;
50399 --config-cache | -C)
50400 ;;
50401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50402 ac_prev=srcdir ;;
50403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50404 ;;
50405 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50406 ac_prev=prefix ;;
50407 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50408 ;;
50409 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50410 esac
50411 done
50412
50413 # Always prepend --prefix to ensure using the same prefix
50414 # in subdir configurations.
50415 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50416
50417 ac_popdir=`pwd`
50418 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50419
50420 # Do not complain, so a configure script can configure whichever
50421 # parts of a large source tree are present.
50422 test -d $srcdir/$ac_dir || continue
50423
50424 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50425echo "$as_me: configuring in $ac_dir" >&6;}
50426 { if $as_mkdir_p; then
50427 mkdir -p "$ac_dir"
50428 else
50429 as_dir="$ac_dir"
50430 as_dirs=
50431 while test ! -d "$as_dir"; do
50432 as_dirs="$as_dir $as_dirs"
50433 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50434$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50435 X"$as_dir" : 'X\(//\)[^/]' \| \
50436 X"$as_dir" : 'X\(//\)$' \| \
50437 X"$as_dir" : 'X\(/\)' \| \
50438 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50439echo X"$as_dir" |
50440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50441 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50442 /^X\(\/\/\)$/{ s//\1/; q; }
50443 /^X\(\/\).*/{ s//\1/; q; }
50444 s/.*/./; q'`
50445 done
50446 test ! -n "$as_dirs" || mkdir $as_dirs
50447 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50448echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50449 { (exit 1); exit 1; }; }; }
50450
50451 ac_builddir=.
50452
50453if test "$ac_dir" != .; then
50454 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50455 # A "../" for each directory in $ac_dir_suffix.
50456 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50457else
50458 ac_dir_suffix= ac_top_builddir=
50459fi
50460
50461case $srcdir in
50462 .) # No --srcdir option. We are building in place.
50463 ac_srcdir=.
50464 if test -z "$ac_top_builddir"; then
50465 ac_top_srcdir=.
50466 else
50467 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50468 fi ;;
50469 [\\/]* | ?:[\\/]* ) # Absolute path.
50470 ac_srcdir=$srcdir$ac_dir_suffix;
50471 ac_top_srcdir=$srcdir ;;
50472 *) # Relative path.
50473 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50474 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50475esac
ac1cb8d3
VS
50476
50477# Do not use `cd foo && pwd` to compute absolute paths, because
50478# the directories may not exist.
50479case `pwd` in
50480.) ac_abs_builddir="$ac_dir";;
50481*)
50482 case "$ac_dir" in
50483 .) ac_abs_builddir=`pwd`;;
50484 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50485 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50486 esac;;
50487esac
50488case $ac_abs_builddir in
50489.) ac_abs_top_builddir=${ac_top_builddir}.;;
50490*)
50491 case ${ac_top_builddir}. in
50492 .) ac_abs_top_builddir=$ac_abs_builddir;;
50493 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50494 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50495 esac;;
50496esac
50497case $ac_abs_builddir in
50498.) ac_abs_srcdir=$ac_srcdir;;
50499*)
50500 case $ac_srcdir in
50501 .) ac_abs_srcdir=$ac_abs_builddir;;
50502 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50503 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50504 esac;;
50505esac
50506case $ac_abs_builddir in
50507.) ac_abs_top_srcdir=$ac_top_srcdir;;
50508*)
50509 case $ac_top_srcdir in
50510 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50511 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50512 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50513 esac;;
50514esac
a848cd7e
SC
50515
50516
50517 cd $ac_dir
50518
50519 # Check for guested configure; otherwise get Cygnus style configure.
50520 if test -f $ac_srcdir/configure.gnu; then
50521 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50522 elif test -f $ac_srcdir/configure; then
50523 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50524 elif test -f $ac_srcdir/configure.in; then
50525 ac_sub_configure=$ac_configure
50526 else
50527 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50528echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50529 ac_sub_configure=
50530 fi
50531
50532 # The recursion is here.
50533 if test -n "$ac_sub_configure"; then
50534 # Make the cache file name correct relative to the subdirectory.
50535 case $cache_file in
50536 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50537 *) # Relative path.
ac1cb8d3 50538 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50539 esac
50540
50541 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50542echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50543 # The eval makes quoting arguments work.
50544 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50545 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50546 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50547echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50548 { (exit 1); exit 1; }; }
50549 fi
50550
2b850ae1 50551 cd $ac_popdir
a848cd7e
SC
50552 done
50553fi
50554
50555
50556echo
77ffb593 50557echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50558echo ""
4d4ff94c 50559echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50560echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50561
77ffb593
JS
50562echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50563echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50564echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50565
77ffb593 50566echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50567echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50568echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50569
77ffb593 50570echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50571echo " jpeg ${wxUSE_LIBJPEG-none}"
50572echo " png ${wxUSE_LIBPNG-none}"
50573echo " regex ${wxUSE_REGEX}"
50574echo " tiff ${wxUSE_LIBTIFF-none}"
50575if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50576echo " xpm ${wxUSE_LIBXPM-none}"
50577fi
50578echo " zlib ${wxUSE_ZLIB}"
50579echo " odbc ${wxUSE_ODBC}"
50580echo " expat ${wxUSE_EXPAT}"
50581echo " libmspack ${wxUSE_LIBMSPACK}"
50582echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50583echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50584echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50585echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50586
50587echo ""
50588