]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed setting selection when there are NULL pages in the tree
[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
5d7b7554 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); } &&
5d7b7554 11708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_compiler_gnu=yes
11721else
11722 echo "$as_me: failed program was:" >&5
11723sed 's/^/| /' conftest.$ac_ext >&5
11724
11725ac_compiler_gnu=no
11726fi
ac1cb8d3 11727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11728ac_cv_c_compiler_gnu=$ac_compiler_gnu
11729
11730fi
11731echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11732echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11733GCC=`test $ac_compiler_gnu = yes && echo yes`
11734ac_test_CFLAGS=${CFLAGS+set}
11735ac_save_CFLAGS=$CFLAGS
8aeeb05c 11736CFLAGS="-g"
a848cd7e
SC
11737echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11738echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11739if test "${ac_cv_prog_cc_g+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741else
11742 cat >conftest.$ac_ext <<_ACEOF
11743/* confdefs.h. */
11744_ACEOF
11745cat confdefs.h >>conftest.$ac_ext
11746cat >>conftest.$ac_ext <<_ACEOF
11747/* end confdefs.h. */
11748
11749int
11750main ()
11751{
11752
11753 ;
11754 return 0;
11755}
11756_ACEOF
11757rm -f conftest.$ac_objext
11758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11759 (eval $ac_compile) 2>conftest.er1
a848cd7e 11760 ac_status=$?
ac1cb8d3
VS
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
a848cd7e
SC
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
5d7b7554 11766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_cv_prog_cc_g=yes
11779else
11780 echo "$as_me: failed program was:" >&5
11781sed 's/^/| /' conftest.$ac_ext >&5
11782
11783ac_cv_prog_cc_g=no
11784fi
ac1cb8d3 11785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11786fi
11787echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11788echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11789if test "$ac_test_CFLAGS" = set; then
11790 CFLAGS=$ac_save_CFLAGS
11791elif test $ac_cv_prog_cc_g = yes; then
11792 if test "$GCC" = yes; then
11793 CFLAGS="-g -O2"
11794 else
11795 CFLAGS="-g"
11796 fi
11797else
11798 if test "$GCC" = yes; then
11799 CFLAGS="-O2"
11800 else
11801 CFLAGS=
11802 fi
11803fi
11804echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11805echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11806if test "${ac_cv_prog_cc_stdc+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 ac_cv_prog_cc_stdc=no
11810ac_save_CC=$CC
11811cat >conftest.$ac_ext <<_ACEOF
11812/* confdefs.h. */
11813_ACEOF
11814cat confdefs.h >>conftest.$ac_ext
11815cat >>conftest.$ac_ext <<_ACEOF
11816/* end confdefs.h. */
11817#include <stdarg.h>
11818#include <stdio.h>
11819#include <sys/types.h>
11820#include <sys/stat.h>
11821/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11822struct buf { int x; };
11823FILE * (*rcsopen) (struct buf *, struct stat *, int);
11824static char *e (p, i)
11825 char **p;
11826 int i;
11827{
11828 return p[i];
11829}
11830static char *f (char * (*g) (char **, int), char **p, ...)
11831{
11832 char *s;
11833 va_list v;
11834 va_start (v,p);
11835 s = g (p, va_arg (v,int));
11836 va_end (v);
11837 return s;
11838}
ac1cb8d3
VS
11839
11840/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11841 function prototypes and stuff, but not '\xHH' hex character constants.
11842 These don't provoke an error unfortunately, instead are silently treated
11843 as 'x'. The following induces an error, until -std1 is added to get
11844 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11845 array size at least. It's necessary to write '\x00'==0 to get something
11846 that's true only with -std1. */
11847int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11848
a848cd7e
SC
11849int test (int i, double x);
11850struct s1 {int (*f) (int a);};
11851struct s2 {int (*f) (double a);};
11852int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11853int argc;
11854char **argv;
11855int
11856main ()
11857{
11858return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11859 ;
11860 return 0;
11861}
11862_ACEOF
11863# Don't try gcc -ansi; that turns off useful extensions and
11864# breaks some systems' header files.
11865# AIX -qlanglvl=ansi
11866# Ultrix and OSF/1 -std1
11867# HP-UX 10.20 and later -Ae
11868# HP-UX older versions -Aa -D_HPUX_SOURCE
11869# SVR4 -Xc -D__EXTENSIONS__
11870for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11871do
11872 CC="$ac_save_CC $ac_arg"
11873 rm -f conftest.$ac_objext
11874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11875 (eval $ac_compile) 2>conftest.er1
a848cd7e 11876 ac_status=$?
ac1cb8d3
VS
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
a848cd7e
SC
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
5d7b7554 11882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; } &&
11888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_cv_prog_cc_stdc=$ac_arg
11895break
11896else
11897 echo "$as_me: failed program was:" >&5
11898sed 's/^/| /' conftest.$ac_ext >&5
11899
11900fi
ac1cb8d3 11901rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11902done
11903rm -f conftest.$ac_ext conftest.$ac_objext
11904CC=$ac_save_CC
11905
11906fi
11907
11908case "x$ac_cv_prog_cc_stdc" in
11909 x|xno)
11910 echo "$as_me:$LINENO: result: none needed" >&5
11911echo "${ECHO_T}none needed" >&6 ;;
11912 *)
11913 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11914echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11915 CC="$CC $ac_cv_prog_cc_stdc" ;;
11916esac
11917
11918# Some people use a C++ compiler to compile C. Since we use `exit',
11919# in C++ we need to declare it. In case someone uses the same compiler
11920# for both compiling C and C++ we need to have the C++ compiler decide
11921# the declaration of exit, since it's the most demanding environment.
11922cat >conftest.$ac_ext <<_ACEOF
11923#ifndef __cplusplus
11924 choke me
11925#endif
11926_ACEOF
11927rm -f conftest.$ac_objext
11928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11929 (eval $ac_compile) 2>conftest.er1
a848cd7e 11930 ac_status=$?
ac1cb8d3
VS
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
a848cd7e
SC
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
5d7b7554 11936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 for ac_declaration in \
ac1cb8d3 11949 '' \
a848cd7e
SC
11950 'extern "C" void std::exit (int) throw (); using std::exit;' \
11951 'extern "C" void std::exit (int); using std::exit;' \
11952 'extern "C" void exit (int) throw ();' \
11953 'extern "C" void exit (int);' \
11954 'void exit (int);'
11955do
11956 cat >conftest.$ac_ext <<_ACEOF
11957/* confdefs.h. */
11958_ACEOF
11959cat confdefs.h >>conftest.$ac_ext
11960cat >>conftest.$ac_ext <<_ACEOF
11961/* end confdefs.h. */
de59c161 11962$ac_declaration
ac1cb8d3 11963#include <stdlib.h>
a848cd7e
SC
11964int
11965main ()
11966{
11967exit (42);
11968 ;
11969 return 0;
11970}
11971_ACEOF
11972rm -f conftest.$ac_objext
11973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11974 (eval $ac_compile) 2>conftest.er1
a848cd7e 11975 ac_status=$?
ac1cb8d3
VS
11976 grep -v '^ *+' conftest.er1 >conftest.err
11977 rm -f conftest.er1
11978 cat conftest.err >&5
a848cd7e
SC
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
5d7b7554 11981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; } &&
11987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 :
11994else
11995 echo "$as_me: failed program was:" >&5
11996sed 's/^/| /' conftest.$ac_ext >&5
11997
11998continue
11999fi
ac1cb8d3 12000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12001 cat >conftest.$ac_ext <<_ACEOF
12002/* confdefs.h. */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h. */
12007$ac_declaration
12008int
12009main ()
12010{
12011exit (42);
12012 ;
12013 return 0;
12014}
12015_ACEOF
12016rm -f conftest.$ac_objext
12017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12018 (eval $ac_compile) 2>conftest.er1
a848cd7e 12019 ac_status=$?
ac1cb8d3
VS
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
a848cd7e
SC
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
5d7b7554 12025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; } &&
12031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
12037 break
12038else
12039 echo "$as_me: failed program was:" >&5
12040sed 's/^/| /' conftest.$ac_ext >&5
12041
12042fi
ac1cb8d3 12043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12044done
12045rm -f conftest*
12046if test -n "$ac_declaration"; then
12047 echo '#ifdef __cplusplus' >>confdefs.h
12048 echo $ac_declaration >>confdefs.h
12049 echo '#endif' >>confdefs.h
12050fi
12051
12052else
12053 echo "$as_me: failed program was:" >&5
12054sed 's/^/| /' conftest.$ac_ext >&5
12055
12056fi
ac1cb8d3 12057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12058ac_ext=c
12059ac_cpp='$CPP $CPPFLAGS'
12060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12062ac_compiler_gnu=$ac_cv_c_compiler_gnu
12063
ab0ad5f1
VZ
12064
12065
12066 ac_ext=c
12067ac_cpp='$CPP $CPPFLAGS'
12068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12070ac_compiler_gnu=$ac_cv_c_compiler_gnu
12071
12072 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12073echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12074if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076else
12077 cat >conftest.$ac_ext <<_ACEOF
12078/* confdefs.h. */
12079_ACEOF
12080cat confdefs.h >>conftest.$ac_ext
12081cat >>conftest.$ac_ext <<_ACEOF
12082/* end confdefs.h. */
12083
12084int
12085main ()
12086{
12087
12088 #ifndef __INTEL_COMPILER
12089 choke me
12090 #endif
12091
12092 ;
12093 return 0;
12094}
12095_ACEOF
12096rm -f conftest.$ac_objext
12097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12098 (eval $ac_compile) 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
5d7b7554 12105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest.$ac_objext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12118else
12119 echo "$as_me: failed program was:" >&5
12120sed 's/^/| /' conftest.$ac_ext >&5
12121
12122bakefile_cv_c_compiler___INTEL_COMPILER=no
12123
12124fi
12125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12126
12127
12128fi
12129echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12130echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12131 ac_ext=c
12132ac_cpp='$CPP $CPPFLAGS'
12133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12135ac_compiler_gnu=$ac_cv_c_compiler_gnu
12136
12137 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12138 :; INTELCC=yes
12139 else
12140 :;
12141 fi
12142
12143
12144 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12145 if test "xCC" = "xC"; then
12146 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12147echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12148if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150else
12151 cat >conftest.$ac_ext <<_ACEOF
12152/* confdefs.h. */
12153_ACEOF
12154cat confdefs.h >>conftest.$ac_ext
12155cat >>conftest.$ac_ext <<_ACEOF
12156/* end confdefs.h. */
12157
12158int
12159main ()
12160{
12161
12162 ;
12163 return 0;
12164}
12165_ACEOF
12166rm -f conftest.$ac_objext conftest.$ac_ext.o
12167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12168 (eval $ac_compile) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; then
12172 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12173 case $ac_file in
12174 conftest.$ac_ext.o)
0093c2fc 12175 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12176 ;;
12177 *)
12178 ;;
12179 esac
12180done
12181else
12182 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12183See \`config.log' for more details." >&5
12184echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12185See \`config.log' for more details." >&2;}
12186 { (exit 1); exit 1; }; }
12187
12188fi
12189
12190rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12191
12192fi
0093c2fc
VZ
12193echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12194echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12195if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12196 if test "c" = "c"; then
0093c2fc 12197 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12198 fi
12199 if test "c" = "cxx"; then
0093c2fc 12200 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12201 fi
12202fi
12203
0093c2fc 12204 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12205 unset ac_cv_prog_cc_g
12206 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12207ac_save_CFLAGS=$CFLAGS
8aeeb05c 12208CFLAGS="-g"
480ccd21
DE
12209echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12210echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12211if test "${ac_cv_prog_cc_g+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213else
12214 cat >conftest.$ac_ext <<_ACEOF
12215/* confdefs.h. */
12216_ACEOF
12217cat confdefs.h >>conftest.$ac_ext
12218cat >>conftest.$ac_ext <<_ACEOF
12219/* end confdefs.h. */
12220
12221int
12222main ()
12223{
12224
12225 ;
12226 return 0;
12227}
12228_ACEOF
12229rm -f conftest.$ac_objext
12230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12231 (eval $ac_compile) 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
5d7b7554 12238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; } &&
12244 { ac_try='test -s conftest.$ac_objext'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 ac_cv_prog_cc_g=yes
12251else
12252 echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255ac_cv_prog_cc_g=no
12256fi
12257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12258fi
12259echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12260echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12261if test "$ac_test_CFLAGS" = set; then
12262 CFLAGS=$ac_save_CFLAGS
12263elif test $ac_cv_prog_cc_g = yes; then
12264 if test "$GCC" = yes; then
12265 CFLAGS="-g -O2"
12266 else
12267 CFLAGS="-g"
12268 fi
12269else
12270 if test "$GCC" = yes; then
12271 CFLAGS="-O2"
12272 else
12273 CFLAGS=
12274 fi
12275fi
3006edc0 12276 fi
ab0ad5f1 12277 fi
3006edc0
VZ
12278
12279 case `uname -s` in
12280 AIX*)
12281 ac_ext=c
12282ac_cpp='$CPP $CPPFLAGS'
12283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12285ac_compiler_gnu=$ac_cv_c_compiler_gnu
12286
12287echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12288echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12289if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12291else
12292 cat >conftest.$ac_ext <<_ACEOF
12293/* confdefs.h. */
12294_ACEOF
12295cat confdefs.h >>conftest.$ac_ext
12296cat >>conftest.$ac_ext <<_ACEOF
12297/* end confdefs.h. */
12298
12299int
12300main ()
12301{
12302#ifndef __xlC__
12303 choke me
12304#endif
12305
12306 ;
12307 return 0;
12308}
12309_ACEOF
12310rm -f conftest.$ac_objext
12311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>conftest.er1
12313 ac_status=$?
12314 grep -v '^ *+' conftest.er1 >conftest.err
12315 rm -f conftest.er1
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
5d7b7554 12319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; } &&
12325 { ac_try='test -s conftest.$ac_objext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
0093c2fc 12331 bakefile_compiler_xlc=yes
3006edc0
VZ
12332else
12333 echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
0093c2fc 12336bakefile_compiler_xlc=no
3006edc0
VZ
12337fi
12338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12339 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12340
12341fi
0093c2fc
VZ
12342echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12343echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12344
0093c2fc 12345XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12346ac_ext=c
12347ac_cpp='$CPP $CPPFLAGS'
12348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350ac_compiler_gnu=$ac_cv_c_compiler_gnu
12351
12352
12353 ;;
12354
12355 Darwin)
12356 ac_ext=c
95986553
DE
12357ac_cpp='$CPP $CPPFLAGS'
12358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12360ac_compiler_gnu=$ac_cv_c_compiler_gnu
12361
12362echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12363echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12364if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12366else
12367 cat >conftest.$ac_ext <<_ACEOF
12368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
12373
12374int
12375main ()
12376{
12377#ifndef __MWERKS__
12378 choke me
12379#endif
12380
12381 ;
12382 return 0;
12383}
12384_ACEOF
12385rm -f conftest.$ac_objext
12386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387 (eval $ac_compile) 2>conftest.er1
12388 ac_status=$?
12389 grep -v '^ *+' conftest.er1 >conftest.err
12390 rm -f conftest.er1
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
5d7b7554 12394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest.$ac_objext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 bakefile_compiler_mwerks=yes
12407else
12408 echo "$as_me: failed program was:" >&5
12409sed 's/^/| /' conftest.$ac_ext >&5
12410
12411bakefile_compiler_mwerks=no
12412fi
12413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12414 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12415
12416fi
12417echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12418echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12419
0e6fa1d9 12420MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12421ac_ext=c
12422ac_cpp='$CPP $CPPFLAGS'
12423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12425ac_compiler_gnu=$ac_cv_c_compiler_gnu
12426
12427
3006edc0 12428 ac_ext=c
9273ffba
DE
12429ac_cpp='$CPP $CPPFLAGS'
12430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12432ac_compiler_gnu=$ac_cv_c_compiler_gnu
12433
12434echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12435echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12436if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438else
12439 cat >conftest.$ac_ext <<_ACEOF
12440/* confdefs.h. */
12441_ACEOF
12442cat confdefs.h >>conftest.$ac_ext
12443cat >>conftest.$ac_ext <<_ACEOF
12444/* end confdefs.h. */
12445
12446int
12447main ()
12448{
12449#ifndef __xlC__
12450 choke me
12451#endif
12452
12453 ;
12454 return 0;
12455}
12456_ACEOF
12457rm -f conftest.$ac_objext
12458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
5d7b7554 12466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest.$ac_objext'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; }; then
0093c2fc 12478 bakefile_compiler_xlc=yes
9273ffba
DE
12479else
12480 echo "$as_me: failed program was:" >&5
12481sed 's/^/| /' conftest.$ac_ext >&5
12482
0093c2fc 12483bakefile_compiler_xlc=no
9273ffba
DE
12484fi
12485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12486 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12487
12488fi
0093c2fc
VZ
12489echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12490echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12491
0093c2fc 12492XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12493ac_ext=c
12494ac_cpp='$CPP $CPPFLAGS'
12495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12497ac_compiler_gnu=$ac_cv_c_compiler_gnu
12498
12499
3006edc0
VZ
12500 ;;
12501
12502 IRIX*)
a848cd7e 12503
6dcfc289 12504
0ad5d837
VZ
12505 ac_ext=c
12506ac_cpp='$CPP $CPPFLAGS'
12507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12509ac_compiler_gnu=$ac_cv_c_compiler_gnu
12510
12511 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12512echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12513if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516 cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522
12523int
12524main ()
12525{
12526
12527 #ifndef _SGI_COMPILER_VERSION
12528 choke me
12529 #endif
12530
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535rm -f conftest.$ac_objext
12536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
5d7b7554 12544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest.$ac_objext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12557else
12558 echo "$as_me: failed program was:" >&5
12559sed 's/^/| /' conftest.$ac_ext >&5
12560
12561bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12562
12563fi
12564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12565
12566
12567fi
12568echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12569echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12570 ac_ext=c
12571ac_cpp='$CPP $CPPFLAGS'
12572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575
12576 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12577 :; SGICC=yes
12578 else
12579 :;
12580 fi
12581
12582
3006edc0
VZ
12583 ;;
12584
0093c2fc 12585 HP-UX*)
3006edc0
VZ
12586
12587
12588 ac_ext=c
12589ac_cpp='$CPP $CPPFLAGS'
12590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12592ac_compiler_gnu=$ac_cv_c_compiler_gnu
12593
0093c2fc
VZ
12594 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12595echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12596if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598else
12599 cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h. */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h. */
12605
12606int
12607main ()
12608{
12609
0093c2fc 12610 #ifndef __HP_cc
3006edc0
VZ
12611 choke me
12612 #endif
12613
12614 ;
12615 return 0;
12616}
12617_ACEOF
12618rm -f conftest.$ac_objext
12619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620 (eval $ac_compile) 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
5d7b7554 12627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; } &&
12633 { ac_try='test -s conftest.$ac_objext'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }; then
0093c2fc 12639 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12640else
12641 echo "$as_me: failed program was:" >&5
12642sed 's/^/| /' conftest.$ac_ext >&5
12643
0093c2fc 12644bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12645
12646fi
12647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12648
12649
12650fi
0093c2fc
VZ
12651echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12652echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12653 ac_ext=c
12654ac_cpp='$CPP $CPPFLAGS'
12655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12657ac_compiler_gnu=$ac_cv_c_compiler_gnu
12658
0093c2fc
VZ
12659 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12660 :; HPCC=yes
a1aa0349
VZ
12661 else
12662 :;
12663 fi
12664
12665
12666 ;;
12667
0093c2fc 12668 OSF1)
a1aa0349
VZ
12669
12670
12671 ac_ext=c
12672ac_cpp='$CPP $CPPFLAGS'
12673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675ac_compiler_gnu=$ac_cv_c_compiler_gnu
12676
0093c2fc
VZ
12677 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12678echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12679if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681else
12682 cat >conftest.$ac_ext <<_ACEOF
12683/* confdefs.h. */
12684_ACEOF
12685cat confdefs.h >>conftest.$ac_ext
12686cat >>conftest.$ac_ext <<_ACEOF
12687/* end confdefs.h. */
12688
12689int
12690main ()
12691{
12692
0093c2fc 12693 #ifndef __DECC
a1aa0349
VZ
12694 choke me
12695 #endif
12696
12697 ;
12698 return 0;
12699}
12700_ACEOF
12701rm -f conftest.$ac_objext
12702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
5d7b7554 12710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; } &&
12716 { ac_try='test -s conftest.$ac_objext'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
0093c2fc 12722 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12723else
12724 echo "$as_me: failed program was:" >&5
12725sed 's/^/| /' conftest.$ac_ext >&5
12726
0093c2fc 12727bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12728
12729fi
12730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12731
12732
12733fi
0093c2fc
VZ
12734echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12735echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12736 ac_ext=c
12737ac_cpp='$CPP $CPPFLAGS'
12738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740ac_compiler_gnu=$ac_cv_c_compiler_gnu
12741
0093c2fc
VZ
12742 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12743 :; COMPAQCC=yes
12744 else
12745 :;
12746 fi
12747
12748
12749 ;;
12750
12751 SunOS)
12752
12753
12754 ac_ext=c
12755ac_cpp='$CPP $CPPFLAGS'
12756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12758ac_compiler_gnu=$ac_cv_c_compiler_gnu
12759
12760 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12761echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12762if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764else
12765 cat >conftest.$ac_ext <<_ACEOF
12766/* confdefs.h. */
12767_ACEOF
12768cat confdefs.h >>conftest.$ac_ext
12769cat >>conftest.$ac_ext <<_ACEOF
12770/* end confdefs.h. */
12771
12772int
12773main ()
12774{
12775
12776 #ifndef __SUNPRO_C
12777 choke me
12778 #endif
12779
12780 ;
12781 return 0;
12782}
12783_ACEOF
12784rm -f conftest.$ac_objext
12785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786 (eval $ac_compile) 2>conftest.er1
12787 ac_status=$?
12788 grep -v '^ *+' conftest.er1 >conftest.err
12789 rm -f conftest.er1
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
5d7b7554 12793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; } &&
12799 { ac_try='test -s conftest.$ac_objext'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 bakefile_cv_c_compiler___SUNPRO_C=yes
12806else
12807 echo "$as_me: failed program was:" >&5
12808sed 's/^/| /' conftest.$ac_ext >&5
12809
12810bakefile_cv_c_compiler___SUNPRO_C=no
12811
12812fi
12813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12814
12815
12816fi
12817echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12818echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12819 ac_ext=c
12820ac_cpp='$CPP $CPPFLAGS'
12821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823ac_compiler_gnu=$ac_cv_c_compiler_gnu
12824
12825 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12826 :; SUNCC=yes
3006edc0
VZ
12827 else
12828 :;
12829 fi
12830
12831
12832 ;;
12833 esac
ab0ad5f1 12834 fi
a9e5b1f0
MW
12835
12836
3006edc0 12837
a848cd7e
SC
12838ac_ext=c
12839ac_cpp='$CPP $CPPFLAGS'
12840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842ac_compiler_gnu=$ac_cv_c_compiler_gnu
12843echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12844echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12845# On Suns, sometimes $CPP names a directory.
12846if test -n "$CPP" && test -d "$CPP"; then
12847 CPP=
12848fi
12849if test -z "$CPP"; then
12850 if test "${ac_cv_prog_CPP+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852else
12853 # Double quotes because CPP needs to be expanded
12854 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12855 do
12856 ac_preproc_ok=false
12857for ac_c_preproc_warn_flag in '' yes
12858do
12859 # Use a header file that comes with gcc, so configuring glibc
12860 # with a fresh cross-compiler works.
12861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12862 # <limits.h> exists even on freestanding compilers.
12863 # On the NeXT, cc -E runs the code through the compiler's parser,
12864 # not just through cpp. "Syntax error" is here to catch this case.
12865 cat >conftest.$ac_ext <<_ACEOF
12866/* confdefs.h. */
12867_ACEOF
12868cat confdefs.h >>conftest.$ac_ext
12869cat >>conftest.$ac_ext <<_ACEOF
12870/* end confdefs.h. */
12871#ifdef __STDC__
12872# include <limits.h>
12873#else
12874# include <assert.h>
12875#endif
ac1cb8d3 12876 Syntax error
a848cd7e
SC
12877_ACEOF
12878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } >/dev/null; then
12886 if test -s conftest.err; then
12887 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12889 else
12890 ac_cpp_err=
12891 fi
12892else
12893 ac_cpp_err=yes
12894fi
12895if test -z "$ac_cpp_err"; then
12896 :
12897else
12898 echo "$as_me: failed program was:" >&5
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 # Broken: fails on valid input.
12902continue
12903fi
12904rm -f conftest.err conftest.$ac_ext
12905
12906 # OK, works on sane cases. Now check whether non-existent headers
12907 # can be detected and how.
12908 cat >conftest.$ac_ext <<_ACEOF
12909/* confdefs.h. */
12910_ACEOF
12911cat confdefs.h >>conftest.$ac_ext
12912cat >>conftest.$ac_ext <<_ACEOF
12913/* end confdefs.h. */
12914#include <ac_nonexistent.h>
12915_ACEOF
12916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } >/dev/null; then
12924 if test -s conftest.err; then
12925 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12927 else
12928 ac_cpp_err=
12929 fi
12930else
12931 ac_cpp_err=yes
12932fi
12933if test -z "$ac_cpp_err"; then
12934 # Broken: success on invalid input.
12935continue
12936else
12937 echo "$as_me: failed program was:" >&5
12938sed 's/^/| /' conftest.$ac_ext >&5
12939
12940 # Passes both tests.
12941ac_preproc_ok=:
12942break
12943fi
12944rm -f conftest.err conftest.$ac_ext
12945
12946done
12947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12948rm -f conftest.err conftest.$ac_ext
12949if $ac_preproc_ok; then
12950 break
12951fi
12952
12953 done
12954 ac_cv_prog_CPP=$CPP
12955
12956fi
12957 CPP=$ac_cv_prog_CPP
12958else
12959 ac_cv_prog_CPP=$CPP
12960fi
12961echo "$as_me:$LINENO: result: $CPP" >&5
12962echo "${ECHO_T}$CPP" >&6
12963ac_preproc_ok=false
12964for ac_c_preproc_warn_flag in '' yes
12965do
12966 # Use a header file that comes with gcc, so configuring glibc
12967 # with a fresh cross-compiler works.
12968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12969 # <limits.h> exists even on freestanding compilers.
12970 # On the NeXT, cc -E runs the code through the compiler's parser,
12971 # not just through cpp. "Syntax error" is here to catch this case.
12972 cat >conftest.$ac_ext <<_ACEOF
12973/* confdefs.h. */
12974_ACEOF
12975cat confdefs.h >>conftest.$ac_ext
12976cat >>conftest.$ac_ext <<_ACEOF
12977/* end confdefs.h. */
12978#ifdef __STDC__
12979# include <limits.h>
12980#else
12981# include <assert.h>
12982#endif
ac1cb8d3 12983 Syntax error
a848cd7e
SC
12984_ACEOF
12985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } >/dev/null; then
12993 if test -s conftest.err; then
12994 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12996 else
12997 ac_cpp_err=
12998 fi
12999else
13000 ac_cpp_err=yes
13001fi
13002if test -z "$ac_cpp_err"; then
13003 :
13004else
13005 echo "$as_me: failed program was:" >&5
13006sed 's/^/| /' conftest.$ac_ext >&5
13007
13008 # Broken: fails on valid input.
13009continue
13010fi
13011rm -f conftest.err conftest.$ac_ext
13012
13013 # OK, works on sane cases. Now check whether non-existent headers
13014 # can be detected and how.
13015 cat >conftest.$ac_ext <<_ACEOF
13016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
13020/* end confdefs.h. */
13021#include <ac_nonexistent.h>
13022_ACEOF
13023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } >/dev/null; then
13031 if test -s conftest.err; then
13032 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13034 else
13035 ac_cpp_err=
13036 fi
13037else
13038 ac_cpp_err=yes
13039fi
13040if test -z "$ac_cpp_err"; then
13041 # Broken: success on invalid input.
13042continue
13043else
13044 echo "$as_me: failed program was:" >&5
13045sed 's/^/| /' conftest.$ac_ext >&5
13046
13047 # Passes both tests.
13048ac_preproc_ok=:
13049break
13050fi
13051rm -f conftest.err conftest.$ac_ext
13052
13053done
13054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13055rm -f conftest.err conftest.$ac_ext
13056if $ac_preproc_ok; then
13057 :
13058else
13059 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13060See \`config.log' for more details." >&5
13061echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13062See \`config.log' for more details." >&2;}
13063 { (exit 1); exit 1; }; }
13064fi
13065
13066ac_ext=c
13067ac_cpp='$CPP $CPPFLAGS'
13068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13070ac_compiler_gnu=$ac_cv_c_compiler_gnu
13071
13072
13073echo "$as_me:$LINENO: checking for egrep" >&5
13074echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13075if test "${ac_cv_prog_egrep+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077else
13078 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13079 then ac_cv_prog_egrep='grep -E'
13080 else ac_cv_prog_egrep='egrep'
13081 fi
13082fi
13083echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13084echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13085 EGREP=$ac_cv_prog_egrep
13086
13087
13088if test $ac_cv_c_compiler_gnu = yes; then
13089 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13090echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13091if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093else
13094 ac_pattern="Autoconf.*'x'"
13095 cat >conftest.$ac_ext <<_ACEOF
13096/* confdefs.h. */
13097_ACEOF
13098cat confdefs.h >>conftest.$ac_ext
13099cat >>conftest.$ac_ext <<_ACEOF
13100/* end confdefs.h. */
13101#include <sgtty.h>
13102Autoconf TIOCGETP
13103_ACEOF
13104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13105 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13106 ac_cv_prog_gcc_traditional=yes
13107else
13108 ac_cv_prog_gcc_traditional=no
13109fi
13110rm -f conftest*
13111
13112
13113 if test $ac_cv_prog_gcc_traditional = no; then
13114 cat >conftest.$ac_ext <<_ACEOF
13115/* confdefs.h. */
13116_ACEOF
13117cat confdefs.h >>conftest.$ac_ext
13118cat >>conftest.$ac_ext <<_ACEOF
13119/* end confdefs.h. */
13120#include <termio.h>
13121Autoconf TCGETA
13122_ACEOF
13123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13124 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13125 ac_cv_prog_gcc_traditional=yes
13126fi
13127rm -f conftest*
13128
13129 fi
13130fi
13131echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13132echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13133 if test $ac_cv_prog_gcc_traditional = yes; then
13134 CC="$CC -traditional"
13135 fi
13136fi
13137
13138
a848cd7e
SC
13139ac_ext=cc
13140ac_cpp='$CXXCPP $CPPFLAGS'
13141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13144
13145
13146CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13147
13148
3006edc0 13149
6dcfc289 13150 ac_ext=cc
a848cd7e
SC
13151ac_cpp='$CXXCPP $CPPFLAGS'
13152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13155if test -n "$ac_tool_prefix"; then
13156 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13157 do
13158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13160echo "$as_me:$LINENO: checking for $ac_word" >&5
13161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13162if test "${ac_cv_prog_CXX+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164else
13165 if test -n "$CXX"; then
13166 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13167else
13168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $PATH
13170do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13175 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13178 fi
13179done
13180done
13181
13182fi
13183fi
13184CXX=$ac_cv_prog_CXX
13185if test -n "$CXX"; then
13186 echo "$as_me:$LINENO: result: $CXX" >&5
13187echo "${ECHO_T}$CXX" >&6
13188else
13189 echo "$as_me:$LINENO: result: no" >&5
13190echo "${ECHO_T}no" >&6
13191fi
13192
13193 test -n "$CXX" && break
13194 done
13195fi
13196if test -z "$CXX"; then
13197 ac_ct_CXX=$CXX
13198 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13199do
13200 # Extract the first word of "$ac_prog", so it can be a program name with args.
13201set dummy $ac_prog; ac_word=$2
13202echo "$as_me:$LINENO: checking for $ac_word" >&5
13203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13204if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207 if test -n "$ac_ct_CXX"; then
13208 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13209else
13210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211for as_dir in $PATH
13212do
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13217 ac_cv_prog_ac_ct_CXX="$ac_prog"
13218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13220 fi
13221done
13222done
13223
13224fi
13225fi
13226ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13227if test -n "$ac_ct_CXX"; then
13228 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13229echo "${ECHO_T}$ac_ct_CXX" >&6
13230else
13231 echo "$as_me:$LINENO: result: no" >&5
13232echo "${ECHO_T}no" >&6
13233fi
13234
13235 test -n "$ac_ct_CXX" && break
13236done
13237test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13238
13239 CXX=$ac_ct_CXX
13240fi
13241
13242
13243# Provide some information about the compiler.
13244echo "$as_me:$LINENO:" \
13245 "checking for C++ compiler version" >&5
13246ac_compiler=`set X $ac_compile; echo $2`
13247{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13248 (eval $ac_compiler --version </dev/null >&5) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }
13252{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13253 (eval $ac_compiler -v </dev/null >&5) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }
13257{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13258 (eval $ac_compiler -V </dev/null >&5) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }
13262
13263echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13264echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13265if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13267else
13268 cat >conftest.$ac_ext <<_ACEOF
13269/* confdefs.h. */
13270_ACEOF
13271cat confdefs.h >>conftest.$ac_ext
13272cat >>conftest.$ac_ext <<_ACEOF
13273/* end confdefs.h. */
13274
13275int
13276main ()
13277{
13278#ifndef __GNUC__
13279 choke me
13280#endif
13281
13282 ;
13283 return 0;
13284}
13285_ACEOF
13286rm -f conftest.$ac_objext
13287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13288 (eval $ac_compile) 2>conftest.er1
a848cd7e 13289 ac_status=$?
ac1cb8d3
VS
13290 grep -v '^ *+' conftest.er1 >conftest.err
13291 rm -f conftest.er1
13292 cat conftest.err >&5
a848cd7e
SC
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
5d7b7554 13295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_compiler_gnu=yes
13308else
13309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312ac_compiler_gnu=no
13313fi
ac1cb8d3 13314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13315ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13316
13317fi
13318echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13319echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13320GXX=`test $ac_compiler_gnu = yes && echo yes`
13321ac_test_CXXFLAGS=${CXXFLAGS+set}
13322ac_save_CXXFLAGS=$CXXFLAGS
13323CXXFLAGS="-g"
13324echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13325echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13326if test "${ac_cv_prog_cxx_g+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13328else
13329 cat >conftest.$ac_ext <<_ACEOF
13330/* confdefs.h. */
13331_ACEOF
13332cat confdefs.h >>conftest.$ac_ext
13333cat >>conftest.$ac_ext <<_ACEOF
13334/* end confdefs.h. */
13335
13336int
13337main ()
13338{
13339
13340 ;
13341 return 0;
13342}
13343_ACEOF
13344rm -f conftest.$ac_objext
13345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13346 (eval $ac_compile) 2>conftest.er1
a848cd7e 13347 ac_status=$?
ac1cb8d3
VS
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
a848cd7e
SC
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
5d7b7554 13353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355 (eval $ac_try) 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; } &&
13359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
13365 ac_cv_prog_cxx_g=yes
13366else
13367 echo "$as_me: failed program was:" >&5
13368sed 's/^/| /' conftest.$ac_ext >&5
13369
13370ac_cv_prog_cxx_g=no
13371fi
ac1cb8d3 13372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13373fi
13374echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13375echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13376if test "$ac_test_CXXFLAGS" = set; then
13377 CXXFLAGS=$ac_save_CXXFLAGS
13378elif test $ac_cv_prog_cxx_g = yes; then
13379 if test "$GXX" = yes; then
8aeeb05c 13380 CXXFLAGS="-g -O2"
a848cd7e 13381 else
8aeeb05c 13382 CXXFLAGS="-g"
a848cd7e
SC
13383 fi
13384else
13385 if test "$GXX" = yes; then
13386 CXXFLAGS="-O2"
13387 else
13388 CXXFLAGS=
13389 fi
13390fi
13391for ac_declaration in \
ac1cb8d3 13392 '' \
a848cd7e
SC
13393 'extern "C" void std::exit (int) throw (); using std::exit;' \
13394 'extern "C" void std::exit (int); using std::exit;' \
13395 'extern "C" void exit (int) throw ();' \
13396 'extern "C" void exit (int);' \
13397 'void exit (int);'
13398do
13399 cat >conftest.$ac_ext <<_ACEOF
13400/* confdefs.h. */
13401_ACEOF
13402cat confdefs.h >>conftest.$ac_ext
13403cat >>conftest.$ac_ext <<_ACEOF
13404/* end confdefs.h. */
de59c161 13405$ac_declaration
ac1cb8d3 13406#include <stdlib.h>
a848cd7e
SC
13407int
13408main ()
13409{
13410exit (42);
13411 ;
13412 return 0;
13413}
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13417 (eval $ac_compile) 2>conftest.er1
a848cd7e 13418 ac_status=$?
ac1cb8d3
VS
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
a848cd7e
SC
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
5d7b7554 13424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 :
13437else
13438 echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
13441continue
13442fi
ac1cb8d3 13443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13444 cat >conftest.$ac_ext <<_ACEOF
13445/* confdefs.h. */
13446_ACEOF
13447cat confdefs.h >>conftest.$ac_ext
13448cat >>conftest.$ac_ext <<_ACEOF
13449/* end confdefs.h. */
13450$ac_declaration
13451int
13452main ()
13453{
13454exit (42);
13455 ;
13456 return 0;
13457}
13458_ACEOF
13459rm -f conftest.$ac_objext
13460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13461 (eval $ac_compile) 2>conftest.er1
a848cd7e 13462 ac_status=$?
ac1cb8d3
VS
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
a848cd7e
SC
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
5d7b7554 13468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 break
13481else
13482 echo "$as_me: failed program was:" >&5
13483sed 's/^/| /' conftest.$ac_ext >&5
13484
13485fi
ac1cb8d3 13486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13487done
13488rm -f conftest*
13489if test -n "$ac_declaration"; then
13490 echo '#ifdef __cplusplus' >>confdefs.h
13491 echo $ac_declaration >>confdefs.h
13492 echo '#endif' >>confdefs.h
13493fi
13494
13495ac_ext=cc
13496ac_cpp='$CXXCPP $CPPFLAGS'
13497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13500
ab0ad5f1
VZ
13501
13502
13503 ac_ext=cc
13504ac_cpp='$CXXCPP $CPPFLAGS'
13505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13508
13509 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13510echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13511if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13513else
13514 cat >conftest.$ac_ext <<_ACEOF
13515/* confdefs.h. */
13516_ACEOF
13517cat confdefs.h >>conftest.$ac_ext
13518cat >>conftest.$ac_ext <<_ACEOF
13519/* end confdefs.h. */
13520
13521int
13522main ()
13523{
13524
13525 #ifndef __INTEL_COMPILER
13526 choke me
13527 #endif
13528
13529 ;
13530 return 0;
13531}
13532_ACEOF
13533rm -f conftest.$ac_objext
13534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13535 (eval $ac_compile) 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
5d7b7554 13542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest.$ac_objext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13555else
13556 echo "$as_me: failed program was:" >&5
13557sed 's/^/| /' conftest.$ac_ext >&5
13558
13559bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13560
13561fi
13562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13563
13564
13565fi
13566echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13567echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13568 ac_ext=cc
13569ac_cpp='$CXXCPP $CPPFLAGS'
13570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13573
13574 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13575 :; INTELCXX=yes
13576 else
13577 :;
13578 fi
13579
13580
3006edc0
VZ
13581 if test "x$GCXX" != "xyes"; then
13582 if test "xCXX" = "xC"; then
13583 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13584echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13585if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587else
13588 cat >conftest.$ac_ext <<_ACEOF
13589/* confdefs.h. */
13590_ACEOF
13591cat confdefs.h >>conftest.$ac_ext
13592cat >>conftest.$ac_ext <<_ACEOF
13593/* end confdefs.h. */
13594
13595int
13596main ()
13597{
13598
13599 ;
13600 return 0;
13601}
13602_ACEOF
13603rm -f conftest.$ac_objext conftest.$ac_ext.o
13604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; then
13609 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13610 case $ac_file in
13611 conftest.$ac_ext.o)
0093c2fc 13612 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13613 ;;
13614 *)
13615 ;;
13616 esac
13617done
13618else
13619 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13620See \`config.log' for more details." >&5
13621echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13622See \`config.log' for more details." >&2;}
13623 { (exit 1); exit 1; }; }
13624
13625fi
13626
13627rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13628
13629fi
0093c2fc
VZ
13630echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13631echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13632if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13633 if test "cxx" = "c"; then
0093c2fc 13634 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13635 fi
13636 if test "cxx" = "cxx"; then
0093c2fc 13637 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13638 fi
13639fi
13640
0093c2fc 13641 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13642 unset ac_cv_prog_cc_g
13643 ac_test_CFLAGS=${CFLAGS+set}
13644ac_save_CFLAGS=$CFLAGS
8aeeb05c 13645CFLAGS="-g"
3006edc0
VZ
13646echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13647echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13648if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13650else
13651 cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h. */
13657
13658int
13659main ()
13660{
13661
13662 ;
13663 return 0;
13664}
13665_ACEOF
13666rm -f conftest.$ac_objext
13667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
5d7b7554 13675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest.$ac_objext'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
3006edc0 13687 ac_cv_prog_cc_g=yes
480ccd21
DE
13688else
13689 echo "$as_me: failed program was:" >&5
13690sed 's/^/| /' conftest.$ac_ext >&5
13691
3006edc0 13692ac_cv_prog_cc_g=no
480ccd21
DE
13693fi
13694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13695fi
3006edc0
VZ
13696echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13697echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13698if test "$ac_test_CFLAGS" = set; then
13699 CFLAGS=$ac_save_CFLAGS
13700elif test $ac_cv_prog_cc_g = yes; then
13701 if test "$GCC" = yes; then
13702 CFLAGS="-g -O2"
480ccd21 13703 else
3006edc0 13704 CFLAGS="-g"
480ccd21
DE
13705 fi
13706else
3006edc0
VZ
13707 if test "$GCC" = yes; then
13708 CFLAGS="-O2"
480ccd21 13709 else
3006edc0 13710 CFLAGS=
480ccd21
DE
13711 fi
13712fi
3006edc0 13713 fi
ab0ad5f1 13714 fi
3006edc0
VZ
13715
13716 case `uname -s` in
13717 AIX*)
13718 ac_ext=cc
13719ac_cpp='$CXXCPP $CPPFLAGS'
13720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13723
13724echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13725echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13726if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729 cat >conftest.$ac_ext <<_ACEOF
13730/* confdefs.h. */
13731_ACEOF
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
13734/* end confdefs.h. */
13735
13736int
13737main ()
13738{
13739#ifndef __xlC__
13740 choke me
13741#endif
13742
13743 ;
13744 return 0;
13745}
13746_ACEOF
13747rm -f conftest.$ac_objext
13748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>conftest.er1
13750 ac_status=$?
13751 grep -v '^ *+' conftest.er1 >conftest.err
13752 rm -f conftest.er1
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
5d7b7554 13756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest.$ac_objext'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
0093c2fc 13768 bakefile_compiler_xlc=yes
3006edc0
VZ
13769else
13770 echo "$as_me: failed program was:" >&5
13771sed 's/^/| /' conftest.$ac_ext >&5
13772
0093c2fc 13773bakefile_compiler_xlc=no
3006edc0
VZ
13774fi
13775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13776 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13777
13778fi
0093c2fc
VZ
13779echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13780echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13781
0093c2fc 13782XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13783ac_ext=cc
13784ac_cpp='$CXXCPP $CPPFLAGS'
13785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13788
13789
13790 ;;
13791
13792 Darwin)
13793 ac_ext=cc
95986553
DE
13794ac_cpp='$CXXCPP $CPPFLAGS'
13795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13798
13799echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13800echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13801if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803else
13804 cat >conftest.$ac_ext <<_ACEOF
13805/* confdefs.h. */
13806_ACEOF
13807cat confdefs.h >>conftest.$ac_ext
13808cat >>conftest.$ac_ext <<_ACEOF
13809/* end confdefs.h. */
13810
13811int
13812main ()
13813{
13814#ifndef __MWERKS__
13815 choke me
13816#endif
13817
13818 ;
13819 return 0;
13820}
13821_ACEOF
13822rm -f conftest.$ac_objext
13823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13824 (eval $ac_compile) 2>conftest.er1
13825 ac_status=$?
13826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } &&
5d7b7554 13831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest.$ac_objext'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 bakefile_compiler_mwerks=yes
13844else
13845 echo "$as_me: failed program was:" >&5
13846sed 's/^/| /' conftest.$ac_ext >&5
13847
13848bakefile_compiler_mwerks=no
13849fi
13850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13851 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13852
13853fi
13854echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13855echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13856
0e6fa1d9 13857MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13858ac_ext=cc
13859ac_cpp='$CXXCPP $CPPFLAGS'
13860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13863
13864
3006edc0 13865 ac_ext=cc
9273ffba
DE
13866ac_cpp='$CXXCPP $CPPFLAGS'
13867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13870
13871echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13872echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13873if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875else
13876 cat >conftest.$ac_ext <<_ACEOF
13877/* confdefs.h. */
13878_ACEOF
13879cat confdefs.h >>conftest.$ac_ext
13880cat >>conftest.$ac_ext <<_ACEOF
13881/* end confdefs.h. */
13882
13883int
13884main ()
13885{
13886#ifndef __xlC__
13887 choke me
13888#endif
13889
13890 ;
13891 return 0;
13892}
13893_ACEOF
13894rm -f conftest.$ac_objext
13895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13896 (eval $ac_compile) 2>conftest.er1
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
5d7b7554 13903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest.$ac_objext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
0093c2fc 13915 bakefile_compiler_xlc=yes
9273ffba
DE
13916else
13917 echo "$as_me: failed program was:" >&5
13918sed 's/^/| /' conftest.$ac_ext >&5
13919
0093c2fc 13920bakefile_compiler_xlc=no
9273ffba
DE
13921fi
13922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13923 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13924
13925fi
0093c2fc
VZ
13926echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13927echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13928
0093c2fc 13929XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13930ac_ext=cc
13931ac_cpp='$CXXCPP $CPPFLAGS'
13932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13935
13936
3006edc0
VZ
13937 ;;
13938
13939 IRIX*)
95986553 13940
6dcfc289 13941
0ad5d837
VZ
13942 ac_ext=cc
13943ac_cpp='$CXXCPP $CPPFLAGS'
13944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13947
13948 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13949echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13950if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952else
13953 cat >conftest.$ac_ext <<_ACEOF
13954/* confdefs.h. */
13955_ACEOF
13956cat confdefs.h >>conftest.$ac_ext
13957cat >>conftest.$ac_ext <<_ACEOF
13958/* end confdefs.h. */
13959
13960int
13961main ()
13962{
13963
13964 #ifndef _SGI_COMPILER_VERSION
13965 choke me
13966 #endif
13967
13968 ;
13969 return 0;
13970}
13971_ACEOF
13972rm -f conftest.$ac_objext
13973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>conftest.er1
13975 ac_status=$?
13976 grep -v '^ *+' conftest.er1 >conftest.err
13977 rm -f conftest.er1
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } &&
5d7b7554 13981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; } &&
13987 { ac_try='test -s conftest.$ac_objext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13994else
13995 echo "$as_me: failed program was:" >&5
13996sed 's/^/| /' conftest.$ac_ext >&5
13997
13998bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13999
14000fi
14001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14002
14003
14004fi
14005echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14006echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14007 ac_ext=cc
14008ac_cpp='$CXXCPP $CPPFLAGS'
14009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14012
14013 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14014 :; SGICXX=yes
14015 else
14016 :;
14017 fi
14018
14019
3006edc0
VZ
14020 ;;
14021
0093c2fc 14022 HP-UX*)
3006edc0
VZ
14023
14024
14025 ac_ext=cc
14026ac_cpp='$CXXCPP $CPPFLAGS'
14027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14030
0093c2fc
VZ
14031 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14032echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14033if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035else
14036 cat >conftest.$ac_ext <<_ACEOF
14037/* confdefs.h. */
14038_ACEOF
14039cat confdefs.h >>conftest.$ac_ext
14040cat >>conftest.$ac_ext <<_ACEOF
14041/* end confdefs.h. */
14042
14043int
14044main ()
14045{
14046
0093c2fc 14047 #ifndef __HP_aCC
3006edc0
VZ
14048 choke me
14049 #endif
14050
14051 ;
14052 return 0;
14053}
14054_ACEOF
14055rm -f conftest.$ac_objext
14056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14057 (eval $ac_compile) 2>conftest.er1
14058 ac_status=$?
14059 grep -v '^ *+' conftest.er1 >conftest.err
14060 rm -f conftest.er1
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } &&
5d7b7554 14064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest.$ac_objext'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
0093c2fc 14076 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14077else
14078 echo "$as_me: failed program was:" >&5
14079sed 's/^/| /' conftest.$ac_ext >&5
14080
0093c2fc 14081bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14082
14083fi
14084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14085
14086
14087fi
0093c2fc
VZ
14088echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14089echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14090 ac_ext=cc
14091ac_cpp='$CXXCPP $CPPFLAGS'
14092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14095
0093c2fc
VZ
14096 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14097 :; HPCXX=yes
a1aa0349
VZ
14098 else
14099 :;
14100 fi
14101
14102
14103 ;;
14104
0093c2fc 14105 OSF1)
a1aa0349
VZ
14106
14107
14108 ac_ext=cc
14109ac_cpp='$CXXCPP $CPPFLAGS'
14110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14113
0093c2fc
VZ
14114 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14115echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14116if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118else
14119 cat >conftest.$ac_ext <<_ACEOF
14120/* confdefs.h. */
14121_ACEOF
14122cat confdefs.h >>conftest.$ac_ext
14123cat >>conftest.$ac_ext <<_ACEOF
14124/* end confdefs.h. */
14125
14126int
14127main ()
14128{
14129
0093c2fc 14130 #ifndef __DECCXX
a1aa0349
VZ
14131 choke me
14132 #endif
14133
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138rm -f conftest.$ac_objext
14139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140 (eval $ac_compile) 2>conftest.er1
14141 ac_status=$?
14142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
5d7b7554 14147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; } &&
14153 { ac_try='test -s conftest.$ac_objext'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
0093c2fc 14159 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14160else
14161 echo "$as_me: failed program was:" >&5
14162sed 's/^/| /' conftest.$ac_ext >&5
14163
0093c2fc 14164bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14165
14166fi
14167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14168
14169
14170fi
0093c2fc
VZ
14171echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14172echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14173 ac_ext=cc
14174ac_cpp='$CXXCPP $CPPFLAGS'
14175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14178
0093c2fc
VZ
14179 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14180 :; COMPAQCXX=yes
14181 else
14182 :;
14183 fi
14184
14185
14186 ;;
14187
14188 SunOS)
14189
14190
14191 ac_ext=cc
14192ac_cpp='$CXXCPP $CPPFLAGS'
14193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14196
14197 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14198echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14199if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201else
14202 cat >conftest.$ac_ext <<_ACEOF
14203/* confdefs.h. */
14204_ACEOF
14205cat confdefs.h >>conftest.$ac_ext
14206cat >>conftest.$ac_ext <<_ACEOF
14207/* end confdefs.h. */
14208
14209int
14210main ()
14211{
14212
14213 #ifndef __SUNPRO_CC
14214 choke me
14215 #endif
14216
14217 ;
14218 return 0;
14219}
14220_ACEOF
14221rm -f conftest.$ac_objext
14222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 (eval $ac_compile) 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
5d7b7554 14230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest.$ac_objext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14243else
14244 echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
14247bakefile_cv_cxx_compiler___SUNPRO_CC=no
14248
14249fi
14250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14251
14252
14253fi
14254echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14255echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14256 ac_ext=cc
14257ac_cpp='$CXXCPP $CPPFLAGS'
14258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14261
14262 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14263 :; SUNCXX=yes
3006edc0
VZ
14264 else
14265 :;
ab0ad5f1 14266 fi
a9e5b1f0
MW
14267
14268
3006edc0
VZ
14269 ;;
14270 esac
14271 fi
14272
14273
14274
a848cd7e
SC
14275if test -n "$ac_tool_prefix"; then
14276 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14277set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14278echo "$as_me:$LINENO: checking for $ac_word" >&5
14279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14280if test "${ac_cv_prog_RANLIB+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14282else
14283 if test -n "$RANLIB"; then
14284 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14285else
14286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287for as_dir in $PATH
14288do
14289 IFS=$as_save_IFS
14290 test -z "$as_dir" && as_dir=.
14291 for ac_exec_ext in '' $ac_executable_extensions; do
14292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14293 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14295 break 2
14296 fi
14297done
14298done
14299
14300fi
14301fi
14302RANLIB=$ac_cv_prog_RANLIB
14303if test -n "$RANLIB"; then
14304 echo "$as_me:$LINENO: result: $RANLIB" >&5
14305echo "${ECHO_T}$RANLIB" >&6
14306else
14307 echo "$as_me:$LINENO: result: no" >&5
14308echo "${ECHO_T}no" >&6
14309fi
14310
14311fi
14312if test -z "$ac_cv_prog_RANLIB"; then
14313 ac_ct_RANLIB=$RANLIB
14314 # Extract the first word of "ranlib", so it can be a program name with args.
14315set dummy ranlib; ac_word=$2
14316echo "$as_me:$LINENO: checking for $ac_word" >&5
14317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14318if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14320else
14321 if test -n "$ac_ct_RANLIB"; then
14322 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14323else
14324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325for as_dir in $PATH
14326do
14327 IFS=$as_save_IFS
14328 test -z "$as_dir" && as_dir=.
14329 for ac_exec_ext in '' $ac_executable_extensions; do
14330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14331 ac_cv_prog_ac_ct_RANLIB="ranlib"
14332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14333 break 2
14334 fi
14335done
14336done
14337
14338 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14339fi
14340fi
14341ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14342if test -n "$ac_ct_RANLIB"; then
14343 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14344echo "${ECHO_T}$ac_ct_RANLIB" >&6
14345else
14346 echo "$as_me:$LINENO: result: no" >&5
14347echo "${ECHO_T}no" >&6
14348fi
14349
14350 RANLIB=$ac_ct_RANLIB
14351else
14352 RANLIB="$ac_cv_prog_RANLIB"
14353fi
14354
14355
8c80d384
DE
14356if test -n "$ac_tool_prefix"; then
14357 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14358set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14359echo "$as_me:$LINENO: checking for $ac_word" >&5
14360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14361if test "${ac_cv_prog_AR+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
14364 if test -n "$AR"; then
14365 ac_cv_prog_AR="$AR" # Let the user override the test.
14366else
14367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368for as_dir in $PATH
14369do
14370 IFS=$as_save_IFS
14371 test -z "$as_dir" && as_dir=.
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14374 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 break 2
14377 fi
14378done
14379done
14380
14381fi
14382fi
14383AR=$ac_cv_prog_AR
14384if test -n "$AR"; then
14385 echo "$as_me:$LINENO: result: $AR" >&5
14386echo "${ECHO_T}$AR" >&6
14387else
14388 echo "$as_me:$LINENO: result: no" >&5
14389echo "${ECHO_T}no" >&6
14390fi
14391
8c80d384
DE
14392fi
14393if test -z "$ac_cv_prog_AR"; then
14394 ac_ct_AR=$AR
14395 # Extract the first word of "ar", so it can be a program name with args.
14396set dummy ar; ac_word=$2
14397echo "$as_me:$LINENO: checking for $ac_word" >&5
14398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14399if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401else
14402 if test -n "$ac_ct_AR"; then
14403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14404else
14405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406for as_dir in $PATH
14407do
14408 IFS=$as_save_IFS
14409 test -z "$as_dir" && as_dir=.
14410 for ac_exec_ext in '' $ac_executable_extensions; do
14411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14412 ac_cv_prog_ac_ct_AR="ar"
14413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14414 break 2
14415 fi
14416done
14417done
14418
14419fi
14420fi
14421ac_ct_AR=$ac_cv_prog_ac_ct_AR
14422if test -n "$ac_ct_AR"; then
14423 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14424echo "${ECHO_T}$ac_ct_AR" >&6
14425else
14426 echo "$as_me:$LINENO: result: no" >&5
14427echo "${ECHO_T}no" >&6
14428fi
14429
14430 AR=$ac_ct_AR
14431else
14432 AR="$ac_cv_prog_AR"
14433fi
14434
a848cd7e 14435if test "x$AR" = "x" ; then
77ffb593
JS
14436 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14437echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14438 { (exit 1); exit 1; }; }
14439fi
14440
14441# Find a good install program. We prefer a C program (faster),
14442# so one script is as good as another. But avoid the broken or
14443# incompatible versions:
14444# SysV /etc/install, /usr/sbin/install
14445# SunOS /usr/etc/install
14446# IRIX /sbin/install
14447# AIX /bin/install
14448# AmigaOS /C/install, which installs bootblocks on floppy discs
14449# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14450# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14451# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14452# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14453# ./install, which can be erroneously created by make from ./install.sh.
14454echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14455echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14456if test -z "$INSTALL"; then
14457if test "${ac_cv_path_install+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459else
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461for as_dir in $PATH
14462do
14463 IFS=$as_save_IFS
14464 test -z "$as_dir" && as_dir=.
14465 # Account for people who put trailing slashes in PATH elements.
14466case $as_dir/ in
14467 ./ | .// | /cC/* | \
14468 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14469 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14470 /usr/ucb/* ) ;;
14471 *)
14472 # OSF1 and SCO ODT 3.0 have their own names for install.
14473 # Don't use installbsd from OSF since it installs stuff as root
14474 # by default.
14475 for ac_prog in ginstall scoinst install; do
14476 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14477 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14478 if test $ac_prog = install &&
14479 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14480 # AIX install. It has an incompatible calling convention.
14481 :
14482 elif test $ac_prog = install &&
14483 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14484 # program-specific install script used by HP pwplus--don't use.
14485 :
14486 else
14487 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14488 break 3
14489 fi
14490 fi
a848cd7e
SC
14491 done
14492 done
14493 ;;
14494esac
14495done
14496
14497
14498fi
14499 if test "${ac_cv_path_install+set}" = set; then
14500 INSTALL=$ac_cv_path_install
14501 else
14502 # As a last resort, use the slow shell script. We don't cache a
14503 # path for INSTALL within a source directory, because that will
14504 # break other packages using the cache if that directory is
14505 # removed, or if the path is relative.
14506 INSTALL=$ac_install_sh
14507 fi
14508fi
14509echo "$as_me:$LINENO: result: $INSTALL" >&5
14510echo "${ECHO_T}$INSTALL" >&6
14511
14512# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14513# It thinks the first close brace ends the variable substitution.
14514test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14515
14516test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14517
14518test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14519
14520
14521case ${INSTALL} in
14522 /* ) # Absolute
14523 ;;
14524 ?:* ) # Drive letter, considered as absolute.
14525 ;;
14526 *)
14527 INSTALL=`pwd`/${INSTALL} ;;
14528esac
14529
a848cd7e
SC
14530
14531case "${host}" in
14532
cfda0ea8 14533 *-*-darwin* )
a848cd7e
SC
14534 INSTALL_PROGRAM="cp -fp"
14535 INSTALL_DATA="cp -fp"
14536 ;;
14537 *)
14538 ;;
14539esac
14540
8c80d384
DE
14541if test -n "$ac_tool_prefix"; then
14542 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14543set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14544echo "$as_me:$LINENO: checking for $ac_word" >&5
14545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14546if test "${ac_cv_prog_STRIP+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548else
14549 if test -n "$STRIP"; then
14550 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14551else
14552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14553for as_dir in $PATH
14554do
14555 IFS=$as_save_IFS
14556 test -z "$as_dir" && as_dir=.
14557 for ac_exec_ext in '' $ac_executable_extensions; do
14558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14559 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14561 break 2
14562 fi
14563done
14564done
14565
a848cd7e
SC
14566fi
14567fi
14568STRIP=$ac_cv_prog_STRIP
14569if test -n "$STRIP"; then
14570 echo "$as_me:$LINENO: result: $STRIP" >&5
14571echo "${ECHO_T}$STRIP" >&6
14572else
14573 echo "$as_me:$LINENO: result: no" >&5
14574echo "${ECHO_T}no" >&6
14575fi
14576
8c80d384
DE
14577fi
14578if test -z "$ac_cv_prog_STRIP"; then
14579 ac_ct_STRIP=$STRIP
14580 # Extract the first word of "strip", so it can be a program name with args.
14581set dummy strip; ac_word=$2
14582echo "$as_me:$LINENO: checking for $ac_word" >&5
14583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14584if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586else
14587 if test -n "$ac_ct_STRIP"; then
14588 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14589else
14590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14591for as_dir in $PATH
14592do
14593 IFS=$as_save_IFS
14594 test -z "$as_dir" && as_dir=.
14595 for ac_exec_ext in '' $ac_executable_extensions; do
14596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14597 ac_cv_prog_ac_ct_STRIP="strip"
14598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14599 break 2
14600 fi
14601done
14602done
14603
14604 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14605fi
14606fi
14607ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14608if test -n "$ac_ct_STRIP"; then
14609 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14610echo "${ECHO_T}$ac_ct_STRIP" >&6
14611else
14612 echo "$as_me:$LINENO: result: no" >&5
14613echo "${ECHO_T}no" >&6
14614fi
14615
14616 STRIP=$ac_ct_STRIP
14617else
14618 STRIP="$ac_cv_prog_STRIP"
14619fi
14620
14621
14622if test "$wxUSE_WINE" = "yes"; then
14623 if test -n "$ac_tool_prefix"; then
14624 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14625set dummy ${ac_tool_prefix}wrc; ac_word=$2
14626echo "$as_me:$LINENO: checking for $ac_word" >&5
14627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14628if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14630else
8ced02f6
DE
14631 if test -n "$WINDRES"; then
14632 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14633else
14634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14635for as_dir in $PATH
14636do
14637 IFS=$as_save_IFS
14638 test -z "$as_dir" && as_dir=.
14639 for ac_exec_ext in '' $ac_executable_extensions; do
14640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14641 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14643 break 2
14644 fi
14645done
14646done
14647
14648fi
14649fi
8ced02f6
DE
14650WINDRES=$ac_cv_prog_WINDRES
14651if test -n "$WINDRES"; then
14652 echo "$as_me:$LINENO: result: $WINDRES" >&5
14653echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14654else
14655 echo "$as_me:$LINENO: result: no" >&5
14656echo "${ECHO_T}no" >&6
14657fi
14658
14659fi
8ced02f6
DE
14660if test -z "$ac_cv_prog_WINDRES"; then
14661 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14662 # Extract the first word of "wrc", so it can be a program name with args.
14663set dummy wrc; ac_word=$2
14664echo "$as_me:$LINENO: checking for $ac_word" >&5
14665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14666if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14668else
8ced02f6
DE
14669 if test -n "$ac_ct_WINDRES"; then
14670 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14671else
14672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14673for as_dir in $PATH
14674do
14675 IFS=$as_save_IFS
14676 test -z "$as_dir" && as_dir=.
14677 for ac_exec_ext in '' $ac_executable_extensions; do
14678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14679 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14681 break 2
14682 fi
14683done
14684done
14685
14686fi
14687fi
8ced02f6
DE
14688ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14689if test -n "$ac_ct_WINDRES"; then
14690 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14691echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14692else
14693 echo "$as_me:$LINENO: result: no" >&5
14694echo "${ECHO_T}no" >&6
14695fi
14696
8ced02f6 14697 WINDRES=$ac_ct_WINDRES
8c80d384 14698else
8ced02f6 14699 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14700fi
14701
004ee6da 14702 RESCOMP="$WINDRES"
8c80d384
DE
14703else
14704 case "${host}" in
14705 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14706 if test -n "$ac_tool_prefix"; then
14707 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14708set dummy ${ac_tool_prefix}windres; ac_word=$2
14709echo "$as_me:$LINENO: checking for $ac_word" >&5
14710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14711if test "${ac_cv_prog_WINDRES+set}" = set; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14713else
14714 if test -n "$WINDRES"; then
14715 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14716else
14717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718for as_dir in $PATH
14719do
14720 IFS=$as_save_IFS
14721 test -z "$as_dir" && as_dir=.
14722 for ac_exec_ext in '' $ac_executable_extensions; do
14723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14724 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14726 break 2
14727 fi
14728done
14729done
14730
14731fi
14732fi
14733WINDRES=$ac_cv_prog_WINDRES
14734if test -n "$WINDRES"; then
14735 echo "$as_me:$LINENO: result: $WINDRES" >&5
14736echo "${ECHO_T}$WINDRES" >&6
14737else
14738 echo "$as_me:$LINENO: result: no" >&5
14739echo "${ECHO_T}no" >&6
14740fi
14741
14742fi
14743if test -z "$ac_cv_prog_WINDRES"; then
14744 ac_ct_WINDRES=$WINDRES
14745 # Extract the first word of "windres", so it can be a program name with args.
14746set dummy windres; ac_word=$2
14747echo "$as_me:$LINENO: checking for $ac_word" >&5
14748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14749if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751else
14752 if test -n "$ac_ct_WINDRES"; then
14753 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14754else
14755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756for as_dir in $PATH
14757do
14758 IFS=$as_save_IFS
14759 test -z "$as_dir" && as_dir=.
14760 for ac_exec_ext in '' $ac_executable_extensions; do
14761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14762 ac_cv_prog_ac_ct_WINDRES="windres"
14763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14764 break 2
14765 fi
14766done
14767done
14768
14769fi
14770fi
14771ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14772if test -n "$ac_ct_WINDRES"; then
14773 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14774echo "${ECHO_T}$ac_ct_WINDRES" >&6
14775else
14776 echo "$as_me:$LINENO: result: no" >&5
14777echo "${ECHO_T}no" >&6
14778fi
14779
14780 WINDRES=$ac_ct_WINDRES
14781else
14782 WINDRES="$ac_cv_prog_WINDRES"
14783fi
14784
14785 RESCOMP="$WINDRES"
14786 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14787 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14788set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14789echo "$as_me:$LINENO: checking for $ac_word" >&5
14790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14791if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793else
14794 if test -n "$DLLTOOL"; then
14795 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14796else
14797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14798for as_dir in $PATH
14799do
14800 IFS=$as_save_IFS
14801 test -z "$as_dir" && as_dir=.
14802 for ac_exec_ext in '' $ac_executable_extensions; do
14803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14804 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14806 break 2
14807 fi
14808done
14809done
14810
14811fi
14812fi
14813DLLTOOL=$ac_cv_prog_DLLTOOL
14814if test -n "$DLLTOOL"; then
14815 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14816echo "${ECHO_T}$DLLTOOL" >&6
14817else
14818 echo "$as_me:$LINENO: result: no" >&5
14819echo "${ECHO_T}no" >&6
14820fi
14821
14822fi
14823if test -z "$ac_cv_prog_DLLTOOL"; then
14824 ac_ct_DLLTOOL=$DLLTOOL
14825 # Extract the first word of "dlltool", so it can be a program name with args.
14826set dummy dlltool; ac_word=$2
14827echo "$as_me:$LINENO: checking for $ac_word" >&5
14828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14829if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14831else
14832 if test -n "$ac_ct_DLLTOOL"; then
14833 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14834else
14835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14836for as_dir in $PATH
14837do
14838 IFS=$as_save_IFS
14839 test -z "$as_dir" && as_dir=.
14840 for ac_exec_ext in '' $ac_executable_extensions; do
14841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14842 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14844 break 2
14845 fi
14846done
14847done
14848
14849fi
14850fi
14851ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14852if test -n "$ac_ct_DLLTOOL"; then
14853 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14854echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14855else
14856 echo "$as_me:$LINENO: result: no" >&5
14857echo "${ECHO_T}no" >&6
14858fi
14859
14860 DLLTOOL=$ac_ct_DLLTOOL
14861else
14862 DLLTOOL="$ac_cv_prog_DLLTOOL"
14863fi
14864
14865 ;;
14866 esac
14867fi
a848cd7e
SC
14868
14869echo "$as_me:$LINENO: checking if make is GNU make" >&5
14870echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14871if test "${wx_cv_prog_makeisgnu+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14873else
14874
14875 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14876 egrep -s GNU > /dev/null); then
14877 wx_cv_prog_makeisgnu="yes"
14878 else
14879 wx_cv_prog_makeisgnu="no"
14880 fi
14881
14882fi
14883echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14884echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14885
14886if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14887 IF_GNU_MAKE=""
14888else
14889 IF_GNU_MAKE="#"
14890fi
14891
14892
14893
14894if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14895echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14896echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14897if test "${wx_cv_prog_makevpath+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899else
14900
14901cat - << EOF > confMake
14902check : file
14903 cp \$? \$@
14904 cp \$? final_file
14905EOF
14906
14907if test ! -d sub ; then
14908 mkdir sub
14909fi
14910echo dummy > sub/file
14911${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14912RESULT=$?
14913rm -f sub/file check final_file confMake
14914rmdir sub
14915if test "$RESULT" = 0; then
14916 wx_cv_prog_makevpath="yes"
14917else
14918 wx_cv_prog_makevpath="no"
14919fi
14920
14921fi
14922echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14923echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14924
14925if test "x$wx_cv_prog_makevpath" != "xyes"; then
14926{ { echo "$as_me:$LINENO: error:
14927You need a make-utility that is able to use the variable
14928VPATH correctly.
14929If your version of make does not support VPATH correctly,
14930please install GNU-make (possibly as gmake), and start
14931configure with the following command:
14932export MAKE=gmake; ./configure for sh-type shells
14933setenv MAKE gmake; ./configure for csh-type shells
14934Also please do remember to use gmake in this case every time
14935you are trying to compile.
14936" >&5
14937echo "$as_me: error:
14938You need a make-utility that is able to use the variable
14939VPATH correctly.
14940If your version of make does not support VPATH correctly,
14941please install GNU-make (possibly as gmake), and start
14942configure with the following command:
14943export MAKE=gmake; ./configure for sh-type shells
14944setenv MAKE gmake; ./configure for csh-type shells
14945Also please do remember to use gmake in this case every time
14946you are trying to compile.
14947" >&2;}
14948 { (exit 1); exit 1; }; }
14949fi fi
14950echo "$as_me:$LINENO: checking whether ln -s works" >&5
14951echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14952LN_S=$as_ln_s
14953if test "$LN_S" = "ln -s"; then
14954 echo "$as_me:$LINENO: result: yes" >&5
14955echo "${ECHO_T}yes" >&6
14956else
14957 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14958echo "${ECHO_T}no, using $LN_S" >&6
14959fi
14960
14961
bcaab0f9 14962
a848cd7e 14963
2113bc77 14964if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 14965 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
14966fi
14967
4d7ec9f1
DE
14968case "${host}" in
14969 powerpc-*-darwin* )
14970 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14971echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14972 cat >conftest.$ac_ext <<_ACEOF
14973/* confdefs.h. */
14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
14978
14979int
14980main ()
14981{
14982#ifndef __POWERPC__
14983 choke me for lack of PowerPC
14984#endif
14985
14986 ;
14987 return 0;
14988}
14989_ACEOF
14990rm -f conftest.$ac_objext
14991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14992 (eval $ac_compile) 2>conftest.er1
14993 ac_status=$?
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
5d7b7554 14999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; } &&
15005 { ac_try='test -s conftest.$ac_objext'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 echo "$as_me:$LINENO: result: yes" >&5
15012echo "${ECHO_T}yes" >&6
15013else
15014 echo "$as_me: failed program was:" >&5
15015sed 's/^/| /' conftest.$ac_ext >&5
15016
15017echo "$as_me:$LINENO: result: no" >&5
15018echo "${ECHO_T}no" >&6
15019 cat >>confdefs.h <<\_ACEOF
15020#define __POWERPC__ 1
15021_ACEOF
15022
15023
15024fi
15025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15026 ;;
15027esac
15028
15029case "${host}" in
15030 *-*-darwin* )
4d7ec9f1
DE
15031 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15032echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15033 cat >conftest.$ac_ext <<_ACEOF
15034/* confdefs.h. */
15035_ACEOF
15036cat confdefs.h >>conftest.$ac_ext
15037cat >>conftest.$ac_ext <<_ACEOF
15038/* end confdefs.h. */
15039#include <CoreFoundation/CFBase.h>
15040
15041int
15042main ()
15043{
15044
15045 ;
15046 return 0;
15047}
15048_ACEOF
15049rm -f conftest.$ac_objext
15050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051 (eval $ac_compile) 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
5d7b7554 15058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest.$ac_objext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 echo "$as_me:$LINENO: result: yes" >&5
15071echo "${ECHO_T}yes" >&6
15072else
15073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076echo "$as_me:$LINENO: result: no" >&5
15077echo "${ECHO_T}no" >&6
15078 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15079echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15080 cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086#define __CF_USE_FRAMEWORK_INCLUDES__
15087#include <CoreFoundation/CFBase.h>
15088
15089int
15090main ()
15091{
15092
15093 ;
15094 return 0;
15095}
15096_ACEOF
15097rm -f conftest.$ac_objext
15098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099 (eval $ac_compile) 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
5d7b7554 15106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; } &&
15112 { ac_try='test -s conftest.$ac_objext'
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }; then
15118 echo "$as_me:$LINENO: result: yes" >&5
15119echo "${ECHO_T}yes" >&6
c92ad099 15120 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15121else
15122 echo "$as_me: failed program was:" >&5
15123sed 's/^/| /' conftest.$ac_ext >&5
15124
15125{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15126See \`config.log' for more details." >&5
15127echo "$as_me: error: no. CoreFoundation not available.
15128See \`config.log' for more details." >&2;}
15129 { (exit 1); exit 1; }; }
15130
15131fi
15132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15133
15134
15135fi
15136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15137 ;;
15138esac
15139
a848cd7e
SC
15140case "${host}" in
15141 *-pc-os2_emx | *-pc-os2-emx )
15142 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15143 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15144echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15145if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147else
15148 ac_check_lib_save_LIBS=$LIBS
15149LIBS="-lcExt $LIBS"
15150cat >conftest.$ac_ext <<_ACEOF
15151/* confdefs.h. */
15152_ACEOF
15153cat confdefs.h >>conftest.$ac_ext
15154cat >>conftest.$ac_ext <<_ACEOF
15155/* end confdefs.h. */
15156
15157/* Override any gcc2 internal prototype to avoid an error. */
15158#ifdef __cplusplus
15159extern "C"
15160#endif
15161/* We use char because int might match the return type of a gcc2
15162 builtin and then its argument prototype would still apply. */
15163char drand48 ();
15164int
15165main ()
15166{
15167drand48 ();
15168 ;
15169 return 0;
15170}
15171_ACEOF
15172rm -f conftest.$ac_objext conftest$ac_exeext
15173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15174 (eval $ac_link) 2>conftest.er1
a848cd7e 15175 ac_status=$?
ac1cb8d3
VS
15176 grep -v '^ *+' conftest.er1 >conftest.err
15177 rm -f conftest.er1
15178 cat conftest.err >&5
a848cd7e
SC
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
5d7b7554 15181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_cv_lib_cExt_drand48=yes
15194else
15195 echo "$as_me: failed program was:" >&5
15196sed 's/^/| /' conftest.$ac_ext >&5
15197
15198ac_cv_lib_cExt_drand48=no
15199fi
ac1cb8d3
VS
15200rm -f conftest.err conftest.$ac_objext \
15201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15202LIBS=$ac_check_lib_save_LIBS
15203fi
15204echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15205echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15206if test $ac_cv_lib_cExt_drand48 = yes; then
15207 LIBS="$LIBS -lcExt"
15208fi
15209
15210 else
15211 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15212 fi
69120ee4
VZ
15213 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15214echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15215if test "${wx_cv_gccversion+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15217else
15218
391a765e
VS
15219 if test "$cross_compiling" = yes; then
15220 wx_cv_gccversion="EMX2"
15221
15222else
15223 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15224/* confdefs.h. */
15225_ACEOF
15226cat confdefs.h >>conftest.$ac_ext
15227cat >>conftest.$ac_ext <<_ACEOF
15228/* end confdefs.h. */
15229
391a765e 15230 #include <stdio.h>
a848cd7e 15231
391a765e
VS
15232 int main()
15233 {
15234 FILE *f=fopen("conftestval", "w");
15235 if (!f) exit(1);
15236 fprintf(f,
a848cd7e 15237 #if (__GNUC__ < 3)
391a765e
VS
15238 "EMX2"
15239 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15240 "EMX3"
15241 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15242 "Innotek5"
15243 #else
15244 "Innotek6"
a848cd7e 15245 #endif
391a765e
VS
15246 );
15247 exit(0);
15248 }
a848cd7e 15249
a848cd7e 15250_ACEOF
391a765e
VS
15251rm -f conftest$ac_exeext
15252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253 (eval $ac_link) 2>&5
ac1cb8d3
VS
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
391a765e 15262 wx_cv_gccversion=`cat conftestval`
a848cd7e 15263else
391a765e
VS
15264 echo "$as_me: program exited with status $ac_status" >&5
15265echo "$as_me: failed program was:" >&5
a848cd7e
SC
15266sed 's/^/| /' conftest.$ac_ext >&5
15267
391a765e
VS
15268( exit $ac_status )
15269wx_cv_gccversion="EMX2"
a848cd7e 15270fi
391a765e 15271rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15272fi
a848cd7e
SC
15273
15274fi
15275echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15276echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15277 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15278 LIBS="$LIBS -lstdcpp"
15279 LDFLAGS="$LDFLAGS -Zsysv-signals"
15280 else
391a765e 15281 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15282 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15283 LDFLAGS="$LDFLAGS -Zsysv-signals"
15284 else
15285 LIBS="$LIBS -lstdc++"
15286 fi
15287 fi
94acd38e
DE
15288 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15289 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15290echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15291 wxUSE_OMF=yes
2da0c077 15292 enable_omf=yes
a848cd7e
SC
15293 fi
15294 ;;
15295 *)
15296
95986553 15297 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15298echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15299if test "${ac_cv_string_strcasecmp+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301else
15302
15303 cat >conftest.$ac_ext <<_ACEOF
15304/* confdefs.h. */
15305_ACEOF
15306cat confdefs.h >>conftest.$ac_ext
15307cat >>conftest.$ac_ext <<_ACEOF
15308/* end confdefs.h. */
15309
15310 #include <string.h>
15311
15312int
15313main ()
15314{
15315
15316 strcasecmp("foo", "bar");
15317
15318 ;
15319 return 0;
15320}
15321_ACEOF
15322rm -f conftest.$ac_objext conftest$ac_exeext
15323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15324 (eval $ac_link) 2>conftest.er1
a848cd7e 15325 ac_status=$?
ac1cb8d3
VS
15326 grep -v '^ *+' conftest.er1 >conftest.err
15327 rm -f conftest.er1
15328 cat conftest.err >&5
a848cd7e
SC
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
5d7b7554 15331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 ac_cv_string_strcasecmp=yes
15344else
15345 echo "$as_me: failed program was:" >&5
15346sed 's/^/| /' conftest.$ac_ext >&5
15347
15348ac_cv_string_strcasecmp=no
15349
15350fi
ac1cb8d3
VS
15351rm -f conftest.err conftest.$ac_objext \
15352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15353
15354fi
15355echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15356echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15357
15358 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15359 cat >>confdefs.h <<\_ACEOF
15360#define HAVE_STRCASECMP_IN_STRING_H 1
15361_ACEOF
15362
15363 else
15364 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15365echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15366if test "${ac_cv_strings_strcasecmp+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368else
15369
15370 cat >conftest.$ac_ext <<_ACEOF
15371/* confdefs.h. */
15372_ACEOF
15373cat confdefs.h >>conftest.$ac_ext
15374cat >>conftest.$ac_ext <<_ACEOF
15375/* end confdefs.h. */
15376
15377 #include <strings.h>
15378
15379int
15380main ()
15381{
15382
15383 strcasecmp("foo", "bar");
15384
15385 ;
15386 return 0;
15387}
15388_ACEOF
15389rm -f conftest.$ac_objext conftest$ac_exeext
15390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15391 (eval $ac_link) 2>conftest.er1
a848cd7e 15392 ac_status=$?
ac1cb8d3
VS
15393 grep -v '^ *+' conftest.er1 >conftest.err
15394 rm -f conftest.er1
15395 cat conftest.err >&5
a848cd7e
SC
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
5d7b7554 15398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15410 ac_cv_strings_strcasecmp=yes
15411else
15412 echo "$as_me: failed program was:" >&5
15413sed 's/^/| /' conftest.$ac_ext >&5
15414
15415ac_cv_strings_strcasecmp=no
15416
15417fi
ac1cb8d3
VS
15418rm -f conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15420
15421fi
15422echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15423echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15424
0c3c69fc 15425 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15426 cat >>confdefs.h <<\_ACEOF
15427#define HAVE_STRCASECMP_IN_STRINGS_H 1
15428_ACEOF
15429
15430 else
15431 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15432echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15433 { (exit 1); exit 1; }; }
15434 fi
15435 fi
15436
a848cd7e
SC
15437 ;;
15438esac
15439
15440
5d7b7554
VZ
15441ac_ext=cc
15442ac_cpp='$CXXCPP $CPPFLAGS'
15443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15446echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15447echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15448if test -z "$CXXCPP"; then
15449 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15451else
15452 # Double quotes because CXXCPP needs to be expanded
15453 for CXXCPP in "$CXX -E" "/lib/cpp"
15454 do
15455 ac_preproc_ok=false
15456for ac_cxx_preproc_warn_flag in '' yes
15457do
15458 # Use a header file that comes with gcc, so configuring glibc
15459 # with a fresh cross-compiler works.
15460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461 # <limits.h> exists even on freestanding compilers.
15462 # On the NeXT, cc -E runs the code through the compiler's parser,
15463 # not just through cpp. "Syntax error" is here to catch this case.
15464 cat >conftest.$ac_ext <<_ACEOF
15465/* confdefs.h. */
15466_ACEOF
15467cat confdefs.h >>conftest.$ac_ext
15468cat >>conftest.$ac_ext <<_ACEOF
15469/* end confdefs.h. */
15470#ifdef __STDC__
15471# include <limits.h>
15472#else
15473# include <assert.h>
15474#endif
15475 Syntax error
15476_ACEOF
15477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15479 ac_status=$?
15480 grep -v '^ *+' conftest.er1 >conftest.err
15481 rm -f conftest.er1
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } >/dev/null; then
15485 if test -s conftest.err; then
15486 ac_cpp_err=$ac_cxx_preproc_warn_flag
15487 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15488 else
15489 ac_cpp_err=
15490 fi
15491else
15492 ac_cpp_err=yes
15493fi
15494if test -z "$ac_cpp_err"; then
15495 :
15496else
15497 echo "$as_me: failed program was:" >&5
15498sed 's/^/| /' conftest.$ac_ext >&5
15499
15500 # Broken: fails on valid input.
15501continue
15502fi
15503rm -f conftest.err conftest.$ac_ext
15504
15505 # OK, works on sane cases. Now check whether non-existent headers
15506 # can be detected and how.
15507 cat >conftest.$ac_ext <<_ACEOF
15508/* confdefs.h. */
15509_ACEOF
15510cat confdefs.h >>conftest.$ac_ext
15511cat >>conftest.$ac_ext <<_ACEOF
15512/* end confdefs.h. */
15513#include <ac_nonexistent.h>
15514_ACEOF
15515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15517 ac_status=$?
15518 grep -v '^ *+' conftest.er1 >conftest.err
15519 rm -f conftest.er1
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } >/dev/null; then
15523 if test -s conftest.err; then
15524 ac_cpp_err=$ac_cxx_preproc_warn_flag
15525 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15526 else
15527 ac_cpp_err=
15528 fi
15529else
15530 ac_cpp_err=yes
15531fi
15532if test -z "$ac_cpp_err"; then
15533 # Broken: success on invalid input.
15534continue
15535else
15536 echo "$as_me: failed program was:" >&5
15537sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 # Passes both tests.
15540ac_preproc_ok=:
15541break
15542fi
15543rm -f conftest.err conftest.$ac_ext
15544
15545done
15546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15547rm -f conftest.err conftest.$ac_ext
15548if $ac_preproc_ok; then
15549 break
15550fi
15551
15552 done
15553 ac_cv_prog_CXXCPP=$CXXCPP
15554
15555fi
15556 CXXCPP=$ac_cv_prog_CXXCPP
15557else
15558 ac_cv_prog_CXXCPP=$CXXCPP
15559fi
15560echo "$as_me:$LINENO: result: $CXXCPP" >&5
15561echo "${ECHO_T}$CXXCPP" >&6
15562ac_preproc_ok=false
15563for ac_cxx_preproc_warn_flag in '' yes
15564do
15565 # Use a header file that comes with gcc, so configuring glibc
15566 # with a fresh cross-compiler works.
15567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15568 # <limits.h> exists even on freestanding compilers.
15569 # On the NeXT, cc -E runs the code through the compiler's parser,
15570 # not just through cpp. "Syntax error" is here to catch this case.
15571 cat >conftest.$ac_ext <<_ACEOF
15572/* confdefs.h. */
15573_ACEOF
15574cat confdefs.h >>conftest.$ac_ext
15575cat >>conftest.$ac_ext <<_ACEOF
15576/* end confdefs.h. */
15577#ifdef __STDC__
15578# include <limits.h>
15579#else
15580# include <assert.h>
15581#endif
15582 Syntax error
15583_ACEOF
15584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15586 ac_status=$?
15587 grep -v '^ *+' conftest.er1 >conftest.err
15588 rm -f conftest.er1
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } >/dev/null; then
15592 if test -s conftest.err; then
15593 ac_cpp_err=$ac_cxx_preproc_warn_flag
15594 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15595 else
15596 ac_cpp_err=
15597 fi
15598else
15599 ac_cpp_err=yes
15600fi
15601if test -z "$ac_cpp_err"; then
15602 :
15603else
15604 echo "$as_me: failed program was:" >&5
15605sed 's/^/| /' conftest.$ac_ext >&5
15606
15607 # Broken: fails on valid input.
15608continue
15609fi
15610rm -f conftest.err conftest.$ac_ext
15611
15612 # OK, works on sane cases. Now check whether non-existent headers
15613 # can be detected and how.
15614 cat >conftest.$ac_ext <<_ACEOF
15615/* confdefs.h. */
15616_ACEOF
15617cat confdefs.h >>conftest.$ac_ext
15618cat >>conftest.$ac_ext <<_ACEOF
15619/* end confdefs.h. */
15620#include <ac_nonexistent.h>
15621_ACEOF
15622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15624 ac_status=$?
15625 grep -v '^ *+' conftest.er1 >conftest.err
15626 rm -f conftest.er1
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } >/dev/null; then
15630 if test -s conftest.err; then
15631 ac_cpp_err=$ac_cxx_preproc_warn_flag
15632 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15633 else
15634 ac_cpp_err=
15635 fi
15636else
15637 ac_cpp_err=yes
15638fi
15639if test -z "$ac_cpp_err"; then
15640 # Broken: success on invalid input.
15641continue
15642else
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 # Passes both tests.
15647ac_preproc_ok=:
15648break
15649fi
15650rm -f conftest.err conftest.$ac_ext
15651
15652done
15653# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15654rm -f conftest.err conftest.$ac_ext
15655if $ac_preproc_ok; then
15656 :
15657else
15658 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15659See \`config.log' for more details." >&5
15660echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15661See \`config.log' for more details." >&2;}
15662 { (exit 1); exit 1; }; }
15663fi
15664
15665ac_ext=cc
15666ac_cpp='$CXXCPP $CPPFLAGS'
15667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15670
15671
a848cd7e
SC
15672echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15673echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15674if test "${ac_cv_header_stdc+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676else
15677 cat >conftest.$ac_ext <<_ACEOF
15678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
15683#include <stdlib.h>
15684#include <stdarg.h>
15685#include <string.h>
15686#include <float.h>
15687
15688int
15689main ()
15690{
15691
15692 ;
15693 return 0;
15694}
15695_ACEOF
15696rm -f conftest.$ac_objext
15697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15698 (eval $ac_compile) 2>conftest.er1
a848cd7e 15699 ac_status=$?
ac1cb8d3
VS
15700 grep -v '^ *+' conftest.er1 >conftest.err
15701 rm -f conftest.er1
15702 cat conftest.err >&5
a848cd7e
SC
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } &&
5d7b7554 15705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15708 ac_status=$?
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; } &&
15711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; }; then
15717 ac_cv_header_stdc=yes
15718else
15719 echo "$as_me: failed program was:" >&5
15720sed 's/^/| /' conftest.$ac_ext >&5
15721
15722ac_cv_header_stdc=no
15723fi
ac1cb8d3 15724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15725
15726if test $ac_cv_header_stdc = yes; then
15727 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15728 cat >conftest.$ac_ext <<_ACEOF
15729/* confdefs.h. */
15730_ACEOF
15731cat confdefs.h >>conftest.$ac_ext
15732cat >>conftest.$ac_ext <<_ACEOF
15733/* end confdefs.h. */
15734#include <string.h>
15735
15736_ACEOF
15737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15738 $EGREP "memchr" >/dev/null 2>&1; then
15739 :
15740else
15741 ac_cv_header_stdc=no
15742fi
15743rm -f conftest*
15744
15745fi
15746
15747if test $ac_cv_header_stdc = yes; then
15748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15749 cat >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#include <stdlib.h>
15756
15757_ACEOF
15758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15759 $EGREP "free" >/dev/null 2>&1; then
15760 :
15761else
15762 ac_cv_header_stdc=no
15763fi
15764rm -f conftest*
15765
15766fi
15767
15768if test $ac_cv_header_stdc = yes; then
15769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15770 if test "$cross_compiling" = yes; then
15771 :
15772else
15773 cat >conftest.$ac_ext <<_ACEOF
15774/* confdefs.h. */
15775_ACEOF
15776cat confdefs.h >>conftest.$ac_ext
15777cat >>conftest.$ac_ext <<_ACEOF
15778/* end confdefs.h. */
15779#include <ctype.h>
15780#if ((' ' & 0x0FF) == 0x020)
15781# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15782# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15783#else
15784# define ISLOWER(c) \
ac1cb8d3
VS
15785 (('a' <= (c) && (c) <= 'i') \
15786 || ('j' <= (c) && (c) <= 'r') \
15787 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15788# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15789#endif
15790
15791#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15792int
15793main ()
15794{
15795 int i;
15796 for (i = 0; i < 256; i++)
15797 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15798 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15799 exit(2);
15800 exit (0);
15801}
15802_ACEOF
15803rm -f conftest$ac_exeext
15804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15805 (eval $ac_link) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 :
15815else
15816 echo "$as_me: program exited with status $ac_status" >&5
15817echo "$as_me: failed program was:" >&5
15818sed 's/^/| /' conftest.$ac_ext >&5
15819
15820( exit $ac_status )
15821ac_cv_header_stdc=no
15822fi
ac1cb8d3 15823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15824fi
15825fi
15826fi
15827echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15828echo "${ECHO_T}$ac_cv_header_stdc" >&6
15829if test $ac_cv_header_stdc = yes; then
15830
15831cat >>confdefs.h <<\_ACEOF
15832#define STDC_HEADERS 1
15833_ACEOF
15834
15835fi
15836
15837# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15848 inttypes.h stdint.h unistd.h
a848cd7e
SC
15849do
15850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15851echo "$as_me:$LINENO: checking for $ac_header" >&5
15852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15853if eval "test \"\${$as_ac_Header+set}\" = set"; then
15854 echo $ECHO_N "(cached) $ECHO_C" >&6
15855else
15856 cat >conftest.$ac_ext <<_ACEOF
15857/* confdefs.h. */
15858_ACEOF
15859cat confdefs.h >>conftest.$ac_ext
15860cat >>conftest.$ac_ext <<_ACEOF
15861/* end confdefs.h. */
15862$ac_includes_default
15863
15864#include <$ac_header>
15865_ACEOF
15866rm -f conftest.$ac_objext
15867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15868 (eval $ac_compile) 2>conftest.er1
a848cd7e 15869 ac_status=$?
ac1cb8d3
VS
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
a848cd7e
SC
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
5d7b7554 15875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; } &&
15881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 eval "$as_ac_Header=yes"
15888else
15889 echo "$as_me: failed program was:" >&5
15890sed 's/^/| /' conftest.$ac_ext >&5
15891
15892eval "$as_ac_Header=no"
15893fi
ac1cb8d3 15894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15895fi
15896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15898if test `eval echo '${'$as_ac_Header'}'` = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15901_ACEOF
15902
15903fi
15904
15905done
15906
15907
15908
15909for ac_header in stdlib.h
15910do
15911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15912if eval "test \"\${$as_ac_Header+set}\" = set"; then
15913 echo "$as_me:$LINENO: checking for $ac_header" >&5
15914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15915if eval "test \"\${$as_ac_Header+set}\" = set"; then
15916 echo $ECHO_N "(cached) $ECHO_C" >&6
15917fi
15918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15920else
15921 # Is the header compilable?
15922echo "$as_me:$LINENO: checking $ac_header usability" >&5
15923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15924cat >conftest.$ac_ext <<_ACEOF
15925/* confdefs.h. */
15926_ACEOF
15927cat confdefs.h >>conftest.$ac_ext
15928cat >>conftest.$ac_ext <<_ACEOF
15929/* end confdefs.h. */
15930$ac_includes_default
15931#include <$ac_header>
15932_ACEOF
15933rm -f conftest.$ac_objext
15934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15935 (eval $ac_compile) 2>conftest.er1
a848cd7e 15936 ac_status=$?
ac1cb8d3
VS
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
a848cd7e
SC
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
5d7b7554 15942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_header_compiler=yes
15955else
15956 echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
15959ac_header_compiler=no
15960fi
ac1cb8d3 15961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15963echo "${ECHO_T}$ac_header_compiler" >&6
15964
15965# Is the header present?
15966echo "$as_me:$LINENO: checking $ac_header presence" >&5
15967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15968cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974#include <$ac_header>
15975_ACEOF
15976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } >/dev/null; then
15984 if test -s conftest.err; then
5d7b7554
VZ
15985 ac_cpp_err=$ac_cxx_preproc_warn_flag
15986 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
15987 else
15988 ac_cpp_err=
15989 fi
15990else
15991 ac_cpp_err=yes
15992fi
15993if test -z "$ac_cpp_err"; then
15994 ac_header_preproc=yes
15995else
15996 echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999 ac_header_preproc=no
16000fi
16001rm -f conftest.err conftest.$ac_ext
16002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16003echo "${ECHO_T}$ac_header_preproc" >&6
16004
16005# So? What about this header?
5d7b7554 16006case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16007 yes:no: )
a848cd7e
SC
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16009echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16011echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16012 ac_header_preproc=yes
a848cd7e 16013 ;;
ac1cb8d3 16014 no:yes:* )
a848cd7e
SC
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16016echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16018echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16020echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16022echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16024echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16026echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16027 (
16028 cat <<\_ASBOX
ac1cb8d3
VS
16029## ----------------------------------------- ##
16030## Report this to wx-dev@lists.wxwidgets.org ##
16031## ----------------------------------------- ##
a848cd7e
SC
16032_ASBOX
16033 ) |
16034 sed "s/^/$as_me: WARNING: /" >&2
16035 ;;
16036esac
16037echo "$as_me:$LINENO: checking for $ac_header" >&5
16038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16039if eval "test \"\${$as_ac_Header+set}\" = set"; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041else
ac1cb8d3 16042 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16043fi
16044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16046
16047fi
16048if test `eval echo '${'$as_ac_Header'}'` = yes; then
16049 cat >>confdefs.h <<_ACEOF
16050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16051_ACEOF
16052
16053fi
16054
16055done
16056
16057
16058for ac_header in malloc.h
16059do
16060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16061if eval "test \"\${$as_ac_Header+set}\" = set"; then
16062 echo "$as_me:$LINENO: checking for $ac_header" >&5
16063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16064if eval "test \"\${$as_ac_Header+set}\" = set"; then
16065 echo $ECHO_N "(cached) $ECHO_C" >&6
16066fi
16067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16069else
16070 # Is the header compilable?
16071echo "$as_me:$LINENO: checking $ac_header usability" >&5
16072echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16073cat >conftest.$ac_ext <<_ACEOF
16074/* confdefs.h. */
16075_ACEOF
16076cat confdefs.h >>conftest.$ac_ext
16077cat >>conftest.$ac_ext <<_ACEOF
16078/* end confdefs.h. */
16079$ac_includes_default
16080#include <$ac_header>
16081_ACEOF
16082rm -f conftest.$ac_objext
16083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16084 (eval $ac_compile) 2>conftest.er1
a848cd7e 16085 ac_status=$?
ac1cb8d3
VS
16086 grep -v '^ *+' conftest.er1 >conftest.err
16087 rm -f conftest.er1
16088 cat conftest.err >&5
a848cd7e
SC
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
5d7b7554 16091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; } &&
16097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 ac_header_compiler=yes
16104else
16105 echo "$as_me: failed program was:" >&5
16106sed 's/^/| /' conftest.$ac_ext >&5
16107
16108ac_header_compiler=no
16109fi
ac1cb8d3 16110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16111echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16112echo "${ECHO_T}$ac_header_compiler" >&6
16113
16114# Is the header present?
16115echo "$as_me:$LINENO: checking $ac_header presence" >&5
16116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16117cat >conftest.$ac_ext <<_ACEOF
16118/* confdefs.h. */
16119_ACEOF
16120cat confdefs.h >>conftest.$ac_ext
16121cat >>conftest.$ac_ext <<_ACEOF
16122/* end confdefs.h. */
16123#include <$ac_header>
16124_ACEOF
16125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16127 ac_status=$?
16128 grep -v '^ *+' conftest.er1 >conftest.err
16129 rm -f conftest.er1
16130 cat conftest.err >&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } >/dev/null; then
16133 if test -s conftest.err; then
5d7b7554
VZ
16134 ac_cpp_err=$ac_cxx_preproc_warn_flag
16135 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16136 else
16137 ac_cpp_err=
16138 fi
16139else
16140 ac_cpp_err=yes
16141fi
16142if test -z "$ac_cpp_err"; then
16143 ac_header_preproc=yes
16144else
16145 echo "$as_me: failed program was:" >&5
16146sed 's/^/| /' conftest.$ac_ext >&5
16147
16148 ac_header_preproc=no
16149fi
16150rm -f conftest.err conftest.$ac_ext
16151echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16152echo "${ECHO_T}$ac_header_preproc" >&6
16153
16154# So? What about this header?
5d7b7554 16155case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16156 yes:no: )
a848cd7e
SC
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16158echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16160echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16161 ac_header_preproc=yes
a848cd7e 16162 ;;
ac1cb8d3 16163 no:yes:* )
a848cd7e
SC
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16167echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16169echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16171echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16175echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16176 (
16177 cat <<\_ASBOX
ac1cb8d3
VS
16178## ----------------------------------------- ##
16179## Report this to wx-dev@lists.wxwidgets.org ##
16180## ----------------------------------------- ##
a848cd7e
SC
16181_ASBOX
16182 ) |
16183 sed "s/^/$as_me: WARNING: /" >&2
16184 ;;
16185esac
16186echo "$as_me:$LINENO: checking for $ac_header" >&5
16187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16188if eval "test \"\${$as_ac_Header+set}\" = set"; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16190else
ac1cb8d3 16191 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16192fi
16193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16194echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16195
16196fi
16197if test `eval echo '${'$as_ac_Header'}'` = yes; then
16198 cat >>confdefs.h <<_ACEOF
16199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16200_ACEOF
16201
16202fi
16203
16204done
16205
16206
16207for ac_header in unistd.h
16208do
16209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16210if eval "test \"\${$as_ac_Header+set}\" = set"; then
16211 echo "$as_me:$LINENO: checking for $ac_header" >&5
16212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16213if eval "test \"\${$as_ac_Header+set}\" = set"; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16215fi
16216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16218else
16219 # Is the header compilable?
16220echo "$as_me:$LINENO: checking $ac_header usability" >&5
16221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16222cat >conftest.$ac_ext <<_ACEOF
16223/* confdefs.h. */
16224_ACEOF
16225cat confdefs.h >>conftest.$ac_ext
16226cat >>conftest.$ac_ext <<_ACEOF
16227/* end confdefs.h. */
16228$ac_includes_default
16229#include <$ac_header>
16230_ACEOF
16231rm -f conftest.$ac_objext
16232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16233 (eval $ac_compile) 2>conftest.er1
a848cd7e 16234 ac_status=$?
ac1cb8d3
VS
16235 grep -v '^ *+' conftest.er1 >conftest.err
16236 rm -f conftest.er1
16237 cat conftest.err >&5
a848cd7e
SC
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } &&
5d7b7554 16240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16243 ac_status=$?
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; } &&
16246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }; then
16252 ac_header_compiler=yes
16253else
16254 echo "$as_me: failed program was:" >&5
16255sed 's/^/| /' conftest.$ac_ext >&5
16256
16257ac_header_compiler=no
16258fi
ac1cb8d3 16259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16260echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16261echo "${ECHO_T}$ac_header_compiler" >&6
16262
16263# Is the header present?
16264echo "$as_me:$LINENO: checking $ac_header presence" >&5
16265echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16266cat >conftest.$ac_ext <<_ACEOF
16267/* confdefs.h. */
16268_ACEOF
16269cat confdefs.h >>conftest.$ac_ext
16270cat >>conftest.$ac_ext <<_ACEOF
16271/* end confdefs.h. */
16272#include <$ac_header>
16273_ACEOF
16274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } >/dev/null; then
16282 if test -s conftest.err; then
5d7b7554
VZ
16283 ac_cpp_err=$ac_cxx_preproc_warn_flag
16284 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16285 else
16286 ac_cpp_err=
16287 fi
16288else
16289 ac_cpp_err=yes
16290fi
16291if test -z "$ac_cpp_err"; then
16292 ac_header_preproc=yes
16293else
16294 echo "$as_me: failed program was:" >&5
16295sed 's/^/| /' conftest.$ac_ext >&5
16296
16297 ac_header_preproc=no
16298fi
16299rm -f conftest.err conftest.$ac_ext
16300echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16301echo "${ECHO_T}$ac_header_preproc" >&6
16302
16303# So? What about this header?
5d7b7554 16304case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16305 yes:no: )
a848cd7e
SC
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16310 ac_header_preproc=yes
a848cd7e 16311 ;;
ac1cb8d3 16312 no:yes:* )
a848cd7e
SC
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16325 (
16326 cat <<\_ASBOX
ac1cb8d3
VS
16327## ----------------------------------------- ##
16328## Report this to wx-dev@lists.wxwidgets.org ##
16329## ----------------------------------------- ##
a848cd7e
SC
16330_ASBOX
16331 ) |
16332 sed "s/^/$as_me: WARNING: /" >&2
16333 ;;
16334esac
16335echo "$as_me:$LINENO: checking for $ac_header" >&5
16336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16337if eval "test \"\${$as_ac_Header+set}\" = set"; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16339else
ac1cb8d3 16340 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16341fi
16342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16344
16345fi
16346if test `eval echo '${'$as_ac_Header'}'` = yes; then
16347 cat >>confdefs.h <<_ACEOF
16348#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16349_ACEOF
16350
16351fi
16352
16353done
16354
16355
16356for ac_header in wchar.h
16357do
16358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16359if eval "test \"\${$as_ac_Header+set}\" = set"; then
16360 echo "$as_me:$LINENO: checking for $ac_header" >&5
16361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16362if eval "test \"\${$as_ac_Header+set}\" = set"; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16364fi
16365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16367else
16368 # Is the header compilable?
16369echo "$as_me:$LINENO: checking $ac_header usability" >&5
16370echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16371cat >conftest.$ac_ext <<_ACEOF
16372/* confdefs.h. */
16373_ACEOF
16374cat confdefs.h >>conftest.$ac_ext
16375cat >>conftest.$ac_ext <<_ACEOF
16376/* end confdefs.h. */
16377$ac_includes_default
16378#include <$ac_header>
16379_ACEOF
16380rm -f conftest.$ac_objext
16381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16382 (eval $ac_compile) 2>conftest.er1
a848cd7e 16383 ac_status=$?
ac1cb8d3
VS
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
a848cd7e
SC
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
5d7b7554 16389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; } &&
16395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16398 ac_status=$?
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401 ac_header_compiler=yes
16402else
16403 echo "$as_me: failed program was:" >&5
16404sed 's/^/| /' conftest.$ac_ext >&5
16405
16406ac_header_compiler=no
16407fi
ac1cb8d3 16408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16409echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16410echo "${ECHO_T}$ac_header_compiler" >&6
16411
16412# Is the header present?
16413echo "$as_me:$LINENO: checking $ac_header presence" >&5
16414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16415cat >conftest.$ac_ext <<_ACEOF
16416/* confdefs.h. */
16417_ACEOF
16418cat confdefs.h >>conftest.$ac_ext
16419cat >>conftest.$ac_ext <<_ACEOF
16420/* end confdefs.h. */
16421#include <$ac_header>
16422_ACEOF
16423if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16425 ac_status=$?
16426 grep -v '^ *+' conftest.er1 >conftest.err
16427 rm -f conftest.er1
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } >/dev/null; then
16431 if test -s conftest.err; then
5d7b7554
VZ
16432 ac_cpp_err=$ac_cxx_preproc_warn_flag
16433 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16434 else
16435 ac_cpp_err=
16436 fi
16437else
16438 ac_cpp_err=yes
16439fi
16440if test -z "$ac_cpp_err"; then
16441 ac_header_preproc=yes
16442else
16443 echo "$as_me: failed program was:" >&5
16444sed 's/^/| /' conftest.$ac_ext >&5
16445
16446 ac_header_preproc=no
16447fi
16448rm -f conftest.err conftest.$ac_ext
16449echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16450echo "${ECHO_T}$ac_header_preproc" >&6
16451
16452# So? What about this header?
5d7b7554 16453case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16454 yes:no: )
a848cd7e
SC
16455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16458echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16459 ac_header_preproc=yes
a848cd7e 16460 ;;
ac1cb8d3 16461 no:yes:* )
a848cd7e
SC
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16463echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16465echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16467echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16469echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16471echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16473echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16474 (
16475 cat <<\_ASBOX
ac1cb8d3
VS
16476## ----------------------------------------- ##
16477## Report this to wx-dev@lists.wxwidgets.org ##
16478## ----------------------------------------- ##
a848cd7e
SC
16479_ASBOX
16480 ) |
16481 sed "s/^/$as_me: WARNING: /" >&2
16482 ;;
16483esac
16484echo "$as_me:$LINENO: checking for $ac_header" >&5
16485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16486if eval "test \"\${$as_ac_Header+set}\" = set"; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488else
ac1cb8d3 16489 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16490fi
16491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16493
16494fi
16495if test `eval echo '${'$as_ac_Header'}'` = yes; then
16496 cat >>confdefs.h <<_ACEOF
16497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16498_ACEOF
16499
16500fi
16501
16502done
16503
16504
16505if test "$ac_cv_header_wchar_h" != "yes"; then
16506
16507for ac_header in wcstr.h
16508do
16509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16510if eval "test \"\${$as_ac_Header+set}\" = set"; then
16511 echo "$as_me:$LINENO: checking for $ac_header" >&5
16512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16513if eval "test \"\${$as_ac_Header+set}\" = set"; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16515fi
16516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16518else
16519 # Is the header compilable?
16520echo "$as_me:$LINENO: checking $ac_header usability" >&5
16521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16522cat >conftest.$ac_ext <<_ACEOF
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
16528$ac_includes_default
16529#include <$ac_header>
16530_ACEOF
16531rm -f conftest.$ac_objext
16532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16533 (eval $ac_compile) 2>conftest.er1
a848cd7e 16534 ac_status=$?
ac1cb8d3
VS
16535 grep -v '^ *+' conftest.er1 >conftest.err
16536 rm -f conftest.er1
16537 cat conftest.err >&5
a848cd7e
SC
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } &&
5d7b7554 16540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; } &&
16546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; }; then
16552 ac_header_compiler=yes
16553else
16554 echo "$as_me: failed program was:" >&5
16555sed 's/^/| /' conftest.$ac_ext >&5
16556
16557ac_header_compiler=no
16558fi
ac1cb8d3 16559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16561echo "${ECHO_T}$ac_header_compiler" >&6
16562
16563# Is the header present?
16564echo "$as_me:$LINENO: checking $ac_header presence" >&5
16565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16566cat >conftest.$ac_ext <<_ACEOF
16567/* confdefs.h. */
16568_ACEOF
16569cat confdefs.h >>conftest.$ac_ext
16570cat >>conftest.$ac_ext <<_ACEOF
16571/* end confdefs.h. */
16572#include <$ac_header>
16573_ACEOF
16574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16576 ac_status=$?
16577 grep -v '^ *+' conftest.er1 >conftest.err
16578 rm -f conftest.er1
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } >/dev/null; then
16582 if test -s conftest.err; then
5d7b7554
VZ
16583 ac_cpp_err=$ac_cxx_preproc_warn_flag
16584 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16585 else
16586 ac_cpp_err=
16587 fi
16588else
16589 ac_cpp_err=yes
16590fi
16591if test -z "$ac_cpp_err"; then
16592 ac_header_preproc=yes
16593else
16594 echo "$as_me: failed program was:" >&5
16595sed 's/^/| /' conftest.$ac_ext >&5
16596
16597 ac_header_preproc=no
16598fi
16599rm -f conftest.err conftest.$ac_ext
16600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16601echo "${ECHO_T}$ac_header_preproc" >&6
16602
16603# So? What about this header?
5d7b7554 16604case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16605 yes:no: )
a848cd7e
SC
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16610 ac_header_preproc=yes
a848cd7e 16611 ;;
ac1cb8d3 16612 no:yes:* )
a848cd7e
SC
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16625 (
16626 cat <<\_ASBOX
ac1cb8d3
VS
16627## ----------------------------------------- ##
16628## Report this to wx-dev@lists.wxwidgets.org ##
16629## ----------------------------------------- ##
a848cd7e
SC
16630_ASBOX
16631 ) |
16632 sed "s/^/$as_me: WARNING: /" >&2
16633 ;;
16634esac
16635echo "$as_me:$LINENO: checking for $ac_header" >&5
16636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16637if eval "test \"\${$as_ac_Header+set}\" = set"; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16639else
ac1cb8d3 16640 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16641fi
16642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16644
16645fi
16646if test `eval echo '${'$as_ac_Header'}'` = yes; then
16647 cat >>confdefs.h <<_ACEOF
16648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16649_ACEOF
16650
16651fi
16652
16653done
16654
16655fi
16656
16657
16658for ac_header in fnmatch.h
16659do
16660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16661if eval "test \"\${$as_ac_Header+set}\" = set"; then
16662 echo "$as_me:$LINENO: checking for $ac_header" >&5
16663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16664if eval "test \"\${$as_ac_Header+set}\" = set"; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16666fi
16667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16669else
16670 # Is the header compilable?
16671echo "$as_me:$LINENO: checking $ac_header usability" >&5
16672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16673cat >conftest.$ac_ext <<_ACEOF
16674/* confdefs.h. */
16675_ACEOF
16676cat confdefs.h >>conftest.$ac_ext
16677cat >>conftest.$ac_ext <<_ACEOF
16678/* end confdefs.h. */
16679$ac_includes_default
16680#include <$ac_header>
16681_ACEOF
16682rm -f conftest.$ac_objext
16683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16684 (eval $ac_compile) 2>conftest.er1
a848cd7e 16685 ac_status=$?
ac1cb8d3
VS
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
a848cd7e
SC
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
5d7b7554 16691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_header_compiler=yes
16704else
16705 echo "$as_me: failed program was:" >&5
16706sed 's/^/| /' conftest.$ac_ext >&5
16707
16708ac_header_compiler=no
16709fi
ac1cb8d3 16710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16711echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16712echo "${ECHO_T}$ac_header_compiler" >&6
16713
16714# Is the header present?
16715echo "$as_me:$LINENO: checking $ac_header presence" >&5
16716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16717cat >conftest.$ac_ext <<_ACEOF
16718/* confdefs.h. */
16719_ACEOF
16720cat confdefs.h >>conftest.$ac_ext
16721cat >>conftest.$ac_ext <<_ACEOF
16722/* end confdefs.h. */
16723#include <$ac_header>
16724_ACEOF
16725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } >/dev/null; then
16733 if test -s conftest.err; then
5d7b7554
VZ
16734 ac_cpp_err=$ac_cxx_preproc_warn_flag
16735 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16736 else
16737 ac_cpp_err=
16738 fi
16739else
16740 ac_cpp_err=yes
16741fi
16742if test -z "$ac_cpp_err"; then
16743 ac_header_preproc=yes
16744else
16745 echo "$as_me: failed program was:" >&5
16746sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 ac_header_preproc=no
16749fi
16750rm -f conftest.err conftest.$ac_ext
16751echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16752echo "${ECHO_T}$ac_header_preproc" >&6
16753
16754# So? What about this header?
5d7b7554 16755case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16756 yes:no: )
a848cd7e
SC
16757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16761 ac_header_preproc=yes
a848cd7e 16762 ;;
ac1cb8d3 16763 no:yes:* )
a848cd7e
SC
16764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16771echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16776 (
16777 cat <<\_ASBOX
ac1cb8d3
VS
16778## ----------------------------------------- ##
16779## Report this to wx-dev@lists.wxwidgets.org ##
16780## ----------------------------------------- ##
a848cd7e
SC
16781_ASBOX
16782 ) |
16783 sed "s/^/$as_me: WARNING: /" >&2
16784 ;;
16785esac
16786echo "$as_me:$LINENO: checking for $ac_header" >&5
16787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16788if eval "test \"\${$as_ac_Header+set}\" = set"; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16790else
ac1cb8d3 16791 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16792fi
16793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16795
16796fi
16797if test `eval echo '${'$as_ac_Header'}'` = yes; then
16798 cat >>confdefs.h <<_ACEOF
16799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16800_ACEOF
16801
16802fi
16803
16804done
16805
16806
a848cd7e
SC
16807
16808for ac_header in langinfo.h
16809do
16810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16811if eval "test \"\${$as_ac_Header+set}\" = set"; then
16812 echo "$as_me:$LINENO: checking for $ac_header" >&5
16813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16814if eval "test \"\${$as_ac_Header+set}\" = set"; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16816fi
16817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16819else
16820 # Is the header compilable?
16821echo "$as_me:$LINENO: checking $ac_header usability" >&5
16822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16823cat >conftest.$ac_ext <<_ACEOF
16824/* confdefs.h. */
16825_ACEOF
16826cat confdefs.h >>conftest.$ac_ext
16827cat >>conftest.$ac_ext <<_ACEOF
16828/* end confdefs.h. */
16829$ac_includes_default
16830#include <$ac_header>
16831_ACEOF
16832rm -f conftest.$ac_objext
16833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16834 (eval $ac_compile) 2>conftest.er1
a848cd7e 16835 ac_status=$?
ac1cb8d3
VS
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
a848cd7e
SC
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
5d7b7554 16841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_header_compiler=yes
16854else
16855 echo "$as_me: failed program was:" >&5
16856sed 's/^/| /' conftest.$ac_ext >&5
16857
16858ac_header_compiler=no
16859fi
ac1cb8d3 16860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16862echo "${ECHO_T}$ac_header_compiler" >&6
16863
16864# Is the header present?
16865echo "$as_me:$LINENO: checking $ac_header presence" >&5
16866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16867cat >conftest.$ac_ext <<_ACEOF
16868/* confdefs.h. */
16869_ACEOF
16870cat confdefs.h >>conftest.$ac_ext
16871cat >>conftest.$ac_ext <<_ACEOF
16872/* end confdefs.h. */
16873#include <$ac_header>
16874_ACEOF
16875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16877 ac_status=$?
16878 grep -v '^ *+' conftest.er1 >conftest.err
16879 rm -f conftest.er1
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } >/dev/null; then
16883 if test -s conftest.err; then
5d7b7554
VZ
16884 ac_cpp_err=$ac_cxx_preproc_warn_flag
16885 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16886 else
16887 ac_cpp_err=
16888 fi
16889else
16890 ac_cpp_err=yes
16891fi
16892if test -z "$ac_cpp_err"; then
16893 ac_header_preproc=yes
16894else
16895 echo "$as_me: failed program was:" >&5
16896sed 's/^/| /' conftest.$ac_ext >&5
16897
16898 ac_header_preproc=no
16899fi
16900rm -f conftest.err conftest.$ac_ext
16901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16902echo "${ECHO_T}$ac_header_preproc" >&6
16903
16904# So? What about this header?
5d7b7554 16905case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16906 yes:no: )
a848cd7e
SC
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16911 ac_header_preproc=yes
a848cd7e 16912 ;;
ac1cb8d3 16913 no:yes:* )
a848cd7e
SC
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16921echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16926 (
16927 cat <<\_ASBOX
ac1cb8d3
VS
16928## ----------------------------------------- ##
16929## Report this to wx-dev@lists.wxwidgets.org ##
16930## ----------------------------------------- ##
a848cd7e
SC
16931_ASBOX
16932 ) |
16933 sed "s/^/$as_me: WARNING: /" >&2
16934 ;;
16935esac
16936echo "$as_me:$LINENO: checking for $ac_header" >&5
16937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16938if eval "test \"\${$as_ac_Header+set}\" = set"; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940else
ac1cb8d3 16941 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16942fi
16943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16945
16946fi
16947if test `eval echo '${'$as_ac_Header'}'` = yes; then
16948 cat >>confdefs.h <<_ACEOF
16949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16950_ACEOF
16951
16952fi
16953
16954done
16955
16956
16957case "${host}" in
16958 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16959 if test $ac_cv_header_langinfo_h = "yes" \
16960 -a \( "$wx_cv_gccversion" = "EMX2" \
16961 -o "$wx_cv_gccversion" = "EMX3" \
16962 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16963 LIBS="$LIBS -lintl"
16964 fi
16965 ;;
16966esac
16967
a848cd7e
SC
16968
16969echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16970echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16971if test "${ac_cv_c_const+set}" = set; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16973else
16974 cat >conftest.$ac_ext <<_ACEOF
16975/* confdefs.h. */
16976_ACEOF
16977cat confdefs.h >>conftest.$ac_ext
16978cat >>conftest.$ac_ext <<_ACEOF
16979/* end confdefs.h. */
16980
16981int
16982main ()
16983{
16984/* FIXME: Include the comments suggested by Paul. */
16985#ifndef __cplusplus
16986 /* Ultrix mips cc rejects this. */
16987 typedef int charset[2];
16988 const charset x;
16989 /* SunOS 4.1.1 cc rejects this. */
16990 char const *const *ccp;
16991 char **p;
16992 /* NEC SVR4.0.2 mips cc rejects this. */
16993 struct point {int x, y;};
16994 static struct point const zero = {0,0};
16995 /* AIX XL C 1.02.0.0 rejects this.
16996 It does not let you subtract one const X* pointer from another in
16997 an arm of an if-expression whose if-part is not a constant
16998 expression */
16999 const char *g = "string";
17000 ccp = &g + (g ? g-g : 0);
17001 /* HPUX 7.0 cc rejects these. */
17002 ++ccp;
17003 p = (char**) ccp;
17004 ccp = (char const *const *) p;
17005 { /* SCO 3.2v4 cc rejects this. */
17006 char *t;
17007 char const *s = 0 ? (char *) 0 : (char const *) 0;
17008
17009 *t++ = 0;
17010 }
17011 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17012 int x[] = {25, 17};
17013 const int *foo = &x[0];
17014 ++foo;
17015 }
17016 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17017 typedef const int *iptr;
17018 iptr p = 0;
17019 ++p;
17020 }
17021 { /* AIX XL C 1.02.0.0 rejects this saying
17022 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17023 struct s { int j; const int *ap[3]; };
17024 struct s *b; b->j = 5;
17025 }
17026 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17027 const int foo = 10;
17028 }
17029#endif
17030
17031 ;
17032 return 0;
17033}
17034_ACEOF
17035rm -f conftest.$ac_objext
17036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17037 (eval $ac_compile) 2>conftest.er1
a848cd7e 17038 ac_status=$?
ac1cb8d3
VS
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
a848cd7e
SC
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
5d7b7554 17044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 ac_cv_c_const=yes
17057else
17058 echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
17060
17061ac_cv_c_const=no
17062fi
ac1cb8d3 17063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17064fi
17065echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17066echo "${ECHO_T}$ac_cv_c_const" >&6
17067if test $ac_cv_c_const = no; then
17068
17069cat >>confdefs.h <<\_ACEOF
17070#define const
17071_ACEOF
17072
17073fi
17074
17075echo "$as_me:$LINENO: checking for inline" >&5
17076echo $ECHO_N "checking for inline... $ECHO_C" >&6
17077if test "${ac_cv_c_inline+set}" = set; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17079else
17080 ac_cv_c_inline=no
17081for ac_kw in inline __inline__ __inline; do
17082 cat >conftest.$ac_ext <<_ACEOF
17083/* confdefs.h. */
17084_ACEOF
17085cat confdefs.h >>conftest.$ac_ext
17086cat >>conftest.$ac_ext <<_ACEOF
17087/* end confdefs.h. */
17088#ifndef __cplusplus
17089typedef int foo_t;
17090static $ac_kw foo_t static_foo () {return 0; }
17091$ac_kw foo_t foo () {return 0; }
17092#endif
17093
17094_ACEOF
17095rm -f conftest.$ac_objext
17096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17097 (eval $ac_compile) 2>conftest.er1
a848cd7e 17098 ac_status=$?
ac1cb8d3
VS
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
a848cd7e
SC
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
5d7b7554 17104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 ac_cv_c_inline=$ac_kw; break
17117else
17118 echo "$as_me: failed program was:" >&5
17119sed 's/^/| /' conftest.$ac_ext >&5
17120
17121fi
ac1cb8d3 17122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17123done
17124
17125fi
17126echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17127echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17128
17129
a848cd7e
SC
17130case $ac_cv_c_inline in
17131 inline | yes) ;;
ac1cb8d3
VS
17132 *)
17133 case $ac_cv_c_inline in
17134 no) ac_val=;;
17135 *) ac_val=$ac_cv_c_inline;;
17136 esac
17137 cat >>confdefs.h <<_ACEOF
17138#ifndef __cplusplus
17139#define inline $ac_val
17140#endif
de59c161 17141_ACEOF
ac1cb8d3 17142 ;;
a848cd7e
SC
17143esac
17144
17145
17146echo "$as_me:$LINENO: checking for char" >&5
17147echo $ECHO_N "checking for char... $ECHO_C" >&6
17148if test "${ac_cv_type_char+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150else
17151 cat >conftest.$ac_ext <<_ACEOF
17152/* confdefs.h. */
17153_ACEOF
17154cat confdefs.h >>conftest.$ac_ext
17155cat >>conftest.$ac_ext <<_ACEOF
17156/* end confdefs.h. */
17157$ac_includes_default
17158int
17159main ()
17160{
17161if ((char *) 0)
17162 return 0;
17163if (sizeof (char))
17164 return 0;
17165 ;
17166 return 0;
17167}
17168_ACEOF
17169rm -f conftest.$ac_objext
17170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17171 (eval $ac_compile) 2>conftest.er1
a848cd7e 17172 ac_status=$?
ac1cb8d3
VS
17173 grep -v '^ *+' conftest.er1 >conftest.err
17174 rm -f conftest.er1
17175 cat conftest.err >&5
a848cd7e
SC
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } &&
5d7b7554 17178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 ac_cv_type_char=yes
17191else
17192 echo "$as_me: failed program was:" >&5
17193sed 's/^/| /' conftest.$ac_ext >&5
17194
17195ac_cv_type_char=no
17196fi
ac1cb8d3 17197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17198fi
17199echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17200echo "${ECHO_T}$ac_cv_type_char" >&6
17201
17202echo "$as_me:$LINENO: checking size of char" >&5
17203echo $ECHO_N "checking size of char... $ECHO_C" >&6
17204if test "${ac_cv_sizeof_char+set}" = set; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17206else
17207 if test "$ac_cv_type_char" = yes; then
17208 # The cast to unsigned long works around a bug in the HP C Compiler
17209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17211 # This bug is HP SR number 8606223364.
17212 if test "$cross_compiling" = yes; then
17213 # Depending upon the size, compute the lo and hi bounds.
17214cat >conftest.$ac_ext <<_ACEOF
17215/* confdefs.h. */
17216_ACEOF
17217cat confdefs.h >>conftest.$ac_ext
17218cat >>conftest.$ac_ext <<_ACEOF
17219/* end confdefs.h. */
17220$ac_includes_default
17221int
17222main ()
17223{
17224static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17225test_array [0] = 0
17226
17227 ;
17228 return 0;
17229}
17230_ACEOF
17231rm -f conftest.$ac_objext
17232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17233 (eval $ac_compile) 2>conftest.er1
a848cd7e 17234 ac_status=$?
ac1cb8d3
VS
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
a848cd7e
SC
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
5d7b7554 17240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ac_lo=0 ac_mid=0
17253 while :; do
17254 cat >conftest.$ac_ext <<_ACEOF
17255/* confdefs.h. */
17256_ACEOF
17257cat confdefs.h >>conftest.$ac_ext
17258cat >>conftest.$ac_ext <<_ACEOF
17259/* end confdefs.h. */
17260$ac_includes_default
17261int
17262main ()
17263{
17264static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17265test_array [0] = 0
17266
17267 ;
17268 return 0;
17269}
17270_ACEOF
17271rm -f conftest.$ac_objext
17272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17273 (eval $ac_compile) 2>conftest.er1
a848cd7e 17274 ac_status=$?
ac1cb8d3
VS
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
a848cd7e
SC
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
5d7b7554 17280 { ac_try='test -z "$ac_cxx_werror_flag" || 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; break
17293else
17294 echo "$as_me: failed program was:" >&5
17295sed 's/^/| /' conftest.$ac_ext >&5
17296
17297ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17298 if test $ac_lo -le $ac_mid; then
17299 ac_lo= ac_hi=
17300 break
17301 fi
17302 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17303fi
ac1cb8d3 17304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17305 done
17306else
17307 echo "$as_me: failed program was:" >&5
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
17310cat >conftest.$ac_ext <<_ACEOF
17311/* confdefs.h. */
17312_ACEOF
17313cat confdefs.h >>conftest.$ac_ext
17314cat >>conftest.$ac_ext <<_ACEOF
17315/* end confdefs.h. */
17316$ac_includes_default
17317int
17318main ()
17319{
17320static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17321test_array [0] = 0
17322
17323 ;
17324 return 0;
17325}
17326_ACEOF
17327rm -f conftest.$ac_objext
17328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17329 (eval $ac_compile) 2>conftest.er1
a848cd7e 17330 ac_status=$?
ac1cb8d3
VS
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
a848cd7e
SC
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
5d7b7554 17336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; } &&
17342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; }; then
17348 ac_hi=-1 ac_mid=-1
17349 while :; do
17350 cat >conftest.$ac_ext <<_ACEOF
17351/* confdefs.h. */
17352_ACEOF
17353cat confdefs.h >>conftest.$ac_ext
17354cat >>conftest.$ac_ext <<_ACEOF
17355/* end confdefs.h. */
17356$ac_includes_default
17357int
17358main ()
17359{
17360static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17361test_array [0] = 0
17362
17363 ;
17364 return 0;
17365}
17366_ACEOF
17367rm -f conftest.$ac_objext
17368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17369 (eval $ac_compile) 2>conftest.er1
a848cd7e 17370 ac_status=$?
ac1cb8d3
VS
17371 grep -v '^ *+' conftest.er1 >conftest.err
17372 rm -f conftest.er1
17373 cat conftest.err >&5
a848cd7e
SC
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
5d7b7554 17376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; } &&
17382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 ac_lo=$ac_mid; break
17389else
17390 echo "$as_me: failed program was:" >&5
17391sed 's/^/| /' conftest.$ac_ext >&5
17392
17393ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17394 if test $ac_mid -le $ac_hi; then
17395 ac_lo= ac_hi=
17396 break
17397 fi
17398 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17399fi
ac1cb8d3 17400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17401 done
17402else
17403 echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
17406ac_lo= ac_hi=
17407fi
ac1cb8d3 17408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17409fi
ac1cb8d3 17410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17411# Binary search between lo and hi bounds.
17412while test "x$ac_lo" != "x$ac_hi"; do
17413 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17414 cat >conftest.$ac_ext <<_ACEOF
17415/* confdefs.h. */
17416_ACEOF
17417cat confdefs.h >>conftest.$ac_ext
17418cat >>conftest.$ac_ext <<_ACEOF
17419/* end confdefs.h. */
17420$ac_includes_default
17421int
17422main ()
17423{
17424static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17425test_array [0] = 0
17426
17427 ;
17428 return 0;
17429}
17430_ACEOF
17431rm -f conftest.$ac_objext
17432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17433 (eval $ac_compile) 2>conftest.er1
a848cd7e 17434 ac_status=$?
ac1cb8d3
VS
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
a848cd7e
SC
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } &&
5d7b7554 17440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 ac_hi=$ac_mid
17453else
17454 echo "$as_me: failed program was:" >&5
17455sed 's/^/| /' conftest.$ac_ext >&5
17456
17457ac_lo=`expr '(' $ac_mid ')' + 1`
17458fi
ac1cb8d3 17459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17460done
17461case $ac_lo in
17462?*) ac_cv_sizeof_char=$ac_lo;;
17463'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17464See \`config.log' for more details." >&5
17465echo "$as_me: error: cannot compute sizeof (char), 77
17466See \`config.log' for more details." >&2;}
17467 { (exit 1); exit 1; }; } ;;
17468esac
17469else
17470 if test "$cross_compiling" = yes; then
5d7b7554
VZ
17471 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17472echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17473 { (exit 1); exit 1; }; }
17474else
17475 cat >conftest.$ac_ext <<_ACEOF
17476/* confdefs.h. */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
17480/* end confdefs.h. */
17481$ac_includes_default
17482long longval () { return (long) (sizeof (char)); }
17483unsigned long ulongval () { return (long) (sizeof (char)); }
17484#include <stdio.h>
17485#include <stdlib.h>
17486int
17487main ()
17488{
17489
17490 FILE *f = fopen ("conftest.val", "w");
17491 if (! f)
17492 exit (1);
17493 if (((long) (sizeof (char))) < 0)
17494 {
17495 long i = longval ();
17496 if (i != ((long) (sizeof (char))))
17497 exit (1);
17498 fprintf (f, "%ld\n", i);
17499 }
17500 else
17501 {
17502 unsigned long i = ulongval ();
17503 if (i != ((long) (sizeof (char))))
17504 exit (1);
17505 fprintf (f, "%lu\n", i);
17506 }
17507 exit (ferror (f) || fclose (f) != 0);
17508
17509 ;
17510 return 0;
17511}
17512_ACEOF
17513rm -f conftest$ac_exeext
17514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17515 (eval $ac_link) 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 ac_cv_sizeof_char=`cat conftest.val`
17525else
17526 echo "$as_me: program exited with status $ac_status" >&5
17527echo "$as_me: failed program was:" >&5
17528sed 's/^/| /' conftest.$ac_ext >&5
17529
17530( exit $ac_status )
17531{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17532See \`config.log' for more details." >&5
17533echo "$as_me: error: cannot compute sizeof (char), 77
17534See \`config.log' for more details." >&2;}
17535 { (exit 1); exit 1; }; }
17536fi
ac1cb8d3 17537rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17538fi
17539fi
17540rm -f conftest.val
17541else
17542 ac_cv_sizeof_char=0
17543fi
17544fi
17545echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17546echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17547cat >>confdefs.h <<_ACEOF
17548#define SIZEOF_CHAR $ac_cv_sizeof_char
17549_ACEOF
17550
17551
17552echo "$as_me:$LINENO: checking for short" >&5
17553echo $ECHO_N "checking for short... $ECHO_C" >&6
17554if test "${ac_cv_type_short+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17556else
17557 cat >conftest.$ac_ext <<_ACEOF
17558/* confdefs.h. */
17559_ACEOF
17560cat confdefs.h >>conftest.$ac_ext
17561cat >>conftest.$ac_ext <<_ACEOF
17562/* end confdefs.h. */
17563$ac_includes_default
17564int
17565main ()
17566{
17567if ((short *) 0)
17568 return 0;
17569if (sizeof (short))
17570 return 0;
17571 ;
17572 return 0;
17573}
17574_ACEOF
17575rm -f conftest.$ac_objext
17576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17577 (eval $ac_compile) 2>conftest.er1
a848cd7e 17578 ac_status=$?
ac1cb8d3
VS
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
a848cd7e
SC
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
5d7b7554 17584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_cv_type_short=yes
17597else
17598 echo "$as_me: failed program was:" >&5
17599sed 's/^/| /' conftest.$ac_ext >&5
17600
17601ac_cv_type_short=no
17602fi
ac1cb8d3 17603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17604fi
17605echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17606echo "${ECHO_T}$ac_cv_type_short" >&6
17607
17608echo "$as_me:$LINENO: checking size of short" >&5
17609echo $ECHO_N "checking size of short... $ECHO_C" >&6
17610if test "${ac_cv_sizeof_short+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612else
17613 if test "$ac_cv_type_short" = yes; then
17614 # The cast to unsigned long works around a bug in the HP C Compiler
17615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17617 # This bug is HP SR number 8606223364.
17618 if test "$cross_compiling" = yes; then
17619 # Depending upon the size, compute the lo and hi bounds.
17620cat >conftest.$ac_ext <<_ACEOF
17621/* confdefs.h. */
17622_ACEOF
17623cat confdefs.h >>conftest.$ac_ext
17624cat >>conftest.$ac_ext <<_ACEOF
17625/* end confdefs.h. */
17626$ac_includes_default
17627int
17628main ()
17629{
17630static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17631test_array [0] = 0
17632
17633 ;
17634 return 0;
17635}
17636_ACEOF
17637rm -f conftest.$ac_objext
17638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17639 (eval $ac_compile) 2>conftest.er1
a848cd7e 17640 ac_status=$?
ac1cb8d3
VS
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
a848cd7e
SC
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
5d7b7554 17646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_lo=0 ac_mid=0
17659 while :; do
17660 cat >conftest.$ac_ext <<_ACEOF
17661/* confdefs.h. */
17662_ACEOF
17663cat confdefs.h >>conftest.$ac_ext
17664cat >>conftest.$ac_ext <<_ACEOF
17665/* end confdefs.h. */
17666$ac_includes_default
17667int
17668main ()
17669{
17670static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17671test_array [0] = 0
17672
17673 ;
17674 return 0;
17675}
17676_ACEOF
17677rm -f conftest.$ac_objext
17678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17679 (eval $ac_compile) 2>conftest.er1
a848cd7e 17680 ac_status=$?
ac1cb8d3
VS
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
a848cd7e
SC
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
5d7b7554 17686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17689 ac_status=$?
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; } &&
17692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 ac_hi=$ac_mid; break
17699else
17700 echo "$as_me: failed program was:" >&5
17701sed 's/^/| /' conftest.$ac_ext >&5
17702
17703ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17704 if test $ac_lo -le $ac_mid; then
17705 ac_lo= ac_hi=
17706 break
17707 fi
17708 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17709fi
ac1cb8d3 17710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17711 done
17712else
17713 echo "$as_me: failed program was:" >&5
17714sed 's/^/| /' conftest.$ac_ext >&5
17715
17716cat >conftest.$ac_ext <<_ACEOF
17717/* confdefs.h. */
17718_ACEOF
17719cat confdefs.h >>conftest.$ac_ext
17720cat >>conftest.$ac_ext <<_ACEOF
17721/* end confdefs.h. */
17722$ac_includes_default
17723int
17724main ()
17725{
17726static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17727test_array [0] = 0
17728
17729 ;
17730 return 0;
17731}
17732_ACEOF
17733rm -f conftest.$ac_objext
17734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17735 (eval $ac_compile) 2>conftest.er1
a848cd7e 17736 ac_status=$?
ac1cb8d3
VS
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
a848cd7e
SC
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
5d7b7554 17742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 ac_hi=-1 ac_mid=-1
17755 while :; do
17756 cat >conftest.$ac_ext <<_ACEOF
17757/* confdefs.h. */
17758_ACEOF
17759cat confdefs.h >>conftest.$ac_ext
17760cat >>conftest.$ac_ext <<_ACEOF
17761/* end confdefs.h. */
17762$ac_includes_default
17763int
17764main ()
17765{
17766static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17767test_array [0] = 0
17768
17769 ;
17770 return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext
17774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17775 (eval $ac_compile) 2>conftest.er1
a848cd7e 17776 ac_status=$?
ac1cb8d3
VS
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
a848cd7e
SC
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
5d7b7554 17782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 ac_lo=$ac_mid; break
17795else
17796 echo "$as_me: failed program was:" >&5
17797sed 's/^/| /' conftest.$ac_ext >&5
17798
17799ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17800 if test $ac_mid -le $ac_hi; then
17801 ac_lo= ac_hi=
17802 break
17803 fi
17804 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17805fi
ac1cb8d3 17806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17807 done
17808else
17809 echo "$as_me: failed program was:" >&5
17810sed 's/^/| /' conftest.$ac_ext >&5
17811
17812ac_lo= ac_hi=
17813fi
ac1cb8d3 17814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17815fi
ac1cb8d3 17816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17817# Binary search between lo and hi bounds.
17818while test "x$ac_lo" != "x$ac_hi"; do
17819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17820 cat >conftest.$ac_ext <<_ACEOF
17821/* confdefs.h. */
17822_ACEOF
17823cat confdefs.h >>conftest.$ac_ext
17824cat >>conftest.$ac_ext <<_ACEOF
17825/* end confdefs.h. */
17826$ac_includes_default
17827int
17828main ()
17829{
17830static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17831test_array [0] = 0
17832
17833 ;
17834 return 0;
17835}
17836_ACEOF
17837rm -f conftest.$ac_objext
17838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17839 (eval $ac_compile) 2>conftest.er1
a848cd7e 17840 ac_status=$?
ac1cb8d3
VS
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
a848cd7e
SC
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
5d7b7554 17846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } &&
17852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_hi=$ac_mid
17859else
17860 echo "$as_me: failed program was:" >&5
17861sed 's/^/| /' conftest.$ac_ext >&5
17862
17863ac_lo=`expr '(' $ac_mid ')' + 1`
17864fi
ac1cb8d3 17865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17866done
17867case $ac_lo in
17868?*) ac_cv_sizeof_short=$ac_lo;;
17869'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17870See \`config.log' for more details." >&5
17871echo "$as_me: error: cannot compute sizeof (short), 77
17872See \`config.log' for more details." >&2;}
17873 { (exit 1); exit 1; }; } ;;
17874esac
17875else
17876 if test "$cross_compiling" = yes; then
5d7b7554
VZ
17877 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17878echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17879 { (exit 1); exit 1; }; }
17880else
17881 cat >conftest.$ac_ext <<_ACEOF
17882/* confdefs.h. */
17883_ACEOF
17884cat confdefs.h >>conftest.$ac_ext
17885cat >>conftest.$ac_ext <<_ACEOF
17886/* end confdefs.h. */
17887$ac_includes_default
17888long longval () { return (long) (sizeof (short)); }
17889unsigned long ulongval () { return (long) (sizeof (short)); }
17890#include <stdio.h>
17891#include <stdlib.h>
17892int
17893main ()
17894{
17895
17896 FILE *f = fopen ("conftest.val", "w");
17897 if (! f)
17898 exit (1);
17899 if (((long) (sizeof (short))) < 0)
17900 {
17901 long i = longval ();
17902 if (i != ((long) (sizeof (short))))
17903 exit (1);
17904 fprintf (f, "%ld\n", i);
17905 }
17906 else
17907 {
17908 unsigned long i = ulongval ();
17909 if (i != ((long) (sizeof (short))))
17910 exit (1);
17911 fprintf (f, "%lu\n", i);
17912 }
17913 exit (ferror (f) || fclose (f) != 0);
17914
17915 ;
17916 return 0;
17917}
17918_ACEOF
17919rm -f conftest$ac_exeext
17920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17921 (eval $ac_link) 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 ac_cv_sizeof_short=`cat conftest.val`
17931else
17932 echo "$as_me: program exited with status $ac_status" >&5
17933echo "$as_me: failed program was:" >&5
17934sed 's/^/| /' conftest.$ac_ext >&5
17935
17936( exit $ac_status )
17937{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17938See \`config.log' for more details." >&5
17939echo "$as_me: error: cannot compute sizeof (short), 77
17940See \`config.log' for more details." >&2;}
17941 { (exit 1); exit 1; }; }
17942fi
ac1cb8d3 17943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17944fi
17945fi
17946rm -f conftest.val
17947else
17948 ac_cv_sizeof_short=0
17949fi
17950fi
17951echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17952echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17953cat >>confdefs.h <<_ACEOF
17954#define SIZEOF_SHORT $ac_cv_sizeof_short
17955_ACEOF
17956
17957
17958echo "$as_me:$LINENO: checking for void *" >&5
17959echo $ECHO_N "checking for void *... $ECHO_C" >&6
17960if test "${ac_cv_type_void_p+set}" = set; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17962else
17963 cat >conftest.$ac_ext <<_ACEOF
17964/* confdefs.h. */
17965_ACEOF
17966cat confdefs.h >>conftest.$ac_ext
17967cat >>conftest.$ac_ext <<_ACEOF
17968/* end confdefs.h. */
17969$ac_includes_default
17970int
17971main ()
17972{
17973if ((void * *) 0)
17974 return 0;
17975if (sizeof (void *))
17976 return 0;
17977 ;
17978 return 0;
17979}
17980_ACEOF
17981rm -f conftest.$ac_objext
17982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17983 (eval $ac_compile) 2>conftest.er1
a848cd7e 17984 ac_status=$?
ac1cb8d3
VS
17985 grep -v '^ *+' conftest.er1 >conftest.err
17986 rm -f conftest.er1
17987 cat conftest.err >&5
a848cd7e
SC
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } &&
5d7b7554 17990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; } &&
17996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; }; then
18002 ac_cv_type_void_p=yes
18003else
18004 echo "$as_me: failed program was:" >&5
18005sed 's/^/| /' conftest.$ac_ext >&5
18006
18007ac_cv_type_void_p=no
18008fi
ac1cb8d3 18009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18010fi
18011echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18012echo "${ECHO_T}$ac_cv_type_void_p" >&6
18013
18014echo "$as_me:$LINENO: checking size of void *" >&5
18015echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18016if test "${ac_cv_sizeof_void_p+set}" = set; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18018else
18019 if test "$ac_cv_type_void_p" = yes; then
18020 # The cast to unsigned long works around a bug in the HP C Compiler
18021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18023 # This bug is HP SR number 8606223364.
18024 if test "$cross_compiling" = yes; then
18025 # Depending upon the size, compute the lo and hi bounds.
18026cat >conftest.$ac_ext <<_ACEOF
18027/* confdefs.h. */
18028_ACEOF
18029cat confdefs.h >>conftest.$ac_ext
18030cat >>conftest.$ac_ext <<_ACEOF
18031/* end confdefs.h. */
18032$ac_includes_default
18033int
18034main ()
18035{
18036static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18037test_array [0] = 0
18038
18039 ;
18040 return 0;
18041}
18042_ACEOF
18043rm -f conftest.$ac_objext
18044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18045 (eval $ac_compile) 2>conftest.er1
a848cd7e 18046 ac_status=$?
ac1cb8d3
VS
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
a848cd7e
SC
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
5d7b7554 18052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; } &&
18058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 ac_lo=0 ac_mid=0
18065 while :; do
18066 cat >conftest.$ac_ext <<_ACEOF
18067/* confdefs.h. */
18068_ACEOF
18069cat confdefs.h >>conftest.$ac_ext
18070cat >>conftest.$ac_ext <<_ACEOF
18071/* end confdefs.h. */
18072$ac_includes_default
18073int
18074main ()
18075{
18076static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18077test_array [0] = 0
18078
18079 ;
18080 return 0;
18081}
18082_ACEOF
18083rm -f conftest.$ac_objext
18084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18085 (eval $ac_compile) 2>conftest.er1
a848cd7e 18086 ac_status=$?
ac1cb8d3
VS
18087 grep -v '^ *+' conftest.er1 >conftest.err
18088 rm -f conftest.er1
18089 cat conftest.err >&5
a848cd7e
SC
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } &&
5d7b7554 18092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 ac_hi=$ac_mid; break
18105else
18106 echo "$as_me: failed program was:" >&5
18107sed 's/^/| /' conftest.$ac_ext >&5
18108
18109ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18110 if test $ac_lo -le $ac_mid; then
18111 ac_lo= ac_hi=
18112 break
18113 fi
18114 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18115fi
ac1cb8d3 18116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18117 done
18118else
18119 echo "$as_me: failed program was:" >&5
18120sed 's/^/| /' conftest.$ac_ext >&5
18121
18122cat >conftest.$ac_ext <<_ACEOF
18123/* confdefs.h. */
18124_ACEOF
18125cat confdefs.h >>conftest.$ac_ext
18126cat >>conftest.$ac_ext <<_ACEOF
18127/* end confdefs.h. */
18128$ac_includes_default
18129int
18130main ()
18131{
18132static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18133test_array [0] = 0
18134
18135 ;
18136 return 0;
18137}
18138_ACEOF
18139rm -f conftest.$ac_objext
18140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18141 (eval $ac_compile) 2>conftest.er1
a848cd7e 18142 ac_status=$?
ac1cb8d3
VS
18143 grep -v '^ *+' conftest.er1 >conftest.err
18144 rm -f conftest.er1
18145 cat conftest.err >&5
a848cd7e
SC
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } &&
5d7b7554 18148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
18160 ac_hi=-1 ac_mid=-1
18161 while :; do
18162 cat >conftest.$ac_ext <<_ACEOF
18163/* confdefs.h. */
18164_ACEOF
18165cat confdefs.h >>conftest.$ac_ext
18166cat >>conftest.$ac_ext <<_ACEOF
18167/* end confdefs.h. */
18168$ac_includes_default
18169int
18170main ()
18171{
18172static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18173test_array [0] = 0
18174
18175 ;
18176 return 0;
18177}
18178_ACEOF
18179rm -f conftest.$ac_objext
18180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18181 (eval $ac_compile) 2>conftest.er1
a848cd7e 18182 ac_status=$?
ac1cb8d3
VS
18183 grep -v '^ *+' conftest.er1 >conftest.err
18184 rm -f conftest.er1
18185 cat conftest.err >&5
a848cd7e
SC
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } &&
5d7b7554 18188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18197 ac_status=$?
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; }; then
18200 ac_lo=$ac_mid; break
18201else
18202 echo "$as_me: failed program was:" >&5
18203sed 's/^/| /' conftest.$ac_ext >&5
18204
18205ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18206 if test $ac_mid -le $ac_hi; then
18207 ac_lo= ac_hi=
18208 break
18209 fi
18210 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18211fi
ac1cb8d3 18212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18213 done
18214else
18215 echo "$as_me: failed program was:" >&5
18216sed 's/^/| /' conftest.$ac_ext >&5
18217
18218ac_lo= ac_hi=
18219fi
ac1cb8d3 18220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18221fi
ac1cb8d3 18222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18223# Binary search between lo and hi bounds.
18224while test "x$ac_lo" != "x$ac_hi"; do
18225 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18226 cat >conftest.$ac_ext <<_ACEOF
18227/* confdefs.h. */
18228_ACEOF
18229cat confdefs.h >>conftest.$ac_ext
18230cat >>conftest.$ac_ext <<_ACEOF
18231/* end confdefs.h. */
18232$ac_includes_default
18233int
18234main ()
18235{
18236static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18237test_array [0] = 0
18238
18239 ;
18240 return 0;
18241}
18242_ACEOF
18243rm -f conftest.$ac_objext
18244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18245 (eval $ac_compile) 2>conftest.er1
a848cd7e 18246 ac_status=$?
ac1cb8d3
VS
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
a848cd7e
SC
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
5d7b7554 18252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_hi=$ac_mid
18265else
18266 echo "$as_me: failed program was:" >&5
18267sed 's/^/| /' conftest.$ac_ext >&5
18268
18269ac_lo=`expr '(' $ac_mid ')' + 1`
18270fi
ac1cb8d3 18271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18272done
18273case $ac_lo in
18274?*) ac_cv_sizeof_void_p=$ac_lo;;
18275'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18276See \`config.log' for more details." >&5
18277echo "$as_me: error: cannot compute sizeof (void *), 77
18278See \`config.log' for more details." >&2;}
18279 { (exit 1); exit 1; }; } ;;
18280esac
18281else
18282 if test "$cross_compiling" = yes; then
5d7b7554
VZ
18283 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18284echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18285 { (exit 1); exit 1; }; }
18286else
18287 cat >conftest.$ac_ext <<_ACEOF
18288/* confdefs.h. */
18289_ACEOF
18290cat confdefs.h >>conftest.$ac_ext
18291cat >>conftest.$ac_ext <<_ACEOF
18292/* end confdefs.h. */
18293$ac_includes_default
18294long longval () { return (long) (sizeof (void *)); }
18295unsigned long ulongval () { return (long) (sizeof (void *)); }
18296#include <stdio.h>
18297#include <stdlib.h>
18298int
18299main ()
18300{
18301
18302 FILE *f = fopen ("conftest.val", "w");
18303 if (! f)
18304 exit (1);
18305 if (((long) (sizeof (void *))) < 0)
18306 {
18307 long i = longval ();
18308 if (i != ((long) (sizeof (void *))))
18309 exit (1);
18310 fprintf (f, "%ld\n", i);
18311 }
18312 else
18313 {
18314 unsigned long i = ulongval ();
18315 if (i != ((long) (sizeof (void *))))
18316 exit (1);
18317 fprintf (f, "%lu\n", i);
18318 }
18319 exit (ferror (f) || fclose (f) != 0);
18320
18321 ;
18322 return 0;
18323}
18324_ACEOF
18325rm -f conftest$ac_exeext
18326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18327 (eval $ac_link) 2>&5
18328 ac_status=$?
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 ac_cv_sizeof_void_p=`cat conftest.val`
18337else
18338 echo "$as_me: program exited with status $ac_status" >&5
18339echo "$as_me: failed program was:" >&5
18340sed 's/^/| /' conftest.$ac_ext >&5
18341
18342( exit $ac_status )
18343{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18344See \`config.log' for more details." >&5
18345echo "$as_me: error: cannot compute sizeof (void *), 77
18346See \`config.log' for more details." >&2;}
18347 { (exit 1); exit 1; }; }
18348fi
ac1cb8d3 18349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18350fi
18351fi
18352rm -f conftest.val
18353else
18354 ac_cv_sizeof_void_p=0
18355fi
18356fi
18357echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18358echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18359cat >>confdefs.h <<_ACEOF
18360#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18361_ACEOF
18362
18363
18364echo "$as_me:$LINENO: checking for int" >&5
18365echo $ECHO_N "checking for int... $ECHO_C" >&6
18366if test "${ac_cv_type_int+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18368else
18369 cat >conftest.$ac_ext <<_ACEOF
18370/* confdefs.h. */
18371_ACEOF
18372cat confdefs.h >>conftest.$ac_ext
18373cat >>conftest.$ac_ext <<_ACEOF
18374/* end confdefs.h. */
18375$ac_includes_default
18376int
18377main ()
18378{
18379if ((int *) 0)
18380 return 0;
18381if (sizeof (int))
18382 return 0;
18383 ;
18384 return 0;
18385}
18386_ACEOF
18387rm -f conftest.$ac_objext
18388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18389 (eval $ac_compile) 2>conftest.er1
a848cd7e 18390 ac_status=$?
ac1cb8d3
VS
18391 grep -v '^ *+' conftest.er1 >conftest.err
18392 rm -f conftest.er1
18393 cat conftest.err >&5
a848cd7e
SC
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
5d7b7554 18396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_type_int=yes
18409else
18410 echo "$as_me: failed program was:" >&5
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413ac_cv_type_int=no
18414fi
ac1cb8d3 18415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18416fi
18417echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18418echo "${ECHO_T}$ac_cv_type_int" >&6
18419
18420echo "$as_me:$LINENO: checking size of int" >&5
18421echo $ECHO_N "checking size of int... $ECHO_C" >&6
18422if test "${ac_cv_sizeof_int+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18424else
18425 if test "$ac_cv_type_int" = yes; then
18426 # The cast to unsigned long works around a bug in the HP C Compiler
18427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18429 # This bug is HP SR number 8606223364.
18430 if test "$cross_compiling" = yes; then
18431 # Depending upon the size, compute the lo and hi bounds.
18432cat >conftest.$ac_ext <<_ACEOF
18433/* confdefs.h. */
18434_ACEOF
18435cat confdefs.h >>conftest.$ac_ext
18436cat >>conftest.$ac_ext <<_ACEOF
18437/* end confdefs.h. */
18438$ac_includes_default
18439int
18440main ()
18441{
18442static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18443test_array [0] = 0
18444
18445 ;
18446 return 0;
18447}
18448_ACEOF
18449rm -f conftest.$ac_objext
18450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18451 (eval $ac_compile) 2>conftest.er1
a848cd7e 18452 ac_status=$?
ac1cb8d3
VS
18453 grep -v '^ *+' conftest.er1 >conftest.err
18454 rm -f conftest.er1
18455 cat conftest.err >&5
a848cd7e
SC
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } &&
5d7b7554 18458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_lo=0 ac_mid=0
18471 while :; do
18472 cat >conftest.$ac_ext <<_ACEOF
18473/* confdefs.h. */
18474_ACEOF
18475cat confdefs.h >>conftest.$ac_ext
18476cat >>conftest.$ac_ext <<_ACEOF
18477/* end confdefs.h. */
18478$ac_includes_default
18479int
18480main ()
18481{
18482static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18483test_array [0] = 0
18484
18485 ;
18486 return 0;
18487}
18488_ACEOF
18489rm -f conftest.$ac_objext
18490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18491 (eval $ac_compile) 2>conftest.er1
a848cd7e 18492 ac_status=$?
ac1cb8d3
VS
18493 grep -v '^ *+' conftest.er1 >conftest.err
18494 rm -f conftest.er1
18495 cat conftest.err >&5
a848cd7e
SC
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
5d7b7554 18498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; } &&
18504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; }; then
18510 ac_hi=$ac_mid; break
18511else
18512 echo "$as_me: failed program was:" >&5
18513sed 's/^/| /' conftest.$ac_ext >&5
18514
18515ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18516 if test $ac_lo -le $ac_mid; then
18517 ac_lo= ac_hi=
18518 break
18519 fi
18520 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18521fi
ac1cb8d3 18522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18523 done
18524else
18525 echo "$as_me: failed program was:" >&5
18526sed 's/^/| /' conftest.$ac_ext >&5
18527
18528cat >conftest.$ac_ext <<_ACEOF
18529/* confdefs.h. */
18530_ACEOF
18531cat confdefs.h >>conftest.$ac_ext
18532cat >>conftest.$ac_ext <<_ACEOF
18533/* end confdefs.h. */
18534$ac_includes_default
18535int
18536main ()
18537{
18538static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18539test_array [0] = 0
18540
18541 ;
18542 return 0;
18543}
18544_ACEOF
18545rm -f conftest.$ac_objext
18546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18547 (eval $ac_compile) 2>conftest.er1
a848cd7e 18548 ac_status=$?
ac1cb8d3
VS
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
a848cd7e
SC
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } &&
5d7b7554 18554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18556 (eval $ac_try) 2>&5
18557 ac_status=$?
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); }; } &&
18560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; }; then
18566 ac_hi=-1 ac_mid=-1
18567 while :; do
18568 cat >conftest.$ac_ext <<_ACEOF
18569/* confdefs.h. */
18570_ACEOF
18571cat confdefs.h >>conftest.$ac_ext
18572cat >>conftest.$ac_ext <<_ACEOF
18573/* end confdefs.h. */
18574$ac_includes_default
18575int
18576main ()
18577{
18578static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18579test_array [0] = 0
18580
18581 ;
18582 return 0;
18583}
18584_ACEOF
18585rm -f conftest.$ac_objext
18586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18587 (eval $ac_compile) 2>conftest.er1
a848cd7e 18588 ac_status=$?
ac1cb8d3
VS
18589 grep -v '^ *+' conftest.er1 >conftest.err
18590 rm -f conftest.er1
18591 cat conftest.err >&5
a848cd7e
SC
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); } &&
5d7b7554 18594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18597 ac_status=$?
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; } &&
18600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602 (eval $ac_try) 2>&5
18603 ac_status=$?
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; }; then
18606 ac_lo=$ac_mid; break
18607else
18608 echo "$as_me: failed program was:" >&5
18609sed 's/^/| /' conftest.$ac_ext >&5
18610
18611ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18612 if test $ac_mid -le $ac_hi; then
18613 ac_lo= ac_hi=
18614 break
18615 fi
18616 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18617fi
ac1cb8d3 18618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18619 done
18620else
18621 echo "$as_me: failed program was:" >&5
18622sed 's/^/| /' conftest.$ac_ext >&5
18623
18624ac_lo= ac_hi=
18625fi
ac1cb8d3 18626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18627fi
ac1cb8d3 18628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18629# Binary search between lo and hi bounds.
18630while test "x$ac_lo" != "x$ac_hi"; do
18631 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18632 cat >conftest.$ac_ext <<_ACEOF
18633/* confdefs.h. */
18634_ACEOF
18635cat confdefs.h >>conftest.$ac_ext
18636cat >>conftest.$ac_ext <<_ACEOF
18637/* end confdefs.h. */
18638$ac_includes_default
18639int
18640main ()
18641{
18642static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18643test_array [0] = 0
18644
18645 ;
18646 return 0;
18647}
18648_ACEOF
18649rm -f conftest.$ac_objext
18650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18651 (eval $ac_compile) 2>conftest.er1
a848cd7e 18652 ac_status=$?
ac1cb8d3
VS
18653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
a848cd7e
SC
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
5d7b7554 18658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 ac_hi=$ac_mid
18671else
18672 echo "$as_me: failed program was:" >&5
18673sed 's/^/| /' conftest.$ac_ext >&5
18674
18675ac_lo=`expr '(' $ac_mid ')' + 1`
18676fi
ac1cb8d3 18677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18678done
18679case $ac_lo in
18680?*) ac_cv_sizeof_int=$ac_lo;;
18681'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18682See \`config.log' for more details." >&5
18683echo "$as_me: error: cannot compute sizeof (int), 77
18684See \`config.log' for more details." >&2;}
18685 { (exit 1); exit 1; }; } ;;
18686esac
18687else
18688 if test "$cross_compiling" = yes; then
5d7b7554
VZ
18689 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18690echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18691 { (exit 1); exit 1; }; }
18692else
18693 cat >conftest.$ac_ext <<_ACEOF
18694/* confdefs.h. */
18695_ACEOF
18696cat confdefs.h >>conftest.$ac_ext
18697cat >>conftest.$ac_ext <<_ACEOF
18698/* end confdefs.h. */
18699$ac_includes_default
18700long longval () { return (long) (sizeof (int)); }
18701unsigned long ulongval () { return (long) (sizeof (int)); }
18702#include <stdio.h>
18703#include <stdlib.h>
18704int
18705main ()
18706{
18707
18708 FILE *f = fopen ("conftest.val", "w");
18709 if (! f)
18710 exit (1);
18711 if (((long) (sizeof (int))) < 0)
18712 {
18713 long i = longval ();
18714 if (i != ((long) (sizeof (int))))
18715 exit (1);
18716 fprintf (f, "%ld\n", i);
18717 }
18718 else
18719 {
18720 unsigned long i = ulongval ();
18721 if (i != ((long) (sizeof (int))))
18722 exit (1);
18723 fprintf (f, "%lu\n", i);
18724 }
18725 exit (ferror (f) || fclose (f) != 0);
18726
18727 ;
18728 return 0;
18729}
18730_ACEOF
18731rm -f conftest$ac_exeext
18732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18733 (eval $ac_link) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
18742 ac_cv_sizeof_int=`cat conftest.val`
18743else
18744 echo "$as_me: program exited with status $ac_status" >&5
18745echo "$as_me: failed program was:" >&5
18746sed 's/^/| /' conftest.$ac_ext >&5
18747
18748( exit $ac_status )
18749{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18750See \`config.log' for more details." >&5
18751echo "$as_me: error: cannot compute sizeof (int), 77
18752See \`config.log' for more details." >&2;}
18753 { (exit 1); exit 1; }; }
18754fi
ac1cb8d3 18755rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18756fi
18757fi
18758rm -f conftest.val
18759else
18760 ac_cv_sizeof_int=0
18761fi
18762fi
18763echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18764echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18765cat >>confdefs.h <<_ACEOF
18766#define SIZEOF_INT $ac_cv_sizeof_int
18767_ACEOF
18768
18769
18770echo "$as_me:$LINENO: checking for long" >&5
18771echo $ECHO_N "checking for long... $ECHO_C" >&6
18772if test "${ac_cv_type_long+set}" = set; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
18774else
18775 cat >conftest.$ac_ext <<_ACEOF
18776/* confdefs.h. */
18777_ACEOF
18778cat confdefs.h >>conftest.$ac_ext
18779cat >>conftest.$ac_ext <<_ACEOF
18780/* end confdefs.h. */
18781$ac_includes_default
18782int
18783main ()
18784{
18785if ((long *) 0)
18786 return 0;
18787if (sizeof (long))
18788 return 0;
18789 ;
18790 return 0;
18791}
18792_ACEOF
18793rm -f conftest.$ac_objext
18794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18795 (eval $ac_compile) 2>conftest.er1
a848cd7e 18796 ac_status=$?
ac1cb8d3
VS
18797 grep -v '^ *+' conftest.er1 >conftest.err
18798 rm -f conftest.er1
18799 cat conftest.err >&5
a848cd7e
SC
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
5d7b7554 18802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; } &&
18808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810 (eval $ac_try) 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_cv_type_long=yes
18815else
18816 echo "$as_me: failed program was:" >&5
18817sed 's/^/| /' conftest.$ac_ext >&5
18818
18819ac_cv_type_long=no
18820fi
ac1cb8d3 18821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18822fi
18823echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18824echo "${ECHO_T}$ac_cv_type_long" >&6
18825
18826echo "$as_me:$LINENO: checking size of long" >&5
18827echo $ECHO_N "checking size of long... $ECHO_C" >&6
18828if test "${ac_cv_sizeof_long+set}" = set; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18830else
18831 if test "$ac_cv_type_long" = yes; then
18832 # The cast to unsigned long works around a bug in the HP C Compiler
18833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18835 # This bug is HP SR number 8606223364.
18836 if test "$cross_compiling" = yes; then
18837 # Depending upon the size, compute the lo and hi bounds.
18838cat >conftest.$ac_ext <<_ACEOF
18839/* confdefs.h. */
18840_ACEOF
18841cat confdefs.h >>conftest.$ac_ext
18842cat >>conftest.$ac_ext <<_ACEOF
18843/* end confdefs.h. */
18844$ac_includes_default
18845int
18846main ()
18847{
18848static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18849test_array [0] = 0
18850
18851 ;
18852 return 0;
18853}
18854_ACEOF
18855rm -f conftest.$ac_objext
18856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18857 (eval $ac_compile) 2>conftest.er1
a848cd7e 18858 ac_status=$?
ac1cb8d3
VS
18859 grep -v '^ *+' conftest.er1 >conftest.err
18860 rm -f conftest.er1
18861 cat conftest.err >&5
a848cd7e
SC
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
5d7b7554 18864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866 (eval $ac_try) 2>&5
18867 ac_status=$?
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; } &&
18870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872 (eval $ac_try) 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
18876 ac_lo=0 ac_mid=0
18877 while :; do
18878 cat >conftest.$ac_ext <<_ACEOF
18879/* confdefs.h. */
18880_ACEOF
18881cat confdefs.h >>conftest.$ac_ext
18882cat >>conftest.$ac_ext <<_ACEOF
18883/* end confdefs.h. */
18884$ac_includes_default
18885int
18886main ()
18887{
18888static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18889test_array [0] = 0
18890
18891 ;
18892 return 0;
18893}
18894_ACEOF
18895rm -f conftest.$ac_objext
18896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18897 (eval $ac_compile) 2>conftest.er1
a848cd7e 18898 ac_status=$?
ac1cb8d3
VS
18899 grep -v '^ *+' conftest.er1 >conftest.err
18900 rm -f conftest.er1
18901 cat conftest.err >&5
a848cd7e
SC
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } &&
5d7b7554 18904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; } &&
18910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912 (eval $ac_try) 2>&5
18913 ac_status=$?
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); }; }; then
18916 ac_hi=$ac_mid; break
18917else
18918 echo "$as_me: failed program was:" >&5
18919sed 's/^/| /' conftest.$ac_ext >&5
18920
18921ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18922 if test $ac_lo -le $ac_mid; then
18923 ac_lo= ac_hi=
18924 break
18925 fi
18926 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18927fi
ac1cb8d3 18928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18929 done
18930else
18931 echo "$as_me: failed program was:" >&5
18932sed 's/^/| /' conftest.$ac_ext >&5
18933
18934cat >conftest.$ac_ext <<_ACEOF
18935/* confdefs.h. */
18936_ACEOF
18937cat confdefs.h >>conftest.$ac_ext
18938cat >>conftest.$ac_ext <<_ACEOF
18939/* end confdefs.h. */
18940$ac_includes_default
18941int
18942main ()
18943{
18944static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18945test_array [0] = 0
18946
18947 ;
18948 return 0;
18949}
18950_ACEOF
18951rm -f conftest.$ac_objext
18952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18953 (eval $ac_compile) 2>conftest.er1
a848cd7e 18954 ac_status=$?
ac1cb8d3
VS
18955 grep -v '^ *+' conftest.er1 >conftest.err
18956 rm -f conftest.er1
18957 cat conftest.err >&5
a848cd7e
SC
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
5d7b7554 18960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; } &&
18966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_hi=-1 ac_mid=-1
18973 while :; do
18974 cat >conftest.$ac_ext <<_ACEOF
18975/* confdefs.h. */
18976_ACEOF
18977cat confdefs.h >>conftest.$ac_ext
18978cat >>conftest.$ac_ext <<_ACEOF
18979/* end confdefs.h. */
18980$ac_includes_default
18981int
18982main ()
18983{
18984static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18985test_array [0] = 0
18986
18987 ;
18988 return 0;
18989}
18990_ACEOF
18991rm -f conftest.$ac_objext
18992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18993 (eval $ac_compile) 2>conftest.er1
a848cd7e 18994 ac_status=$?
ac1cb8d3
VS
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
a848cd7e
SC
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } &&
5d7b7554 19000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002 (eval $ac_try) 2>&5
19003 ac_status=$?
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; } &&
19006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 ac_lo=$ac_mid; break
19013else
19014 echo "$as_me: failed program was:" >&5
19015sed 's/^/| /' conftest.$ac_ext >&5
19016
19017ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19018 if test $ac_mid -le $ac_hi; then
19019 ac_lo= ac_hi=
19020 break
19021 fi
19022 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19023fi
ac1cb8d3 19024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19025 done
19026else
19027 echo "$as_me: failed program was:" >&5
19028sed 's/^/| /' conftest.$ac_ext >&5
19029
19030ac_lo= ac_hi=
19031fi
ac1cb8d3 19032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19033fi
ac1cb8d3 19034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19035# Binary search between lo and hi bounds.
19036while test "x$ac_lo" != "x$ac_hi"; do
19037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19038 cat >conftest.$ac_ext <<_ACEOF
19039/* confdefs.h. */
19040_ACEOF
19041cat confdefs.h >>conftest.$ac_ext
19042cat >>conftest.$ac_ext <<_ACEOF
19043/* end confdefs.h. */
19044$ac_includes_default
19045int
19046main ()
19047{
19048static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19049test_array [0] = 0
19050
19051 ;
19052 return 0;
19053}
19054_ACEOF
19055rm -f conftest.$ac_objext
19056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19057 (eval $ac_compile) 2>conftest.er1
a848cd7e 19058 ac_status=$?
ac1cb8d3
VS
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
a848cd7e
SC
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
5d7b7554 19064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_hi=$ac_mid
19077else
19078 echo "$as_me: failed program was:" >&5
19079sed 's/^/| /' conftest.$ac_ext >&5
19080
19081ac_lo=`expr '(' $ac_mid ')' + 1`
19082fi
ac1cb8d3 19083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19084done
19085case $ac_lo in
19086?*) ac_cv_sizeof_long=$ac_lo;;
19087'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19088See \`config.log' for more details." >&5
19089echo "$as_me: error: cannot compute sizeof (long), 77
19090See \`config.log' for more details." >&2;}
19091 { (exit 1); exit 1; }; } ;;
19092esac
19093else
19094 if test "$cross_compiling" = yes; then
5d7b7554
VZ
19095 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19096echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19097 { (exit 1); exit 1; }; }
19098else
19099 cat >conftest.$ac_ext <<_ACEOF
19100/* confdefs.h. */
19101_ACEOF
19102cat confdefs.h >>conftest.$ac_ext
19103cat >>conftest.$ac_ext <<_ACEOF
19104/* end confdefs.h. */
19105$ac_includes_default
19106long longval () { return (long) (sizeof (long)); }
19107unsigned long ulongval () { return (long) (sizeof (long)); }
19108#include <stdio.h>
19109#include <stdlib.h>
19110int
19111main ()
19112{
19113
19114 FILE *f = fopen ("conftest.val", "w");
19115 if (! f)
19116 exit (1);
19117 if (((long) (sizeof (long))) < 0)
19118 {
19119 long i = longval ();
19120 if (i != ((long) (sizeof (long))))
19121 exit (1);
19122 fprintf (f, "%ld\n", i);
19123 }
19124 else
19125 {
19126 unsigned long i = ulongval ();
19127 if (i != ((long) (sizeof (long))))
19128 exit (1);
19129 fprintf (f, "%lu\n", i);
19130 }
19131 exit (ferror (f) || fclose (f) != 0);
19132
19133 ;
19134 return 0;
19135}
19136_ACEOF
19137rm -f conftest$ac_exeext
19138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139 (eval $ac_link) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 ac_cv_sizeof_long=`cat conftest.val`
19149else
19150 echo "$as_me: program exited with status $ac_status" >&5
19151echo "$as_me: failed program was:" >&5
19152sed 's/^/| /' conftest.$ac_ext >&5
19153
19154( exit $ac_status )
19155{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19156See \`config.log' for more details." >&5
19157echo "$as_me: error: cannot compute sizeof (long), 77
19158See \`config.log' for more details." >&2;}
19159 { (exit 1); exit 1; }; }
19160fi
ac1cb8d3 19161rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19162fi
19163fi
19164rm -f conftest.val
19165else
19166 ac_cv_sizeof_long=0
19167fi
19168fi
19169echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19170echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19171cat >>confdefs.h <<_ACEOF
19172#define SIZEOF_LONG $ac_cv_sizeof_long
19173_ACEOF
19174
19175
19176echo "$as_me:$LINENO: checking for size_t" >&5
19177echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19178if test "${ac_cv_type_size_t+set}" = set; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19180else
19181 cat >conftest.$ac_ext <<_ACEOF
19182/* confdefs.h. */
19183_ACEOF
19184cat confdefs.h >>conftest.$ac_ext
19185cat >>conftest.$ac_ext <<_ACEOF
19186/* end confdefs.h. */
19187$ac_includes_default
19188int
19189main ()
19190{
19191if ((size_t *) 0)
19192 return 0;
19193if (sizeof (size_t))
19194 return 0;
19195 ;
19196 return 0;
19197}
19198_ACEOF
19199rm -f conftest.$ac_objext
19200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19201 (eval $ac_compile) 2>conftest.er1
a848cd7e 19202 ac_status=$?
ac1cb8d3
VS
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
a848cd7e
SC
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
5d7b7554 19208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; } &&
19214 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19220 ac_cv_type_size_t=yes
19221else
19222 echo "$as_me: failed program was:" >&5
19223sed 's/^/| /' conftest.$ac_ext >&5
19224
19225ac_cv_type_size_t=no
19226fi
ac1cb8d3 19227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19228fi
19229echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19230echo "${ECHO_T}$ac_cv_type_size_t" >&6
19231
19232echo "$as_me:$LINENO: checking size of size_t" >&5
19233echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19234if test "${ac_cv_sizeof_size_t+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236else
19237 if test "$ac_cv_type_size_t" = yes; then
19238 # The cast to unsigned long works around a bug in the HP C Compiler
19239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19241 # This bug is HP SR number 8606223364.
19242 if test "$cross_compiling" = yes; then
19243 # Depending upon the size, compute the lo and hi bounds.
19244cat >conftest.$ac_ext <<_ACEOF
19245/* confdefs.h. */
19246_ACEOF
19247cat confdefs.h >>conftest.$ac_ext
19248cat >>conftest.$ac_ext <<_ACEOF
19249/* end confdefs.h. */
19250$ac_includes_default
19251int
19252main ()
19253{
19254static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19255test_array [0] = 0
19256
19257 ;
19258 return 0;
19259}
19260_ACEOF
19261rm -f conftest.$ac_objext
19262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19263 (eval $ac_compile) 2>conftest.er1
a848cd7e 19264 ac_status=$?
ac1cb8d3
VS
19265 grep -v '^ *+' conftest.er1 >conftest.err
19266 rm -f conftest.er1
19267 cat conftest.err >&5
a848cd7e
SC
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
5d7b7554 19270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; }; then
19282 ac_lo=0 ac_mid=0
19283 while :; do
19284 cat >conftest.$ac_ext <<_ACEOF
19285/* confdefs.h. */
19286_ACEOF
19287cat confdefs.h >>conftest.$ac_ext
19288cat >>conftest.$ac_ext <<_ACEOF
19289/* end confdefs.h. */
19290$ac_includes_default
19291int
19292main ()
19293{
19294static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19295test_array [0] = 0
19296
19297 ;
19298 return 0;
19299}
19300_ACEOF
19301rm -f conftest.$ac_objext
19302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19303 (eval $ac_compile) 2>conftest.er1
a848cd7e 19304 ac_status=$?
ac1cb8d3
VS
19305 grep -v '^ *+' conftest.er1 >conftest.err
19306 rm -f conftest.er1
19307 cat conftest.err >&5
a848cd7e
SC
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
5d7b7554 19310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312 (eval $ac_try) 2>&5
19313 ac_status=$?
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; } &&
19316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 ac_hi=$ac_mid; break
19323else
19324 echo "$as_me: failed program was:" >&5
19325sed 's/^/| /' conftest.$ac_ext >&5
19326
19327ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19328 if test $ac_lo -le $ac_mid; then
19329 ac_lo= ac_hi=
19330 break
19331 fi
19332 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19333fi
ac1cb8d3 19334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19335 done
19336else
19337 echo "$as_me: failed program was:" >&5
19338sed 's/^/| /' conftest.$ac_ext >&5
19339
19340cat >conftest.$ac_ext <<_ACEOF
19341/* confdefs.h. */
19342_ACEOF
19343cat confdefs.h >>conftest.$ac_ext
19344cat >>conftest.$ac_ext <<_ACEOF
19345/* end confdefs.h. */
19346$ac_includes_default
19347int
19348main ()
19349{
19350static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19351test_array [0] = 0
19352
19353 ;
19354 return 0;
19355}
19356_ACEOF
19357rm -f conftest.$ac_objext
19358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19359 (eval $ac_compile) 2>conftest.er1
a848cd7e 19360 ac_status=$?
ac1cb8d3
VS
19361 grep -v '^ *+' conftest.er1 >conftest.err
19362 rm -f conftest.er1
19363 cat conftest.err >&5
a848cd7e
SC
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
5d7b7554 19366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_hi=-1 ac_mid=-1
19379 while :; do
19380 cat >conftest.$ac_ext <<_ACEOF
19381/* confdefs.h. */
19382_ACEOF
19383cat confdefs.h >>conftest.$ac_ext
19384cat >>conftest.$ac_ext <<_ACEOF
19385/* end confdefs.h. */
19386$ac_includes_default
19387int
19388main ()
19389{
19390static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19391test_array [0] = 0
19392
19393 ;
19394 return 0;
19395}
19396_ACEOF
19397rm -f conftest.$ac_objext
19398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19399 (eval $ac_compile) 2>conftest.er1
a848cd7e 19400 ac_status=$?
ac1cb8d3
VS
19401 grep -v '^ *+' conftest.er1 >conftest.err
19402 rm -f conftest.er1
19403 cat conftest.err >&5
a848cd7e
SC
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } &&
5d7b7554 19406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; } &&
19412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 ac_lo=$ac_mid; break
19419else
19420 echo "$as_me: failed program was:" >&5
19421sed 's/^/| /' conftest.$ac_ext >&5
19422
19423ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19424 if test $ac_mid -le $ac_hi; then
19425 ac_lo= ac_hi=
19426 break
19427 fi
19428 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19429fi
ac1cb8d3 19430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19431 done
19432else
19433 echo "$as_me: failed program was:" >&5
19434sed 's/^/| /' conftest.$ac_ext >&5
19435
19436ac_lo= ac_hi=
19437fi
ac1cb8d3 19438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19439fi
ac1cb8d3 19440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19441# Binary search between lo and hi bounds.
19442while test "x$ac_lo" != "x$ac_hi"; do
19443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19444 cat >conftest.$ac_ext <<_ACEOF
19445/* confdefs.h. */
19446_ACEOF
19447cat confdefs.h >>conftest.$ac_ext
19448cat >>conftest.$ac_ext <<_ACEOF
19449/* end confdefs.h. */
19450$ac_includes_default
19451int
19452main ()
19453{
19454static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19455test_array [0] = 0
19456
19457 ;
19458 return 0;
19459}
19460_ACEOF
19461rm -f conftest.$ac_objext
19462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19463 (eval $ac_compile) 2>conftest.er1
a848cd7e 19464 ac_status=$?
ac1cb8d3
VS
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
a848cd7e
SC
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
5d7b7554 19470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_hi=$ac_mid
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487ac_lo=`expr '(' $ac_mid ')' + 1`
19488fi
ac1cb8d3 19489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19490done
19491case $ac_lo in
19492?*) ac_cv_sizeof_size_t=$ac_lo;;
19493'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19494See \`config.log' for more details." >&5
19495echo "$as_me: error: cannot compute sizeof (size_t), 77
19496See \`config.log' for more details." >&2;}
19497 { (exit 1); exit 1; }; } ;;
19498esac
19499else
19500 if test "$cross_compiling" = yes; then
5d7b7554
VZ
19501 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19502echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19503 { (exit 1); exit 1; }; }
19504else
19505 cat >conftest.$ac_ext <<_ACEOF
19506/* confdefs.h. */
19507_ACEOF
19508cat confdefs.h >>conftest.$ac_ext
19509cat >>conftest.$ac_ext <<_ACEOF
19510/* end confdefs.h. */
19511$ac_includes_default
19512long longval () { return (long) (sizeof (size_t)); }
19513unsigned long ulongval () { return (long) (sizeof (size_t)); }
19514#include <stdio.h>
19515#include <stdlib.h>
19516int
19517main ()
19518{
19519
19520 FILE *f = fopen ("conftest.val", "w");
19521 if (! f)
19522 exit (1);
19523 if (((long) (sizeof (size_t))) < 0)
19524 {
19525 long i = longval ();
19526 if (i != ((long) (sizeof (size_t))))
19527 exit (1);
19528 fprintf (f, "%ld\n", i);
19529 }
19530 else
19531 {
19532 unsigned long i = ulongval ();
19533 if (i != ((long) (sizeof (size_t))))
19534 exit (1);
19535 fprintf (f, "%lu\n", i);
19536 }
19537 exit (ferror (f) || fclose (f) != 0);
19538
19539 ;
19540 return 0;
19541}
19542_ACEOF
19543rm -f conftest$ac_exeext
19544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19545 (eval $ac_link) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 ac_cv_sizeof_size_t=`cat conftest.val`
19555else
19556 echo "$as_me: program exited with status $ac_status" >&5
19557echo "$as_me: failed program was:" >&5
19558sed 's/^/| /' conftest.$ac_ext >&5
19559
19560( exit $ac_status )
19561{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19562See \`config.log' for more details." >&5
19563echo "$as_me: error: cannot compute sizeof (size_t), 77
19564See \`config.log' for more details." >&2;}
19565 { (exit 1); exit 1; }; }
19566fi
ac1cb8d3 19567rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19568fi
19569fi
19570rm -f conftest.val
19571else
19572 ac_cv_sizeof_size_t=0
19573fi
19574fi
19575echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19576echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19577cat >>confdefs.h <<_ACEOF
19578#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19579_ACEOF
19580
19581
19582
19583case "${host}" in
19584 arm-*-linux* )
19585 echo "$as_me:$LINENO: checking for long long" >&5
19586echo $ECHO_N "checking for long long... $ECHO_C" >&6
19587if test "${ac_cv_type_long_long+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19589else
19590 cat >conftest.$ac_ext <<_ACEOF
19591/* confdefs.h. */
19592_ACEOF
19593cat confdefs.h >>conftest.$ac_ext
19594cat >>conftest.$ac_ext <<_ACEOF
19595/* end confdefs.h. */
19596$ac_includes_default
19597int
19598main ()
19599{
19600if ((long long *) 0)
19601 return 0;
19602if (sizeof (long long))
19603 return 0;
19604 ;
19605 return 0;
19606}
19607_ACEOF
19608rm -f conftest.$ac_objext
19609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19610 (eval $ac_compile) 2>conftest.er1
a848cd7e 19611 ac_status=$?
ac1cb8d3
VS
19612 grep -v '^ *+' conftest.er1 >conftest.err
19613 rm -f conftest.er1
19614 cat conftest.err >&5
a848cd7e
SC
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
5d7b7554 19617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; } &&
19623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; }; then
19629 ac_cv_type_long_long=yes
19630else
19631 echo "$as_me: failed program was:" >&5
19632sed 's/^/| /' conftest.$ac_ext >&5
19633
19634ac_cv_type_long_long=no
19635fi
ac1cb8d3 19636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19637fi
19638echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19639echo "${ECHO_T}$ac_cv_type_long_long" >&6
19640
19641echo "$as_me:$LINENO: checking size of long long" >&5
19642echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19643if test "${ac_cv_sizeof_long_long+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19645else
19646 if test "$ac_cv_type_long_long" = yes; then
19647 # The cast to unsigned long works around a bug in the HP C Compiler
19648 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19649 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19650 # This bug is HP SR number 8606223364.
19651 if test "$cross_compiling" = yes; then
19652 # Depending upon the size, compute the lo and hi bounds.
19653cat >conftest.$ac_ext <<_ACEOF
19654/* confdefs.h. */
19655_ACEOF
19656cat confdefs.h >>conftest.$ac_ext
19657cat >>conftest.$ac_ext <<_ACEOF
19658/* end confdefs.h. */
19659$ac_includes_default
19660int
19661main ()
19662{
19663static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19664test_array [0] = 0
19665
19666 ;
19667 return 0;
19668}
19669_ACEOF
19670rm -f conftest.$ac_objext
19671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19672 (eval $ac_compile) 2>conftest.er1
a848cd7e 19673 ac_status=$?
ac1cb8d3
VS
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
a848cd7e
SC
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
5d7b7554 19679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; } &&
19685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 ac_lo=0 ac_mid=0
19692 while :; do
19693 cat >conftest.$ac_ext <<_ACEOF
19694/* confdefs.h. */
19695_ACEOF
19696cat confdefs.h >>conftest.$ac_ext
19697cat >>conftest.$ac_ext <<_ACEOF
19698/* end confdefs.h. */
19699$ac_includes_default
19700int
19701main ()
19702{
19703static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19704test_array [0] = 0
19705
19706 ;
19707 return 0;
19708}
19709_ACEOF
19710rm -f conftest.$ac_objext
19711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19712 (eval $ac_compile) 2>conftest.er1
a848cd7e 19713 ac_status=$?
ac1cb8d3
VS
19714 grep -v '^ *+' conftest.er1 >conftest.err
19715 rm -f conftest.er1
19716 cat conftest.err >&5
a848cd7e
SC
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
5d7b7554 19719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731 ac_hi=$ac_mid; break
19732else
19733 echo "$as_me: failed program was:" >&5
19734sed 's/^/| /' conftest.$ac_ext >&5
19735
19736ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19737 if test $ac_lo -le $ac_mid; then
19738 ac_lo= ac_hi=
19739 break
19740 fi
19741 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19742fi
ac1cb8d3 19743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19744 done
19745else
19746 echo "$as_me: failed program was:" >&5
19747sed 's/^/| /' conftest.$ac_ext >&5
19748
19749cat >conftest.$ac_ext <<_ACEOF
19750/* confdefs.h. */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h. */
19755$ac_includes_default
19756int
19757main ()
19758{
19759static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19760test_array [0] = 0
19761
19762 ;
19763 return 0;
19764}
19765_ACEOF
19766rm -f conftest.$ac_objext
19767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19768 (eval $ac_compile) 2>conftest.er1
a848cd7e 19769 ac_status=$?
ac1cb8d3
VS
19770 grep -v '^ *+' conftest.er1 >conftest.err
19771 rm -f conftest.er1
19772 cat conftest.err >&5
a848cd7e
SC
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } &&
5d7b7554 19775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; } &&
19781 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
19787 ac_hi=-1 ac_mid=-1
19788 while :; do
19789 cat >conftest.$ac_ext <<_ACEOF
19790/* confdefs.h. */
19791_ACEOF
19792cat confdefs.h >>conftest.$ac_ext
19793cat >>conftest.$ac_ext <<_ACEOF
19794/* end confdefs.h. */
19795$ac_includes_default
19796int
19797main ()
19798{
19799static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19800test_array [0] = 0
19801
19802 ;
19803 return 0;
19804}
19805_ACEOF
19806rm -f conftest.$ac_objext
19807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19808 (eval $ac_compile) 2>conftest.er1
a848cd7e 19809 ac_status=$?
ac1cb8d3
VS
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
a848cd7e
SC
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
5d7b7554 19815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; } &&
19821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_lo=$ac_mid; break
19828else
19829 echo "$as_me: failed program was:" >&5
19830sed 's/^/| /' conftest.$ac_ext >&5
19831
19832ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19833 if test $ac_mid -le $ac_hi; then
19834 ac_lo= ac_hi=
19835 break
19836 fi
19837 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19838fi
ac1cb8d3 19839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19840 done
19841else
19842 echo "$as_me: failed program was:" >&5
19843sed 's/^/| /' conftest.$ac_ext >&5
19844
19845ac_lo= ac_hi=
19846fi
ac1cb8d3 19847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19848fi
ac1cb8d3 19849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19850# Binary search between lo and hi bounds.
19851while test "x$ac_lo" != "x$ac_hi"; do
19852 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19853 cat >conftest.$ac_ext <<_ACEOF
19854/* confdefs.h. */
19855_ACEOF
19856cat confdefs.h >>conftest.$ac_ext
19857cat >>conftest.$ac_ext <<_ACEOF
19858/* end confdefs.h. */
19859$ac_includes_default
19860int
19861main ()
19862{
19863static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19864test_array [0] = 0
19865
19866 ;
19867 return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext
19871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19872 (eval $ac_compile) 2>conftest.er1
a848cd7e 19873 ac_status=$?
ac1cb8d3
VS
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
a848cd7e
SC
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
5d7b7554 19879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 ac_hi=$ac_mid
19892else
19893 echo "$as_me: failed program was:" >&5
19894sed 's/^/| /' conftest.$ac_ext >&5
19895
19896ac_lo=`expr '(' $ac_mid ')' + 1`
19897fi
ac1cb8d3 19898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19899done
19900case $ac_lo in
19901?*) ac_cv_sizeof_long_long=$ac_lo;;
19902'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19903See \`config.log' for more details." >&5
19904echo "$as_me: error: cannot compute sizeof (long long), 77
19905See \`config.log' for more details." >&2;}
19906 { (exit 1); exit 1; }; } ;;
19907esac
19908else
19909 if test "$cross_compiling" = yes; then
5d7b7554
VZ
19910 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19911echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19912 { (exit 1); exit 1; }; }
19913else
19914 cat >conftest.$ac_ext <<_ACEOF
19915/* confdefs.h. */
19916_ACEOF
19917cat confdefs.h >>conftest.$ac_ext
19918cat >>conftest.$ac_ext <<_ACEOF
19919/* end confdefs.h. */
19920$ac_includes_default
19921long longval () { return (long) (sizeof (long long)); }
19922unsigned long ulongval () { return (long) (sizeof (long long)); }
19923#include <stdio.h>
19924#include <stdlib.h>
19925int
19926main ()
19927{
19928
19929 FILE *f = fopen ("conftest.val", "w");
19930 if (! f)
19931 exit (1);
19932 if (((long) (sizeof (long long))) < 0)
19933 {
19934 long i = longval ();
19935 if (i != ((long) (sizeof (long long))))
19936 exit (1);
19937 fprintf (f, "%ld\n", i);
19938 }
19939 else
19940 {
19941 unsigned long i = ulongval ();
19942 if (i != ((long) (sizeof (long long))))
19943 exit (1);
19944 fprintf (f, "%lu\n", i);
19945 }
19946 exit (ferror (f) || fclose (f) != 0);
19947
19948 ;
19949 return 0;
19950}
19951_ACEOF
19952rm -f conftest$ac_exeext
19953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19954 (eval $ac_link) 2>&5
19955 ac_status=$?
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 ac_cv_sizeof_long_long=`cat conftest.val`
19964else
19965 echo "$as_me: program exited with status $ac_status" >&5
19966echo "$as_me: failed program was:" >&5
19967sed 's/^/| /' conftest.$ac_ext >&5
19968
19969( exit $ac_status )
19970{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19971See \`config.log' for more details." >&5
19972echo "$as_me: error: cannot compute sizeof (long long), 77
19973See \`config.log' for more details." >&2;}
19974 { (exit 1); exit 1; }; }
19975fi
ac1cb8d3 19976rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19977fi
19978fi
19979rm -f conftest.val
19980else
19981 ac_cv_sizeof_long_long=0
19982fi
19983fi
19984echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19985echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19986cat >>confdefs.h <<_ACEOF
19987#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19988_ACEOF
19989
19990
19991 ;;
19992 *-hp-hpux* )
19993 echo "$as_me:$LINENO: checking for long long" >&5
19994echo $ECHO_N "checking for long long... $ECHO_C" >&6
19995if test "${ac_cv_type_long_long+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19997else
19998 cat >conftest.$ac_ext <<_ACEOF
19999/* confdefs.h. */
20000_ACEOF
20001cat confdefs.h >>conftest.$ac_ext
20002cat >>conftest.$ac_ext <<_ACEOF
20003/* end confdefs.h. */
20004$ac_includes_default
20005int
20006main ()
20007{
20008if ((long long *) 0)
20009 return 0;
20010if (sizeof (long long))
20011 return 0;
20012 ;
20013 return 0;
20014}
20015_ACEOF
20016rm -f conftest.$ac_objext
20017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20018 (eval $ac_compile) 2>conftest.er1
a848cd7e 20019 ac_status=$?
ac1cb8d3
VS
20020 grep -v '^ *+' conftest.er1 >conftest.err
20021 rm -f conftest.er1
20022 cat conftest.err >&5
a848cd7e
SC
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
5d7b7554 20025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_cv_type_long_long=yes
20038else
20039 echo "$as_me: failed program was:" >&5
20040sed 's/^/| /' conftest.$ac_ext >&5
20041
20042ac_cv_type_long_long=no
20043fi
ac1cb8d3 20044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20045fi
20046echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20047echo "${ECHO_T}$ac_cv_type_long_long" >&6
20048
20049echo "$as_me:$LINENO: checking size of long long" >&5
20050echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20051if test "${ac_cv_sizeof_long_long+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20053else
20054 if test "$ac_cv_type_long_long" = yes; then
20055 # The cast to unsigned long works around a bug in the HP C Compiler
20056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20058 # This bug is HP SR number 8606223364.
20059 if test "$cross_compiling" = yes; then
20060 # Depending upon the size, compute the lo and hi bounds.
20061cat >conftest.$ac_ext <<_ACEOF
20062/* confdefs.h. */
20063_ACEOF
20064cat confdefs.h >>conftest.$ac_ext
20065cat >>conftest.$ac_ext <<_ACEOF
20066/* end confdefs.h. */
20067$ac_includes_default
20068int
20069main ()
20070{
20071static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20072test_array [0] = 0
20073
20074 ;
20075 return 0;
20076}
20077_ACEOF
20078rm -f conftest.$ac_objext
20079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20080 (eval $ac_compile) 2>conftest.er1
a848cd7e 20081 ac_status=$?
ac1cb8d3
VS
20082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
a848cd7e
SC
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
5d7b7554 20087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } &&
20093 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 ac_lo=0 ac_mid=0
20100 while :; do
20101 cat >conftest.$ac_ext <<_ACEOF
20102/* confdefs.h. */
20103_ACEOF
20104cat confdefs.h >>conftest.$ac_ext
20105cat >>conftest.$ac_ext <<_ACEOF
20106/* end confdefs.h. */
20107$ac_includes_default
20108int
20109main ()
20110{
20111static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20112test_array [0] = 0
20113
20114 ;
20115 return 0;
20116}
20117_ACEOF
20118rm -f conftest.$ac_objext
20119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20120 (eval $ac_compile) 2>conftest.er1
a848cd7e 20121 ac_status=$?
ac1cb8d3
VS
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
a848cd7e
SC
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
5d7b7554 20127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 ac_hi=$ac_mid; break
20140else
20141 echo "$as_me: failed program was:" >&5
20142sed 's/^/| /' conftest.$ac_ext >&5
20143
20144ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20145 if test $ac_lo -le $ac_mid; then
20146 ac_lo= ac_hi=
20147 break
20148 fi
20149 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20150fi
ac1cb8d3 20151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20152 done
20153else
20154 echo "$as_me: failed program was:" >&5
20155sed 's/^/| /' conftest.$ac_ext >&5
20156
20157cat >conftest.$ac_ext <<_ACEOF
20158/* confdefs.h. */
20159_ACEOF
20160cat confdefs.h >>conftest.$ac_ext
20161cat >>conftest.$ac_ext <<_ACEOF
20162/* end confdefs.h. */
20163$ac_includes_default
20164int
20165main ()
20166{
20167static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20168test_array [0] = 0
20169
20170 ;
20171 return 0;
20172}
20173_ACEOF
20174rm -f conftest.$ac_objext
20175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20176 (eval $ac_compile) 2>conftest.er1
a848cd7e 20177 ac_status=$?
ac1cb8d3
VS
20178 grep -v '^ *+' conftest.er1 >conftest.err
20179 rm -f conftest.er1
20180 cat conftest.err >&5
a848cd7e
SC
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
5d7b7554 20183 { ac_try='test -z "$ac_cxx_werror_flag" || 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=-1 ac_mid=-1
20196 while :; do
20197 cat >conftest.$ac_ext <<_ACEOF
20198/* confdefs.h. */
20199_ACEOF
20200cat confdefs.h >>conftest.$ac_ext
20201cat >>conftest.$ac_ext <<_ACEOF
20202/* end confdefs.h. */
20203$ac_includes_default
20204int
20205main ()
20206{
20207static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20208test_array [0] = 0
20209
20210 ;
20211 return 0;
20212}
20213_ACEOF
20214rm -f conftest.$ac_objext
20215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20216 (eval $ac_compile) 2>conftest.er1
a848cd7e 20217 ac_status=$?
ac1cb8d3
VS
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
a848cd7e
SC
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
5d7b7554 20223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_lo=$ac_mid; break
20236else
20237 echo "$as_me: failed program was:" >&5
20238sed 's/^/| /' conftest.$ac_ext >&5
20239
20240ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20241 if test $ac_mid -le $ac_hi; then
20242 ac_lo= ac_hi=
20243 break
20244 fi
20245 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20246fi
ac1cb8d3 20247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20248 done
20249else
20250 echo "$as_me: failed program was:" >&5
20251sed 's/^/| /' conftest.$ac_ext >&5
20252
20253ac_lo= ac_hi=
20254fi
ac1cb8d3 20255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20256fi
ac1cb8d3 20257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20258# Binary search between lo and hi bounds.
20259while test "x$ac_lo" != "x$ac_hi"; do
20260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20261 cat >conftest.$ac_ext <<_ACEOF
20262/* confdefs.h. */
20263_ACEOF
20264cat confdefs.h >>conftest.$ac_ext
20265cat >>conftest.$ac_ext <<_ACEOF
20266/* end confdefs.h. */
20267$ac_includes_default
20268int
20269main ()
20270{
20271static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20272test_array [0] = 0
20273
20274 ;
20275 return 0;
20276}
20277_ACEOF
20278rm -f conftest.$ac_objext
20279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20280 (eval $ac_compile) 2>conftest.er1
a848cd7e 20281 ac_status=$?
ac1cb8d3
VS
20282 grep -v '^ *+' conftest.er1 >conftest.err
20283 rm -f conftest.er1
20284 cat conftest.err >&5
a848cd7e
SC
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } &&
5d7b7554 20287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; } &&
20293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_hi=$ac_mid
20300else
20301 echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5
20303
20304ac_lo=`expr '(' $ac_mid ')' + 1`
20305fi
ac1cb8d3 20306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20307done
20308case $ac_lo in
20309?*) ac_cv_sizeof_long_long=$ac_lo;;
20310'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20311See \`config.log' for more details." >&5
20312echo "$as_me: error: cannot compute sizeof (long long), 77
20313See \`config.log' for more details." >&2;}
20314 { (exit 1); exit 1; }; } ;;
20315esac
20316else
20317 if test "$cross_compiling" = yes; then
5d7b7554
VZ
20318 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20319echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20320 { (exit 1); exit 1; }; }
20321else
20322 cat >conftest.$ac_ext <<_ACEOF
20323/* confdefs.h. */
20324_ACEOF
20325cat confdefs.h >>conftest.$ac_ext
20326cat >>conftest.$ac_ext <<_ACEOF
20327/* end confdefs.h. */
20328$ac_includes_default
20329long longval () { return (long) (sizeof (long long)); }
20330unsigned long ulongval () { return (long) (sizeof (long long)); }
20331#include <stdio.h>
20332#include <stdlib.h>
20333int
20334main ()
20335{
20336
20337 FILE *f = fopen ("conftest.val", "w");
20338 if (! f)
20339 exit (1);
20340 if (((long) (sizeof (long long))) < 0)
20341 {
20342 long i = longval ();
20343 if (i != ((long) (sizeof (long long))))
20344 exit (1);
20345 fprintf (f, "%ld\n", i);
20346 }
20347 else
20348 {
20349 unsigned long i = ulongval ();
20350 if (i != ((long) (sizeof (long long))))
20351 exit (1);
20352 fprintf (f, "%lu\n", i);
20353 }
20354 exit (ferror (f) || fclose (f) != 0);
20355
20356 ;
20357 return 0;
20358}
20359_ACEOF
20360rm -f conftest$ac_exeext
20361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20362 (eval $ac_link) 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; }; then
20371 ac_cv_sizeof_long_long=`cat conftest.val`
20372else
20373 echo "$as_me: program exited with status $ac_status" >&5
20374echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377( exit $ac_status )
20378{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20379See \`config.log' for more details." >&5
20380echo "$as_me: error: cannot compute sizeof (long long), 77
20381See \`config.log' for more details." >&2;}
20382 { (exit 1); exit 1; }; }
20383fi
ac1cb8d3 20384rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20385fi
20386fi
20387rm -f conftest.val
20388else
20389 ac_cv_sizeof_long_long=0
20390fi
20391fi
20392echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20393echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20394cat >>confdefs.h <<_ACEOF
20395#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20396_ACEOF
20397
20398
20399 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20400 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20401 fi
20402 ;;
20403 * )
20404 echo "$as_me:$LINENO: checking for long long" >&5
20405echo $ECHO_N "checking for long long... $ECHO_C" >&6
20406if test "${ac_cv_type_long_long+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20408else
20409 cat >conftest.$ac_ext <<_ACEOF
20410/* confdefs.h. */
20411_ACEOF
20412cat confdefs.h >>conftest.$ac_ext
20413cat >>conftest.$ac_ext <<_ACEOF
20414/* end confdefs.h. */
20415$ac_includes_default
20416int
20417main ()
20418{
20419if ((long long *) 0)
20420 return 0;
20421if (sizeof (long long))
20422 return 0;
20423 ;
20424 return 0;
20425}
20426_ACEOF
20427rm -f conftest.$ac_objext
20428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20429 (eval $ac_compile) 2>conftest.er1
a848cd7e 20430 ac_status=$?
ac1cb8d3
VS
20431 grep -v '^ *+' conftest.er1 >conftest.err
20432 rm -f conftest.er1
20433 cat conftest.err >&5
a848cd7e
SC
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } &&
5d7b7554 20436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; } &&
20442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; }; then
20448 ac_cv_type_long_long=yes
20449else
20450 echo "$as_me: failed program was:" >&5
20451sed 's/^/| /' conftest.$ac_ext >&5
20452
20453ac_cv_type_long_long=no
20454fi
ac1cb8d3 20455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20456fi
20457echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20458echo "${ECHO_T}$ac_cv_type_long_long" >&6
20459
20460echo "$as_me:$LINENO: checking size of long long" >&5
20461echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20462if test "${ac_cv_sizeof_long_long+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20464else
20465 if test "$ac_cv_type_long_long" = yes; then
20466 # The cast to unsigned long works around a bug in the HP C Compiler
20467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20469 # This bug is HP SR number 8606223364.
20470 if test "$cross_compiling" = yes; then
20471 # Depending upon the size, compute the lo and hi bounds.
20472cat >conftest.$ac_ext <<_ACEOF
20473/* confdefs.h. */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h. */
20478$ac_includes_default
20479int
20480main ()
20481{
20482static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20483test_array [0] = 0
20484
20485 ;
20486 return 0;
20487}
20488_ACEOF
20489rm -f conftest.$ac_objext
20490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20491 (eval $ac_compile) 2>conftest.er1
a848cd7e 20492 ac_status=$?
ac1cb8d3
VS
20493 grep -v '^ *+' conftest.er1 >conftest.err
20494 rm -f conftest.er1
20495 cat conftest.err >&5
a848cd7e
SC
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
5d7b7554 20498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500 (eval $ac_try) 2>&5
20501 ac_status=$?
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); }; } &&
20504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; }; then
20510 ac_lo=0 ac_mid=0
20511 while :; do
20512 cat >conftest.$ac_ext <<_ACEOF
20513/* confdefs.h. */
20514_ACEOF
20515cat confdefs.h >>conftest.$ac_ext
20516cat >>conftest.$ac_ext <<_ACEOF
20517/* end confdefs.h. */
20518$ac_includes_default
20519int
20520main ()
20521{
20522static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20523test_array [0] = 0
20524
20525 ;
20526 return 0;
20527}
20528_ACEOF
20529rm -f conftest.$ac_objext
20530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20531 (eval $ac_compile) 2>conftest.er1
a848cd7e 20532 ac_status=$?
ac1cb8d3
VS
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
a848cd7e
SC
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } &&
5d7b7554 20538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540 (eval $ac_try) 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; } &&
20544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; }; then
20550 ac_hi=$ac_mid; break
20551else
20552 echo "$as_me: failed program was:" >&5
20553sed 's/^/| /' conftest.$ac_ext >&5
20554
20555ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20556 if test $ac_lo -le $ac_mid; then
20557 ac_lo= ac_hi=
20558 break
20559 fi
20560 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20561fi
ac1cb8d3 20562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20563 done
20564else
20565 echo "$as_me: failed program was:" >&5
20566sed 's/^/| /' conftest.$ac_ext >&5
20567
20568cat >conftest.$ac_ext <<_ACEOF
20569/* confdefs.h. */
20570_ACEOF
20571cat confdefs.h >>conftest.$ac_ext
20572cat >>conftest.$ac_ext <<_ACEOF
20573/* end confdefs.h. */
20574$ac_includes_default
20575int
20576main ()
20577{
20578static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20579test_array [0] = 0
20580
20581 ;
20582 return 0;
20583}
20584_ACEOF
20585rm -f conftest.$ac_objext
20586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20587 (eval $ac_compile) 2>conftest.er1
a848cd7e 20588 ac_status=$?
ac1cb8d3
VS
20589 grep -v '^ *+' conftest.er1 >conftest.err
20590 rm -f conftest.er1
20591 cat conftest.err >&5
a848cd7e
SC
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
5d7b7554 20594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20597 ac_status=$?
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; } &&
20600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; }; then
20606 ac_hi=-1 ac_mid=-1
20607 while :; do
20608 cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h. */
20614$ac_includes_default
20615int
20616main ()
20617{
20618static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20619test_array [0] = 0
20620
20621 ;
20622 return 0;
20623}
20624_ACEOF
20625rm -f conftest.$ac_objext
20626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20627 (eval $ac_compile) 2>conftest.er1
a848cd7e 20628 ac_status=$?
ac1cb8d3
VS
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
a848cd7e
SC
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } &&
5d7b7554 20634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636 (eval $ac_try) 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; } &&
20640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; }; then
20646 ac_lo=$ac_mid; break
20647else
20648 echo "$as_me: failed program was:" >&5
20649sed 's/^/| /' conftest.$ac_ext >&5
20650
20651ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20652 if test $ac_mid -le $ac_hi; then
20653 ac_lo= ac_hi=
20654 break
20655 fi
20656 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20657fi
ac1cb8d3 20658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20659 done
20660else
20661 echo "$as_me: failed program was:" >&5
20662sed 's/^/| /' conftest.$ac_ext >&5
20663
20664ac_lo= ac_hi=
20665fi
ac1cb8d3 20666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20667fi
ac1cb8d3 20668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20669# Binary search between lo and hi bounds.
20670while test "x$ac_lo" != "x$ac_hi"; do
20671 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20672 cat >conftest.$ac_ext <<_ACEOF
20673/* confdefs.h. */
20674_ACEOF
20675cat confdefs.h >>conftest.$ac_ext
20676cat >>conftest.$ac_ext <<_ACEOF
20677/* end confdefs.h. */
20678$ac_includes_default
20679int
20680main ()
20681{
20682static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20683test_array [0] = 0
20684
20685 ;
20686 return 0;
20687}
20688_ACEOF
20689rm -f conftest.$ac_objext
20690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20691 (eval $ac_compile) 2>conftest.er1
a848cd7e 20692 ac_status=$?
ac1cb8d3
VS
20693 grep -v '^ *+' conftest.er1 >conftest.err
20694 rm -f conftest.er1
20695 cat conftest.err >&5
a848cd7e
SC
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
5d7b7554 20698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; } &&
20704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; }; then
20710 ac_hi=$ac_mid
20711else
20712 echo "$as_me: failed program was:" >&5
20713sed 's/^/| /' conftest.$ac_ext >&5
20714
20715ac_lo=`expr '(' $ac_mid ')' + 1`
20716fi
ac1cb8d3 20717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20718done
20719case $ac_lo in
20720?*) ac_cv_sizeof_long_long=$ac_lo;;
20721'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20722See \`config.log' for more details." >&5
20723echo "$as_me: error: cannot compute sizeof (long long), 77
20724See \`config.log' for more details." >&2;}
20725 { (exit 1); exit 1; }; } ;;
20726esac
20727else
20728 if test "$cross_compiling" = yes; then
5d7b7554
VZ
20729 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20730echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20731 { (exit 1); exit 1; }; }
20732else
20733 cat >conftest.$ac_ext <<_ACEOF
20734/* confdefs.h. */
20735_ACEOF
20736cat confdefs.h >>conftest.$ac_ext
20737cat >>conftest.$ac_ext <<_ACEOF
20738/* end confdefs.h. */
20739$ac_includes_default
20740long longval () { return (long) (sizeof (long long)); }
20741unsigned long ulongval () { return (long) (sizeof (long long)); }
20742#include <stdio.h>
20743#include <stdlib.h>
20744int
20745main ()
20746{
20747
20748 FILE *f = fopen ("conftest.val", "w");
20749 if (! f)
20750 exit (1);
20751 if (((long) (sizeof (long long))) < 0)
20752 {
20753 long i = longval ();
20754 if (i != ((long) (sizeof (long long))))
20755 exit (1);
20756 fprintf (f, "%ld\n", i);
20757 }
20758 else
20759 {
20760 unsigned long i = ulongval ();
20761 if (i != ((long) (sizeof (long long))))
20762 exit (1);
20763 fprintf (f, "%lu\n", i);
20764 }
20765 exit (ferror (f) || fclose (f) != 0);
20766
20767 ;
20768 return 0;
20769}
20770_ACEOF
20771rm -f conftest$ac_exeext
20772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20773 (eval $ac_link) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_sizeof_long_long=`cat conftest.val`
20783else
20784 echo "$as_me: program exited with status $ac_status" >&5
20785echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
20788( exit $ac_status )
20789{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20790See \`config.log' for more details." >&5
20791echo "$as_me: error: cannot compute sizeof (long long), 77
20792See \`config.log' for more details." >&2;}
20793 { (exit 1); exit 1; }; }
20794fi
ac1cb8d3 20795rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20796fi
20797fi
20798rm -f conftest.val
20799else
20800 ac_cv_sizeof_long_long=0
20801fi
20802fi
20803echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20804echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20805cat >>confdefs.h <<_ACEOF
20806#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20807_ACEOF
20808
20809
20810esac
20811
238ecede
MW
20812echo "$as_me:$LINENO: checking for wchar_t" >&5
20813echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20814if test "${ac_cv_type_wchar_t+set}" = set; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20816else
20817 cat >conftest.$ac_ext <<_ACEOF
20818/* confdefs.h. */
20819_ACEOF
20820cat confdefs.h >>conftest.$ac_ext
20821cat >>conftest.$ac_ext <<_ACEOF
20822/* end confdefs.h. */
20823
83d8eb47
MW
20824 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20825 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20826 # error "fake wchar_t"
20827 #endif
20828 #ifdef HAVE_WCHAR_H
20829 # ifdef __CYGWIN__
20830 # include <stddef.h>
20831 # endif
20832 # include <wchar.h>
20833 #endif
20834 #ifdef HAVE_STDLIB_H
20835 # include <stdlib.h>
20836 #endif
20837 #include <stdio.h>
20838
20839
20840
20841int
20842main ()
20843{
20844if ((wchar_t *) 0)
20845 return 0;
20846if (sizeof (wchar_t))
20847 return 0;
20848 ;
20849 return 0;
20850}
20851_ACEOF
20852rm -f conftest.$ac_objext
20853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20854 (eval $ac_compile) 2>conftest.er1
20855 ac_status=$?
20856 grep -v '^ *+' conftest.er1 >conftest.err
20857 rm -f conftest.er1
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
5d7b7554 20861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
20862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863 (eval $ac_try) 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; } &&
20867 { ac_try='test -s conftest.$ac_objext'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20873 ac_cv_type_wchar_t=yes
20874else
20875 echo "$as_me: failed program was:" >&5
20876sed 's/^/| /' conftest.$ac_ext >&5
20877
20878ac_cv_type_wchar_t=no
20879fi
20880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20881fi
20882echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20883echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20884
a848cd7e
SC
20885echo "$as_me:$LINENO: checking size of wchar_t" >&5
20886echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20887if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20889else
238ecede
MW
20890 if test "$ac_cv_type_wchar_t" = yes; then
20891 # The cast to unsigned long works around a bug in the HP C Compiler
20892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20894 # This bug is HP SR number 8606223364.
20895 if test "$cross_compiling" = yes; then
20896 # Depending upon the size, compute the lo and hi bounds.
20897cat >conftest.$ac_ext <<_ACEOF
20898/* confdefs.h. */
20899_ACEOF
20900cat confdefs.h >>conftest.$ac_ext
20901cat >>conftest.$ac_ext <<_ACEOF
20902/* end confdefs.h. */
20903
83d8eb47
MW
20904 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20905 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20906 # error "fake wchar_t"
20907 #endif
20908 #ifdef HAVE_WCHAR_H
20909 # ifdef __CYGWIN__
20910 # include <stddef.h>
20911 # endif
20912 # include <wchar.h>
20913 #endif
20914 #ifdef HAVE_STDLIB_H
20915 # include <stdlib.h>
20916 #endif
20917 #include <stdio.h>
20918
20919
20920
20921int
20922main ()
20923{
20924static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20925test_array [0] = 0
20926
20927 ;
20928 return 0;
20929}
20930_ACEOF
20931rm -f conftest.$ac_objext
20932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20933 (eval $ac_compile) 2>conftest.er1
20934 ac_status=$?
20935 grep -v '^ *+' conftest.er1 >conftest.err
20936 rm -f conftest.er1
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } &&
5d7b7554 20940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; } &&
20946 { ac_try='test -s conftest.$ac_objext'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_lo=0 ac_mid=0
20953 while :; do
20954 cat >conftest.$ac_ext <<_ACEOF
20955/* confdefs.h. */
20956_ACEOF
20957cat confdefs.h >>conftest.$ac_ext
20958cat >>conftest.$ac_ext <<_ACEOF
20959/* end confdefs.h. */
20960
83d8eb47
MW
20961 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20962 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20963 # error "fake wchar_t"
20964 #endif
20965 #ifdef HAVE_WCHAR_H
20966 # ifdef __CYGWIN__
20967 # include <stddef.h>
20968 # endif
20969 # include <wchar.h>
20970 #endif
20971 #ifdef HAVE_STDLIB_H
20972 # include <stdlib.h>
20973 #endif
20974 #include <stdio.h>
20975
20976
20977
20978int
20979main ()
20980{
20981static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20982test_array [0] = 0
20983
20984 ;
20985 return 0;
20986}
20987_ACEOF
20988rm -f conftest.$ac_objext
20989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20990 (eval $ac_compile) 2>conftest.er1
20991 ac_status=$?
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } &&
5d7b7554 20997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; } &&
21003 { ac_try='test -s conftest.$ac_objext'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 ac_hi=$ac_mid; break
21010else
21011 echo "$as_me: failed program was:" >&5
21012sed 's/^/| /' conftest.$ac_ext >&5
21013
21014ac_lo=`expr $ac_mid + 1`
21015 if test $ac_lo -le $ac_mid; then
21016 ac_lo= ac_hi=
21017 break
21018 fi
21019 ac_mid=`expr 2 '*' $ac_mid + 1`
21020fi
21021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21022 done
21023else
21024 echo "$as_me: failed program was:" >&5
21025sed 's/^/| /' conftest.$ac_ext >&5
21026
21027cat >conftest.$ac_ext <<_ACEOF
21028/* confdefs.h. */
21029_ACEOF
21030cat confdefs.h >>conftest.$ac_ext
21031cat >>conftest.$ac_ext <<_ACEOF
21032/* end confdefs.h. */
21033
83d8eb47
MW
21034 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21035 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21036 # error "fake wchar_t"
21037 #endif
21038 #ifdef HAVE_WCHAR_H
21039 # ifdef __CYGWIN__
21040 # include <stddef.h>
21041 # endif
21042 # include <wchar.h>
21043 #endif
21044 #ifdef HAVE_STDLIB_H
21045 # include <stdlib.h>
21046 #endif
21047 #include <stdio.h>
21048
21049
21050
21051int
21052main ()
21053{
21054static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21055test_array [0] = 0
21056
21057 ;
21058 return 0;
21059}
21060_ACEOF
21061rm -f conftest.$ac_objext
21062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063 (eval $ac_compile) 2>conftest.er1
21064 ac_status=$?
21065 grep -v '^ *+' conftest.er1 >conftest.err
21066 rm -f conftest.er1
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } &&
5d7b7554 21070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; } &&
21076 { ac_try='test -s conftest.$ac_objext'
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; }; then
21082 ac_hi=-1 ac_mid=-1
21083 while :; do
21084 cat >conftest.$ac_ext <<_ACEOF
21085/* confdefs.h. */
21086_ACEOF
21087cat confdefs.h >>conftest.$ac_ext
21088cat >>conftest.$ac_ext <<_ACEOF
21089/* end confdefs.h. */
21090
83d8eb47
MW
21091 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21092 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21093 # error "fake wchar_t"
21094 #endif
21095 #ifdef HAVE_WCHAR_H
21096 # ifdef __CYGWIN__
21097 # include <stddef.h>
21098 # endif
21099 # include <wchar.h>
21100 #endif
21101 #ifdef HAVE_STDLIB_H
21102 # include <stdlib.h>
21103 #endif
21104 #include <stdio.h>
21105
21106
21107
21108int
21109main ()
21110{
21111static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21112test_array [0] = 0
21113
21114 ;
21115 return 0;
21116}
21117_ACEOF
21118rm -f conftest.$ac_objext
21119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21120 (eval $ac_compile) 2>conftest.er1
21121 ac_status=$?
21122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
5d7b7554 21127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129 (eval $ac_try) 2>&5
21130 ac_status=$?
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; } &&
21133 { ac_try='test -s conftest.$ac_objext'
21134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135 (eval $ac_try) 2>&5
21136 ac_status=$?
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; }; then
21139 ac_lo=$ac_mid; break
21140else
21141 echo "$as_me: failed program was:" >&5
21142sed 's/^/| /' conftest.$ac_ext >&5
21143
21144ac_hi=`expr '(' $ac_mid ')' - 1`
21145 if test $ac_mid -le $ac_hi; then
21146 ac_lo= ac_hi=
21147 break
21148 fi
21149 ac_mid=`expr 2 '*' $ac_mid`
21150fi
21151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21152 done
21153else
21154 echo "$as_me: failed program was:" >&5
21155sed 's/^/| /' conftest.$ac_ext >&5
21156
21157ac_lo= ac_hi=
21158fi
21159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21160fi
21161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21162# Binary search between lo and hi bounds.
21163while test "x$ac_lo" != "x$ac_hi"; do
21164 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21165 cat >conftest.$ac_ext <<_ACEOF
21166/* confdefs.h. */
21167_ACEOF
21168cat confdefs.h >>conftest.$ac_ext
21169cat >>conftest.$ac_ext <<_ACEOF
21170/* end confdefs.h. */
21171
83d8eb47
MW
21172 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21173 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21174 # error "fake wchar_t"
21175 #endif
21176 #ifdef HAVE_WCHAR_H
21177 # ifdef __CYGWIN__
21178 # include <stddef.h>
21179 # endif
21180 # include <wchar.h>
21181 #endif
21182 #ifdef HAVE_STDLIB_H
21183 # include <stdlib.h>
21184 #endif
21185 #include <stdio.h>
a848cd7e 21186
a848cd7e 21187
a848cd7e 21188
238ecede
MW
21189int
21190main ()
21191{
21192static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21193test_array [0] = 0
a848cd7e 21194
238ecede
MW
21195 ;
21196 return 0;
21197}
21198_ACEOF
21199rm -f conftest.$ac_objext
21200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21201 (eval $ac_compile) 2>conftest.er1
21202 ac_status=$?
21203 grep -v '^ *+' conftest.er1 >conftest.err
21204 rm -f conftest.er1
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
5d7b7554 21208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try='test -s conftest.$ac_objext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 ac_hi=$ac_mid
21221else
21222 echo "$as_me: failed program was:" >&5
21223sed 's/^/| /' conftest.$ac_ext >&5
21224
21225ac_lo=`expr '(' $ac_mid ')' + 1`
21226fi
21227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21228done
21229case $ac_lo in
21230?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21231'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21232See \`config.log' for more details." >&5
21233echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21234See \`config.log' for more details." >&2;}
21235 { (exit 1); exit 1; }; } ;;
21236esac
21237else
21238 if test "$cross_compiling" = yes; then
5d7b7554
VZ
21239 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21240echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21241 { (exit 1); exit 1; }; }
a848cd7e
SC
21242else
21243 cat >conftest.$ac_ext <<_ACEOF
21244/* confdefs.h. */
21245_ACEOF
21246cat confdefs.h >>conftest.$ac_ext
21247cat >>conftest.$ac_ext <<_ACEOF
21248/* end confdefs.h. */
21249
83d8eb47
MW
21250 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21251 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21252 # error "fake wchar_t"
21253 #endif
21254 #ifdef HAVE_WCHAR_H
21255 # ifdef __CYGWIN__
21256 # include <stddef.h>
21257 # endif
21258 # include <wchar.h>
21259 #endif
21260 #ifdef HAVE_STDLIB_H
21261 # include <stdlib.h>
21262 #endif
21263 #include <stdio.h>
21264
21265
21266
21267long longval () { return (long) (sizeof (wchar_t)); }
21268unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21269#include <stdio.h>
21270#include <stdlib.h>
21271int
21272main ()
21273{
a848cd7e 21274
238ecede
MW
21275 FILE *f = fopen ("conftest.val", "w");
21276 if (! f)
21277 exit (1);
21278 if (((long) (sizeof (wchar_t))) < 0)
21279 {
21280 long i = longval ();
21281 if (i != ((long) (sizeof (wchar_t))))
21282 exit (1);
21283 fprintf (f, "%ld\n", i);
21284 }
21285 else
21286 {
21287 unsigned long i = ulongval ();
21288 if (i != ((long) (sizeof (wchar_t))))
21289 exit (1);
21290 fprintf (f, "%lu\n", i);
21291 }
21292 exit (ferror (f) || fclose (f) != 0);
21293
21294 ;
21295 return 0;
21296}
a848cd7e
SC
21297_ACEOF
21298rm -f conftest$ac_exeext
21299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21300 (eval $ac_link) 2>&5
21301 ac_status=$?
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
238ecede 21309 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21310else
21311 echo "$as_me: program exited with status $ac_status" >&5
21312echo "$as_me: failed program was:" >&5
21313sed 's/^/| /' conftest.$ac_ext >&5
21314
21315( exit $ac_status )
238ecede
MW
21316{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21317See \`config.log' for more details." >&5
21318echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21319See \`config.log' for more details." >&2;}
21320 { (exit 1); exit 1; }; }
a848cd7e 21321fi
ac1cb8d3 21322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21323fi
a848cd7e 21324fi
238ecede
MW
21325rm -f conftest.val
21326else
21327 ac_cv_sizeof_wchar_t=0
21328fi
21329fi
21330echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21331echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21332cat >>confdefs.h <<_ACEOF
238ecede 21333#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21334_ACEOF
21335
21336
47a7e797
MW
21337if test "$ac_cv_sizeof_wchar_t" != "0"; then
21338 wxUSE_WCHAR_T=yes
21339else
21340 wxUSE_WCHAR_T=no
21341fi
238ecede 21342
ba3d13e1
VZ
21343echo "$as_me:$LINENO: checking for va_copy" >&5
21344echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21345if test "${wx_cv_func_va_copy+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21347else
21348
21349 cat >conftest.$ac_ext <<_ACEOF
21350
21351 #include <stdarg.h>
21352 void foo(char *f, ...)
21353 {
21354 va_list ap1, ap2;
21355 va_start(ap1, f);
21356 va_copy(ap2, ap1);
21357 va_end(ap2);
21358 va_end(ap1);
21359 }
5886b072
VZ
21360 int main()
21361 {
b902e639
VZ
21362 foo("hi", 17);
21363 return 0;
5886b072 21364 }
ba3d13e1
VZ
21365_ACEOF
21366rm -f conftest.$ac_objext conftest$ac_exeext
21367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21368 (eval $ac_link) 2>conftest.er1
21369 ac_status=$?
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } &&
5d7b7554 21375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; } &&
21381 { ac_try='test -s conftest$ac_exeext'
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387 wx_cv_func_va_copy=yes
21388else
21389 echo "$as_me: failed program was:" >&5
21390sed 's/^/| /' conftest.$ac_ext >&5
21391
21392wx_cv_func_va_copy=no
21393
21394fi
21395rm -f conftest.err conftest.$ac_objext \
21396 conftest$ac_exeext conftest.$ac_ext
21397
21398
21399fi
21400echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21401echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21402
21403if test $wx_cv_func_va_copy = "yes"; then
21404 cat >>confdefs.h <<\_ACEOF
21405#define HAVE_VA_COPY 1
21406_ACEOF
21407
21408else
21409 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21410echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21411if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21413else
21414
21415 if test "$cross_compiling" = yes; then
21416 wx_cv_type_va_list_lvalue=yes
21417
21418else
21419 cat >conftest.$ac_ext <<_ACEOF
21420
21421 #include <stdarg.h>
21422 int foo(char *f, ...)
21423 {
21424 va_list ap1, ap2;
21425 va_start(ap1, f);
21426 ap2 = ap1;
21427 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21428 return 1;
21429 va_end(ap2);
21430 va_end(ap1);
21431 return 0;
21432 }
21433 int main()
21434 {
21435 return foo("hi", 17);
21436 }
21437_ACEOF
21438rm -f conftest$ac_exeext
21439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21440 (eval $ac_link) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 wx_cv_type_va_list_lvalue=yes
21450else
21451 echo "$as_me: program exited with status $ac_status" >&5
21452echo "$as_me: failed program was:" >&5
21453sed 's/^/| /' conftest.$ac_ext >&5
21454
21455( exit $ac_status )
21456wx_cv_type_va_list_lvalue=no
21457fi
21458rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21459fi
21460
21461
21462fi
21463echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21464echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21465
21466 if test $wx_cv_type_va_list_lvalue != "yes"; then
21467 cat >>confdefs.h <<\_ACEOF
21468#define VA_LIST_IS_ARRAY 1
21469_ACEOF
21470
21471 fi
21472fi
21473
a848cd7e
SC
21474# Check whether --enable-largefile or --disable-largefile was given.
21475if test "${enable_largefile+set}" = set; then
21476 enableval="$enable_largefile"
21477
21478fi;
21479if test "$enable_largefile" != no; then
21480 wx_largefile=no
21481
21482 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21483echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21484if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486else
21487
21488 cat >conftest.$ac_ext <<_ACEOF
21489/* confdefs.h. */
21490_ACEOF
21491cat confdefs.h >>conftest.$ac_ext
21492cat >>conftest.$ac_ext <<_ACEOF
21493/* end confdefs.h. */
21494#define _FILE_OFFSET_BITS 64
21495 #include <sys/types.h>
21496int
21497main ()
21498{
21499typedef struct {
21500 unsigned int field: sizeof(off_t) == 8;
21501} wxlf;
21502
21503 ;
21504 return 0;
21505}
21506_ACEOF
21507rm -f conftest.$ac_objext
21508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21509 (eval $ac_compile) 2>conftest.er1
a848cd7e 21510 ac_status=$?
ac1cb8d3
VS
21511 grep -v '^ *+' conftest.er1 >conftest.err
21512 rm -f conftest.er1
21513 cat conftest.err >&5
a848cd7e
SC
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } &&
5d7b7554 21516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21518 (eval $ac_try) 2>&5
21519 ac_status=$?
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; } &&
21522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21524 (eval $ac_try) 2>&5
21525 ac_status=$?
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); }; }; then
21528 ac_cv_sys_file_offset_bits=64
21529else
21530 echo "$as_me: failed program was:" >&5
21531sed 's/^/| /' conftest.$ac_ext >&5
21532
21533ac_cv_sys_file_offset_bits=no
21534fi
ac1cb8d3 21535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21536
21537
21538fi
21539echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21540echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21541
21542 if test "$ac_cv_sys_file_offset_bits" != no; then
21543 wx_largefile=yes
21544 cat >>confdefs.h <<_ACEOF
21545#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21546_ACEOF
21547
21548 fi
21549
21550 if test "x$wx_largefile" != "xyes"; then
21551
21552 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21553echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21554if test "${ac_cv_sys_large_files+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21556else
21557
21558 cat >conftest.$ac_ext <<_ACEOF
21559/* confdefs.h. */
21560_ACEOF
21561cat confdefs.h >>conftest.$ac_ext
21562cat >>conftest.$ac_ext <<_ACEOF
21563/* end confdefs.h. */
21564#define _LARGE_FILES 1
21565 #include <sys/types.h>
21566int
21567main ()
21568{
21569typedef struct {
21570 unsigned int field: sizeof(off_t) == 8;
21571} wxlf;
21572
21573 ;
21574 return 0;
21575}
21576_ACEOF
21577rm -f conftest.$ac_objext
21578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21579 (eval $ac_compile) 2>conftest.er1
a848cd7e 21580 ac_status=$?
ac1cb8d3
VS
21581 grep -v '^ *+' conftest.er1 >conftest.err
21582 rm -f conftest.er1
21583 cat conftest.err >&5
a848cd7e
SC
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } &&
5d7b7554 21586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; } &&
21592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; }; then
21598 ac_cv_sys_large_files=1
21599else
21600 echo "$as_me: failed program was:" >&5
21601sed 's/^/| /' conftest.$ac_ext >&5
21602
21603ac_cv_sys_large_files=no
21604fi
ac1cb8d3 21605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21606
21607
21608fi
21609echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21610echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21611
21612 if test "$ac_cv_sys_large_files" != no; then
21613 wx_largefile=yes
21614 cat >>confdefs.h <<_ACEOF
21615#define _LARGE_FILES $ac_cv_sys_large_files
21616_ACEOF
21617
21618 fi
21619
21620 fi
21621
21622 echo "$as_me:$LINENO: checking if large file support is available" >&5
21623echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21624 if test "x$wx_largefile" = "xyes"; then
21625 cat >>confdefs.h <<\_ACEOF
21626#define HAVE_LARGEFILE_SUPPORT 1
21627_ACEOF
21628
21629 fi
21630 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21631echo "${ECHO_T}$wx_largefile" >&6
21632fi
21633
5b674b9d
DE
21634
21635if test "x$wx_largefile" = "xyes"; then
21636 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21637 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21638
21639 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21640 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21641echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21642if test "${wx_cv_STDC_EXT_required+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21644else
21645
00421666
MW
21646 cat >conftest.$ac_ext <<_ACEOF
21647/* confdefs.h. */
21648_ACEOF
21649cat confdefs.h >>conftest.$ac_ext
21650cat >>conftest.$ac_ext <<_ACEOF
21651/* end confdefs.h. */
21652
21653int
21654main ()
21655{
21656
21657 #ifndef __STDC_EXT__
21658 choke me
21659 #endif
21660
21661 ;
21662 return 0;
21663}
21664_ACEOF
21665rm -f conftest.$ac_objext
21666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21667 (eval $ac_compile) 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } &&
5d7b7554 21674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21677 ac_status=$?
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; } &&
21680 { ac_try='test -s conftest.$ac_objext'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }; then
21686 wx_cv_STDC_EXT_required=no
21687else
21688 echo "$as_me: failed program was:" >&5
21689sed 's/^/| /' conftest.$ac_ext >&5
21690
21691wx_cv_STDC_EXT_required=yes
21692
21693fi
21694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
21695
21696
21697fi
21698echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21699echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21700 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21701 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21702 fi
21703 fi
5b674b9d 21704 else
5ff751d6 21705 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21706 fi
21707 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21708echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21709if test "${ac_cv_sys_largefile_source+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21711else
21712 while :; do
21713 ac_cv_sys_largefile_source=no
21714 cat >conftest.$ac_ext <<_ACEOF
21715/* confdefs.h. */
21716_ACEOF
21717cat confdefs.h >>conftest.$ac_ext
21718cat >>conftest.$ac_ext <<_ACEOF
21719/* end confdefs.h. */
21720#include <stdio.h>
21721int
21722main ()
21723{
21724return !fseeko;
21725 ;
21726 return 0;
21727}
21728_ACEOF
21729rm -f conftest.$ac_objext
21730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21732 ac_status=$?
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
5d7b7554 21738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } &&
21744 { ac_try='test -s conftest.$ac_objext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 break
21751else
21752 echo "$as_me: failed program was:" >&5
21753sed 's/^/| /' conftest.$ac_ext >&5
21754
21755fi
21756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21757 cat >conftest.$ac_ext <<_ACEOF
21758/* confdefs.h. */
21759_ACEOF
21760cat confdefs.h >>conftest.$ac_ext
21761cat >>conftest.$ac_ext <<_ACEOF
21762/* end confdefs.h. */
21763#define _LARGEFILE_SOURCE 1
21764#include <stdio.h>
21765int
21766main ()
21767{
21768return !fseeko;
21769 ;
21770 return 0;
21771}
21772_ACEOF
21773rm -f conftest.$ac_objext
21774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21775 (eval $ac_compile) 2>conftest.er1
21776 ac_status=$?
21777 grep -v '^ *+' conftest.er1 >conftest.err
21778 rm -f conftest.er1
21779 cat conftest.err >&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } &&
5d7b7554 21782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784 (eval $ac_try) 2>&5
21785 ac_status=$?
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; } &&
21788 { ac_try='test -s conftest.$ac_objext'
21789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790 (eval $ac_try) 2>&5
21791 ac_status=$?
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); }; }; then
21794 ac_cv_sys_largefile_source=1; break
21795else
21796 echo "$as_me: failed program was:" >&5
21797sed 's/^/| /' conftest.$ac_ext >&5
21798
21799fi
21800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21801 break
21802done
21803fi
21804echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21805echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21806if test "$ac_cv_sys_largefile_source" != no; then
21807
21808cat >>confdefs.h <<_ACEOF
21809#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21810_ACEOF
21811
21812fi
21813rm -f conftest*
21814
21815# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21816# in glibc 2.1.3, but that breaks too many other things.
21817# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21818echo "$as_me:$LINENO: checking for fseeko" >&5
21819echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21820if test "${ac_cv_func_fseeko+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21822else
21823 cat >conftest.$ac_ext <<_ACEOF
21824/* confdefs.h. */
21825_ACEOF
21826cat confdefs.h >>conftest.$ac_ext
21827cat >>conftest.$ac_ext <<_ACEOF
21828/* end confdefs.h. */
21829#include <stdio.h>
21830int
21831main ()
21832{
21833return fseeko && fseeko (stdin, 0, 0);
21834 ;
21835 return 0;
21836}
21837_ACEOF
21838rm -f conftest.$ac_objext conftest$ac_exeext
21839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21840 (eval $ac_link) 2>conftest.er1
21841 ac_status=$?
21842 grep -v '^ *+' conftest.er1 >conftest.err
21843 rm -f conftest.er1
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } &&
5d7b7554 21847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; } &&
21853 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21859 ac_cv_func_fseeko=yes
21860else
21861 echo "$as_me: failed program was:" >&5
21862sed 's/^/| /' conftest.$ac_ext >&5
21863
21864ac_cv_func_fseeko=no
21865fi
21866rm -f conftest.err conftest.$ac_objext \
21867 conftest$ac_exeext conftest.$ac_ext
21868fi
21869echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21870echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21871if test $ac_cv_func_fseeko = yes; then
21872
21873cat >>confdefs.h <<\_ACEOF
21874#define HAVE_FSEEKO 1
21875_ACEOF
21876
21877fi
21878
5b674b9d 21879 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21880 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21881 fi
a848cd7e
SC
21882fi
21883
21884echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21885echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21886if test "${ac_cv_c_bigendian+set}" = set; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21888else
21889 ac_cv_c_bigendian=unknown
21890# See if sys/param.h defines the BYTE_ORDER macro.
21891cat >conftest.$ac_ext <<_ACEOF
21892/* confdefs.h. */
21893_ACEOF
21894cat confdefs.h >>conftest.$ac_ext
21895cat >>conftest.$ac_ext <<_ACEOF
21896/* end confdefs.h. */
21897#include <sys/types.h>
21898#include <sys/param.h>
21899int
21900main ()
21901{
21902
21903#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21904 bogus endian macros
21905#endif
21906 ;
21907 return 0;
21908}
21909_ACEOF
21910rm -f conftest.$ac_objext
21911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21912 (eval $ac_compile) 2>conftest.er1
a848cd7e 21913 ac_status=$?
ac1cb8d3
VS
21914 grep -v '^ *+' conftest.er1 >conftest.err
21915 rm -f conftest.er1
21916 cat conftest.err >&5
a848cd7e
SC
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } &&
5d7b7554 21919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921 (eval $ac_try) 2>&5
21922 ac_status=$?
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; } &&
21925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21927 (eval $ac_try) 2>&5
21928 ac_status=$?
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); }; }; then
21931 # It does; now see whether it defined to BIG_ENDIAN or not.
21932cat >conftest.$ac_ext <<_ACEOF
21933/* confdefs.h. */
21934_ACEOF
21935cat confdefs.h >>conftest.$ac_ext
21936cat >>conftest.$ac_ext <<_ACEOF
21937/* end confdefs.h. */
21938#include <sys/types.h>
21939#include <sys/param.h>
21940int
21941main ()
21942{
21943
21944#if BYTE_ORDER != BIG_ENDIAN
21945 not big endian
21946#endif
21947 ;
21948 return 0;
21949}
21950_ACEOF
21951rm -f conftest.$ac_objext
21952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21953 (eval $ac_compile) 2>conftest.er1
a848cd7e 21954 ac_status=$?
ac1cb8d3
VS
21955 grep -v '^ *+' conftest.er1 >conftest.err
21956 rm -f conftest.er1
21957 cat conftest.err >&5
a848cd7e
SC
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } &&
5d7b7554 21960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; } &&
21966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21969 ac_status=$?
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); }; }; then
21972 ac_cv_c_bigendian=yes
21973else
21974 echo "$as_me: failed program was:" >&5
21975sed 's/^/| /' conftest.$ac_ext >&5
21976
21977ac_cv_c_bigendian=no
21978fi
ac1cb8d3 21979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21980else
21981 echo "$as_me: failed program was:" >&5
21982sed 's/^/| /' conftest.$ac_ext >&5
21983
21984fi
ac1cb8d3 21985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21986if test $ac_cv_c_bigendian = unknown; then
21987if test "$cross_compiling" = yes; then
21988 ac_cv_c_bigendian=unknown
21989else
21990 cat >conftest.$ac_ext <<_ACEOF
21991/* confdefs.h. */
21992_ACEOF
21993cat confdefs.h >>conftest.$ac_ext
21994cat >>conftest.$ac_ext <<_ACEOF
21995/* end confdefs.h. */
21996main () {
21997 /* Are we little or big endian? From Harbison&Steele. */
21998 union
21999 {
22000 long l;
22001 char c[sizeof (long)];
22002 } u;
22003 u.l = 1;
22004 exit (u.c[sizeof (long) - 1] == 1);
22005}
22006_ACEOF
22007rm -f conftest$ac_exeext
22008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22009 (eval $ac_link) 2>&5
22010 ac_status=$?
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; }; then
22018 ac_cv_c_bigendian=no
22019else
22020 echo "$as_me: program exited with status $ac_status" >&5
22021echo "$as_me: failed program was:" >&5
22022sed 's/^/| /' conftest.$ac_ext >&5
22023
22024( exit $ac_status )
22025ac_cv_c_bigendian=yes
22026fi
ac1cb8d3 22027rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22028fi
22029fi
22030fi
22031echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22032echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22033if test $ac_cv_c_bigendian = unknown; then
22034 { 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
22035echo "$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;}
22036fi
22037if test $ac_cv_c_bigendian = yes; then
22038 cat >>confdefs.h <<\_ACEOF
22039#define WORDS_BIGENDIAN 1
22040_ACEOF
22041
22042fi
22043
22044
a848cd7e
SC
22045
22046
22047
22048 ac_ext=cc
22049ac_cpp='$CXXCPP $CPPFLAGS'
22050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22053
22054
22055
22056for ac_header in iostream
22057do
22058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22059if eval "test \"\${$as_ac_Header+set}\" = set"; then
22060 echo "$as_me:$LINENO: checking for $ac_header" >&5
22061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22062if eval "test \"\${$as_ac_Header+set}\" = set"; then
22063 echo $ECHO_N "(cached) $ECHO_C" >&6
22064fi
22065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22067else
22068 # Is the header compilable?
22069echo "$as_me:$LINENO: checking $ac_header usability" >&5
22070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22071cat >conftest.$ac_ext <<_ACEOF
22072/* confdefs.h. */
22073_ACEOF
22074cat confdefs.h >>conftest.$ac_ext
22075cat >>conftest.$ac_ext <<_ACEOF
22076/* end confdefs.h. */
22077$ac_includes_default
22078#include <$ac_header>
22079_ACEOF
22080rm -f conftest.$ac_objext
22081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22082 (eval $ac_compile) 2>conftest.er1
a848cd7e 22083 ac_status=$?
ac1cb8d3
VS
22084 grep -v '^ *+' conftest.er1 >conftest.err
22085 rm -f conftest.er1
22086 cat conftest.err >&5
a848cd7e
SC
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } &&
5d7b7554 22089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22092 ac_status=$?
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; } &&
22095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097 (eval $ac_try) 2>&5
22098 ac_status=$?
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; }; then
22101 ac_header_compiler=yes
22102else
22103 echo "$as_me: failed program was:" >&5
22104sed 's/^/| /' conftest.$ac_ext >&5
22105
22106ac_header_compiler=no
22107fi
ac1cb8d3 22108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22109echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22110echo "${ECHO_T}$ac_header_compiler" >&6
22111
22112# Is the header present?
22113echo "$as_me:$LINENO: checking $ac_header presence" >&5
22114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22115cat >conftest.$ac_ext <<_ACEOF
22116/* confdefs.h. */
22117_ACEOF
22118cat confdefs.h >>conftest.$ac_ext
22119cat >>conftest.$ac_ext <<_ACEOF
22120/* end confdefs.h. */
22121#include <$ac_header>
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 ac_header_preproc=yes
22142else
22143 echo "$as_me: failed program was:" >&5
22144sed 's/^/| /' conftest.$ac_ext >&5
22145
22146 ac_header_preproc=no
22147fi
22148rm -f conftest.err conftest.$ac_ext
22149echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22150echo "${ECHO_T}$ac_header_preproc" >&6
22151
22152# So? What about this header?
ac1cb8d3
VS
22153case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22154 yes:no: )
a848cd7e
SC
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22156echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22158echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22159 ac_header_preproc=yes
a848cd7e 22160 ;;
ac1cb8d3 22161 no:yes:* )
a848cd7e
SC
22162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22163echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22165echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22167echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22169echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22171echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22173echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22174 (
22175 cat <<\_ASBOX
ac1cb8d3
VS
22176## ----------------------------------------- ##
22177## Report this to wx-dev@lists.wxwidgets.org ##
22178## ----------------------------------------- ##
a848cd7e
SC
22179_ASBOX
22180 ) |
22181 sed "s/^/$as_me: WARNING: /" >&2
22182 ;;
22183esac
22184echo "$as_me:$LINENO: checking for $ac_header" >&5
22185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22186if eval "test \"\${$as_ac_Header+set}\" = set"; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22188else
ac1cb8d3 22189 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22190fi
22191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22193
22194fi
22195if test `eval echo '${'$as_ac_Header'}'` = yes; then
22196 cat >>confdefs.h <<_ACEOF
22197#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22198_ACEOF
22199
22200fi
22201
22202done
22203
22204
22205 if test "$ac_cv_header_iostream" = "yes" ; then
22206 :
22207 else
22208 cat >>confdefs.h <<\_ACEOF
22209#define wxUSE_IOSTREAMH 1
22210_ACEOF
22211
22212 fi
22213
5d7b7554
VZ
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
a848cd7e
SC
22219
22220
22221
22222
22223 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22224echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22225if test "${wx_cv_cpp_bool+set}" = set; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22227else
22228
22229
22230
22231 ac_ext=cc
22232ac_cpp='$CXXCPP $CPPFLAGS'
22233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22236
22237
22238 cat >conftest.$ac_ext <<_ACEOF
22239/* confdefs.h. */
22240_ACEOF
22241cat confdefs.h >>conftest.$ac_ext
22242cat >>conftest.$ac_ext <<_ACEOF
22243/* end confdefs.h. */
22244
22245
22246int
22247main ()
22248{
22249
22250 bool b = true;
22251
22252 return 0;
22253
22254 ;
22255 return 0;
22256}
22257_ACEOF
22258rm -f conftest.$ac_objext
22259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22260 (eval $ac_compile) 2>conftest.er1
a848cd7e 22261 ac_status=$?
ac1cb8d3
VS
22262 grep -v '^ *+' conftest.er1 >conftest.err
22263 rm -f conftest.er1
22264 cat conftest.err >&5
a848cd7e
SC
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } &&
5d7b7554 22267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269 (eval $ac_try) 2>&5
22270 ac_status=$?
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); }; } &&
22273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279
22280 wx_cv_cpp_bool=yes
22281
22282else
22283 echo "$as_me: failed program was:" >&5
22284sed 's/^/| /' conftest.$ac_ext >&5
22285
22286
22287 wx_cv_cpp_bool=no
22288
22289
22290fi
ac1cb8d3 22291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22292
5d7b7554
VZ
22293 ac_ext=cc
22294ac_cpp='$CXXCPP $CPPFLAGS'
22295ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22296ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22298
22299
22300fi
22301echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22302echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22303
22304 if test "$wx_cv_cpp_bool" = "yes"; then
22305 cat >>confdefs.h <<\_ACEOF
22306#define HAVE_BOOL 1
22307_ACEOF
22308
22309 fi
22310
22311
22312
22313 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22314echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22315if test "${wx_cv_explicit+set}" = set; then
22316 echo $ECHO_N "(cached) $ECHO_C" >&6
22317else
22318
22319
22320
22321 ac_ext=cc
22322ac_cpp='$CXXCPP $CPPFLAGS'
22323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22326
22327
22328 cat >conftest.$ac_ext <<_ACEOF
22329/* confdefs.h. */
22330_ACEOF
22331cat confdefs.h >>conftest.$ac_ext
22332cat >>conftest.$ac_ext <<_ACEOF
22333/* end confdefs.h. */
22334
22335 class Foo { public: explicit Foo(int) {} };
22336
22337int
22338main ()
22339{
22340
22341 return 0;
22342
22343 ;
22344 return 0;
22345}
22346_ACEOF
22347rm -f conftest.$ac_objext
22348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22349 (eval $ac_compile) 2>conftest.er1
a848cd7e 22350 ac_status=$?
ac1cb8d3
VS
22351 grep -v '^ *+' conftest.er1 >conftest.err
22352 rm -f conftest.er1
22353 cat conftest.err >&5
a848cd7e
SC
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } &&
5d7b7554 22356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22358 (eval $ac_try) 2>&5
22359 ac_status=$?
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; } &&
22362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22364 (eval $ac_try) 2>&5
22365 ac_status=$?
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); }; }; then
22368
22369 cat >conftest.$ac_ext <<_ACEOF
22370/* confdefs.h. */
22371_ACEOF
22372cat confdefs.h >>conftest.$ac_ext
22373cat >>conftest.$ac_ext <<_ACEOF
22374/* end confdefs.h. */
22375
22376 class Foo { public: explicit Foo(int) {} };
22377 static void TakeFoo(const Foo& foo) { }
22378
22379int
22380main ()
22381{
22382
22383 TakeFoo(17);
22384 return 0;
22385
22386 ;
22387 return 0;
22388}
22389_ACEOF
22390rm -f conftest.$ac_objext
22391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22392 (eval $ac_compile) 2>conftest.er1
a848cd7e 22393 ac_status=$?
ac1cb8d3
VS
22394 grep -v '^ *+' conftest.er1 >conftest.err
22395 rm -f conftest.er1
22396 cat conftest.err >&5
a848cd7e
SC
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } &&
5d7b7554 22399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22402 ac_status=$?
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; } &&
22405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22408 ac_status=$?
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }; }; then
22411 wx_cv_explicit=no
22412else
22413 echo "$as_me: failed program was:" >&5
22414sed 's/^/| /' conftest.$ac_ext >&5
22415
22416wx_cv_explicit=yes
22417
22418fi
ac1cb8d3 22419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22420
22421else
22422 echo "$as_me: failed program was:" >&5
22423sed 's/^/| /' conftest.$ac_ext >&5
22424
22425wx_cv_explicit=no
22426
22427fi
ac1cb8d3 22428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22429
5d7b7554
VZ
22430 ac_ext=cc
22431ac_cpp='$CXXCPP $CPPFLAGS'
22432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22435
22436
22437fi
22438echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22439echo "${ECHO_T}$wx_cv_explicit" >&6
22440
22441 if test "$wx_cv_explicit" = "yes"; then
22442 cat >>confdefs.h <<\_ACEOF
22443#define HAVE_EXPLICIT 1
22444_ACEOF
22445
22446 fi
22447
22448
22449echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22450echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22451if test "${ac_cv_cxx_const_cast+set}" = set; then
22452 echo $ECHO_N "(cached) $ECHO_C" >&6
22453else
22454
22455
22456 ac_ext=cc
22457ac_cpp='$CXXCPP $CPPFLAGS'
22458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22461
22462 cat >conftest.$ac_ext <<_ACEOF
22463/* confdefs.h. */
22464_ACEOF
22465cat confdefs.h >>conftest.$ac_ext
22466cat >>conftest.$ac_ext <<_ACEOF
22467/* end confdefs.h. */
22468
22469int
22470main ()
22471{
22472int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22473 ;
22474 return 0;
22475}
22476_ACEOF
22477rm -f conftest.$ac_objext
22478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22479 (eval $ac_compile) 2>conftest.er1
a848cd7e 22480 ac_status=$?
ac1cb8d3
VS
22481 grep -v '^ *+' conftest.er1 >conftest.err
22482 rm -f conftest.er1
22483 cat conftest.err >&5
a848cd7e
SC
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } &&
5d7b7554 22486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488 (eval $ac_try) 2>&5
22489 ac_status=$?
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; } &&
22492 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494 (eval $ac_try) 2>&5
22495 ac_status=$?
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; }; then
22498 ac_cv_cxx_const_cast=yes
22499else
22500 echo "$as_me: failed program was:" >&5
22501sed 's/^/| /' conftest.$ac_ext >&5
22502
22503ac_cv_cxx_const_cast=no
22504fi
ac1cb8d3 22505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22506 ac_ext=cc
22507ac_cpp='$CXXCPP $CPPFLAGS'
22508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22511
22512
22513fi
22514echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22515echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22516if test "$ac_cv_cxx_const_cast" = yes; then
22517
22518cat >>confdefs.h <<\_ACEOF
22519#define HAVE_CONST_CAST
22520_ACEOF
22521
22522fi
22523
7714864e
RL
22524echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22525echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22526if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22528else
22529
22530
22531 ac_ext=cc
22532ac_cpp='$CXXCPP $CPPFLAGS'
22533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22536
22537 cat >conftest.$ac_ext <<_ACEOF
22538/* confdefs.h. */
22539_ACEOF
22540cat confdefs.h >>conftest.$ac_ext
22541cat >>conftest.$ac_ext <<_ACEOF
22542/* end confdefs.h. */
22543#include <typeinfo>
22544class Base { public : Base () {} virtual void f () = 0;};
22545class Derived : public Base { public : Derived () {} virtual void f () {} };
22546class Unrelated { public : Unrelated () {} };
22547int g (Unrelated&) { return 0; }
22548int
22549main ()
22550{
22551
22552Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22553 ;
22554 return 0;
22555}
22556_ACEOF
22557rm -f conftest.$ac_objext
22558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22559 (eval $ac_compile) 2>conftest.er1
22560 ac_status=$?
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } &&
5d7b7554 22566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; } &&
22572 { ac_try='test -s conftest.$ac_objext'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; }; then
22578 ac_cv_cxx_reinterpret_cast=yes
22579else
22580 echo "$as_me: failed program was:" >&5
22581sed 's/^/| /' conftest.$ac_ext >&5
22582
22583ac_cv_cxx_reinterpret_cast=no
22584fi
22585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22586 ac_ext=cc
22587ac_cpp='$CXXCPP $CPPFLAGS'
22588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
22591
22592
22593fi
22594echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22595echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22596if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22597
22598cat >>confdefs.h <<\_ACEOF
22599#define HAVE_REINTERPRET_CAST
22600_ACEOF
22601
22602fi
22603
a848cd7e
SC
22604echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22605echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22606if test "${ac_cv_cxx_static_cast+set}" = set; then
22607 echo $ECHO_N "(cached) $ECHO_C" >&6
22608else
22609
22610
22611 ac_ext=cc
22612ac_cpp='$CXXCPP $CPPFLAGS'
22613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22616
22617 cat >conftest.$ac_ext <<_ACEOF
22618/* confdefs.h. */
22619_ACEOF
22620cat confdefs.h >>conftest.$ac_ext
22621cat >>conftest.$ac_ext <<_ACEOF
22622/* end confdefs.h. */
22623#include <typeinfo>
22624class Base { public : Base () {} virtual void f () = 0; };
22625class Derived : public Base { public : Derived () {} virtual void f () {} };
22626int g (Derived&) { return 0; }
22627int
22628main ()
22629{
22630
22631Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22632 ;
22633 return 0;
22634}
22635_ACEOF
22636rm -f conftest.$ac_objext
22637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22638 (eval $ac_compile) 2>conftest.er1
a848cd7e 22639 ac_status=$?
ac1cb8d3
VS
22640 grep -v '^ *+' conftest.er1 >conftest.err
22641 rm -f conftest.er1
22642 cat conftest.err >&5
a848cd7e
SC
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); } &&
5d7b7554 22645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22647 (eval $ac_try) 2>&5
22648 ac_status=$?
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); }; } &&
22651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22653 (eval $ac_try) 2>&5
22654 ac_status=$?
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); }; }; then
22657 ac_cv_cxx_static_cast=yes
22658else
22659 echo "$as_me: failed program was:" >&5
22660sed 's/^/| /' conftest.$ac_ext >&5
22661
22662ac_cv_cxx_static_cast=no
22663fi
ac1cb8d3 22664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22665 ac_ext=cc
22666ac_cpp='$CXXCPP $CPPFLAGS'
22667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22670
22671
22672fi
22673echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22674echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22675if test "$ac_cv_cxx_static_cast" = yes; then
22676
22677cat >>confdefs.h <<\_ACEOF
22678#define HAVE_STATIC_CAST
22679_ACEOF
22680
22681fi
22682
22683
3c28b7cb 22684if test "x$SUNCXX" = xyes; then
c92ad099 22685 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22686fi
22687
9122d155 22688if test "x$SUNCC" = xyes; then
c92ad099 22689 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22690fi
22691
0ad5d837 22692if test "x$SGICC" = "xyes"; then
c92ad099 22693 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22694fi
22695if test "x$SGICXX" = "xyes"; then
c92ad099 22696 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22697fi
22698
2eef8513 22699if test "x$HPCC" = "xyes"; then
c92ad099 22700 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22701fi
22702if test "x$HPCXX" = "xyes"; then
c92ad099 22703 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22704fi
22705
22706if test "x$COMPAQCXX" = "xyes"; then
22707 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22708fi
22709
f56c22b4 22710if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
22711 if test "$wxUSE_UNICODE" = "yes"; then
22712 std_string="std::wstring"
22713 char_type="wchar_t"
22714 else
22715 std_string="std::string"
22716 char_type="char"
22717 fi
22718
22719 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22720echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22721 cat >conftest.$ac_ext <<_ACEOF
22722/* confdefs.h. */
22723_ACEOF
22724cat confdefs.h >>conftest.$ac_ext
22725cat >>conftest.$ac_ext <<_ACEOF
22726/* end confdefs.h. */
22727#include <string>
a848cd7e
SC
22728int
22729main ()
22730{
f56c22b4 22731$std_string foo;
a848cd7e
SC
22732 ;
22733 return 0;
22734}
22735_ACEOF
22736rm -f conftest.$ac_objext
22737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22738 (eval $ac_compile) 2>conftest.er1
a848cd7e 22739 ac_status=$?
ac1cb8d3
VS
22740 grep -v '^ *+' conftest.er1 >conftest.err
22741 rm -f conftest.er1
22742 cat conftest.err >&5
a848cd7e
SC
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } &&
5d7b7554 22745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747 (eval $ac_try) 2>&5
22748 ac_status=$?
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; } &&
22751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22754 ac_status=$?
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; }; then
22757 echo "$as_me:$LINENO: result: yes" >&5
22758echo "${ECHO_T}yes" >&6
0a08f02a
MB
22759 cat >>confdefs.h <<\_ACEOF
22760#define HAVE_STD_WSTRING 1
22761_ACEOF
22762
a848cd7e
SC
22763else
22764 echo "$as_me: failed program was:" >&5
22765sed 's/^/| /' conftest.$ac_ext >&5
22766
22767echo "$as_me:$LINENO: result: no" >&5
22768echo "${ECHO_T}no" >&6
f56c22b4
MW
22769 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22770echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22771 cat >conftest.$ac_ext <<_ACEOF
22772/* confdefs.h. */
22773_ACEOF
22774cat confdefs.h >>conftest.$ac_ext
22775cat >>conftest.$ac_ext <<_ACEOF
22776/* end confdefs.h. */
22777
22778 #ifdef HAVE_WCHAR_H
22779 # ifdef __CYGWIN__
22780 # include <stddef.h>
22781 # endif
22782 # include <wchar.h>
22783 #endif
22784 #ifdef HAVE_STDLIB_H
22785 # include <stdlib.h>
22786 #endif
22787 #include <stdio.h>
22788 #include <string>
22789
22790int
22791main ()
22792{
f56c22b4
MW
22793std::basic_string<$char_type> foo;
22794 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22795 ;
22796 return 0;
22797}
22798_ACEOF
22799rm -f conftest.$ac_objext
22800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22801 (eval $ac_compile) 2>conftest.er1
22802 ac_status=$?
22803 grep -v '^ *+' conftest.er1 >conftest.err
22804 rm -f conftest.er1
22805 cat conftest.err >&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } &&
5d7b7554 22808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22811 ac_status=$?
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; } &&
22814 { ac_try='test -s conftest.$ac_objext'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; }; then
22820 echo "$as_me:$LINENO: result: yes" >&5
22821echo "${ECHO_T}yes" >&6
22822else
22823 echo "$as_me: failed program was:" >&5
22824sed 's/^/| /' conftest.$ac_ext >&5
22825
22826echo "$as_me:$LINENO: result: no" >&5
22827echo "${ECHO_T}no" >&6
f56c22b4 22828 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22829 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22830echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22831 { (exit 1); exit 1; }; }
22832 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22833 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22834echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22835 { (exit 1); exit 1; }; }
f56c22b4
MW
22836 else
22837 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22838echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22839 wxUSE_STD_STRING=no
22840 fi
22841
0a08f02a 22842
a848cd7e 22843fi
ac1cb8d3 22844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22845
0a08f02a
MB
22846fi
22847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
22848fi
22849
22850if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
22851 echo "$as_me:$LINENO: checking for std::istream" >&5
22852echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22853if test "${ac_cv_type_std__istream+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22855else
22856 cat >conftest.$ac_ext <<_ACEOF
22857/* confdefs.h. */
22858_ACEOF
22859cat confdefs.h >>conftest.$ac_ext
22860cat >>conftest.$ac_ext <<_ACEOF
22861/* end confdefs.h. */
22862#include <iostream>
22863
22864int
22865main ()
22866{
22867if ((std::istream *) 0)
22868 return 0;
22869if (sizeof (std::istream))
22870 return 0;
22871 ;
22872 return 0;
22873}
22874_ACEOF
22875rm -f conftest.$ac_objext
22876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22877 (eval $ac_compile) 2>conftest.er1
22878 ac_status=$?
22879 grep -v '^ *+' conftest.er1 >conftest.err
22880 rm -f conftest.er1
22881 cat conftest.err >&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } &&
5d7b7554 22884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886 (eval $ac_try) 2>&5
22887 ac_status=$?
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; } &&
22890 { ac_try='test -s conftest.$ac_objext'
22891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892 (eval $ac_try) 2>&5
22893 ac_status=$?
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); }; }; then
22896 ac_cv_type_std__istream=yes
22897else
22898 echo "$as_me: failed program was:" >&5
22899sed 's/^/| /' conftest.$ac_ext >&5
22900
22901ac_cv_type_std__istream=no
22902fi
22903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22904fi
22905echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22906echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22907if test $ac_cv_type_std__istream = yes; then
22908
22909cat >>confdefs.h <<_ACEOF
22910#define HAVE_STD__ISTREAM 1
22911_ACEOF
22912
22913
22914else
22915 wxUSE_STD_IOSTREAM=no
22916fi
22917echo "$as_me:$LINENO: checking for std::ostream" >&5
22918echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22919if test "${ac_cv_type_std__ostream+set}" = set; then
22920 echo $ECHO_N "(cached) $ECHO_C" >&6
22921else
22922 cat >conftest.$ac_ext <<_ACEOF
22923/* confdefs.h. */
22924_ACEOF
22925cat confdefs.h >>conftest.$ac_ext
22926cat >>conftest.$ac_ext <<_ACEOF
22927/* end confdefs.h. */
22928#include <iostream>
22929
22930int
22931main ()
22932{
22933if ((std::ostream *) 0)
22934 return 0;
22935if (sizeof (std::ostream))
22936 return 0;
22937 ;
22938 return 0;
22939}
22940_ACEOF
22941rm -f conftest.$ac_objext
22942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22943 (eval $ac_compile) 2>conftest.er1
22944 ac_status=$?
22945 grep -v '^ *+' conftest.er1 >conftest.err
22946 rm -f conftest.er1
22947 cat conftest.err >&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); } &&
5d7b7554 22950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; } &&
22956 { ac_try='test -s conftest.$ac_objext'
22957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958 (eval $ac_try) 2>&5
22959 ac_status=$?
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; }; then
22962 ac_cv_type_std__ostream=yes
22963else
22964 echo "$as_me: failed program was:" >&5
22965sed 's/^/| /' conftest.$ac_ext >&5
22966
22967ac_cv_type_std__ostream=no
22968fi
22969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22970fi
22971echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22972echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22973if test $ac_cv_type_std__ostream = yes; then
22974
22975cat >>confdefs.h <<_ACEOF
22976#define HAVE_STD__OSTREAM 1
22977_ACEOF
22978
22979
22980else
22981 wxUSE_STD_IOSTREAM=no
22982fi
22983
22984
22985 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22986 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22987 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22988echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22989 { (exit 1); exit 1; }; }
22990 else
22991 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22992echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22993 fi
f56c22b4 22994 fi
0a08f02a
MB
22995fi
22996
22997if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
22998 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22999echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23000 cat >conftest.$ac_ext <<_ACEOF
23001/* confdefs.h. */
23002_ACEOF
23003cat confdefs.h >>conftest.$ac_ext
23004cat >>conftest.$ac_ext <<_ACEOF
23005/* end confdefs.h. */
23006#include <string>
0a08f02a
MB
23007 #include <functional>
23008 #include <algorithm>
23009 #include <vector>
23010 #include <list>
a848cd7e
SC
23011int
23012main ()
23013{
0a08f02a
MB
23014std::vector<int> moo;
23015 std::list<int> foo;
23016 std::vector<int>::iterator it =
23017 std::find_if(moo.begin(), moo.end(),
23018 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23019 ;
23020 return 0;
23021}
23022_ACEOF
23023rm -f conftest.$ac_objext
23024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23025 (eval $ac_compile) 2>conftest.er1
a848cd7e 23026 ac_status=$?
ac1cb8d3
VS
23027 grep -v '^ *+' conftest.er1 >conftest.err
23028 rm -f conftest.er1
23029 cat conftest.err >&5
a848cd7e
SC
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); } &&
5d7b7554 23032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034 (eval $ac_try) 2>&5
23035 ac_status=$?
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); }; } &&
23038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
23041 ac_status=$?
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; }; then
23044 echo "$as_me:$LINENO: result: yes" >&5
23045echo "${ECHO_T}yes" >&6
a848cd7e
SC
23046else
23047 echo "$as_me: failed program was:" >&5
23048sed 's/^/| /' conftest.$ac_ext >&5
23049
23050echo "$as_me:$LINENO: result: no" >&5
23051echo "${ECHO_T}no" >&6
0a08f02a
MB
23052 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23053echo "$as_me: error: Basic STL functionality missing" >&2;}
23054 { (exit 1); exit 1; }; }
a848cd7e 23055fi
ac1cb8d3 23056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23057
23058 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23059echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23060 cat >conftest.$ac_ext <<_ACEOF
23061/* confdefs.h. */
23062_ACEOF
23063cat confdefs.h >>conftest.$ac_ext
23064cat >>conftest.$ac_ext <<_ACEOF
23065/* end confdefs.h. */
23066#include <string>
23067int
23068main ()
23069{
23070std::string foo, bar;
23071 foo.compare(bar);
23072 foo.compare(1, 1, bar);
23073 foo.compare(1, 1, bar, 1, 1);
23074 foo.compare("");
23075 foo.compare(1, 1, "");
23076 foo.compare(1, 1, "", 2);
23077 ;
23078 return 0;
23079}
23080_ACEOF
23081rm -f conftest.$ac_objext
23082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23083 (eval $ac_compile) 2>conftest.er1
a848cd7e 23084 ac_status=$?
ac1cb8d3
VS
23085 grep -v '^ *+' conftest.er1 >conftest.err
23086 rm -f conftest.er1
23087 cat conftest.err >&5
a848cd7e
SC
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); } &&
5d7b7554 23090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092 (eval $ac_try) 2>&5
23093 ac_status=$?
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); }; } &&
23096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23099 ac_status=$?
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; }; then
23102 echo "$as_me:$LINENO: result: yes" >&5
23103echo "${ECHO_T}yes" >&6
23104 cat >>confdefs.h <<\_ACEOF
23105#define HAVE_STD_STRING_COMPARE 1
23106_ACEOF
23107
23108else
23109 echo "$as_me: failed program was:" >&5
23110sed 's/^/| /' conftest.$ac_ext >&5
23111
23112echo "$as_me:$LINENO: result: no" >&5
23113echo "${ECHO_T}no" >&6
23114fi
ac1cb8d3 23115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23116
23117 if test "${ac_cv_header_hash_map+set}" = set; then
23118 echo "$as_me:$LINENO: checking for hash_map" >&5
23119echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23120if test "${ac_cv_header_hash_map+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23122fi
23123echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23124echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23125else
23126 # Is the header compilable?
23127echo "$as_me:$LINENO: checking hash_map usability" >&5
23128echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23129cat >conftest.$ac_ext <<_ACEOF
23130/* confdefs.h. */
23131_ACEOF
23132cat confdefs.h >>conftest.$ac_ext
23133cat >>conftest.$ac_ext <<_ACEOF
23134/* end confdefs.h. */
23135$ac_includes_default
23136#include <hash_map>
23137_ACEOF
23138rm -f conftest.$ac_objext
23139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23140 (eval $ac_compile) 2>conftest.er1
bdcade0a 23141 ac_status=$?
ac1cb8d3
VS
23142 grep -v '^ *+' conftest.er1 >conftest.err
23143 rm -f conftest.er1
23144 cat conftest.err >&5
bdcade0a
MB
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } &&
5d7b7554 23147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149 (eval $ac_try) 2>&5
23150 ac_status=$?
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); }; } &&
23153 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23156 ac_status=$?
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; }; then
23159 ac_header_compiler=yes
23160else
23161 echo "$as_me: failed program was:" >&5
23162sed 's/^/| /' conftest.$ac_ext >&5
23163
23164ac_header_compiler=no
23165fi
ac1cb8d3 23166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23168echo "${ECHO_T}$ac_header_compiler" >&6
23169
23170# Is the header present?
23171echo "$as_me:$LINENO: checking hash_map presence" >&5
23172echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23173cat >conftest.$ac_ext <<_ACEOF
23174/* confdefs.h. */
23175_ACEOF
23176cat confdefs.h >>conftest.$ac_ext
23177cat >>conftest.$ac_ext <<_ACEOF
23178/* end confdefs.h. */
23179#include <hash_map>
23180_ACEOF
23181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23183 ac_status=$?
23184 grep -v '^ *+' conftest.er1 >conftest.err
23185 rm -f conftest.er1
23186 cat conftest.err >&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } >/dev/null; then
23189 if test -s conftest.err; then
23190 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23191 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23192 else
23193 ac_cpp_err=
23194 fi
23195else
23196 ac_cpp_err=yes
23197fi
23198if test -z "$ac_cpp_err"; then
23199 ac_header_preproc=yes
23200else
23201 echo "$as_me: failed program was:" >&5
23202sed 's/^/| /' conftest.$ac_ext >&5
23203
23204 ac_header_preproc=no
23205fi
23206rm -f conftest.err conftest.$ac_ext
23207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23208echo "${ECHO_T}$ac_header_preproc" >&6
23209
23210# So? What about this header?
ac1cb8d3
VS
23211case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23212 yes:no: )
bdcade0a
MB
23213 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23214echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23215 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23216echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23217 ac_header_preproc=yes
bdcade0a 23218 ;;
ac1cb8d3 23219 no:yes:* )
bdcade0a
MB
23220 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23221echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23222 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23223echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23224 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23225echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23226 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23227echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23228 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23229echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23230 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23231echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23232 (
23233 cat <<\_ASBOX
ac1cb8d3
VS
23234## ----------------------------------------- ##
23235## Report this to wx-dev@lists.wxwidgets.org ##
23236## ----------------------------------------- ##
bdcade0a
MB
23237_ASBOX
23238 ) |
23239 sed "s/^/$as_me: WARNING: /" >&2
23240 ;;
23241esac
23242echo "$as_me:$LINENO: checking for hash_map" >&5
23243echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23244if test "${ac_cv_header_hash_map+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23246else
23247 ac_cv_header_hash_map=$ac_header_preproc
23248fi
23249echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23250echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23251
23252fi
23253if test $ac_cv_header_hash_map = yes; then
23254 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23255echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23256 cat >conftest.$ac_ext <<_ACEOF
23257/* confdefs.h. */
23258_ACEOF
23259cat confdefs.h >>conftest.$ac_ext
23260cat >>conftest.$ac_ext <<_ACEOF
23261/* end confdefs.h. */
23262#include <hash_map>
23263 #include <hash_set>
23264int
23265main ()
23266{
23267std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23268 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23269 ;
23270 return 0;
23271}
23272_ACEOF
23273rm -f conftest.$ac_objext
23274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23275 (eval $ac_compile) 2>conftest.er1
bdcade0a 23276 ac_status=$?
ac1cb8d3
VS
23277 grep -v '^ *+' conftest.er1 >conftest.err
23278 rm -f conftest.er1
23279 cat conftest.err >&5
bdcade0a
MB
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } &&
5d7b7554 23282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284 (eval $ac_try) 2>&5
23285 ac_status=$?
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); }; } &&
23288 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23291 ac_status=$?
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; }; then
23294 echo "$as_me:$LINENO: result: yes" >&5
23295echo "${ECHO_T}yes" >&6
23296 cat >>confdefs.h <<\_ACEOF
23297#define HAVE_HASH_MAP 1
23298_ACEOF
23299
23300 cat >>confdefs.h <<\_ACEOF
23301#define HAVE_STD_HASH_MAP 1
23302_ACEOF
23303
23304else
23305 echo "$as_me: failed program was:" >&5
23306sed 's/^/| /' conftest.$ac_ext >&5
23307
23308echo "$as_me:$LINENO: result: no" >&5
23309echo "${ECHO_T}no" >&6
23310fi
ac1cb8d3 23311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23312
23313fi
23314
23315
23316
23317 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23318 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23319echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23320if test "${ac_cv_header_ext_hash_map+set}" = set; then
23321 echo $ECHO_N "(cached) $ECHO_C" >&6
23322fi
23323echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23324echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23325else
23326 # Is the header compilable?
23327echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23328echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23329cat >conftest.$ac_ext <<_ACEOF
23330/* confdefs.h. */
23331_ACEOF
23332cat confdefs.h >>conftest.$ac_ext
23333cat >>conftest.$ac_ext <<_ACEOF
23334/* end confdefs.h. */
23335$ac_includes_default
23336#include <ext/hash_map>
23337_ACEOF
23338rm -f conftest.$ac_objext
23339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23340 (eval $ac_compile) 2>conftest.er1
bdcade0a 23341 ac_status=$?
ac1cb8d3
VS
23342 grep -v '^ *+' conftest.er1 >conftest.err
23343 rm -f conftest.er1
23344 cat conftest.err >&5
bdcade0a
MB
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } &&
5d7b7554 23347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349 (eval $ac_try) 2>&5
23350 ac_status=$?
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); }; } &&
23353 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23355 (eval $ac_try) 2>&5
23356 ac_status=$?
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); }; }; then
23359 ac_header_compiler=yes
23360else
23361 echo "$as_me: failed program was:" >&5
23362sed 's/^/| /' conftest.$ac_ext >&5
23363
23364ac_header_compiler=no
23365fi
ac1cb8d3 23366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23367echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23368echo "${ECHO_T}$ac_header_compiler" >&6
23369
23370# Is the header present?
23371echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23372echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23373cat >conftest.$ac_ext <<_ACEOF
23374/* confdefs.h. */
23375_ACEOF
23376cat confdefs.h >>conftest.$ac_ext
23377cat >>conftest.$ac_ext <<_ACEOF
23378/* end confdefs.h. */
23379#include <ext/hash_map>
23380_ACEOF
23381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23383 ac_status=$?
23384 grep -v '^ *+' conftest.er1 >conftest.err
23385 rm -f conftest.er1
23386 cat conftest.err >&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); } >/dev/null; then
23389 if test -s conftest.err; then
23390 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23391 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23392 else
23393 ac_cpp_err=
23394 fi
23395else
23396 ac_cpp_err=yes
23397fi
23398if test -z "$ac_cpp_err"; then
23399 ac_header_preproc=yes
23400else
23401 echo "$as_me: failed program was:" >&5
23402sed 's/^/| /' conftest.$ac_ext >&5
23403
23404 ac_header_preproc=no
23405fi
23406rm -f conftest.err conftest.$ac_ext
23407echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23408echo "${ECHO_T}$ac_header_preproc" >&6
23409
23410# So? What about this header?
ac1cb8d3
VS
23411case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23412 yes:no: )
bdcade0a
MB
23413 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23414echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23415 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23416echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23417 ac_header_preproc=yes
bdcade0a 23418 ;;
ac1cb8d3 23419 no:yes:* )
bdcade0a
MB
23420 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23421echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23422 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23423echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23424 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23425echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23426 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23427echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23428 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23429echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23430 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23431echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23432 (
23433 cat <<\_ASBOX
ac1cb8d3
VS
23434## ----------------------------------------- ##
23435## Report this to wx-dev@lists.wxwidgets.org ##
23436## ----------------------------------------- ##
bdcade0a
MB
23437_ASBOX
23438 ) |
23439 sed "s/^/$as_me: WARNING: /" >&2
23440 ;;
23441esac
23442echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23443echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23444if test "${ac_cv_header_ext_hash_map+set}" = set; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23446else
23447 ac_cv_header_ext_hash_map=$ac_header_preproc
23448fi
23449echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23450echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23451
23452fi
23453if test $ac_cv_header_ext_hash_map = yes; then
23454 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23455echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23456 cat >conftest.$ac_ext <<_ACEOF
23457/* confdefs.h. */
23458_ACEOF
23459cat confdefs.h >>conftest.$ac_ext
23460cat >>conftest.$ac_ext <<_ACEOF
23461/* end confdefs.h. */
23462#include <ext/hash_map>
23463 #include <ext/hash_set>
23464int
23465main ()
23466{
23467__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23468 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23469 ;
23470 return 0;
23471}
23472_ACEOF
23473rm -f conftest.$ac_objext
23474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23475 (eval $ac_compile) 2>conftest.er1
bdcade0a 23476 ac_status=$?
ac1cb8d3
VS
23477 grep -v '^ *+' conftest.er1 >conftest.err
23478 rm -f conftest.er1
23479 cat conftest.err >&5
bdcade0a
MB
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); } &&
5d7b7554 23482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484 (eval $ac_try) 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; } &&
23488 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490 (eval $ac_try) 2>&5
23491 ac_status=$?
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); }; }; then
23494 echo "$as_me:$LINENO: result: yes" >&5
23495echo "${ECHO_T}yes" >&6
23496 cat >>confdefs.h <<\_ACEOF
23497#define HAVE_EXT_HASH_MAP 1
23498_ACEOF
23499
23500 cat >>confdefs.h <<\_ACEOF
23501#define HAVE_GNU_CXX_HASH_MAP 1
23502_ACEOF
23503
23504else
23505 echo "$as_me: failed program was:" >&5
23506sed 's/^/| /' conftest.$ac_ext >&5
23507
23508echo "$as_me:$LINENO: result: no" >&5
23509echo "${ECHO_T}no" >&6
23510fi
ac1cb8d3 23511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23512
23513fi
23514
23515
a848cd7e
SC
23516fi
23517
23518
23519SEARCH_INCLUDE="\
23520 /usr/local/include \
23521 \
23522 /usr/Motif-2.1/include \
23523 /usr/Motif-1.2/include \
23524 /usr/include/Motif1.2 \
a848cd7e
SC
23525 \
23526 /usr/dt/include \
23527 /usr/openwin/include \
23528 \
23529 /usr/include/Xm \
23530 \
23531 /usr/X11R6/include \
23532 /usr/X11R6.4/include \
23533 /usr/X11R5/include \
23534 /usr/X11R4/include \
23535 \
23536 /usr/include/X11R6 \
23537 /usr/include/X11R5 \
23538 /usr/include/X11R4 \
23539 \
23540 /usr/local/X11R6/include \
23541 /usr/local/X11R5/include \
23542 /usr/local/X11R4/include \
23543 \
23544 /usr/local/include/X11R6 \
23545 /usr/local/include/X11R5 \
23546 /usr/local/include/X11R4 \
23547 \
23548 /usr/X11/include \
23549 /usr/include/X11 \
23550 /usr/local/X11/include \
23551 /usr/local/include/X11 \
23552 \
a848cd7e 23553 /usr/XFree86/include/X11 \
e051b34e
MW
23554 /usr/pkg/include \
23555 \
a848cd7e
SC
23556 /usr/openwin/share/include"
23557
6f9cf1e6 23558echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23559echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23560
23561case "${host}" in
23562 *-*-irix6* )
23563 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23565else
23566
c687b303
VZ
23567 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23568 for e in a so sl dylib dll.a; do
23569 libc="$d/libc.$e"
23570 if test -f $libc; then
23571 save_LIBS="$LIBS"
23572 LIBS="$libc"
23573 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23574int main() { return 0; }
23575_ACEOF
23576rm -f conftest.$ac_objext conftest$ac_exeext
23577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23578 (eval $ac_link) 2>conftest.er1
23579 ac_status=$?
23580 grep -v '^ *+' conftest.er1 >conftest.err
23581 rm -f conftest.er1
23582 cat conftest.err >&5
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); } &&
5d7b7554 23585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23587 (eval $ac_try) 2>&5
23588 ac_status=$?
23589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); }; } &&
23591 { ac_try='test -s conftest$ac_exeext'
23592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23593 (eval $ac_try) 2>&5
23594 ac_status=$?
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); }; }; then
23597 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23598else
23599 echo "$as_me: failed program was:" >&5
23600sed 's/^/| /' conftest.$ac_ext >&5
23601
23602fi
23603rm -f conftest.err conftest.$ac_objext \
23604 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23605 LIBS="$save_LIBS"
23606 if test "x$wx_cv_std_libpath" != "x"; then
23607 break 2
23608 fi
23609 fi
23610 done
23611 done
23612 if test "x$wx_cv_std_libpath" = "x"; then
23613 wx_cv_std_libpath="lib"
0ad5d837 23614 fi
0ad5d837
VZ
23615
23616
23617fi
6f9cf1e6
MW
23618
23619 ;;
23620
23621 *-*-solaris2* )
23622 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23623 wx_cv_std_libpath="lib/64"
23624 else
23625 wx_cv_std_libpath="lib"
23626 fi
23627 ;;
23628
23629 *-*-linux* )
23630 if test "$ac_cv_sizeof_void_p" = 8 -a \
23631 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23632 wx_cv_std_libpath="lib64"
23633 else
23634 wx_cv_std_libpath="lib"
23635 fi
c687b303
VZ
23636 ;;
23637
23638 *)
23639 wx_cv_std_libpath="lib";
23640 ;;
23641esac
0ad5d837 23642
6f9cf1e6
MW
23643echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23644echo "${ECHO_T}$wx_cv_std_libpath" >&6
23645
23646SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23647
3eca31dc
MW
23648if test "$build" != "$host" -a "$GCC" = yes; then
23649 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23650 cross_root=`dirname $cross_root`
23651 cross_root=`dirname $cross_root`
23652
23653 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23654 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23655 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23656
23657 if test -z "$PKG_CONFIG_PATH"; then
23658 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23659 export PKG_CONFIG_PATH
23660 fi
23661
23662 if test -z "$x_includes" -o "$x_includes" = NONE; then
23663
23664ac_find_includes=
23665for ac_dir in $SEARCH_INCLUDE /usr/include;
23666 do
23667 if test -f "$ac_dir/X11/Intrinsic.h"; then
23668 ac_find_includes=$ac_dir
23669 break
23670 fi
23671 done
23672
23673 x_includes=$ac_find_includes
23674 fi
23675 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23676
0ad5d837
VZ
23677 ac_find_libraries=
23678 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23679 do
23680 for ac_extension in a so sl dylib dll.a; do
23681 if test -f "$ac_dir/libXt.$ac_extension"; then
23682 ac_find_libraries=$ac_dir
23683 break 2
23684 fi
23685 done
23686 done
23687
23688 x_libraries=$ac_find_libraries
23689 fi
23690 fi
23691fi
23692
a848cd7e
SC
23693
23694cat >confcache <<\_ACEOF
23695# This file is a shell script that caches the results of configure
23696# tests run on this system so they can be shared between configure
23697# scripts and configure runs, see configure's option --config-cache.
23698# It is not useful on other systems. If it contains results you don't
23699# want to keep, you may remove or edit it.
23700#
23701# config.status only pays attention to the cache file if you give it
23702# the --recheck option to rerun configure.
23703#
23704# `ac_cv_env_foo' variables (set or unset) will be overridden when
23705# loading this file, other *unset* `ac_cv_foo' will be assigned the
23706# following values.
23707
23708_ACEOF
23709
23710# The following way of writing the cache mishandles newlines in values,
23711# but we know of no workaround that is simple, portable, and efficient.
23712# So, don't put newlines in cache variables' values.
23713# Ultrix sh set writes to stderr and can't be redirected directly,
23714# and sets the high bit in the cache file unless we assign to the vars.
23715{
23716 (set) 2>&1 |
23717 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23718 *ac_space=\ *)
23719 # `set' does not quote correctly, so add quotes (double-quote
23720 # substitution turns \\\\ into \\, and sed turns \\ into \).
23721 sed -n \
ac1cb8d3
VS
23722 "s/'/'\\\\''/g;
23723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23724 ;;
23725 *)
23726 # `set' quotes correctly as required by POSIX, so do not add quotes.
23727 sed -n \
ac1cb8d3 23728 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23729 ;;
23730 esac;
23731} |
23732 sed '
23733 t clear
23734 : clear
23735 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23736 t end
23737 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23738 : end' >>confcache
23739if diff $cache_file confcache >/dev/null 2>&1; then :; else
23740 if test -w $cache_file; then
23741 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23742 cat confcache >$cache_file
23743 else
23744 echo "not updating unwritable cache $cache_file"
23745 fi
23746fi
23747rm -f confcache
23748
23749if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23750 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23751echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23752if test "${wx_cv_lib_glibc21+set}" = set; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23754else
23755
23756 cat >conftest.$ac_ext <<_ACEOF
23757/* confdefs.h. */
23758_ACEOF
23759cat confdefs.h >>conftest.$ac_ext
23760cat >>conftest.$ac_ext <<_ACEOF
23761/* end confdefs.h. */
23762#include <features.h>
23763int
23764main ()
23765{
23766
23767 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23768 not glibc 2.1
a848cd7e
SC
23769 #endif
23770
23771 ;
23772 return 0;
23773}
23774_ACEOF
23775rm -f conftest.$ac_objext
23776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23777 (eval $ac_compile) 2>conftest.er1
a848cd7e 23778 ac_status=$?
ac1cb8d3
VS
23779 grep -v '^ *+' conftest.er1 >conftest.err
23780 rm -f conftest.er1
23781 cat conftest.err >&5
a848cd7e
SC
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); } &&
5d7b7554 23784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786 (eval $ac_try) 2>&5
23787 ac_status=$?
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; } &&
23790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792 (eval $ac_try) 2>&5
23793 ac_status=$?
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); }; }; then
23796
23797 wx_cv_lib_glibc21=yes
23798
23799else
23800 echo "$as_me: failed program was:" >&5
23801sed 's/^/| /' conftest.$ac_ext >&5
23802
23803
23804 wx_cv_lib_glibc21=no
23805
23806
23807fi
ac1cb8d3 23808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23809
23810fi
23811echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23812echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23813 if test "$wx_cv_lib_glibc21" = "yes"; then
23814 cat >>confdefs.h <<\_ACEOF
23815#define wxHAVE_GLIBC2 1
23816_ACEOF
23817
23818 fi
23819fi
23820
23821if test "x$wx_cv_lib_glibc21" = "xyes"; then
23822 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23823 cat >>confdefs.h <<\_ACEOF
23824#define _GNU_SOURCE 1
23825_ACEOF
23826
23827 fi
23828fi
23829
5d7b7554
VZ
23830have_cos=0
23831have_floor=0
a848cd7e 23832
5d7b7554
VZ
23833for ac_func in cos
23834do
23835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23836echo "$as_me:$LINENO: checking for $ac_func" >&5
23837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23838if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 23839 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 23840else
5d7b7554 23841 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23842/* confdefs.h. */
23843_ACEOF
23844cat confdefs.h >>conftest.$ac_ext
23845cat >>conftest.$ac_ext <<_ACEOF
23846/* end confdefs.h. */
5d7b7554
VZ
23847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23849#define $ac_func innocuous_$ac_func
23850
23851/* System header to define __stub macros and hopefully few prototypes,
23852 which can conflict with char $ac_func (); below.
23853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23854 <limits.h> exists even on freestanding compilers. */
23855
23856#ifdef __STDC__
23857# include <limits.h>
23858#else
23859# include <assert.h>
23860#endif
23861
23862#undef $ac_func
23863
23864/* Override any gcc2 internal prototype to avoid an error. */
23865#ifdef __cplusplus
23866extern "C"
23867{
23868#endif
23869/* We use char because int might match the return type of a gcc2
23870 builtin and then its argument prototype would still apply. */
23871char $ac_func ();
23872/* The GNU C library defines this for functions which it implements
23873 to always fail with ENOSYS. Some functions are actually named
23874 something starting with __ and the normal name is an alias. */
23875#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23876choke me
23877#else
23878char (*f) () = $ac_func;
23879#endif
23880#ifdef __cplusplus
23881}
23882#endif
23883
23884int
23885main ()
23886{
23887return f != $ac_func;
23888 ;
23889 return 0;
23890}
a848cd7e 23891_ACEOF
5d7b7554
VZ
23892rm -f conftest.$ac_objext conftest$ac_exeext
23893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23894 (eval $ac_link) 2>conftest.er1
a848cd7e 23895 ac_status=$?
ac1cb8d3
VS
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
a848cd7e
SC
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } &&
5d7b7554 23901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23903 (eval $ac_try) 2>&5
23904 ac_status=$?
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); }; } &&
5d7b7554 23907 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; }; then
5d7b7554 23913 eval "$as_ac_var=yes"
a848cd7e
SC
23914else
23915 echo "$as_me: failed program was:" >&5
23916sed 's/^/| /' conftest.$ac_ext >&5
23917
5d7b7554 23918eval "$as_ac_var=no"
a848cd7e 23919fi
5d7b7554
VZ
23920rm -f conftest.err conftest.$ac_objext \
23921 conftest$ac_exeext conftest.$ac_ext
a848cd7e 23922fi
5d7b7554
VZ
23923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23924echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23925if test `eval echo '${'$as_ac_var'}'` = yes; then
23926 cat >>confdefs.h <<_ACEOF
23927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23928_ACEOF
23929 have_cos=1
a848cd7e 23930fi
5d7b7554 23931done
a848cd7e 23932
ab0f0edd 23933
5d7b7554 23934for ac_func in floor
a848cd7e
SC
23935do
23936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23937echo "$as_me:$LINENO: checking for $ac_func" >&5
23938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23939if eval "test \"\${$as_ac_var+set}\" = set"; then
23940 echo $ECHO_N "(cached) $ECHO_C" >&6
23941else
23942 cat >conftest.$ac_ext <<_ACEOF
23943/* confdefs.h. */
23944_ACEOF
23945cat confdefs.h >>conftest.$ac_ext
23946cat >>conftest.$ac_ext <<_ACEOF
23947/* end confdefs.h. */
ac1cb8d3
VS
23948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23950#define $ac_func innocuous_$ac_func
23951
a848cd7e
SC
23952/* System header to define __stub macros and hopefully few prototypes,
23953 which can conflict with char $ac_func (); below.
23954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23955 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23956
a848cd7e
SC
23957#ifdef __STDC__
23958# include <limits.h>
23959#else
23960# include <assert.h>
23961#endif
ac1cb8d3
VS
23962
23963#undef $ac_func
23964
a848cd7e
SC
23965/* Override any gcc2 internal prototype to avoid an error. */
23966#ifdef __cplusplus
23967extern "C"
23968{
23969#endif
23970/* We use char because int might match the return type of a gcc2
23971 builtin and then its argument prototype would still apply. */
23972char $ac_func ();
23973/* The GNU C library defines this for functions which it implements
23974 to always fail with ENOSYS. Some functions are actually named
23975 something starting with __ and the normal name is an alias. */
23976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23977choke me
23978#else
23979char (*f) () = $ac_func;
23980#endif
23981#ifdef __cplusplus
23982}
23983#endif
23984
23985int
23986main ()
23987{
23988return f != $ac_func;
23989 ;
23990 return 0;
23991}
23992_ACEOF
23993rm -f conftest.$ac_objext conftest$ac_exeext
23994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23995 (eval $ac_link) 2>conftest.er1
a848cd7e 23996 ac_status=$?
ac1cb8d3
VS
23997 grep -v '^ *+' conftest.er1 >conftest.err
23998 rm -f conftest.er1
23999 cat conftest.err >&5
a848cd7e
SC
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); } &&
5d7b7554
VZ
24002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24004 (eval $ac_try) 2>&5
24005 ac_status=$?
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); }; } &&
24008 { ac_try='test -s conftest$ac_exeext'
24009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24010 (eval $ac_try) 2>&5
24011 ac_status=$?
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); }; }; then
24014 eval "$as_ac_var=yes"
24015else
24016 echo "$as_me: failed program was:" >&5
24017sed 's/^/| /' conftest.$ac_ext >&5
24018
24019eval "$as_ac_var=no"
24020fi
24021rm -f conftest.err conftest.$ac_objext \
24022 conftest$ac_exeext conftest.$ac_ext
24023fi
24024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24026if test `eval echo '${'$as_ac_var'}'` = yes; then
24027 cat >>confdefs.h <<_ACEOF
24028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24029_ACEOF
24030 have_floor=1
24031fi
24032done
24033
24034echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24035echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24036if test "$have_cos" = 1 -a "$have_floor" = 1; then
24037 echo "$as_me:$LINENO: result: yes" >&5
24038echo "${ECHO_T}yes" >&6
24039else
24040 echo "$as_me:$LINENO: result: no" >&5
24041echo "${ECHO_T}no" >&6
24042 LIBS="$LIBS -lm"
24043 # use different functions to avoid configure caching
24044 have_sin=0
24045 have_ceil=0
24046
24047for ac_func in sin
24048do
24049as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24050echo "$as_me:$LINENO: checking for $ac_func" >&5
24051echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24052if eval "test \"\${$as_ac_var+set}\" = set"; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24054else
24055 cat >conftest.$ac_ext <<_ACEOF
24056/* confdefs.h. */
24057_ACEOF
24058cat confdefs.h >>conftest.$ac_ext
24059cat >>conftest.$ac_ext <<_ACEOF
24060/* end confdefs.h. */
24061/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24063#define $ac_func innocuous_$ac_func
24064
24065/* System header to define __stub macros and hopefully few prototypes,
24066 which can conflict with char $ac_func (); below.
24067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24068 <limits.h> exists even on freestanding compilers. */
24069
24070#ifdef __STDC__
24071# include <limits.h>
24072#else
24073# include <assert.h>
24074#endif
24075
24076#undef $ac_func
24077
24078/* Override any gcc2 internal prototype to avoid an error. */
24079#ifdef __cplusplus
24080extern "C"
24081{
24082#endif
24083/* We use char because int might match the return type of a gcc2
24084 builtin and then its argument prototype would still apply. */
24085char $ac_func ();
24086/* The GNU C library defines this for functions which it implements
24087 to always fail with ENOSYS. Some functions are actually named
24088 something starting with __ and the normal name is an alias. */
24089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24090choke me
24091#else
24092char (*f) () = $ac_func;
24093#endif
24094#ifdef __cplusplus
24095}
24096#endif
24097
24098int
24099main ()
24100{
24101return f != $ac_func;
24102 ;
24103 return 0;
24104}
24105_ACEOF
24106rm -f conftest.$ac_objext conftest$ac_exeext
24107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24108 (eval $ac_link) 2>conftest.er1
24109 ac_status=$?
24110 grep -v '^ *+' conftest.er1 >conftest.err
24111 rm -f conftest.er1
24112 cat conftest.err >&5
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } &&
24115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24117 (eval $ac_try) 2>&5
24118 ac_status=$?
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); }; } &&
24121 { ac_try='test -s conftest$ac_exeext'
24122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123 (eval $ac_try) 2>&5
24124 ac_status=$?
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); }; }; then
24127 eval "$as_ac_var=yes"
24128else
24129 echo "$as_me: failed program was:" >&5
24130sed 's/^/| /' conftest.$ac_ext >&5
24131
24132eval "$as_ac_var=no"
24133fi
24134rm -f conftest.err conftest.$ac_objext \
24135 conftest$ac_exeext conftest.$ac_ext
24136fi
24137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24138echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24139if test `eval echo '${'$as_ac_var'}'` = yes; then
24140 cat >>confdefs.h <<_ACEOF
24141#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24142_ACEOF
24143 have_sin=1
24144fi
24145done
24146
24147
24148for ac_func in ceil
24149do
24150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24151echo "$as_me:$LINENO: checking for $ac_func" >&5
24152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24153if eval "test \"\${$as_ac_var+set}\" = set"; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24155else
24156 cat >conftest.$ac_ext <<_ACEOF
24157/* confdefs.h. */
24158_ACEOF
24159cat confdefs.h >>conftest.$ac_ext
24160cat >>conftest.$ac_ext <<_ACEOF
24161/* end confdefs.h. */
24162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24164#define $ac_func innocuous_$ac_func
24165
24166/* System header to define __stub macros and hopefully few prototypes,
24167 which can conflict with char $ac_func (); below.
24168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24169 <limits.h> exists even on freestanding compilers. */
24170
24171#ifdef __STDC__
24172# include <limits.h>
24173#else
24174# include <assert.h>
24175#endif
24176
24177#undef $ac_func
24178
24179/* Override any gcc2 internal prototype to avoid an error. */
24180#ifdef __cplusplus
24181extern "C"
24182{
24183#endif
24184/* We use char because int might match the return type of a gcc2
24185 builtin and then its argument prototype would still apply. */
24186char $ac_func ();
24187/* The GNU C library defines this for functions which it implements
24188 to always fail with ENOSYS. Some functions are actually named
24189 something starting with __ and the normal name is an alias. */
24190#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24191choke me
24192#else
24193char (*f) () = $ac_func;
24194#endif
24195#ifdef __cplusplus
24196}
24197#endif
24198
24199int
24200main ()
24201{
24202return f != $ac_func;
24203 ;
24204 return 0;
24205}
24206_ACEOF
24207rm -f conftest.$ac_objext conftest$ac_exeext
24208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24209 (eval $ac_link) 2>conftest.er1
24210 ac_status=$?
24211 grep -v '^ *+' conftest.er1 >conftest.err
24212 rm -f conftest.er1
24213 cat conftest.err >&5
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } &&
24216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24218 (eval $ac_try) 2>&5
24219 ac_status=$?
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); }; } &&
24222 { ac_try='test -s conftest$ac_exeext'
24223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224 (eval $ac_try) 2>&5
24225 ac_status=$?
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); }; }; then
24228 eval "$as_ac_var=yes"
24229else
24230 echo "$as_me: failed program was:" >&5
24231sed 's/^/| /' conftest.$ac_ext >&5
24232
24233eval "$as_ac_var=no"
24234fi
24235rm -f conftest.err conftest.$ac_objext \
24236 conftest$ac_exeext conftest.$ac_ext
24237fi
24238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24239echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24240if test `eval echo '${'$as_ac_var'}'` = yes; then
24241 cat >>confdefs.h <<_ACEOF
24242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24243_ACEOF
24244 have_ceil=1
24245fi
24246done
24247
24248 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24249echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24250 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24251 echo "$as_me:$LINENO: result: yes" >&5
24252echo "${ECHO_T}yes" >&6
24253 else
24254 echo "$as_me:$LINENO: result: no" >&5
24255echo "${ECHO_T}no" >&6
24256 # not sure we should warn the user, crash, etc.
24257 fi
24258fi
24259
24260
24261
24262if test "$wxUSE_REGEX" != "no"; then
24263 cat >>confdefs.h <<\_ACEOF
24264#define wxUSE_REGEX 1
24265_ACEOF
24266
24267
24268 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24269 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24270echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24271 wxUSE_REGEX=builtin
24272 fi
24273
24274 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24275 if test "${ac_cv_header_regex_h+set}" = set; then
24276 echo "$as_me:$LINENO: checking for regex.h" >&5
24277echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24278if test "${ac_cv_header_regex_h+set}" = set; then
24279 echo $ECHO_N "(cached) $ECHO_C" >&6
24280fi
24281echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24282echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24283else
24284 # Is the header compilable?
24285echo "$as_me:$LINENO: checking regex.h usability" >&5
24286echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24287cat >conftest.$ac_ext <<_ACEOF
24288/* confdefs.h. */
24289_ACEOF
24290cat confdefs.h >>conftest.$ac_ext
24291cat >>conftest.$ac_ext <<_ACEOF
24292/* end confdefs.h. */
24293$ac_includes_default
24294#include <regex.h>
24295_ACEOF
24296rm -f conftest.$ac_objext
24297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24298 (eval $ac_compile) 2>conftest.er1
24299 ac_status=$?
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } &&
24305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24307 (eval $ac_try) 2>&5
24308 ac_status=$?
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); }; } &&
24311 { ac_try='test -s conftest.$ac_objext'
24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313 (eval $ac_try) 2>&5
24314 ac_status=$?
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; }; then
24317 ac_header_compiler=yes
24318else
24319 echo "$as_me: failed program was:" >&5
24320sed 's/^/| /' conftest.$ac_ext >&5
24321
24322ac_header_compiler=no
24323fi
24324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24325echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24326echo "${ECHO_T}$ac_header_compiler" >&6
24327
24328# Is the header present?
24329echo "$as_me:$LINENO: checking regex.h presence" >&5
24330echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24331cat >conftest.$ac_ext <<_ACEOF
24332/* confdefs.h. */
24333_ACEOF
24334cat confdefs.h >>conftest.$ac_ext
24335cat >>conftest.$ac_ext <<_ACEOF
24336/* end confdefs.h. */
24337#include <regex.h>
24338_ACEOF
24339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24341 ac_status=$?
24342 grep -v '^ *+' conftest.er1 >conftest.err
24343 rm -f conftest.er1
24344 cat conftest.err >&5
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); } >/dev/null; then
24347 if test -s conftest.err; then
24348 ac_cpp_err=$ac_cxx_preproc_warn_flag
24349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24350 else
24351 ac_cpp_err=
24352 fi
24353else
24354 ac_cpp_err=yes
24355fi
24356if test -z "$ac_cpp_err"; then
24357 ac_header_preproc=yes
24358else
24359 echo "$as_me: failed program was:" >&5
24360sed 's/^/| /' conftest.$ac_ext >&5
24361
24362 ac_header_preproc=no
24363fi
24364rm -f conftest.err conftest.$ac_ext
24365echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24366echo "${ECHO_T}$ac_header_preproc" >&6
24367
24368# So? What about this header?
24369case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24370 yes:no: )
24371 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24372echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24373 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24374echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24375 ac_header_preproc=yes
24376 ;;
24377 no:yes:* )
24378 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24379echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24380 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24381echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24382 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24383echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24384 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24385echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24386 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24387echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24388 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24389echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24390 (
24391 cat <<\_ASBOX
24392## ----------------------------------------- ##
24393## Report this to wx-dev@lists.wxwidgets.org ##
24394## ----------------------------------------- ##
24395_ASBOX
24396 ) |
24397 sed "s/^/$as_me: WARNING: /" >&2
24398 ;;
24399esac
24400echo "$as_me:$LINENO: checking for regex.h" >&5
24401echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24402if test "${ac_cv_header_regex_h+set}" = set; then
24403 echo $ECHO_N "(cached) $ECHO_C" >&6
24404else
24405 ac_cv_header_regex_h=$ac_header_preproc
24406fi
24407echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24408echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24409
24410fi
24411if test $ac_cv_header_regex_h = yes; then
24412
24413
24414for ac_func in regcomp re_search
24415do
24416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24417echo "$as_me:$LINENO: checking for $ac_func" >&5
24418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24419if eval "test \"\${$as_ac_var+set}\" = set"; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
24421else
24422 cat >conftest.$ac_ext <<_ACEOF
24423/* confdefs.h. */
24424_ACEOF
24425cat confdefs.h >>conftest.$ac_ext
24426cat >>conftest.$ac_ext <<_ACEOF
24427/* end confdefs.h. */
24428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24430#define $ac_func innocuous_$ac_func
24431
24432/* System header to define __stub macros and hopefully few prototypes,
24433 which can conflict with char $ac_func (); below.
24434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24435 <limits.h> exists even on freestanding compilers. */
24436
24437#ifdef __STDC__
24438# include <limits.h>
24439#else
24440# include <assert.h>
24441#endif
24442
24443#undef $ac_func
24444
24445/* Override any gcc2 internal prototype to avoid an error. */
24446#ifdef __cplusplus
24447extern "C"
24448{
24449#endif
24450/* We use char because int might match the return type of a gcc2
24451 builtin and then its argument prototype would still apply. */
24452char $ac_func ();
24453/* The GNU C library defines this for functions which it implements
24454 to always fail with ENOSYS. Some functions are actually named
24455 something starting with __ and the normal name is an alias. */
24456#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24457choke me
24458#else
24459char (*f) () = $ac_func;
24460#endif
24461#ifdef __cplusplus
24462}
24463#endif
24464
24465int
24466main ()
24467{
24468return f != $ac_func;
24469 ;
24470 return 0;
24471}
24472_ACEOF
24473rm -f conftest.$ac_objext conftest$ac_exeext
24474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24475 (eval $ac_link) 2>conftest.er1
24476 ac_status=$?
24477 grep -v '^ *+' conftest.er1 >conftest.err
24478 rm -f conftest.er1
24479 cat conftest.err >&5
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); } &&
24482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484 (eval $ac_try) 2>&5
24485 ac_status=$?
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); }; } &&
24488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24490 (eval $ac_try) 2>&5
24491 ac_status=$?
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); }; }; then
24494 eval "$as_ac_var=yes"
24495else
24496 echo "$as_me: failed program was:" >&5
24497sed 's/^/| /' conftest.$ac_ext >&5
24498
24499eval "$as_ac_var=no"
24500fi
ac1cb8d3
VS
24501rm -f conftest.err conftest.$ac_objext \
24502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24503fi
24504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24505echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24506if test `eval echo '${'$as_ac_var'}'` = yes; then
24507 cat >>confdefs.h <<_ACEOF
24508#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24509_ACEOF
24510
24511fi
24512done
24513
24514fi
24515
24516
24517
24518 if test "x$ac_cv_func_regcomp" != "xyes"; then
24519 if test "$wxUSE_REGEX" = "sys" ; then
24520 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24521echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24522 { (exit 1); exit 1; }; }
24523 else
24524 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24525echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24526 wxUSE_REGEX=builtin
24527 fi
24528 else
24529 wxUSE_REGEX=sys
24530 cat >>confdefs.h <<\_ACEOF
24531#define WX_NO_REGEX_ADVANCED 1
24532_ACEOF
24533
24534 fi
24535 fi
24536fi
24537
24538
24539ZLIB_LINK=
24540if test "$wxUSE_ZLIB" != "no" ; then
24541 cat >>confdefs.h <<\_ACEOF
24542#define wxUSE_ZLIB 1
24543_ACEOF
24544
24545
24546 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24547 if test "$USE_DARWIN" = 1; then
24548 system_zlib_h_ok="yes"
24549 else
24550 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24551echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24552if test "${ac_cv_header_zlib_h+set}" = set; then
24553 echo $ECHO_N "(cached) $ECHO_C" >&6
24554else
24555 if test "$cross_compiling" = yes; then
24556 unset ac_cv_header_zlib_h
24557
24558else
24559 cat >conftest.$ac_ext <<_ACEOF
24560/* confdefs.h. */
24561_ACEOF
24562cat confdefs.h >>conftest.$ac_ext
24563cat >>conftest.$ac_ext <<_ACEOF
24564/* end confdefs.h. */
24565
24566 #include <zlib.h>
24567 #include <stdio.h>
24568
24569 int main()
24570 {
24571 FILE *f=fopen("conftestval", "w");
24572 if (!f) exit(1);
24573 fprintf(f, "%s",
24574 ZLIB_VERSION[0] == '1' &&
24575 (ZLIB_VERSION[2] > '1' ||
24576 (ZLIB_VERSION[2] == '1' &&
24577 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24578 exit(0);
24579 }
24580
24581_ACEOF
24582rm -f conftest$ac_exeext
24583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24584 (eval $ac_link) 2>&5
24585 ac_status=$?
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589 (eval $ac_try) 2>&5
24590 ac_status=$?
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); }; }; then
24593 ac_cv_header_zlib_h=`cat conftestval`
24594else
24595 echo "$as_me: program exited with status $ac_status" >&5
24596echo "$as_me: failed program was:" >&5
24597sed 's/^/| /' conftest.$ac_ext >&5
24598
24599( exit $ac_status )
24600ac_cv_header_zlib_h=no
24601fi
ac1cb8d3 24602rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24603fi
24604
24605fi
24606echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24607echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24608 if test "${ac_cv_header_zlib_h+set}" = set; then
24609 echo "$as_me:$LINENO: checking for zlib.h" >&5
24610echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24611if test "${ac_cv_header_zlib_h+set}" = set; then
24612 echo $ECHO_N "(cached) $ECHO_C" >&6
24613fi
24614echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24615echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24616else
24617 # Is the header compilable?
24618echo "$as_me:$LINENO: checking zlib.h usability" >&5
24619echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24620cat >conftest.$ac_ext <<_ACEOF
24621/* confdefs.h. */
24622_ACEOF
24623cat confdefs.h >>conftest.$ac_ext
24624cat >>conftest.$ac_ext <<_ACEOF
24625/* end confdefs.h. */
24626$ac_includes_default
24627#include <zlib.h>
24628_ACEOF
24629rm -f conftest.$ac_objext
24630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24631 (eval $ac_compile) 2>conftest.er1
a848cd7e 24632 ac_status=$?
ac1cb8d3
VS
24633 grep -v '^ *+' conftest.er1 >conftest.err
24634 rm -f conftest.er1
24635 cat conftest.err >&5
a848cd7e
SC
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); } &&
5d7b7554 24638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24640 (eval $ac_try) 2>&5
24641 ac_status=$?
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); }; } &&
24644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24646 (eval $ac_try) 2>&5
24647 ac_status=$?
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); }; }; then
24650 ac_header_compiler=yes
24651else
24652 echo "$as_me: failed program was:" >&5
24653sed 's/^/| /' conftest.$ac_ext >&5
24654
24655ac_header_compiler=no
24656fi
ac1cb8d3 24657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24658echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24659echo "${ECHO_T}$ac_header_compiler" >&6
24660
24661# Is the header present?
24662echo "$as_me:$LINENO: checking zlib.h presence" >&5
24663echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24664cat >conftest.$ac_ext <<_ACEOF
24665/* confdefs.h. */
24666_ACEOF
24667cat confdefs.h >>conftest.$ac_ext
24668cat >>conftest.$ac_ext <<_ACEOF
24669/* end confdefs.h. */
24670#include <zlib.h>
24671_ACEOF
24672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24674 ac_status=$?
24675 grep -v '^ *+' conftest.er1 >conftest.err
24676 rm -f conftest.er1
24677 cat conftest.err >&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } >/dev/null; then
24680 if test -s conftest.err; then
5d7b7554
VZ
24681 ac_cpp_err=$ac_cxx_preproc_warn_flag
24682 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
24683 else
24684 ac_cpp_err=
24685 fi
24686else
24687 ac_cpp_err=yes
24688fi
24689if test -z "$ac_cpp_err"; then
24690 ac_header_preproc=yes
24691else
24692 echo "$as_me: failed program was:" >&5
24693sed 's/^/| /' conftest.$ac_ext >&5
24694
24695 ac_header_preproc=no
24696fi
24697rm -f conftest.err conftest.$ac_ext
24698echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24699echo "${ECHO_T}$ac_header_preproc" >&6
24700
24701# So? What about this header?
5d7b7554 24702case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 24703 yes:no: )
a848cd7e
SC
24704 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24705echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24706 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24707echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24708 ac_header_preproc=yes
a848cd7e 24709 ;;
ac1cb8d3 24710 no:yes:* )
a848cd7e
SC
24711 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24712echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24713 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24714echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24715 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24716echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24717 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24718echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24719 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24720echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24721 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24722echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24723 (
24724 cat <<\_ASBOX
ac1cb8d3
VS
24725## ----------------------------------------- ##
24726## Report this to wx-dev@lists.wxwidgets.org ##
24727## ----------------------------------------- ##
a848cd7e
SC
24728_ASBOX
24729 ) |
24730 sed "s/^/$as_me: WARNING: /" >&2
24731 ;;
24732esac
24733echo "$as_me:$LINENO: checking for zlib.h" >&5
24734echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24735if test "${ac_cv_header_zlib_h+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24737else
24738 ac_cv_header_zlib_h=$ac_header_preproc
24739fi
24740echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24741echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24742
24743fi
24744
24745
24746
24747 system_zlib_h_ok=$ac_cv_header_zlib_h
24748 fi
24749
24750 if test "$system_zlib_h_ok" = "yes"; then
24751 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24752echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24753if test "${ac_cv_lib_z_deflate+set}" = set; then
24754 echo $ECHO_N "(cached) $ECHO_C" >&6
24755else
24756 ac_check_lib_save_LIBS=$LIBS
24757LIBS="-lz $LIBS"
24758cat >conftest.$ac_ext <<_ACEOF
24759/* confdefs.h. */
24760_ACEOF
24761cat confdefs.h >>conftest.$ac_ext
24762cat >>conftest.$ac_ext <<_ACEOF
24763/* end confdefs.h. */
24764
24765/* Override any gcc2 internal prototype to avoid an error. */
24766#ifdef __cplusplus
24767extern "C"
24768#endif
24769/* We use char because int might match the return type of a gcc2
24770 builtin and then its argument prototype would still apply. */
24771char deflate ();
24772int
24773main ()
24774{
24775deflate ();
24776 ;
24777 return 0;
24778}
24779_ACEOF
24780rm -f conftest.$ac_objext conftest$ac_exeext
24781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24782 (eval $ac_link) 2>conftest.er1
a848cd7e 24783 ac_status=$?
ac1cb8d3
VS
24784 grep -v '^ *+' conftest.er1 >conftest.err
24785 rm -f conftest.er1
24786 cat conftest.err >&5
a848cd7e
SC
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } &&
5d7b7554 24789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24791 (eval $ac_try) 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; } &&
24795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_cv_lib_z_deflate=yes
24802else
24803 echo "$as_me: failed program was:" >&5
24804sed 's/^/| /' conftest.$ac_ext >&5
24805
24806ac_cv_lib_z_deflate=no
24807fi
ac1cb8d3
VS
24808rm -f conftest.err conftest.$ac_objext \
24809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24810LIBS=$ac_check_lib_save_LIBS
24811fi
24812echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24813echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24814if test $ac_cv_lib_z_deflate = yes; then
24815 ZLIB_LINK=" -lz"
24816fi
24817
24818 fi
24819
24820 if test "x$ZLIB_LINK" = "x" ; then
24821 if test "$wxUSE_ZLIB" = "sys" ; then
24822 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24823echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24824 { (exit 1); exit 1; }; }
24825 else
24826 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24827echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24828 wxUSE_ZLIB=builtin
24829 fi
24830 else
24831 wxUSE_ZLIB=sys
24832 fi
24833 fi
24834fi
24835
24836
24837PNG_LINK=
24838if test "$wxUSE_LIBPNG" != "no" ; then
24839 cat >>confdefs.h <<\_ACEOF
24840#define wxUSE_LIBPNG 1
24841_ACEOF
24842
24843
24844 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24845 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24846echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24847 wxUSE_LIBPNG=sys
24848 fi
24849
24850 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24851 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24852echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24853 wxUSE_LIBPNG=builtin
24854 fi
24855
24856 if test "$wxUSE_MGL" != 1 ; then
24857 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24858 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24859echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24860if test "${ac_cv_header_png_h+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24862else
24863 if test "$cross_compiling" = yes; then
24864 unset ac_cv_header_png_h
24865
24866else
24867 cat >conftest.$ac_ext <<_ACEOF
24868/* confdefs.h. */
24869_ACEOF
24870cat confdefs.h >>conftest.$ac_ext
24871cat >>conftest.$ac_ext <<_ACEOF
24872/* end confdefs.h. */
24873
24874 #include <png.h>
24875 #include <stdio.h>
24876
24877 int main()
24878 {
24879 FILE *f=fopen("conftestval", "w");
24880 if (!f) exit(1);
24881 fprintf(f, "%s",
24882 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24883 exit(0);
24884 }
24885
24886_ACEOF
24887rm -f conftest$ac_exeext
24888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24889 (eval $ac_link) 2>&5
24890 ac_status=$?
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24894 (eval $ac_try) 2>&5
24895 ac_status=$?
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); }; }; then
24898 ac_cv_header_png_h=`cat conftestval`
24899else
24900 echo "$as_me: program exited with status $ac_status" >&5
24901echo "$as_me: failed program was:" >&5
24902sed 's/^/| /' conftest.$ac_ext >&5
24903
24904( exit $ac_status )
24905ac_cv_header_png_h=no
24906fi
ac1cb8d3 24907rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24908fi
24909
24910fi
24911echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24912echo "${ECHO_T}$ac_cv_header_png_h" >&6
24913 if test "${ac_cv_header_png_h+set}" = set; then
24914 echo "$as_me:$LINENO: checking for png.h" >&5
24915echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24916if test "${ac_cv_header_png_h+set}" = set; then
24917 echo $ECHO_N "(cached) $ECHO_C" >&6
24918fi
24919echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24920echo "${ECHO_T}$ac_cv_header_png_h" >&6
24921else
24922 # Is the header compilable?
24923echo "$as_me:$LINENO: checking png.h usability" >&5
24924echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24925cat >conftest.$ac_ext <<_ACEOF
24926/* confdefs.h. */
24927_ACEOF
24928cat confdefs.h >>conftest.$ac_ext
24929cat >>conftest.$ac_ext <<_ACEOF
24930/* end confdefs.h. */
24931$ac_includes_default
24932#include <png.h>
24933_ACEOF
24934rm -f conftest.$ac_objext
24935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24936 (eval $ac_compile) 2>conftest.er1
a848cd7e 24937 ac_status=$?
ac1cb8d3
VS
24938 grep -v '^ *+' conftest.er1 >conftest.err
24939 rm -f conftest.er1
24940 cat conftest.err >&5
a848cd7e
SC
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); } &&
5d7b7554 24943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24945 (eval $ac_try) 2>&5
24946 ac_status=$?
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); }; } &&
24949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24952 ac_status=$?
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; }; then
24955 ac_header_compiler=yes
24956else
24957 echo "$as_me: failed program was:" >&5
24958sed 's/^/| /' conftest.$ac_ext >&5
24959
24960ac_header_compiler=no
24961fi
ac1cb8d3 24962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24963echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24964echo "${ECHO_T}$ac_header_compiler" >&6
24965
24966# Is the header present?
24967echo "$as_me:$LINENO: checking png.h presence" >&5
24968echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24969cat >conftest.$ac_ext <<_ACEOF
24970/* confdefs.h. */
24971_ACEOF
24972cat confdefs.h >>conftest.$ac_ext
24973cat >>conftest.$ac_ext <<_ACEOF
24974/* end confdefs.h. */
24975#include <png.h>
24976_ACEOF
24977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24979 ac_status=$?
24980 grep -v '^ *+' conftest.er1 >conftest.err
24981 rm -f conftest.er1
24982 cat conftest.err >&5
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } >/dev/null; then
24985 if test -s conftest.err; then
5d7b7554
VZ
24986 ac_cpp_err=$ac_cxx_preproc_warn_flag
24987 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
24988 else
24989 ac_cpp_err=
24990 fi
24991else
24992 ac_cpp_err=yes
24993fi
24994if test -z "$ac_cpp_err"; then
24995 ac_header_preproc=yes
24996else
24997 echo "$as_me: failed program was:" >&5
24998sed 's/^/| /' conftest.$ac_ext >&5
24999
25000 ac_header_preproc=no
25001fi
25002rm -f conftest.err conftest.$ac_ext
25003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25004echo "${ECHO_T}$ac_header_preproc" >&6
25005
25006# So? What about this header?
5d7b7554 25007case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25008 yes:no: )
a848cd7e
SC
25009 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25010echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25011 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25012echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25013 ac_header_preproc=yes
a848cd7e 25014 ;;
ac1cb8d3 25015 no:yes:* )
a848cd7e
SC
25016 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25017echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25018 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25019echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25020 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25021echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25022 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25023echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25024 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25025echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25026 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25027echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25028 (
25029 cat <<\_ASBOX
ac1cb8d3
VS
25030## ----------------------------------------- ##
25031## Report this to wx-dev@lists.wxwidgets.org ##
25032## ----------------------------------------- ##
a848cd7e
SC
25033_ASBOX
25034 ) |
25035 sed "s/^/$as_me: WARNING: /" >&2
25036 ;;
25037esac
25038echo "$as_me:$LINENO: checking for png.h" >&5
25039echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25040if test "${ac_cv_header_png_h+set}" = set; then
25041 echo $ECHO_N "(cached) $ECHO_C" >&6
25042else
25043 ac_cv_header_png_h=$ac_header_preproc
25044fi
25045echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25046echo "${ECHO_T}$ac_cv_header_png_h" >&6
25047
25048fi
25049
25050
25051
25052 if test "$ac_cv_header_png_h" = "yes"; then
25053 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25054echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25055if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25056 echo $ECHO_N "(cached) $ECHO_C" >&6
25057else
25058 ac_check_lib_save_LIBS=$LIBS
25059LIBS="-lpng -lz -lm $LIBS"
25060cat >conftest.$ac_ext <<_ACEOF
25061/* confdefs.h. */
25062_ACEOF
25063cat confdefs.h >>conftest.$ac_ext
25064cat >>conftest.$ac_ext <<_ACEOF
25065/* end confdefs.h. */
25066
25067/* Override any gcc2 internal prototype to avoid an error. */
25068#ifdef __cplusplus
25069extern "C"
25070#endif
25071/* We use char because int might match the return type of a gcc2
25072 builtin and then its argument prototype would still apply. */
25073char png_check_sig ();
25074int
25075main ()
25076{
25077png_check_sig ();
25078 ;
25079 return 0;
25080}
25081_ACEOF
25082rm -f conftest.$ac_objext conftest$ac_exeext
25083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25084 (eval $ac_link) 2>conftest.er1
a848cd7e 25085 ac_status=$?
ac1cb8d3
VS
25086 grep -v '^ *+' conftest.er1 >conftest.err
25087 rm -f conftest.er1
25088 cat conftest.err >&5
a848cd7e
SC
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); } &&
5d7b7554 25091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
25094 ac_status=$?
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; } &&
25097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; }; then
25103 ac_cv_lib_png_png_check_sig=yes
25104else
25105 echo "$as_me: failed program was:" >&5
25106sed 's/^/| /' conftest.$ac_ext >&5
25107
25108ac_cv_lib_png_png_check_sig=no
25109fi
ac1cb8d3
VS
25110rm -f conftest.err conftest.$ac_objext \
25111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25112LIBS=$ac_check_lib_save_LIBS
25113fi
25114echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25115echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25116if test $ac_cv_lib_png_png_check_sig = yes; then
25117 PNG_LINK=" -lpng -lz"
25118fi
25119
25120 fi
25121
25122 if test "x$PNG_LINK" = "x" ; then
25123 if test "$wxUSE_LIBPNG" = "sys" ; then
25124 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25125echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25126 { (exit 1); exit 1; }; }
25127 else
25128 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25129echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25130 wxUSE_LIBPNG=builtin
25131 fi
25132 else
25133 wxUSE_LIBPNG=sys
25134 fi
25135 fi
25136 fi
25137
25138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25139fi
25140
25141
25142JPEG_LINK=
25143if test "$wxUSE_LIBJPEG" != "no" ; then
25144 cat >>confdefs.h <<\_ACEOF
25145#define wxUSE_LIBJPEG 1
25146_ACEOF
25147
25148
25149 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25150 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25151echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25152 wxUSE_LIBJPEG=sys
25153 fi
25154
25155 if test "$wxUSE_MGL" != 1 ; then
25156 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25157 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25158echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25159 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25160 echo $ECHO_N "(cached) $ECHO_C" >&6
25161else
25162 cat >conftest.$ac_ext <<_ACEOF
25163/* confdefs.h. */
25164_ACEOF
25165cat confdefs.h >>conftest.$ac_ext
25166cat >>conftest.$ac_ext <<_ACEOF
25167/* end confdefs.h. */
25168
25169 #undef HAVE_STDLIB_H
25170 #include <stdio.h>
25171 #include <jpeglib.h>
25172
25173int
25174main ()
25175{
25176
25177
25178 ;
25179 return 0;
25180}
25181_ACEOF
25182rm -f conftest.$ac_objext
25183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25184 (eval $ac_compile) 2>conftest.er1
a848cd7e 25185 ac_status=$?
ac1cb8d3
VS
25186 grep -v '^ *+' conftest.er1 >conftest.err
25187 rm -f conftest.er1
25188 cat conftest.err >&5
a848cd7e
SC
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } &&
5d7b7554 25191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; } &&
25197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199 (eval $ac_try) 2>&5
25200 ac_status=$?
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
25203 ac_cv_header_jpeglib_h=yes
25204else
25205 echo "$as_me: failed program was:" >&5
25206sed 's/^/| /' conftest.$ac_ext >&5
25207
25208ac_cv_header_jpeglib_h=no
25209
25210fi
ac1cb8d3 25211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25212
25213fi
25214
25215 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25216echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25217
25218 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25219 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25220echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25221if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25222 echo $ECHO_N "(cached) $ECHO_C" >&6
25223else
25224 ac_check_lib_save_LIBS=$LIBS
25225LIBS="-ljpeg $LIBS"
25226cat >conftest.$ac_ext <<_ACEOF
25227/* confdefs.h. */
25228_ACEOF
25229cat confdefs.h >>conftest.$ac_ext
25230cat >>conftest.$ac_ext <<_ACEOF
25231/* end confdefs.h. */
25232
25233/* Override any gcc2 internal prototype to avoid an error. */
25234#ifdef __cplusplus
25235extern "C"
25236#endif
25237/* We use char because int might match the return type of a gcc2
25238 builtin and then its argument prototype would still apply. */
25239char jpeg_read_header ();
25240int
25241main ()
25242{
25243jpeg_read_header ();
25244 ;
25245 return 0;
25246}
25247_ACEOF
25248rm -f conftest.$ac_objext conftest$ac_exeext
25249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25250 (eval $ac_link) 2>conftest.er1
a848cd7e 25251 ac_status=$?
ac1cb8d3
VS
25252 grep -v '^ *+' conftest.er1 >conftest.err
25253 rm -f conftest.er1
25254 cat conftest.err >&5
a848cd7e
SC
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); } &&
5d7b7554 25257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25259 (eval $ac_try) 2>&5
25260 ac_status=$?
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); }; } &&
25263 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25265 (eval $ac_try) 2>&5
25266 ac_status=$?
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); }; }; then
25269 ac_cv_lib_jpeg_jpeg_read_header=yes
25270else
25271 echo "$as_me: failed program was:" >&5
25272sed 's/^/| /' conftest.$ac_ext >&5
25273
25274ac_cv_lib_jpeg_jpeg_read_header=no
25275fi
ac1cb8d3
VS
25276rm -f conftest.err conftest.$ac_objext \
25277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25278LIBS=$ac_check_lib_save_LIBS
25279fi
25280echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25281echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25282if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25283 JPEG_LINK=" -ljpeg"
25284fi
25285
25286 fi
25287
25288 if test "x$JPEG_LINK" = "x" ; then
25289 if test "$wxUSE_LIBJPEG" = "sys" ; then
25290 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25291echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25292 { (exit 1); exit 1; }; }
25293 else
25294 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25295echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25296 wxUSE_LIBJPEG=builtin
25297 fi
25298 else
25299 wxUSE_LIBJPEG=sys
25300 fi
25301 fi
25302 fi
25303fi
25304
25305
25306TIFF_LINK=
25307TIFF_PREREQ_LINKS=-lm
25308if test "$wxUSE_LIBTIFF" != "no" ; then
25309 cat >>confdefs.h <<\_ACEOF
25310#define wxUSE_LIBTIFF 1
25311_ACEOF
25312
25313
25314 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25315 if test "$wxUSE_LIBJPEG" = "sys"; then
25316 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25317 fi
25318 if test "$wxUSE_ZLIB" = "sys"; then
25319 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25320 fi
25321 if test "${ac_cv_header_tiffio_h+set}" = set; then
25322 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25323echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25324if test "${ac_cv_header_tiffio_h+set}" = set; then
25325 echo $ECHO_N "(cached) $ECHO_C" >&6
25326fi
25327echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25328echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25329else
25330 # Is the header compilable?
25331echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25332echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25333cat >conftest.$ac_ext <<_ACEOF
25334/* confdefs.h. */
25335_ACEOF
25336cat confdefs.h >>conftest.$ac_ext
25337cat >>conftest.$ac_ext <<_ACEOF
25338/* end confdefs.h. */
25339$ac_includes_default
25340#include <tiffio.h>
25341_ACEOF
25342rm -f conftest.$ac_objext
25343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25344 (eval $ac_compile) 2>conftest.er1
a848cd7e 25345 ac_status=$?
ac1cb8d3
VS
25346 grep -v '^ *+' conftest.er1 >conftest.err
25347 rm -f conftest.er1
25348 cat conftest.err >&5
a848cd7e
SC
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); } &&
5d7b7554 25351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; } &&
25357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363 ac_header_compiler=yes
25364else
25365 echo "$as_me: failed program was:" >&5
25366sed 's/^/| /' conftest.$ac_ext >&5
25367
25368ac_header_compiler=no
25369fi
ac1cb8d3 25370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25371echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25372echo "${ECHO_T}$ac_header_compiler" >&6
25373
25374# Is the header present?
25375echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25376echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25377cat >conftest.$ac_ext <<_ACEOF
25378/* confdefs.h. */
25379_ACEOF
25380cat confdefs.h >>conftest.$ac_ext
25381cat >>conftest.$ac_ext <<_ACEOF
25382/* end confdefs.h. */
25383#include <tiffio.h>
25384_ACEOF
25385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25387 ac_status=$?
25388 grep -v '^ *+' conftest.er1 >conftest.err
25389 rm -f conftest.er1
25390 cat conftest.err >&5
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } >/dev/null; then
25393 if test -s conftest.err; then
5d7b7554
VZ
25394 ac_cpp_err=$ac_cxx_preproc_warn_flag
25395 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25396 else
25397 ac_cpp_err=
25398 fi
25399else
25400 ac_cpp_err=yes
25401fi
25402if test -z "$ac_cpp_err"; then
25403 ac_header_preproc=yes
25404else
25405 echo "$as_me: failed program was:" >&5
25406sed 's/^/| /' conftest.$ac_ext >&5
25407
25408 ac_header_preproc=no
25409fi
25410rm -f conftest.err conftest.$ac_ext
25411echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25412echo "${ECHO_T}$ac_header_preproc" >&6
25413
25414# So? What about this header?
5d7b7554 25415case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25416 yes:no: )
a848cd7e
SC
25417 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25418echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25419 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25420echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25421 ac_header_preproc=yes
a848cd7e 25422 ;;
ac1cb8d3 25423 no:yes:* )
a848cd7e
SC
25424 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25425echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25426 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25427echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25428 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25429echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25430 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25431echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25432 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25433echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25434 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25435echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25436 (
25437 cat <<\_ASBOX
ac1cb8d3
VS
25438## ----------------------------------------- ##
25439## Report this to wx-dev@lists.wxwidgets.org ##
25440## ----------------------------------------- ##
a848cd7e
SC
25441_ASBOX
25442 ) |
25443 sed "s/^/$as_me: WARNING: /" >&2
25444 ;;
25445esac
25446echo "$as_me:$LINENO: checking for tiffio.h" >&5
25447echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25448if test "${ac_cv_header_tiffio_h+set}" = set; then
25449 echo $ECHO_N "(cached) $ECHO_C" >&6
25450else
25451 ac_cv_header_tiffio_h=$ac_header_preproc
25452fi
25453echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25454echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25455
25456fi
25457if test $ac_cv_header_tiffio_h = yes; then
25458
25459 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25460echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25461if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25462 echo $ECHO_N "(cached) $ECHO_C" >&6
25463else
25464 ac_check_lib_save_LIBS=$LIBS
25465LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25466cat >conftest.$ac_ext <<_ACEOF
25467/* confdefs.h. */
25468_ACEOF
25469cat confdefs.h >>conftest.$ac_ext
25470cat >>conftest.$ac_ext <<_ACEOF
25471/* end confdefs.h. */
25472
25473/* Override any gcc2 internal prototype to avoid an error. */
25474#ifdef __cplusplus
25475extern "C"
25476#endif
25477/* We use char because int might match the return type of a gcc2
25478 builtin and then its argument prototype would still apply. */
25479char TIFFError ();
25480int
25481main ()
25482{
25483TIFFError ();
25484 ;
25485 return 0;
25486}
25487_ACEOF
25488rm -f conftest.$ac_objext conftest$ac_exeext
25489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25490 (eval $ac_link) 2>conftest.er1
a848cd7e 25491 ac_status=$?
ac1cb8d3
VS
25492 grep -v '^ *+' conftest.er1 >conftest.err
25493 rm -f conftest.er1
25494 cat conftest.err >&5
a848cd7e
SC
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); } &&
5d7b7554 25497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499 (eval $ac_try) 2>&5
25500 ac_status=$?
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); }; } &&
25503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; }; then
25509 ac_cv_lib_tiff_TIFFError=yes
25510else
25511 echo "$as_me: failed program was:" >&5
25512sed 's/^/| /' conftest.$ac_ext >&5
25513
25514ac_cv_lib_tiff_TIFFError=no
25515fi
ac1cb8d3
VS
25516rm -f conftest.err conftest.$ac_objext \
25517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25518LIBS=$ac_check_lib_save_LIBS
25519fi
25520echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25521echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25522if test $ac_cv_lib_tiff_TIFFError = yes; then
25523 TIFF_LINK=" -ltiff"
25524fi
25525
25526
25527
25528fi
25529
25530
25531
25532 if test "x$TIFF_LINK" = "x" ; then
25533 if test "$wxUSE_LIBTIFF" = "sys" ; then
25534 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25535echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25536 { (exit 1); exit 1; }; }
25537 else
25538 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25539echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25540 wxUSE_LIBTIFF=builtin
25541 fi
25542 else
25543 wxUSE_LIBTIFF=sys
25544 fi
25545 fi
25546fi
25547
25548
47a7e797
MW
25549if test "$wxUSE_WCHAR_T" != "yes"; then
25550 if test "$wxUSE_EXPAT" != "no"; then
25551 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25552echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25553 wxUSE_EXPAT=no
25554 fi
25555 if test "$wxUSE_XML" != "no"; then
25556 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25557echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25558 wxUSE_XML=no
25559 fi
25560fi
25561
a848cd7e
SC
25562if test "$wxUSE_EXPAT" != "no"; then
25563 wxUSE_XML=yes
25564 cat >>confdefs.h <<\_ACEOF
25565#define wxUSE_EXPAT 1
25566_ACEOF
25567
25568 cat >>confdefs.h <<\_ACEOF
25569#define wxUSE_XML 1
25570_ACEOF
25571
25572
25573 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25574 if test "${ac_cv_header_expat_h+set}" = set; then
25575 echo "$as_me:$LINENO: checking for expat.h" >&5
25576echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25577if test "${ac_cv_header_expat_h+set}" = set; then
25578 echo $ECHO_N "(cached) $ECHO_C" >&6
25579fi
25580echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25581echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25582else
25583 # Is the header compilable?
25584echo "$as_me:$LINENO: checking expat.h usability" >&5
25585echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25586cat >conftest.$ac_ext <<_ACEOF
25587/* confdefs.h. */
25588_ACEOF
25589cat confdefs.h >>conftest.$ac_ext
25590cat >>conftest.$ac_ext <<_ACEOF
25591/* end confdefs.h. */
25592$ac_includes_default
25593#include <expat.h>
25594_ACEOF
25595rm -f conftest.$ac_objext
25596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25597 (eval $ac_compile) 2>conftest.er1
a848cd7e 25598 ac_status=$?
ac1cb8d3
VS
25599 grep -v '^ *+' conftest.er1 >conftest.err
25600 rm -f conftest.er1
25601 cat conftest.err >&5
a848cd7e
SC
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); } &&
5d7b7554 25604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; } &&
25610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612 (eval $ac_try) 2>&5
25613 ac_status=$?
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); }; }; then
25616 ac_header_compiler=yes
25617else
25618 echo "$as_me: failed program was:" >&5
25619sed 's/^/| /' conftest.$ac_ext >&5
25620
25621ac_header_compiler=no
25622fi
ac1cb8d3 25623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25625echo "${ECHO_T}$ac_header_compiler" >&6
25626
25627# Is the header present?
25628echo "$as_me:$LINENO: checking expat.h presence" >&5
25629echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25630cat >conftest.$ac_ext <<_ACEOF
25631/* confdefs.h. */
25632_ACEOF
25633cat confdefs.h >>conftest.$ac_ext
25634cat >>conftest.$ac_ext <<_ACEOF
25635/* end confdefs.h. */
25636#include <expat.h>
25637_ACEOF
25638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25640 ac_status=$?
25641 grep -v '^ *+' conftest.er1 >conftest.err
25642 rm -f conftest.er1
25643 cat conftest.err >&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); } >/dev/null; then
25646 if test -s conftest.err; then
5d7b7554
VZ
25647 ac_cpp_err=$ac_cxx_preproc_warn_flag
25648 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25649 else
25650 ac_cpp_err=
25651 fi
25652else
25653 ac_cpp_err=yes
25654fi
25655if test -z "$ac_cpp_err"; then
25656 ac_header_preproc=yes
25657else
25658 echo "$as_me: failed program was:" >&5
25659sed 's/^/| /' conftest.$ac_ext >&5
25660
25661 ac_header_preproc=no
25662fi
25663rm -f conftest.err conftest.$ac_ext
25664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25665echo "${ECHO_T}$ac_header_preproc" >&6
25666
25667# So? What about this header?
5d7b7554 25668case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25669 yes:no: )
a848cd7e
SC
25670 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25671echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25672 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25673echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25674 ac_header_preproc=yes
a848cd7e 25675 ;;
ac1cb8d3 25676 no:yes:* )
a848cd7e
SC
25677 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25678echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25679 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25680echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25681 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25682echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25683 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25684echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25685 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25686echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25687 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25688echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25689 (
25690 cat <<\_ASBOX
ac1cb8d3
VS
25691## ----------------------------------------- ##
25692## Report this to wx-dev@lists.wxwidgets.org ##
25693## ----------------------------------------- ##
a848cd7e
SC
25694_ASBOX
25695 ) |
25696 sed "s/^/$as_me: WARNING: /" >&2
25697 ;;
25698esac
25699echo "$as_me:$LINENO: checking for expat.h" >&5
25700echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25701if test "${ac_cv_header_expat_h+set}" = set; then
25702 echo $ECHO_N "(cached) $ECHO_C" >&6
25703else
25704 ac_cv_header_expat_h=$ac_header_preproc
25705fi
25706echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25707echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25708
25709fi
25710if test $ac_cv_header_expat_h = yes; then
25711 found_expat_h=1
25712fi
25713
25714
25715 if test "x$found_expat_h" = "x1"; then
25716 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25717echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25718if test "${wx_cv_expat_is_not_broken+set}" = set; then
25719 echo $ECHO_N "(cached) $ECHO_C" >&6
25720else
25721
a848cd7e
SC
25722 cat >conftest.$ac_ext <<_ACEOF
25723/* confdefs.h. */
25724_ACEOF
25725cat confdefs.h >>conftest.$ac_ext
25726cat >>conftest.$ac_ext <<_ACEOF
25727/* end confdefs.h. */
25728#include <expat.h>
25729int
25730main ()
25731{
25732
25733 ;
25734 return 0;
25735}
25736_ACEOF
25737rm -f conftest.$ac_objext
25738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25739 (eval $ac_compile) 2>conftest.er1
a848cd7e 25740 ac_status=$?
ac1cb8d3
VS
25741 grep -v '^ *+' conftest.er1 >conftest.err
25742 rm -f conftest.er1
25743 cat conftest.err >&5
a848cd7e
SC
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); } &&
5d7b7554 25746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748 (eval $ac_try) 2>&5
25749 ac_status=$?
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; } &&
25752 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); }; }; then
25758 wx_cv_expat_is_not_broken=yes
25759else
25760 echo "$as_me: failed program was:" >&5
25761sed 's/^/| /' conftest.$ac_ext >&5
25762
25763wx_cv_expat_is_not_broken=no
25764
25765fi
ac1cb8d3 25766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25767
25768
25769fi
25770echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25771echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25772 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25773 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25774echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25775if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25776 echo $ECHO_N "(cached) $ECHO_C" >&6
25777else
25778 ac_check_lib_save_LIBS=$LIBS
25779LIBS="-lexpat $LIBS"
25780cat >conftest.$ac_ext <<_ACEOF
25781/* confdefs.h. */
25782_ACEOF
25783cat confdefs.h >>conftest.$ac_ext
25784cat >>conftest.$ac_ext <<_ACEOF
25785/* end confdefs.h. */
25786
25787/* Override any gcc2 internal prototype to avoid an error. */
25788#ifdef __cplusplus
25789extern "C"
25790#endif
25791/* We use char because int might match the return type of a gcc2
25792 builtin and then its argument prototype would still apply. */
25793char XML_ParserCreate ();
25794int
25795main ()
25796{
25797XML_ParserCreate ();
25798 ;
25799 return 0;
25800}
25801_ACEOF
25802rm -f conftest.$ac_objext conftest$ac_exeext
25803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25804 (eval $ac_link) 2>conftest.er1
a848cd7e 25805 ac_status=$?
ac1cb8d3
VS
25806 grep -v '^ *+' conftest.er1 >conftest.err
25807 rm -f conftest.er1
25808 cat conftest.err >&5
a848cd7e
SC
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); } &&
5d7b7554 25811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813 (eval $ac_try) 2>&5
25814 ac_status=$?
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); }; } &&
25817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819 (eval $ac_try) 2>&5
25820 ac_status=$?
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); }; }; then
25823 ac_cv_lib_expat_XML_ParserCreate=yes
25824else
25825 echo "$as_me: failed program was:" >&5
25826sed 's/^/| /' conftest.$ac_ext >&5
25827
25828ac_cv_lib_expat_XML_ParserCreate=no
25829fi
ac1cb8d3
VS
25830rm -f conftest.err conftest.$ac_objext \
25831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25832LIBS=$ac_check_lib_save_LIBS
25833fi
25834echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25835echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25836if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25837 EXPAT_LINK=" -lexpat"
25838fi
25839
25840 fi
25841 fi
25842 if test "x$EXPAT_LINK" = "x" ; then
25843 if test "$wxUSE_EXPAT" = "sys" ; then
25844 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25845echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25846 { (exit 1); exit 1; }; }
25847 else
25848 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25849echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25850 wxUSE_EXPAT=builtin
25851 fi
25852 else
25853 wxUSE_EXPAT=sys
25854 fi
25855 fi
25856 if test "$wxUSE_EXPAT" = "builtin" ; then
25857
25858
25859subdirs="$subdirs src/expat"
25860
25861 fi
25862fi
25863
25864
25865
25866if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25867 if test "${ac_cv_header_mspack_h+set}" = set; then
25868 echo "$as_me:$LINENO: checking for mspack.h" >&5
25869echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25870if test "${ac_cv_header_mspack_h+set}" = set; then
25871 echo $ECHO_N "(cached) $ECHO_C" >&6
25872fi
25873echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25874echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25875else
25876 # Is the header compilable?
25877echo "$as_me:$LINENO: checking mspack.h usability" >&5
25878echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25879cat >conftest.$ac_ext <<_ACEOF
25880/* confdefs.h. */
25881_ACEOF
25882cat confdefs.h >>conftest.$ac_ext
25883cat >>conftest.$ac_ext <<_ACEOF
25884/* end confdefs.h. */
25885$ac_includes_default
25886#include <mspack.h>
25887_ACEOF
25888rm -f conftest.$ac_objext
25889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25890 (eval $ac_compile) 2>conftest.er1
a848cd7e 25891 ac_status=$?
ac1cb8d3
VS
25892 grep -v '^ *+' conftest.er1 >conftest.err
25893 rm -f conftest.er1
25894 cat conftest.err >&5
a848cd7e
SC
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); } &&
5d7b7554 25897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899 (eval $ac_try) 2>&5
25900 ac_status=$?
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); }; } &&
25903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25905 (eval $ac_try) 2>&5
25906 ac_status=$?
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); }; }; then
25909 ac_header_compiler=yes
25910else
25911 echo "$as_me: failed program was:" >&5
25912sed 's/^/| /' conftest.$ac_ext >&5
25913
25914ac_header_compiler=no
25915fi
ac1cb8d3 25916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25917echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25918echo "${ECHO_T}$ac_header_compiler" >&6
25919
25920# Is the header present?
25921echo "$as_me:$LINENO: checking mspack.h presence" >&5
25922echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25923cat >conftest.$ac_ext <<_ACEOF
25924/* confdefs.h. */
25925_ACEOF
25926cat confdefs.h >>conftest.$ac_ext
25927cat >>conftest.$ac_ext <<_ACEOF
25928/* end confdefs.h. */
25929#include <mspack.h>
25930_ACEOF
25931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25933 ac_status=$?
25934 grep -v '^ *+' conftest.er1 >conftest.err
25935 rm -f conftest.er1
25936 cat conftest.err >&5
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); } >/dev/null; then
25939 if test -s conftest.err; then
5d7b7554
VZ
25940 ac_cpp_err=$ac_cxx_preproc_warn_flag
25941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25942 else
25943 ac_cpp_err=
25944 fi
25945else
25946 ac_cpp_err=yes
25947fi
25948if test -z "$ac_cpp_err"; then
25949 ac_header_preproc=yes
25950else
25951 echo "$as_me: failed program was:" >&5
25952sed 's/^/| /' conftest.$ac_ext >&5
25953
25954 ac_header_preproc=no
25955fi
25956rm -f conftest.err conftest.$ac_ext
25957echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25958echo "${ECHO_T}$ac_header_preproc" >&6
25959
25960# So? What about this header?
5d7b7554 25961case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25962 yes:no: )
a848cd7e
SC
25963 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25964echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25965 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25966echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25967 ac_header_preproc=yes
a848cd7e 25968 ;;
ac1cb8d3 25969 no:yes:* )
a848cd7e
SC
25970 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25971echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25972 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25973echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25974 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25975echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25976 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25977echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25978 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25979echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25980 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25981echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25982 (
25983 cat <<\_ASBOX
ac1cb8d3
VS
25984## ----------------------------------------- ##
25985## Report this to wx-dev@lists.wxwidgets.org ##
25986## ----------------------------------------- ##
a848cd7e
SC
25987_ASBOX
25988 ) |
25989 sed "s/^/$as_me: WARNING: /" >&2
25990 ;;
25991esac
25992echo "$as_me:$LINENO: checking for mspack.h" >&5
25993echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25994if test "${ac_cv_header_mspack_h+set}" = set; then
25995 echo $ECHO_N "(cached) $ECHO_C" >&6
25996else
25997 ac_cv_header_mspack_h=$ac_header_preproc
25998fi
25999echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26000echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26001
26002fi
26003if test $ac_cv_header_mspack_h = yes; then
26004 found_mspack_h=1
26005fi
26006
26007
26008 if test "x$found_mspack_h" = "x1"; then
26009 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26010echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26011if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26012 echo $ECHO_N "(cached) $ECHO_C" >&6
26013else
26014 ac_check_lib_save_LIBS=$LIBS
26015LIBS="-lmspack $LIBS"
26016cat >conftest.$ac_ext <<_ACEOF
26017/* confdefs.h. */
26018_ACEOF
26019cat confdefs.h >>conftest.$ac_ext
26020cat >>conftest.$ac_ext <<_ACEOF
26021/* end confdefs.h. */
26022
26023/* Override any gcc2 internal prototype to avoid an error. */
26024#ifdef __cplusplus
26025extern "C"
26026#endif
26027/* We use char because int might match the return type of a gcc2
26028 builtin and then its argument prototype would still apply. */
26029char mspack_create_chm_decompressor ();
26030int
26031main ()
26032{
26033mspack_create_chm_decompressor ();
26034 ;
26035 return 0;
26036}
26037_ACEOF
26038rm -f conftest.$ac_objext conftest$ac_exeext
26039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26040 (eval $ac_link) 2>conftest.er1
a848cd7e 26041 ac_status=$?
ac1cb8d3
VS
26042 grep -v '^ *+' conftest.er1 >conftest.err
26043 rm -f conftest.er1
26044 cat conftest.err >&5
a848cd7e
SC
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); } &&
5d7b7554 26047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26049 (eval $ac_try) 2>&5
26050 ac_status=$?
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); }; } &&
26053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26055 (eval $ac_try) 2>&5
26056 ac_status=$?
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); }; }; then
26059 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26060else
26061 echo "$as_me: failed program was:" >&5
26062sed 's/^/| /' conftest.$ac_ext >&5
26063
26064ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26065fi
ac1cb8d3
VS
26066rm -f conftest.err conftest.$ac_objext \
26067 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26068LIBS=$ac_check_lib_save_LIBS
26069fi
26070echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26071echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26072if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26073 MSPACK_LINK=" -lmspack"
26074fi
26075
26076 fi
26077 if test "x$MSPACK_LINK" = "x" ; then
26078 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26079 fi
26080fi
26081
26082if test "$wxUSE_LIBMSPACK" != "no"; then
26083 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26084#define wxUSE_LIBMSPACK 1
26085_ACEOF
26086
a848cd7e
SC
26087fi
26088
26089
26090
26091AFMINSTALL=
26092WIN32INSTALL=
26093
26094TOOLKIT=
26095TOOLKIT_INCLUDE=
26096WIDGET_SET=
26097
26098if test "$USE_WIN32" = 1 ; then
26099
26100for ac_header in w32api.h
26101do
26102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26103if eval "test \"\${$as_ac_Header+set}\" = set"; then
26104 echo "$as_me:$LINENO: checking for $ac_header" >&5
26105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26106if eval "test \"\${$as_ac_Header+set}\" = set"; then
26107 echo $ECHO_N "(cached) $ECHO_C" >&6
26108fi
26109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26111else
26112 # Is the header compilable?
26113echo "$as_me:$LINENO: checking $ac_header usability" >&5
26114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26115cat >conftest.$ac_ext <<_ACEOF
26116/* confdefs.h. */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
26120/* end confdefs.h. */
26121$ac_includes_default
26122#include <$ac_header>
26123_ACEOF
26124rm -f conftest.$ac_objext
26125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26126 (eval $ac_compile) 2>conftest.er1
a848cd7e 26127 ac_status=$?
ac1cb8d3
VS
26128 grep -v '^ *+' conftest.er1 >conftest.err
26129 rm -f conftest.er1
26130 cat conftest.err >&5
a848cd7e
SC
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); } &&
5d7b7554 26133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26135 (eval $ac_try) 2>&5
26136 ac_status=$?
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); }; } &&
26139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26141 (eval $ac_try) 2>&5
26142 ac_status=$?
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); }; }; then
26145 ac_header_compiler=yes
26146else
26147 echo "$as_me: failed program was:" >&5
26148sed 's/^/| /' conftest.$ac_ext >&5
26149
26150ac_header_compiler=no
26151fi
ac1cb8d3 26152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26153echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26154echo "${ECHO_T}$ac_header_compiler" >&6
26155
26156# Is the header present?
26157echo "$as_me:$LINENO: checking $ac_header presence" >&5
26158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26159cat >conftest.$ac_ext <<_ACEOF
26160/* confdefs.h. */
26161_ACEOF
26162cat confdefs.h >>conftest.$ac_ext
26163cat >>conftest.$ac_ext <<_ACEOF
26164/* end confdefs.h. */
26165#include <$ac_header>
26166_ACEOF
26167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26169 ac_status=$?
26170 grep -v '^ *+' conftest.er1 >conftest.err
26171 rm -f conftest.er1
26172 cat conftest.err >&5
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); } >/dev/null; then
26175 if test -s conftest.err; then
5d7b7554
VZ
26176 ac_cpp_err=$ac_cxx_preproc_warn_flag
26177 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26178 else
26179 ac_cpp_err=
26180 fi
26181else
26182 ac_cpp_err=yes
26183fi
26184if test -z "$ac_cpp_err"; then
26185 ac_header_preproc=yes
26186else
26187 echo "$as_me: failed program was:" >&5
26188sed 's/^/| /' conftest.$ac_ext >&5
26189
26190 ac_header_preproc=no
26191fi
26192rm -f conftest.err conftest.$ac_ext
26193echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26194echo "${ECHO_T}$ac_header_preproc" >&6
26195
26196# So? What about this header?
5d7b7554 26197case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26198 yes:no: )
a848cd7e
SC
26199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26203 ac_header_preproc=yes
a848cd7e 26204 ;;
ac1cb8d3 26205 no:yes:* )
a848cd7e
SC
26206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26209echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26213echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26218 (
26219 cat <<\_ASBOX
ac1cb8d3
VS
26220## ----------------------------------------- ##
26221## Report this to wx-dev@lists.wxwidgets.org ##
26222## ----------------------------------------- ##
a848cd7e
SC
26223_ASBOX
26224 ) |
26225 sed "s/^/$as_me: WARNING: /" >&2
26226 ;;
26227esac
26228echo "$as_me:$LINENO: checking for $ac_header" >&5
26229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26230if eval "test \"\${$as_ac_Header+set}\" = set"; then
26231 echo $ECHO_N "(cached) $ECHO_C" >&6
26232else
ac1cb8d3 26233 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26234fi
26235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26237
26238fi
26239if test `eval echo '${'$as_ac_Header'}'` = yes; then
26240 cat >>confdefs.h <<_ACEOF
26241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26242_ACEOF
26243
26244fi
26245
26246done
26247
26248 if test "${ac_cv_header_windows_h+set}" = set; then
26249 echo "$as_me:$LINENO: checking for windows.h" >&5
26250echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26251if test "${ac_cv_header_windows_h+set}" = set; then
26252 echo $ECHO_N "(cached) $ECHO_C" >&6
26253fi
26254echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26255echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26256else
26257 # Is the header compilable?
26258echo "$as_me:$LINENO: checking windows.h usability" >&5
26259echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26260cat >conftest.$ac_ext <<_ACEOF
26261/* confdefs.h. */
26262_ACEOF
26263cat confdefs.h >>conftest.$ac_ext
26264cat >>conftest.$ac_ext <<_ACEOF
26265/* end confdefs.h. */
26266$ac_includes_default
26267#include <windows.h>
26268_ACEOF
26269rm -f conftest.$ac_objext
26270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26271 (eval $ac_compile) 2>conftest.er1
a848cd7e 26272 ac_status=$?
ac1cb8d3
VS
26273 grep -v '^ *+' conftest.er1 >conftest.err
26274 rm -f conftest.er1
26275 cat conftest.err >&5
a848cd7e
SC
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); } &&
5d7b7554 26278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26280 (eval $ac_try) 2>&5
26281 ac_status=$?
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); }; } &&
26284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26286 (eval $ac_try) 2>&5
26287 ac_status=$?
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); }; }; then
26290 ac_header_compiler=yes
26291else
26292 echo "$as_me: failed program was:" >&5
26293sed 's/^/| /' conftest.$ac_ext >&5
26294
26295ac_header_compiler=no
26296fi
ac1cb8d3 26297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26299echo "${ECHO_T}$ac_header_compiler" >&6
26300
26301# Is the header present?
26302echo "$as_me:$LINENO: checking windows.h presence" >&5
26303echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26304cat >conftest.$ac_ext <<_ACEOF
26305/* confdefs.h. */
26306_ACEOF
26307cat confdefs.h >>conftest.$ac_ext
26308cat >>conftest.$ac_ext <<_ACEOF
26309/* end confdefs.h. */
26310#include <windows.h>
26311_ACEOF
26312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26314 ac_status=$?
26315 grep -v '^ *+' conftest.er1 >conftest.err
26316 rm -f conftest.er1
26317 cat conftest.err >&5
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); } >/dev/null; then
26320 if test -s conftest.err; then
5d7b7554
VZ
26321 ac_cpp_err=$ac_cxx_preproc_warn_flag
26322 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26323 else
26324 ac_cpp_err=
26325 fi
26326else
26327 ac_cpp_err=yes
26328fi
26329if test -z "$ac_cpp_err"; then
26330 ac_header_preproc=yes
26331else
26332 echo "$as_me: failed program was:" >&5
26333sed 's/^/| /' conftest.$ac_ext >&5
26334
26335 ac_header_preproc=no
26336fi
26337rm -f conftest.err conftest.$ac_ext
26338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26339echo "${ECHO_T}$ac_header_preproc" >&6
26340
26341# So? What about this header?
5d7b7554 26342case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26343 yes:no: )
a848cd7e
SC
26344 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26345echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26346 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26347echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26348 ac_header_preproc=yes
a848cd7e 26349 ;;
ac1cb8d3 26350 no:yes:* )
a848cd7e
SC
26351 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26352echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26353 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26354echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26355 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26356echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26357 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26358echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26359 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26360echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26361 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26362echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26363 (
26364 cat <<\_ASBOX
ac1cb8d3
VS
26365## ----------------------------------------- ##
26366## Report this to wx-dev@lists.wxwidgets.org ##
26367## ----------------------------------------- ##
a848cd7e
SC
26368_ASBOX
26369 ) |
26370 sed "s/^/$as_me: WARNING: /" >&2
26371 ;;
26372esac
26373echo "$as_me:$LINENO: checking for windows.h" >&5
26374echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26375if test "${ac_cv_header_windows_h+set}" = set; then
26376 echo $ECHO_N "(cached) $ECHO_C" >&6
26377else
26378 ac_cv_header_windows_h=$ac_header_preproc
26379fi
26380echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26381echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26382
26383fi
26384if test $ac_cv_header_windows_h = yes; then
26385 :
26386else
26387
26388 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26389echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26390 { (exit 1); exit 1; }; }
26391
26392fi
26393
26394
26395
26396 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26397
26398 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26399 LIBS="$LIBS -loleacc"
26400 fi
26401
26402 case "${host}" in
26403 *-*-cygwin* )
26404 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26405 esac
26406
26407 if test "$wxUSE_ODBC" = "sys" ; then
26408 wxUSE_ODBC = "yes"
26409 fi
26410 if test "$wxUSE_ODBC" = "yes" ; then
26411 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26412 cat >>confdefs.h <<\_ACEOF
26413#define wxUSE_ODBC 1
26414_ACEOF
26415
26416 fi
26417
370d2fd7 26418 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26419 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26420
004ee6da 26421 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26422
a848cd7e
SC
26423 WIN32INSTALL=win32install
26424fi
26425
26426if test "$wxUSE_GUI" = "yes"; then
26427 USE_GUI=1
26428
26429 GUI_TK_LIBRARY=
26430
26431 WXGTK12=
26432 WXGTK127=
26433 WXGTK20=
26434 WXGPE=
26435
207bc66c
RN
26436 if test "$wxUSE_COCOA" = 1 ; then
26437 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26438 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26439echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26440 wxUSE_PRINTING_ARCHITECTURE=no
26441 fi
26442 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26443 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26444echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26445 wxUSE_DRAG_AND_DROP=no
26446 fi
26447 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26448 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26449echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26450 wxUSE_DRAGIMAGE=no
26451 fi
26452 fi
26453
a848cd7e
SC
26454 if test "$wxUSE_MSW" = 1 ; then
26455 TOOLKIT=MSW
26456 GUIDIST=MSW_DIST
26457
ceec2216 26458 case "${host}" in
a848cd7e
SC
26459 *-*-mingw32* )
26460 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26461 esac
26462 fi
26463
26464 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
26465 ac_ext=c
26466ac_cpp='$CPP $CPPFLAGS'
26467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26469ac_compiler_gnu=$ac_cv_c_compiler_gnu
26470
26471
a848cd7e
SC
26472 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26473echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26474
26475 gtk_version_cached=1
26476 if test "${wx_cv_lib_gtk+set}" = set; then
26477 echo $ECHO_N "(cached) $ECHO_C" >&6
26478else
26479
26480 gtk_version_cached=0
26481 echo "$as_me:$LINENO: result: " >&5
26482echo "${ECHO_T}" >&6
26483
26484 GTK_MODULES=
26485 if test "$wxUSE_THREADS" = "yes"; then
26486 GTK_MODULES=gthread
26487 fi
26488
f597b41c 26489 wx_cv_lib_gtk=
5001df0d
MW
26490 if test "x$wxGTK_VERSION" != "x1"
26491 then
26492 case "${host}" in
26493 *-*-solaris2* )
26494 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26495 enable_gtktest=no
5001df0d
MW
26496 fi
26497 esac
26498
a848cd7e
SC
26499 # Check whether --enable-gtktest or --disable-gtktest was given.
26500if test "${enable_gtktest+set}" = set; then
26501 enableval="$enable_gtktest"
26502
26503else
26504 enable_gtktest=yes
26505fi;
26506
26507 pkg_config_args=gtk+-2.0
26508 for module in . $GTK_MODULES
26509 do
26510 case "$module" in
26511 gthread)
26512 pkg_config_args="$pkg_config_args gthread-2.0"
26513 ;;
26514 esac
26515 done
26516
26517 no_gtk=""
26518
26519 # Extract the first word of "pkg-config", so it can be a program name with args.
26520set dummy pkg-config; ac_word=$2
26521echo "$as_me:$LINENO: checking for $ac_word" >&5
26522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26523if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26524 echo $ECHO_N "(cached) $ECHO_C" >&6
26525else
26526 case $PKG_CONFIG in
26527 [\\/]* | ?:[\\/]*)
26528 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26529 ;;
26530 *)
26531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26532for as_dir in $PATH
26533do
26534 IFS=$as_save_IFS
26535 test -z "$as_dir" && as_dir=.
26536 for ac_exec_ext in '' $ac_executable_extensions; do
26537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26538 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26540 break 2
26541 fi
26542done
26543done
26544
26545 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26546 ;;
26547esac
26548fi
26549PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26550
26551if test -n "$PKG_CONFIG"; then
26552 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26553echo "${ECHO_T}$PKG_CONFIG" >&6
26554else
26555 echo "$as_me:$LINENO: result: no" >&5
26556echo "${ECHO_T}no" >&6
26557fi
26558
26559
26560 if test x$PKG_CONFIG != xno ; then
26561 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26562 :
26563 else
c2218763 26564 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26565 no_gtk=yes
26566 PKG_CONFIG=no
26567 fi
26568 else
26569 no_gtk=yes
26570 fi
26571
26572 min_gtk_version=2.0.0
26573 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26574echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26575
26576 if test x$PKG_CONFIG != xno ; then
26577 ## don't try to run the test against uninstalled libtool libs
26578 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26579 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26580 enable_gtktest=no
26581 fi
26582
26583 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26584 :
26585 else
26586 no_gtk=yes
26587 fi
26588 fi
26589
26590 if test x"$no_gtk" = x ; then
26591 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26592 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26593 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26594 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26595 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26597 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26598 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26599 if test "x$enable_gtktest" = "xyes" ; then
26600 ac_save_CFLAGS="$CFLAGS"
26601 ac_save_LIBS="$LIBS"
26602 CFLAGS="$CFLAGS $GTK_CFLAGS"
26603 LIBS="$GTK_LIBS $LIBS"
26604 rm -f conf.gtktest
26605 if test "$cross_compiling" = yes; then
26606 echo $ac_n "cross compiling; assumed OK... $ac_c"
26607else
26608 cat >conftest.$ac_ext <<_ACEOF
26609/* confdefs.h. */
26610_ACEOF
26611cat confdefs.h >>conftest.$ac_ext
26612cat >>conftest.$ac_ext <<_ACEOF
26613/* end confdefs.h. */
26614
26615#include <gtk/gtk.h>
26616#include <stdio.h>
26617#include <stdlib.h>
26618
26619int
26620main ()
26621{
26622 int major, minor, micro;
26623 char *tmp_version;
26624
26625 system ("touch conf.gtktest");
26626
26627 /* HP/UX 9 (%@#!) writes to sscanf strings */
26628 tmp_version = g_strdup("$min_gtk_version");
26629 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26630 printf("%s, bad version string\n", "$min_gtk_version");
26631 exit(1);
26632 }
26633
26634 if ((gtk_major_version != $gtk_config_major_version) ||
26635 (gtk_minor_version != $gtk_config_minor_version) ||
26636 (gtk_micro_version != $gtk_config_micro_version))
26637 {
26638 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26639 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26640 gtk_major_version, gtk_minor_version, gtk_micro_version);
26641 printf ("*** was found! If pkg-config was correct, then it is best\n");
26642 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26643 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26644 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26645 printf("*** required on your system.\n");
26646 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26647 printf("*** to point to the correct configuration files\n");
26648 }
26649 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26650 (gtk_minor_version != GTK_MINOR_VERSION) ||
26651 (gtk_micro_version != GTK_MICRO_VERSION))
26652 {
26653 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26654 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26655 printf("*** library (version %d.%d.%d)\n",
26656 gtk_major_version, gtk_minor_version, gtk_micro_version);
26657 }
26658 else
26659 {
26660 if ((gtk_major_version > major) ||
26661 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26662 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26663 {
26664 return 0;
26665 }
26666 else
26667 {
26668 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26669 gtk_major_version, gtk_minor_version, gtk_micro_version);
26670 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26671 major, minor, micro);
26672 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26673 printf("***\n");
26674 printf("*** If you have already installed a sufficiently new version, this error\n");
26675 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26676 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26677 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26678 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26679 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26680 printf("*** so that the correct libraries are found at run-time))\n");
26681 }
26682 }
26683 return 1;
26684}
26685
26686_ACEOF
26687rm -f conftest$ac_exeext
26688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26689 (eval $ac_link) 2>&5
26690 ac_status=$?
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694 (eval $ac_try) 2>&5
26695 ac_status=$?
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); }; }; then
26698 :
26699else
26700 echo "$as_me: program exited with status $ac_status" >&5
26701echo "$as_me: failed program was:" >&5
26702sed 's/^/| /' conftest.$ac_ext >&5
26703
26704( exit $ac_status )
26705no_gtk=yes
26706fi
ac1cb8d3 26707rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26708fi
26709 CFLAGS="$ac_save_CFLAGS"
26710 LIBS="$ac_save_LIBS"
26711 fi
26712 fi
26713 if test "x$no_gtk" = x ; then
26714 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26715echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26716 wx_cv_lib_gtk=2.0
26717 else
26718 echo "$as_me:$LINENO: result: no" >&5
26719echo "${ECHO_T}no" >&6
26720 if test "$PKG_CONFIG" = "no" ; then
26721 echo "*** A new enough version of pkg-config was not found."
26722 echo "*** See http://pkgconfig.sourceforge.net"
26723 else
26724 if test -f conf.gtktest ; then
26725 :
26726 else
26727 echo "*** Could not run GTK+ test program, checking why..."
26728 ac_save_CFLAGS="$CFLAGS"
26729 ac_save_LIBS="$LIBS"
26730 CFLAGS="$CFLAGS $GTK_CFLAGS"
26731 LIBS="$LIBS $GTK_LIBS"
26732 cat >conftest.$ac_ext <<_ACEOF
26733/* confdefs.h. */
26734_ACEOF
26735cat confdefs.h >>conftest.$ac_ext
26736cat >>conftest.$ac_ext <<_ACEOF
26737/* end confdefs.h. */
26738
26739#include <gtk/gtk.h>
26740#include <stdio.h>
26741
26742int
26743main ()
26744{
26745 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26746 ;
26747 return 0;
26748}
26749_ACEOF
26750rm -f conftest.$ac_objext conftest$ac_exeext
26751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26752 (eval $ac_link) 2>conftest.er1
a848cd7e 26753 ac_status=$?
ac1cb8d3
VS
26754 grep -v '^ *+' conftest.er1 >conftest.err
26755 rm -f conftest.er1
26756 cat conftest.err >&5
a848cd7e
SC
26757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758 (exit $ac_status); } &&
5d7b7554 26759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26761 (eval $ac_try) 2>&5
26762 ac_status=$?
26763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764 (exit $ac_status); }; } &&
26765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26767 (eval $ac_try) 2>&5
26768 ac_status=$?
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); }; }; then
26771 echo "*** The test program compiled, but did not run. This usually means"
26772 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26773 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26774 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26775 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26776 echo "*** is required on your system"
26777 echo "***"
26778 echo "*** If you have an old version installed, it is best to remove it, although"
26779 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26780else
26781 echo "$as_me: failed program was:" >&5
26782sed 's/^/| /' conftest.$ac_ext >&5
26783
26784 echo "*** The test program failed to compile or link. See the file config.log for the"
26785 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26786fi
ac1cb8d3
VS
26787rm -f conftest.err conftest.$ac_objext \
26788 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26789 CFLAGS="$ac_save_CFLAGS"
26790 LIBS="$ac_save_LIBS"
26791 fi
26792 fi
26793 GTK_CFLAGS=""
26794 GTK_LIBS=""
26795 :
26796 fi
26797
26798
26799 rm -f conf.gtktest
26800
5001df0d
MW
26801
26802 case "${host}" in
26803 *-*-solaris2* )
26804 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26805 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26806 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26807 fi
26808 if test "$wxUSE_SHARED" != "yes"; then
26809 GTK_LIBS="$GTK_LIBS -lX11"
26810 fi
26811 esac
f597b41c
MW
26812 fi
26813
f34ca037
MW
26814 if test -z "$wx_cv_lib_gtk"; then
26815 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26816
26817# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26818if test "${with_gtk_prefix+set}" = set; then
26819 withval="$with_gtk_prefix"
26820 gtk_config_prefix="$withval"
26821else
26822 gtk_config_prefix=""
26823fi;
26824
26825# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26826if test "${with_gtk_exec_prefix+set}" = set; then
26827 withval="$with_gtk_exec_prefix"
26828 gtk_config_exec_prefix="$withval"
26829else
26830 gtk_config_exec_prefix=""
26831fi;
26832# Check whether --enable-gtktest or --disable-gtktest was given.
26833if test "${enable_gtktest+set}" = set; then
26834 enableval="$enable_gtktest"
26835
26836else
26837 enable_gtktest=yes
26838fi;
26839
26840 for module in . $GTK_MODULES
26841 do
26842 case "$module" in
26843 gthread)
26844 gtk_config_args="$gtk_config_args gthread"
26845 ;;
26846 esac
26847 done
26848
26849 if test x$gtk_config_exec_prefix != x ; then
26850 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26851 if test x${GTK_CONFIG+set} != xset ; then
26852 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26853 fi
26854 fi
26855 if test x$gtk_config_prefix != x ; then
26856 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26857 if test x${GTK_CONFIG+set} != xset ; then
26858 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26859 fi
26860 fi
26861
26862 # Extract the first word of "gtk-config", so it can be a program name with args.
26863set dummy gtk-config; ac_word=$2
26864echo "$as_me:$LINENO: checking for $ac_word" >&5
26865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26866if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26867 echo $ECHO_N "(cached) $ECHO_C" >&6
26868else
26869 case $GTK_CONFIG in
26870 [\\/]* | ?:[\\/]*)
26871 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26872 ;;
26873 *)
26874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26875for as_dir in $PATH
26876do
26877 IFS=$as_save_IFS
26878 test -z "$as_dir" && as_dir=.
26879 for ac_exec_ext in '' $ac_executable_extensions; do
26880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26881 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26883 break 2
26884 fi
26885done
26886done
26887
26888 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26889 ;;
26890esac
26891fi
26892GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26893
26894if test -n "$GTK_CONFIG"; then
26895 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26896echo "${ECHO_T}$GTK_CONFIG" >&6
26897else
26898 echo "$as_me:$LINENO: result: no" >&5
26899echo "${ECHO_T}no" >&6
26900fi
26901
26902 min_gtk_version=1.2.7
26903 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26904echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26905 no_gtk=""
26906 if test "$GTK_CONFIG" = "no" ; then
26907 no_gtk=yes
26908 else
26909 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26910 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26911 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26913 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26914 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26915 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26916 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26917 if test "x$enable_gtktest" = "xyes" ; then
26918 ac_save_CFLAGS="$CFLAGS"
26919 ac_save_LIBS="$LIBS"
26920 CFLAGS="$CFLAGS $GTK_CFLAGS"
26921 LIBS="$GTK_LIBS $LIBS"
26922 rm -f conf.gtktest
26923 if test "$cross_compiling" = yes; then
26924 echo $ac_n "cross compiling; assumed OK... $ac_c"
26925else
26926 cat >conftest.$ac_ext <<_ACEOF
26927/* confdefs.h. */
26928_ACEOF
26929cat confdefs.h >>conftest.$ac_ext
26930cat >>conftest.$ac_ext <<_ACEOF
26931/* end confdefs.h. */
26932
26933#include <gtk/gtk.h>
26934#include <stdio.h>
26935#include <stdlib.h>
26936
26937int
26938main ()
26939{
26940 int major, minor, micro;
26941 char *tmp_version;
26942
26943 system ("touch conf.gtktest");
26944
26945 /* HP/UX 9 (%@#!) writes to sscanf strings */
26946 tmp_version = g_strdup("$min_gtk_version");
26947 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26948 printf("%s, bad version string\n", "$min_gtk_version");
26949 exit(1);
26950 }
26951
26952 if ((gtk_major_version != $gtk_config_major_version) ||
26953 (gtk_minor_version != $gtk_config_minor_version) ||
26954 (gtk_micro_version != $gtk_config_micro_version))
26955 {
26956 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26957 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26958 gtk_major_version, gtk_minor_version, gtk_micro_version);
26959 printf ("*** was found! If gtk-config was correct, then it is best\n");
26960 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26961 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26962 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26963 printf("*** required on your system.\n");
26964 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26965 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26966 printf("*** before re-running configure\n");
26967 }
26968#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26969 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26970 (gtk_minor_version != GTK_MINOR_VERSION) ||
26971 (gtk_micro_version != GTK_MICRO_VERSION))
26972 {
26973 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26974 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26975 printf("*** library (version %d.%d.%d)\n",
26976 gtk_major_version, gtk_minor_version, gtk_micro_version);
26977 }
26978#endif /* defined (GTK_MAJOR_VERSION) ... */
26979 else
26980 {
26981 if ((gtk_major_version > major) ||
26982 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26983 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26984 {
26985 return 0;
26986 }
26987 else
26988 {
26989 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26990 gtk_major_version, gtk_minor_version, gtk_micro_version);
26991 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26992 major, minor, micro);
26993 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26994 printf("***\n");
26995 printf("*** If you have already installed a sufficiently new version, this error\n");
26996 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26997 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26998 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26999 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27000 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27001 printf("*** so that the correct libraries are found at run-time))\n");
27002 }
27003 }
27004 return 1;
27005}
27006
27007_ACEOF
27008rm -f conftest$ac_exeext
27009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27010 (eval $ac_link) 2>&5
27011 ac_status=$?
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27015 (eval $ac_try) 2>&5
27016 ac_status=$?
27017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); }; }; then
27019 :
27020else
27021 echo "$as_me: program exited with status $ac_status" >&5
27022echo "$as_me: failed program was:" >&5
27023sed 's/^/| /' conftest.$ac_ext >&5
27024
27025( exit $ac_status )
27026no_gtk=yes
27027fi
ac1cb8d3 27028rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27029fi
27030 CFLAGS="$ac_save_CFLAGS"
27031 LIBS="$ac_save_LIBS"
27032 fi
27033 fi
27034 if test "x$no_gtk" = x ; then
27035 echo "$as_me:$LINENO: result: yes" >&5
27036echo "${ECHO_T}yes" >&6
27037 wx_cv_lib_gtk=1.2.7
27038 else
27039 echo "$as_me:$LINENO: result: no" >&5
27040echo "${ECHO_T}no" >&6
27041 if test "$GTK_CONFIG" = "no" ; then
27042 echo "*** The gtk-config script installed by GTK could not be found"
27043 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27044 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27045 echo "*** full path to gtk-config."
27046 else
27047 if test -f conf.gtktest ; then
27048 :
27049 else
27050 echo "*** Could not run GTK test program, checking why..."
27051 CFLAGS="$CFLAGS $GTK_CFLAGS"
27052 LIBS="$LIBS $GTK_LIBS"
27053 cat >conftest.$ac_ext <<_ACEOF
27054/* confdefs.h. */
27055_ACEOF
27056cat confdefs.h >>conftest.$ac_ext
27057cat >>conftest.$ac_ext <<_ACEOF
27058/* end confdefs.h. */
27059
27060#include <gtk/gtk.h>
27061#include <stdio.h>
27062
27063int
27064main ()
27065{
27066 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27067 ;
27068 return 0;
27069}
27070_ACEOF
27071rm -f conftest.$ac_objext conftest$ac_exeext
27072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27073 (eval $ac_link) 2>conftest.er1
a848cd7e 27074 ac_status=$?
ac1cb8d3
VS
27075 grep -v '^ *+' conftest.er1 >conftest.err
27076 rm -f conftest.er1
27077 cat conftest.err >&5
a848cd7e
SC
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); } &&
5d7b7554 27080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082 (eval $ac_try) 2>&5
27083 ac_status=$?
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; } &&
27086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088 (eval $ac_try) 2>&5
27089 ac_status=$?
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; }; then
27092 echo "*** The test program compiled, but did not run. This usually means"
27093 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27094 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27095 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27096 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27097 echo "*** is required on your system"
27098 echo "***"
27099 echo "*** If you have an old version installed, it is best to remove it, although"
27100 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27101 echo "***"
27102 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27103 echo "*** came with the system with the command"
27104 echo "***"
27105 echo "*** rpm --erase --nodeps gtk gtk-devel"
27106else
27107 echo "$as_me: failed program was:" >&5
27108sed 's/^/| /' conftest.$ac_ext >&5
27109
27110 echo "*** The test program failed to compile or link. See the file config.log for the"
27111 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27112 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27113 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27114fi
ac1cb8d3
VS
27115rm -f conftest.err conftest.$ac_objext \
27116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27117 CFLAGS="$ac_save_CFLAGS"
27118 LIBS="$ac_save_LIBS"
27119 fi
27120 fi
27121 GTK_CFLAGS=""
27122 GTK_LIBS=""
27123 :
27124 fi
27125
27126
27127 rm -f conf.gtktest
27128
27129
f34ca037 27130 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27131
27132# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27133if test "${with_gtk_prefix+set}" = set; then
27134 withval="$with_gtk_prefix"
27135 gtk_config_prefix="$withval"
27136else
27137 gtk_config_prefix=""
27138fi;
27139
27140# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27141if test "${with_gtk_exec_prefix+set}" = set; then
27142 withval="$with_gtk_exec_prefix"
27143 gtk_config_exec_prefix="$withval"
27144else
27145 gtk_config_exec_prefix=""
27146fi;
27147# Check whether --enable-gtktest or --disable-gtktest was given.
27148if test "${enable_gtktest+set}" = set; then
27149 enableval="$enable_gtktest"
27150
27151else
27152 enable_gtktest=yes
27153fi;
27154
27155 for module in . $GTK_MODULES
27156 do
27157 case "$module" in
27158 gthread)
27159 gtk_config_args="$gtk_config_args gthread"
27160 ;;
27161 esac
27162 done
27163
27164 if test x$gtk_config_exec_prefix != x ; then
27165 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27166 if test x${GTK_CONFIG+set} != xset ; then
27167 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27168 fi
27169 fi
27170 if test x$gtk_config_prefix != x ; then
27171 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27172 if test x${GTK_CONFIG+set} != xset ; then
27173 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27174 fi
27175 fi
27176
27177 # Extract the first word of "gtk-config", so it can be a program name with args.
27178set dummy gtk-config; ac_word=$2
27179echo "$as_me:$LINENO: checking for $ac_word" >&5
27180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27181if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27183else
27184 case $GTK_CONFIG in
27185 [\\/]* | ?:[\\/]*)
27186 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27187 ;;
27188 *)
27189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27190for as_dir in $PATH
27191do
27192 IFS=$as_save_IFS
27193 test -z "$as_dir" && as_dir=.
27194 for ac_exec_ext in '' $ac_executable_extensions; do
27195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27196 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27198 break 2
27199 fi
27200done
27201done
27202
27203 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27204 ;;
27205esac
27206fi
27207GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27208
27209if test -n "$GTK_CONFIG"; then
27210 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27211echo "${ECHO_T}$GTK_CONFIG" >&6
27212else
27213 echo "$as_me:$LINENO: result: no" >&5
27214echo "${ECHO_T}no" >&6
27215fi
27216
27217 min_gtk_version=1.2.3
27218 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27219echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27220 no_gtk=""
27221 if test "$GTK_CONFIG" = "no" ; then
27222 no_gtk=yes
27223 else
27224 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27225 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27226 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27227 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27228 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27229 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27230 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27231 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27232 if test "x$enable_gtktest" = "xyes" ; then
27233 ac_save_CFLAGS="$CFLAGS"
27234 ac_save_LIBS="$LIBS"
27235 CFLAGS="$CFLAGS $GTK_CFLAGS"
27236 LIBS="$GTK_LIBS $LIBS"
27237 rm -f conf.gtktest
27238 if test "$cross_compiling" = yes; then
27239 echo $ac_n "cross compiling; assumed OK... $ac_c"
27240else
27241 cat >conftest.$ac_ext <<_ACEOF
27242/* confdefs.h. */
27243_ACEOF
27244cat confdefs.h >>conftest.$ac_ext
27245cat >>conftest.$ac_ext <<_ACEOF
27246/* end confdefs.h. */
27247
27248#include <gtk/gtk.h>
27249#include <stdio.h>
27250#include <stdlib.h>
27251
27252int
27253main ()
27254{
27255 int major, minor, micro;
27256 char *tmp_version;
27257
27258 system ("touch conf.gtktest");
27259
27260 /* HP/UX 9 (%@#!) writes to sscanf strings */
27261 tmp_version = g_strdup("$min_gtk_version");
27262 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27263 printf("%s, bad version string\n", "$min_gtk_version");
27264 exit(1);
27265 }
27266
27267 if ((gtk_major_version != $gtk_config_major_version) ||
27268 (gtk_minor_version != $gtk_config_minor_version) ||
27269 (gtk_micro_version != $gtk_config_micro_version))
27270 {
27271 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27272 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27273 gtk_major_version, gtk_minor_version, gtk_micro_version);
27274 printf ("*** was found! If gtk-config was correct, then it is best\n");
27275 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27276 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27277 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27278 printf("*** required on your system.\n");
27279 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27280 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27281 printf("*** before re-running configure\n");
27282 }
27283#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27284 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27285 (gtk_minor_version != GTK_MINOR_VERSION) ||
27286 (gtk_micro_version != GTK_MICRO_VERSION))
27287 {
27288 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27289 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27290 printf("*** library (version %d.%d.%d)\n",
27291 gtk_major_version, gtk_minor_version, gtk_micro_version);
27292 }
27293#endif /* defined (GTK_MAJOR_VERSION) ... */
27294 else
27295 {
27296 if ((gtk_major_version > major) ||
27297 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27298 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27299 {
27300 return 0;
27301 }
27302 else
27303 {
27304 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27305 gtk_major_version, gtk_minor_version, gtk_micro_version);
27306 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27307 major, minor, micro);
27308 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27309 printf("***\n");
27310 printf("*** If you have already installed a sufficiently new version, this error\n");
27311 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27312 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27313 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27314 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27315 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27316 printf("*** so that the correct libraries are found at run-time))\n");
27317 }
27318 }
27319 return 1;
27320}
27321
27322_ACEOF
27323rm -f conftest$ac_exeext
27324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27325 (eval $ac_link) 2>&5
27326 ac_status=$?
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27330 (eval $ac_try) 2>&5
27331 ac_status=$?
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); }; }; then
27334 :
27335else
27336 echo "$as_me: program exited with status $ac_status" >&5
27337echo "$as_me: failed program was:" >&5
27338sed 's/^/| /' conftest.$ac_ext >&5
27339
27340( exit $ac_status )
27341no_gtk=yes
27342fi
ac1cb8d3 27343rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27344fi
27345 CFLAGS="$ac_save_CFLAGS"
27346 LIBS="$ac_save_LIBS"
27347 fi
27348 fi
27349 if test "x$no_gtk" = x ; then
27350 echo "$as_me:$LINENO: result: yes" >&5
27351echo "${ECHO_T}yes" >&6
27352 wx_cv_lib_gtk=1.2.3
27353 else
27354 echo "$as_me:$LINENO: result: no" >&5
27355echo "${ECHO_T}no" >&6
27356 if test "$GTK_CONFIG" = "no" ; then
27357 echo "*** The gtk-config script installed by GTK could not be found"
27358 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27359 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27360 echo "*** full path to gtk-config."
27361 else
27362 if test -f conf.gtktest ; then
27363 :
27364 else
27365 echo "*** Could not run GTK test program, checking why..."
27366 CFLAGS="$CFLAGS $GTK_CFLAGS"
27367 LIBS="$LIBS $GTK_LIBS"
27368 cat >conftest.$ac_ext <<_ACEOF
27369/* confdefs.h. */
27370_ACEOF
27371cat confdefs.h >>conftest.$ac_ext
27372cat >>conftest.$ac_ext <<_ACEOF
27373/* end confdefs.h. */
27374
27375#include <gtk/gtk.h>
27376#include <stdio.h>
27377
27378int
27379main ()
27380{
27381 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27382 ;
27383 return 0;
27384}
27385_ACEOF
27386rm -f conftest.$ac_objext conftest$ac_exeext
27387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27388 (eval $ac_link) 2>conftest.er1
a848cd7e 27389 ac_status=$?
ac1cb8d3
VS
27390 grep -v '^ *+' conftest.er1 >conftest.err
27391 rm -f conftest.er1
27392 cat conftest.err >&5
a848cd7e
SC
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); } &&
5d7b7554 27395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397 (eval $ac_try) 2>&5
27398 ac_status=$?
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; } &&
27401 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27403 (eval $ac_try) 2>&5
27404 ac_status=$?
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); }; }; then
27407 echo "*** The test program compiled, but did not run. This usually means"
27408 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27409 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27410 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27411 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27412 echo "*** is required on your system"
27413 echo "***"
27414 echo "*** If you have an old version installed, it is best to remove it, although"
27415 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27416 echo "***"
27417 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27418 echo "*** came with the system with the command"
27419 echo "***"
27420 echo "*** rpm --erase --nodeps gtk gtk-devel"
27421else
27422 echo "$as_me: failed program was:" >&5
27423sed 's/^/| /' conftest.$ac_ext >&5
27424
27425 echo "*** The test program failed to compile or link. See the file config.log for the"
27426 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27427 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27428 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27429fi
ac1cb8d3
VS
27430rm -f conftest.err conftest.$ac_objext \
27431 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27432 CFLAGS="$ac_save_CFLAGS"
27433 LIBS="$ac_save_LIBS"
27434 fi
27435 fi
27436 GTK_CFLAGS=""
27437 GTK_LIBS=""
27438 :
27439 fi
27440
27441
27442 rm -f conf.gtktest
27443
f34ca037 27444 fi
a848cd7e
SC
27445 fi
27446 fi
27447
27448 if test -z "$wx_cv_lib_gtk"; then
27449 wx_cv_lib_gtk=none
27450 else
27451 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27452 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27453 fi
27454
27455
27456fi
27457
27458
27459 if test "$gtk_version_cached" = 1; then
27460 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27461echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27462 fi
27463
27464 case "$wx_cv_lib_gtk" in
27465 2.0) WXGTK20=1
27466 TOOLKIT_VERSION=2
27467 ;;
27468 1.2.7) WXGTK127=1
27469 WXGTK12=1
27470 ;;
27471 1.2.3) WXGTK12=1
27472 ;;
27473 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27474The development files for GTK+ were not found. For GTK+ 2, please
27475ensure that pkg-config is in the path and that gtk+-2.0.pc is
27476installed. For GTK+ 1.2 please check that gtk-config is in the path,
27477and that the version is 1.2.3 or above. Also check that the
27478libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27479--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27480 " >&5
27481echo "$as_me: error:
f597b41c
MW
27482The development files for GTK+ were not found. For GTK+ 2, please
27483ensure that pkg-config is in the path and that gtk+-2.0.pc is
27484installed. For GTK+ 1.2 please check that gtk-config is in the path,
27485and that the version is 1.2.3 or above. Also check that the
27486libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27487--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27488 " >&2;}
27489 { (exit 1); exit 1; }; }
27490 ;;
27491 esac
27492
27493 if test "$WXGTK20" = 1; then
e56f4f9e 27494 save_CXXFLAGS="$CFLAGS"
304205f1 27495 save_LIBS="$LIBS"
c92ad099 27496 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27497 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27498
d12aef51
VZ
27499 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27500echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27501 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27502/* confdefs.h. */
27503_ACEOF
27504cat confdefs.h >>conftest.$ac_ext
27505cat >>conftest.$ac_ext <<_ACEOF
27506/* end confdefs.h. */
304205f1 27507
d12aef51 27508 #include <gtk/gtk.h>
304205f1 27509
d12aef51
VZ
27510int
27511main ()
27512{
304205f1 27513
d12aef51 27514 void *f = gtk_icon_size_lookup;
abc736fd
MW
27515
27516 ;
27517 return 0;
27518}
27519_ACEOF
27520rm -f conftest.$ac_objext
27521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27522 (eval $ac_compile) 2>conftest.er1
27523 ac_status=$?
27524 grep -v '^ *+' conftest.er1 >conftest.err
27525 rm -f conftest.er1
27526 cat conftest.err >&5
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); } &&
e56f4f9e 27529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
27530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531 (eval $ac_try) 2>&5
27532 ac_status=$?
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; } &&
27535 { ac_try='test -s conftest.$ac_objext'
27536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27537 (eval $ac_try) 2>&5
27538 ac_status=$?
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); }; }; then
27541
27542 echo "$as_me:$LINENO: result: no" >&5
27543echo "${ECHO_T}no" >&6
27544
27545else
27546 echo "$as_me: failed program was:" >&5
27547sed 's/^/| /' conftest.$ac_ext >&5
27548
27549
27550 cat >>confdefs.h <<\_ACEOF
27551#define NEED_GTK_ICON_SIZE_LOOKUP 1
27552_ACEOF
27553
27554 echo "$as_me:$LINENO: result: yes" >&5
27555echo "${ECHO_T}yes" >&6
27556
27557fi
27558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27559
9755e73b
VS
27560 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27561echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27562 cat >conftest.$ac_ext <<_ACEOF
27563/* confdefs.h. */
27564_ACEOF
27565cat confdefs.h >>conftest.$ac_ext
27566cat >>conftest.$ac_ext <<_ACEOF
27567/* end confdefs.h. */
27568
27569 #include <gtk/gtk.h>
27570
27571int
27572main ()
27573{
27574
27575 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27576 Not GTK+ 2.4
9755e73b
VS
27577 #endif
27578
27579 ;
27580 return 0;
27581}
27582_ACEOF
27583rm -f conftest.$ac_objext
27584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27585 (eval $ac_compile) 2>conftest.er1
27586 ac_status=$?
27587 grep -v '^ *+' conftest.er1 >conftest.err
27588 rm -f conftest.er1
27589 cat conftest.err >&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); } &&
e56f4f9e 27592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
27593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27594 (eval $ac_try) 2>&5
27595 ac_status=$?
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); }; } &&
27598 { ac_try='test -s conftest.$ac_objext'
27599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27600 (eval $ac_try) 2>&5
27601 ac_status=$?
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); }; }; then
27604
27605 cat >>confdefs.h <<\_ACEOF
27606#define __WXGTK24__ 1
27607_ACEOF
27608
27609 echo "$as_me:$LINENO: result: yes" >&5
27610echo "${ECHO_T}yes" >&6
27611
27612else
27613 echo "$as_me: failed program was:" >&5
27614sed 's/^/| /' conftest.$ac_ext >&5
27615
27616
27617 echo "$as_me:$LINENO: result: no" >&5
27618echo "${ECHO_T}no" >&6
27619
27620fi
27621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27622
304205f1
VS
27623 CFLAGS="$save_CFLAGS"
27624 LIBS="$save_LIBS"
a848cd7e
SC
27625 else
27626 if test "$wxUSE_UNICODE" = "yes"; then
27627 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27628echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27629 wxUSE_UNICODE=no
27630 fi
27631 fi
27632
e56f4f9e
VZ
27633 ac_ext=cc
27634ac_cpp='$CXXCPP $CPPFLAGS'
27635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27638
27639
a848cd7e
SC
27640 if test "$USE_DARWIN" != 1; then
27641
27642for ac_func in poll
27643do
27644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27645echo "$as_me:$LINENO: checking for $ac_func" >&5
27646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27647if eval "test \"\${$as_ac_var+set}\" = set"; then
27648 echo $ECHO_N "(cached) $ECHO_C" >&6
27649else
27650 cat >conftest.$ac_ext <<_ACEOF
27651/* confdefs.h. */
27652_ACEOF
27653cat confdefs.h >>conftest.$ac_ext
27654cat >>conftest.$ac_ext <<_ACEOF
27655/* end confdefs.h. */
ac1cb8d3
VS
27656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27658#define $ac_func innocuous_$ac_func
27659
a848cd7e
SC
27660/* System header to define __stub macros and hopefully few prototypes,
27661 which can conflict with char $ac_func (); below.
27662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27663 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27664
a848cd7e
SC
27665#ifdef __STDC__
27666# include <limits.h>
27667#else
27668# include <assert.h>
27669#endif
ac1cb8d3
VS
27670
27671#undef $ac_func
27672
a848cd7e
SC
27673/* Override any gcc2 internal prototype to avoid an error. */
27674#ifdef __cplusplus
27675extern "C"
27676{
27677#endif
27678/* We use char because int might match the return type of a gcc2
27679 builtin and then its argument prototype would still apply. */
27680char $ac_func ();
27681/* The GNU C library defines this for functions which it implements
27682 to always fail with ENOSYS. Some functions are actually named
27683 something starting with __ and the normal name is an alias. */
27684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27685choke me
27686#else
27687char (*f) () = $ac_func;
27688#endif
27689#ifdef __cplusplus
27690}
27691#endif
27692
27693int
27694main ()
27695{
27696return f != $ac_func;
27697 ;
27698 return 0;
27699}
27700_ACEOF
27701rm -f conftest.$ac_objext conftest$ac_exeext
27702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27703 (eval $ac_link) 2>conftest.er1
a848cd7e 27704 ac_status=$?
ac1cb8d3
VS
27705 grep -v '^ *+' conftest.er1 >conftest.err
27706 rm -f conftest.er1
27707 cat conftest.err >&5
a848cd7e
SC
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); } &&
5d7b7554 27710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27712 (eval $ac_try) 2>&5
27713 ac_status=$?
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); }; } &&
27716 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27718 (eval $ac_try) 2>&5
27719 ac_status=$?
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; }; then
27722 eval "$as_ac_var=yes"
27723else
27724 echo "$as_me: failed program was:" >&5
27725sed 's/^/| /' conftest.$ac_ext >&5
27726
27727eval "$as_ac_var=no"
27728fi
ac1cb8d3
VS
27729rm -f conftest.err conftest.$ac_objext \
27730 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27731fi
27732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27733echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27734if test `eval echo '${'$as_ac_var'}'` = yes; then
27735 cat >>confdefs.h <<_ACEOF
27736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27737_ACEOF
27738
27739fi
27740done
27741
27742 fi
27743
27744 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27745 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27746
27747 AFMINSTALL=afminstall
27748 TOOLKIT=GTK
27749 GUIDIST=GTK_DIST
27750
27751 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27752echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27753if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27754 echo $ECHO_N "(cached) $ECHO_C" >&6
27755else
27756 ac_check_lib_save_LIBS=$LIBS
27757LIBS="-lgdk $LIBS"
27758cat >conftest.$ac_ext <<_ACEOF
27759/* confdefs.h. */
27760_ACEOF
27761cat confdefs.h >>conftest.$ac_ext
27762cat >>conftest.$ac_ext <<_ACEOF
27763/* end confdefs.h. */
27764
27765/* Override any gcc2 internal prototype to avoid an error. */
27766#ifdef __cplusplus
27767extern "C"
27768#endif
27769/* We use char because int might match the return type of a gcc2
27770 builtin and then its argument prototype would still apply. */
27771char gdk_im_open ();
27772int
27773main ()
27774{
27775gdk_im_open ();
27776 ;
27777 return 0;
27778}
27779_ACEOF
27780rm -f conftest.$ac_objext conftest$ac_exeext
27781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27782 (eval $ac_link) 2>conftest.er1
a848cd7e 27783 ac_status=$?
ac1cb8d3
VS
27784 grep -v '^ *+' conftest.er1 >conftest.err
27785 rm -f conftest.er1
27786 cat conftest.err >&5
a848cd7e
SC
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); } &&
5d7b7554 27789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791 (eval $ac_try) 2>&5
27792 ac_status=$?
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); }; } &&
27795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797 (eval $ac_try) 2>&5
27798 ac_status=$?
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; }; then
27801 ac_cv_lib_gdk_gdk_im_open=yes
27802else
27803 echo "$as_me: failed program was:" >&5
27804sed 's/^/| /' conftest.$ac_ext >&5
27805
27806ac_cv_lib_gdk_gdk_im_open=no
27807fi
ac1cb8d3
VS
27808rm -f conftest.err conftest.$ac_objext \
27809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27810LIBS=$ac_check_lib_save_LIBS
27811fi
27812echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27813echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27814if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27815 cat >>confdefs.h <<\_ACEOF
27816#define HAVE_XIM 1
27817_ACEOF
27818
27819fi
27820
27821
27822
27823 if test "$wxUSE_GPE" = "yes"; then
27824 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27825echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27826
0ad5d837
VZ
27827 ac_find_libraries=
27828 for ac_dir in $SEARCH_LIB;
a848cd7e 27829 do
3eca31dc 27830 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27831 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27832 ac_find_libraries=$ac_dir
27833 break 2
27834 fi
27835 done
27836 done
27837
27838 if test "$ac_find_libraries" != "" ; then
27839
0ad5d837 27840 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27841 ac_path_to_link=""
27842 else
0ad5d837
VZ
27843 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27844 result=$?
27845 if test $result = 0; then
27846 ac_path_to_link=""
27847 else
27848 ac_path_to_link=" -L$ac_find_libraries"
27849 fi
a848cd7e
SC
27850 fi
27851
27852 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27853 WXGPE=1
0ad5d837
VZ
27854 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27855echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27856 else
27857 echo "$as_me:$LINENO: result: not found" >&5
27858echo "${ECHO_T}not found" >&6
27859 fi
27860
27861 fi
27862 fi
27863
27864 if test "$wxUSE_MGL" = 1; then
27865 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27866echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27867 if test "x$MGL_ROOT" = x ; then
27868 echo "$as_me:$LINENO: result: not found" >&5
27869echo "${ECHO_T}not found" >&6
27870 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27871echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27872 { (exit 1); exit 1; }; }
27873 else
27874 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27875echo "${ECHO_T}$MGL_ROOT" >&6
27876 fi
27877
27878 echo "$as_me:$LINENO: checking for libmgl location" >&5
27879echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27880 case "${host}" in
27881 *-*-linux* )
27882 if test "x$wxUSE_SHARED" = xyes ; then
27883 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27884 else
27885 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27886 fi
27887 ;;
27888 *-pc-msdosdjgpp )
27889 mgl_os_candidates="dos32/dj2"
27890 ;;
27891 *)
27892 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27893echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27894 { (exit 1); exit 1; }; }
27895 esac
27896
27897 mgl_lib_type=""
27898 mgl_os=""
27899
27900 for mgl_os_i in $mgl_os_candidates ; do
27901 if test "x$mgl_os" = x ; then
27902 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27903 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27904 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27905 mgl_lib_type=debug
27906 mgl_os=$mgl_os_i
27907 fi
27908 fi
27909 if test "x$mgl_lib_type" = x ; then
27910 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27911 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27912 mgl_lib_type=release
27913 mgl_os=$mgl_os_i
27914 fi
27915 fi
27916 fi
27917 done
27918
27919 if test "x$mgl_os" = x ; then
27920 echo "$as_me:$LINENO: result: not found" >&5
27921echo "${ECHO_T}not found" >&6
27922 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27923echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27924 { (exit 1); exit 1; }; }
27925 fi
27926 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27927echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27928
27929 wxUSE_UNIVERSAL="yes"
27930
27931 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27932 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27933
27934 AFMINSTALL=afminstall
27935 TOOLKIT=MGL
27936 GUIDIST=MGL_DIST
27937 fi
27938
27939 if test "$wxUSE_MICROWIN" = 1; then
27940 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27941echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27942 if test "x$MICROWINDOWS" = x ; then
27943 echo "$as_me:$LINENO: result: not found" >&5
27944echo "${ECHO_T}not found" >&6
27945 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27946echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27947 { (exit 1); exit 1; }; }
27948 else
27949 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27950echo "${ECHO_T}$MICROWINDOWS" >&6
27951 fi
27952
27953 if test -f $MICROWINDOWS/lib/libmwin.a; then
27954 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27955echo "${ECHO_T}MicroWindows' libraries found." >&6
27956 else
27957 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27958echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27959 { (exit 1); exit 1; }; }
27960 fi
27961
27962 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27963 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27964
27965 wxUSE_UNIVERSAL="yes"
27966
27967 AFMINSTALL=afminstall
27968 TOOLKIT=MICROWIN
27969 GUIDIST=MICROWIN_DIST
27970
27971 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27972 fi
27973
74b84332 27974 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
5d7b7554
VZ
27975
27976if test "x$ac_path_x_has_been_run" != xyes; then
27977 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27978echo $ECHO_N "checking for X... $ECHO_C" >&6
27979
5d7b7554 27980ac_path_x_has_been_run=yes
a848cd7e
SC
27981
27982# Check whether --with-x or --without-x was given.
27983if test "${with_x+set}" = set; then
27984 withval="$with_x"
27985
27986fi;
27987# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27988if test "x$with_x" = xno; then
27989 # The user explicitly disabled X.
27990 have_x=disabled
27991else
27992 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27993 # Both variables are already set.
27994 have_x=yes
27995 else
27996 if test "${ac_cv_have_x+set}" = set; then
27997 echo $ECHO_N "(cached) $ECHO_C" >&6
27998else
27999 # One or both of the vars are not set, and there is no cached value.
28000ac_x_includes=no ac_x_libraries=no
28001rm -fr conftest.dir
28002if mkdir conftest.dir; then
28003 cd conftest.dir
28004 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28005 cat >Imakefile <<'_ACEOF'
28006acfindx:
28007 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28008_ACEOF
28009 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28010 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28011 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28012 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28013 for ac_extension in a so sl; do
28014 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28015 test -f $ac_im_libdir/libX11.$ac_extension; then
28016 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28017 fi
28018 done
28019 # Screen out bogus values from the imake configuration. They are
28020 # bogus both because they are the default anyway, and because
28021 # using them would break gcc on systems where it needs fixed includes.
28022 case $ac_im_incroot in
28023 /usr/include) ;;
28024 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28025 esac
28026 case $ac_im_usrlibdir in
28027 /usr/lib | /lib) ;;
28028 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28029 esac
28030 fi
28031 cd ..
28032 rm -fr conftest.dir
28033fi
28034
28035# Standard set of common directories for X headers.
28036# Check X11 before X11Rn because it is often a symlink to the current release.
28037ac_x_header_dirs='
28038/usr/X11/include
28039/usr/X11R6/include
28040/usr/X11R5/include
28041/usr/X11R4/include
28042
28043/usr/include/X11
28044/usr/include/X11R6
28045/usr/include/X11R5
28046/usr/include/X11R4
28047
28048/usr/local/X11/include
28049/usr/local/X11R6/include
28050/usr/local/X11R5/include
28051/usr/local/X11R4/include
28052
28053/usr/local/include/X11
28054/usr/local/include/X11R6
28055/usr/local/include/X11R5
28056/usr/local/include/X11R4
28057
28058/usr/X386/include
28059/usr/x386/include
28060/usr/XFree86/include/X11
28061
28062/usr/include
28063/usr/local/include
28064/usr/unsupported/include
28065/usr/athena/include
28066/usr/local/x11r5/include
28067/usr/lpp/Xamples/include
28068
28069/usr/openwin/include
28070/usr/openwin/share/include'
28071
28072if test "$ac_x_includes" = no; then
5d7b7554 28073 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28074 # First, try using that file with no special directory specified.
28075 cat >conftest.$ac_ext <<_ACEOF
28076/* confdefs.h. */
28077_ACEOF
28078cat confdefs.h >>conftest.$ac_ext
28079cat >>conftest.$ac_ext <<_ACEOF
28080/* end confdefs.h. */
2b850ae1 28081#include <X11/Intrinsic.h>
a848cd7e
SC
28082_ACEOF
28083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28085 ac_status=$?
28086 grep -v '^ *+' conftest.er1 >conftest.err
28087 rm -f conftest.er1
28088 cat conftest.err >&5
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); } >/dev/null; then
28091 if test -s conftest.err; then
5d7b7554
VZ
28092 ac_cpp_err=$ac_cxx_preproc_warn_flag
28093 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28094 else
28095 ac_cpp_err=
28096 fi
28097else
28098 ac_cpp_err=yes
28099fi
28100if test -z "$ac_cpp_err"; then
28101 # We can compile using X headers with no special include directory.
28102ac_x_includes=
28103else
28104 echo "$as_me: failed program was:" >&5
28105sed 's/^/| /' conftest.$ac_ext >&5
28106
28107 for ac_dir in $ac_x_header_dirs; do
2b850ae1 28108 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
28109 ac_x_includes=$ac_dir
28110 break
28111 fi
28112done
28113fi
28114rm -f conftest.err conftest.$ac_ext
28115fi # $ac_x_includes = no
28116
28117if test "$ac_x_libraries" = no; then
28118 # Check for the libraries.
28119 # See if we find them without any special options.
28120 # Don't add to $LIBS permanently.
28121 ac_save_LIBS=$LIBS
2b850ae1 28122 LIBS="-lXt $LIBS"
a848cd7e
SC
28123 cat >conftest.$ac_ext <<_ACEOF
28124/* confdefs.h. */
28125_ACEOF
28126cat confdefs.h >>conftest.$ac_ext
28127cat >>conftest.$ac_ext <<_ACEOF
28128/* end confdefs.h. */
2b850ae1 28129#include <X11/Intrinsic.h>
a848cd7e
SC
28130int
28131main ()
28132{
2b850ae1 28133XtMalloc (0)
a848cd7e
SC
28134 ;
28135 return 0;
28136}
28137_ACEOF
28138rm -f conftest.$ac_objext conftest$ac_exeext
28139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28140 (eval $ac_link) 2>conftest.er1
a848cd7e 28141 ac_status=$?
ac1cb8d3
VS
28142 grep -v '^ *+' conftest.er1 >conftest.err
28143 rm -f conftest.er1
28144 cat conftest.err >&5
a848cd7e
SC
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); } &&
5d7b7554 28147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28149 (eval $ac_try) 2>&5
28150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); }; } &&
28153 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28155 (eval $ac_try) 2>&5
28156 ac_status=$?
28157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158 (exit $ac_status); }; }; then
28159 LIBS=$ac_save_LIBS
28160# We can link X programs with no special library path.
28161ac_x_libraries=
28162else
28163 echo "$as_me: failed program was:" >&5
28164sed 's/^/| /' conftest.$ac_ext >&5
28165
28166LIBS=$ac_save_LIBS
28167for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28168do
28169 # Don't even attempt the hair of trying to link an X program!
28170 for ac_extension in a so sl; do
2b850ae1 28171 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
28172 ac_x_libraries=$ac_dir
28173 break 2
28174 fi
28175 done
28176done
28177fi
ac1cb8d3
VS
28178rm -f conftest.err conftest.$ac_objext \
28179 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28180fi # $ac_x_libraries = no
28181
28182if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28183 # Didn't find X anywhere. Cache the known absence of X.
28184 ac_cv_have_x="have_x=no"
28185else
28186 # Record where we found X for the cache.
28187 ac_cv_have_x="have_x=yes \
ac1cb8d3 28188 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28189fi
28190fi
28191
28192 fi
28193 eval "$ac_cv_have_x"
28194fi # $with_x != no
28195
28196if test "$have_x" != yes; then
28197 echo "$as_me:$LINENO: result: $have_x" >&5
28198echo "${ECHO_T}$have_x" >&6
28199 no_x=yes
28200else
28201 # If each of the values was on the command line, it overrides each guess.
28202 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28203 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28204 # Update the cache value to reflect the command line values.
28205 ac_cv_have_x="have_x=yes \
28206 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5d7b7554
VZ
28207 # It might be that x_includes is empty (headers are found in the
28208 # standard search path. Then output the corresponding message
28209 ac_out_x_includes=$x_includes
28210 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28211 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28212echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
28213fi
28214
5d7b7554 28215fi
a848cd7e
SC
28216if test "$no_x" = yes; then
28217 # Not all programs may use this symbol, but it does not hurt to define it.
28218
28219cat >>confdefs.h <<\_ACEOF
28220#define X_DISPLAY_MISSING 1
28221_ACEOF
28222
28223 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28224else
28225 if test -n "$x_includes"; then
28226 X_CFLAGS="$X_CFLAGS -I$x_includes"
28227 fi
28228
28229 # It would also be nice to do this for all -L options, not just this one.
28230 if test -n "$x_libraries"; then
28231 X_LIBS="$X_LIBS -L$x_libraries"
28232 # For Solaris; some versions of Sun CC require a space after -R and
28233 # others require no space. Words are not sufficient . . . .
28234 case `(uname -sr) 2>/dev/null` in
28235 "SunOS 5"*)
28236 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28237echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28238 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28239 cat >conftest.$ac_ext <<_ACEOF
28240/* confdefs.h. */
28241_ACEOF
28242cat confdefs.h >>conftest.$ac_ext
28243cat >>conftest.$ac_ext <<_ACEOF
28244/* end confdefs.h. */
28245
28246int
28247main ()
28248{
28249
28250 ;
28251 return 0;
28252}
28253_ACEOF
28254rm -f conftest.$ac_objext conftest$ac_exeext
28255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28256 (eval $ac_link) 2>conftest.er1
a848cd7e 28257 ac_status=$?
ac1cb8d3
VS
28258 grep -v '^ *+' conftest.er1 >conftest.err
28259 rm -f conftest.er1
28260 cat conftest.err >&5
a848cd7e
SC
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); } &&
5d7b7554 28263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28265 (eval $ac_try) 2>&5
28266 ac_status=$?
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); }; } &&
28269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28271 (eval $ac_try) 2>&5
28272 ac_status=$?
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); }; }; then
28275 ac_R_nospace=yes
28276else
28277 echo "$as_me: failed program was:" >&5
28278sed 's/^/| /' conftest.$ac_ext >&5
28279
28280ac_R_nospace=no
28281fi
ac1cb8d3
VS
28282rm -f conftest.err conftest.$ac_objext \
28283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28284 if test $ac_R_nospace = yes; then
28285 echo "$as_me:$LINENO: result: no" >&5
28286echo "${ECHO_T}no" >&6
28287 X_LIBS="$X_LIBS -R$x_libraries"
28288 else
28289 LIBS="$ac_xsave_LIBS -R $x_libraries"
28290 cat >conftest.$ac_ext <<_ACEOF
28291/* confdefs.h. */
28292_ACEOF
28293cat confdefs.h >>conftest.$ac_ext
28294cat >>conftest.$ac_ext <<_ACEOF
28295/* end confdefs.h. */
28296
28297int
28298main ()
28299{
28300
28301 ;
28302 return 0;
28303}
28304_ACEOF
28305rm -f conftest.$ac_objext conftest$ac_exeext
28306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28307 (eval $ac_link) 2>conftest.er1
a848cd7e 28308 ac_status=$?
ac1cb8d3
VS
28309 grep -v '^ *+' conftest.er1 >conftest.err
28310 rm -f conftest.er1
28311 cat conftest.err >&5
a848cd7e
SC
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); } &&
5d7b7554 28314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28316 (eval $ac_try) 2>&5
28317 ac_status=$?
28318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319 (exit $ac_status); }; } &&
28320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28322 (eval $ac_try) 2>&5
28323 ac_status=$?
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325 (exit $ac_status); }; }; then
28326 ac_R_space=yes
28327else
28328 echo "$as_me: failed program was:" >&5
28329sed 's/^/| /' conftest.$ac_ext >&5
28330
28331ac_R_space=no
28332fi
ac1cb8d3
VS
28333rm -f conftest.err conftest.$ac_objext \
28334 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28335 if test $ac_R_space = yes; then
28336 echo "$as_me:$LINENO: result: yes" >&5
28337echo "${ECHO_T}yes" >&6
28338 X_LIBS="$X_LIBS -R $x_libraries"
28339 else
28340 echo "$as_me:$LINENO: result: neither works" >&5
28341echo "${ECHO_T}neither works" >&6
28342 fi
28343 fi
28344 LIBS=$ac_xsave_LIBS
28345 esac
28346 fi
28347
28348 # Check for system-dependent libraries X programs must link with.
28349 # Do this before checking for the system-independent R6 libraries
28350 # (-lICE), since we may need -lsocket or whatever for X linking.
28351
28352 if test "$ISC" = yes; then
28353 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28354 else
28355 # Martyn Johnson says this is needed for Ultrix, if the X
28356 # libraries were built with DECnet support. And Karl Berry says
28357 # the Alpha needs dnet_stub (dnet does not exist).
28358 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28359 cat >conftest.$ac_ext <<_ACEOF
28360/* confdefs.h. */
28361_ACEOF
28362cat confdefs.h >>conftest.$ac_ext
28363cat >>conftest.$ac_ext <<_ACEOF
28364/* end confdefs.h. */
28365
28366/* Override any gcc2 internal prototype to avoid an error. */
28367#ifdef __cplusplus
28368extern "C"
28369#endif
28370/* We use char because int might match the return type of a gcc2
28371 builtin and then its argument prototype would still apply. */
28372char XOpenDisplay ();
28373int
28374main ()
28375{
28376XOpenDisplay ();
28377 ;
28378 return 0;
28379}
28380_ACEOF
28381rm -f conftest.$ac_objext conftest$ac_exeext
28382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28383 (eval $ac_link) 2>conftest.er1
a848cd7e 28384 ac_status=$?
ac1cb8d3
VS
28385 grep -v '^ *+' conftest.er1 >conftest.err
28386 rm -f conftest.er1
28387 cat conftest.err >&5
a848cd7e
SC
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); } &&
5d7b7554 28390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28392 (eval $ac_try) 2>&5
28393 ac_status=$?
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); }; } &&
28396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398 (eval $ac_try) 2>&5
28399 ac_status=$?
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); }; }; then
28402 :
28403else
28404 echo "$as_me: failed program was:" >&5
28405sed 's/^/| /' conftest.$ac_ext >&5
28406
28407echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28408echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28409if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28410 echo $ECHO_N "(cached) $ECHO_C" >&6
28411else
28412 ac_check_lib_save_LIBS=$LIBS
28413LIBS="-ldnet $LIBS"
28414cat >conftest.$ac_ext <<_ACEOF
28415/* confdefs.h. */
28416_ACEOF
28417cat confdefs.h >>conftest.$ac_ext
28418cat >>conftest.$ac_ext <<_ACEOF
28419/* end confdefs.h. */
28420
28421/* Override any gcc2 internal prototype to avoid an error. */
28422#ifdef __cplusplus
28423extern "C"
28424#endif
28425/* We use char because int might match the return type of a gcc2
28426 builtin and then its argument prototype would still apply. */
28427char dnet_ntoa ();
28428int
28429main ()
28430{
28431dnet_ntoa ();
28432 ;
28433 return 0;
28434}
28435_ACEOF
28436rm -f conftest.$ac_objext conftest$ac_exeext
28437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28438 (eval $ac_link) 2>conftest.er1
a848cd7e 28439 ac_status=$?
ac1cb8d3
VS
28440 grep -v '^ *+' conftest.er1 >conftest.err
28441 rm -f conftest.er1
28442 cat conftest.err >&5
a848cd7e
SC
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); } &&
5d7b7554 28445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
28451 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453 (eval $ac_try) 2>&5
28454 ac_status=$?
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; }; then
28457 ac_cv_lib_dnet_dnet_ntoa=yes
28458else
28459 echo "$as_me: failed program was:" >&5
28460sed 's/^/| /' conftest.$ac_ext >&5
28461
28462ac_cv_lib_dnet_dnet_ntoa=no
28463fi
ac1cb8d3
VS
28464rm -f conftest.err conftest.$ac_objext \
28465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28466LIBS=$ac_check_lib_save_LIBS
28467fi
28468echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28469echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28470if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28471 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28472fi
28473
28474 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28475 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28476echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28477if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28478 echo $ECHO_N "(cached) $ECHO_C" >&6
28479else
28480 ac_check_lib_save_LIBS=$LIBS
28481LIBS="-ldnet_stub $LIBS"
28482cat >conftest.$ac_ext <<_ACEOF
28483/* confdefs.h. */
28484_ACEOF
28485cat confdefs.h >>conftest.$ac_ext
28486cat >>conftest.$ac_ext <<_ACEOF
28487/* end confdefs.h. */
28488
28489/* Override any gcc2 internal prototype to avoid an error. */
28490#ifdef __cplusplus
28491extern "C"
28492#endif
28493/* We use char because int might match the return type of a gcc2
28494 builtin and then its argument prototype would still apply. */
28495char dnet_ntoa ();
28496int
28497main ()
28498{
28499dnet_ntoa ();
28500 ;
28501 return 0;
28502}
28503_ACEOF
28504rm -f conftest.$ac_objext conftest$ac_exeext
28505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28506 (eval $ac_link) 2>conftest.er1
a848cd7e 28507 ac_status=$?
ac1cb8d3
VS
28508 grep -v '^ *+' conftest.er1 >conftest.err
28509 rm -f conftest.er1
28510 cat conftest.err >&5
a848cd7e
SC
28511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512 (exit $ac_status); } &&
5d7b7554 28513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28515 (eval $ac_try) 2>&5
28516 ac_status=$?
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; } &&
28519 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28521 (eval $ac_try) 2>&5
28522 ac_status=$?
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); }; }; then
28525 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28526else
28527 echo "$as_me: failed program was:" >&5
28528sed 's/^/| /' conftest.$ac_ext >&5
28529
28530ac_cv_lib_dnet_stub_dnet_ntoa=no
28531fi
ac1cb8d3
VS
28532rm -f conftest.err conftest.$ac_objext \
28533 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28534LIBS=$ac_check_lib_save_LIBS
28535fi
28536echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28537echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28538if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28539 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28540fi
28541
28542 fi
28543fi
ac1cb8d3
VS
28544rm -f conftest.err conftest.$ac_objext \
28545 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28546 LIBS="$ac_xsave_LIBS"
28547
28548 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28549 # to get the SysV transport functions.
28550 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28551 # needs -lnsl.
28552 # The nsl library prevents programs from opening the X display
28553 # on Irix 5.2, according to T.E. Dickey.
28554 # The functions gethostbyname, getservbyname, and inet_addr are
28555 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28556 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28557echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28558if test "${ac_cv_func_gethostbyname+set}" = set; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28560else
28561 cat >conftest.$ac_ext <<_ACEOF
28562/* confdefs.h. */
28563_ACEOF
28564cat confdefs.h >>conftest.$ac_ext
28565cat >>conftest.$ac_ext <<_ACEOF
28566/* end confdefs.h. */
ac1cb8d3
VS
28567/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28569#define gethostbyname innocuous_gethostbyname
28570
a848cd7e
SC
28571/* System header to define __stub macros and hopefully few prototypes,
28572 which can conflict with char gethostbyname (); below.
28573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28574 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28575
a848cd7e
SC
28576#ifdef __STDC__
28577# include <limits.h>
28578#else
28579# include <assert.h>
28580#endif
ac1cb8d3
VS
28581
28582#undef gethostbyname
28583
a848cd7e
SC
28584/* Override any gcc2 internal prototype to avoid an error. */
28585#ifdef __cplusplus
28586extern "C"
28587{
28588#endif
28589/* We use char because int might match the return type of a gcc2
28590 builtin and then its argument prototype would still apply. */
28591char gethostbyname ();
28592/* The GNU C library defines this for functions which it implements
28593 to always fail with ENOSYS. Some functions are actually named
28594 something starting with __ and the normal name is an alias. */
28595#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28596choke me
28597#else
28598char (*f) () = gethostbyname;
28599#endif
28600#ifdef __cplusplus
28601}
28602#endif
28603
28604int
28605main ()
28606{
28607return f != gethostbyname;
28608 ;
28609 return 0;
28610}
28611_ACEOF
28612rm -f conftest.$ac_objext conftest$ac_exeext
28613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28614 (eval $ac_link) 2>conftest.er1
a848cd7e 28615 ac_status=$?
ac1cb8d3
VS
28616 grep -v '^ *+' conftest.er1 >conftest.err
28617 rm -f conftest.er1
28618 cat conftest.err >&5
a848cd7e
SC
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); } &&
5d7b7554 28621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623 (eval $ac_try) 2>&5
28624 ac_status=$?
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; } &&
28627 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629 (eval $ac_try) 2>&5
28630 ac_status=$?
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); }; }; then
28633 ac_cv_func_gethostbyname=yes
28634else
28635 echo "$as_me: failed program was:" >&5
28636sed 's/^/| /' conftest.$ac_ext >&5
28637
28638ac_cv_func_gethostbyname=no
28639fi
ac1cb8d3
VS
28640rm -f conftest.err conftest.$ac_objext \
28641 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28642fi
28643echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28644echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28645
28646 if test $ac_cv_func_gethostbyname = no; then
28647 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28648echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28649if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28650 echo $ECHO_N "(cached) $ECHO_C" >&6
28651else
28652 ac_check_lib_save_LIBS=$LIBS
28653LIBS="-lnsl $LIBS"
28654cat >conftest.$ac_ext <<_ACEOF
28655/* confdefs.h. */
28656_ACEOF
28657cat confdefs.h >>conftest.$ac_ext
28658cat >>conftest.$ac_ext <<_ACEOF
28659/* end confdefs.h. */
28660
28661/* Override any gcc2 internal prototype to avoid an error. */
28662#ifdef __cplusplus
28663extern "C"
28664#endif
28665/* We use char because int might match the return type of a gcc2
28666 builtin and then its argument prototype would still apply. */
28667char gethostbyname ();
28668int
28669main ()
28670{
28671gethostbyname ();
28672 ;
28673 return 0;
28674}
28675_ACEOF
28676rm -f conftest.$ac_objext conftest$ac_exeext
28677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28678 (eval $ac_link) 2>conftest.er1
28679 ac_status=$?
28680 grep -v '^ *+' conftest.er1 >conftest.err
28681 rm -f conftest.er1
28682 cat conftest.err >&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } &&
5d7b7554 28685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28687 (eval $ac_try) 2>&5
28688 ac_status=$?
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); }; } &&
28691 { ac_try='test -s conftest$ac_exeext'
28692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693 (eval $ac_try) 2>&5
28694 ac_status=$?
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; }; then
28697 ac_cv_lib_nsl_gethostbyname=yes
28698else
28699 echo "$as_me: failed program was:" >&5
28700sed 's/^/| /' conftest.$ac_ext >&5
28701
28702ac_cv_lib_nsl_gethostbyname=no
28703fi
28704rm -f conftest.err conftest.$ac_objext \
28705 conftest$ac_exeext conftest.$ac_ext
28706LIBS=$ac_check_lib_save_LIBS
28707fi
28708echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28709echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28710if test $ac_cv_lib_nsl_gethostbyname = yes; then
28711 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28712fi
28713
28714 if test $ac_cv_lib_nsl_gethostbyname = no; then
28715 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28716echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28717if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28718 echo $ECHO_N "(cached) $ECHO_C" >&6
28719else
28720 ac_check_lib_save_LIBS=$LIBS
28721LIBS="-lbsd $LIBS"
28722cat >conftest.$ac_ext <<_ACEOF
28723/* confdefs.h. */
28724_ACEOF
28725cat confdefs.h >>conftest.$ac_ext
28726cat >>conftest.$ac_ext <<_ACEOF
28727/* end confdefs.h. */
28728
28729/* Override any gcc2 internal prototype to avoid an error. */
28730#ifdef __cplusplus
28731extern "C"
28732#endif
28733/* We use char because int might match the return type of a gcc2
28734 builtin and then its argument prototype would still apply. */
28735char gethostbyname ();
28736int
28737main ()
28738{
28739gethostbyname ();
28740 ;
28741 return 0;
28742}
28743_ACEOF
28744rm -f conftest.$ac_objext conftest$ac_exeext
28745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28746 (eval $ac_link) 2>conftest.er1
a848cd7e 28747 ac_status=$?
ac1cb8d3
VS
28748 grep -v '^ *+' conftest.er1 >conftest.err
28749 rm -f conftest.er1
28750 cat conftest.err >&5
a848cd7e
SC
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); } &&
5d7b7554 28753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28755 (eval $ac_try) 2>&5
28756 ac_status=$?
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28758 (exit $ac_status); }; } &&
28759 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28761 (eval $ac_try) 2>&5
28762 ac_status=$?
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); }; }; then
28765 ac_cv_lib_bsd_gethostbyname=yes
28766else
28767 echo "$as_me: failed program was:" >&5
28768sed 's/^/| /' conftest.$ac_ext >&5
28769
28770ac_cv_lib_bsd_gethostbyname=no
28771fi
ac1cb8d3
VS
28772rm -f conftest.err conftest.$ac_objext \
28773 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28774LIBS=$ac_check_lib_save_LIBS
28775fi
28776echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28777echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28778if test $ac_cv_lib_bsd_gethostbyname = yes; then
28779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28780fi
28781
28782 fi
28783 fi
28784
28785 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28786 # socket/setsockopt and other routines are undefined under SCO ODT
28787 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28788 # on later versions), says Simon Leinen: it contains gethostby*
28789 # variants that don't use the name server (or something). -lsocket
28790 # must be given before -lnsl if both are needed. We assume that
28791 # if connect needs -lnsl, so does gethostbyname.
28792 echo "$as_me:$LINENO: checking for connect" >&5
28793echo $ECHO_N "checking for connect... $ECHO_C" >&6
28794if test "${ac_cv_func_connect+set}" = set; then
28795 echo $ECHO_N "(cached) $ECHO_C" >&6
28796else
28797 cat >conftest.$ac_ext <<_ACEOF
28798/* confdefs.h. */
28799_ACEOF
28800cat confdefs.h >>conftest.$ac_ext
28801cat >>conftest.$ac_ext <<_ACEOF
28802/* end confdefs.h. */
ac1cb8d3
VS
28803/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28805#define connect innocuous_connect
28806
a848cd7e
SC
28807/* System header to define __stub macros and hopefully few prototypes,
28808 which can conflict with char connect (); below.
28809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28810 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28811
a848cd7e
SC
28812#ifdef __STDC__
28813# include <limits.h>
28814#else
28815# include <assert.h>
28816#endif
ac1cb8d3
VS
28817
28818#undef connect
28819
a848cd7e
SC
28820/* Override any gcc2 internal prototype to avoid an error. */
28821#ifdef __cplusplus
28822extern "C"
28823{
28824#endif
28825/* We use char because int might match the return type of a gcc2
28826 builtin and then its argument prototype would still apply. */
28827char connect ();
28828/* The GNU C library defines this for functions which it implements
28829 to always fail with ENOSYS. Some functions are actually named
28830 something starting with __ and the normal name is an alias. */
28831#if defined (__stub_connect) || defined (__stub___connect)
28832choke me
28833#else
28834char (*f) () = connect;
28835#endif
28836#ifdef __cplusplus
28837}
28838#endif
28839
28840int
28841main ()
28842{
28843return f != connect;
28844 ;
28845 return 0;
28846}
28847_ACEOF
28848rm -f conftest.$ac_objext conftest$ac_exeext
28849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28850 (eval $ac_link) 2>conftest.er1
a848cd7e 28851 ac_status=$?
ac1cb8d3
VS
28852 grep -v '^ *+' conftest.er1 >conftest.err
28853 rm -f conftest.er1
28854 cat conftest.err >&5
a848cd7e
SC
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); } &&
5d7b7554 28857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28859 (eval $ac_try) 2>&5
28860 ac_status=$?
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); }; } &&
28863 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865 (eval $ac_try) 2>&5
28866 ac_status=$?
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; }; then
28869 ac_cv_func_connect=yes
28870else
28871 echo "$as_me: failed program was:" >&5
28872sed 's/^/| /' conftest.$ac_ext >&5
28873
28874ac_cv_func_connect=no
28875fi
ac1cb8d3
VS
28876rm -f conftest.err conftest.$ac_objext \
28877 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28878fi
28879echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28880echo "${ECHO_T}$ac_cv_func_connect" >&6
28881
28882 if test $ac_cv_func_connect = no; then
28883 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28884echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28885if test "${ac_cv_lib_socket_connect+set}" = set; then
28886 echo $ECHO_N "(cached) $ECHO_C" >&6
28887else
28888 ac_check_lib_save_LIBS=$LIBS
28889LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28890cat >conftest.$ac_ext <<_ACEOF
28891/* confdefs.h. */
28892_ACEOF
28893cat confdefs.h >>conftest.$ac_ext
28894cat >>conftest.$ac_ext <<_ACEOF
28895/* end confdefs.h. */
28896
28897/* Override any gcc2 internal prototype to avoid an error. */
28898#ifdef __cplusplus
28899extern "C"
28900#endif
28901/* We use char because int might match the return type of a gcc2
28902 builtin and then its argument prototype would still apply. */
28903char connect ();
28904int
28905main ()
28906{
28907connect ();
28908 ;
28909 return 0;
28910}
28911_ACEOF
28912rm -f conftest.$ac_objext conftest$ac_exeext
28913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28914 (eval $ac_link) 2>conftest.er1
a848cd7e 28915 ac_status=$?
ac1cb8d3
VS
28916 grep -v '^ *+' conftest.er1 >conftest.err
28917 rm -f conftest.er1
28918 cat conftest.err >&5
a848cd7e
SC
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); } &&
5d7b7554 28921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923 (eval $ac_try) 2>&5
28924 ac_status=$?
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; } &&
28927 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28929 (eval $ac_try) 2>&5
28930 ac_status=$?
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); }; }; then
28933 ac_cv_lib_socket_connect=yes
28934else
28935 echo "$as_me: failed program was:" >&5
28936sed 's/^/| /' conftest.$ac_ext >&5
28937
28938ac_cv_lib_socket_connect=no
28939fi
ac1cb8d3
VS
28940rm -f conftest.err conftest.$ac_objext \
28941 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28942LIBS=$ac_check_lib_save_LIBS
28943fi
28944echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28945echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28946if test $ac_cv_lib_socket_connect = yes; then
28947 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28948fi
28949
28950 fi
28951
28952 # Guillermo Gomez says -lposix is necessary on A/UX.
28953 echo "$as_me:$LINENO: checking for remove" >&5
28954echo $ECHO_N "checking for remove... $ECHO_C" >&6
28955if test "${ac_cv_func_remove+set}" = set; then
28956 echo $ECHO_N "(cached) $ECHO_C" >&6
28957else
28958 cat >conftest.$ac_ext <<_ACEOF
28959/* confdefs.h. */
28960_ACEOF
28961cat confdefs.h >>conftest.$ac_ext
28962cat >>conftest.$ac_ext <<_ACEOF
28963/* end confdefs.h. */
ac1cb8d3
VS
28964/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28966#define remove innocuous_remove
28967
a848cd7e
SC
28968/* System header to define __stub macros and hopefully few prototypes,
28969 which can conflict with char remove (); below.
28970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28971 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28972
a848cd7e
SC
28973#ifdef __STDC__
28974# include <limits.h>
28975#else
28976# include <assert.h>
28977#endif
ac1cb8d3
VS
28978
28979#undef remove
28980
a848cd7e
SC
28981/* Override any gcc2 internal prototype to avoid an error. */
28982#ifdef __cplusplus
28983extern "C"
28984{
28985#endif
28986/* We use char because int might match the return type of a gcc2
28987 builtin and then its argument prototype would still apply. */
28988char remove ();
28989/* The GNU C library defines this for functions which it implements
28990 to always fail with ENOSYS. Some functions are actually named
28991 something starting with __ and the normal name is an alias. */
28992#if defined (__stub_remove) || defined (__stub___remove)
28993choke me
28994#else
28995char (*f) () = remove;
28996#endif
28997#ifdef __cplusplus
28998}
28999#endif
29000
29001int
29002main ()
29003{
29004return f != remove;
29005 ;
29006 return 0;
29007}
29008_ACEOF
29009rm -f conftest.$ac_objext conftest$ac_exeext
29010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29011 (eval $ac_link) 2>conftest.er1
a848cd7e 29012 ac_status=$?
ac1cb8d3
VS
29013 grep -v '^ *+' conftest.er1 >conftest.err
29014 rm -f conftest.er1
29015 cat conftest.err >&5
a848cd7e
SC
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); } &&
5d7b7554 29018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020 (eval $ac_try) 2>&5
29021 ac_status=$?
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; } &&
29024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29027 ac_status=$?
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; }; then
29030 ac_cv_func_remove=yes
29031else
29032 echo "$as_me: failed program was:" >&5
29033sed 's/^/| /' conftest.$ac_ext >&5
29034
29035ac_cv_func_remove=no
29036fi
ac1cb8d3
VS
29037rm -f conftest.err conftest.$ac_objext \
29038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29039fi
29040echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29041echo "${ECHO_T}$ac_cv_func_remove" >&6
29042
29043 if test $ac_cv_func_remove = no; then
29044 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29045echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29046if test "${ac_cv_lib_posix_remove+set}" = set; then
29047 echo $ECHO_N "(cached) $ECHO_C" >&6
29048else
29049 ac_check_lib_save_LIBS=$LIBS
29050LIBS="-lposix $LIBS"
29051cat >conftest.$ac_ext <<_ACEOF
29052/* confdefs.h. */
29053_ACEOF
29054cat confdefs.h >>conftest.$ac_ext
29055cat >>conftest.$ac_ext <<_ACEOF
29056/* end confdefs.h. */
29057
29058/* Override any gcc2 internal prototype to avoid an error. */
29059#ifdef __cplusplus
29060extern "C"
29061#endif
29062/* We use char because int might match the return type of a gcc2
29063 builtin and then its argument prototype would still apply. */
29064char remove ();
29065int
29066main ()
29067{
29068remove ();
29069 ;
29070 return 0;
29071}
29072_ACEOF
29073rm -f conftest.$ac_objext conftest$ac_exeext
29074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29075 (eval $ac_link) 2>conftest.er1
a848cd7e 29076 ac_status=$?
ac1cb8d3
VS
29077 grep -v '^ *+' conftest.er1 >conftest.err
29078 rm -f conftest.er1
29079 cat conftest.err >&5
a848cd7e
SC
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); } &&
5d7b7554 29082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29084 (eval $ac_try) 2>&5
29085 ac_status=$?
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); }; } &&
29088 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090 (eval $ac_try) 2>&5
29091 ac_status=$?
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; }; then
29094 ac_cv_lib_posix_remove=yes
29095else
29096 echo "$as_me: failed program was:" >&5
29097sed 's/^/| /' conftest.$ac_ext >&5
29098
29099ac_cv_lib_posix_remove=no
29100fi
ac1cb8d3
VS
29101rm -f conftest.err conftest.$ac_objext \
29102 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29103LIBS=$ac_check_lib_save_LIBS
29104fi
29105echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29106echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29107if test $ac_cv_lib_posix_remove = yes; then
29108 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29109fi
29110
29111 fi
29112
29113 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29114 echo "$as_me:$LINENO: checking for shmat" >&5
29115echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29116if test "${ac_cv_func_shmat+set}" = set; then
29117 echo $ECHO_N "(cached) $ECHO_C" >&6
29118else
29119 cat >conftest.$ac_ext <<_ACEOF
29120/* confdefs.h. */
29121_ACEOF
29122cat confdefs.h >>conftest.$ac_ext
29123cat >>conftest.$ac_ext <<_ACEOF
29124/* end confdefs.h. */
ac1cb8d3
VS
29125/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29127#define shmat innocuous_shmat
29128
a848cd7e
SC
29129/* System header to define __stub macros and hopefully few prototypes,
29130 which can conflict with char shmat (); below.
29131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29132 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29133
a848cd7e
SC
29134#ifdef __STDC__
29135# include <limits.h>
29136#else
29137# include <assert.h>
29138#endif
ac1cb8d3
VS
29139
29140#undef shmat
29141
a848cd7e
SC
29142/* Override any gcc2 internal prototype to avoid an error. */
29143#ifdef __cplusplus
29144extern "C"
29145{
29146#endif
29147/* We use char because int might match the return type of a gcc2
29148 builtin and then its argument prototype would still apply. */
29149char shmat ();
29150/* The GNU C library defines this for functions which it implements
29151 to always fail with ENOSYS. Some functions are actually named
29152 something starting with __ and the normal name is an alias. */
29153#if defined (__stub_shmat) || defined (__stub___shmat)
29154choke me
29155#else
29156char (*f) () = shmat;
29157#endif
29158#ifdef __cplusplus
29159}
29160#endif
29161
29162int
29163main ()
29164{
29165return f != shmat;
29166 ;
29167 return 0;
29168}
29169_ACEOF
29170rm -f conftest.$ac_objext conftest$ac_exeext
29171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29172 (eval $ac_link) 2>conftest.er1
a848cd7e 29173 ac_status=$?
ac1cb8d3
VS
29174 grep -v '^ *+' conftest.er1 >conftest.err
29175 rm -f conftest.er1
29176 cat conftest.err >&5
a848cd7e
SC
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); } &&
5d7b7554 29179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181 (eval $ac_try) 2>&5
29182 ac_status=$?
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; } &&
29185 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29187 (eval $ac_try) 2>&5
29188 ac_status=$?
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); }; }; then
29191 ac_cv_func_shmat=yes
29192else
29193 echo "$as_me: failed program was:" >&5
29194sed 's/^/| /' conftest.$ac_ext >&5
29195
29196ac_cv_func_shmat=no
29197fi
ac1cb8d3
VS
29198rm -f conftest.err conftest.$ac_objext \
29199 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29200fi
29201echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29202echo "${ECHO_T}$ac_cv_func_shmat" >&6
29203
29204 if test $ac_cv_func_shmat = no; then
29205 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29206echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29207if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29208 echo $ECHO_N "(cached) $ECHO_C" >&6
29209else
29210 ac_check_lib_save_LIBS=$LIBS
29211LIBS="-lipc $LIBS"
29212cat >conftest.$ac_ext <<_ACEOF
29213/* confdefs.h. */
29214_ACEOF
29215cat confdefs.h >>conftest.$ac_ext
29216cat >>conftest.$ac_ext <<_ACEOF
29217/* end confdefs.h. */
29218
29219/* Override any gcc2 internal prototype to avoid an error. */
29220#ifdef __cplusplus
29221extern "C"
29222#endif
29223/* We use char because int might match the return type of a gcc2
29224 builtin and then its argument prototype would still apply. */
29225char shmat ();
29226int
29227main ()
29228{
29229shmat ();
29230 ;
29231 return 0;
29232}
29233_ACEOF
29234rm -f conftest.$ac_objext conftest$ac_exeext
29235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29236 (eval $ac_link) 2>conftest.er1
a848cd7e 29237 ac_status=$?
ac1cb8d3
VS
29238 grep -v '^ *+' conftest.er1 >conftest.err
29239 rm -f conftest.er1
29240 cat conftest.err >&5
a848cd7e
SC
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); } &&
5d7b7554 29243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29245 (eval $ac_try) 2>&5
29246 ac_status=$?
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); }; } &&
29249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29251 (eval $ac_try) 2>&5
29252 ac_status=$?
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); }; }; then
29255 ac_cv_lib_ipc_shmat=yes
29256else
29257 echo "$as_me: failed program was:" >&5
29258sed 's/^/| /' conftest.$ac_ext >&5
29259
29260ac_cv_lib_ipc_shmat=no
29261fi
ac1cb8d3
VS
29262rm -f conftest.err conftest.$ac_objext \
29263 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29264LIBS=$ac_check_lib_save_LIBS
29265fi
29266echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29267echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29268if test $ac_cv_lib_ipc_shmat = yes; then
29269 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29270fi
29271
29272 fi
29273 fi
29274
29275 # Check for libraries that X11R6 Xt/Xaw programs need.
29276 ac_save_LDFLAGS=$LDFLAGS
29277 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29278 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29279 # check for ICE first), but we must link in the order -lSM -lICE or
29280 # we get undefined symbols. So assume we have SM if we have ICE.
29281 # These have to be linked with before -lX11, unlike the other
29282 # libraries we check for below, so use a different variable.
29283 # John Interrante, Karl Berry
29284 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29285echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29286if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29287 echo $ECHO_N "(cached) $ECHO_C" >&6
29288else
29289 ac_check_lib_save_LIBS=$LIBS
29290LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29291cat >conftest.$ac_ext <<_ACEOF
29292/* confdefs.h. */
29293_ACEOF
29294cat confdefs.h >>conftest.$ac_ext
29295cat >>conftest.$ac_ext <<_ACEOF
29296/* end confdefs.h. */
29297
29298/* Override any gcc2 internal prototype to avoid an error. */
29299#ifdef __cplusplus
29300extern "C"
29301#endif
29302/* We use char because int might match the return type of a gcc2
29303 builtin and then its argument prototype would still apply. */
29304char IceConnectionNumber ();
29305int
29306main ()
29307{
29308IceConnectionNumber ();
29309 ;
29310 return 0;
29311}
29312_ACEOF
29313rm -f conftest.$ac_objext conftest$ac_exeext
29314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29315 (eval $ac_link) 2>conftest.er1
a848cd7e 29316 ac_status=$?
ac1cb8d3
VS
29317 grep -v '^ *+' conftest.er1 >conftest.err
29318 rm -f conftest.er1
29319 cat conftest.err >&5
a848cd7e
SC
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); } &&
5d7b7554 29322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29324 (eval $ac_try) 2>&5
29325 ac_status=$?
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); }; } &&
29328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330 (eval $ac_try) 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; }; then
29334 ac_cv_lib_ICE_IceConnectionNumber=yes
29335else
29336 echo "$as_me: failed program was:" >&5
29337sed 's/^/| /' conftest.$ac_ext >&5
29338
29339ac_cv_lib_ICE_IceConnectionNumber=no
29340fi
ac1cb8d3
VS
29341rm -f conftest.err conftest.$ac_objext \
29342 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29343LIBS=$ac_check_lib_save_LIBS
29344fi
29345echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29346echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29347if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29348 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29349fi
29350
29351 LDFLAGS=$ac_save_LDFLAGS
29352
29353fi
29354
29355
29356 if test "$no_x" = "yes"; then
89d90d6d
VZ
29357 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29358echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29359 { (exit 1); exit 1; }; }
a848cd7e
SC
29360 fi
29361
74b84332
VS
29362 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29363 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29364 AFMINSTALL=afminstall
29365 COMPILED_X_PROGRAM=0
29366
74b84332
VS
29367 fi
29368
29369 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29370 if test "$wxUSE_NANOX" = "yes"; then
29371 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29372echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29373 if test "x$MICROWIN" = x ; then
29374 echo "$as_me:$LINENO: result: not found" >&5
29375echo "${ECHO_T}not found" >&6
29376 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29377echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29378 { (exit 1); exit 1; }; }
29379 else
29380 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29381echo "${ECHO_T}$MICROWIN" >&6
29382 cat >>confdefs.h <<\_ACEOF
29383#define wxUSE_NANOX 1
29384_ACEOF
29385
29386 fi
29387 fi
29388
29389 if test "$wxUSE_UNICODE" = "yes"; then
29390
29391 succeeded=no
29392
29393 if test -z "$PKG_CONFIG"; then
29394 # Extract the first word of "pkg-config", so it can be a program name with args.
29395set dummy pkg-config; ac_word=$2
29396echo "$as_me:$LINENO: checking for $ac_word" >&5
29397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29398if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29399 echo $ECHO_N "(cached) $ECHO_C" >&6
29400else
29401 case $PKG_CONFIG in
29402 [\\/]* | ?:[\\/]*)
29403 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29404 ;;
29405 *)
29406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29407for as_dir in $PATH
29408do
29409 IFS=$as_save_IFS
29410 test -z "$as_dir" && as_dir=.
29411 for ac_exec_ext in '' $ac_executable_extensions; do
29412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29413 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29415 break 2
29416 fi
29417done
29418done
29419
29420 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29421 ;;
29422esac
29423fi
29424PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29425
29426if test -n "$PKG_CONFIG"; then
29427 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29428echo "${ECHO_T}$PKG_CONFIG" >&6
29429else
29430 echo "$as_me:$LINENO: result: no" >&5
29431echo "${ECHO_T}no" >&6
29432fi
29433
29434 fi
29435
29436 if test "$PKG_CONFIG" = "no" ; then
29437 echo "*** The pkg-config script could not be found. Make sure it is"
29438 echo "*** in your path, or set the PKG_CONFIG environment variable"
29439 echo "*** to the full path to pkg-config."
29440 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29441 else
29442 PKG_CONFIG_MIN_VERSION=0.9.0
29443 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29444 echo "$as_me:$LINENO: checking for pangox" >&5
29445echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29446
29447 if $PKG_CONFIG --exists "pangox" ; then
29448 echo "$as_me:$LINENO: result: yes" >&5
29449echo "${ECHO_T}yes" >&6
29450 succeeded=yes
29451
29452 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29453echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29454 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29455 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29456echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29457
29458 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29459echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29460 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29461 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29462echo "${ECHO_T}$PANGOX_LIBS" >&6
29463 else
29464 PANGOX_CFLAGS=""
29465 PANGOX_LIBS=""
29466 ## If we have a custom action on failure, don't print errors, but
29467 ## do set a variable so people can do so.
29468 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29469
29470 fi
29471
29472
29473
29474 else
29475 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29476 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29477 fi
29478 fi
29479
29480 if test $succeeded = yes; then
29481
c92ad099 29482 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29483 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29484
29485 else
29486
29487 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29488echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29489 { (exit 1); exit 1; }; }
29490
29491
29492 fi
29493
29494
29495 succeeded=no
29496
29497 if test -z "$PKG_CONFIG"; then
29498 # Extract the first word of "pkg-config", so it can be a program name with args.
29499set dummy pkg-config; ac_word=$2
29500echo "$as_me:$LINENO: checking for $ac_word" >&5
29501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29502if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29503 echo $ECHO_N "(cached) $ECHO_C" >&6
29504else
29505 case $PKG_CONFIG in
29506 [\\/]* | ?:[\\/]*)
29507 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29508 ;;
29509 *)
29510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29511for as_dir in $PATH
29512do
29513 IFS=$as_save_IFS
29514 test -z "$as_dir" && as_dir=.
29515 for ac_exec_ext in '' $ac_executable_extensions; do
29516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29517 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29519 break 2
29520 fi
29521done
29522done
29523
29524 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29525 ;;
29526esac
29527fi
29528PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29529
29530if test -n "$PKG_CONFIG"; then
29531 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29532echo "${ECHO_T}$PKG_CONFIG" >&6
29533else
29534 echo "$as_me:$LINENO: result: no" >&5
29535echo "${ECHO_T}no" >&6
29536fi
29537
29538 fi
29539
29540 if test "$PKG_CONFIG" = "no" ; then
29541 echo "*** The pkg-config script could not be found. Make sure it is"
29542 echo "*** in your path, or set the PKG_CONFIG environment variable"
29543 echo "*** to the full path to pkg-config."
29544 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29545 else
29546 PKG_CONFIG_MIN_VERSION=0.9.0
29547 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29548 echo "$as_me:$LINENO: checking for pangoft2" >&5
29549echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29550
29551 if $PKG_CONFIG --exists "pangoft2" ; then
29552 echo "$as_me:$LINENO: result: yes" >&5
29553echo "${ECHO_T}yes" >&6
29554 succeeded=yes
29555
29556 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29557echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29558 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29559 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29560echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29561
29562 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29563echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29564 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29565 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29566echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29567 else
29568 PANGOFT2_CFLAGS=""
29569 PANGOFT2_LIBS=""
29570 ## If we have a custom action on failure, don't print errors, but
29571 ## do set a variable so people can do so.
29572 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29573
29574 fi
29575
29576
29577
29578 else
29579 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29580 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29581 fi
29582 fi
29583
29584 if test $succeeded = yes; then
29585
c92ad099 29586 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29587 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29588
29589 else
29590
29591 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29592echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29593 wxUSE_PRINTING_ARCHITECTURE="no"
29594
29595
29596 fi
29597
29598
29599 succeeded=no
29600
29601 if test -z "$PKG_CONFIG"; then
29602 # Extract the first word of "pkg-config", so it can be a program name with args.
29603set dummy pkg-config; ac_word=$2
29604echo "$as_me:$LINENO: checking for $ac_word" >&5
29605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29606if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29607 echo $ECHO_N "(cached) $ECHO_C" >&6
29608else
29609 case $PKG_CONFIG in
29610 [\\/]* | ?:[\\/]*)
29611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29612 ;;
29613 *)
29614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29615for as_dir in $PATH
29616do
29617 IFS=$as_save_IFS
29618 test -z "$as_dir" && as_dir=.
29619 for ac_exec_ext in '' $ac_executable_extensions; do
29620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29621 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29623 break 2
29624 fi
29625done
29626done
29627
29628 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29629 ;;
29630esac
29631fi
29632PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29633
29634if test -n "$PKG_CONFIG"; then
29635 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29636echo "${ECHO_T}$PKG_CONFIG" >&6
29637else
29638 echo "$as_me:$LINENO: result: no" >&5
29639echo "${ECHO_T}no" >&6
29640fi
29641
29642 fi
29643
29644 if test "$PKG_CONFIG" = "no" ; then
29645 echo "*** The pkg-config script could not be found. Make sure it is"
29646 echo "*** in your path, or set the PKG_CONFIG environment variable"
29647 echo "*** to the full path to pkg-config."
29648 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29649 else
29650 PKG_CONFIG_MIN_VERSION=0.9.0
29651 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29652 echo "$as_me:$LINENO: checking for pangoxft" >&5
29653echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29654
29655 if $PKG_CONFIG --exists "pangoxft" ; then
29656 echo "$as_me:$LINENO: result: yes" >&5
29657echo "${ECHO_T}yes" >&6
29658 succeeded=yes
29659
29660 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29661echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29662 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29663 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29664echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29665
29666 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29667echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29668 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29669 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29670echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29671 else
29672 PANGOXFT_CFLAGS=""
29673 PANGOXFT_LIBS=""
29674 ## If we have a custom action on failure, don't print errors, but
29675 ## do set a variable so people can do so.
29676 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29677
29678 fi
29679
29680
29681
29682 else
29683 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29684 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29685 fi
29686 fi
29687
29688 if test $succeeded = yes; then
29689
4ae1af05
MB
29690 cat >>confdefs.h <<\_ACEOF
29691#define HAVE_PANGO_XFT 1
29692_ACEOF
29693
c92ad099 29694 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29695 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29696
29697 else
29698
29699 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29700echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29701
29702
29703 fi
29704
e56f4f9e 29705 save_CXXFLAGS="$CXXFLAGS"
304205f1 29706 save_LIBS="$LIBS"
e56f4f9e 29707 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
29708 LIBS="$LIBS $PANGOX_LIBS"
29709
29710for ac_func in pango_font_family_is_monospace
29711do
29712as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29713echo "$as_me:$LINENO: checking for $ac_func" >&5
29714echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29715if eval "test \"\${$as_ac_var+set}\" = set"; then
29716 echo $ECHO_N "(cached) $ECHO_C" >&6
29717else
29718 cat >conftest.$ac_ext <<_ACEOF
29719/* confdefs.h. */
29720_ACEOF
29721cat confdefs.h >>conftest.$ac_ext
29722cat >>conftest.$ac_ext <<_ACEOF
29723/* end confdefs.h. */
29724/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29726#define $ac_func innocuous_$ac_func
29727
29728/* System header to define __stub macros and hopefully few prototypes,
29729 which can conflict with char $ac_func (); below.
29730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29731 <limits.h> exists even on freestanding compilers. */
29732
29733#ifdef __STDC__
29734# include <limits.h>
29735#else
29736# include <assert.h>
29737#endif
29738
29739#undef $ac_func
29740
29741/* Override any gcc2 internal prototype to avoid an error. */
29742#ifdef __cplusplus
29743extern "C"
29744{
29745#endif
29746/* We use char because int might match the return type of a gcc2
29747 builtin and then its argument prototype would still apply. */
29748char $ac_func ();
29749/* The GNU C library defines this for functions which it implements
29750 to always fail with ENOSYS. Some functions are actually named
29751 something starting with __ and the normal name is an alias. */
29752#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29753choke me
29754#else
29755char (*f) () = $ac_func;
29756#endif
29757#ifdef __cplusplus
29758}
29759#endif
29760
29761int
29762main ()
29763{
29764return f != $ac_func;
29765 ;
29766 return 0;
29767}
29768_ACEOF
29769rm -f conftest.$ac_objext conftest$ac_exeext
29770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29771 (eval $ac_link) 2>conftest.er1
29772 ac_status=$?
29773 grep -v '^ *+' conftest.er1 >conftest.err
29774 rm -f conftest.er1
29775 cat conftest.err >&5
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } &&
5d7b7554 29778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
29779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780 (eval $ac_try) 2>&5
29781 ac_status=$?
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; } &&
29784 { ac_try='test -s conftest$ac_exeext'
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
29790 eval "$as_ac_var=yes"
29791else
29792 echo "$as_me: failed program was:" >&5
29793sed 's/^/| /' conftest.$ac_ext >&5
29794
29795eval "$as_ac_var=no"
29796fi
29797rm -f conftest.err conftest.$ac_objext \
29798 conftest$ac_exeext conftest.$ac_ext
29799fi
29800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29801echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29802if test `eval echo '${'$as_ac_var'}'` = yes; then
29803 cat >>confdefs.h <<_ACEOF
29804#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29805_ACEOF
29806
29807fi
29808done
29809
e56f4f9e 29810 CXXFLAGS="$save_CXXFLAGS"
304205f1 29811 LIBS="$save_LIBS"
a848cd7e
SC
29812 fi
29813
29814 wxUSE_UNIVERSAL="yes"
29815
29816 if test "$wxUSE_NANOX" = "yes"; then
29817 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29818 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"
29819 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29820 else
29821 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29822 fi
29823
a848cd7e
SC
29824 TOOLKIT=X11
29825 GUIDIST=X11_DIST
29826 fi
29827
29828 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29829 if test "$wxUSE_UNICODE" = "yes"; then
29830 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29831echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29832 { (exit 1); exit 1; }; }
29833 fi
29834
74b84332
VS
29835 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29836echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29837
74b84332
VS
29838ac_find_includes=
29839for ac_dir in $SEARCH_INCLUDE /usr/include;
29840 do
29841 if test -f "$ac_dir/Xm/Xm.h"; then
29842 ac_find_includes=$ac_dir
29843 break
29844 fi
29845 done
a848cd7e 29846
74b84332
VS
29847 if test "$ac_find_includes" != "" ; then
29848 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29849echo "${ECHO_T}found in $ac_find_includes" >&6
29850
29851 if test "x$ac_find_includes" = "x/usr/include"; then
29852 ac_path_to_include=""
29853 else
29854 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29855 result=$?
29856 if test $result = 0; then
29857 ac_path_to_include=""
29858 else
29859 ac_path_to_include=" -I$ac_find_includes"
29860 fi
a848cd7e
SC
29861 fi
29862
74b84332
VS
29863 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29864 else
e56f4f9e
VZ
29865 save_CXXFLAGS=$CXXFLAGS
29866 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 29867
74b84332 29868 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29869/* confdefs.h. */
29870_ACEOF
29871cat confdefs.h >>conftest.$ac_ext
29872cat >>conftest.$ac_ext <<_ACEOF
29873/* end confdefs.h. */
29874
74b84332
VS
29875 #include <Xm/Xm.h>
29876
a848cd7e
SC
29877int
29878main ()
29879{
29880
74b84332
VS
29881 int version;
29882 version = xmUseVersion;
29883
a848cd7e
SC
29884 ;
29885 return 0;
29886}
29887_ACEOF
74b84332
VS
29888rm -f conftest.$ac_objext
29889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29890 (eval $ac_compile) 2>conftest.er1
a848cd7e 29891 ac_status=$?
ac1cb8d3
VS
29892 grep -v '^ *+' conftest.er1 >conftest.err
29893 rm -f conftest.er1
29894 cat conftest.err >&5
a848cd7e
SC
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); } &&
5d7b7554 29897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29899 (eval $ac_try) 2>&5
29900 ac_status=$?
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); }; } &&
74b84332 29903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29905 (eval $ac_try) 2>&5
29906 ac_status=$?
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; }; then
74b84332
VS
29909
29910 echo "$as_me:$LINENO: result: found in default search path" >&5
29911echo "${ECHO_T}found in default search path" >&6
29912 COMPILED_X_PROGRAM=1
29913
a848cd7e
SC
29914else
29915 echo "$as_me: failed program was:" >&5
29916sed 's/^/| /' conftest.$ac_ext >&5
29917
a848cd7e 29918
74b84332
VS
29919 echo "$as_me:$LINENO: result: no" >&5
29920echo "${ECHO_T}no" >&6
e051b34e
MW
29921 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29922echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29923 { (exit 1); exit 1; }; }
a848cd7e 29924
a848cd7e 29925
a848cd7e 29926fi
74b84332 29927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 29928
e56f4f9e 29929 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
29930 fi
29931
0ad5d837
VZ
29932
29933 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29934echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29935
0ad5d837
VZ
29936 ac_find_libraries=
29937 for ac_dir in $SEARCH_LIB;
74b84332 29938 do
3eca31dc 29939 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29940 if test -f "$ac_dir/libXm.$ac_extension"; then
29941 ac_find_libraries=$ac_dir
29942 break 2
a848cd7e 29943 fi
74b84332
VS
29944 done
29945 done
a848cd7e 29946
0ad5d837
VZ
29947
29948 if test "x$ac_find_libraries" != "x" ; then
29949 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29950echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29951
74b84332 29952
0ad5d837 29953 if test "$ac_find_libraries" = "default location"; then
74b84332 29954 ac_path_to_link=""
a848cd7e 29955 else
0ad5d837
VZ
29956 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29957 result=$?
29958 if test $result = 0; then
29959 ac_path_to_link=""
29960 else
29961 ac_path_to_link=" -L$ac_find_libraries"
29962 fi
74b84332
VS
29963 fi
29964
0ad5d837
VZ
29965 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29966 else
e56f4f9e
VZ
29967 save_CXXFLAGS=$CXXFLAGS
29968 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
29969 save_LIBS="$LIBS"
29970 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29971
0ad5d837 29972 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29973/* confdefs.h. */
29974_ACEOF
29975cat confdefs.h >>conftest.$ac_ext
29976cat >>conftest.$ac_ext <<_ACEOF
29977/* end confdefs.h. */
29978
0ad5d837 29979 #include <Xm/Xm.h>
74b84332 29980
a848cd7e
SC
29981int
29982main ()
29983{
74b84332 29984
0ad5d837
VZ
29985 int version;
29986 version = xmUseVersion;
74b84332 29987
a848cd7e
SC
29988 ;
29989 return 0;
29990}
29991_ACEOF
0ad5d837
VZ
29992rm -f conftest.$ac_objext conftest$ac_exeext
29993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29994 (eval $ac_link) 2>conftest.er1
a848cd7e 29995 ac_status=$?
ac1cb8d3
VS
29996 grep -v '^ *+' conftest.er1 >conftest.err
29997 rm -f conftest.er1
29998 cat conftest.err >&5
a848cd7e
SC
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); } &&
5d7b7554 30001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30003 (eval $ac_try) 2>&5
30004 ac_status=$?
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006 (exit $ac_status); }; } &&
0ad5d837 30007 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30009 (eval $ac_try) 2>&5
30010 ac_status=$?
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; }; then
74b84332 30013
0ad5d837 30014 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30015echo "${ECHO_T}found in default search path" >&6
0ad5d837 30016 COMPILED_X_PROGRAM=1
74b84332 30017
a848cd7e
SC
30018else
30019 echo "$as_me: failed program was:" >&5
30020sed 's/^/| /' conftest.$ac_ext >&5
30021
74b84332 30022
6f9cf1e6 30023 echo "$as_me:$LINENO: result: no" >&5
74b84332 30024echo "${ECHO_T}no" >&6
6f9cf1e6 30025 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30026echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30027 { (exit 1); exit 1; }; }
30028
30029
30030fi
0ad5d837
VZ
30031rm -f conftest.err conftest.$ac_objext \
30032 conftest$ac_exeext conftest.$ac_ext
74b84332 30033
e56f4f9e 30034 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30035 LIBS="$save_LIBS"
74b84332
VS
30036 fi
30037
30038 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30039echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30040 libp_link=""
30041 libsm_ice_link=""
30042 libs_found=0
30043 for libp in "" " -lXp"; do
30044 if test "$libs_found" = "0"; then
30045 for libsm_ice in "" " -lSM -lICE"; do
30046 if test "$libs_found" = "0"; then
30047 save_LIBS="$LIBS"
30048 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30049 save_CXXFLAGS=$CXXFLAGS
30050 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30051
30052 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30053/* confdefs.h. */
30054_ACEOF
30055cat confdefs.h >>conftest.$ac_ext
30056cat >>conftest.$ac_ext <<_ACEOF
30057/* end confdefs.h. */
30058
74b84332
VS
30059 #include <Xm/Xm.h>
30060 #include <Xm/List.h>
30061
a848cd7e
SC
30062int
30063main ()
30064{
74b84332
VS
30065
30066 XmString string = NULL;
30067 Widget w = NULL;
30068 int position = 0;
30069 XmListAddItem(w, string, position);
30070
a848cd7e
SC
30071 ;
30072 return 0;
30073}
30074_ACEOF
30075rm -f conftest.$ac_objext conftest$ac_exeext
30076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30077 (eval $ac_link) 2>conftest.er1
a848cd7e 30078 ac_status=$?
ac1cb8d3
VS
30079 grep -v '^ *+' conftest.er1 >conftest.err
30080 rm -f conftest.er1
30081 cat conftest.err >&5
a848cd7e
SC
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); } &&
5d7b7554 30084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30086 (eval $ac_try) 2>&5
30087 ac_status=$?
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); }; } &&
30090 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092 (eval $ac_try) 2>&5
30093 ac_status=$?
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); }; }; then
30096
30097 libp_link="$libp"
30098 libsm_ice_link="$libsm_ice"
30099 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30100echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30101 libs_found=1
30102
30103else
30104 echo "$as_me: failed program was:" >&5
30105sed 's/^/| /' conftest.$ac_ext >&5
30106
30107
30108
30109fi
ac1cb8d3
VS
30110rm -f conftest.err conftest.$ac_objext \
30111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30112
30113 LIBS="$save_LIBS"
e56f4f9e 30114 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30115 fi
30116 done
30117 fi
30118 done
30119
30120 if test "$libs_found" = "0"; then
30121 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30122echo "${ECHO_T}can't find the right libraries" >&6
30123 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30124echo "$as_me: error: can't link a simple motif program" >&2;}
30125 { (exit 1); exit 1; }; }
30126 fi
30127
62fa8b3a
MW
30128 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30129echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30130if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30131 echo $ECHO_N "(cached) $ECHO_C" >&6
30132else
30133 ac_check_lib_save_LIBS=$LIBS
30134LIBS="-lSgm $LIBS"
30135cat >conftest.$ac_ext <<_ACEOF
30136/* confdefs.h. */
30137_ACEOF
30138cat confdefs.h >>conftest.$ac_ext
30139cat >>conftest.$ac_ext <<_ACEOF
30140/* end confdefs.h. */
30141
30142/* Override any gcc2 internal prototype to avoid an error. */
30143#ifdef __cplusplus
30144extern "C"
30145#endif
30146/* We use char because int might match the return type of a gcc2
30147 builtin and then its argument prototype would still apply. */
30148char SgCreateList ();
30149int
30150main ()
30151{
30152SgCreateList ();
30153 ;
30154 return 0;
30155}
30156_ACEOF
30157rm -f conftest.$ac_objext conftest$ac_exeext
30158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30159 (eval $ac_link) 2>conftest.er1
30160 ac_status=$?
30161 grep -v '^ *+' conftest.er1 >conftest.err
30162 rm -f conftest.er1
30163 cat conftest.err >&5
30164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165 (exit $ac_status); } &&
5d7b7554 30166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30168 (eval $ac_try) 2>&5
30169 ac_status=$?
30170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171 (exit $ac_status); }; } &&
30172 { ac_try='test -s conftest$ac_exeext'
30173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174 (eval $ac_try) 2>&5
30175 ac_status=$?
30176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); }; }; then
30178 ac_cv_lib_Sgm_SgCreateList=yes
30179else
30180 echo "$as_me: failed program was:" >&5
30181sed 's/^/| /' conftest.$ac_ext >&5
30182
30183ac_cv_lib_Sgm_SgCreateList=no
30184fi
30185rm -f conftest.err conftest.$ac_objext \
30186 conftest$ac_exeext conftest.$ac_ext
30187LIBS=$ac_check_lib_save_LIBS
30188fi
30189echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30190echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30191if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30192 libsgm_link=" -lSgm"
30193fi
30194
30195
e56f4f9e
VZ
30196 save_CXXFLAGS=$CXXFLAGS
30197 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30198
a848cd7e
SC
30199 echo "$as_me:$LINENO: checking for Motif 2" >&5
30200echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30201if test "${wx_cv_lib_motif2+set}" = set; then
30202 echo $ECHO_N "(cached) $ECHO_C" >&6
30203else
30204 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30205/* confdefs.h. */
30206_ACEOF
30207cat confdefs.h >>conftest.$ac_ext
30208cat >>conftest.$ac_ext <<_ACEOF
30209/* end confdefs.h. */
30210
0ad5d837 30211 #include <Xm/Xm.h>
a848cd7e
SC
30212
30213int
30214main ()
30215{
30216
0ad5d837
VZ
30217 #if XmVersion < 2000
30218 Not Motif 2
30219 #endif
a848cd7e
SC
30220
30221 ;
30222 return 0;
30223}
30224_ACEOF
30225rm -f conftest.$ac_objext
30226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30227 (eval $ac_compile) 2>conftest.er1
a848cd7e 30228 ac_status=$?
ac1cb8d3
VS
30229 grep -v '^ *+' conftest.er1 >conftest.err
30230 rm -f conftest.er1
30231 cat conftest.err >&5
a848cd7e
SC
30232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233 (exit $ac_status); } &&
5d7b7554 30234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30236 (eval $ac_try) 2>&5
30237 ac_status=$?
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); }; } &&
30240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30242 (eval $ac_try) 2>&5
30243 ac_status=$?
30244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245 (exit $ac_status); }; }; then
0ad5d837 30246 wx_cv_lib_motif2="yes"
a848cd7e
SC
30247else
30248 echo "$as_me: failed program was:" >&5
30249sed 's/^/| /' conftest.$ac_ext >&5
30250
0ad5d837
VZ
30251wx_cv_lib_motif2="no"
30252fi
30253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30254fi
30255echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30256echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30257 if test "$wx_cv_lib_motif2" = "yes"; then
30258 cat >>confdefs.h <<\_ACEOF
30259#define __WXMOTIF20__ 1
30260_ACEOF
a848cd7e 30261
0ad5d837
VZ
30262 else
30263 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30264#define __WXMOTIF20__ 0
30265_ACEOF
30266
0ad5d837 30267 fi
2113bc77
MW
30268
30269 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30270echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30271if test "${wx_cv_lib_lesstif+set}" = set; then
30272 echo $ECHO_N "(cached) $ECHO_C" >&6
30273else
30274 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30275/* confdefs.h. */
30276_ACEOF
30277cat confdefs.h >>conftest.$ac_ext
30278cat >>conftest.$ac_ext <<_ACEOF
30279/* end confdefs.h. */
30280
0ad5d837 30281 #include <Xm/Xm.h>
2113bc77
MW
30282
30283int
30284main ()
30285{
30286
0ad5d837
VZ
30287 #if !defined(LesstifVersion) || LesstifVersion <= 0
30288 Not Lesstif
30289 #endif
2113bc77
MW
30290
30291 ;
30292 return 0;
30293}
30294_ACEOF
30295rm -f conftest.$ac_objext
30296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30297 (eval $ac_compile) 2>conftest.er1
30298 ac_status=$?
30299 grep -v '^ *+' conftest.er1 >conftest.err
30300 rm -f conftest.er1
30301 cat conftest.err >&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } &&
5d7b7554 30304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
30305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30306 (eval $ac_try) 2>&5
30307 ac_status=$?
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); }; } &&
30310 { ac_try='test -s conftest.$ac_objext'
30311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312 (eval $ac_try) 2>&5
30313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; }; then
0ad5d837 30316 wx_cv_lib_lesstif="yes"
2113bc77
MW
30317else
30318 echo "$as_me: failed program was:" >&5
30319sed 's/^/| /' conftest.$ac_ext >&5
30320
0ad5d837
VZ
30321wx_cv_lib_lesstif="no"
30322fi
30323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30324
0ad5d837
VZ
30325fi
30326echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30327echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30328 if test "$wx_cv_lib_lesstif" = "yes"; then
30329 cat >>confdefs.h <<\_ACEOF
30330#define __WXLESSTIF__ 1
30331_ACEOF
30332
30333 else
30334 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30335#define __WXLESSTIF__ 0
30336_ACEOF
30337
0ad5d837 30338 fi
2113bc77 30339
e56f4f9e 30340 CXXFLAGS=$save_CXXFLAGS
a848cd7e 30341
62fa8b3a 30342 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30343 TOOLKIT=MOTIF
30344 GUIDIST=MOTIF_DIST
30345 fi
30346
74b84332 30347 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30348 if test "$wxUSE_LIBXPM" = "sys"; then
30349 echo "$as_me:$LINENO: checking for Xpm library" >&5
30350echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30351
0ad5d837
VZ
30352 ac_find_libraries=
30353 for ac_dir in $SEARCH_LIB;
a848cd7e 30354 do
3eca31dc 30355 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30356 if test -f "$ac_dir/libXpm.$ac_extension"; then
30357 ac_find_libraries=$ac_dir
30358 break 2
30359 fi
30360 done
30361 done
30362
30363 if test "$ac_find_libraries" != "" ; then
30364
0ad5d837 30365 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30366 ac_path_to_link=""
30367 else
0ad5d837
VZ
30368 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30369 result=$?
30370 if test $result = 0; then
30371 ac_path_to_link=""
30372 else
30373 ac_path_to_link=" -L$ac_find_libraries"
30374 fi
a848cd7e
SC
30375 fi
30376
30377 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30378 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30379echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30380
30381 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30382echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30383if test "${wx_cv_x11_xpm_h+set}" = set; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30385else
30386
e56f4f9e
VZ
30387 save_CXXFLAGS=$CXXFLAGS
30388 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30389
30390 cat >conftest.$ac_ext <<_ACEOF
30391/* confdefs.h. */
30392_ACEOF
30393cat confdefs.h >>conftest.$ac_ext
30394cat >>conftest.$ac_ext <<_ACEOF
30395/* end confdefs.h. */
30396
30397 #include <X11/xpm.h>
30398
30399int
30400main ()
30401{
30402
30403 int version;
30404 version = XpmLibraryVersion();
30405
30406 ;
30407 return 0;
30408}
30409_ACEOF
30410rm -f conftest.$ac_objext
30411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30412 (eval $ac_compile) 2>conftest.er1
a848cd7e 30413 ac_status=$?
ac1cb8d3
VS
30414 grep -v '^ *+' conftest.er1 >conftest.err
30415 rm -f conftest.er1
30416 cat conftest.err >&5
a848cd7e
SC
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); } &&
5d7b7554 30419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30421 (eval $ac_try) 2>&5
30422 ac_status=$?
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424 (exit $ac_status); }; } &&
30425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427 (eval $ac_try) 2>&5
30428 ac_status=$?
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); }; }; then
30431 wx_cv_x11_xpm_h=yes
30432else
30433 echo "$as_me: failed program was:" >&5
30434sed 's/^/| /' conftest.$ac_ext >&5
30435
30436wx_cv_x11_xpm_h=no
30437
30438fi
ac1cb8d3 30439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 30440
e56f4f9e 30441 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30442
30443
30444fi
30445echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30446echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30447
30448 if test $wx_cv_x11_xpm_h = "yes"; then
30449 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30450 cat >>confdefs.h <<\_ACEOF
30451#define wxHAVE_LIB_XPM 1
30452_ACEOF
30453
30454 else
30455 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30456echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30457 fi
30458 fi
30459
30460 fi
30461
30462 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30463echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30464if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30465 echo $ECHO_N "(cached) $ECHO_C" >&6
30466else
30467 ac_check_lib_save_LIBS=$LIBS
30468LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30469cat >conftest.$ac_ext <<_ACEOF
30470/* confdefs.h. */
30471_ACEOF
30472cat confdefs.h >>conftest.$ac_ext
30473cat >>conftest.$ac_ext <<_ACEOF
30474/* end confdefs.h. */
30475
30476/* Override any gcc2 internal prototype to avoid an error. */
30477#ifdef __cplusplus
30478extern "C"
30479#endif
30480/* We use char because int might match the return type of a gcc2
30481 builtin and then its argument prototype would still apply. */
30482char XShapeQueryExtension ();
30483int
30484main ()
30485{
30486XShapeQueryExtension ();
30487 ;
30488 return 0;
30489}
30490_ACEOF
30491rm -f conftest.$ac_objext conftest$ac_exeext
30492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30493 (eval $ac_link) 2>conftest.er1
a848cd7e 30494 ac_status=$?
ac1cb8d3
VS
30495 grep -v '^ *+' conftest.er1 >conftest.err
30496 rm -f conftest.er1
30497 cat conftest.err >&5
a848cd7e
SC
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); } &&
5d7b7554 30500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30502 (eval $ac_try) 2>&5
30503 ac_status=$?
30504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505 (exit $ac_status); }; } &&
30506 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30508 (eval $ac_try) 2>&5
30509 ac_status=$?
30510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511 (exit $ac_status); }; }; then
30512 ac_cv_lib_Xext_XShapeQueryExtension=yes
30513else
30514 echo "$as_me: failed program was:" >&5
30515sed 's/^/| /' conftest.$ac_ext >&5
30516
30517ac_cv_lib_Xext_XShapeQueryExtension=no
30518fi
ac1cb8d3
VS
30519rm -f conftest.err conftest.$ac_objext \
30520 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30521LIBS=$ac_check_lib_save_LIBS
30522fi
30523echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30524echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30525if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30526
30527 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30528 wxHAVE_XEXT_LIB=1
30529
30530fi
30531
30532
30533 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
30534 save_CXXFLAGS="$CXXFLAGS"
30535 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30536
30537 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30538echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30539 cat >conftest.$ac_ext <<_ACEOF
30540/* confdefs.h. */
30541_ACEOF
30542cat confdefs.h >>conftest.$ac_ext
30543cat >>conftest.$ac_ext <<_ACEOF
30544/* end confdefs.h. */
30545
30546 #include <X11/Xlib.h>
30547 #include <X11/extensions/shape.h>
30548
30549int
30550main ()
30551{
30552
30553 int dummy1, dummy2;
30554 XShapeQueryExtension((Display*)NULL,
30555 (int*)NULL, (int*)NULL);
30556
30557 ;
30558 return 0;
30559}
30560_ACEOF
30561rm -f conftest.$ac_objext
30562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30563 (eval $ac_compile) 2>conftest.er1
a848cd7e 30564 ac_status=$?
ac1cb8d3
VS
30565 grep -v '^ *+' conftest.er1 >conftest.err
30566 rm -f conftest.er1
30567 cat conftest.err >&5
a848cd7e
SC
30568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569 (exit $ac_status); } &&
5d7b7554 30570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572 (eval $ac_try) 2>&5
30573 ac_status=$?
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); }; } &&
30576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578 (eval $ac_try) 2>&5
30579 ac_status=$?
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); }; }; then
30582
30583 cat >>confdefs.h <<\_ACEOF
30584#define HAVE_XSHAPE 1
30585_ACEOF
30586
30587 echo "$as_me:$LINENO: result: found" >&5
30588echo "${ECHO_T}found" >&6
30589
30590else
30591 echo "$as_me: failed program was:" >&5
30592sed 's/^/| /' conftest.$ac_ext >&5
30593
30594
30595 echo "$as_me:$LINENO: result: not found" >&5
30596echo "${ECHO_T}not found" >&6
30597
30598fi
ac1cb8d3 30599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 30600 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
30601
30602 fi
30603 fi
30604
30605 if test "$wxUSE_MAC" = 1; then
30606 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30607echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30608 if test "$GCC" = yes; then
30609 echo "$as_me:$LINENO: result: gcc" >&5
30610echo "${ECHO_T}gcc" >&6
30611 CPPFLAGS_PASCAL="-fpascal-strings"
30612 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30613 echo "$as_me:$LINENO: result: xlc" >&5
30614echo "${ECHO_T}xlc" >&6
30615 CPPFLAGS_PASCAL="-qmacpstr"
30616 else
30617 echo "$as_me:$LINENO: result: none" >&5
30618echo "${ECHO_T}none" >&6
30619 fi
30620
1e9e8aba 30621 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30622 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30623 else
c92ad099 30624 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30625 fi
a848cd7e 30626
a848cd7e
SC
30627 TOOLKIT=MAC
30628 GUIDIST=MACX_DIST
dd21ced8 30629 WXBASEPORT="_carbon"
a848cd7e
SC
30630 fi
30631
30632 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30633 TOOLKIT=COCOA
30634 GUIDIST=COCOA_DIST
30635 fi
30636
30637 if test "$wxUSE_PM" = 1; then
30638 TOOLKIT=PM
de59c161
RD
30639 GUIDIST=PM_DIST
30640 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30641echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30642if test "${wx_cv_spbcdata+set}" = set; then
30643 echo $ECHO_N "(cached) $ECHO_C" >&6
30644else
30645
30646 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30647/* confdefs.h. */
30648_ACEOF
30649cat confdefs.h >>conftest.$ac_ext
30650cat >>conftest.$ac_ext <<_ACEOF
30651/* end confdefs.h. */
30652
30653 #define INCL_PM
30654 #include <os2.h>
30655
30656int
30657main ()
30658{
30659
30660 SPBCDATA test;
30661
30662 ;
30663 return 0;
30664}
30665_ACEOF
30666rm -f conftest.$ac_objext
30667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30668 (eval $ac_compile) 2>conftest.er1
de59c161 30669 ac_status=$?
ac1cb8d3
VS
30670 grep -v '^ *+' conftest.er1 >conftest.err
30671 rm -f conftest.er1
30672 cat conftest.err >&5
de59c161
RD
30673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30674 (exit $ac_status); } &&
5d7b7554 30675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30677 (eval $ac_try) 2>&5
30678 ac_status=$?
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); }; } &&
30681 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683 (eval $ac_try) 2>&5
30684 ac_status=$?
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; }; then
30687 wx_cv_spbcdata=yes
30688else
30689 echo "$as_me: failed program was:" >&5
30690sed 's/^/| /' conftest.$ac_ext >&5
30691
30692wx_cv_spbcdata=no
30693
30694fi
ac1cb8d3 30695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30696
30697
30698fi
30699echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30700echo "${ECHO_T}$wx_cv_spbcdata" >&6
30701
30702 if test $wx_cv_spbcdata = "yes"; then
30703 cat >>confdefs.h <<\_ACEOF
30704#define HAVE_SPBCDATA 1
30705_ACEOF
30706
30707 fi
a848cd7e
SC
30708 fi
30709
30710 if test "$TOOLKIT" = "PM" ; then
30711 TOOLKIT_DIR="os2"
30712 else
30713 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30714 fi
30715
a848cd7e 30716 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30717 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30718 WIDGET_SET=univ
a848cd7e
SC
30719 fi
30720
30721 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30722 DISTDIR="wx\$(TOOLKIT)"
30723else
30724 USE_GUI=0
30725
30726 TOOLKIT_DIR="base"
30727
30728 if test "$USE_WIN32" = 1 ; then
a848cd7e 30729 TOOLKIT="MSW"
a848cd7e
SC
30730 fi
30731
a848cd7e
SC
30732 GUIDIST="BASE_DIST"
30733 DISTDIR="wxBase"
30734fi
30735
30736
d12aef51
VZ
30737if test "$wxUSE_GUI" = "yes"; then
30738 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30739
30740for ac_header in X11/Xlib.h
30741do
30742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30743if eval "test \"\${$as_ac_Header+set}\" = set"; then
30744 echo "$as_me:$LINENO: checking for $ac_header" >&5
30745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30746if eval "test \"\${$as_ac_Header+set}\" = set"; then
30747 echo $ECHO_N "(cached) $ECHO_C" >&6
30748fi
30749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30751else
30752 # Is the header compilable?
30753echo "$as_me:$LINENO: checking $ac_header usability" >&5
30754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30755cat >conftest.$ac_ext <<_ACEOF
30756/* confdefs.h. */
30757_ACEOF
30758cat confdefs.h >>conftest.$ac_ext
30759cat >>conftest.$ac_ext <<_ACEOF
30760/* end confdefs.h. */
30761$ac_includes_default
30762#include <$ac_header>
30763_ACEOF
30764rm -f conftest.$ac_objext
30765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30766 (eval $ac_compile) 2>conftest.er1
30767 ac_status=$?
30768 grep -v '^ *+' conftest.er1 >conftest.err
30769 rm -f conftest.er1
30770 cat conftest.err >&5
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); } &&
5d7b7554 30773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30775 (eval $ac_try) 2>&5
30776 ac_status=$?
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); }; } &&
30779 { ac_try='test -s conftest.$ac_objext'
30780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30781 (eval $ac_try) 2>&5
30782 ac_status=$?
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); }; }; then
30785 ac_header_compiler=yes
30786else
30787 echo "$as_me: failed program was:" >&5
30788sed 's/^/| /' conftest.$ac_ext >&5
30789
30790ac_header_compiler=no
30791fi
30792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30793echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30794echo "${ECHO_T}$ac_header_compiler" >&6
30795
30796# Is the header present?
30797echo "$as_me:$LINENO: checking $ac_header presence" >&5
30798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30799cat >conftest.$ac_ext <<_ACEOF
30800/* confdefs.h. */
30801_ACEOF
30802cat confdefs.h >>conftest.$ac_ext
30803cat >>conftest.$ac_ext <<_ACEOF
30804/* end confdefs.h. */
30805#include <$ac_header>
30806_ACEOF
30807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30809 ac_status=$?
30810 grep -v '^ *+' conftest.er1 >conftest.err
30811 rm -f conftest.er1
30812 cat conftest.err >&5
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); } >/dev/null; then
30815 if test -s conftest.err; then
5d7b7554
VZ
30816 ac_cpp_err=$ac_cxx_preproc_warn_flag
30817 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
30818 else
30819 ac_cpp_err=
30820 fi
30821else
30822 ac_cpp_err=yes
30823fi
30824if test -z "$ac_cpp_err"; then
30825 ac_header_preproc=yes
30826else
30827 echo "$as_me: failed program was:" >&5
30828sed 's/^/| /' conftest.$ac_ext >&5
30829
30830 ac_header_preproc=no
30831fi
30832rm -f conftest.err conftest.$ac_ext
30833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30834echo "${ECHO_T}$ac_header_preproc" >&6
30835
30836# So? What about this header?
5d7b7554 30837case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
30838 yes:no: )
30839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30842echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30843 ac_header_preproc=yes
30844 ;;
30845 no:yes:* )
30846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30847echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30849echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30851echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30853echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30857echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30858 (
30859 cat <<\_ASBOX
30860## ----------------------------------------- ##
30861## Report this to wx-dev@lists.wxwidgets.org ##
30862## ----------------------------------------- ##
30863_ASBOX
30864 ) |
30865 sed "s/^/$as_me: WARNING: /" >&2
30866 ;;
30867esac
30868echo "$as_me:$LINENO: checking for $ac_header" >&5
30869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30870if eval "test \"\${$as_ac_Header+set}\" = set"; then
30871 echo $ECHO_N "(cached) $ECHO_C" >&6
30872else
30873 eval "$as_ac_Header=\$ac_header_preproc"
30874fi
30875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30877
30878fi
30879if test `eval echo '${'$as_ac_Header'}'` = yes; then
30880 cat >>confdefs.h <<_ACEOF
30881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30882_ACEOF
30883
30884fi
30885
30886done
30887
30888
30889for ac_header in X11/XKBlib.h
30890do
30891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30892echo "$as_me:$LINENO: checking for $ac_header" >&5
30893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30894if eval "test \"\${$as_ac_Header+set}\" = set"; then
30895 echo $ECHO_N "(cached) $ECHO_C" >&6
30896else
30897 cat >conftest.$ac_ext <<_ACEOF
30898/* confdefs.h. */
30899_ACEOF
30900cat confdefs.h >>conftest.$ac_ext
30901cat >>conftest.$ac_ext <<_ACEOF
30902/* end confdefs.h. */
30903
30904 #if HAVE_X11_XLIB_H
30905 #include <X11/Xlib.h>
30906 #endif
30907
30908
30909#include <$ac_header>
30910_ACEOF
30911rm -f conftest.$ac_objext
30912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30913 (eval $ac_compile) 2>conftest.er1
30914 ac_status=$?
30915 grep -v '^ *+' conftest.er1 >conftest.err
30916 rm -f conftest.er1
30917 cat conftest.err >&5
30918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919 (exit $ac_status); } &&
5d7b7554 30920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30922 (eval $ac_try) 2>&5
30923 ac_status=$?
30924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30925 (exit $ac_status); }; } &&
30926 { ac_try='test -s conftest.$ac_objext'
30927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928 (eval $ac_try) 2>&5
30929 ac_status=$?
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); }; }; then
30932 eval "$as_ac_Header=yes"
30933else
30934 echo "$as_me: failed program was:" >&5
30935sed 's/^/| /' conftest.$ac_ext >&5
30936
30937eval "$as_ac_Header=no"
30938fi
30939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30940fi
30941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30943if test `eval echo '${'$as_ac_Header'}'` = yes; then
30944 cat >>confdefs.h <<_ACEOF
30945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30946_ACEOF
30947
30948fi
30949
30950done
30951
30952 fi
30953fi
30954
a848cd7e
SC
30955
30956
30957IODBC_C_SRC=""
30958
30959
30960if test "$TOOLKIT" != "MSW" ; then
30961
30962 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30963
30964 if test "${ac_cv_header_sql_h+set}" = set; then
30965 echo "$as_me:$LINENO: checking for sql.h" >&5
30966echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30967if test "${ac_cv_header_sql_h+set}" = set; then
30968 echo $ECHO_N "(cached) $ECHO_C" >&6
30969fi
30970echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30971echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30972else
30973 # Is the header compilable?
30974echo "$as_me:$LINENO: checking sql.h usability" >&5
30975echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30976cat >conftest.$ac_ext <<_ACEOF
30977/* confdefs.h. */
30978_ACEOF
30979cat confdefs.h >>conftest.$ac_ext
30980cat >>conftest.$ac_ext <<_ACEOF
30981/* end confdefs.h. */
30982$ac_includes_default
30983#include <sql.h>
30984_ACEOF
30985rm -f conftest.$ac_objext
30986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30987 (eval $ac_compile) 2>conftest.er1
a848cd7e 30988 ac_status=$?
ac1cb8d3
VS
30989 grep -v '^ *+' conftest.er1 >conftest.err
30990 rm -f conftest.er1
30991 cat conftest.err >&5
a848cd7e
SC
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); } &&
5d7b7554 30994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30996 (eval $ac_try) 2>&5
30997 ac_status=$?
30998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999 (exit $ac_status); }; } &&
31000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31002 (eval $ac_try) 2>&5
31003 ac_status=$?
31004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005 (exit $ac_status); }; }; then
31006 ac_header_compiler=yes
31007else
31008 echo "$as_me: failed program was:" >&5
31009sed 's/^/| /' conftest.$ac_ext >&5
31010
31011ac_header_compiler=no
31012fi
ac1cb8d3 31013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31014echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31015echo "${ECHO_T}$ac_header_compiler" >&6
31016
31017# Is the header present?
31018echo "$as_me:$LINENO: checking sql.h presence" >&5
31019echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31020cat >conftest.$ac_ext <<_ACEOF
31021/* confdefs.h. */
31022_ACEOF
31023cat confdefs.h >>conftest.$ac_ext
31024cat >>conftest.$ac_ext <<_ACEOF
31025/* end confdefs.h. */
31026#include <sql.h>
31027_ACEOF
31028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31030 ac_status=$?
31031 grep -v '^ *+' conftest.er1 >conftest.err
31032 rm -f conftest.er1
31033 cat conftest.err >&5
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); } >/dev/null; then
31036 if test -s conftest.err; then
5d7b7554
VZ
31037 ac_cpp_err=$ac_cxx_preproc_warn_flag
31038 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31039 else
31040 ac_cpp_err=
31041 fi
31042else
31043 ac_cpp_err=yes
31044fi
31045if test -z "$ac_cpp_err"; then
31046 ac_header_preproc=yes
31047else
31048 echo "$as_me: failed program was:" >&5
31049sed 's/^/| /' conftest.$ac_ext >&5
31050
31051 ac_header_preproc=no
31052fi
31053rm -f conftest.err conftest.$ac_ext
31054echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31055echo "${ECHO_T}$ac_header_preproc" >&6
31056
31057# So? What about this header?
5d7b7554 31058case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31059 yes:no: )
a848cd7e
SC
31060 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31061echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31062 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31063echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31064 ac_header_preproc=yes
a848cd7e 31065 ;;
ac1cb8d3 31066 no:yes:* )
a848cd7e
SC
31067 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31068echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31069 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31070echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31071 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31072echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31073 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31074echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31075 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31076echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31077 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31078echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31079 (
31080 cat <<\_ASBOX
ac1cb8d3
VS
31081## ----------------------------------------- ##
31082## Report this to wx-dev@lists.wxwidgets.org ##
31083## ----------------------------------------- ##
a848cd7e
SC
31084_ASBOX
31085 ) |
31086 sed "s/^/$as_me: WARNING: /" >&2
31087 ;;
31088esac
31089echo "$as_me:$LINENO: checking for sql.h" >&5
31090echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31091if test "${ac_cv_header_sql_h+set}" = set; then
31092 echo $ECHO_N "(cached) $ECHO_C" >&6
31093else
31094 ac_cv_header_sql_h=$ac_header_preproc
31095fi
31096echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31097echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31098
31099fi
31100if test $ac_cv_header_sql_h = yes; then
31101 found_sql_h=1
31102fi
31103
31104
31105 if test "x$found_sql_h" = "x1" ; then
31106 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31107echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31108if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31109 echo $ECHO_N "(cached) $ECHO_C" >&6
31110else
31111 ac_check_lib_save_LIBS=$LIBS
31112LIBS="-liodbc $LIBS"
31113cat >conftest.$ac_ext <<_ACEOF
31114/* confdefs.h. */
31115_ACEOF
31116cat confdefs.h >>conftest.$ac_ext
31117cat >>conftest.$ac_ext <<_ACEOF
31118/* end confdefs.h. */
31119
31120/* Override any gcc2 internal prototype to avoid an error. */
31121#ifdef __cplusplus
31122extern "C"
31123#endif
31124/* We use char because int might match the return type of a gcc2
31125 builtin and then its argument prototype would still apply. */
31126char SQLAllocEnv ();
31127int
31128main ()
31129{
31130SQLAllocEnv ();
31131 ;
31132 return 0;
31133}
31134_ACEOF
31135rm -f conftest.$ac_objext conftest$ac_exeext
31136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31137 (eval $ac_link) 2>conftest.er1
a848cd7e 31138 ac_status=$?
ac1cb8d3
VS
31139 grep -v '^ *+' conftest.er1 >conftest.err
31140 rm -f conftest.er1
31141 cat conftest.err >&5
a848cd7e
SC
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } &&
5d7b7554 31144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31146 (eval $ac_try) 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; } &&
31150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31152 (eval $ac_try) 2>&5
31153 ac_status=$?
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; }; then
31156 ac_cv_lib_iodbc_SQLAllocEnv=yes
31157else
31158 echo "$as_me: failed program was:" >&5
31159sed 's/^/| /' conftest.$ac_ext >&5
31160
31161ac_cv_lib_iodbc_SQLAllocEnv=no
31162fi
ac1cb8d3
VS
31163rm -f conftest.err conftest.$ac_objext \
31164 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31165LIBS=$ac_check_lib_save_LIBS
31166fi
31167echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31168echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31169if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31170 ODBC_LINK=" -liodbc"
31171else
31172
31173 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31174echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31175if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31176 echo $ECHO_N "(cached) $ECHO_C" >&6
31177else
31178 ac_check_lib_save_LIBS=$LIBS
31179LIBS="-lunixodbc $LIBS"
31180cat >conftest.$ac_ext <<_ACEOF
31181/* confdefs.h. */
31182_ACEOF
31183cat confdefs.h >>conftest.$ac_ext
31184cat >>conftest.$ac_ext <<_ACEOF
31185/* end confdefs.h. */
31186
31187/* Override any gcc2 internal prototype to avoid an error. */
31188#ifdef __cplusplus
31189extern "C"
31190#endif
31191/* We use char because int might match the return type of a gcc2
31192 builtin and then its argument prototype would still apply. */
31193char SQLAllocEnv ();
31194int
31195main ()
31196{
31197SQLAllocEnv ();
31198 ;
31199 return 0;
31200}
31201_ACEOF
31202rm -f conftest.$ac_objext conftest$ac_exeext
31203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31204 (eval $ac_link) 2>conftest.er1
a848cd7e 31205 ac_status=$?
ac1cb8d3
VS
31206 grep -v '^ *+' conftest.er1 >conftest.err
31207 rm -f conftest.er1
31208 cat conftest.err >&5
a848cd7e
SC
31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210 (exit $ac_status); } &&
5d7b7554 31211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31213 (eval $ac_try) 2>&5
31214 ac_status=$?
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); }; } &&
31217 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31219 (eval $ac_try) 2>&5
31220 ac_status=$?
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); }; }; then
31223 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31224else
31225 echo "$as_me: failed program was:" >&5
31226sed 's/^/| /' conftest.$ac_ext >&5
31227
31228ac_cv_lib_unixodbc_SQLAllocEnv=no
31229fi
ac1cb8d3
VS
31230rm -f conftest.err conftest.$ac_objext \
31231 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31232LIBS=$ac_check_lib_save_LIBS
31233fi
31234echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31235echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31236if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31237 ODBC_LINK=" -lunixodbc"
31238else
31239
31240 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31241echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31242if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31243 echo $ECHO_N "(cached) $ECHO_C" >&6
31244else
31245 ac_check_lib_save_LIBS=$LIBS
31246LIBS="-lodbc $LIBS"
31247cat >conftest.$ac_ext <<_ACEOF
31248/* confdefs.h. */
31249_ACEOF
31250cat confdefs.h >>conftest.$ac_ext
31251cat >>conftest.$ac_ext <<_ACEOF
31252/* end confdefs.h. */
31253
31254/* Override any gcc2 internal prototype to avoid an error. */
31255#ifdef __cplusplus
31256extern "C"
31257#endif
31258/* We use char because int might match the return type of a gcc2
31259 builtin and then its argument prototype would still apply. */
31260char SQLAllocEnv ();
31261int
31262main ()
31263{
31264SQLAllocEnv ();
31265 ;
31266 return 0;
31267}
31268_ACEOF
31269rm -f conftest.$ac_objext conftest$ac_exeext
31270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31271 (eval $ac_link) 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); } &&
5d7b7554 31278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31280 (eval $ac_try) 2>&5
31281 ac_status=$?
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; } &&
31284 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31286 (eval $ac_try) 2>&5
31287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; }; then
31290 ac_cv_lib_odbc_SQLAllocEnv=yes
31291else
31292 echo "$as_me: failed program was:" >&5
31293sed 's/^/| /' conftest.$ac_ext >&5
31294
31295ac_cv_lib_odbc_SQLAllocEnv=no
31296fi
ac1cb8d3
VS
31297rm -f conftest.err conftest.$ac_objext \
31298 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31299LIBS=$ac_check_lib_save_LIBS
31300fi
31301echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31302echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31303if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31304 ODBC_LINK=" -lodbc"
31305fi
31306
31307
31308fi
31309
31310
31311fi
31312
31313 fi
31314 if test "x$ODBC_LINK" = "x" ; then
31315 if test "$wxUSE_ODBC" = "sys" ; then
31316 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31317echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31318 { (exit 1); exit 1; }; }
31319 else
31320 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31321echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31322 wxUSE_ODBC=builtin
31323 fi
31324 else
31325 wxUSE_ODBC=sys
31326 fi
31327 fi
a848cd7e 31328
2da0c077
RD
31329 if test "$wxUSE_ODBC" = "builtin" ; then
31330 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31331#define wxUSE_BUILTIN_IODBC 1
31332_ACEOF
31333
a848cd7e
SC
31334 fi
31335fi
31336
2da0c077
RD
31337if test "$wxUSE_ODBC" != "no" ; then
31338 cat >>confdefs.h <<\_ACEOF
31339#define wxUSE_ODBC 1
31340_ACEOF
31341
31342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31343
5ff751d6 31344 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31345fi
a848cd7e 31346
01cb68df 31347
a848cd7e 31348if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31349 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31350 echo "$as_me:$LINENO: checking for Xinerama" >&5
31351echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31352
0ad5d837
VZ
31353 ac_find_libraries=
31354 for ac_dir in $SEARCH_LIB;
31355 do
31356 for ac_extension in a so sl dylib dll.a; do
31357 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31358 ac_find_libraries=$ac_dir
31359 break 2
31360 fi
31361 done
31362 done
31363
a848cd7e
SC
31364 if test "$ac_find_libraries" != "" ; then
31365
0ad5d837 31366 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31367 ac_path_to_link=""
31368 else
0ad5d837
VZ
31369 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31370 result=$?
31371 if test $result = 0; then
31372 ac_path_to_link=""
31373 else
31374 ac_path_to_link=" -L$ac_find_libraries"
31375 fi
a848cd7e
SC
31376 fi
31377
31378 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31379 LDFLAGS="$LDFLAGS $ac_path_to_link"
31380 fi
31381 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31382 echo "$as_me:$LINENO: result: yes" >&5
31383echo "${ECHO_T}yes" >&6
31384
31385 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31386echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31387
0ad5d837
VZ
31388 ac_find_libraries=
31389 for ac_dir in $SEARCH_LIB;
a848cd7e 31390 do
3eca31dc 31391 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31392 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31393 ac_find_libraries=$ac_dir
31394 break 2
31395 fi
31396 done
31397 done
31398
31399 if test "$ac_find_libraries" != "" ; then
31400 echo "$as_me:$LINENO: result: yes" >&5
31401echo "${ECHO_T}yes" >&6
31402
31403for ac_header in X11/extensions/xf86vmode.h
31404do
31405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31406echo "$as_me:$LINENO: checking for $ac_header" >&5
31407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31408if eval "test \"\${$as_ac_Header+set}\" = set"; then
31409 echo $ECHO_N "(cached) $ECHO_C" >&6
31410else
31411 cat >conftest.$ac_ext <<_ACEOF
31412/* confdefs.h. */
31413_ACEOF
31414cat confdefs.h >>conftest.$ac_ext
31415cat >>conftest.$ac_ext <<_ACEOF
31416/* end confdefs.h. */
31417
31418 #if HAVE_X11_XLIB_H
31419 #include <X11/Xlib.h>
31420 #endif
31421
31422
31423#include <$ac_header>
31424_ACEOF
31425rm -f conftest.$ac_objext
31426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31427 (eval $ac_compile) 2>conftest.er1
a848cd7e 31428 ac_status=$?
ac1cb8d3
VS
31429 grep -v '^ *+' conftest.er1 >conftest.err
31430 rm -f conftest.er1
31431 cat conftest.err >&5
a848cd7e
SC
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); } &&
5d7b7554 31434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31436 (eval $ac_try) 2>&5
31437 ac_status=$?
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; } &&
31440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31442 (eval $ac_try) 2>&5
31443 ac_status=$?
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; }; then
31446 eval "$as_ac_Header=yes"
31447else
31448 echo "$as_me: failed program was:" >&5
31449sed 's/^/| /' conftest.$ac_ext >&5
31450
31451eval "$as_ac_Header=no"
31452fi
ac1cb8d3 31453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31454fi
31455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31457if test `eval echo '${'$as_ac_Header'}'` = yes; then
31458 cat >>confdefs.h <<_ACEOF
31459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31460_ACEOF
31461
31462 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31463
31464fi
31465
31466done
31467
31468 else
31469 echo "$as_me:$LINENO: result: no" >&5
31470echo "${ECHO_T}no" >&6
31471 fi
31472
31473 else
31474 echo "$as_me:$LINENO: result: no" >&5
31475echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31476 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31477echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31478 wxUSE_DISPLAY="no"
31479 fi
01cb68df
RG
31480 elif test "$wxUSE_MSW" = 1; then
31481
e5efa97e 31482for ac_header in ddraw.h
01cb68df
RG
31483do
31484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31485echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31487if eval "test \"\${$as_ac_Header+set}\" = set"; then
31488 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31489else
5294a27e 31490 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31491/* confdefs.h. */
31492_ACEOF
31493cat confdefs.h >>conftest.$ac_ext
31494cat >>conftest.$ac_ext <<_ACEOF
31495/* end confdefs.h. */
5294a27e
VZ
31496#include <windows.h>
31497
01cb68df
RG
31498#include <$ac_header>
31499_ACEOF
31500rm -f conftest.$ac_objext
31501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31502 (eval $ac_compile) 2>conftest.er1
01cb68df 31503 ac_status=$?
ac1cb8d3
VS
31504 grep -v '^ *+' conftest.er1 >conftest.err
31505 rm -f conftest.er1
31506 cat conftest.err >&5
01cb68df
RG
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); } &&
5d7b7554 31509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31511 (eval $ac_try) 2>&5
31512 ac_status=$?
31513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514 (exit $ac_status); }; } &&
31515 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31517 (eval $ac_try) 2>&5
31518 ac_status=$?
31519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520 (exit $ac_status); }; }; then
5294a27e 31521 eval "$as_ac_Header=yes"
01cb68df
RG
31522else
31523 echo "$as_me: failed program was:" >&5
31524sed 's/^/| /' conftest.$ac_ext >&5
31525
5294a27e 31526eval "$as_ac_Header=no"
01cb68df 31527fi
ac1cb8d3 31528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31529fi
31530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31532if test `eval echo '${'$as_ac_Header'}'` = yes; then
31533 cat >>confdefs.h <<_ACEOF
31534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31535_ACEOF
31536
01cb68df
RG
31537fi
31538
31539done
31540
a848cd7e
SC
31541 fi
31542fi
31543
31544
31545USE_OPENGL=0
31546if test "$wxUSE_OPENGL" = "yes"; then
31547 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31548 OPENGL_LIBS="-framework OpenGL -framework AGL"
31549 elif test "$wxUSE_MSW" = 1; then
31550 OPENGL_LIBS="-lopengl32 -lglu32"
31551 else
31552
31553
31554ac_find_includes=
31555for ac_dir in $SEARCH_INCLUDE /usr/include;
31556 do
31557 if test -f "$ac_dir/GL/gl.h"; then
31558 ac_find_includes=$ac_dir
31559 break
31560 fi
31561 done
31562
31563 if test "$ac_find_includes" != "" ; then
31564 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31565echo "${ECHO_T}found in $ac_find_includes" >&6
31566
31567 if test "x$ac_find_includes" = "x/usr/include"; then
31568 ac_path_to_include=""
31569 else
31570 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31571 result=$?
31572 if test $result = 0; then
31573 ac_path_to_include=""
31574 else
31575 ac_path_to_include=" -I$ac_find_includes"
31576 fi
31577 fi
31578
c92ad099 31579 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31580 fi
31581
31582 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31583 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31584echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31585if test "${ac_cv_header_GL_gl_h+set}" = set; then
31586 echo $ECHO_N "(cached) $ECHO_C" >&6
31587fi
31588echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31589echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31590else
31591 # Is the header compilable?
31592echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31593echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31594cat >conftest.$ac_ext <<_ACEOF
31595/* confdefs.h. */
31596_ACEOF
31597cat confdefs.h >>conftest.$ac_ext
31598cat >>conftest.$ac_ext <<_ACEOF
31599/* end confdefs.h. */
31600$ac_includes_default
31601#include <GL/gl.h>
31602_ACEOF
31603rm -f conftest.$ac_objext
31604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31605 (eval $ac_compile) 2>conftest.er1
a848cd7e 31606 ac_status=$?
ac1cb8d3
VS
31607 grep -v '^ *+' conftest.er1 >conftest.err
31608 rm -f conftest.er1
31609 cat conftest.err >&5
a848cd7e
SC
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); } &&
5d7b7554 31612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31614 (eval $ac_try) 2>&5
31615 ac_status=$?
31616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617 (exit $ac_status); }; } &&
31618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31620 (eval $ac_try) 2>&5
31621 ac_status=$?
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); }; }; then
31624 ac_header_compiler=yes
31625else
31626 echo "$as_me: failed program was:" >&5
31627sed 's/^/| /' conftest.$ac_ext >&5
31628
31629ac_header_compiler=no
31630fi
ac1cb8d3 31631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31633echo "${ECHO_T}$ac_header_compiler" >&6
31634
31635# Is the header present?
31636echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31637echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31638cat >conftest.$ac_ext <<_ACEOF
31639/* confdefs.h. */
31640_ACEOF
31641cat confdefs.h >>conftest.$ac_ext
31642cat >>conftest.$ac_ext <<_ACEOF
31643/* end confdefs.h. */
31644#include <GL/gl.h>
31645_ACEOF
31646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31648 ac_status=$?
31649 grep -v '^ *+' conftest.er1 >conftest.err
31650 rm -f conftest.er1
31651 cat conftest.err >&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); } >/dev/null; then
31654 if test -s conftest.err; then
5d7b7554
VZ
31655 ac_cpp_err=$ac_cxx_preproc_warn_flag
31656 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31657 else
31658 ac_cpp_err=
31659 fi
31660else
31661 ac_cpp_err=yes
31662fi
31663if test -z "$ac_cpp_err"; then
31664 ac_header_preproc=yes
31665else
31666 echo "$as_me: failed program was:" >&5
31667sed 's/^/| /' conftest.$ac_ext >&5
31668
31669 ac_header_preproc=no
31670fi
31671rm -f conftest.err conftest.$ac_ext
31672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31673echo "${ECHO_T}$ac_header_preproc" >&6
31674
31675# So? What about this header?
5d7b7554 31676case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31677 yes:no: )
a848cd7e
SC
31678 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31679echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31680 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31681echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31682 ac_header_preproc=yes
a848cd7e 31683 ;;
ac1cb8d3 31684 no:yes:* )
a848cd7e
SC
31685 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31686echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31687 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31688echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31689 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31690echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31691 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31692echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31693 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31694echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31695 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31696echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31697 (
31698 cat <<\_ASBOX
ac1cb8d3
VS
31699## ----------------------------------------- ##
31700## Report this to wx-dev@lists.wxwidgets.org ##
31701## ----------------------------------------- ##
a848cd7e
SC
31702_ASBOX
31703 ) |
31704 sed "s/^/$as_me: WARNING: /" >&2
31705 ;;
31706esac
31707echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31708echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31709if test "${ac_cv_header_GL_gl_h+set}" = set; then
31710 echo $ECHO_N "(cached) $ECHO_C" >&6
31711else
31712 ac_cv_header_GL_gl_h=$ac_header_preproc
31713fi
31714echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31715echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31716
31717fi
31718if test $ac_cv_header_GL_gl_h = yes; then
31719
31720 found_gl=0
31721
31722 echo "$as_me:$LINENO: checking for -lGL" >&5
31723echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31724
0ad5d837
VZ
31725 ac_find_libraries=
31726 for ac_dir in $SEARCH_LIB;
a848cd7e 31727 do
3eca31dc 31728 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31729 if test -f "$ac_dir/libGL.$ac_extension"; then
31730 ac_find_libraries=$ac_dir
31731 break 2
31732 fi
31733 done
31734 done
31735
31736 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31737 echo "$as_me:$LINENO: result: yes" >&5
31738echo "${ECHO_T}yes" >&6
31739
a848cd7e 31740
0ad5d837 31741 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31742 ac_path_to_link=""
31743 else
0ad5d837
VZ
31744 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31745 result=$?
31746 if test $result = 0; then
31747 ac_path_to_link=""
31748 else
31749 ac_path_to_link=" -L$ac_find_libraries"
31750 fi
a848cd7e
SC
31751 fi
31752
31753 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31754 LDFLAGS_GL="$ac_path_to_link"
31755 fi
31756
69120ee4
VZ
31757 echo "$as_me:$LINENO: checking for -lGLU" >&5
31758echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31759
0ad5d837
VZ
31760 ac_find_libraries=
31761 for ac_dir in $SEARCH_LIB;
31762 do
31763 for ac_extension in a so sl dylib dll.a; do
31764 if test -f "$ac_dir/libGLU.$ac_extension"; then
31765 ac_find_libraries=$ac_dir
31766 break 2
31767 fi
31768 done
31769 done
31770
a848cd7e
SC
31771 if test "$ac_find_libraries" != "" ; then
31772
0ad5d837 31773 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31774 ac_path_to_link=""
31775 else
0ad5d837
VZ
31776 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31777 result=$?
31778 if test $result = 0; then
31779 ac_path_to_link=""
31780 else
31781 ac_path_to_link=" -L$ac_find_libraries"
31782 fi
a848cd7e
SC
31783 fi
31784
31785 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31786 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31787 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31788 fi
31789
31790 found_gl=1
31791 OPENGL_LIBS="-lGL -lGLU"
31792 echo "$as_me:$LINENO: result: yes" >&5
31793echo "${ECHO_T}yes" >&6
69120ee4
VZ
31794 else
31795 echo "$as_me:$LINENO: result: no" >&5
31796echo "${ECHO_T}no" >&6
a848cd7e 31797 fi
69120ee4
VZ
31798 else
31799 echo "$as_me:$LINENO: result: no" >&5
31800echo "${ECHO_T}no" >&6
a848cd7e
SC
31801 fi
31802
31803 if test "$found_gl" != 1; then
a848cd7e
SC
31804 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31805echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31806
0ad5d837
VZ
31807 ac_find_libraries=
31808 for ac_dir in $SEARCH_LIB;
a848cd7e 31809 do
3eca31dc 31810 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31811 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31812 ac_find_libraries=$ac_dir
31813 break 2
31814 fi
31815 done
31816 done
31817
31818 if test "$ac_find_libraries" != "" ; then
31819
0ad5d837 31820 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31821 ac_path_to_link=""
31822 else
0ad5d837
VZ
31823 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31824 result=$?
31825 if test $result = 0; then
31826 ac_path_to_link=""
31827 else
31828 ac_path_to_link=" -L$ac_find_libraries"
31829 fi
a848cd7e
SC
31830 fi
31831
31832 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31833 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31834 echo "$as_me:$LINENO: result: yes" >&5
31835echo "${ECHO_T}yes" >&6
31836 else
31837 echo "$as_me:$LINENO: result: no" >&5
31838echo "${ECHO_T}no" >&6
31839 fi
31840 fi
31841
31842fi
31843
31844
31845
31846 if test "x$OPENGL_LIBS" = "x"; then
31847 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31848echo "$as_me: error: OpenGL libraries not available" >&2;}
31849 { (exit 1); exit 1; }; }
31850 fi
31851 fi
31852
31853 if test "$wxUSE_OPENGL" = "yes"; then
31854 USE_OPENGL=1
31855 cat >>confdefs.h <<\_ACEOF
31856#define wxUSE_OPENGL 1
31857_ACEOF
31858
31859 cat >>confdefs.h <<\_ACEOF
31860#define wxUSE_GLCANVAS 1
31861_ACEOF
31862
31863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31864 fi
31865fi
31866
a848cd7e
SC
31867
31868if test -n "$TOOLKIT" ; then
31869 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31870fi
31871
a848cd7e
SC
31872
31873
31874if test "$wxUSE_SHARED" = "yes"; then
31875 case "${host}" in
31876 *-pc-msdosdjgpp )
31877 wxUSE_SHARED=no
31878 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31879echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31880 ;;
31881 esac
31882fi
31883
a848cd7e 31884if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31885
31886
31887 found_versioning=no
31888
31889
31890 if test $found_versioning = no ; then
31891 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31892echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31893if test "${wx_cv_version_script+set}" = set; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31895else
31896
31897 echo "VER_1 { *; };" >conftest.sym
31898 echo "int main() { return 0; }" >conftest.cpp
31899
31900 if { ac_try='
31901 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31902 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31904 (eval $ac_try) 2>&5
31905 ac_status=$?
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); }; } ; then
31908 if test -s conftest.stderr ; then
31909 wx_cv_version_script=no
31910 else
31911 wx_cv_version_script=yes
31912 fi
31913 else
31914 wx_cv_version_script=no
31915 fi
e5d4b470
MW
31916
31917 if test $wx_cv_version_script = yes
31918 then
31919 echo "struct B { virtual ~B() { } }; \
31920 struct D : public B { }; \
31921 void F() { D d; }" > conftest.cpp
31922
31923 if { ac_try='
31924 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31925 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31927 (eval $ac_try) 2>&5
31928 ac_status=$?
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); }; } &&
31931 { ac_try='
31932 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31933 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31935 (eval $ac_try) 2>&5
31936 ac_status=$?
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); }; }
31939 then
31940 if { ac_try='
31941 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31942 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944 (eval $ac_try) 2>&5
31945 ac_status=$?
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); }; }
31948 then
31949 wx_cv_version_script=yes
31950 else
31951 wx_cv_version_script=no
31952 fi
31953 fi
31954 fi
31955
a848cd7e 31956 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31957 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31958
31959fi
31960echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31961echo "${ECHO_T}$wx_cv_version_script" >&6
31962 if test $wx_cv_version_script = yes ; then
31963 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31964 fi
31965 fi
31966
31967
31968 case "${host}" in
31969 *-*-linux* | *-*-gnu* )
31970 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31971 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31972 ;;
a848cd7e
SC
31973
31974 *-*-solaris2* )
31975 if test "$GCC" = yes ; then
c92ad099 31976 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
31977
31978 saveLdflags="$LDFLAGS"
31979 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31980 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31981echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31982 cat >conftest.$ac_ext <<_ACEOF
31983/* confdefs.h. */
31984_ACEOF
31985cat confdefs.h >>conftest.$ac_ext
31986cat >>conftest.$ac_ext <<_ACEOF
31987/* end confdefs.h. */
31988
31989int
31990main ()
31991{
31992
31993 ;
31994 return 0;
31995}
31996_ACEOF
31997rm -f conftest.$ac_objext conftest$ac_exeext
31998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31999 (eval $ac_link) 2>conftest.er1
a848cd7e 32000 ac_status=$?
ac1cb8d3
VS
32001 grep -v '^ *+' conftest.er1 >conftest.err
32002 rm -f conftest.er1
32003 cat conftest.err >&5
a848cd7e
SC
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); } &&
5d7b7554 32006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32008 (eval $ac_try) 2>&5
32009 ac_status=$?
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); }; } &&
32012 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32014 (eval $ac_try) 2>&5
32015 ac_status=$?
32016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017 (exit $ac_status); }; }; then
32018
32019 echo "$as_me:$LINENO: result: yes" >&5
32020echo "${ECHO_T}yes" >&6
32021 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32022 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32023
32024else
32025 echo "$as_me: failed program was:" >&5
32026sed 's/^/| /' conftest.$ac_ext >&5
32027
32028
32029 echo "$as_me:$LINENO: result: no" >&5
32030echo "${ECHO_T}no" >&6
32031 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32032echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32033 LDFLAGS="$saveLdflags -Wl,-R,/"
32034 cat >conftest.$ac_ext <<_ACEOF
32035/* confdefs.h. */
32036_ACEOF
32037cat confdefs.h >>conftest.$ac_ext
32038cat >>conftest.$ac_ext <<_ACEOF
32039/* end confdefs.h. */
32040
32041int
32042main ()
32043{
32044
32045 ;
32046 return 0;
32047}
32048_ACEOF
32049rm -f conftest.$ac_objext conftest$ac_exeext
32050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32051 (eval $ac_link) 2>conftest.er1
a848cd7e 32052 ac_status=$?
ac1cb8d3
VS
32053 grep -v '^ *+' conftest.er1 >conftest.err
32054 rm -f conftest.er1
32055 cat conftest.err >&5
a848cd7e
SC
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); } &&
5d7b7554 32058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060 (eval $ac_try) 2>&5
32061 ac_status=$?
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; } &&
32064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066 (eval $ac_try) 2>&5
32067 ac_status=$?
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; }; then
32070
ffa0583f 32071 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32072echo "${ECHO_T}yes" >&6
ffa0583f
RL
32073 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32074 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32075
a848cd7e
SC
32076else
32077 echo "$as_me: failed program was:" >&5
32078sed 's/^/| /' conftest.$ac_ext >&5
32079
32080
32081 echo "$as_me:$LINENO: result: no" >&5
32082echo "${ECHO_T}no" >&6
32083
32084fi
ac1cb8d3
VS
32085rm -f conftest.err conftest.$ac_objext \
32086 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32087
32088fi
ac1cb8d3
VS
32089rm -f conftest.err conftest.$ac_objext \
32090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32091 LDFLAGS="$saveLdflags"
32092 else
a848cd7e 32093 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32094 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32095 fi
32096 ;;
32097
cfda0ea8 32098 *-*-darwin* )
0caebc27
MW
32099 install_name_tool=`which install_name_tool`
32100 if test "$install_name_tool" -a -x "$install_name_tool"; then
32101 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32102 cat <<EOF >change-install-names
a848cd7e
SC
32103#!/bin/sh
32104libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32105inst_cmd="install_name_tool "
32106for i in \${libnames} ; do
32107 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32108done
32109\${inst_cmd} \${3}
32110EOF
0caebc27
MW
32111 chmod +x change-install-names
32112 fi
a848cd7e
SC
32113 ;;
32114
32115 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32116 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32117 ;;
a848cd7e 32118
81f90336
MW
32119 *-*-hpux* )
32120 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32121 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32122 ;;
81f90336 32123
a848cd7e 32124 esac
ceec2216 32125
ffa0583f
RL
32126 if test $wxUSE_RPATH = "no"; then
32127 SAMPLES_RPATH_FLAG=''
32128 SAMPLES_RPATH_POSTLINK=''
32129 WXCONFIG_RPATH=''
32130 fi
32131
32132 SHARED=1
32133
32134else
32135
ceec2216
RL
32136 config_linkage_component="-static"
32137 SHARED=0
ffa0583f 32138
ceec2216 32139fi
a848cd7e 32140
a848cd7e 32141
ceec2216
RL
32142UNICODE=0
32143lib_unicode_suffix=
32144WX_CHARTYPE="ansi"
32145if test "$wxUSE_UNICODE" = "yes"; then
32146 lib_unicode_suffix=u
32147 WX_CHARTYPE="unicode"
32148 UNICODE=1
a848cd7e
SC
32149fi
32150
ceec2216
RL
32151lib_debug_suffix=
32152WX_DEBUGTYPE="release"
32153DEBUG_FLAG=0
32154if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32155 lib_debug_suffix=d
32156 WX_DEBUGTYPE="debug"
32157 DEBUG_FLAG=1
32158fi
a848cd7e 32159
ceec2216
RL
32160WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32161WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32162
ceec2216
RL
32163DEBUG_INFO=0
32164if test "$wxUSE_DEBUG_INFO" = "yes"; then
32165 DEBUG_INFO=1
32166fi
a848cd7e 32167
ceec2216 32168WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32169
ceec2216 32170TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32171
ceec2216 32172TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32173
ceec2216
RL
32174if test "$cross_compiling" = "yes"; then
32175 HOST_SUFFIX="-$host_alias"
32176 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32177 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32178fi
32179
dd21ced8 32180WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32181if test "${TOOLKIT_DIR}" = "os2"; then
32182 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32183else
32184 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32185fi
ceec2216
RL
32186
32187
32188
1d1af5ea
DE
32189if test "$wxUSE_COCOA" = 1; then
32190
32191
32192 ac_ext=c
32193ac_cpp='$CPP $CPPFLAGS'
32194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32196ac_compiler_gnu=$ac_cv_c_compiler_gnu
32197
32198ac_ext=m
32199
32200 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32201echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32202 cat >conftest.$ac_ext <<_ACEOF
32203/* confdefs.h. */
32204_ACEOF
32205cat confdefs.h >>conftest.$ac_ext
32206cat >>conftest.$ac_ext <<_ACEOF
32207/* end confdefs.h. */
32208#include <AppKit/NSEvent.h>
32209#include <CoreFoundation/CoreFoundation.h>
32210
32211int
32212main ()
32213{
32214
32215 ;
32216 return 0;
32217}
32218_ACEOF
32219rm -f conftest.$ac_objext
32220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32221 (eval $ac_compile) 2>conftest.er1
32222 ac_status=$?
32223 grep -v '^ *+' conftest.er1 >conftest.err
32224 rm -f conftest.er1
32225 cat conftest.err >&5
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); } &&
5d7b7554 32228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32230 (eval $ac_try) 2>&5
32231 ac_status=$?
32232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 (exit $ac_status); }; } &&
32234 { ac_try='test -s conftest.$ac_objext'
32235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32236 (eval $ac_try) 2>&5
32237 ac_status=$?
32238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239 (exit $ac_status); }; }; then
32240 echo "$as_me:$LINENO: result: no" >&5
32241echo "${ECHO_T}no" >&6
32242else
32243 echo "$as_me: failed program was:" >&5
32244sed 's/^/| /' conftest.$ac_ext >&5
32245
32246echo "$as_me:$LINENO: result: yes" >&5
32247echo "${ECHO_T}yes" >&6
32248 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32249echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32250 cat >conftest.$ac_ext <<_ACEOF
32251/* confdefs.h. */
32252_ACEOF
32253cat confdefs.h >>conftest.$ac_ext
32254cat >>conftest.$ac_ext <<_ACEOF
32255/* end confdefs.h. */
32256#define __Point__ 1
32257#include <AppKit/NSEvent.h>
32258#include <CoreFoundation/CoreFoundation.h>
32259
32260int
32261main ()
32262{
32263
32264 ;
32265 return 0;
32266}
32267_ACEOF
32268rm -f conftest.$ac_objext
32269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32270 (eval $ac_compile) 2>conftest.er1
32271 ac_status=$?
32272 grep -v '^ *+' conftest.er1 >conftest.err
32273 rm -f conftest.er1
32274 cat conftest.err >&5
32275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32276 (exit $ac_status); } &&
5d7b7554 32277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32279 (eval $ac_try) 2>&5
32280 ac_status=$?
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; } &&
32283 { ac_try='test -s conftest.$ac_objext'
32284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32285 (eval $ac_try) 2>&5
32286 ac_status=$?
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); }; }; then
32289 echo "$as_me:$LINENO: result: yes" >&5
32290echo "${ECHO_T}yes" >&6
32291 cat >>confdefs.h <<\_ACEOF
32292#define __Point__ 1
32293_ACEOF
32294
32295
32296else
32297 echo "$as_me: failed program was:" >&5
32298sed 's/^/| /' conftest.$ac_ext >&5
32299
32300{ { echo "$as_me:$LINENO: error: no
32301See \`config.log' for more details." >&5
32302echo "$as_me: error: no
32303See \`config.log' for more details." >&2;}
32304 { (exit 1); exit 1; }; }
32305
32306fi
32307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32308
32309fi
32310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
32311 ac_ext=cc
32312ac_cpp='$CXXCPP $CPPFLAGS'
32313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
32316
32317fi
32318
a848cd7e 32319if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32320 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32321 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32322
a848cd7e 32323 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32324
32325 # Extract the first word of "Rez", so it can be a program name with args.
32326set dummy Rez; ac_word=$2
32327echo "$as_me:$LINENO: checking for $ac_word" >&5
32328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32329if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32330 echo $ECHO_N "(cached) $ECHO_C" >&6
32331else
8ced02f6
DE
32332 if test -n "$REZ"; then
32333 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32334else
32335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32336for as_dir in $PATH
32337do
32338 IFS=$as_save_IFS
32339 test -z "$as_dir" && as_dir=.
32340 for ac_exec_ext in '' $ac_executable_extensions; do
32341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32342 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32344 break 2
32345 fi
32346done
32347done
32348
8ced02f6 32349 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32350fi
32351fi
8ced02f6
DE
32352REZ=$ac_cv_prog_REZ
32353if test -n "$REZ"; then
32354 echo "$as_me:$LINENO: result: $REZ" >&5
32355echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32356else
32357 echo "$as_me:$LINENO: result: no" >&5
32358echo "${ECHO_T}no" >&6
32359fi
32360
32361 # Extract the first word of "DeRez", so it can be a program name with args.
32362set dummy DeRez; ac_word=$2
32363echo "$as_me:$LINENO: checking for $ac_word" >&5
32364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32365if test "${ac_cv_prog_DEREZ+set}" = set; then
32366 echo $ECHO_N "(cached) $ECHO_C" >&6
32367else
32368 if test -n "$DEREZ"; then
32369 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32370else
32371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32372for as_dir in $PATH
32373do
32374 IFS=$as_save_IFS
32375 test -z "$as_dir" && as_dir=.
32376 for ac_exec_ext in '' $ac_executable_extensions; do
32377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32378 ac_cv_prog_DEREZ="DeRez"
32379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32380 break 2
32381 fi
32382done
32383done
32384
32385 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32386fi
32387fi
32388DEREZ=$ac_cv_prog_DEREZ
32389if test -n "$DEREZ"; then
32390 echo "$as_me:$LINENO: result: $DEREZ" >&5
32391echo "${ECHO_T}$DEREZ" >&6
32392else
32393 echo "$as_me:$LINENO: result: no" >&5
32394echo "${ECHO_T}no" >&6
32395fi
32396
32397 # Extract the first word of "SetFile", so it can be a program name with args.
32398set dummy SetFile; ac_word=$2
32399echo "$as_me:$LINENO: checking for $ac_word" >&5
32400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32401if test "${ac_cv_prog_SETFILE+set}" = set; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32403else
32404 if test -n "$SETFILE"; then
32405 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32406else
32407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32408for as_dir in $PATH
32409do
32410 IFS=$as_save_IFS
32411 test -z "$as_dir" && as_dir=.
32412 for ac_exec_ext in '' $ac_executable_extensions; do
32413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32414 ac_cv_prog_SETFILE="SetFile"
32415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32416 break 2
32417 fi
32418done
32419done
32420
32421 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32422fi
32423fi
32424SETFILE=$ac_cv_prog_SETFILE
32425if test -n "$SETFILE"; then
32426 echo "$as_me:$LINENO: result: $SETFILE" >&5
32427echo "${ECHO_T}$SETFILE" >&6
32428else
32429 echo "$as_me:$LINENO: result: no" >&5
32430echo "${ECHO_T}no" >&6
32431fi
32432
32433
32434 MACSETFILE="\$(SETFILE)"
32435
32436 if test "$wxUSE_MAC" = 1; then
8ced02f6 32437 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32438 RESCOMP="$REZ"
32439 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32440 else
004ee6da
RL
32441 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32442 RESCOMP="echo -n \| $REZ"
32443 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32444 fi
004ee6da 32445
a848cd7e 32446else
ffa0583f 32447 MACSETFILE="@true"
a848cd7e 32448
8ced02f6 32449 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32450 RESCOMP="emxbind"
32451 WXCONFIG_RESFLAGS="-ep"
32452
32453 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32454 else
8ced02f6 32455 POSTLINK_COMMAND="@true"
a848cd7e 32456 fi
004ee6da 32457
a848cd7e
SC
32458fi
32459
32460
32461
32462echo "$as_me:$LINENO: checking for mode_t" >&5
32463echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32464if test "${ac_cv_type_mode_t+set}" = set; then
32465 echo $ECHO_N "(cached) $ECHO_C" >&6
32466else
32467 cat >conftest.$ac_ext <<_ACEOF
32468/* confdefs.h. */
32469_ACEOF
32470cat confdefs.h >>conftest.$ac_ext
32471cat >>conftest.$ac_ext <<_ACEOF
32472/* end confdefs.h. */
32473$ac_includes_default
32474int
32475main ()
32476{
32477if ((mode_t *) 0)
32478 return 0;
32479if (sizeof (mode_t))
32480 return 0;
32481 ;
32482 return 0;
32483}
32484_ACEOF
32485rm -f conftest.$ac_objext
32486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32487 (eval $ac_compile) 2>conftest.er1
a848cd7e 32488 ac_status=$?
ac1cb8d3
VS
32489 grep -v '^ *+' conftest.er1 >conftest.err
32490 rm -f conftest.er1
32491 cat conftest.err >&5
a848cd7e
SC
32492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493 (exit $ac_status); } &&
5d7b7554 32494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32496 (eval $ac_try) 2>&5
32497 ac_status=$?
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); }; } &&
32500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32502 (eval $ac_try) 2>&5
32503 ac_status=$?
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); }; }; then
32506 ac_cv_type_mode_t=yes
32507else
32508 echo "$as_me: failed program was:" >&5
32509sed 's/^/| /' conftest.$ac_ext >&5
32510
32511ac_cv_type_mode_t=no
32512fi
ac1cb8d3 32513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32514fi
32515echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32516echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32517if test $ac_cv_type_mode_t = yes; then
32518 :
32519else
32520
32521cat >>confdefs.h <<_ACEOF
32522#define mode_t int
32523_ACEOF
32524
32525fi
32526
32527echo "$as_me:$LINENO: checking for off_t" >&5
32528echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32529if test "${ac_cv_type_off_t+set}" = set; then
32530 echo $ECHO_N "(cached) $ECHO_C" >&6
32531else
32532 cat >conftest.$ac_ext <<_ACEOF
32533/* confdefs.h. */
32534_ACEOF
32535cat confdefs.h >>conftest.$ac_ext
32536cat >>conftest.$ac_ext <<_ACEOF
32537/* end confdefs.h. */
32538$ac_includes_default
32539int
32540main ()
32541{
32542if ((off_t *) 0)
32543 return 0;
32544if (sizeof (off_t))
32545 return 0;
32546 ;
32547 return 0;
32548}
32549_ACEOF
32550rm -f conftest.$ac_objext
32551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32552 (eval $ac_compile) 2>conftest.er1
a848cd7e 32553 ac_status=$?
ac1cb8d3
VS
32554 grep -v '^ *+' conftest.er1 >conftest.err
32555 rm -f conftest.er1
32556 cat conftest.err >&5
a848cd7e
SC
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); } &&
5d7b7554 32559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32561 (eval $ac_try) 2>&5
32562 ac_status=$?
32563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564 (exit $ac_status); }; } &&
32565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32567 (eval $ac_try) 2>&5
32568 ac_status=$?
32569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570 (exit $ac_status); }; }; then
32571 ac_cv_type_off_t=yes
32572else
32573 echo "$as_me: failed program was:" >&5
32574sed 's/^/| /' conftest.$ac_ext >&5
32575
32576ac_cv_type_off_t=no
32577fi
ac1cb8d3 32578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32579fi
32580echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32581echo "${ECHO_T}$ac_cv_type_off_t" >&6
32582if test $ac_cv_type_off_t = yes; then
32583 :
32584else
32585
32586cat >>confdefs.h <<_ACEOF
32587#define off_t long
32588_ACEOF
32589
32590fi
32591
32592echo "$as_me:$LINENO: checking for pid_t" >&5
32593echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32594if test "${ac_cv_type_pid_t+set}" = set; then
32595 echo $ECHO_N "(cached) $ECHO_C" >&6
32596else
32597 cat >conftest.$ac_ext <<_ACEOF
32598/* confdefs.h. */
32599_ACEOF
32600cat confdefs.h >>conftest.$ac_ext
32601cat >>conftest.$ac_ext <<_ACEOF
32602/* end confdefs.h. */
32603$ac_includes_default
32604int
32605main ()
32606{
32607if ((pid_t *) 0)
32608 return 0;
32609if (sizeof (pid_t))
32610 return 0;
32611 ;
32612 return 0;
32613}
32614_ACEOF
32615rm -f conftest.$ac_objext
32616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32617 (eval $ac_compile) 2>conftest.er1
a848cd7e 32618 ac_status=$?
ac1cb8d3
VS
32619 grep -v '^ *+' conftest.er1 >conftest.err
32620 rm -f conftest.er1
32621 cat conftest.err >&5
a848cd7e
SC
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); } &&
5d7b7554 32624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32626 (eval $ac_try) 2>&5
32627 ac_status=$?
32628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629 (exit $ac_status); }; } &&
32630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32632 (eval $ac_try) 2>&5
32633 ac_status=$?
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); }; }; then
32636 ac_cv_type_pid_t=yes
32637else
32638 echo "$as_me: failed program was:" >&5
32639sed 's/^/| /' conftest.$ac_ext >&5
32640
32641ac_cv_type_pid_t=no
32642fi
ac1cb8d3 32643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32644fi
32645echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32646echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32647if test $ac_cv_type_pid_t = yes; then
32648 :
32649else
32650
32651cat >>confdefs.h <<_ACEOF
32652#define pid_t int
32653_ACEOF
32654
32655fi
32656
32657echo "$as_me:$LINENO: checking for size_t" >&5
32658echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32659if test "${ac_cv_type_size_t+set}" = set; then
32660 echo $ECHO_N "(cached) $ECHO_C" >&6
32661else
32662 cat >conftest.$ac_ext <<_ACEOF
32663/* confdefs.h. */
32664_ACEOF
32665cat confdefs.h >>conftest.$ac_ext
32666cat >>conftest.$ac_ext <<_ACEOF
32667/* end confdefs.h. */
32668$ac_includes_default
32669int
32670main ()
32671{
32672if ((size_t *) 0)
32673 return 0;
32674if (sizeof (size_t))
32675 return 0;
32676 ;
32677 return 0;
32678}
32679_ACEOF
32680rm -f conftest.$ac_objext
32681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32682 (eval $ac_compile) 2>conftest.er1
a848cd7e 32683 ac_status=$?
ac1cb8d3
VS
32684 grep -v '^ *+' conftest.er1 >conftest.err
32685 rm -f conftest.er1
32686 cat conftest.err >&5
a848cd7e
SC
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); } &&
5d7b7554 32689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32691 (eval $ac_try) 2>&5
32692 ac_status=$?
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); }; } &&
32695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32697 (eval $ac_try) 2>&5
32698 ac_status=$?
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; }; then
32701 ac_cv_type_size_t=yes
32702else
32703 echo "$as_me: failed program was:" >&5
32704sed 's/^/| /' conftest.$ac_ext >&5
32705
32706ac_cv_type_size_t=no
32707fi
ac1cb8d3 32708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32709fi
32710echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32711echo "${ECHO_T}$ac_cv_type_size_t" >&6
32712if test $ac_cv_type_size_t = yes; then
32713 :
32714else
32715
32716cat >>confdefs.h <<_ACEOF
32717#define size_t unsigned
32718_ACEOF
32719
32720fi
32721
32722echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32723echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32724if test "${ac_cv_type_uid_t+set}" = set; then
32725 echo $ECHO_N "(cached) $ECHO_C" >&6
32726else
32727 cat >conftest.$ac_ext <<_ACEOF
32728/* confdefs.h. */
32729_ACEOF
32730cat confdefs.h >>conftest.$ac_ext
32731cat >>conftest.$ac_ext <<_ACEOF
32732/* end confdefs.h. */
32733#include <sys/types.h>
32734
32735_ACEOF
32736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32737 $EGREP "uid_t" >/dev/null 2>&1; then
32738 ac_cv_type_uid_t=yes
32739else
32740 ac_cv_type_uid_t=no
32741fi
32742rm -f conftest*
32743
32744fi
32745echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32746echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32747if test $ac_cv_type_uid_t = no; then
32748
32749cat >>confdefs.h <<\_ACEOF
32750#define uid_t int
32751_ACEOF
32752
32753
32754cat >>confdefs.h <<\_ACEOF
32755#define gid_t int
32756_ACEOF
32757
32758fi
32759
32760
d51253e8
RL
32761echo "$as_me:$LINENO: checking for ssize_t" >&5
32762echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32763if test "${ac_cv_type_ssize_t+set}" = set; then
32764 echo $ECHO_N "(cached) $ECHO_C" >&6
32765else
32766 cat >conftest.$ac_ext <<_ACEOF
32767/* confdefs.h. */
32768_ACEOF
32769cat confdefs.h >>conftest.$ac_ext
32770cat >>conftest.$ac_ext <<_ACEOF
32771/* end confdefs.h. */
32772$ac_includes_default
32773int
32774main ()
32775{
32776if ((ssize_t *) 0)
32777 return 0;
32778if (sizeof (ssize_t))
32779 return 0;
32780 ;
32781 return 0;
32782}
32783_ACEOF
32784rm -f conftest.$ac_objext
32785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32786 (eval $ac_compile) 2>conftest.er1
32787 ac_status=$?
32788 grep -v '^ *+' conftest.er1 >conftest.err
32789 rm -f conftest.er1
32790 cat conftest.err >&5
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } &&
5d7b7554 32793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
32794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32795 (eval $ac_try) 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest.$ac_objext'
32800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32801 (eval $ac_try) 2>&5
32802 ac_status=$?
32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); }; }; then
32805 ac_cv_type_ssize_t=yes
32806else
32807 echo "$as_me: failed program was:" >&5
32808sed 's/^/| /' conftest.$ac_ext >&5
32809
32810ac_cv_type_ssize_t=no
32811fi
32812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32813fi
32814echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32815echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32816if test $ac_cv_type_ssize_t = yes; then
32817
32818cat >>confdefs.h <<_ACEOF
32819#define HAVE_SSIZE_T 1
32820_ACEOF
32821
32822
32823fi
32824
32825
a848cd7e
SC
32826echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32827echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32828if test "${wx_cv_size_t_is_uint+set}" = set; then
32829 echo $ECHO_N "(cached) $ECHO_C" >&6
32830else
32831
32832 cat >conftest.$ac_ext <<_ACEOF
32833/* confdefs.h. */
32834_ACEOF
32835cat confdefs.h >>conftest.$ac_ext
32836cat >>conftest.$ac_ext <<_ACEOF
32837/* end confdefs.h. */
32838#include <stddef.h>
32839int
32840main ()
32841{
32842
32843 return 0; }
32844
32845 struct Foo { void foo(size_t); void foo(unsigned int); };
32846
32847 int bar() {
32848
32849 ;
32850 return 0;
32851}
32852_ACEOF
32853rm -f conftest.$ac_objext
32854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32855 (eval $ac_compile) 2>conftest.er1
a848cd7e 32856 ac_status=$?
ac1cb8d3
VS
32857 grep -v '^ *+' conftest.er1 >conftest.err
32858 rm -f conftest.er1
32859 cat conftest.err >&5
a848cd7e
SC
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); } &&
5d7b7554 32862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864 (eval $ac_try) 2>&5
32865 ac_status=$?
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; } &&
32868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32870 (eval $ac_try) 2>&5
32871 ac_status=$?
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); }; }; then
32874 wx_cv_size_t_is_uint=no
32875else
32876 echo "$as_me: failed program was:" >&5
32877sed 's/^/| /' conftest.$ac_ext >&5
32878
32879wx_cv_size_t_is_uint=yes
32880
32881fi
ac1cb8d3 32882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32883
32884
32885fi
32886echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32887echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32888
32889if test "$wx_cv_size_t_is_uint" = "yes"; then
32890 cat >>confdefs.h <<\_ACEOF
32891#define wxSIZE_T_IS_UINT 1
32892_ACEOF
32893
32894else
32895 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32896echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32897if test "${wx_cv_size_t_is_ulong+set}" = set; then
32898 echo $ECHO_N "(cached) $ECHO_C" >&6
32899else
32900 cat >conftest.$ac_ext <<_ACEOF
32901/* confdefs.h. */
32902_ACEOF
32903cat confdefs.h >>conftest.$ac_ext
32904cat >>conftest.$ac_ext <<_ACEOF
32905/* end confdefs.h. */
32906#include <stddef.h>
32907int
32908main ()
32909{
32910
32911 return 0; }
32912
32913 struct Foo { void foo(size_t); void foo(unsigned long); };
32914
32915 int bar() {
32916
32917 ;
32918 return 0;
32919}
32920_ACEOF
32921rm -f conftest.$ac_objext
32922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32923 (eval $ac_compile) 2>conftest.er1
a848cd7e 32924 ac_status=$?
ac1cb8d3
VS
32925 grep -v '^ *+' conftest.er1 >conftest.err
32926 rm -f conftest.er1
32927 cat conftest.err >&5
a848cd7e
SC
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); } &&
5d7b7554 32930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32932 (eval $ac_try) 2>&5
32933 ac_status=$?
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); }; } &&
32936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32938 (eval $ac_try) 2>&5
32939 ac_status=$?
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); }; }; then
32942 wx_cv_size_t_is_ulong=no
32943else
32944 echo "$as_me: failed program was:" >&5
32945sed 's/^/| /' conftest.$ac_ext >&5
32946
32947wx_cv_size_t_is_ulong=yes
32948
32949fi
ac1cb8d3 32950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32951
32952fi
32953echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32954echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32955
32956 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32957 cat >>confdefs.h <<\_ACEOF
32958#define wxSIZE_T_IS_ULONG 1
32959_ACEOF
32960
32961 fi
32962fi
32963
a848cd7e
SC
32964
32965echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32966echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32967if test "${wx_cv_struct_pw_gecos+set}" = set; then
32968 echo $ECHO_N "(cached) $ECHO_C" >&6
32969else
32970
32971 cat >conftest.$ac_ext <<_ACEOF
32972/* confdefs.h. */
32973_ACEOF
32974cat confdefs.h >>conftest.$ac_ext
32975cat >>conftest.$ac_ext <<_ACEOF
32976/* end confdefs.h. */
32977#include <pwd.h>
32978int
32979main ()
32980{
32981
32982 char *p;
32983 struct passwd *pw;
32984 p = pw->pw_gecos;
32985
32986 ;
32987 return 0;
32988}
32989_ACEOF
32990rm -f conftest.$ac_objext
32991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32992 (eval $ac_compile) 2>conftest.er1
a848cd7e 32993 ac_status=$?
ac1cb8d3
VS
32994 grep -v '^ *+' conftest.er1 >conftest.err
32995 rm -f conftest.er1
32996 cat conftest.err >&5
a848cd7e
SC
32997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998 (exit $ac_status); } &&
5d7b7554 32999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33001 (eval $ac_try) 2>&5
33002 ac_status=$?
33003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004 (exit $ac_status); }; } &&
33005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33007 (eval $ac_try) 2>&5
33008 ac_status=$?
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); }; }; then
33011
33012 wx_cv_struct_pw_gecos=yes
33013
33014else
33015 echo "$as_me: failed program was:" >&5
33016sed 's/^/| /' conftest.$ac_ext >&5
33017
33018
33019 wx_cv_struct_pw_gecos=no
33020
33021
33022fi
ac1cb8d3 33023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33024
33025
33026fi
33027echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33028echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33029
33030if test "$wx_cv_struct_pw_gecos" = "yes"; then
33031 cat >>confdefs.h <<\_ACEOF
33032#define HAVE_PW_GECOS 1
33033_ACEOF
33034
33035fi
33036
33037
47a7e797 33038if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33039 cat >>confdefs.h <<\_ACEOF
33040#define wxUSE_WCHAR_T 1
33041_ACEOF
33042
33043
33044 WCSLEN_FOUND=0
33045 WCHAR_LINK=
33046
33047for ac_func in wcslen
33048do
33049as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33050echo "$as_me:$LINENO: checking for $ac_func" >&5
33051echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33052if eval "test \"\${$as_ac_var+set}\" = set"; then
33053 echo $ECHO_N "(cached) $ECHO_C" >&6
33054else
33055 cat >conftest.$ac_ext <<_ACEOF
33056/* confdefs.h. */
33057_ACEOF
33058cat confdefs.h >>conftest.$ac_ext
33059cat >>conftest.$ac_ext <<_ACEOF
33060/* end confdefs.h. */
ac1cb8d3
VS
33061/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33063#define $ac_func innocuous_$ac_func
33064
a848cd7e
SC
33065/* System header to define __stub macros and hopefully few prototypes,
33066 which can conflict with char $ac_func (); below.
33067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33068 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33069
a848cd7e
SC
33070#ifdef __STDC__
33071# include <limits.h>
33072#else
33073# include <assert.h>
33074#endif
ac1cb8d3
VS
33075
33076#undef $ac_func
33077
a848cd7e
SC
33078/* Override any gcc2 internal prototype to avoid an error. */
33079#ifdef __cplusplus
33080extern "C"
33081{
33082#endif
33083/* We use char because int might match the return type of a gcc2
33084 builtin and then its argument prototype would still apply. */
33085char $ac_func ();
33086/* The GNU C library defines this for functions which it implements
33087 to always fail with ENOSYS. Some functions are actually named
33088 something starting with __ and the normal name is an alias. */
33089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33090choke me
33091#else
33092char (*f) () = $ac_func;
33093#endif
33094#ifdef __cplusplus
33095}
33096#endif
33097
33098int
33099main ()
33100{
33101return f != $ac_func;
33102 ;
33103 return 0;
33104}
33105_ACEOF
33106rm -f conftest.$ac_objext conftest$ac_exeext
33107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33108 (eval $ac_link) 2>conftest.er1
a848cd7e 33109 ac_status=$?
ac1cb8d3
VS
33110 grep -v '^ *+' conftest.er1 >conftest.err
33111 rm -f conftest.er1
33112 cat conftest.err >&5
a848cd7e
SC
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 (exit $ac_status); } &&
5d7b7554 33115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33117 (eval $ac_try) 2>&5
33118 ac_status=$?
33119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33120 (exit $ac_status); }; } &&
33121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33123 (eval $ac_try) 2>&5
33124 ac_status=$?
33125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33126 (exit $ac_status); }; }; then
33127 eval "$as_ac_var=yes"
33128else
33129 echo "$as_me: failed program was:" >&5
33130sed 's/^/| /' conftest.$ac_ext >&5
33131
33132eval "$as_ac_var=no"
33133fi
ac1cb8d3
VS
33134rm -f conftest.err conftest.$ac_objext \
33135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33136fi
33137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33138echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33139if test `eval echo '${'$as_ac_var'}'` = yes; then
33140 cat >>confdefs.h <<_ACEOF
33141#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33142_ACEOF
33143 WCSLEN_FOUND=1
33144fi
33145done
33146
33147
33148 if test "$WCSLEN_FOUND" = 0; then
33149 if test "$TOOLKIT" = "MSW"; then
33150 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33151echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33152if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33153 echo $ECHO_N "(cached) $ECHO_C" >&6
33154else
33155 ac_check_lib_save_LIBS=$LIBS
33156LIBS="-lmsvcrt $LIBS"
33157cat >conftest.$ac_ext <<_ACEOF
33158/* confdefs.h. */
33159_ACEOF
33160cat confdefs.h >>conftest.$ac_ext
33161cat >>conftest.$ac_ext <<_ACEOF
33162/* end confdefs.h. */
33163
33164/* Override any gcc2 internal prototype to avoid an error. */
33165#ifdef __cplusplus
33166extern "C"
33167#endif
33168/* We use char because int might match the return type of a gcc2
33169 builtin and then its argument prototype would still apply. */
33170char wcslen ();
33171int
33172main ()
33173{
33174wcslen ();
33175 ;
33176 return 0;
33177}
33178_ACEOF
33179rm -f conftest.$ac_objext conftest$ac_exeext
33180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33181 (eval $ac_link) 2>conftest.er1
a848cd7e 33182 ac_status=$?
ac1cb8d3
VS
33183 grep -v '^ *+' conftest.er1 >conftest.err
33184 rm -f conftest.er1
33185 cat conftest.err >&5
a848cd7e
SC
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); } &&
5d7b7554 33188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33190 (eval $ac_try) 2>&5
33191 ac_status=$?
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; } &&
33194 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33196 (eval $ac_try) 2>&5
33197 ac_status=$?
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; }; then
33200 ac_cv_lib_msvcrt_wcslen=yes
33201else
33202 echo "$as_me: failed program was:" >&5
33203sed 's/^/| /' conftest.$ac_ext >&5
33204
33205ac_cv_lib_msvcrt_wcslen=no
33206fi
ac1cb8d3
VS
33207rm -f conftest.err conftest.$ac_objext \
33208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33209LIBS=$ac_check_lib_save_LIBS
33210fi
33211echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33212echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33213if test $ac_cv_lib_msvcrt_wcslen = yes; then
33214 WCHAR_OK=1
33215fi
33216
33217 else
33218 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33219echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33220if test "${ac_cv_lib_w_wcslen+set}" = set; then
33221 echo $ECHO_N "(cached) $ECHO_C" >&6
33222else
33223 ac_check_lib_save_LIBS=$LIBS
33224LIBS="-lw $LIBS"
33225cat >conftest.$ac_ext <<_ACEOF
33226/* confdefs.h. */
33227_ACEOF
33228cat confdefs.h >>conftest.$ac_ext
33229cat >>conftest.$ac_ext <<_ACEOF
33230/* end confdefs.h. */
33231
33232/* Override any gcc2 internal prototype to avoid an error. */
33233#ifdef __cplusplus
33234extern "C"
33235#endif
33236/* We use char because int might match the return type of a gcc2
33237 builtin and then its argument prototype would still apply. */
33238char wcslen ();
33239int
33240main ()
33241{
33242wcslen ();
33243 ;
33244 return 0;
33245}
33246_ACEOF
33247rm -f conftest.$ac_objext conftest$ac_exeext
33248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33249 (eval $ac_link) 2>conftest.er1
a848cd7e 33250 ac_status=$?
ac1cb8d3
VS
33251 grep -v '^ *+' conftest.er1 >conftest.err
33252 rm -f conftest.er1
33253 cat conftest.err >&5
a848cd7e
SC
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); } &&
5d7b7554 33256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33258 (eval $ac_try) 2>&5
33259 ac_status=$?
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); }; } &&
33262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33264 (eval $ac_try) 2>&5
33265 ac_status=$?
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; }; then
33268 ac_cv_lib_w_wcslen=yes
33269else
33270 echo "$as_me: failed program was:" >&5
33271sed 's/^/| /' conftest.$ac_ext >&5
33272
33273ac_cv_lib_w_wcslen=no
33274fi
ac1cb8d3
VS
33275rm -f conftest.err conftest.$ac_objext \
33276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33277LIBS=$ac_check_lib_save_LIBS
33278fi
33279echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33280echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33281if test $ac_cv_lib_w_wcslen = yes; then
33282
33283 WCHAR_LINK=" -lw"
33284 WCSLEN_FOUND=1
33285
33286fi
33287
33288 fi
33289 fi
33290
33291 if test "$WCSLEN_FOUND" = 1; then
33292 cat >>confdefs.h <<\_ACEOF
33293#define HAVE_WCSLEN 1
33294_ACEOF
33295
33296 fi
33297
efdf6afe 33298 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33299 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33300 fi
33301
efdf6afe
VZ
33302 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33303echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33304if test "${ac_cv_type_mbstate_t+set}" = set; then
33305 echo $ECHO_N "(cached) $ECHO_C" >&6
33306else
33307 cat >conftest.$ac_ext <<_ACEOF
33308/* confdefs.h. */
33309_ACEOF
33310cat confdefs.h >>conftest.$ac_ext
33311cat >>conftest.$ac_ext <<_ACEOF
33312/* end confdefs.h. */
33313#include <wchar.h>
33314
33315int
33316main ()
33317{
33318if ((mbstate_t *) 0)
33319 return 0;
33320if (sizeof (mbstate_t))
33321 return 0;
33322 ;
33323 return 0;
33324}
33325_ACEOF
33326rm -f conftest.$ac_objext
33327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33328 (eval $ac_compile) 2>conftest.er1
33329 ac_status=$?
33330 grep -v '^ *+' conftest.er1 >conftest.err
33331 rm -f conftest.er1
33332 cat conftest.err >&5
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); } &&
5d7b7554 33335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
33336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33337 (eval $ac_try) 2>&5
33338 ac_status=$?
33339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); }; } &&
33341 { ac_try='test -s conftest.$ac_objext'
33342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33343 (eval $ac_try) 2>&5
33344 ac_status=$?
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); }; }; then
33347 ac_cv_type_mbstate_t=yes
33348else
33349 echo "$as_me: failed program was:" >&5
33350sed 's/^/| /' conftest.$ac_ext >&5
33351
33352ac_cv_type_mbstate_t=no
33353fi
33354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33355fi
33356echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33357echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33358if test $ac_cv_type_mbstate_t = yes; then
33359
33360cat >>confdefs.h <<_ACEOF
33361#define HAVE_MBSTATE_T 1
33362_ACEOF
33363
a848cd7e
SC
33364
33365for ac_func in wcsrtombs
33366do
33367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33368echo "$as_me:$LINENO: checking for $ac_func" >&5
33369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33370if eval "test \"\${$as_ac_var+set}\" = set"; then
33371 echo $ECHO_N "(cached) $ECHO_C" >&6
33372else
33373 cat >conftest.$ac_ext <<_ACEOF
33374/* confdefs.h. */
33375_ACEOF
33376cat confdefs.h >>conftest.$ac_ext
33377cat >>conftest.$ac_ext <<_ACEOF
33378/* end confdefs.h. */
ac1cb8d3
VS
33379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33381#define $ac_func innocuous_$ac_func
33382
a848cd7e
SC
33383/* System header to define __stub macros and hopefully few prototypes,
33384 which can conflict with char $ac_func (); below.
33385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33386 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33387
a848cd7e
SC
33388#ifdef __STDC__
33389# include <limits.h>
33390#else
33391# include <assert.h>
33392#endif
ac1cb8d3
VS
33393
33394#undef $ac_func
33395
a848cd7e
SC
33396/* Override any gcc2 internal prototype to avoid an error. */
33397#ifdef __cplusplus
33398extern "C"
33399{
33400#endif
33401/* We use char because int might match the return type of a gcc2
33402 builtin and then its argument prototype would still apply. */
33403char $ac_func ();
33404/* The GNU C library defines this for functions which it implements
33405 to always fail with ENOSYS. Some functions are actually named
33406 something starting with __ and the normal name is an alias. */
33407#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33408choke me
33409#else
33410char (*f) () = $ac_func;
33411#endif
33412#ifdef __cplusplus
33413}
33414#endif
33415
33416int
33417main ()
33418{
33419return f != $ac_func;
33420 ;
33421 return 0;
33422}
33423_ACEOF
33424rm -f conftest.$ac_objext conftest$ac_exeext
33425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33426 (eval $ac_link) 2>conftest.er1
a848cd7e 33427 ac_status=$?
ac1cb8d3
VS
33428 grep -v '^ *+' conftest.er1 >conftest.err
33429 rm -f conftest.er1
33430 cat conftest.err >&5
a848cd7e
SC
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); } &&
5d7b7554 33433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
33439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33441 (eval $ac_try) 2>&5
33442 ac_status=$?
33443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444 (exit $ac_status); }; }; then
33445 eval "$as_ac_var=yes"
33446else
33447 echo "$as_me: failed program was:" >&5
33448sed 's/^/| /' conftest.$ac_ext >&5
33449
33450eval "$as_ac_var=no"
33451fi
ac1cb8d3
VS
33452rm -f conftest.err conftest.$ac_objext \
33453 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33454fi
33455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33456echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33457if test `eval echo '${'$as_ac_var'}'` = yes; then
33458 cat >>confdefs.h <<_ACEOF
33459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33460_ACEOF
33461
33462fi
33463done
33464
efdf6afe
VZ
33465fi
33466
a848cd7e
SC
33467else
33468 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33469echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33470fi
33471
a848cd7e 33472
4a767dd5
VZ
33473
33474for ac_func in snprintf vsnprintf
a848cd7e
SC
33475do
33476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33477echo "$as_me:$LINENO: checking for $ac_func" >&5
33478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33479if eval "test \"\${$as_ac_var+set}\" = set"; then
33480 echo $ECHO_N "(cached) $ECHO_C" >&6
33481else
33482 cat >conftest.$ac_ext <<_ACEOF
33483/* confdefs.h. */
33484_ACEOF
33485cat confdefs.h >>conftest.$ac_ext
33486cat >>conftest.$ac_ext <<_ACEOF
33487/* end confdefs.h. */
ac1cb8d3
VS
33488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33490#define $ac_func innocuous_$ac_func
33491
a848cd7e
SC
33492/* System header to define __stub macros and hopefully few prototypes,
33493 which can conflict with char $ac_func (); below.
33494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33495 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33496
a848cd7e
SC
33497#ifdef __STDC__
33498# include <limits.h>
33499#else
33500# include <assert.h>
33501#endif
ac1cb8d3
VS
33502
33503#undef $ac_func
33504
a848cd7e
SC
33505/* Override any gcc2 internal prototype to avoid an error. */
33506#ifdef __cplusplus
33507extern "C"
33508{
33509#endif
33510/* We use char because int might match the return type of a gcc2
33511 builtin and then its argument prototype would still apply. */
33512char $ac_func ();
33513/* The GNU C library defines this for functions which it implements
33514 to always fail with ENOSYS. Some functions are actually named
33515 something starting with __ and the normal name is an alias. */
33516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33517choke me
33518#else
33519char (*f) () = $ac_func;
33520#endif
33521#ifdef __cplusplus
33522}
33523#endif
33524
33525int
33526main ()
33527{
33528return f != $ac_func;
33529 ;
33530 return 0;
33531}
33532_ACEOF
33533rm -f conftest.$ac_objext conftest$ac_exeext
33534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33535 (eval $ac_link) 2>conftest.er1
a848cd7e 33536 ac_status=$?
ac1cb8d3
VS
33537 grep -v '^ *+' conftest.er1 >conftest.err
33538 rm -f conftest.er1
33539 cat conftest.err >&5
a848cd7e
SC
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } &&
5d7b7554 33542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33544 (eval $ac_try) 2>&5
33545 ac_status=$?
33546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547 (exit $ac_status); }; } &&
33548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33550 (eval $ac_try) 2>&5
33551 ac_status=$?
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); }; }; then
33554 eval "$as_ac_var=yes"
33555else
33556 echo "$as_me: failed program was:" >&5
33557sed 's/^/| /' conftest.$ac_ext >&5
33558
33559eval "$as_ac_var=no"
33560fi
ac1cb8d3
VS
33561rm -f conftest.err conftest.$ac_objext \
33562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33563fi
33564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33566if test `eval echo '${'$as_ac_var'}'` = yes; then
33567 cat >>confdefs.h <<_ACEOF
33568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33569_ACEOF
33570
33571fi
33572done
33573
33574
33575if test "$ac_cv_func_vsnprintf" = "yes"; then
33576 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33577echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33578if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33579 echo $ECHO_N "(cached) $ECHO_C" >&6
33580else
33581
efdf6afe 33582 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33583/* confdefs.h. */
33584_ACEOF
33585cat confdefs.h >>conftest.$ac_ext
33586cat >>conftest.$ac_ext <<_ACEOF
33587/* end confdefs.h. */
33588
33589 #include <stdio.h>
33590 #include <stdarg.h>
efdf6afe
VZ
33591 #ifdef __MSL__
33592 #if __MSL__ >= 0x6000
33593 namespace std {}
33594 using namespace std;
33595 #endif
33596 #endif
a848cd7e
SC
33597
33598int
33599main ()
33600{
33601
33602 char *buf;
33603 va_list ap;
62fa8b3a 33604 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33605
33606 ;
33607 return 0;
33608}
33609_ACEOF
33610rm -f conftest.$ac_objext
33611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33612 (eval $ac_compile) 2>conftest.er1
33613 ac_status=$?
33614 grep -v '^ *+' conftest.er1 >conftest.err
33615 rm -f conftest.er1
33616 cat conftest.err >&5
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); } &&
5d7b7554 33619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
33620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33621 (eval $ac_try) 2>&5
33622 ac_status=$?
33623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624 (exit $ac_status); }; } &&
33625 { ac_try='test -s conftest.$ac_objext'
33626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33627 (eval $ac_try) 2>&5
33628 ac_status=$?
33629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630 (exit $ac_status); }; }; then
33631 wx_cv_func_vsnprintf_decl=yes
33632else
33633 echo "$as_me: failed program was:" >&5
33634sed 's/^/| /' conftest.$ac_ext >&5
33635
a848cd7e
SC
33636wx_cv_func_vsnprintf_decl=no
33637
33638fi
ac1cb8d3 33639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33640
33641
33642fi
33643echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33644echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33645
33646 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33647 cat >>confdefs.h <<\_ACEOF
33648#define HAVE_VSNPRINTF_DECL 1
33649_ACEOF
33650
62fa8b3a
MW
33651
33652 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33653echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33654if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33655 echo $ECHO_N "(cached) $ECHO_C" >&6
33656else
33657
33658 cat >conftest.$ac_ext <<_ACEOF
33659/* confdefs.h. */
33660_ACEOF
33661cat confdefs.h >>conftest.$ac_ext
33662cat >>conftest.$ac_ext <<_ACEOF
33663/* end confdefs.h. */
33664
33665 #include <stdio.h>
33666 #include <stdarg.h>
33667 #ifdef __MSL__
33668 #if __MSL__ >= 0x6000
33669 namespace std {}
33670 using namespace std;
33671 #endif
33672 #endif
33673
33674int
33675main ()
33676{
33677
33678 char *buf;
33679 va_list ap;
33680 const char *fmt = "%s";
33681 vsnprintf(buf, 10u, fmt, ap);
33682
33683 ;
33684 return 0;
33685}
33686_ACEOF
33687rm -f conftest.$ac_objext
33688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33689 (eval $ac_compile) 2>conftest.er1
33690 ac_status=$?
33691 grep -v '^ *+' conftest.er1 >conftest.err
33692 rm -f conftest.er1
33693 cat conftest.err >&5
33694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695 (exit $ac_status); } &&
5d7b7554 33696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33698 (eval $ac_try) 2>&5
33699 ac_status=$?
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); }; } &&
33702 { ac_try='test -s conftest.$ac_objext'
33703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704 (eval $ac_try) 2>&5
33705 ac_status=$?
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); }; }; then
33708 wx_cv_func_broken_vsnprintf_decl=no
33709else
33710 echo "$as_me: failed program was:" >&5
33711sed 's/^/| /' conftest.$ac_ext >&5
33712
33713wx_cv_func_broken_vsnprintf_decl=yes
33714
33715fi
33716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33717
33718
33719fi
33720echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33721echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33722
33723 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33724 cat >>confdefs.h <<\_ACEOF
33725#define HAVE_BROKEN_VSNPRINTF_DECL 1
33726_ACEOF
33727
33728 fi
a848cd7e
SC
33729 fi
33730fi
33731
4a767dd5
VZ
33732if test "$ac_cv_func_snprintf" = "yes"; then
33733 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33734echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33735if test "${wx_cv_func_snprintf_decl+set}" = set; then
33736 echo $ECHO_N "(cached) $ECHO_C" >&6
33737else
33738
33739 cat >conftest.$ac_ext <<_ACEOF
33740/* confdefs.h. */
33741_ACEOF
33742cat confdefs.h >>conftest.$ac_ext
33743cat >>conftest.$ac_ext <<_ACEOF
33744/* end confdefs.h. */
33745
33746 #include <stdio.h>
33747 #include <stdarg.h>
33748 #ifdef __MSL__
33749 #if __MSL__ >= 0x6000
33750 namespace std {}
33751 using namespace std;
33752 #endif
33753 #endif
33754
33755int
33756main ()
33757{
33758
33759 char *buf;
62fa8b3a 33760 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33761
33762 ;
33763 return 0;
33764}
33765_ACEOF
33766rm -f conftest.$ac_objext
33767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33768 (eval $ac_compile) 2>conftest.er1
33769 ac_status=$?
33770 grep -v '^ *+' conftest.er1 >conftest.err
33771 rm -f conftest.er1
33772 cat conftest.err >&5
33773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774 (exit $ac_status); } &&
5d7b7554 33775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
33776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33777 (eval $ac_try) 2>&5
33778 ac_status=$?
33779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780 (exit $ac_status); }; } &&
33781 { ac_try='test -s conftest.$ac_objext'
33782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33783 (eval $ac_try) 2>&5
33784 ac_status=$?
33785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786 (exit $ac_status); }; }; then
33787 wx_cv_func_snprintf_decl=yes
33788else
33789 echo "$as_me: failed program was:" >&5
33790sed 's/^/| /' conftest.$ac_ext >&5
33791
33792wx_cv_func_snprintf_decl=no
33793
33794fi
33795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33796
33797
33798fi
33799echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33800echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33801
33802 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33803 cat >>confdefs.h <<\_ACEOF
33804#define HAVE_SNPRINTF_DECL 1
33805_ACEOF
33806
62fa8b3a
MW
33807
33808 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33809echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33810if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33811 echo $ECHO_N "(cached) $ECHO_C" >&6
33812else
33813
33814 cat >conftest.$ac_ext <<_ACEOF
33815/* confdefs.h. */
33816_ACEOF
33817cat confdefs.h >>conftest.$ac_ext
33818cat >>conftest.$ac_ext <<_ACEOF
33819/* end confdefs.h. */
33820
33821 #include <stdio.h>
33822 #include <stdarg.h>
33823 #ifdef __MSL__
33824 #if __MSL__ >= 0x6000
33825 namespace std {}
33826 using namespace std;
33827 #endif
33828 #endif
33829
33830int
33831main ()
33832{
33833
33834 char *buf;
33835 const char *fmt = "%s";
33836 snprintf(buf, 10u, fmt, "wx");
33837
33838 ;
33839 return 0;
33840}
33841_ACEOF
33842rm -f conftest.$ac_objext
33843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33844 (eval $ac_compile) 2>conftest.er1
33845 ac_status=$?
33846 grep -v '^ *+' conftest.er1 >conftest.err
33847 rm -f conftest.er1
33848 cat conftest.err >&5
33849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 (exit $ac_status); } &&
5d7b7554 33851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33853 (eval $ac_try) 2>&5
33854 ac_status=$?
33855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856 (exit $ac_status); }; } &&
33857 { ac_try='test -s conftest.$ac_objext'
33858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33859 (eval $ac_try) 2>&5
33860 ac_status=$?
33861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862 (exit $ac_status); }; }; then
33863 wx_cv_func_broken_snprintf_decl=no
33864else
33865 echo "$as_me: failed program was:" >&5
33866sed 's/^/| /' conftest.$ac_ext >&5
33867
33868wx_cv_func_broken_snprintf_decl=yes
33869
33870fi
33871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33872
33873
33874fi
33875echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33876echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33877
33878 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33879 cat >>confdefs.h <<\_ACEOF
33880#define HAVE_BROKEN_SNPRINTF_DECL 1
33881_ACEOF
33882
33883 fi
4a767dd5
VZ
33884 fi
33885fi
33886
a848cd7e
SC
33887if test "$wxUSE_UNICODE" = yes; then
33888
33889
33890
fbe47c7b
VS
33891
33892
33893
33894for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33895do
33896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33897echo "$as_me:$LINENO: checking for $ac_func" >&5
33898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33899if eval "test \"\${$as_ac_var+set}\" = set"; then
33900 echo $ECHO_N "(cached) $ECHO_C" >&6
33901else
33902 cat >conftest.$ac_ext <<_ACEOF
33903/* confdefs.h. */
33904_ACEOF
33905cat confdefs.h >>conftest.$ac_ext
33906cat >>conftest.$ac_ext <<_ACEOF
33907/* end confdefs.h. */
ac1cb8d3
VS
33908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33910#define $ac_func innocuous_$ac_func
33911
a848cd7e
SC
33912/* System header to define __stub macros and hopefully few prototypes,
33913 which can conflict with char $ac_func (); below.
33914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33915 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33916
a848cd7e
SC
33917#ifdef __STDC__
33918# include <limits.h>
33919#else
33920# include <assert.h>
33921#endif
ac1cb8d3
VS
33922
33923#undef $ac_func
33924
a848cd7e
SC
33925/* Override any gcc2 internal prototype to avoid an error. */
33926#ifdef __cplusplus
33927extern "C"
33928{
33929#endif
33930/* We use char because int might match the return type of a gcc2
33931 builtin and then its argument prototype would still apply. */
33932char $ac_func ();
33933/* The GNU C library defines this for functions which it implements
33934 to always fail with ENOSYS. Some functions are actually named
33935 something starting with __ and the normal name is an alias. */
33936#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33937choke me
33938#else
33939char (*f) () = $ac_func;
33940#endif
33941#ifdef __cplusplus
33942}
33943#endif
33944
33945int
33946main ()
33947{
33948return f != $ac_func;
33949 ;
33950 return 0;
33951}
33952_ACEOF
33953rm -f conftest.$ac_objext conftest$ac_exeext
33954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33955 (eval $ac_link) 2>conftest.er1
a848cd7e 33956 ac_status=$?
ac1cb8d3
VS
33957 grep -v '^ *+' conftest.er1 >conftest.err
33958 rm -f conftest.er1
33959 cat conftest.err >&5
a848cd7e
SC
33960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961 (exit $ac_status); } &&
5d7b7554 33962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33964 (eval $ac_try) 2>&5
33965 ac_status=$?
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); }; } &&
33968 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33970 (eval $ac_try) 2>&5
33971 ac_status=$?
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); }; }; then
33974 eval "$as_ac_var=yes"
33975else
33976 echo "$as_me: failed program was:" >&5
33977sed 's/^/| /' conftest.$ac_ext >&5
33978
33979eval "$as_ac_var=no"
33980fi
ac1cb8d3
VS
33981rm -f conftest.err conftest.$ac_objext \
33982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33983fi
33984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33986if test `eval echo '${'$as_ac_var'}'` = yes; then
33987 cat >>confdefs.h <<_ACEOF
33988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33989_ACEOF
33990
33991fi
33992done
33993
33994
33995 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33996echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33997 cat >conftest.$ac_ext <<_ACEOF
33998/* confdefs.h. */
33999_ACEOF
34000cat confdefs.h >>conftest.$ac_ext
34001cat >>conftest.$ac_ext <<_ACEOF
34002/* end confdefs.h. */
34003#include <wchar.h>
34004int
34005main ()
34006{
34007&_vsnwprintf;
34008 ;
34009 return 0;
34010}
34011_ACEOF
34012rm -f conftest.$ac_objext
34013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34014 (eval $ac_compile) 2>conftest.er1
a848cd7e 34015 ac_status=$?
ac1cb8d3
VS
34016 grep -v '^ *+' conftest.er1 >conftest.err
34017 rm -f conftest.er1
34018 cat conftest.err >&5
a848cd7e
SC
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); } &&
5d7b7554 34021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34023 (eval $ac_try) 2>&5
34024 ac_status=$?
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); }; } &&
34027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029 (eval $ac_try) 2>&5
34030 ac_status=$?
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); }; }; then
34033 echo "$as_me:$LINENO: result: yes" >&5
34034echo "${ECHO_T}yes" >&6
34035 cat >>confdefs.h <<\_ACEOF
34036#define HAVE__VSNWPRINTF 1
34037_ACEOF
34038
34039else
34040 echo "$as_me: failed program was:" >&5
34041sed 's/^/| /' conftest.$ac_ext >&5
34042
34043echo "$as_me:$LINENO: result: no" >&5
34044echo "${ECHO_T}no" >&6
34045fi
ac1cb8d3 34046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34047fi
34048
6ebeb4c7
VZ
34049if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34050
34051for ac_func in fnmatch
34052do
34053as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34054echo "$as_me:$LINENO: checking for $ac_func" >&5
34055echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34056if eval "test \"\${$as_ac_var+set}\" = set"; then
34057 echo $ECHO_N "(cached) $ECHO_C" >&6
34058else
34059 cat >conftest.$ac_ext <<_ACEOF
34060/* confdefs.h. */
34061_ACEOF
34062cat confdefs.h >>conftest.$ac_ext
34063cat >>conftest.$ac_ext <<_ACEOF
34064/* end confdefs.h. */
34065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34067#define $ac_func innocuous_$ac_func
34068
34069/* System header to define __stub macros and hopefully few prototypes,
34070 which can conflict with char $ac_func (); below.
34071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34072 <limits.h> exists even on freestanding compilers. */
34073
34074#ifdef __STDC__
34075# include <limits.h>
34076#else
34077# include <assert.h>
34078#endif
34079
34080#undef $ac_func
34081
34082/* Override any gcc2 internal prototype to avoid an error. */
34083#ifdef __cplusplus
34084extern "C"
34085{
34086#endif
34087/* We use char because int might match the return type of a gcc2
34088 builtin and then its argument prototype would still apply. */
34089char $ac_func ();
34090/* The GNU C library defines this for functions which it implements
34091 to always fail with ENOSYS. Some functions are actually named
34092 something starting with __ and the normal name is an alias. */
34093#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34094choke me
34095#else
34096char (*f) () = $ac_func;
34097#endif
34098#ifdef __cplusplus
34099}
34100#endif
34101
34102int
34103main ()
34104{
34105return f != $ac_func;
34106 ;
34107 return 0;
34108}
34109_ACEOF
34110rm -f conftest.$ac_objext conftest$ac_exeext
34111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34112 (eval $ac_link) 2>conftest.er1
34113 ac_status=$?
34114 grep -v '^ *+' conftest.er1 >conftest.err
34115 rm -f conftest.er1
34116 cat conftest.err >&5
34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118 (exit $ac_status); } &&
5d7b7554 34119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34121 (eval $ac_try) 2>&5
34122 ac_status=$?
34123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124 (exit $ac_status); }; } &&
34125 { ac_try='test -s conftest$ac_exeext'
34126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34127 (eval $ac_try) 2>&5
34128 ac_status=$?
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); }; }; then
34131 eval "$as_ac_var=yes"
34132else
34133 echo "$as_me: failed program was:" >&5
34134sed 's/^/| /' conftest.$ac_ext >&5
34135
34136eval "$as_ac_var=no"
34137fi
34138rm -f conftest.err conftest.$ac_objext \
34139 conftest$ac_exeext conftest.$ac_ext
34140fi
34141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34142echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34143if test `eval echo '${'$as_ac_var'}'` = yes; then
34144 cat >>confdefs.h <<_ACEOF
34145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34146_ACEOF
34147
34148fi
34149done
34150
34151fi
34152
34153if test "$wxUSE_FILE" = "yes"; then
34154
34155for ac_func in fsync
34156do
34157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34158echo "$as_me:$LINENO: checking for $ac_func" >&5
34159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34160if eval "test \"\${$as_ac_var+set}\" = set"; then
34161 echo $ECHO_N "(cached) $ECHO_C" >&6
34162else
34163 cat >conftest.$ac_ext <<_ACEOF
34164/* confdefs.h. */
34165_ACEOF
34166cat confdefs.h >>conftest.$ac_ext
34167cat >>conftest.$ac_ext <<_ACEOF
34168/* end confdefs.h. */
34169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34171#define $ac_func innocuous_$ac_func
34172
34173/* System header to define __stub macros and hopefully few prototypes,
34174 which can conflict with char $ac_func (); below.
34175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34176 <limits.h> exists even on freestanding compilers. */
34177
34178#ifdef __STDC__
34179# include <limits.h>
34180#else
34181# include <assert.h>
34182#endif
34183
34184#undef $ac_func
34185
34186/* Override any gcc2 internal prototype to avoid an error. */
34187#ifdef __cplusplus
34188extern "C"
34189{
34190#endif
34191/* We use char because int might match the return type of a gcc2
34192 builtin and then its argument prototype would still apply. */
34193char $ac_func ();
34194/* The GNU C library defines this for functions which it implements
34195 to always fail with ENOSYS. Some functions are actually named
34196 something starting with __ and the normal name is an alias. */
34197#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34198choke me
34199#else
34200char (*f) () = $ac_func;
34201#endif
34202#ifdef __cplusplus
34203}
34204#endif
34205
34206int
34207main ()
34208{
34209return f != $ac_func;
34210 ;
34211 return 0;
34212}
34213_ACEOF
34214rm -f conftest.$ac_objext conftest$ac_exeext
34215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34216 (eval $ac_link) 2>conftest.er1
34217 ac_status=$?
34218 grep -v '^ *+' conftest.er1 >conftest.err
34219 rm -f conftest.er1
34220 cat conftest.err >&5
34221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222 (exit $ac_status); } &&
5d7b7554 34223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
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); }; } &&
34229 { ac_try='test -s conftest$ac_exeext'
34230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34231 (eval $ac_try) 2>&5
34232 ac_status=$?
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); }; }; then
34235 eval "$as_ac_var=yes"
34236else
34237 echo "$as_me: failed program was:" >&5
34238sed 's/^/| /' conftest.$ac_ext >&5
34239
34240eval "$as_ac_var=no"
34241fi
34242rm -f conftest.err conftest.$ac_objext \
34243 conftest$ac_exeext conftest.$ac_ext
34244fi
34245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34246echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34247if test `eval echo '${'$as_ac_var'}'` = yes; then
34248 cat >>confdefs.h <<_ACEOF
34249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34250_ACEOF
34251
34252fi
34253done
34254
34255fi
a848cd7e
SC
34256
34257
34258if test "$TOOLKIT" != "MSW"; then
34259
34260
a848cd7e
SC
34261
34262
34263
34264# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34265if test "${with_libiconv_prefix+set}" = set; then
34266 withval="$with_libiconv_prefix"
34267
34268 for dir in `echo "$withval" | tr : ' '`; do
34269 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34270 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34271 done
34272
34273fi;
34274
34275 echo "$as_me:$LINENO: checking for iconv" >&5
34276echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34277if test "${am_cv_func_iconv+set}" = set; then
34278 echo $ECHO_N "(cached) $ECHO_C" >&6
34279else
34280
34281 am_cv_func_iconv="no, consider installing GNU libiconv"
34282 am_cv_lib_iconv=no
34283 cat >conftest.$ac_ext <<_ACEOF
34284/* confdefs.h. */
34285_ACEOF
34286cat confdefs.h >>conftest.$ac_ext
34287cat >>conftest.$ac_ext <<_ACEOF
34288/* end confdefs.h. */
34289#include <stdlib.h>
34290#include <iconv.h>
34291int
34292main ()
34293{
34294iconv_t cd = iconv_open("","");
34295 iconv(cd,NULL,NULL,NULL,NULL);
34296 iconv_close(cd);
34297 ;
34298 return 0;
34299}
34300_ACEOF
34301rm -f conftest.$ac_objext conftest$ac_exeext
34302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34303 (eval $ac_link) 2>conftest.er1
a848cd7e 34304 ac_status=$?
ac1cb8d3
VS
34305 grep -v '^ *+' conftest.er1 >conftest.err
34306 rm -f conftest.er1
34307 cat conftest.err >&5
a848cd7e
SC
34308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34309 (exit $ac_status); } &&
5d7b7554 34310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34312 (eval $ac_try) 2>&5
34313 ac_status=$?
34314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34315 (exit $ac_status); }; } &&
34316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34318 (eval $ac_try) 2>&5
34319 ac_status=$?
34320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 (exit $ac_status); }; }; then
34322 am_cv_func_iconv=yes
34323else
34324 echo "$as_me: failed program was:" >&5
34325sed 's/^/| /' conftest.$ac_ext >&5
34326
34327fi
ac1cb8d3
VS
34328rm -f conftest.err conftest.$ac_objext \
34329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34330 if test "$am_cv_func_iconv" != yes; then
34331 am_save_LIBS="$LIBS"
34332 LIBS="$LIBS -liconv"
34333 cat >conftest.$ac_ext <<_ACEOF
34334/* confdefs.h. */
34335_ACEOF
34336cat confdefs.h >>conftest.$ac_ext
34337cat >>conftest.$ac_ext <<_ACEOF
34338/* end confdefs.h. */
34339#include <stdlib.h>
34340#include <iconv.h>
34341int
34342main ()
34343{
34344iconv_t cd = iconv_open("","");
34345 iconv(cd,NULL,NULL,NULL,NULL);
34346 iconv_close(cd);
34347 ;
34348 return 0;
34349}
34350_ACEOF
34351rm -f conftest.$ac_objext conftest$ac_exeext
34352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34353 (eval $ac_link) 2>conftest.er1
a848cd7e 34354 ac_status=$?
ac1cb8d3
VS
34355 grep -v '^ *+' conftest.er1 >conftest.err
34356 rm -f conftest.er1
34357 cat conftest.err >&5
a848cd7e
SC
34358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359 (exit $ac_status); } &&
5d7b7554 34360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34362 (eval $ac_try) 2>&5
34363 ac_status=$?
34364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365 (exit $ac_status); }; } &&
34366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34368 (eval $ac_try) 2>&5
34369 ac_status=$?
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); }; }; then
34372 am_cv_lib_iconv=yes
34373 am_cv_func_iconv=yes
34374else
34375 echo "$as_me: failed program was:" >&5
34376sed 's/^/| /' conftest.$ac_ext >&5
34377
34378fi
ac1cb8d3
VS
34379rm -f conftest.err conftest.$ac_objext \
34380 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34381 LIBS="$am_save_LIBS"
34382 fi
34383
34384fi
34385echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34386echo "${ECHO_T}$am_cv_func_iconv" >&6
34387 if test "$am_cv_func_iconv" = yes; then
34388
34389cat >>confdefs.h <<\_ACEOF
34390#define HAVE_ICONV 1
34391_ACEOF
34392
34393 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34394echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34395if test "${wx_cv_func_iconv_const+set}" = set; then
34396 echo $ECHO_N "(cached) $ECHO_C" >&6
34397else
34398 cat >conftest.$ac_ext <<_ACEOF
34399/* confdefs.h. */
34400_ACEOF
34401cat confdefs.h >>conftest.$ac_ext
34402cat >>conftest.$ac_ext <<_ACEOF
34403/* end confdefs.h. */
34404
34405#include <stdlib.h>
34406#include <iconv.h>
34407extern
34408#ifdef __cplusplus
34409"C"
34410#endif
34411#if defined(__STDC__) || defined(__cplusplus)
34412size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34413#else
34414size_t iconv();
34415#endif
34416
34417int
34418main ()
34419{
34420
34421 ;
34422 return 0;
34423}
34424_ACEOF
34425rm -f conftest.$ac_objext
34426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34427 (eval $ac_compile) 2>conftest.er1
a848cd7e 34428 ac_status=$?
ac1cb8d3
VS
34429 grep -v '^ *+' conftest.er1 >conftest.err
34430 rm -f conftest.er1
34431 cat conftest.err >&5
a848cd7e
SC
34432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433 (exit $ac_status); } &&
5d7b7554 34434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436 (eval $ac_try) 2>&5
34437 ac_status=$?
34438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); }; } &&
34440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34442 (eval $ac_try) 2>&5
34443 ac_status=$?
34444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); }; }; then
34446 wx_cv_func_iconv_const="no"
34447else
34448 echo "$as_me: failed program was:" >&5
34449sed 's/^/| /' conftest.$ac_ext >&5
34450
34451wx_cv_func_iconv_const="yes"
34452
34453fi
ac1cb8d3 34454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34455
34456fi
34457echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34458echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34459
34460 iconv_const=
34461 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34462 iconv_const="const"
34463 fi
34464
34465
34466cat >>confdefs.h <<_ACEOF
34467#define ICONV_CONST $iconv_const
34468_ACEOF
34469
34470 fi
34471 LIBICONV=
34472 if test "$am_cv_lib_iconv" = yes; then
34473 LIBICONV="-liconv"
34474 fi
34475
34476
34477LIBS="$LIBICONV $LIBS"
a848cd7e
SC
34478
34479if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34480
34481for ac_func in sigaction
34482do
34483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34484echo "$as_me:$LINENO: checking for $ac_func" >&5
34485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34486if eval "test \"\${$as_ac_var+set}\" = set"; then
34487 echo $ECHO_N "(cached) $ECHO_C" >&6
34488else
34489 cat >conftest.$ac_ext <<_ACEOF
34490/* confdefs.h. */
34491_ACEOF
34492cat confdefs.h >>conftest.$ac_ext
34493cat >>conftest.$ac_ext <<_ACEOF
34494/* end confdefs.h. */
ac1cb8d3
VS
34495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34497#define $ac_func innocuous_$ac_func
34498
a848cd7e
SC
34499/* System header to define __stub macros and hopefully few prototypes,
34500 which can conflict with char $ac_func (); below.
34501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34502 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34503
a848cd7e
SC
34504#ifdef __STDC__
34505# include <limits.h>
34506#else
34507# include <assert.h>
34508#endif
ac1cb8d3
VS
34509
34510#undef $ac_func
34511
a848cd7e
SC
34512/* Override any gcc2 internal prototype to avoid an error. */
34513#ifdef __cplusplus
34514extern "C"
34515{
34516#endif
34517/* We use char because int might match the return type of a gcc2
34518 builtin and then its argument prototype would still apply. */
34519char $ac_func ();
34520/* The GNU C library defines this for functions which it implements
34521 to always fail with ENOSYS. Some functions are actually named
34522 something starting with __ and the normal name is an alias. */
34523#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34524choke me
34525#else
34526char (*f) () = $ac_func;
34527#endif
34528#ifdef __cplusplus
34529}
34530#endif
34531
34532int
34533main ()
34534{
34535return f != $ac_func;
34536 ;
34537 return 0;
34538}
34539_ACEOF
34540rm -f conftest.$ac_objext conftest$ac_exeext
34541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34542 (eval $ac_link) 2>conftest.er1
a848cd7e 34543 ac_status=$?
ac1cb8d3
VS
34544 grep -v '^ *+' conftest.er1 >conftest.err
34545 rm -f conftest.er1
34546 cat conftest.err >&5
a848cd7e
SC
34547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548 (exit $ac_status); } &&
5d7b7554 34549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34551 (eval $ac_try) 2>&5
34552 ac_status=$?
34553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554 (exit $ac_status); }; } &&
34555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34557 (eval $ac_try) 2>&5
34558 ac_status=$?
34559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560 (exit $ac_status); }; }; then
34561 eval "$as_ac_var=yes"
34562else
34563 echo "$as_me: failed program was:" >&5
34564sed 's/^/| /' conftest.$ac_ext >&5
34565
34566eval "$as_ac_var=no"
34567fi
ac1cb8d3
VS
34568rm -f conftest.err conftest.$ac_objext \
34569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34570fi
34571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34572echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34573if test `eval echo '${'$as_ac_var'}'` = yes; then
34574 cat >>confdefs.h <<_ACEOF
34575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34576_ACEOF
34577
34578fi
34579done
34580
34581
34582 if test "$ac_cv_func_sigaction" = "no"; then
34583 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34584echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34585 wxUSE_ON_FATAL_EXCEPTION=no
34586 fi
34587
34588 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
34589 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34590echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34591if test "${wx_cv_type_sa_handler+set}" = set; then
34592 echo $ECHO_N "(cached) $ECHO_C" >&6
34593else
34594
34595 cat >conftest.$ac_ext <<_ACEOF
34596/* confdefs.h. */
34597_ACEOF
34598cat confdefs.h >>conftest.$ac_ext
34599cat >>conftest.$ac_ext <<_ACEOF
34600/* end confdefs.h. */
34601#include <signal.h>
34602int
34603main ()
34604{
34605
34606 extern void testSigHandler(int);
34607
34608 struct sigaction sa;
34609 sa.sa_handler = testSigHandler;
34610
34611 ;
34612 return 0;
34613}
34614_ACEOF
34615rm -f conftest.$ac_objext
34616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34617 (eval $ac_compile) 2>conftest.er1
a848cd7e 34618 ac_status=$?
ac1cb8d3
VS
34619 grep -v '^ *+' conftest.er1 >conftest.err
34620 rm -f conftest.er1
34621 cat conftest.err >&5
a848cd7e
SC
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); } &&
5d7b7554 34624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34626 (eval $ac_try) 2>&5
34627 ac_status=$?
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); }; } &&
34630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34632 (eval $ac_try) 2>&5
34633 ac_status=$?
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); }; }; then
34636
34637 wx_cv_type_sa_handler=int
34638
34639else
34640 echo "$as_me: failed program was:" >&5
34641sed 's/^/| /' conftest.$ac_ext >&5
34642
34643
34644 wx_cv_type_sa_handler=void
34645
34646fi
ac1cb8d3 34647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34648
34649fi
34650echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34651echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34652
a848cd7e
SC
34653 cat >>confdefs.h <<_ACEOF
34654#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34655_ACEOF
34656
34657 fi
34658fi
34659
eaff0f0d 34660if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
34661 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34662echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34663if test "${wx_cv_func_backtrace+set}" = set; then
34664 echo $ECHO_N "(cached) $ECHO_C" >&6
34665else
34666
34667 cat >conftest.$ac_ext <<_ACEOF
34668/* confdefs.h. */
34669_ACEOF
34670cat confdefs.h >>conftest.$ac_ext
34671cat >>conftest.$ac_ext <<_ACEOF
34672/* end confdefs.h. */
34673#include <execinfo.h>
34674int
34675main ()
34676{
34677
34678 void *trace[1];
34679 char **messages;
34680
34681 backtrace(trace, 1);
34682 messages = backtrace_symbols(trace, 1);
34683
34684 ;
34685 return 0;
34686}
34687_ACEOF
34688rm -f conftest.$ac_objext
34689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34690 (eval $ac_compile) 2>conftest.er1
34691 ac_status=$?
34692 grep -v '^ *+' conftest.er1 >conftest.err
34693 rm -f conftest.er1
34694 cat conftest.err >&5
34695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34696 (exit $ac_status); } &&
5d7b7554 34697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34699 (eval $ac_try) 2>&5
34700 ac_status=$?
34701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702 (exit $ac_status); }; } &&
34703 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34709 wx_cv_func_backtrace=yes
34710else
34711 echo "$as_me: failed program was:" >&5
34712sed 's/^/| /' conftest.$ac_ext >&5
34713
34714wx_cv_func_backtrace=no
34715
34716fi
34717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34718
34719
34720fi
34721echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34722echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34723
34724
34725 if test "$wx_cv_func_backtrace" = "no"; then
34726 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34727echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34728 wxUSE_STACKWALKER=no
34729 else
34730 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34731echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34732if test "${wx_cv_func_cxa_demangle+set}" = set; then
34733 echo $ECHO_N "(cached) $ECHO_C" >&6
34734else
34735
34736 cat >conftest.$ac_ext <<_ACEOF
34737/* confdefs.h. */
34738_ACEOF
34739cat confdefs.h >>conftest.$ac_ext
34740cat >>conftest.$ac_ext <<_ACEOF
34741/* end confdefs.h. */
34742#include <cxxabi.h>
34743int
34744main ()
34745{
34746
34747 int rc;
34748 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34749
34750 ;
34751 return 0;
34752}
34753_ACEOF
dfe0c803
JS
34754rm -f conftest.$ac_objext conftest$ac_exeext
34755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34756 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34757 ac_status=$?
34758 grep -v '^ *+' conftest.er1 >conftest.err
34759 rm -f conftest.er1
34760 cat conftest.err >&5
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); } &&
5d7b7554 34763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34765 (eval $ac_try) 2>&5
34766 ac_status=$?
34767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34768 (exit $ac_status); }; } &&
dfe0c803 34769 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34771 (eval $ac_try) 2>&5
34772 ac_status=$?
34773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34774 (exit $ac_status); }; }; then
34775 wx_cv_func_cxa_demangle=yes
34776else
34777 echo "$as_me: failed program was:" >&5
34778sed 's/^/| /' conftest.$ac_ext >&5
34779
34780wx_cv_func_cxa_demangle=no
34781
34782fi
dfe0c803
JS
34783rm -f conftest.err conftest.$ac_objext \
34784 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34785
34786
34787fi
34788echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34789echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34790
34791 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34792 cat >>confdefs.h <<\_ACEOF
34793#define HAVE_CXA_DEMANGLE 1
34794_ACEOF
34795
34796 fi
34797 fi
eaff0f0d
VZ
34798fi
34799
898beab1
DE
34800if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34801 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34802echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34803 wxUSE_STACKWALKER=no
34804fi
34805
34806
a848cd7e
SC
34807
34808
34809for ac_func in mkstemp mktemp
34810do
34811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34812echo "$as_me:$LINENO: checking for $ac_func" >&5
34813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34814if eval "test \"\${$as_ac_var+set}\" = set"; then
34815 echo $ECHO_N "(cached) $ECHO_C" >&6
34816else
34817 cat >conftest.$ac_ext <<_ACEOF
34818/* confdefs.h. */
34819_ACEOF
34820cat confdefs.h >>conftest.$ac_ext
34821cat >>conftest.$ac_ext <<_ACEOF
34822/* end confdefs.h. */
ac1cb8d3
VS
34823/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34825#define $ac_func innocuous_$ac_func
34826
a848cd7e
SC
34827/* System header to define __stub macros and hopefully few prototypes,
34828 which can conflict with char $ac_func (); below.
34829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34830 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34831
a848cd7e
SC
34832#ifdef __STDC__
34833# include <limits.h>
34834#else
34835# include <assert.h>
34836#endif
ac1cb8d3
VS
34837
34838#undef $ac_func
34839
a848cd7e
SC
34840/* Override any gcc2 internal prototype to avoid an error. */
34841#ifdef __cplusplus
34842extern "C"
34843{
34844#endif
34845/* We use char because int might match the return type of a gcc2
34846 builtin and then its argument prototype would still apply. */
34847char $ac_func ();
34848/* The GNU C library defines this for functions which it implements
34849 to always fail with ENOSYS. Some functions are actually named
34850 something starting with __ and the normal name is an alias. */
34851#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34852choke me
34853#else
34854char (*f) () = $ac_func;
34855#endif
34856#ifdef __cplusplus
34857}
34858#endif
34859
34860int
34861main ()
34862{
34863return f != $ac_func;
34864 ;
34865 return 0;
34866}
34867_ACEOF
34868rm -f conftest.$ac_objext conftest$ac_exeext
34869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34870 (eval $ac_link) 2>conftest.er1
a848cd7e 34871 ac_status=$?
ac1cb8d3
VS
34872 grep -v '^ *+' conftest.er1 >conftest.err
34873 rm -f conftest.er1
34874 cat conftest.err >&5
a848cd7e
SC
34875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876 (exit $ac_status); } &&
5d7b7554 34877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34879 (eval $ac_try) 2>&5
34880 ac_status=$?
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); }; } &&
34883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34885 (eval $ac_try) 2>&5
34886 ac_status=$?
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); }; }; then
34889 eval "$as_ac_var=yes"
34890else
34891 echo "$as_me: failed program was:" >&5
34892sed 's/^/| /' conftest.$ac_ext >&5
34893
34894eval "$as_ac_var=no"
34895fi
ac1cb8d3
VS
34896rm -f conftest.err conftest.$ac_objext \
34897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34898fi
34899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34900echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34901if test `eval echo '${'$as_ac_var'}'` = yes; then
34902 cat >>confdefs.h <<_ACEOF
34903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34904_ACEOF
34905 break
34906fi
34907done
34908
34909
34910echo "$as_me:$LINENO: checking for statfs" >&5
34911echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34912if test "${wx_cv_func_statfs+set}" = set; then
34913 echo $ECHO_N "(cached) $ECHO_C" >&6
34914else
34915 cat >conftest.$ac_ext <<_ACEOF
34916/* confdefs.h. */
34917_ACEOF
34918cat confdefs.h >>conftest.$ac_ext
34919cat >>conftest.$ac_ext <<_ACEOF
34920/* end confdefs.h. */
34921
34922 #if defined(__BSD__)
84ae7ca4
VZ
34923 #include <sys/param.h>
34924 #include <sys/mount.h>
a848cd7e 34925 #else
84ae7ca4 34926 #include <sys/vfs.h>
a848cd7e
SC
34927 #endif
34928
34929int
34930main ()
34931{
34932
34933 long l;
34934 struct statfs fs;
34935 statfs("/", &fs);
34936 l = fs.f_bsize;
34937 l += fs.f_blocks;
34938 l += fs.f_bavail;
34939
34940 ;
34941 return 0;
34942}
34943_ACEOF
34944rm -f conftest.$ac_objext
34945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34946 (eval $ac_compile) 2>conftest.er1
a848cd7e 34947 ac_status=$?
ac1cb8d3
VS
34948 grep -v '^ *+' conftest.er1 >conftest.err
34949 rm -f conftest.er1
34950 cat conftest.err >&5
a848cd7e
SC
34951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952 (exit $ac_status); } &&
5d7b7554 34953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34955 (eval $ac_try) 2>&5
34956 ac_status=$?
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); }; } &&
34959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34961 (eval $ac_try) 2>&5
34962 ac_status=$?
34963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964 (exit $ac_status); }; }; then
84ae7ca4 34965 wx_cv_func_statfs=yes
a848cd7e
SC
34966else
34967 echo "$as_me: failed program was:" >&5
34968sed 's/^/| /' conftest.$ac_ext >&5
34969
84ae7ca4 34970wx_cv_func_statfs=no
a848cd7e
SC
34971
34972fi
ac1cb8d3 34973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34974
34975fi
34976echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34977echo "${ECHO_T}$wx_cv_func_statfs" >&6
34978
34979if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 34980 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
34981echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34982if test "${wx_cv_func_statfs_decl+set}" = set; then
34983 echo $ECHO_N "(cached) $ECHO_C" >&6
34984else
0683aca6
VZ
34985 cat >conftest.$ac_ext <<_ACEOF
34986/* confdefs.h. */
34987_ACEOF
34988cat confdefs.h >>conftest.$ac_ext
34989cat >>conftest.$ac_ext <<_ACEOF
34990/* end confdefs.h. */
84ae7ca4 34991
0683aca6
VZ
34992 #if defined(__BSD__)
34993 #include <sys/param.h>
34994 #include <sys/mount.h>
34995 #else
34996 #include <sys/vfs.h>
34997 #endif
34998
34999int
35000main ()
35001{
35002
35003 struct statfs fs;
35004 statfs("", &fs);
35005
35006 ;
35007 return 0;
35008}
35009_ACEOF
35010rm -f conftest.$ac_objext
35011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35012 (eval $ac_compile) 2>conftest.er1
35013 ac_status=$?
35014 grep -v '^ *+' conftest.er1 >conftest.err
35015 rm -f conftest.er1
35016 cat conftest.err >&5
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); } &&
5d7b7554 35019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
35020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35021 (eval $ac_try) 2>&5
35022 ac_status=$?
35023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024 (exit $ac_status); }; } &&
35025 { ac_try='test -s conftest.$ac_objext'
35026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35027 (eval $ac_try) 2>&5
35028 ac_status=$?
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); }; }; then
35031 wx_cv_func_statfs_decl=yes
35032else
35033 echo "$as_me: failed program was:" >&5
35034sed 's/^/| /' conftest.$ac_ext >&5
35035
35036wx_cv_func_statfs_decl=no
35037
35038fi
35039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35040
35041fi
35042echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35043echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35044
35045 if test "$wx_cv_func_statfs_decl" = "yes"; then
35046 cat >>confdefs.h <<\_ACEOF
35047#define HAVE_STATFS_DECL 1
35048_ACEOF
35049
35050 fi
35051
a848cd7e
SC
35052 wx_cv_type_statvfs_t="struct statfs"
35053 cat >>confdefs.h <<\_ACEOF
35054#define HAVE_STATFS 1
35055_ACEOF
35056
35057else
35058 echo "$as_me:$LINENO: checking for statvfs" >&5
35059echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35060if test "${wx_cv_func_statvfs+set}" = set; then
35061 echo $ECHO_N "(cached) $ECHO_C" >&6
35062else
35063 cat >conftest.$ac_ext <<_ACEOF
35064/* confdefs.h. */
35065_ACEOF
35066cat confdefs.h >>conftest.$ac_ext
35067cat >>conftest.$ac_ext <<_ACEOF
35068/* end confdefs.h. */
35069
35070 #include <stddef.h>
35071 #include <sys/statvfs.h>
35072
35073int
35074main ()
35075{
35076
35077 statvfs("/", NULL);
35078
35079 ;
35080 return 0;
35081}
35082_ACEOF
35083rm -f conftest.$ac_objext
35084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35085 (eval $ac_compile) 2>conftest.er1
a848cd7e 35086 ac_status=$?
ac1cb8d3
VS
35087 grep -v '^ *+' conftest.er1 >conftest.err
35088 rm -f conftest.er1
35089 cat conftest.err >&5
a848cd7e
SC
35090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35091 (exit $ac_status); } &&
5d7b7554 35092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35094 (eval $ac_try) 2>&5
35095 ac_status=$?
35096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35097 (exit $ac_status); }; } &&
35098 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35100 (eval $ac_try) 2>&5
35101 ac_status=$?
35102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103 (exit $ac_status); }; }; then
35104 wx_cv_func_statvfs=yes
35105else
35106 echo "$as_me: failed program was:" >&5
35107sed 's/^/| /' conftest.$ac_ext >&5
35108
35109wx_cv_func_statvfs=no
35110
35111fi
ac1cb8d3 35112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35113
35114fi
35115echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35116echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35117
35118 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 35119 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
35120echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35121if test "${wx_cv_type_statvfs_t+set}" = set; then
35122 echo $ECHO_N "(cached) $ECHO_C" >&6
35123else
35124 cat >conftest.$ac_ext <<_ACEOF
35125/* confdefs.h. */
35126_ACEOF
35127cat confdefs.h >>conftest.$ac_ext
35128cat >>conftest.$ac_ext <<_ACEOF
35129/* end confdefs.h. */
35130
35131 #include <sys/statvfs.h>
35132
35133int
35134main ()
35135{
35136
35137 long l;
35138 statvfs_t fs;
35139 statvfs("/", &fs);
35140 l = fs.f_bsize;
35141 l += fs.f_blocks;
35142 l += fs.f_bavail;
35143
35144 ;
35145 return 0;
35146}
35147_ACEOF
35148rm -f conftest.$ac_objext
35149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35150 (eval $ac_compile) 2>conftest.er1
a848cd7e 35151 ac_status=$?
ac1cb8d3
VS
35152 grep -v '^ *+' conftest.er1 >conftest.err
35153 rm -f conftest.er1
35154 cat conftest.err >&5
a848cd7e
SC
35155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156 (exit $ac_status); } &&
5d7b7554 35157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35159 (eval $ac_try) 2>&5
35160 ac_status=$?
35161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35162 (exit $ac_status); }; } &&
35163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35165 (eval $ac_try) 2>&5
35166 ac_status=$?
35167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168 (exit $ac_status); }; }; then
35169 wx_cv_type_statvfs_t=statvfs_t
35170else
35171 echo "$as_me: failed program was:" >&5
35172sed 's/^/| /' conftest.$ac_ext >&5
35173
35174
35175 cat >conftest.$ac_ext <<_ACEOF
35176/* confdefs.h. */
35177_ACEOF
35178cat confdefs.h >>conftest.$ac_ext
35179cat >>conftest.$ac_ext <<_ACEOF
35180/* end confdefs.h. */
35181
35182 #include <sys/statvfs.h>
35183
35184int
35185main ()
35186{
35187
35188 long l;
35189 struct statvfs fs;
35190 statvfs("/", &fs);
35191 l = fs.f_bsize;
35192 l += fs.f_blocks;
35193 l += fs.f_bavail;
35194
35195 ;
35196 return 0;
35197}
35198_ACEOF
35199rm -f conftest.$ac_objext
35200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35201 (eval $ac_compile) 2>conftest.er1
a848cd7e 35202 ac_status=$?
ac1cb8d3
VS
35203 grep -v '^ *+' conftest.er1 >conftest.err
35204 rm -f conftest.er1
35205 cat conftest.err >&5
a848cd7e
SC
35206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207 (exit $ac_status); } &&
5d7b7554 35208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210 (eval $ac_try) 2>&5
35211 ac_status=$?
35212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); }; } &&
35214 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216 (eval $ac_try) 2>&5
35217 ac_status=$?
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); }; }; then
35220 wx_cv_type_statvfs_t="struct statvfs"
35221else
35222 echo "$as_me: failed program was:" >&5
35223sed 's/^/| /' conftest.$ac_ext >&5
35224
35225wx_cv_type_statvfs_t="unknown"
35226
35227fi
ac1cb8d3 35228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35229
35230
35231fi
ac1cb8d3 35232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35233
35234fi
35235echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35236echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35237
a848cd7e
SC
35238 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35239 cat >>confdefs.h <<\_ACEOF
35240#define HAVE_STATVFS 1
35241_ACEOF
35242
35243 fi
35244 else
35245 wx_cv_type_statvfs_t="unknown"
35246 fi
35247fi
35248
35249if test "$wx_cv_type_statvfs_t" != "unknown"; then
35250 cat >>confdefs.h <<_ACEOF
35251#define WX_STATFS_T $wx_cv_type_statvfs_t
35252_ACEOF
35253
35254else
35255 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35256echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35257fi
35258
35259if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35260
35261
35262for ac_func in fcntl flock
35263do
35264as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35265echo "$as_me:$LINENO: checking for $ac_func" >&5
35266echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35267if eval "test \"\${$as_ac_var+set}\" = set"; then
35268 echo $ECHO_N "(cached) $ECHO_C" >&6
35269else
35270 cat >conftest.$ac_ext <<_ACEOF
35271/* confdefs.h. */
35272_ACEOF
35273cat confdefs.h >>conftest.$ac_ext
35274cat >>conftest.$ac_ext <<_ACEOF
35275/* end confdefs.h. */
ac1cb8d3
VS
35276/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35278#define $ac_func innocuous_$ac_func
35279
a848cd7e
SC
35280/* System header to define __stub macros and hopefully few prototypes,
35281 which can conflict with char $ac_func (); below.
35282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35283 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35284
a848cd7e
SC
35285#ifdef __STDC__
35286# include <limits.h>
35287#else
35288# include <assert.h>
35289#endif
ac1cb8d3
VS
35290
35291#undef $ac_func
35292
a848cd7e
SC
35293/* Override any gcc2 internal prototype to avoid an error. */
35294#ifdef __cplusplus
35295extern "C"
35296{
35297#endif
35298/* We use char because int might match the return type of a gcc2
35299 builtin and then its argument prototype would still apply. */
35300char $ac_func ();
35301/* The GNU C library defines this for functions which it implements
35302 to always fail with ENOSYS. Some functions are actually named
35303 something starting with __ and the normal name is an alias. */
35304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35305choke me
35306#else
35307char (*f) () = $ac_func;
35308#endif
35309#ifdef __cplusplus
35310}
35311#endif
35312
35313int
35314main ()
35315{
35316return f != $ac_func;
35317 ;
35318 return 0;
35319}
35320_ACEOF
35321rm -f conftest.$ac_objext conftest$ac_exeext
35322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35323 (eval $ac_link) 2>conftest.er1
a848cd7e 35324 ac_status=$?
ac1cb8d3
VS
35325 grep -v '^ *+' conftest.er1 >conftest.err
35326 rm -f conftest.er1
35327 cat conftest.err >&5
a848cd7e
SC
35328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329 (exit $ac_status); } &&
5d7b7554 35330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35332 (eval $ac_try) 2>&5
35333 ac_status=$?
35334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35335 (exit $ac_status); }; } &&
35336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35338 (eval $ac_try) 2>&5
35339 ac_status=$?
35340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341 (exit $ac_status); }; }; then
35342 eval "$as_ac_var=yes"
35343else
35344 echo "$as_me: failed program was:" >&5
35345sed 's/^/| /' conftest.$ac_ext >&5
35346
35347eval "$as_ac_var=no"
35348fi
ac1cb8d3
VS
35349rm -f conftest.err conftest.$ac_objext \
35350 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35351fi
35352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35353echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35354if test `eval echo '${'$as_ac_var'}'` = yes; then
35355 cat >>confdefs.h <<_ACEOF
35356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35357_ACEOF
35358 break
35359fi
35360done
35361
35362
35363 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35364 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35365echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35366 wxUSE_SNGLINST_CHECKER=no
35367 fi
35368fi
35369
35370
35371for ac_func in timegm
35372do
35373as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35374echo "$as_me:$LINENO: checking for $ac_func" >&5
35375echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35376if eval "test \"\${$as_ac_var+set}\" = set"; then
35377 echo $ECHO_N "(cached) $ECHO_C" >&6
35378else
35379 cat >conftest.$ac_ext <<_ACEOF
35380/* confdefs.h. */
35381_ACEOF
35382cat confdefs.h >>conftest.$ac_ext
35383cat >>conftest.$ac_ext <<_ACEOF
35384/* end confdefs.h. */
ac1cb8d3
VS
35385/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35387#define $ac_func innocuous_$ac_func
35388
a848cd7e
SC
35389/* System header to define __stub macros and hopefully few prototypes,
35390 which can conflict with char $ac_func (); below.
35391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35392 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35393
a848cd7e
SC
35394#ifdef __STDC__
35395# include <limits.h>
35396#else
35397# include <assert.h>
35398#endif
ac1cb8d3
VS
35399
35400#undef $ac_func
35401
a848cd7e
SC
35402/* Override any gcc2 internal prototype to avoid an error. */
35403#ifdef __cplusplus
35404extern "C"
35405{
35406#endif
35407/* We use char because int might match the return type of a gcc2
35408 builtin and then its argument prototype would still apply. */
35409char $ac_func ();
35410/* The GNU C library defines this for functions which it implements
35411 to always fail with ENOSYS. Some functions are actually named
35412 something starting with __ and the normal name is an alias. */
35413#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35414choke me
35415#else
35416char (*f) () = $ac_func;
35417#endif
35418#ifdef __cplusplus
35419}
35420#endif
35421
35422int
35423main ()
35424{
35425return f != $ac_func;
35426 ;
35427 return 0;
35428}
35429_ACEOF
35430rm -f conftest.$ac_objext conftest$ac_exeext
35431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35432 (eval $ac_link) 2>conftest.er1
a848cd7e 35433 ac_status=$?
ac1cb8d3
VS
35434 grep -v '^ *+' conftest.er1 >conftest.err
35435 rm -f conftest.er1
35436 cat conftest.err >&5
a848cd7e
SC
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); } &&
5d7b7554 35439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441 (eval $ac_try) 2>&5
35442 ac_status=$?
35443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444 (exit $ac_status); }; } &&
35445 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35447 (eval $ac_try) 2>&5
35448 ac_status=$?
35449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450 (exit $ac_status); }; }; then
35451 eval "$as_ac_var=yes"
35452else
35453 echo "$as_me: failed program was:" >&5
35454sed 's/^/| /' conftest.$ac_ext >&5
35455
35456eval "$as_ac_var=no"
35457fi
ac1cb8d3
VS
35458rm -f conftest.err conftest.$ac_objext \
35459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35460fi
35461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35462echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35463if test `eval echo '${'$as_ac_var'}'` = yes; then
35464 cat >>confdefs.h <<_ACEOF
35465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35466_ACEOF
35467
35468fi
35469done
35470
35471
35472
35473
35474for ac_func in putenv setenv
35475do
35476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35477echo "$as_me:$LINENO: checking for $ac_func" >&5
35478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35479if eval "test \"\${$as_ac_var+set}\" = set"; then
35480 echo $ECHO_N "(cached) $ECHO_C" >&6
35481else
35482 cat >conftest.$ac_ext <<_ACEOF
35483/* confdefs.h. */
35484_ACEOF
35485cat confdefs.h >>conftest.$ac_ext
35486cat >>conftest.$ac_ext <<_ACEOF
35487/* end confdefs.h. */
ac1cb8d3
VS
35488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35490#define $ac_func innocuous_$ac_func
35491
a848cd7e
SC
35492/* System header to define __stub macros and hopefully few prototypes,
35493 which can conflict with char $ac_func (); below.
35494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35495 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35496
a848cd7e
SC
35497#ifdef __STDC__
35498# include <limits.h>
35499#else
35500# include <assert.h>
35501#endif
ac1cb8d3
VS
35502
35503#undef $ac_func
35504
a848cd7e
SC
35505/* Override any gcc2 internal prototype to avoid an error. */
35506#ifdef __cplusplus
35507extern "C"
35508{
35509#endif
35510/* We use char because int might match the return type of a gcc2
35511 builtin and then its argument prototype would still apply. */
35512char $ac_func ();
35513/* The GNU C library defines this for functions which it implements
35514 to always fail with ENOSYS. Some functions are actually named
35515 something starting with __ and the normal name is an alias. */
35516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35517choke me
35518#else
35519char (*f) () = $ac_func;
35520#endif
35521#ifdef __cplusplus
35522}
35523#endif
35524
35525int
35526main ()
35527{
35528return f != $ac_func;
35529 ;
35530 return 0;
35531}
35532_ACEOF
35533rm -f conftest.$ac_objext conftest$ac_exeext
35534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35535 (eval $ac_link) 2>conftest.er1
a848cd7e 35536 ac_status=$?
ac1cb8d3
VS
35537 grep -v '^ *+' conftest.er1 >conftest.err
35538 rm -f conftest.er1
35539 cat conftest.err >&5
a848cd7e
SC
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); } &&
5d7b7554 35542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35544 (eval $ac_try) 2>&5
35545 ac_status=$?
35546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547 (exit $ac_status); }; } &&
35548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35550 (eval $ac_try) 2>&5
35551 ac_status=$?
35552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553 (exit $ac_status); }; }; then
35554 eval "$as_ac_var=yes"
35555else
35556 echo "$as_me: failed program was:" >&5
35557sed 's/^/| /' conftest.$ac_ext >&5
35558
35559eval "$as_ac_var=no"
35560fi
ac1cb8d3
VS
35561rm -f conftest.err conftest.$ac_objext \
35562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35563fi
35564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35566if test `eval echo '${'$as_ac_var'}'` = yes; then
35567 cat >>confdefs.h <<_ACEOF
35568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35569_ACEOF
35570 break
35571fi
35572done
35573
35574
35575HAVE_SOME_SLEEP_FUNC=0
35576if test "$USE_BEOS" = 1; then
35577 cat >>confdefs.h <<\_ACEOF
35578#define HAVE_SLEEP 1
35579_ACEOF
35580
35581 HAVE_SOME_SLEEP_FUNC=1
35582fi
35583
35584if test "$USE_DARWIN" = 1; then
35585 cat >>confdefs.h <<\_ACEOF
35586#define HAVE_USLEEP 1
35587_ACEOF
35588
35589 HAVE_SOME_SLEEP_FUNC=1
35590fi
35591
35592if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35593 POSIX4_LINK=
35594
35595for ac_func in nanosleep
35596do
35597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35598echo "$as_me:$LINENO: checking for $ac_func" >&5
35599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35600if eval "test \"\${$as_ac_var+set}\" = set"; then
35601 echo $ECHO_N "(cached) $ECHO_C" >&6
35602else
35603 cat >conftest.$ac_ext <<_ACEOF
35604/* confdefs.h. */
35605_ACEOF
35606cat confdefs.h >>conftest.$ac_ext
35607cat >>conftest.$ac_ext <<_ACEOF
35608/* end confdefs.h. */
ac1cb8d3
VS
35609/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35611#define $ac_func innocuous_$ac_func
35612
a848cd7e
SC
35613/* System header to define __stub macros and hopefully few prototypes,
35614 which can conflict with char $ac_func (); below.
35615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35616 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35617
a848cd7e
SC
35618#ifdef __STDC__
35619# include <limits.h>
35620#else
35621# include <assert.h>
35622#endif
ac1cb8d3
VS
35623
35624#undef $ac_func
35625
a848cd7e
SC
35626/* Override any gcc2 internal prototype to avoid an error. */
35627#ifdef __cplusplus
35628extern "C"
35629{
35630#endif
35631/* We use char because int might match the return type of a gcc2
35632 builtin and then its argument prototype would still apply. */
35633char $ac_func ();
35634/* The GNU C library defines this for functions which it implements
35635 to always fail with ENOSYS. Some functions are actually named
35636 something starting with __ and the normal name is an alias. */
35637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35638choke me
35639#else
35640char (*f) () = $ac_func;
35641#endif
35642#ifdef __cplusplus
35643}
35644#endif
35645
35646int
35647main ()
35648{
35649return f != $ac_func;
35650 ;
35651 return 0;
35652}
35653_ACEOF
35654rm -f conftest.$ac_objext conftest$ac_exeext
35655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35656 (eval $ac_link) 2>conftest.er1
a848cd7e 35657 ac_status=$?
ac1cb8d3
VS
35658 grep -v '^ *+' conftest.er1 >conftest.err
35659 rm -f conftest.er1
35660 cat conftest.err >&5
a848cd7e
SC
35661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35662 (exit $ac_status); } &&
5d7b7554 35663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35665 (eval $ac_try) 2>&5
35666 ac_status=$?
35667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35668 (exit $ac_status); }; } &&
35669 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35671 (eval $ac_try) 2>&5
35672 ac_status=$?
35673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674 (exit $ac_status); }; }; then
35675 eval "$as_ac_var=yes"
35676else
35677 echo "$as_me: failed program was:" >&5
35678sed 's/^/| /' conftest.$ac_ext >&5
35679
35680eval "$as_ac_var=no"
35681fi
ac1cb8d3
VS
35682rm -f conftest.err conftest.$ac_objext \
35683 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35684fi
35685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35686echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35687if test `eval echo '${'$as_ac_var'}'` = yes; then
35688 cat >>confdefs.h <<_ACEOF
35689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35690_ACEOF
35691 cat >>confdefs.h <<\_ACEOF
35692#define HAVE_NANOSLEEP 1
35693_ACEOF
35694
35695else
35696
35697 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35698echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35699if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35700 echo $ECHO_N "(cached) $ECHO_C" >&6
35701else
35702 ac_check_lib_save_LIBS=$LIBS
35703LIBS="-lposix4 $LIBS"
35704cat >conftest.$ac_ext <<_ACEOF
35705/* confdefs.h. */
35706_ACEOF
35707cat confdefs.h >>conftest.$ac_ext
35708cat >>conftest.$ac_ext <<_ACEOF
35709/* end confdefs.h. */
35710
35711/* Override any gcc2 internal prototype to avoid an error. */
35712#ifdef __cplusplus
35713extern "C"
35714#endif
35715/* We use char because int might match the return type of a gcc2
35716 builtin and then its argument prototype would still apply. */
35717char nanosleep ();
35718int
35719main ()
35720{
35721nanosleep ();
35722 ;
35723 return 0;
35724}
35725_ACEOF
35726rm -f conftest.$ac_objext conftest$ac_exeext
35727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35728 (eval $ac_link) 2>conftest.er1
a848cd7e 35729 ac_status=$?
ac1cb8d3
VS
35730 grep -v '^ *+' conftest.er1 >conftest.err
35731 rm -f conftest.er1
35732 cat conftest.err >&5
a848cd7e
SC
35733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); } &&
5d7b7554 35735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35737 (eval $ac_try) 2>&5
35738 ac_status=$?
35739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740 (exit $ac_status); }; } &&
35741 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35743 (eval $ac_try) 2>&5
35744 ac_status=$?
35745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746 (exit $ac_status); }; }; then
35747 ac_cv_lib_posix4_nanosleep=yes
35748else
35749 echo "$as_me: failed program was:" >&5
35750sed 's/^/| /' conftest.$ac_ext >&5
35751
35752ac_cv_lib_posix4_nanosleep=no
35753fi
ac1cb8d3
VS
35754rm -f conftest.err conftest.$ac_objext \
35755 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35756LIBS=$ac_check_lib_save_LIBS
35757fi
35758echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35759echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35760if test $ac_cv_lib_posix4_nanosleep = yes; then
35761
35762 cat >>confdefs.h <<\_ACEOF
35763#define HAVE_NANOSLEEP 1
35764_ACEOF
35765
35766 POSIX4_LINK=" -lposix4"
35767
35768else
35769
35770
35771for ac_func in usleep
35772do
35773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35774echo "$as_me:$LINENO: checking for $ac_func" >&5
35775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35776if eval "test \"\${$as_ac_var+set}\" = set"; then
35777 echo $ECHO_N "(cached) $ECHO_C" >&6
35778else
35779 cat >conftest.$ac_ext <<_ACEOF
35780/* confdefs.h. */
35781_ACEOF
35782cat confdefs.h >>conftest.$ac_ext
35783cat >>conftest.$ac_ext <<_ACEOF
35784/* end confdefs.h. */
ac1cb8d3
VS
35785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35787#define $ac_func innocuous_$ac_func
35788
a848cd7e
SC
35789/* System header to define __stub macros and hopefully few prototypes,
35790 which can conflict with char $ac_func (); below.
35791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35792 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35793
a848cd7e
SC
35794#ifdef __STDC__
35795# include <limits.h>
35796#else
35797# include <assert.h>
35798#endif
ac1cb8d3
VS
35799
35800#undef $ac_func
35801
a848cd7e
SC
35802/* Override any gcc2 internal prototype to avoid an error. */
35803#ifdef __cplusplus
35804extern "C"
35805{
35806#endif
35807/* We use char because int might match the return type of a gcc2
35808 builtin and then its argument prototype would still apply. */
35809char $ac_func ();
35810/* The GNU C library defines this for functions which it implements
35811 to always fail with ENOSYS. Some functions are actually named
35812 something starting with __ and the normal name is an alias. */
35813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35814choke me
35815#else
35816char (*f) () = $ac_func;
35817#endif
35818#ifdef __cplusplus
35819}
35820#endif
35821
35822int
35823main ()
35824{
35825return f != $ac_func;
35826 ;
35827 return 0;
35828}
35829_ACEOF
35830rm -f conftest.$ac_objext conftest$ac_exeext
35831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35832 (eval $ac_link) 2>conftest.er1
a848cd7e 35833 ac_status=$?
ac1cb8d3
VS
35834 grep -v '^ *+' conftest.er1 >conftest.err
35835 rm -f conftest.er1
35836 cat conftest.err >&5
a848cd7e
SC
35837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838 (exit $ac_status); } &&
5d7b7554 35839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35841 (eval $ac_try) 2>&5
35842 ac_status=$?
35843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35844 (exit $ac_status); }; } &&
35845 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35847 (eval $ac_try) 2>&5
35848 ac_status=$?
35849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35850 (exit $ac_status); }; }; then
35851 eval "$as_ac_var=yes"
35852else
35853 echo "$as_me: failed program was:" >&5
35854sed 's/^/| /' conftest.$ac_ext >&5
35855
35856eval "$as_ac_var=no"
35857fi
ac1cb8d3
VS
35858rm -f conftest.err conftest.$ac_objext \
35859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35860fi
35861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35863if test `eval echo '${'$as_ac_var'}'` = yes; then
35864 cat >>confdefs.h <<_ACEOF
35865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35866_ACEOF
35867 cat >>confdefs.h <<\_ACEOF
35868#define HAVE_USLEEP 1
35869_ACEOF
35870
35871else
35872 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35873echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35874
35875fi
35876done
35877
35878
35879
35880fi
35881
35882
35883
35884fi
35885done
35886
35887fi
35888
35889
35890
35891for ac_func in uname gethostname
35892do
35893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35894echo "$as_me:$LINENO: checking for $ac_func" >&5
35895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35896if eval "test \"\${$as_ac_var+set}\" = set"; then
35897 echo $ECHO_N "(cached) $ECHO_C" >&6
35898else
35899 cat >conftest.$ac_ext <<_ACEOF
35900/* confdefs.h. */
35901_ACEOF
35902cat confdefs.h >>conftest.$ac_ext
35903cat >>conftest.$ac_ext <<_ACEOF
35904/* end confdefs.h. */
ac1cb8d3
VS
35905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35907#define $ac_func innocuous_$ac_func
35908
a848cd7e
SC
35909/* System header to define __stub macros and hopefully few prototypes,
35910 which can conflict with char $ac_func (); below.
35911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35912 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35913
a848cd7e
SC
35914#ifdef __STDC__
35915# include <limits.h>
35916#else
35917# include <assert.h>
35918#endif
ac1cb8d3
VS
35919
35920#undef $ac_func
35921
a848cd7e
SC
35922/* Override any gcc2 internal prototype to avoid an error. */
35923#ifdef __cplusplus
35924extern "C"
35925{
35926#endif
35927/* We use char because int might match the return type of a gcc2
35928 builtin and then its argument prototype would still apply. */
35929char $ac_func ();
35930/* The GNU C library defines this for functions which it implements
35931 to always fail with ENOSYS. Some functions are actually named
35932 something starting with __ and the normal name is an alias. */
35933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35934choke me
35935#else
35936char (*f) () = $ac_func;
35937#endif
35938#ifdef __cplusplus
35939}
35940#endif
35941
35942int
35943main ()
35944{
35945return f != $ac_func;
35946 ;
35947 return 0;
35948}
35949_ACEOF
35950rm -f conftest.$ac_objext conftest$ac_exeext
35951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35952 (eval $ac_link) 2>conftest.er1
a848cd7e 35953 ac_status=$?
ac1cb8d3
VS
35954 grep -v '^ *+' conftest.er1 >conftest.err
35955 rm -f conftest.er1
35956 cat conftest.err >&5
a848cd7e
SC
35957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958 (exit $ac_status); } &&
5d7b7554 35959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35961 (eval $ac_try) 2>&5
35962 ac_status=$?
35963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964 (exit $ac_status); }; } &&
35965 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35967 (eval $ac_try) 2>&5
35968 ac_status=$?
35969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970 (exit $ac_status); }; }; then
35971 eval "$as_ac_var=yes"
35972else
35973 echo "$as_me: failed program was:" >&5
35974sed 's/^/| /' conftest.$ac_ext >&5
35975
35976eval "$as_ac_var=no"
35977fi
ac1cb8d3
VS
35978rm -f conftest.err conftest.$ac_objext \
35979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35980fi
35981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35982echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35983if test `eval echo '${'$as_ac_var'}'` = yes; then
35984 cat >>confdefs.h <<_ACEOF
35985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35986_ACEOF
35987 break
35988fi
35989done
35990
35991
a848cd7e
SC
35992
35993for ac_func in strtok_r
35994do
35995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35996echo "$as_me:$LINENO: checking for $ac_func" >&5
35997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35998if eval "test \"\${$as_ac_var+set}\" = set"; then
35999 echo $ECHO_N "(cached) $ECHO_C" >&6
36000else
36001 cat >conftest.$ac_ext <<_ACEOF
36002/* confdefs.h. */
36003_ACEOF
36004cat confdefs.h >>conftest.$ac_ext
36005cat >>conftest.$ac_ext <<_ACEOF
36006/* end confdefs.h. */
ac1cb8d3
VS
36007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36009#define $ac_func innocuous_$ac_func
36010
a848cd7e
SC
36011/* System header to define __stub macros and hopefully few prototypes,
36012 which can conflict with char $ac_func (); below.
36013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36014 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36015
a848cd7e
SC
36016#ifdef __STDC__
36017# include <limits.h>
36018#else
36019# include <assert.h>
36020#endif
ac1cb8d3
VS
36021
36022#undef $ac_func
36023
a848cd7e
SC
36024/* Override any gcc2 internal prototype to avoid an error. */
36025#ifdef __cplusplus
36026extern "C"
36027{
36028#endif
36029/* We use char because int might match the return type of a gcc2
36030 builtin and then its argument prototype would still apply. */
36031char $ac_func ();
36032/* The GNU C library defines this for functions which it implements
36033 to always fail with ENOSYS. Some functions are actually named
36034 something starting with __ and the normal name is an alias. */
36035#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36036choke me
36037#else
36038char (*f) () = $ac_func;
36039#endif
36040#ifdef __cplusplus
36041}
36042#endif
36043
36044int
36045main ()
36046{
36047return f != $ac_func;
36048 ;
36049 return 0;
36050}
36051_ACEOF
36052rm -f conftest.$ac_objext conftest$ac_exeext
36053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36054 (eval $ac_link) 2>conftest.er1
a848cd7e 36055 ac_status=$?
ac1cb8d3
VS
36056 grep -v '^ *+' conftest.er1 >conftest.err
36057 rm -f conftest.er1
36058 cat conftest.err >&5
a848cd7e
SC
36059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 (exit $ac_status); } &&
5d7b7554 36061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
36067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36069 (eval $ac_try) 2>&5
36070 ac_status=$?
36071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072 (exit $ac_status); }; }; then
36073 eval "$as_ac_var=yes"
36074else
36075 echo "$as_me: failed program was:" >&5
36076sed 's/^/| /' conftest.$ac_ext >&5
36077
36078eval "$as_ac_var=no"
36079fi
ac1cb8d3
VS
36080rm -f conftest.err conftest.$ac_objext \
36081 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36082fi
36083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36085if test `eval echo '${'$as_ac_var'}'` = yes; then
36086 cat >>confdefs.h <<_ACEOF
36087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36088_ACEOF
36089
36090fi
36091done
36092
36093
a848cd7e
SC
36094INET_LINK=
36095
36096for ac_func in inet_addr
36097do
36098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36099echo "$as_me:$LINENO: checking for $ac_func" >&5
36100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36101if eval "test \"\${$as_ac_var+set}\" = set"; then
36102 echo $ECHO_N "(cached) $ECHO_C" >&6
36103else
36104 cat >conftest.$ac_ext <<_ACEOF
36105/* confdefs.h. */
36106_ACEOF
36107cat confdefs.h >>conftest.$ac_ext
36108cat >>conftest.$ac_ext <<_ACEOF
36109/* end confdefs.h. */
ac1cb8d3
VS
36110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36112#define $ac_func innocuous_$ac_func
36113
a848cd7e
SC
36114/* System header to define __stub macros and hopefully few prototypes,
36115 which can conflict with char $ac_func (); below.
36116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36117 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36118
a848cd7e
SC
36119#ifdef __STDC__
36120# include <limits.h>
36121#else
36122# include <assert.h>
36123#endif
ac1cb8d3
VS
36124
36125#undef $ac_func
36126
a848cd7e
SC
36127/* Override any gcc2 internal prototype to avoid an error. */
36128#ifdef __cplusplus
36129extern "C"
36130{
36131#endif
36132/* We use char because int might match the return type of a gcc2
36133 builtin and then its argument prototype would still apply. */
36134char $ac_func ();
36135/* The GNU C library defines this for functions which it implements
36136 to always fail with ENOSYS. Some functions are actually named
36137 something starting with __ and the normal name is an alias. */
36138#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36139choke me
36140#else
36141char (*f) () = $ac_func;
36142#endif
36143#ifdef __cplusplus
36144}
36145#endif
36146
36147int
36148main ()
36149{
36150return f != $ac_func;
36151 ;
36152 return 0;
36153}
36154_ACEOF
36155rm -f conftest.$ac_objext conftest$ac_exeext
36156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36157 (eval $ac_link) 2>conftest.er1
a848cd7e 36158 ac_status=$?
ac1cb8d3
VS
36159 grep -v '^ *+' conftest.er1 >conftest.err
36160 rm -f conftest.er1
36161 cat conftest.err >&5
a848cd7e
SC
36162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163 (exit $ac_status); } &&
5d7b7554 36164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36166 (eval $ac_try) 2>&5
36167 ac_status=$?
36168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36169 (exit $ac_status); }; } &&
36170 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36172 (eval $ac_try) 2>&5
36173 ac_status=$?
36174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175 (exit $ac_status); }; }; then
36176 eval "$as_ac_var=yes"
36177else
36178 echo "$as_me: failed program was:" >&5
36179sed 's/^/| /' conftest.$ac_ext >&5
36180
36181eval "$as_ac_var=no"
36182fi
ac1cb8d3
VS
36183rm -f conftest.err conftest.$ac_objext \
36184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36185fi
36186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36187echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36188if test `eval echo '${'$as_ac_var'}'` = yes; then
36189 cat >>confdefs.h <<_ACEOF
36190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36191_ACEOF
36192 cat >>confdefs.h <<\_ACEOF
36193#define HAVE_INET_ADDR 1
36194_ACEOF
36195
36196else
36197
36198 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36199echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36200if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36201 echo $ECHO_N "(cached) $ECHO_C" >&6
36202else
36203 ac_check_lib_save_LIBS=$LIBS
36204LIBS="-lnsl $LIBS"
36205cat >conftest.$ac_ext <<_ACEOF
36206/* confdefs.h. */
36207_ACEOF
36208cat confdefs.h >>conftest.$ac_ext
36209cat >>conftest.$ac_ext <<_ACEOF
36210/* end confdefs.h. */
36211
36212/* Override any gcc2 internal prototype to avoid an error. */
36213#ifdef __cplusplus
36214extern "C"
36215#endif
36216/* We use char because int might match the return type of a gcc2
36217 builtin and then its argument prototype would still apply. */
36218char inet_addr ();
36219int
36220main ()
36221{
36222inet_addr ();
36223 ;
36224 return 0;
36225}
36226_ACEOF
36227rm -f conftest.$ac_objext conftest$ac_exeext
36228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36229 (eval $ac_link) 2>conftest.er1
a848cd7e 36230 ac_status=$?
ac1cb8d3
VS
36231 grep -v '^ *+' conftest.er1 >conftest.err
36232 rm -f conftest.er1
36233 cat conftest.err >&5
a848cd7e
SC
36234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235 (exit $ac_status); } &&
5d7b7554 36236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36238 (eval $ac_try) 2>&5
36239 ac_status=$?
36240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241 (exit $ac_status); }; } &&
36242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36244 (eval $ac_try) 2>&5
36245 ac_status=$?
36246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247 (exit $ac_status); }; }; then
36248 ac_cv_lib_nsl_inet_addr=yes
36249else
36250 echo "$as_me: failed program was:" >&5
36251sed 's/^/| /' conftest.$ac_ext >&5
36252
36253ac_cv_lib_nsl_inet_addr=no
36254fi
ac1cb8d3
VS
36255rm -f conftest.err conftest.$ac_objext \
36256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36257LIBS=$ac_check_lib_save_LIBS
36258fi
36259echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36260echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36261if test $ac_cv_lib_nsl_inet_addr = yes; then
36262 INET_LINK="nsl"
36263else
36264
36265 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36266echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36267if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36268 echo $ECHO_N "(cached) $ECHO_C" >&6
36269else
36270 ac_check_lib_save_LIBS=$LIBS
36271LIBS="-lresolv $LIBS"
36272cat >conftest.$ac_ext <<_ACEOF
36273/* confdefs.h. */
36274_ACEOF
36275cat confdefs.h >>conftest.$ac_ext
36276cat >>conftest.$ac_ext <<_ACEOF
36277/* end confdefs.h. */
36278
36279/* Override any gcc2 internal prototype to avoid an error. */
36280#ifdef __cplusplus
36281extern "C"
36282#endif
36283/* We use char because int might match the return type of a gcc2
36284 builtin and then its argument prototype would still apply. */
36285char inet_addr ();
36286int
36287main ()
36288{
36289inet_addr ();
36290 ;
36291 return 0;
36292}
36293_ACEOF
36294rm -f conftest.$ac_objext conftest$ac_exeext
36295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36296 (eval $ac_link) 2>conftest.er1
a848cd7e 36297 ac_status=$?
ac1cb8d3
VS
36298 grep -v '^ *+' conftest.er1 >conftest.err
36299 rm -f conftest.er1
36300 cat conftest.err >&5
a848cd7e
SC
36301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302 (exit $ac_status); } &&
5d7b7554 36303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36305 (eval $ac_try) 2>&5
36306 ac_status=$?
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); }; } &&
36309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36311 (eval $ac_try) 2>&5
36312 ac_status=$?
36313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314 (exit $ac_status); }; }; then
36315 ac_cv_lib_resolv_inet_addr=yes
36316else
36317 echo "$as_me: failed program was:" >&5
36318sed 's/^/| /' conftest.$ac_ext >&5
36319
36320ac_cv_lib_resolv_inet_addr=no
36321fi
ac1cb8d3
VS
36322rm -f conftest.err conftest.$ac_objext \
36323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36324LIBS=$ac_check_lib_save_LIBS
36325fi
36326echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36327echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36328if test $ac_cv_lib_resolv_inet_addr = yes; then
36329 INET_LINK="resolv"
36330else
36331
36332 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36333echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36334if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36335 echo $ECHO_N "(cached) $ECHO_C" >&6
36336else
36337 ac_check_lib_save_LIBS=$LIBS
36338LIBS="-lsocket $LIBS"
36339cat >conftest.$ac_ext <<_ACEOF
36340/* confdefs.h. */
36341_ACEOF
36342cat confdefs.h >>conftest.$ac_ext
36343cat >>conftest.$ac_ext <<_ACEOF
36344/* end confdefs.h. */
36345
36346/* Override any gcc2 internal prototype to avoid an error. */
36347#ifdef __cplusplus
36348extern "C"
36349#endif
36350/* We use char because int might match the return type of a gcc2
36351 builtin and then its argument prototype would still apply. */
36352char inet_addr ();
36353int
36354main ()
36355{
36356inet_addr ();
36357 ;
36358 return 0;
36359}
36360_ACEOF
36361rm -f conftest.$ac_objext conftest$ac_exeext
36362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36363 (eval $ac_link) 2>conftest.er1
a848cd7e 36364 ac_status=$?
ac1cb8d3
VS
36365 grep -v '^ *+' conftest.er1 >conftest.err
36366 rm -f conftest.er1
36367 cat conftest.err >&5
a848cd7e
SC
36368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369 (exit $ac_status); } &&
5d7b7554 36370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36372 (eval $ac_try) 2>&5
36373 ac_status=$?
36374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); }; } &&
36376 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36378 (eval $ac_try) 2>&5
36379 ac_status=$?
36380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); }; }; then
36382 ac_cv_lib_socket_inet_addr=yes
36383else
36384 echo "$as_me: failed program was:" >&5
36385sed 's/^/| /' conftest.$ac_ext >&5
36386
36387ac_cv_lib_socket_inet_addr=no
36388fi
ac1cb8d3
VS
36389rm -f conftest.err conftest.$ac_objext \
36390 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36391LIBS=$ac_check_lib_save_LIBS
36392fi
36393echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36394echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36395if test $ac_cv_lib_socket_inet_addr = yes; then
36396 INET_LINK="socket"
36397
36398fi
36399
36400
36401
36402fi
36403
36404
36405
36406fi
36407
36408
36409
36410fi
36411done
36412
36413
36414
36415for ac_func in inet_aton
36416do
36417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36418echo "$as_me:$LINENO: checking for $ac_func" >&5
36419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36420if eval "test \"\${$as_ac_var+set}\" = set"; then
36421 echo $ECHO_N "(cached) $ECHO_C" >&6
36422else
36423 cat >conftest.$ac_ext <<_ACEOF
36424/* confdefs.h. */
36425_ACEOF
36426cat confdefs.h >>conftest.$ac_ext
36427cat >>conftest.$ac_ext <<_ACEOF
36428/* end confdefs.h. */
ac1cb8d3
VS
36429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36431#define $ac_func innocuous_$ac_func
36432
a848cd7e
SC
36433/* System header to define __stub macros and hopefully few prototypes,
36434 which can conflict with char $ac_func (); below.
36435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36436 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36437
a848cd7e
SC
36438#ifdef __STDC__
36439# include <limits.h>
36440#else
36441# include <assert.h>
36442#endif
ac1cb8d3
VS
36443
36444#undef $ac_func
36445
a848cd7e
SC
36446/* Override any gcc2 internal prototype to avoid an error. */
36447#ifdef __cplusplus
36448extern "C"
36449{
36450#endif
36451/* We use char because int might match the return type of a gcc2
36452 builtin and then its argument prototype would still apply. */
36453char $ac_func ();
36454/* The GNU C library defines this for functions which it implements
36455 to always fail with ENOSYS. Some functions are actually named
36456 something starting with __ and the normal name is an alias. */
36457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36458choke me
36459#else
36460char (*f) () = $ac_func;
36461#endif
36462#ifdef __cplusplus
36463}
36464#endif
36465
36466int
36467main ()
36468{
36469return f != $ac_func;
36470 ;
36471 return 0;
36472}
36473_ACEOF
36474rm -f conftest.$ac_objext conftest$ac_exeext
36475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36476 (eval $ac_link) 2>conftest.er1
a848cd7e 36477 ac_status=$?
ac1cb8d3
VS
36478 grep -v '^ *+' conftest.er1 >conftest.err
36479 rm -f conftest.er1
36480 cat conftest.err >&5
a848cd7e
SC
36481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36482 (exit $ac_status); } &&
5d7b7554 36483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36485 (eval $ac_try) 2>&5
36486 ac_status=$?
36487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488 (exit $ac_status); }; } &&
36489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
36495 eval "$as_ac_var=yes"
36496else
36497 echo "$as_me: failed program was:" >&5
36498sed 's/^/| /' conftest.$ac_ext >&5
36499
36500eval "$as_ac_var=no"
36501fi
ac1cb8d3
VS
36502rm -f conftest.err conftest.$ac_objext \
36503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36504fi
36505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36506echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36507if test `eval echo '${'$as_ac_var'}'` = yes; then
36508 cat >>confdefs.h <<_ACEOF
36509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36510_ACEOF
36511 cat >>confdefs.h <<\_ACEOF
36512#define HAVE_INET_ATON 1
36513_ACEOF
36514
36515else
36516
36517 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36518echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36519echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36520if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36521 echo $ECHO_N "(cached) $ECHO_C" >&6
36522else
36523 ac_check_lib_save_LIBS=$LIBS
36524LIBS="-l$INET_LINK $LIBS"
36525cat >conftest.$ac_ext <<_ACEOF
36526/* confdefs.h. */
36527_ACEOF
36528cat confdefs.h >>conftest.$ac_ext
36529cat >>conftest.$ac_ext <<_ACEOF
36530/* end confdefs.h. */
36531
36532/* Override any gcc2 internal prototype to avoid an error. */
36533#ifdef __cplusplus
36534extern "C"
36535#endif
36536/* We use char because int might match the return type of a gcc2
36537 builtin and then its argument prototype would still apply. */
36538char inet_aton ();
36539int
36540main ()
36541{
36542inet_aton ();
36543 ;
36544 return 0;
36545}
36546_ACEOF
36547rm -f conftest.$ac_objext conftest$ac_exeext
36548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36549 (eval $ac_link) 2>conftest.er1
a848cd7e 36550 ac_status=$?
ac1cb8d3
VS
36551 grep -v '^ *+' conftest.er1 >conftest.err
36552 rm -f conftest.er1
36553 cat conftest.err >&5
a848cd7e
SC
36554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36555 (exit $ac_status); } &&
5d7b7554 36556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36558 (eval $ac_try) 2>&5
36559 ac_status=$?
36560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561 (exit $ac_status); }; } &&
36562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36564 (eval $ac_try) 2>&5
36565 ac_status=$?
36566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567 (exit $ac_status); }; }; then
36568 eval "$as_ac_Lib=yes"
36569else
36570 echo "$as_me: failed program was:" >&5
36571sed 's/^/| /' conftest.$ac_ext >&5
36572
36573eval "$as_ac_Lib=no"
36574fi
ac1cb8d3
VS
36575rm -f conftest.err conftest.$ac_objext \
36576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36577LIBS=$ac_check_lib_save_LIBS
36578fi
36579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36580echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36581if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36582 cat >>confdefs.h <<\_ACEOF
36583#define HAVE_INET_ATON 1
36584_ACEOF
36585
36586fi
36587
36588
36589fi
36590done
36591
36592
36593if test "x$INET_LINK" != "x"; then
36594 cat >>confdefs.h <<\_ACEOF
36595#define HAVE_INET_ADDR 1
36596_ACEOF
36597
36598 INET_LINK=" -l$INET_LINK"
36599fi
36600
36601fi
36602
36603
36604
36605EXTRALIBS_ESD=
36606echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36607echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36608if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36609 echo $ECHO_N "(cached) $ECHO_C" >&6
36610else
36611 ac_check_lib_save_LIBS=$LIBS
36612LIBS="-lesd $LIBS"
36613cat >conftest.$ac_ext <<_ACEOF
36614/* confdefs.h. */
36615_ACEOF
36616cat confdefs.h >>conftest.$ac_ext
36617cat >>conftest.$ac_ext <<_ACEOF
36618/* end confdefs.h. */
36619
36620/* Override any gcc2 internal prototype to avoid an error. */
36621#ifdef __cplusplus
36622extern "C"
36623#endif
36624/* We use char because int might match the return type of a gcc2
36625 builtin and then its argument prototype would still apply. */
36626char esd_close ();
36627int
36628main ()
36629{
36630esd_close ();
36631 ;
36632 return 0;
36633}
36634_ACEOF
36635rm -f conftest.$ac_objext conftest$ac_exeext
36636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36637 (eval $ac_link) 2>conftest.er1
a848cd7e 36638 ac_status=$?
ac1cb8d3
VS
36639 grep -v '^ *+' conftest.er1 >conftest.err
36640 rm -f conftest.er1
36641 cat conftest.err >&5
a848cd7e
SC
36642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); } &&
5d7b7554 36644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36646 (eval $ac_try) 2>&5
36647 ac_status=$?
36648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36649 (exit $ac_status); }; } &&
36650 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36652 (eval $ac_try) 2>&5
36653 ac_status=$?
36654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36655 (exit $ac_status); }; }; then
36656 ac_cv_lib_esd_esd_close=yes
36657else
36658 echo "$as_me: failed program was:" >&5
36659sed 's/^/| /' conftest.$ac_ext >&5
36660
36661ac_cv_lib_esd_esd_close=no
36662fi
ac1cb8d3
VS
36663rm -f conftest.err conftest.$ac_objext \
36664 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36665LIBS=$ac_check_lib_save_LIBS
36666fi
36667echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36668echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36669if test $ac_cv_lib_esd_esd_close = yes; then
36670
36671
36672for ac_header in esd.h
36673do
36674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36675if eval "test \"\${$as_ac_Header+set}\" = set"; then
36676 echo "$as_me:$LINENO: checking for $ac_header" >&5
36677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36678if eval "test \"\${$as_ac_Header+set}\" = set"; then
36679 echo $ECHO_N "(cached) $ECHO_C" >&6
36680fi
36681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36683else
36684 # Is the header compilable?
36685echo "$as_me:$LINENO: checking $ac_header usability" >&5
36686echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36687cat >conftest.$ac_ext <<_ACEOF
36688/* confdefs.h. */
36689_ACEOF
36690cat confdefs.h >>conftest.$ac_ext
36691cat >>conftest.$ac_ext <<_ACEOF
36692/* end confdefs.h. */
36693$ac_includes_default
36694#include <$ac_header>
36695_ACEOF
36696rm -f conftest.$ac_objext
36697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36698 (eval $ac_compile) 2>conftest.er1
a848cd7e 36699 ac_status=$?
ac1cb8d3
VS
36700 grep -v '^ *+' conftest.er1 >conftest.err
36701 rm -f conftest.er1
36702 cat conftest.err >&5
a848cd7e
SC
36703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704 (exit $ac_status); } &&
5d7b7554 36705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36707 (eval $ac_try) 2>&5
36708 ac_status=$?
36709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); }; } &&
36711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36713 (eval $ac_try) 2>&5
36714 ac_status=$?
36715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36716 (exit $ac_status); }; }; then
36717 ac_header_compiler=yes
36718else
36719 echo "$as_me: failed program was:" >&5
36720sed 's/^/| /' conftest.$ac_ext >&5
36721
36722ac_header_compiler=no
36723fi
ac1cb8d3 36724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36725echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36726echo "${ECHO_T}$ac_header_compiler" >&6
36727
36728# Is the header present?
36729echo "$as_me:$LINENO: checking $ac_header presence" >&5
36730echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36731cat >conftest.$ac_ext <<_ACEOF
36732/* confdefs.h. */
36733_ACEOF
36734cat confdefs.h >>conftest.$ac_ext
36735cat >>conftest.$ac_ext <<_ACEOF
36736/* end confdefs.h. */
36737#include <$ac_header>
36738_ACEOF
36739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36741 ac_status=$?
36742 grep -v '^ *+' conftest.er1 >conftest.err
36743 rm -f conftest.er1
36744 cat conftest.err >&5
36745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36746 (exit $ac_status); } >/dev/null; then
36747 if test -s conftest.err; then
5d7b7554
VZ
36748 ac_cpp_err=$ac_cxx_preproc_warn_flag
36749 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
36750 else
36751 ac_cpp_err=
36752 fi
36753else
36754 ac_cpp_err=yes
36755fi
36756if test -z "$ac_cpp_err"; then
36757 ac_header_preproc=yes
36758else
36759 echo "$as_me: failed program was:" >&5
36760sed 's/^/| /' conftest.$ac_ext >&5
36761
36762 ac_header_preproc=no
36763fi
36764rm -f conftest.err conftest.$ac_ext
36765echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36766echo "${ECHO_T}$ac_header_preproc" >&6
36767
36768# So? What about this header?
5d7b7554 36769case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 36770 yes:no: )
a848cd7e
SC
36771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36772echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36774echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36775 ac_header_preproc=yes
a848cd7e 36776 ;;
ac1cb8d3 36777 no:yes:* )
a848cd7e
SC
36778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36779echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36781echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36783echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36785echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36787echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36789echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36790 (
36791 cat <<\_ASBOX
ac1cb8d3
VS
36792## ----------------------------------------- ##
36793## Report this to wx-dev@lists.wxwidgets.org ##
36794## ----------------------------------------- ##
a848cd7e
SC
36795_ASBOX
36796 ) |
36797 sed "s/^/$as_me: WARNING: /" >&2
36798 ;;
36799esac
36800echo "$as_me:$LINENO: checking for $ac_header" >&5
36801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36802if eval "test \"\${$as_ac_Header+set}\" = set"; then
36803 echo $ECHO_N "(cached) $ECHO_C" >&6
36804else
ac1cb8d3 36805 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36806fi
36807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36809
36810fi
36811if test `eval echo '${'$as_ac_Header'}'` = yes; then
36812 cat >>confdefs.h <<_ACEOF
36813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36814_ACEOF
36815
36816 EXTRALIBS_ESD="-lesd"
36817
36818fi
36819
36820done
36821
36822
36823fi
36824
36825
36826
36827echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36828echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36829cat >conftest.$ac_ext <<_ACEOF
36830/* confdefs.h. */
36831_ACEOF
36832cat confdefs.h >>conftest.$ac_ext
36833cat >>conftest.$ac_ext <<_ACEOF
36834/* end confdefs.h. */
36835#ifdef __linux__
36836 #include <linux/cdrom.h>
36837 #else
36838 /* For Solaris */
36839 #include <sys/cdio.h>
36840 #endif
36841
36842int
36843main ()
36844{
36845struct cdrom_tocentry entry, old_entry;
36846 ;
36847 return 0;
36848}
36849_ACEOF
36850rm -f conftest.$ac_objext
36851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36852 (eval $ac_compile) 2>conftest.er1
a848cd7e 36853 ac_status=$?
ac1cb8d3
VS
36854 grep -v '^ *+' conftest.er1 >conftest.err
36855 rm -f conftest.er1
36856 cat conftest.err >&5
a848cd7e
SC
36857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36858 (exit $ac_status); } &&
5d7b7554 36859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36861 (eval $ac_try) 2>&5
36862 ac_status=$?
36863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864 (exit $ac_status); }; } &&
36865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36867 (eval $ac_try) 2>&5
36868 ac_status=$?
36869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); }; }; then
36871 echo "$as_me:$LINENO: result: yes" >&5
36872echo "${ECHO_T}yes" >&6
36873 cat >>confdefs.h <<\_ACEOF
36874#define HAVE_KNOWN_CDROM_INTERFACE 1
36875_ACEOF
36876
36877else
36878 echo "$as_me: failed program was:" >&5
36879sed 's/^/| /' conftest.$ac_ext >&5
36880
36881echo "$as_me:$LINENO: result: no" >&5
36882echo "${ECHO_T}no" >&6
36883fi
ac1cb8d3 36884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36885
36886
36887cat >confcache <<\_ACEOF
36888# This file is a shell script that caches the results of configure
36889# tests run on this system so they can be shared between configure
36890# scripts and configure runs, see configure's option --config-cache.
36891# It is not useful on other systems. If it contains results you don't
36892# want to keep, you may remove or edit it.
36893#
36894# config.status only pays attention to the cache file if you give it
36895# the --recheck option to rerun configure.
36896#
36897# `ac_cv_env_foo' variables (set or unset) will be overridden when
36898# loading this file, other *unset* `ac_cv_foo' will be assigned the
36899# following values.
36900
36901_ACEOF
36902
36903# The following way of writing the cache mishandles newlines in values,
36904# but we know of no workaround that is simple, portable, and efficient.
36905# So, don't put newlines in cache variables' values.
36906# Ultrix sh set writes to stderr and can't be redirected directly,
36907# and sets the high bit in the cache file unless we assign to the vars.
36908{
36909 (set) 2>&1 |
36910 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36911 *ac_space=\ *)
36912 # `set' does not quote correctly, so add quotes (double-quote
36913 # substitution turns \\\\ into \\, and sed turns \\ into \).
36914 sed -n \
ac1cb8d3
VS
36915 "s/'/'\\\\''/g;
36916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36917 ;;
36918 *)
36919 # `set' quotes correctly as required by POSIX, so do not add quotes.
36920 sed -n \
ac1cb8d3 36921 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36922 ;;
36923 esac;
36924} |
36925 sed '
36926 t clear
36927 : clear
36928 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36929 t end
36930 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36931 : end' >>confcache
36932if diff $cache_file confcache >/dev/null 2>&1; then :; else
36933 if test -w $cache_file; then
36934 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36935 cat confcache >$cache_file
36936 else
36937 echo "not updating unwritable cache $cache_file"
36938 fi
36939fi
36940rm -f confcache
36941
36942
a848cd7e
SC
36943if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36944
36945
36946 THREADS_LINK=
e56f4f9e 36947 THREADS_CXXFLAGS=
a848cd7e
SC
36948
36949 if test "$wxUSE_THREADS" = "yes" ; then
36950 if test "$USE_BEOS" = 1; then
36951 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36952echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36953 wxUSE_THREADS="no"
36954 fi
36955 fi
36956
36957 if test "$wxUSE_THREADS" = "yes" ; then
36958
36959
36960 THREAD_OPTS="-pthread"
36961 case "${host}" in
36962 *-*-solaris2* | *-*-sunos4* )
36963 if test "x$GCC" = "xyes"; then
36964 THREAD_OPTS="-pthreads $THREAD_OPTS"
36965 else
36966 THREAD_OPTS="-mt $THREAD_OPTS"
36967 fi
36968 ;;
36969 *-*-freebsd*)
36970 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36971 ;;
36972 *-*-darwin* | *-*-cygwin* )
36973 THREAD_OPTS=""
36974 ;;
36975 *-*-aix*)
36976 THREAD_OPTS="pthreads"
36977 ;;
36978 *-hp-hpux* )
00421666
MW
36979 if test "x$GCC" = "xyes"; then
36980 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36981 THREAD_OPTS=""
36982 else
0093c2fc 36983 THREAD_OPTS="-mt"
a848cd7e
SC
36984 fi
36985 ;;
36986
36987 *-*-irix* )
36988 if test "x$GCC" = "xyes"; then
36989 THREAD_OPTS=""
36990 fi
36991 ;;
36992
36993 *-*-*UnixWare*)
36994 if test "x$GCC" != "xyes"; then
36995 THREAD_OPTS="-Ethread"
36996 fi
36997 ;;
36998 esac
36999
37000 THREAD_OPTS="$THREAD_OPTS pthread none"
37001
37002 THREADS_OK=no
37003 for flag in $THREAD_OPTS; do
37004 case $flag in
37005 none)
37006 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37007echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37008 ;;
37009
37010 -*)
37011 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37012echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37013 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37014 ;;
37015
37016 *)
37017 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37018echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37019 THREADS_LINK="-l$flag"
37020 ;;
37021 esac
37022
37023 save_LIBS="$LIBS"
e56f4f9e 37024 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37025 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37026 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37027
37028 cat >conftest.$ac_ext <<_ACEOF
37029/* confdefs.h. */
37030_ACEOF
37031cat confdefs.h >>conftest.$ac_ext
37032cat >>conftest.$ac_ext <<_ACEOF
37033/* end confdefs.h. */
37034#include <pthread.h>
37035int
37036main ()
37037{
37038pthread_create(0,0,0,0);
37039 ;
37040 return 0;
37041}
37042_ACEOF
37043rm -f conftest.$ac_objext conftest$ac_exeext
37044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37045 (eval $ac_link) 2>conftest.er1
a848cd7e 37046 ac_status=$?
ac1cb8d3
VS
37047 grep -v '^ *+' conftest.er1 >conftest.err
37048 rm -f conftest.er1
37049 cat conftest.err >&5
a848cd7e
SC
37050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051 (exit $ac_status); } &&
5d7b7554 37052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37054 (eval $ac_try) 2>&5
37055 ac_status=$?
37056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057 (exit $ac_status); }; } &&
37058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37060 (eval $ac_try) 2>&5
37061 ac_status=$?
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); }; }; then
37064 THREADS_OK=yes
37065else
37066 echo "$as_me: failed program was:" >&5
37067sed 's/^/| /' conftest.$ac_ext >&5
37068
37069fi
ac1cb8d3
VS
37070rm -f conftest.err conftest.$ac_objext \
37071 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37072
37073 LIBS="$save_LIBS"
e56f4f9e 37074 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37075
37076 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37077echo "${ECHO_T}$THREADS_OK" >&6
37078 if test "x$THREADS_OK" = "xyes"; then
37079 break;
37080 fi
37081
37082 THREADS_LINK=""
e56f4f9e 37083 THREADS_CXXFLAGS=""
a848cd7e
SC
37084 done
37085
37086 if test "x$THREADS_OK" != "xyes"; then
37087 wxUSE_THREADS=no
37088 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37089echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37090 else
e56f4f9e 37091 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37092 LIBS="$THREADS_LINK $LIBS"
37093
37094 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37095echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37096 flag=no
37097 case "${host}" in
37098 *-aix*)
37099 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37100 flag="-D_THREAD_SAFE"
37101 ;;
37102 *-freebsd*)
37103 flag="-D_THREAD_SAFE"
37104 ;;
37105 *-hp-hpux* )
37106 flag="-D_REENTRANT"
37107 if test "x$GCC" != "xyes"; then
37108 flag="$flag -D_RWSTD_MULTI_THREAD"
37109 fi
37110 ;;
37111 *solaris* | alpha*-osf*)
37112 flag="-D_REENTRANT"
37113 ;;
37114 esac
37115 echo "$as_me:$LINENO: result: ${flag}" >&5
37116echo "${ECHO_T}${flag}" >&6
37117 if test "x$flag" != xno; then
e56f4f9e 37118 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
37119 fi
37120
e56f4f9e 37121 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
37122 fi
37123 fi
37124
37125 if test "$wxUSE_THREADS" = "yes" ; then
37126
37127for ac_func in thr_setconcurrency
37128do
37129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37130echo "$as_me:$LINENO: checking for $ac_func" >&5
37131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37132if eval "test \"\${$as_ac_var+set}\" = set"; then
37133 echo $ECHO_N "(cached) $ECHO_C" >&6
37134else
37135 cat >conftest.$ac_ext <<_ACEOF
37136/* confdefs.h. */
37137_ACEOF
37138cat confdefs.h >>conftest.$ac_ext
37139cat >>conftest.$ac_ext <<_ACEOF
37140/* end confdefs.h. */
ac1cb8d3
VS
37141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37143#define $ac_func innocuous_$ac_func
37144
a848cd7e
SC
37145/* System header to define __stub macros and hopefully few prototypes,
37146 which can conflict with char $ac_func (); below.
37147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37148 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37149
a848cd7e
SC
37150#ifdef __STDC__
37151# include <limits.h>
37152#else
37153# include <assert.h>
37154#endif
ac1cb8d3
VS
37155
37156#undef $ac_func
37157
a848cd7e
SC
37158/* Override any gcc2 internal prototype to avoid an error. */
37159#ifdef __cplusplus
37160extern "C"
37161{
37162#endif
37163/* We use char because int might match the return type of a gcc2
37164 builtin and then its argument prototype would still apply. */
37165char $ac_func ();
37166/* The GNU C library defines this for functions which it implements
37167 to always fail with ENOSYS. Some functions are actually named
37168 something starting with __ and the normal name is an alias. */
37169#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37170choke me
37171#else
37172char (*f) () = $ac_func;
37173#endif
37174#ifdef __cplusplus
37175}
37176#endif
37177
37178int
37179main ()
37180{
37181return f != $ac_func;
37182 ;
37183 return 0;
37184}
37185_ACEOF
37186rm -f conftest.$ac_objext conftest$ac_exeext
37187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37188 (eval $ac_link) 2>conftest.er1
a848cd7e 37189 ac_status=$?
ac1cb8d3
VS
37190 grep -v '^ *+' conftest.er1 >conftest.err
37191 rm -f conftest.er1
37192 cat conftest.err >&5
a848cd7e
SC
37193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194 (exit $ac_status); } &&
5d7b7554 37195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37197 (eval $ac_try) 2>&5
37198 ac_status=$?
37199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); }; } &&
37201 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37203 (eval $ac_try) 2>&5
37204 ac_status=$?
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); }; }; then
37207 eval "$as_ac_var=yes"
37208else
37209 echo "$as_me: failed program was:" >&5
37210sed 's/^/| /' conftest.$ac_ext >&5
37211
37212eval "$as_ac_var=no"
37213fi
ac1cb8d3
VS
37214rm -f conftest.err conftest.$ac_objext \
37215 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37216fi
37217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37219if test `eval echo '${'$as_ac_var'}'` = yes; then
37220 cat >>confdefs.h <<_ACEOF
37221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37222_ACEOF
37223
37224fi
37225done
37226
37227
6ebeb4c7
VZ
37228 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37229echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37230if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37231 echo $ECHO_N "(cached) $ECHO_C" >&6
37232else
37233
37234 cat >conftest.$ac_ext <<_ACEOF
37235/* confdefs.h. */
37236_ACEOF
37237cat confdefs.h >>conftest.$ac_ext
37238cat >>conftest.$ac_ext <<_ACEOF
37239/* end confdefs.h. */
37240#include <pthread.h>
37241 void ThreadCleanupFunc(void *p);
37242
37243int
37244main ()
37245{
37246
37247 void *p;
37248 pthread_cleanup_push(ThreadCleanupFunc, p);
37249 pthread_cleanup_pop(0);
37250
37251 ;
37252 return 0;
37253}
37254_ACEOF
37255rm -f conftest.$ac_objext
37256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37257 (eval $ac_compile) 2>conftest.er1
37258 ac_status=$?
37259 grep -v '^ *+' conftest.er1 >conftest.err
37260 rm -f conftest.er1
37261 cat conftest.err >&5
37262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263 (exit $ac_status); } &&
5d7b7554 37264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
37265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37266 (eval $ac_try) 2>&5
37267 ac_status=$?
37268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37269 (exit $ac_status); }; } &&
37270 { ac_try='test -s conftest.$ac_objext'
37271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37272 (eval $ac_try) 2>&5
37273 ac_status=$?
37274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37275 (exit $ac_status); }; }; then
37276
37277 wx_cv_func_pthread_cleanup=yes
37278
37279else
37280 echo "$as_me: failed program was:" >&5
37281sed 's/^/| /' conftest.$ac_ext >&5
37282
37283
37284 wx_cv_func_pthread_cleanup=no
37285
37286
37287fi
37288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37289
37290fi
37291echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37292echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37293 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37294 cat >>confdefs.h <<\_ACEOF
37295#define wxHAVE_PTHREAD_CLEANUP 1
37296_ACEOF
37297
37298 fi
37299
a848cd7e
SC
37300
37301for ac_header in sched.h
37302do
37303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37304if eval "test \"\${$as_ac_Header+set}\" = set"; then
37305 echo "$as_me:$LINENO: checking for $ac_header" >&5
37306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37307if eval "test \"\${$as_ac_Header+set}\" = set"; then
37308 echo $ECHO_N "(cached) $ECHO_C" >&6
37309fi
37310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37312else
37313 # Is the header compilable?
37314echo "$as_me:$LINENO: checking $ac_header usability" >&5
37315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37316cat >conftest.$ac_ext <<_ACEOF
37317/* confdefs.h. */
37318_ACEOF
37319cat confdefs.h >>conftest.$ac_ext
37320cat >>conftest.$ac_ext <<_ACEOF
37321/* end confdefs.h. */
37322$ac_includes_default
37323#include <$ac_header>
37324_ACEOF
37325rm -f conftest.$ac_objext
37326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37327 (eval $ac_compile) 2>conftest.er1
a848cd7e 37328 ac_status=$?
ac1cb8d3
VS
37329 grep -v '^ *+' conftest.er1 >conftest.err
37330 rm -f conftest.er1
37331 cat conftest.err >&5
a848cd7e
SC
37332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333 (exit $ac_status); } &&
5d7b7554 37334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37336 (eval $ac_try) 2>&5
37337 ac_status=$?
37338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339 (exit $ac_status); }; } &&
37340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37342 (eval $ac_try) 2>&5
37343 ac_status=$?
37344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345 (exit $ac_status); }; }; then
37346 ac_header_compiler=yes
37347else
37348 echo "$as_me: failed program was:" >&5
37349sed 's/^/| /' conftest.$ac_ext >&5
37350
37351ac_header_compiler=no
37352fi
ac1cb8d3 37353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37354echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37355echo "${ECHO_T}$ac_header_compiler" >&6
37356
37357# Is the header present?
37358echo "$as_me:$LINENO: checking $ac_header presence" >&5
37359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37360cat >conftest.$ac_ext <<_ACEOF
37361/* confdefs.h. */
37362_ACEOF
37363cat confdefs.h >>conftest.$ac_ext
37364cat >>conftest.$ac_ext <<_ACEOF
37365/* end confdefs.h. */
37366#include <$ac_header>
37367_ACEOF
37368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37370 ac_status=$?
37371 grep -v '^ *+' conftest.er1 >conftest.err
37372 rm -f conftest.er1
37373 cat conftest.err >&5
37374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37375 (exit $ac_status); } >/dev/null; then
37376 if test -s conftest.err; then
5d7b7554
VZ
37377 ac_cpp_err=$ac_cxx_preproc_warn_flag
37378 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37379 else
37380 ac_cpp_err=
37381 fi
37382else
37383 ac_cpp_err=yes
37384fi
37385if test -z "$ac_cpp_err"; then
37386 ac_header_preproc=yes
37387else
37388 echo "$as_me: failed program was:" >&5
37389sed 's/^/| /' conftest.$ac_ext >&5
37390
37391 ac_header_preproc=no
37392fi
37393rm -f conftest.err conftest.$ac_ext
37394echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37395echo "${ECHO_T}$ac_header_preproc" >&6
37396
37397# So? What about this header?
5d7b7554 37398case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37399 yes:no: )
a848cd7e
SC
37400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37401echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37403echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37404 ac_header_preproc=yes
a848cd7e 37405 ;;
ac1cb8d3 37406 no:yes:* )
a848cd7e
SC
37407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37408echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37410echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37412echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37414echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37416echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37418echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37419 (
37420 cat <<\_ASBOX
ac1cb8d3
VS
37421## ----------------------------------------- ##
37422## Report this to wx-dev@lists.wxwidgets.org ##
37423## ----------------------------------------- ##
a848cd7e
SC
37424_ASBOX
37425 ) |
37426 sed "s/^/$as_me: WARNING: /" >&2
37427 ;;
37428esac
37429echo "$as_me:$LINENO: checking for $ac_header" >&5
37430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37431if eval "test \"\${$as_ac_Header+set}\" = set"; then
37432 echo $ECHO_N "(cached) $ECHO_C" >&6
37433else
ac1cb8d3 37434 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37435fi
37436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37438
37439fi
37440if test `eval echo '${'$as_ac_Header'}'` = yes; then
37441 cat >>confdefs.h <<_ACEOF
37442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37443_ACEOF
37444
37445fi
37446
37447done
37448
37449 if test "$ac_cv_header_sched_h" = "yes"; then
37450 echo "$as_me:$LINENO: checking for sched_yield" >&5
37451echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37452if test "${ac_cv_func_sched_yield+set}" = set; then
37453 echo $ECHO_N "(cached) $ECHO_C" >&6
37454else
37455 cat >conftest.$ac_ext <<_ACEOF
37456/* confdefs.h. */
37457_ACEOF
37458cat confdefs.h >>conftest.$ac_ext
37459cat >>conftest.$ac_ext <<_ACEOF
37460/* end confdefs.h. */
ac1cb8d3
VS
37461/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37463#define sched_yield innocuous_sched_yield
37464
a848cd7e
SC
37465/* System header to define __stub macros and hopefully few prototypes,
37466 which can conflict with char sched_yield (); below.
37467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37468 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37469
a848cd7e
SC
37470#ifdef __STDC__
37471# include <limits.h>
37472#else
37473# include <assert.h>
37474#endif
ac1cb8d3
VS
37475
37476#undef sched_yield
37477
a848cd7e
SC
37478/* Override any gcc2 internal prototype to avoid an error. */
37479#ifdef __cplusplus
37480extern "C"
37481{
37482#endif
37483/* We use char because int might match the return type of a gcc2
37484 builtin and then its argument prototype would still apply. */
37485char sched_yield ();
37486/* The GNU C library defines this for functions which it implements
37487 to always fail with ENOSYS. Some functions are actually named
37488 something starting with __ and the normal name is an alias. */
37489#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37490choke me
37491#else
37492char (*f) () = sched_yield;
37493#endif
37494#ifdef __cplusplus
37495}
37496#endif
37497
37498int
37499main ()
37500{
37501return f != sched_yield;
37502 ;
37503 return 0;
37504}
37505_ACEOF
37506rm -f conftest.$ac_objext conftest$ac_exeext
37507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37508 (eval $ac_link) 2>conftest.er1
a848cd7e 37509 ac_status=$?
ac1cb8d3
VS
37510 grep -v '^ *+' conftest.er1 >conftest.err
37511 rm -f conftest.er1
37512 cat conftest.err >&5
a848cd7e
SC
37513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37514 (exit $ac_status); } &&
5d7b7554 37515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37517 (eval $ac_try) 2>&5
37518 ac_status=$?
37519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37520 (exit $ac_status); }; } &&
37521 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37523 (eval $ac_try) 2>&5
37524 ac_status=$?
37525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37526 (exit $ac_status); }; }; then
37527 ac_cv_func_sched_yield=yes
37528else
37529 echo "$as_me: failed program was:" >&5
37530sed 's/^/| /' conftest.$ac_ext >&5
37531
37532ac_cv_func_sched_yield=no
37533fi
ac1cb8d3
VS
37534rm -f conftest.err conftest.$ac_objext \
37535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37536fi
37537echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37538echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37539if test $ac_cv_func_sched_yield = yes; then
37540 cat >>confdefs.h <<\_ACEOF
37541#define HAVE_SCHED_YIELD 1
37542_ACEOF
37543
37544else
37545
37546 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37547echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37548if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37549 echo $ECHO_N "(cached) $ECHO_C" >&6
37550else
37551 ac_check_lib_save_LIBS=$LIBS
37552LIBS="-lposix4 $LIBS"
37553cat >conftest.$ac_ext <<_ACEOF
37554/* confdefs.h. */
37555_ACEOF
37556cat confdefs.h >>conftest.$ac_ext
37557cat >>conftest.$ac_ext <<_ACEOF
37558/* end confdefs.h. */
37559
37560/* Override any gcc2 internal prototype to avoid an error. */
37561#ifdef __cplusplus
37562extern "C"
37563#endif
37564/* We use char because int might match the return type of a gcc2
37565 builtin and then its argument prototype would still apply. */
37566char sched_yield ();
37567int
37568main ()
37569{
37570sched_yield ();
37571 ;
37572 return 0;
37573}
37574_ACEOF
37575rm -f conftest.$ac_objext conftest$ac_exeext
37576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37577 (eval $ac_link) 2>conftest.er1
a848cd7e 37578 ac_status=$?
ac1cb8d3
VS
37579 grep -v '^ *+' conftest.er1 >conftest.err
37580 rm -f conftest.er1
37581 cat conftest.err >&5
a848cd7e
SC
37582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37583 (exit $ac_status); } &&
5d7b7554 37584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37586 (eval $ac_try) 2>&5
37587 ac_status=$?
37588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37589 (exit $ac_status); }; } &&
37590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37592 (eval $ac_try) 2>&5
37593 ac_status=$?
37594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595 (exit $ac_status); }; }; then
37596 ac_cv_lib_posix4_sched_yield=yes
37597else
37598 echo "$as_me: failed program was:" >&5
37599sed 's/^/| /' conftest.$ac_ext >&5
37600
37601ac_cv_lib_posix4_sched_yield=no
37602fi
ac1cb8d3
VS
37603rm -f conftest.err conftest.$ac_objext \
37604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37605LIBS=$ac_check_lib_save_LIBS
37606fi
37607echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37608echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37609if test $ac_cv_lib_posix4_sched_yield = yes; then
37610 cat >>confdefs.h <<\_ACEOF
37611#define HAVE_SCHED_YIELD 1
37612_ACEOF
37613 POSIX4_LINK=" -lposix4"
37614else
37615 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37616echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37617
37618fi
37619
37620
37621
37622fi
37623
37624 fi
37625
37626 HAVE_PRIOR_FUNCS=0
37627 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37628echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37629if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37630 echo $ECHO_N "(cached) $ECHO_C" >&6
37631else
37632 cat >conftest.$ac_ext <<_ACEOF
37633/* confdefs.h. */
37634_ACEOF
37635cat confdefs.h >>conftest.$ac_ext
37636cat >>conftest.$ac_ext <<_ACEOF
37637/* end confdefs.h. */
ac1cb8d3
VS
37638/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37640#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37641
a848cd7e
SC
37642/* System header to define __stub macros and hopefully few prototypes,
37643 which can conflict with char pthread_attr_getschedpolicy (); below.
37644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37645 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37646
a848cd7e
SC
37647#ifdef __STDC__
37648# include <limits.h>
37649#else
37650# include <assert.h>
37651#endif
ac1cb8d3
VS
37652
37653#undef pthread_attr_getschedpolicy
37654
a848cd7e
SC
37655/* Override any gcc2 internal prototype to avoid an error. */
37656#ifdef __cplusplus
37657extern "C"
37658{
37659#endif
37660/* We use char because int might match the return type of a gcc2
37661 builtin and then its argument prototype would still apply. */
37662char pthread_attr_getschedpolicy ();
37663/* The GNU C library defines this for functions which it implements
37664 to always fail with ENOSYS. Some functions are actually named
37665 something starting with __ and the normal name is an alias. */
37666#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37667choke me
37668#else
37669char (*f) () = pthread_attr_getschedpolicy;
37670#endif
37671#ifdef __cplusplus
37672}
37673#endif
37674
37675int
37676main ()
37677{
37678return f != pthread_attr_getschedpolicy;
37679 ;
37680 return 0;
37681}
37682_ACEOF
37683rm -f conftest.$ac_objext conftest$ac_exeext
37684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37685 (eval $ac_link) 2>conftest.er1
a848cd7e 37686 ac_status=$?
ac1cb8d3
VS
37687 grep -v '^ *+' conftest.er1 >conftest.err
37688 rm -f conftest.er1
37689 cat conftest.err >&5
a848cd7e
SC
37690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691 (exit $ac_status); } &&
5d7b7554 37692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37694 (eval $ac_try) 2>&5
37695 ac_status=$?
37696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697 (exit $ac_status); }; } &&
37698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37700 (eval $ac_try) 2>&5
37701 ac_status=$?
37702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37703 (exit $ac_status); }; }; then
37704 ac_cv_func_pthread_attr_getschedpolicy=yes
37705else
37706 echo "$as_me: failed program was:" >&5
37707sed 's/^/| /' conftest.$ac_ext >&5
37708
37709ac_cv_func_pthread_attr_getschedpolicy=no
37710fi
ac1cb8d3
VS
37711rm -f conftest.err conftest.$ac_objext \
37712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37713fi
37714echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37715echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37716if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37717 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37718echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37719if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37720 echo $ECHO_N "(cached) $ECHO_C" >&6
37721else
37722 cat >conftest.$ac_ext <<_ACEOF
37723/* confdefs.h. */
37724_ACEOF
37725cat confdefs.h >>conftest.$ac_ext
37726cat >>conftest.$ac_ext <<_ACEOF
37727/* end confdefs.h. */
ac1cb8d3
VS
37728/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37730#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37731
a848cd7e
SC
37732/* System header to define __stub macros and hopefully few prototypes,
37733 which can conflict with char pthread_attr_setschedparam (); below.
37734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37735 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37736
a848cd7e
SC
37737#ifdef __STDC__
37738# include <limits.h>
37739#else
37740# include <assert.h>
37741#endif
ac1cb8d3
VS
37742
37743#undef pthread_attr_setschedparam
37744
a848cd7e
SC
37745/* Override any gcc2 internal prototype to avoid an error. */
37746#ifdef __cplusplus
37747extern "C"
37748{
37749#endif
37750/* We use char because int might match the return type of a gcc2
37751 builtin and then its argument prototype would still apply. */
37752char pthread_attr_setschedparam ();
37753/* The GNU C library defines this for functions which it implements
37754 to always fail with ENOSYS. Some functions are actually named
37755 something starting with __ and the normal name is an alias. */
37756#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37757choke me
37758#else
37759char (*f) () = pthread_attr_setschedparam;
37760#endif
37761#ifdef __cplusplus
37762}
37763#endif
37764
37765int
37766main ()
37767{
37768return f != pthread_attr_setschedparam;
37769 ;
37770 return 0;
37771}
37772_ACEOF
37773rm -f conftest.$ac_objext conftest$ac_exeext
37774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37775 (eval $ac_link) 2>conftest.er1
a848cd7e 37776 ac_status=$?
ac1cb8d3
VS
37777 grep -v '^ *+' conftest.er1 >conftest.err
37778 rm -f conftest.er1
37779 cat conftest.err >&5
a848cd7e
SC
37780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37781 (exit $ac_status); } &&
5d7b7554 37782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37784 (eval $ac_try) 2>&5
37785 ac_status=$?
37786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787 (exit $ac_status); }; } &&
37788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790 (eval $ac_try) 2>&5
37791 ac_status=$?
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); }; }; then
37794 ac_cv_func_pthread_attr_setschedparam=yes
37795else
37796 echo "$as_me: failed program was:" >&5
37797sed 's/^/| /' conftest.$ac_ext >&5
37798
37799ac_cv_func_pthread_attr_setschedparam=no
37800fi
ac1cb8d3
VS
37801rm -f conftest.err conftest.$ac_objext \
37802 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37803fi
37804echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37805echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37806if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37807 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37808echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37809if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37810 echo $ECHO_N "(cached) $ECHO_C" >&6
37811else
37812 cat >conftest.$ac_ext <<_ACEOF
37813/* confdefs.h. */
37814_ACEOF
37815cat confdefs.h >>conftest.$ac_ext
37816cat >>conftest.$ac_ext <<_ACEOF
37817/* end confdefs.h. */
ac1cb8d3
VS
37818/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37820#define sched_get_priority_max innocuous_sched_get_priority_max
37821
a848cd7e
SC
37822/* System header to define __stub macros and hopefully few prototypes,
37823 which can conflict with char sched_get_priority_max (); below.
37824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37825 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37826
a848cd7e
SC
37827#ifdef __STDC__
37828# include <limits.h>
37829#else
37830# include <assert.h>
37831#endif
ac1cb8d3
VS
37832
37833#undef sched_get_priority_max
37834
a848cd7e
SC
37835/* Override any gcc2 internal prototype to avoid an error. */
37836#ifdef __cplusplus
37837extern "C"
37838{
37839#endif
37840/* We use char because int might match the return type of a gcc2
37841 builtin and then its argument prototype would still apply. */
37842char sched_get_priority_max ();
37843/* The GNU C library defines this for functions which it implements
37844 to always fail with ENOSYS. Some functions are actually named
37845 something starting with __ and the normal name is an alias. */
37846#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37847choke me
37848#else
37849char (*f) () = sched_get_priority_max;
37850#endif
37851#ifdef __cplusplus
37852}
37853#endif
37854
37855int
37856main ()
37857{
37858return f != sched_get_priority_max;
37859 ;
37860 return 0;
37861}
37862_ACEOF
37863rm -f conftest.$ac_objext conftest$ac_exeext
37864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37865 (eval $ac_link) 2>conftest.er1
a848cd7e 37866 ac_status=$?
ac1cb8d3
VS
37867 grep -v '^ *+' conftest.er1 >conftest.err
37868 rm -f conftest.er1
37869 cat conftest.err >&5
a848cd7e
SC
37870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871 (exit $ac_status); } &&
5d7b7554 37872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37874 (eval $ac_try) 2>&5
37875 ac_status=$?
37876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37877 (exit $ac_status); }; } &&
37878 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37880 (eval $ac_try) 2>&5
37881 ac_status=$?
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); }; }; then
37884 ac_cv_func_sched_get_priority_max=yes
37885else
37886 echo "$as_me: failed program was:" >&5
37887sed 's/^/| /' conftest.$ac_ext >&5
37888
37889ac_cv_func_sched_get_priority_max=no
37890fi
ac1cb8d3
VS
37891rm -f conftest.err conftest.$ac_objext \
37892 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37893fi
37894echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37895echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37896if test $ac_cv_func_sched_get_priority_max = yes; then
37897 HAVE_PRIOR_FUNCS=1
37898else
37899 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37900echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37901if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37902 echo $ECHO_N "(cached) $ECHO_C" >&6
37903else
37904 ac_check_lib_save_LIBS=$LIBS
37905LIBS="-lposix4 $LIBS"
37906cat >conftest.$ac_ext <<_ACEOF
37907/* confdefs.h. */
37908_ACEOF
37909cat confdefs.h >>conftest.$ac_ext
37910cat >>conftest.$ac_ext <<_ACEOF
37911/* end confdefs.h. */
37912
37913/* Override any gcc2 internal prototype to avoid an error. */
37914#ifdef __cplusplus
37915extern "C"
37916#endif
37917/* We use char because int might match the return type of a gcc2
37918 builtin and then its argument prototype would still apply. */
37919char sched_get_priority_max ();
37920int
37921main ()
37922{
37923sched_get_priority_max ();
37924 ;
37925 return 0;
37926}
37927_ACEOF
37928rm -f conftest.$ac_objext conftest$ac_exeext
37929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37930 (eval $ac_link) 2>conftest.er1
a848cd7e 37931 ac_status=$?
ac1cb8d3
VS
37932 grep -v '^ *+' conftest.er1 >conftest.err
37933 rm -f conftest.er1
37934 cat conftest.err >&5
a848cd7e
SC
37935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936 (exit $ac_status); } &&
5d7b7554 37937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37939 (eval $ac_try) 2>&5
37940 ac_status=$?
37941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942 (exit $ac_status); }; } &&
37943 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37945 (eval $ac_try) 2>&5
37946 ac_status=$?
37947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37948 (exit $ac_status); }; }; then
37949 ac_cv_lib_posix4_sched_get_priority_max=yes
37950else
37951 echo "$as_me: failed program was:" >&5
37952sed 's/^/| /' conftest.$ac_ext >&5
37953
37954ac_cv_lib_posix4_sched_get_priority_max=no
37955fi
ac1cb8d3
VS
37956rm -f conftest.err conftest.$ac_objext \
37957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37958LIBS=$ac_check_lib_save_LIBS
37959fi
37960echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37961echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37962if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37963
37964 HAVE_PRIOR_FUNCS=1
37965 POSIX4_LINK=" -lposix4"
37966
37967fi
37968
37969
37970fi
37971
37972
37973fi
37974
37975
37976fi
37977
37978
37979 if test "$HAVE_PRIOR_FUNCS" = 1; then
37980 cat >>confdefs.h <<\_ACEOF
37981#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37982_ACEOF
37983
37984 else
37985 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37986echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37987 fi
37988
37989 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37990echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37991if test "${ac_cv_func_pthread_cancel+set}" = set; then
37992 echo $ECHO_N "(cached) $ECHO_C" >&6
37993else
37994 cat >conftest.$ac_ext <<_ACEOF
37995/* confdefs.h. */
37996_ACEOF
37997cat confdefs.h >>conftest.$ac_ext
37998cat >>conftest.$ac_ext <<_ACEOF
37999/* end confdefs.h. */
ac1cb8d3
VS
38000/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38002#define pthread_cancel innocuous_pthread_cancel
38003
a848cd7e
SC
38004/* System header to define __stub macros and hopefully few prototypes,
38005 which can conflict with char pthread_cancel (); below.
38006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38007 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38008
a848cd7e
SC
38009#ifdef __STDC__
38010# include <limits.h>
38011#else
38012# include <assert.h>
38013#endif
ac1cb8d3
VS
38014
38015#undef pthread_cancel
38016
a848cd7e
SC
38017/* Override any gcc2 internal prototype to avoid an error. */
38018#ifdef __cplusplus
38019extern "C"
38020{
38021#endif
38022/* We use char because int might match the return type of a gcc2
38023 builtin and then its argument prototype would still apply. */
38024char pthread_cancel ();
38025/* The GNU C library defines this for functions which it implements
38026 to always fail with ENOSYS. Some functions are actually named
38027 something starting with __ and the normal name is an alias. */
38028#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38029choke me
38030#else
38031char (*f) () = pthread_cancel;
38032#endif
38033#ifdef __cplusplus
38034}
38035#endif
38036
38037int
38038main ()
38039{
38040return f != pthread_cancel;
38041 ;
38042 return 0;
38043}
38044_ACEOF
38045rm -f conftest.$ac_objext conftest$ac_exeext
38046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38047 (eval $ac_link) 2>conftest.er1
a848cd7e 38048 ac_status=$?
ac1cb8d3
VS
38049 grep -v '^ *+' conftest.er1 >conftest.err
38050 rm -f conftest.er1
38051 cat conftest.err >&5
a848cd7e
SC
38052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38053 (exit $ac_status); } &&
5d7b7554 38054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38056 (eval $ac_try) 2>&5
38057 ac_status=$?
38058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38059 (exit $ac_status); }; } &&
38060 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38062 (eval $ac_try) 2>&5
38063 ac_status=$?
38064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065 (exit $ac_status); }; }; then
38066 ac_cv_func_pthread_cancel=yes
38067else
38068 echo "$as_me: failed program was:" >&5
38069sed 's/^/| /' conftest.$ac_ext >&5
38070
38071ac_cv_func_pthread_cancel=no
38072fi
ac1cb8d3
VS
38073rm -f conftest.err conftest.$ac_objext \
38074 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38075fi
38076echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38077echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38078if test $ac_cv_func_pthread_cancel = yes; then
38079 cat >>confdefs.h <<\_ACEOF
38080#define HAVE_PTHREAD_CANCEL 1
38081_ACEOF
38082
38083else
38084 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38085echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38086fi
38087
38088
abc736fd
MW
38089 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38090echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38091if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38092 echo $ECHO_N "(cached) $ECHO_C" >&6
38093else
38094 cat >conftest.$ac_ext <<_ACEOF
38095/* confdefs.h. */
38096_ACEOF
38097cat confdefs.h >>conftest.$ac_ext
38098cat >>conftest.$ac_ext <<_ACEOF
38099/* end confdefs.h. */
38100/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38102#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38103
38104/* System header to define __stub macros and hopefully few prototypes,
38105 which can conflict with char pthread_attr_setstacksize (); below.
38106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38107 <limits.h> exists even on freestanding compilers. */
38108
38109#ifdef __STDC__
38110# include <limits.h>
38111#else
38112# include <assert.h>
38113#endif
38114
38115#undef pthread_attr_setstacksize
38116
38117/* Override any gcc2 internal prototype to avoid an error. */
38118#ifdef __cplusplus
38119extern "C"
38120{
38121#endif
38122/* We use char because int might match the return type of a gcc2
38123 builtin and then its argument prototype would still apply. */
38124char pthread_attr_setstacksize ();
38125/* The GNU C library defines this for functions which it implements
38126 to always fail with ENOSYS. Some functions are actually named
38127 something starting with __ and the normal name is an alias. */
38128#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38129choke me
38130#else
38131char (*f) () = pthread_attr_setstacksize;
38132#endif
38133#ifdef __cplusplus
38134}
38135#endif
38136
38137int
38138main ()
38139{
38140return f != pthread_attr_setstacksize;
38141 ;
38142 return 0;
38143}
38144_ACEOF
38145rm -f conftest.$ac_objext conftest$ac_exeext
38146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38147 (eval $ac_link) 2>conftest.er1
38148 ac_status=$?
38149 grep -v '^ *+' conftest.er1 >conftest.err
38150 rm -f conftest.er1
38151 cat conftest.err >&5
38152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38153 (exit $ac_status); } &&
5d7b7554 38154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
38155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38156 (eval $ac_try) 2>&5
38157 ac_status=$?
38158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38159 (exit $ac_status); }; } &&
38160 { ac_try='test -s conftest$ac_exeext'
38161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38162 (eval $ac_try) 2>&5
38163 ac_status=$?
38164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38165 (exit $ac_status); }; }; then
38166 ac_cv_func_pthread_attr_setstacksize=yes
38167else
38168 echo "$as_me: failed program was:" >&5
38169sed 's/^/| /' conftest.$ac_ext >&5
38170
38171ac_cv_func_pthread_attr_setstacksize=no
38172fi
38173rm -f conftest.err conftest.$ac_objext \
38174 conftest$ac_exeext conftest.$ac_ext
38175fi
38176echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38177echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38178if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38179 cat >>confdefs.h <<\_ACEOF
38180#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38181_ACEOF
38182
38183fi
38184
a848cd7e
SC
38185
38186
38187 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38188echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38189if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38190 echo $ECHO_N "(cached) $ECHO_C" >&6
38191else
38192
38193 cat >conftest.$ac_ext <<_ACEOF
38194/* confdefs.h. */
38195_ACEOF
38196cat confdefs.h >>conftest.$ac_ext
38197cat >>conftest.$ac_ext <<_ACEOF
38198/* end confdefs.h. */
38199#include <pthread.h>
38200int
38201main ()
38202{
38203
38204 pthread_mutexattr_t attr;
38205 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38206
38207 ;
38208 return 0;
38209}
38210_ACEOF
38211rm -f conftest.$ac_objext
38212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38213 (eval $ac_compile) 2>conftest.er1
a848cd7e 38214 ac_status=$?
ac1cb8d3
VS
38215 grep -v '^ *+' conftest.er1 >conftest.err
38216 rm -f conftest.er1
38217 cat conftest.err >&5
a848cd7e
SC
38218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38219 (exit $ac_status); } &&
5d7b7554 38220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38222 (eval $ac_try) 2>&5
38223 ac_status=$?
38224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38225 (exit $ac_status); }; } &&
38226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38228 (eval $ac_try) 2>&5
38229 ac_status=$?
38230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38231 (exit $ac_status); }; }; then
123dca7d 38232 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38233else
38234 echo "$as_me: failed program was:" >&5
38235sed 's/^/| /' conftest.$ac_ext >&5
38236
123dca7d 38237wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38238
38239fi
ac1cb8d3 38240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38241
38242fi
38243echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38244echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38245
38246 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38247 cat >>confdefs.h <<\_ACEOF
38248#define HAVE_PTHREAD_MUTEXATTR_T 1
38249_ACEOF
38250
123dca7d
VZ
38251
38252 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38253echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38254if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38255 echo $ECHO_N "(cached) $ECHO_C" >&6
38256else
38257
38258 cat >conftest.$ac_ext <<_ACEOF
38259/* confdefs.h. */
38260_ACEOF
38261cat confdefs.h >>conftest.$ac_ext
38262cat >>conftest.$ac_ext <<_ACEOF
38263/* end confdefs.h. */
38264#include <pthread.h>
38265int
38266main ()
38267{
38268
38269 pthread_mutexattr_t attr;
38270 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38271
38272 ;
38273 return 0;
38274}
38275_ACEOF
38276rm -f conftest.$ac_objext
38277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38278 (eval $ac_compile) 2>conftest.er1
38279 ac_status=$?
38280 grep -v '^ *+' conftest.er1 >conftest.err
38281 rm -f conftest.er1
38282 cat conftest.err >&5
38283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38284 (exit $ac_status); } &&
5d7b7554 38285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
38286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38287 (eval $ac_try) 2>&5
38288 ac_status=$?
38289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38290 (exit $ac_status); }; } &&
38291 { ac_try='test -s conftest.$ac_objext'
38292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38293 (eval $ac_try) 2>&5
38294 ac_status=$?
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); }; }; then
38297 wx_cv_func_pthread_mutexattr_settype_decl=yes
38298else
38299 echo "$as_me: failed program was:" >&5
38300sed 's/^/| /' conftest.$ac_ext >&5
38301
38302wx_cv_func_pthread_mutexattr_settype_decl=no
38303
38304fi
38305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38306
38307fi
38308echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38309echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38310 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38311 cat >>confdefs.h <<\_ACEOF
38312#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38313_ACEOF
38314
38315 fi
a848cd7e
SC
38316 else
38317 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38318echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38319if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38320 echo $ECHO_N "(cached) $ECHO_C" >&6
38321else
38322
38323 cat >conftest.$ac_ext <<_ACEOF
38324/* confdefs.h. */
38325_ACEOF
38326cat confdefs.h >>conftest.$ac_ext
38327cat >>conftest.$ac_ext <<_ACEOF
38328/* end confdefs.h. */
38329#include <pthread.h>
38330int
38331main ()
38332{
38333
38334 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38335
38336 ;
38337 return 0;
38338}
38339_ACEOF
38340rm -f conftest.$ac_objext
38341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38342 (eval $ac_compile) 2>conftest.er1
a848cd7e 38343 ac_status=$?
ac1cb8d3
VS
38344 grep -v '^ *+' conftest.er1 >conftest.err
38345 rm -f conftest.er1
38346 cat conftest.err >&5
a848cd7e
SC
38347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348 (exit $ac_status); } &&
5d7b7554 38349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38351 (eval $ac_try) 2>&5
38352 ac_status=$?
38353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38354 (exit $ac_status); }; } &&
38355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38357 (eval $ac_try) 2>&5
38358 ac_status=$?
38359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360 (exit $ac_status); }; }; then
38361
38362 wx_cv_type_pthread_rec_mutex_init=yes
38363
38364else
38365 echo "$as_me: failed program was:" >&5
38366sed 's/^/| /' conftest.$ac_ext >&5
38367
38368
38369 wx_cv_type_pthread_rec_mutex_init=no
38370
38371
38372fi
ac1cb8d3 38373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38374
38375fi
38376echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38377echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38378 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38379 cat >>confdefs.h <<\_ACEOF
38380#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38381_ACEOF
38382
38383 else
38384 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38385echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38386 fi
38387 fi
38388 fi
38389
38390else
38391 if test "$wxUSE_THREADS" = "yes" ; then
38392 case "${host}" in
38393 *-*-mingw32* )
38394 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38395echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38396if test "${wx_cv_cflags_mthread+set}" = set; then
38397 echo $ECHO_N "(cached) $ECHO_C" >&6
38398else
38399
e56f4f9e
VZ
38400 CXXFLAGS_OLD="$CXXFLAGS"
38401 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
38402 cat >conftest.$ac_ext <<_ACEOF
38403/* confdefs.h. */
38404_ACEOF
38405cat confdefs.h >>conftest.$ac_ext
38406cat >>conftest.$ac_ext <<_ACEOF
38407/* end confdefs.h. */
38408
38409int
38410main ()
38411{
38412
38413 ;
38414 return 0;
38415}
38416_ACEOF
38417rm -f conftest.$ac_objext
38418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38419 (eval $ac_compile) 2>conftest.er1
a848cd7e 38420 ac_status=$?
ac1cb8d3
VS
38421 grep -v '^ *+' conftest.er1 >conftest.err
38422 rm -f conftest.er1
38423 cat conftest.err >&5
a848cd7e
SC
38424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38425 (exit $ac_status); } &&
5d7b7554 38426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38428 (eval $ac_try) 2>&5
38429 ac_status=$?
38430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38431 (exit $ac_status); }; } &&
38432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38434 (eval $ac_try) 2>&5
38435 ac_status=$?
38436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437 (exit $ac_status); }; }; then
38438 wx_cv_cflags_mthread=yes
38439else
38440 echo "$as_me: failed program was:" >&5
38441sed 's/^/| /' conftest.$ac_ext >&5
38442
38443wx_cv_cflags_mthread=no
38444
38445fi
ac1cb8d3 38446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38447
38448
38449fi
38450echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38451echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38452
38453 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 38454 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
38455 LDFLAGS="$LDFLAGS -mthreads"
38456 else
e56f4f9e 38457 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
38458 fi
38459 ;;
38460 *-pc-os2*emx )
5ff751d6
VZ
38461 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38462 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38463 LDFLAGS="$LDFLAGS -Zmt"
38464 ;;
38465 esac
38466 fi
38467fi
38468
004ee6da
RL
38469echo "$as_me:$LINENO: checking for localtime_r" >&5
38470echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38471if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38472 echo $ECHO_N "(cached) $ECHO_C" >&6
38473else
38474 cat >conftest.$ac_ext <<_ACEOF
38475/* confdefs.h. */
38476_ACEOF
38477cat confdefs.h >>conftest.$ac_ext
38478cat >>conftest.$ac_ext <<_ACEOF
38479/* end confdefs.h. */
004ee6da 38480/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38482#define localtime_r innocuous_localtime_r
ac1cb8d3 38483
a848cd7e 38484/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38485 which can conflict with char localtime_r (); below.
a848cd7e
SC
38486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38487 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38488
a848cd7e
SC
38489#ifdef __STDC__
38490# include <limits.h>
38491#else
38492# include <assert.h>
38493#endif
ac1cb8d3 38494
004ee6da 38495#undef localtime_r
ac1cb8d3 38496
a848cd7e
SC
38497/* Override any gcc2 internal prototype to avoid an error. */
38498#ifdef __cplusplus
38499extern "C"
38500{
38501#endif
38502/* We use char because int might match the return type of a gcc2
38503 builtin and then its argument prototype would still apply. */
004ee6da 38504char localtime_r ();
a848cd7e
SC
38505/* The GNU C library defines this for functions which it implements
38506 to always fail with ENOSYS. Some functions are actually named
38507 something starting with __ and the normal name is an alias. */
004ee6da 38508#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38509choke me
38510#else
004ee6da 38511char (*f) () = localtime_r;
a848cd7e
SC
38512#endif
38513#ifdef __cplusplus
38514}
38515#endif
38516
38517int
38518main ()
38519{
004ee6da
RL
38520return f != localtime_r;
38521 ;
38522 return 0;
38523}
38524_ACEOF
38525rm -f conftest.$ac_objext conftest$ac_exeext
38526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38527 (eval $ac_link) 2>conftest.er1
38528 ac_status=$?
38529 grep -v '^ *+' conftest.er1 >conftest.err
38530 rm -f conftest.er1
38531 cat conftest.err >&5
38532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); } &&
5d7b7554 38534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38536 (eval $ac_try) 2>&5
38537 ac_status=$?
38538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539 (exit $ac_status); }; } &&
38540 { ac_try='test -s conftest$ac_exeext'
38541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38542 (eval $ac_try) 2>&5
38543 ac_status=$?
38544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38545 (exit $ac_status); }; }; then
38546 ac_cv_func_localtime_r=yes
38547else
38548 echo "$as_me: failed program was:" >&5
38549sed 's/^/| /' conftest.$ac_ext >&5
38550
38551ac_cv_func_localtime_r=no
38552fi
38553rm -f conftest.err conftest.$ac_objext \
38554 conftest$ac_exeext conftest.$ac_ext
38555fi
38556echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38557echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38558if test $ac_cv_func_localtime_r = yes; then
38559 cat >>confdefs.h <<\_ACEOF
38560#define HAVE_LOCALTIME_R 1
38561_ACEOF
38562
38563fi
38564
38565echo "$as_me:$LINENO: checking for gmtime_r" >&5
38566echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38567if test "${ac_cv_func_gmtime_r+set}" = set; then
38568 echo $ECHO_N "(cached) $ECHO_C" >&6
38569else
38570 cat >conftest.$ac_ext <<_ACEOF
38571/* confdefs.h. */
38572_ACEOF
38573cat confdefs.h >>conftest.$ac_ext
38574cat >>conftest.$ac_ext <<_ACEOF
38575/* end confdefs.h. */
38576/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38578#define gmtime_r innocuous_gmtime_r
38579
38580/* System header to define __stub macros and hopefully few prototypes,
38581 which can conflict with char gmtime_r (); below.
38582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38583 <limits.h> exists even on freestanding compilers. */
38584
38585#ifdef __STDC__
38586# include <limits.h>
38587#else
38588# include <assert.h>
38589#endif
38590
38591#undef gmtime_r
38592
38593/* Override any gcc2 internal prototype to avoid an error. */
38594#ifdef __cplusplus
38595extern "C"
38596{
38597#endif
38598/* We use char because int might match the return type of a gcc2
38599 builtin and then its argument prototype would still apply. */
38600char gmtime_r ();
38601/* The GNU C library defines this for functions which it implements
38602 to always fail with ENOSYS. Some functions are actually named
38603 something starting with __ and the normal name is an alias. */
38604#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38605choke me
38606#else
38607char (*f) () = gmtime_r;
38608#endif
38609#ifdef __cplusplus
38610}
38611#endif
38612
38613int
38614main ()
38615{
38616return f != gmtime_r;
38617 ;
38618 return 0;
38619}
38620_ACEOF
38621rm -f conftest.$ac_objext conftest$ac_exeext
38622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38623 (eval $ac_link) 2>conftest.er1
38624 ac_status=$?
38625 grep -v '^ *+' conftest.er1 >conftest.err
38626 rm -f conftest.er1
38627 cat conftest.err >&5
38628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629 (exit $ac_status); } &&
5d7b7554 38630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38632 (eval $ac_try) 2>&5
38633 ac_status=$?
38634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38635 (exit $ac_status); }; } &&
38636 { ac_try='test -s conftest$ac_exeext'
38637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38638 (eval $ac_try) 2>&5
38639 ac_status=$?
38640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38641 (exit $ac_status); }; }; then
38642 ac_cv_func_gmtime_r=yes
38643else
38644 echo "$as_me: failed program was:" >&5
38645sed 's/^/| /' conftest.$ac_ext >&5
38646
38647ac_cv_func_gmtime_r=no
38648fi
38649rm -f conftest.err conftest.$ac_objext \
38650 conftest$ac_exeext conftest.$ac_ext
38651fi
38652echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38653echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38654if test $ac_cv_func_gmtime_r = yes; then
38655 cat >>confdefs.h <<\_ACEOF
38656#define HAVE_GMTIME_R 1
38657_ACEOF
38658
38659fi
38660
38661echo "$as_me:$LINENO: checking for readdir_r" >&5
38662echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38663if test "${ac_cv_func_readdir_r+set}" = set; then
38664 echo $ECHO_N "(cached) $ECHO_C" >&6
38665else
38666 cat >conftest.$ac_ext <<_ACEOF
38667/* confdefs.h. */
38668_ACEOF
38669cat confdefs.h >>conftest.$ac_ext
38670cat >>conftest.$ac_ext <<_ACEOF
38671/* end confdefs.h. */
38672/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38674#define readdir_r innocuous_readdir_r
38675
38676/* System header to define __stub macros and hopefully few prototypes,
38677 which can conflict with char readdir_r (); below.
38678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38679 <limits.h> exists even on freestanding compilers. */
38680
38681#ifdef __STDC__
38682# include <limits.h>
38683#else
38684# include <assert.h>
38685#endif
38686
38687#undef readdir_r
38688
38689/* Override any gcc2 internal prototype to avoid an error. */
38690#ifdef __cplusplus
38691extern "C"
38692{
38693#endif
38694/* We use char because int might match the return type of a gcc2
38695 builtin and then its argument prototype would still apply. */
38696char readdir_r ();
38697/* The GNU C library defines this for functions which it implements
38698 to always fail with ENOSYS. Some functions are actually named
38699 something starting with __ and the normal name is an alias. */
38700#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38701choke me
38702#else
38703char (*f) () = readdir_r;
38704#endif
38705#ifdef __cplusplus
38706}
38707#endif
38708
38709int
38710main ()
38711{
38712return f != readdir_r;
38713 ;
38714 return 0;
38715}
38716_ACEOF
38717rm -f conftest.$ac_objext conftest$ac_exeext
38718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38719 (eval $ac_link) 2>conftest.er1
38720 ac_status=$?
38721 grep -v '^ *+' conftest.er1 >conftest.err
38722 rm -f conftest.er1
38723 cat conftest.err >&5
38724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725 (exit $ac_status); } &&
5d7b7554 38726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38728 (eval $ac_try) 2>&5
38729 ac_status=$?
38730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731 (exit $ac_status); }; } &&
38732 { ac_try='test -s conftest$ac_exeext'
38733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38734 (eval $ac_try) 2>&5
38735 ac_status=$?
38736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38737 (exit $ac_status); }; }; then
38738 ac_cv_func_readdir_r=yes
38739else
38740 echo "$as_me: failed program was:" >&5
38741sed 's/^/| /' conftest.$ac_ext >&5
38742
38743ac_cv_func_readdir_r=no
38744fi
38745rm -f conftest.err conftest.$ac_objext \
38746 conftest$ac_exeext conftest.$ac_ext
38747fi
38748echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38749echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38750if test $ac_cv_func_readdir_r = yes; then
38751 cat >>confdefs.h <<\_ACEOF
38752#define HAVE_READDIR_R 1
38753_ACEOF
38754
38755fi
38756
004ee6da 38757
004ee6da
RL
38758
38759
38760 ac_ext=c
38761ac_cpp='$CPP $CPPFLAGS'
38762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38764ac_compiler_gnu=$ac_cv_c_compiler_gnu
38765
38766 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38767echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38768
38769 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38770 echo $ECHO_N "(cached) $ECHO_C" >&6
38771else
38772
38773
38774################################################################
38775
38776ac_cv_func_which_gethostbyname_r=unknown
38777
38778#
38779# ONE ARGUMENT (sanity check)
38780#
38781
38782# This should fail, as there is no variant of gethostbyname_r() that takes
38783# a single argument. If it actually compiles, then we can assume that
38784# netdb.h is not declaring the function, and the compiler is thereby
38785# assuming an implicit prototype. In which case, we're out of luck.
38786#
38787cat >conftest.$ac_ext <<_ACEOF
38788/* confdefs.h. */
38789_ACEOF
38790cat confdefs.h >>conftest.$ac_ext
38791cat >>conftest.$ac_ext <<_ACEOF
38792/* end confdefs.h. */
38793#include <netdb.h>
38794int
38795main ()
38796{
38797
38798 char *name = "www.gnu.org";
38799 (void)gethostbyname_r(name) /* ; */
38800
38801 ;
38802 return 0;
38803}
38804_ACEOF
38805rm -f conftest.$ac_objext
38806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38807 (eval $ac_compile) 2>conftest.er1
38808 ac_status=$?
38809 grep -v '^ *+' conftest.er1 >conftest.err
38810 rm -f conftest.er1
38811 cat conftest.err >&5
38812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813 (exit $ac_status); } &&
5d7b7554 38814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38816 (eval $ac_try) 2>&5
38817 ac_status=$?
38818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38819 (exit $ac_status); }; } &&
38820 { ac_try='test -s conftest.$ac_objext'
38821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38822 (eval $ac_try) 2>&5
38823 ac_status=$?
38824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38825 (exit $ac_status); }; }; then
38826 ac_cv_func_which_gethostbyname_r=no
38827else
38828 echo "$as_me: failed program was:" >&5
38829sed 's/^/| /' conftest.$ac_ext >&5
38830
38831fi
38832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38833
38834#
38835# SIX ARGUMENTS
38836# (e.g. Linux)
38837#
38838
38839if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38840
38841cat >conftest.$ac_ext <<_ACEOF
38842/* confdefs.h. */
38843_ACEOF
38844cat confdefs.h >>conftest.$ac_ext
38845cat >>conftest.$ac_ext <<_ACEOF
38846/* end confdefs.h. */
38847#include <netdb.h>
38848int
38849main ()
38850{
38851
38852 char *name = "www.gnu.org";
38853 struct hostent ret, *retp;
38854 char buf[1024];
38855 int buflen = 1024;
38856 int my_h_errno;
38857 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
38858
38859 ;
38860 return 0;
38861}
38862_ACEOF
38863rm -f conftest.$ac_objext
38864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38865 (eval $ac_compile) 2>conftest.er1
38866 ac_status=$?
38867 grep -v '^ *+' conftest.er1 >conftest.err
38868 rm -f conftest.er1
38869 cat conftest.err >&5
38870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38871 (exit $ac_status); } &&
5d7b7554 38872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38874 (eval $ac_try) 2>&5
38875 ac_status=$?
38876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38877 (exit $ac_status); }; } &&
38878 { ac_try='test -s conftest.$ac_objext'
38879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38880 (eval $ac_try) 2>&5
38881 ac_status=$?
38882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883 (exit $ac_status); }; }; then
38884 ac_cv_func_which_gethostbyname_r=six
38885else
38886 echo "$as_me: failed program was:" >&5
38887sed 's/^/| /' conftest.$ac_ext >&5
38888
38889fi
38890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38891
38892fi
38893
38894#
38895# FIVE ARGUMENTS
38896# (e.g. Solaris)
38897#
38898
38899if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38900
38901cat >conftest.$ac_ext <<_ACEOF
38902/* confdefs.h. */
38903_ACEOF
38904cat confdefs.h >>conftest.$ac_ext
38905cat >>conftest.$ac_ext <<_ACEOF
38906/* end confdefs.h. */
38907#include <netdb.h>
38908int
38909main ()
38910{
38911
38912 char *name = "www.gnu.org";
38913 struct hostent ret;
38914 char buf[1024];
38915 int buflen = 1024;
38916 int my_h_errno;
38917 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
38918
38919 ;
38920 return 0;
38921}
38922_ACEOF
38923rm -f conftest.$ac_objext
38924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38925 (eval $ac_compile) 2>conftest.er1
38926 ac_status=$?
38927 grep -v '^ *+' conftest.er1 >conftest.err
38928 rm -f conftest.er1
38929 cat conftest.err >&5
38930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38931 (exit $ac_status); } &&
5d7b7554 38932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38934 (eval $ac_try) 2>&5
38935 ac_status=$?
38936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38937 (exit $ac_status); }; } &&
38938 { ac_try='test -s conftest.$ac_objext'
38939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38940 (eval $ac_try) 2>&5
38941 ac_status=$?
38942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38943 (exit $ac_status); }; }; then
38944 ac_cv_func_which_gethostbyname_r=five
38945else
38946 echo "$as_me: failed program was:" >&5
38947sed 's/^/| /' conftest.$ac_ext >&5
38948
38949fi
38950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38951
38952fi
38953
38954#
38955# THREE ARGUMENTS
38956# (e.g. AIX, HP-UX, Tru64)
38957#
38958
38959if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38960
38961cat >conftest.$ac_ext <<_ACEOF
38962/* confdefs.h. */
38963_ACEOF
38964cat confdefs.h >>conftest.$ac_ext
38965cat >>conftest.$ac_ext <<_ACEOF
38966/* end confdefs.h. */
38967#include <netdb.h>
38968int
38969main ()
38970{
38971
38972 char *name = "www.gnu.org";
38973 struct hostent ret;
38974 struct hostent_data data;
38975 (void)gethostbyname_r(name, &ret, &data) /* ; */
38976
38977 ;
38978 return 0;
38979}
38980_ACEOF
38981rm -f conftest.$ac_objext
38982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38983 (eval $ac_compile) 2>conftest.er1
38984 ac_status=$?
38985 grep -v '^ *+' conftest.er1 >conftest.err
38986 rm -f conftest.er1
38987 cat conftest.err >&5
38988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38989 (exit $ac_status); } &&
5d7b7554 38990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38992 (eval $ac_try) 2>&5
38993 ac_status=$?
38994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38995 (exit $ac_status); }; } &&
38996 { ac_try='test -s conftest.$ac_objext'
38997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38998 (eval $ac_try) 2>&5
38999 ac_status=$?
39000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39001 (exit $ac_status); }; }; then
39002 ac_cv_func_which_gethostbyname_r=three
39003else
39004 echo "$as_me: failed program was:" >&5
39005sed 's/^/| /' conftest.$ac_ext >&5
39006
39007fi
39008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39009
39010fi
39011
39012################################################################
39013
39014
39015fi
39016
39017case "$ac_cv_func_which_gethostbyname_r" in
39018 three)
39019 echo "$as_me:$LINENO: result: three" >&5
39020echo "${ECHO_T}three" >&6
39021 cat >>confdefs.h <<\_ACEOF
39022#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39023_ACEOF
39024
39025 ;;
39026
39027 five)
39028 echo "$as_me:$LINENO: result: five" >&5
39029echo "${ECHO_T}five" >&6
39030 cat >>confdefs.h <<\_ACEOF
39031#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39032_ACEOF
39033
39034 ;;
39035
39036 six)
39037 echo "$as_me:$LINENO: result: six" >&5
39038echo "${ECHO_T}six" >&6
39039 cat >>confdefs.h <<\_ACEOF
39040#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39041_ACEOF
39042
39043 ;;
39044
39045 no)
39046 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39047echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39048 ;;
39049
39050 unknown)
39051 echo "$as_me:$LINENO: result: can't tell" >&5
39052echo "${ECHO_T}can't tell" >&6
39053 ;;
39054
39055 *)
39056 { { echo "$as_me:$LINENO: error: internal error" >&5
39057echo "$as_me: error: internal error" >&2;}
39058 { (exit 1); exit 1; }; }
39059 ;;
39060esac
39061
5ec3bc43
JS
39062ac_ext=cc
39063ac_cpp='$CXXCPP $CPPFLAGS'
39064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39067
39068
39069
39070 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39071 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39072 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39073echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39074if test "${ac_cv_func_gethostbyname+set}" = set; then
39075 echo $ECHO_N "(cached) $ECHO_C" >&6
39076else
39077 cat >conftest.$ac_ext <<_ACEOF
39078/* confdefs.h. */
39079_ACEOF
39080cat confdefs.h >>conftest.$ac_ext
39081cat >>conftest.$ac_ext <<_ACEOF
39082/* end confdefs.h. */
39083/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39085#define gethostbyname innocuous_gethostbyname
39086
39087/* System header to define __stub macros and hopefully few prototypes,
39088 which can conflict with char gethostbyname (); below.
39089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39090 <limits.h> exists even on freestanding compilers. */
39091
39092#ifdef __STDC__
39093# include <limits.h>
39094#else
39095# include <assert.h>
39096#endif
39097
39098#undef gethostbyname
39099
39100/* Override any gcc2 internal prototype to avoid an error. */
39101#ifdef __cplusplus
39102extern "C"
39103{
39104#endif
39105/* We use char because int might match the return type of a gcc2
39106 builtin and then its argument prototype would still apply. */
39107char gethostbyname ();
39108/* The GNU C library defines this for functions which it implements
39109 to always fail with ENOSYS. Some functions are actually named
39110 something starting with __ and the normal name is an alias. */
39111#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39112choke me
39113#else
39114char (*f) () = gethostbyname;
39115#endif
39116#ifdef __cplusplus
39117}
39118#endif
39119
39120int
39121main ()
39122{
39123return f != gethostbyname;
39124 ;
39125 return 0;
39126}
39127_ACEOF
39128rm -f conftest.$ac_objext conftest$ac_exeext
39129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39130 (eval $ac_link) 2>conftest.er1
39131 ac_status=$?
39132 grep -v '^ *+' conftest.er1 >conftest.err
39133 rm -f conftest.er1
39134 cat conftest.err >&5
39135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39136 (exit $ac_status); } &&
5d7b7554 39137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39139 (eval $ac_try) 2>&5
39140 ac_status=$?
39141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39142 (exit $ac_status); }; } &&
39143 { ac_try='test -s conftest$ac_exeext'
39144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39145 (eval $ac_try) 2>&5
39146 ac_status=$?
39147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39148 (exit $ac_status); }; }; then
39149 ac_cv_func_gethostbyname=yes
39150else
39151 echo "$as_me: failed program was:" >&5
39152sed 's/^/| /' conftest.$ac_ext >&5
39153
39154ac_cv_func_gethostbyname=no
39155fi
39156rm -f conftest.err conftest.$ac_objext \
39157 conftest$ac_exeext conftest.$ac_ext
39158fi
39159echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39160echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39161if test $ac_cv_func_gethostbyname = yes; then
39162 cat >>confdefs.h <<\_ACEOF
39163#define HAVE_GETHOSTBYNAME 1
39164_ACEOF
39165
39166fi
39167
39168 fi
39169 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39170echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39171if test "${ac_cv_func_getservbyname_r+set}" = set; then
39172 echo $ECHO_N "(cached) $ECHO_C" >&6
39173else
39174 cat >conftest.$ac_ext <<_ACEOF
39175/* confdefs.h. */
39176_ACEOF
39177cat confdefs.h >>conftest.$ac_ext
39178cat >>conftest.$ac_ext <<_ACEOF
39179/* end confdefs.h. */
39180/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39182#define getservbyname_r innocuous_getservbyname_r
39183
39184/* System header to define __stub macros and hopefully few prototypes,
39185 which can conflict with char getservbyname_r (); below.
39186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39187 <limits.h> exists even on freestanding compilers. */
39188
39189#ifdef __STDC__
39190# include <limits.h>
39191#else
39192# include <assert.h>
39193#endif
39194
39195#undef getservbyname_r
39196
39197/* Override any gcc2 internal prototype to avoid an error. */
39198#ifdef __cplusplus
39199extern "C"
39200{
39201#endif
39202/* We use char because int might match the return type of a gcc2
39203 builtin and then its argument prototype would still apply. */
39204char getservbyname_r ();
39205/* The GNU C library defines this for functions which it implements
39206 to always fail with ENOSYS. Some functions are actually named
39207 something starting with __ and the normal name is an alias. */
39208#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39209choke me
39210#else
39211char (*f) () = getservbyname_r;
39212#endif
39213#ifdef __cplusplus
39214}
39215#endif
39216
39217int
39218main ()
39219{
39220return f != getservbyname_r;
39221 ;
39222 return 0;
39223}
39224_ACEOF
39225rm -f conftest.$ac_objext conftest$ac_exeext
39226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39227 (eval $ac_link) 2>conftest.er1
39228 ac_status=$?
39229 grep -v '^ *+' conftest.er1 >conftest.err
39230 rm -f conftest.er1
39231 cat conftest.err >&5
39232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39233 (exit $ac_status); } &&
5d7b7554 39234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39236 (eval $ac_try) 2>&5
39237 ac_status=$?
39238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239 (exit $ac_status); }; } &&
39240 { ac_try='test -s conftest$ac_exeext'
39241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39242 (eval $ac_try) 2>&5
39243 ac_status=$?
39244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245 (exit $ac_status); }; }; then
39246 ac_cv_func_getservbyname_r=yes
39247else
39248 echo "$as_me: failed program was:" >&5
39249sed 's/^/| /' conftest.$ac_ext >&5
39250
39251ac_cv_func_getservbyname_r=no
39252fi
39253rm -f conftest.err conftest.$ac_objext \
39254 conftest$ac_exeext conftest.$ac_ext
39255fi
39256echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39257echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39258if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39259 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39260/* confdefs.h. */
39261_ACEOF
39262cat confdefs.h >>conftest.$ac_ext
39263cat >>conftest.$ac_ext <<_ACEOF
39264/* end confdefs.h. */
99879bbf 39265#include <netdb.h>
004ee6da
RL
39266int
39267main ()
39268{
39269
99879bbf
MR
39270 char *name;
39271 char *proto;
39272 struct servent *se;
39273 struct servent_data data;
39274 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39275
39276 ;
39277 return 0;
39278}
39279_ACEOF
39280rm -f conftest.$ac_objext
39281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39282 (eval $ac_compile) 2>conftest.er1
39283 ac_status=$?
39284 grep -v '^ *+' conftest.er1 >conftest.err
39285 rm -f conftest.er1
39286 cat conftest.err >&5
39287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39288 (exit $ac_status); } &&
5d7b7554 39289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39291 (eval $ac_try) 2>&5
39292 ac_status=$?
39293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294 (exit $ac_status); }; } &&
39295 { ac_try='test -s conftest.$ac_objext'
39296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39297 (eval $ac_try) 2>&5
39298 ac_status=$?
39299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39300 (exit $ac_status); }; }; then
39301 ac_cv_func_which_getservbyname_r=four
39302else
39303 echo "$as_me: failed program was:" >&5
39304sed 's/^/| /' conftest.$ac_ext >&5
39305
99879bbf 39306cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39307/* confdefs.h. */
39308_ACEOF
39309cat confdefs.h >>conftest.$ac_ext
39310cat >>conftest.$ac_ext <<_ACEOF
39311/* end confdefs.h. */
99879bbf 39312#include <netdb.h>
004ee6da
RL
39313int
39314main ()
39315{
39316
99879bbf
MR
39317 char *name;
39318 char *proto;
39319 struct servent *se, *res;
39320 char buffer[2048];
39321 int buflen = 2048;
39322 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39323
39324 ;
39325 return 0;
39326}
39327_ACEOF
39328rm -f conftest.$ac_objext
39329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39330 (eval $ac_compile) 2>conftest.er1
39331 ac_status=$?
39332 grep -v '^ *+' conftest.er1 >conftest.err
39333 rm -f conftest.er1
39334 cat conftest.err >&5
39335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39336 (exit $ac_status); } &&
5d7b7554 39337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
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); }; } &&
39343 { ac_try='test -s conftest.$ac_objext'
39344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39345 (eval $ac_try) 2>&5
39346 ac_status=$?
39347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39348 (exit $ac_status); }; }; then
39349 ac_cv_func_which_getservbyname_r=six
39350else
39351 echo "$as_me: failed program was:" >&5
39352sed 's/^/| /' conftest.$ac_ext >&5
39353
99879bbf 39354cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39355/* confdefs.h. */
39356_ACEOF
39357cat confdefs.h >>conftest.$ac_ext
39358cat >>conftest.$ac_ext <<_ACEOF
39359/* end confdefs.h. */
99879bbf 39360#include <netdb.h>
004ee6da
RL
39361int
39362main ()
39363{
39364
99879bbf
MR
39365 char *name;
39366 char *proto;
39367 struct servent *se;
39368 char buffer[2048];
39369 int buflen = 2048;
39370 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39371
39372 ;
39373 return 0;
39374}
39375_ACEOF
39376rm -f conftest.$ac_objext
39377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39378 (eval $ac_compile) 2>conftest.er1
39379 ac_status=$?
39380 grep -v '^ *+' conftest.er1 >conftest.err
39381 rm -f conftest.er1
39382 cat conftest.err >&5
39383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384 (exit $ac_status); } &&
5d7b7554 39385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39387 (eval $ac_try) 2>&5
39388 ac_status=$?
39389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39390 (exit $ac_status); }; } &&
39391 { ac_try='test -s conftest.$ac_objext'
39392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39393 (eval $ac_try) 2>&5
39394 ac_status=$?
39395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396 (exit $ac_status); }; }; then
39397 ac_cv_func_which_getservbyname_r=five
39398else
39399 echo "$as_me: failed program was:" >&5
39400sed 's/^/| /' conftest.$ac_ext >&5
39401
39402ac_cv_func_which_getservbyname_r=no
99879bbf 39403
004ee6da
RL
39404fi
39405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39406
004ee6da
RL
39407fi
39408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39409
004ee6da
RL
39410fi
39411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39412else
39413 ac_cv_func_which_getservbyname_r=no
39414fi
39415
004ee6da
RL
39416
39417if test $ac_cv_func_which_getservbyname_r = six; then
39418 cat >>confdefs.h <<\_ACEOF
39419#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39420_ACEOF
39421
39422elif test $ac_cv_func_which_getservbyname_r = five; then
39423 cat >>confdefs.h <<\_ACEOF
39424#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39425_ACEOF
39426
39427elif test $ac_cv_func_which_getservbyname_r = four; then
39428 cat >>confdefs.h <<\_ACEOF
39429#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39430_ACEOF
39431
004ee6da
RL
39432fi
39433
39434
39435 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39436 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39437
39438for ac_func in getservbyname
39439do
39440as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39441echo "$as_me:$LINENO: checking for $ac_func" >&5
39442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39443if eval "test \"\${$as_ac_var+set}\" = set"; then
39444 echo $ECHO_N "(cached) $ECHO_C" >&6
39445else
39446 cat >conftest.$ac_ext <<_ACEOF
39447/* confdefs.h. */
39448_ACEOF
39449cat confdefs.h >>conftest.$ac_ext
39450cat >>conftest.$ac_ext <<_ACEOF
39451/* end confdefs.h. */
39452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39454#define $ac_func innocuous_$ac_func
39455
39456/* System header to define __stub macros and hopefully few prototypes,
39457 which can conflict with char $ac_func (); below.
39458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39459 <limits.h> exists even on freestanding compilers. */
39460
39461#ifdef __STDC__
39462# include <limits.h>
39463#else
39464# include <assert.h>
39465#endif
39466
39467#undef $ac_func
39468
39469/* Override any gcc2 internal prototype to avoid an error. */
39470#ifdef __cplusplus
39471extern "C"
39472{
39473#endif
39474/* We use char because int might match the return type of a gcc2
39475 builtin and then its argument prototype would still apply. */
39476char $ac_func ();
39477/* The GNU C library defines this for functions which it implements
39478 to always fail with ENOSYS. Some functions are actually named
39479 something starting with __ and the normal name is an alias. */
39480#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39481choke me
39482#else
39483char (*f) () = $ac_func;
39484#endif
39485#ifdef __cplusplus
39486}
39487#endif
39488
39489int
39490main ()
39491{
39492return f != $ac_func;
39493 ;
39494 return 0;
39495}
39496_ACEOF
39497rm -f conftest.$ac_objext conftest$ac_exeext
39498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39499 (eval $ac_link) 2>conftest.er1
39500 ac_status=$?
39501 grep -v '^ *+' conftest.er1 >conftest.err
39502 rm -f conftest.er1
39503 cat conftest.err >&5
39504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505 (exit $ac_status); } &&
5d7b7554 39506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39508 (eval $ac_try) 2>&5
39509 ac_status=$?
39510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39511 (exit $ac_status); }; } &&
39512 { ac_try='test -s conftest$ac_exeext'
39513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39514 (eval $ac_try) 2>&5
39515 ac_status=$?
39516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39517 (exit $ac_status); }; }; then
39518 eval "$as_ac_var=yes"
39519else
39520 echo "$as_me: failed program was:" >&5
39521sed 's/^/| /' conftest.$ac_ext >&5
39522
39523eval "$as_ac_var=no"
39524fi
39525rm -f conftest.err conftest.$ac_objext \
39526 conftest$ac_exeext conftest.$ac_ext
39527fi
39528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39529echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39530if test `eval echo '${'$as_ac_var'}'` = yes; then
39531 cat >>confdefs.h <<_ACEOF
39532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39533_ACEOF
39534 cat >>confdefs.h <<\_ACEOF
39535#define HAVE_GETSERVBYNAME 1
39536_ACEOF
39537
39538fi
39539done
39540
39541 fi
39542
004ee6da
RL
39543if test "$wxUSE_THREADS" = "yes"; then
39544 cat >>confdefs.h <<\_ACEOF
39545#define wxUSE_THREADS 1
39546_ACEOF
39547
39548
39549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39550else
39551 if test "$ac_cv_func_strtok_r" = "yes"; then
39552 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39553echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39554 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39555 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39556 echo "$as_me:$LINENO: result: yes" >&5
39557echo "${ECHO_T}yes" >&6
39558 else
39559 echo "$as_me:$LINENO: result: no" >&5
39560echo "${ECHO_T}no" >&6
39561 fi
39562 fi
39563fi
39564
39565if test "$WXGTK20" = 1 ; then
39566 cat >>confdefs.h <<_ACEOF
39567#define __WXGTK20__ $WXGTK20
39568_ACEOF
39569
39570 WXGTK12=1
39571fi
39572
39573if test "$WXGTK12" = 1 ; then
39574 cat >>confdefs.h <<_ACEOF
39575#define __WXGTK12__ $WXGTK12
39576_ACEOF
39577
39578fi
39579
39580if test "$WXGTK127" = 1 ; then
39581 cat >>confdefs.h <<_ACEOF
39582#define __WXGTK127__ $WXGTK127
39583_ACEOF
39584
39585fi
39586
39587if test "$WXGPE" = 1 ; then
39588 cat >>confdefs.h <<_ACEOF
39589#define __WXGPE__ $WXGPE
39590_ACEOF
39591
39592fi
39593
39594DEBUG_CFLAGS=
39595if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39596 DEBUG_CFLAGS="-g"
39597 wxUSE_OPTIMISE=no
39598fi
39599
39600if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39601 wxUSE_DEBUG_INFO=yes
39602 if test "$GCC" = yes; then
39603 DEBUG_CFLAGS="-ggdb"
39604 fi
39605fi
39606
39607if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39608 cat >>confdefs.h <<\_ACEOF
39609#define WXDEBUG 1
39610_ACEOF
39611
39612 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39613else
39614 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
39615 if test "x$wxGTK_VERSION" = "x1" ; then
39616 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
39617 fi
004ee6da
RL
39618 fi
39619fi
39620
39621if test "$wxUSE_MEM_TRACING" = "yes" ; then
39622 cat >>confdefs.h <<\_ACEOF
39623#define wxUSE_MEMORY_TRACING 1
39624_ACEOF
39625
39626 cat >>confdefs.h <<\_ACEOF
39627#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39628_ACEOF
39629
39630 cat >>confdefs.h <<\_ACEOF
39631#define wxUSE_DEBUG_NEW_ALWAYS 1
39632_ACEOF
39633
39634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39635fi
39636
39637if test "$wxUSE_DMALLOC" = "yes" ; then
39638 DMALLOC_LIBS="-ldmallocthcxx"
39639fi
39640
39641PROFILE_FLAGS=
39642if test "$wxUSE_PROFILE" = "yes" ; then
39643 PROFILE_FLAGS=" -pg"
39644fi
39645
39646if test "$GCC" = "yes" ; then
39647 if test "$wxUSE_NO_RTTI" = "yes" ; then
39648 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39649 fi
39650 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39651 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39652 fi
39653 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39654 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39655 fi
39656
39657 case "${host}" in
39658 powerpc*-*-aix* )
39659 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39660 ;;
39661 *-hppa* )
39662 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39663 ;;
39664 esac
39665fi
39666
39667OPTIMISE_CFLAGS=
39668if test "$wxUSE_OPTIMISE" = "no" ; then
39669 if test "$GCC" = yes ; then
39670 OPTIMISE_CFLAGS="-O0"
39671 fi
39672else
39673 if test "$GCC" = yes ; then
e5efa97e
VZ
39674 case "${host}" in
39675 *-pc-os2_emx | *-pc-os2-emx )
39676 OPTIMISE_CFLAGS="-O2"
39677 ;;
39678 *)
39679 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
39680 ;;
39681 esac
004ee6da
RL
39682 else
39683 OPTIMISE_CFLAGS="-O"
39684 fi
39685fi
39686
39687
39688if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39689 cat >>confdefs.h <<\_ACEOF
39690#define WXWIN_COMPATIBILITY_2_4 1
39691_ACEOF
39692
39693
39694 WXWIN_COMPATIBILITY_2_6="yes"
39695fi
39696
39697if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39698 cat >>confdefs.h <<\_ACEOF
39699#define WXWIN_COMPATIBILITY_2_6 1
39700_ACEOF
39701
39702fi
39703
39704
39705if test "$wxUSE_GUI" = "yes"; then
39706 cat >>confdefs.h <<\_ACEOF
39707#define wxUSE_GUI 1
39708_ACEOF
39709
39710
39711 fi
39712
39713
39714if test "$wxUSE_UNIX" = "yes"; then
39715 cat >>confdefs.h <<\_ACEOF
39716#define wxUSE_UNIX 1
39717_ACEOF
39718
39719fi
39720
39721
39722if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39723
39724 HAVE_DL_FUNCS=0
39725 HAVE_SHL_FUNCS=0
39726 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39727 if test "$USE_DARWIN" = 1; then
39728 HAVE_DL_FUNCS=1
39729 elif test "$USE_DOS" = 1; then
39730 HAVE_DL_FUNCS=0
39731 else
39732
39733for ac_func in dlopen
39734do
39735as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39736echo "$as_me:$LINENO: checking for $ac_func" >&5
39737echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39738if eval "test \"\${$as_ac_var+set}\" = set"; then
39739 echo $ECHO_N "(cached) $ECHO_C" >&6
39740else
39741 cat >conftest.$ac_ext <<_ACEOF
39742/* confdefs.h. */
39743_ACEOF
39744cat confdefs.h >>conftest.$ac_ext
39745cat >>conftest.$ac_ext <<_ACEOF
39746/* end confdefs.h. */
39747/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39749#define $ac_func innocuous_$ac_func
39750
39751/* System header to define __stub macros and hopefully few prototypes,
39752 which can conflict with char $ac_func (); below.
39753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39754 <limits.h> exists even on freestanding compilers. */
39755
39756#ifdef __STDC__
39757# include <limits.h>
39758#else
39759# include <assert.h>
39760#endif
39761
39762#undef $ac_func
39763
39764/* Override any gcc2 internal prototype to avoid an error. */
39765#ifdef __cplusplus
39766extern "C"
39767{
39768#endif
39769/* We use char because int might match the return type of a gcc2
39770 builtin and then its argument prototype would still apply. */
39771char $ac_func ();
39772/* The GNU C library defines this for functions which it implements
39773 to always fail with ENOSYS. Some functions are actually named
39774 something starting with __ and the normal name is an alias. */
39775#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39776choke me
39777#else
39778char (*f) () = $ac_func;
39779#endif
39780#ifdef __cplusplus
39781}
39782#endif
39783
39784int
39785main ()
39786{
39787return f != $ac_func;
a848cd7e
SC
39788 ;
39789 return 0;
39790}
39791_ACEOF
39792rm -f conftest.$ac_objext conftest$ac_exeext
39793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39794 (eval $ac_link) 2>conftest.er1
a848cd7e 39795 ac_status=$?
ac1cb8d3
VS
39796 grep -v '^ *+' conftest.er1 >conftest.err
39797 rm -f conftest.er1
39798 cat conftest.err >&5
a848cd7e
SC
39799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39800 (exit $ac_status); } &&
5d7b7554 39801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39803 (eval $ac_try) 2>&5
39804 ac_status=$?
39805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39806 (exit $ac_status); }; } &&
39807 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39809 (eval $ac_try) 2>&5
39810 ac_status=$?
39811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39812 (exit $ac_status); }; }; then
39813 eval "$as_ac_var=yes"
39814else
39815 echo "$as_me: failed program was:" >&5
39816sed 's/^/| /' conftest.$ac_ext >&5
39817
39818eval "$as_ac_var=no"
39819fi
ac1cb8d3
VS
39820rm -f conftest.err conftest.$ac_objext \
39821 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39822fi
39823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39825if test `eval echo '${'$as_ac_var'}'` = yes; then
39826 cat >>confdefs.h <<_ACEOF
39827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39828_ACEOF
39829
39830 cat >>confdefs.h <<\_ACEOF
39831#define HAVE_DLOPEN 1
39832_ACEOF
39833
39834 HAVE_DL_FUNCS=1
39835
39836else
39837
39838 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39839echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39840if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39841 echo $ECHO_N "(cached) $ECHO_C" >&6
39842else
39843 ac_check_lib_save_LIBS=$LIBS
39844LIBS="-ldl $LIBS"
39845cat >conftest.$ac_ext <<_ACEOF
39846/* confdefs.h. */
39847_ACEOF
39848cat confdefs.h >>conftest.$ac_ext
39849cat >>conftest.$ac_ext <<_ACEOF
39850/* end confdefs.h. */
39851
39852/* Override any gcc2 internal prototype to avoid an error. */
39853#ifdef __cplusplus
39854extern "C"
39855#endif
39856/* We use char because int might match the return type of a gcc2
39857 builtin and then its argument prototype would still apply. */
39858char dlopen ();
39859int
39860main ()
39861{
39862dlopen ();
39863 ;
39864 return 0;
39865}
39866_ACEOF
39867rm -f conftest.$ac_objext conftest$ac_exeext
39868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39869 (eval $ac_link) 2>conftest.er1
a848cd7e 39870 ac_status=$?
ac1cb8d3
VS
39871 grep -v '^ *+' conftest.er1 >conftest.err
39872 rm -f conftest.er1
39873 cat conftest.err >&5
a848cd7e
SC
39874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875 (exit $ac_status); } &&
5d7b7554 39876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39878 (eval $ac_try) 2>&5
39879 ac_status=$?
39880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39881 (exit $ac_status); }; } &&
39882 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39884 (eval $ac_try) 2>&5
39885 ac_status=$?
39886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39887 (exit $ac_status); }; }; then
39888 ac_cv_lib_dl_dlopen=yes
39889else
39890 echo "$as_me: failed program was:" >&5
39891sed 's/^/| /' conftest.$ac_ext >&5
39892
39893ac_cv_lib_dl_dlopen=no
39894fi
ac1cb8d3
VS
39895rm -f conftest.err conftest.$ac_objext \
39896 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39897LIBS=$ac_check_lib_save_LIBS
39898fi
39899echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39900echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
39901if test $ac_cv_lib_dl_dlopen = yes; then
39902
39903 cat >>confdefs.h <<\_ACEOF
39904#define HAVE_DLOPEN 1
39905_ACEOF
39906
39907 HAVE_DL_FUNCS=1
39908 DL_LINK=" -ldl$DL_LINK"
39909
39910else
39911
39912
39913for ac_func in shl_load
39914do
39915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39916echo "$as_me:$LINENO: checking for $ac_func" >&5
39917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39918if eval "test \"\${$as_ac_var+set}\" = set"; then
39919 echo $ECHO_N "(cached) $ECHO_C" >&6
39920else
39921 cat >conftest.$ac_ext <<_ACEOF
39922/* confdefs.h. */
39923_ACEOF
39924cat confdefs.h >>conftest.$ac_ext
39925cat >>conftest.$ac_ext <<_ACEOF
39926/* end confdefs.h. */
ac1cb8d3
VS
39927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39929#define $ac_func innocuous_$ac_func
39930
a848cd7e
SC
39931/* System header to define __stub macros and hopefully few prototypes,
39932 which can conflict with char $ac_func (); below.
39933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39934 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39935
a848cd7e
SC
39936#ifdef __STDC__
39937# include <limits.h>
39938#else
39939# include <assert.h>
39940#endif
ac1cb8d3
VS
39941
39942#undef $ac_func
39943
a848cd7e
SC
39944/* Override any gcc2 internal prototype to avoid an error. */
39945#ifdef __cplusplus
39946extern "C"
39947{
39948#endif
39949/* We use char because int might match the return type of a gcc2
39950 builtin and then its argument prototype would still apply. */
39951char $ac_func ();
39952/* The GNU C library defines this for functions which it implements
39953 to always fail with ENOSYS. Some functions are actually named
39954 something starting with __ and the normal name is an alias. */
39955#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39956choke me
39957#else
39958char (*f) () = $ac_func;
39959#endif
39960#ifdef __cplusplus
39961}
39962#endif
39963
39964int
39965main ()
39966{
39967return f != $ac_func;
39968 ;
39969 return 0;
39970}
39971_ACEOF
39972rm -f conftest.$ac_objext conftest$ac_exeext
39973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39974 (eval $ac_link) 2>conftest.er1
a848cd7e 39975 ac_status=$?
ac1cb8d3
VS
39976 grep -v '^ *+' conftest.er1 >conftest.err
39977 rm -f conftest.er1
39978 cat conftest.err >&5
a848cd7e
SC
39979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39980 (exit $ac_status); } &&
5d7b7554 39981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39983 (eval $ac_try) 2>&5
39984 ac_status=$?
39985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39986 (exit $ac_status); }; } &&
39987 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39989 (eval $ac_try) 2>&5
39990 ac_status=$?
39991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992 (exit $ac_status); }; }; then
39993 eval "$as_ac_var=yes"
39994else
39995 echo "$as_me: failed program was:" >&5
39996sed 's/^/| /' conftest.$ac_ext >&5
39997
39998eval "$as_ac_var=no"
39999fi
ac1cb8d3
VS
40000rm -f conftest.err conftest.$ac_objext \
40001 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40002fi
40003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40004echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40005if test `eval echo '${'$as_ac_var'}'` = yes; then
40006 cat >>confdefs.h <<_ACEOF
40007#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40008_ACEOF
40009
40010 cat >>confdefs.h <<\_ACEOF
40011#define HAVE_SHL_LOAD 1
40012_ACEOF
40013
40014 HAVE_SHL_FUNCS=1
40015
40016else
40017
40018 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40019echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40020if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40021 echo $ECHO_N "(cached) $ECHO_C" >&6
40022else
40023 ac_check_lib_save_LIBS=$LIBS
40024LIBS="-lshl_load $LIBS"
40025cat >conftest.$ac_ext <<_ACEOF
40026/* confdefs.h. */
40027_ACEOF
40028cat confdefs.h >>conftest.$ac_ext
40029cat >>conftest.$ac_ext <<_ACEOF
40030/* end confdefs.h. */
40031
40032/* Override any gcc2 internal prototype to avoid an error. */
40033#ifdef __cplusplus
40034extern "C"
40035#endif
40036/* We use char because int might match the return type of a gcc2
40037 builtin and then its argument prototype would still apply. */
40038char dld ();
40039int
40040main ()
40041{
40042dld ();
40043 ;
40044 return 0;
40045}
40046_ACEOF
40047rm -f conftest.$ac_objext conftest$ac_exeext
40048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40049 (eval $ac_link) 2>conftest.er1
a848cd7e 40050 ac_status=$?
ac1cb8d3
VS
40051 grep -v '^ *+' conftest.er1 >conftest.err
40052 rm -f conftest.er1
40053 cat conftest.err >&5
a848cd7e
SC
40054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40055 (exit $ac_status); } &&
5d7b7554 40056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40058 (eval $ac_try) 2>&5
40059 ac_status=$?
40060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40061 (exit $ac_status); }; } &&
40062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40064 (eval $ac_try) 2>&5
40065 ac_status=$?
40066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067 (exit $ac_status); }; }; then
40068 ac_cv_lib_shl_load_dld=yes
40069else
40070 echo "$as_me: failed program was:" >&5
40071sed 's/^/| /' conftest.$ac_ext >&5
40072
40073ac_cv_lib_shl_load_dld=no
40074fi
ac1cb8d3
VS
40075rm -f conftest.err conftest.$ac_objext \
40076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40077LIBS=$ac_check_lib_save_LIBS
40078fi
40079echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40080echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40081if test $ac_cv_lib_shl_load_dld = yes; then
40082
40083 HAVE_SHL_FUNCS=1
40084 DL_LINK=" -ldld$DL_LINK"
40085
40086fi
40087
40088
40089fi
40090done
40091
40092
40093fi
40094
40095
40096fi
40097done
40098
40099
40100 if test "$HAVE_DL_FUNCS" = 1; then
40101
40102for ac_func in dlerror
40103do
40104as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40105echo "$as_me:$LINENO: checking for $ac_func" >&5
40106echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40107if eval "test \"\${$as_ac_var+set}\" = set"; then
40108 echo $ECHO_N "(cached) $ECHO_C" >&6
40109else
40110 cat >conftest.$ac_ext <<_ACEOF
40111/* confdefs.h. */
40112_ACEOF
40113cat confdefs.h >>conftest.$ac_ext
40114cat >>conftest.$ac_ext <<_ACEOF
40115/* end confdefs.h. */
ac1cb8d3
VS
40116/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40118#define $ac_func innocuous_$ac_func
40119
a848cd7e
SC
40120/* System header to define __stub macros and hopefully few prototypes,
40121 which can conflict with char $ac_func (); below.
40122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40123 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40124
a848cd7e
SC
40125#ifdef __STDC__
40126# include <limits.h>
40127#else
40128# include <assert.h>
40129#endif
ac1cb8d3
VS
40130
40131#undef $ac_func
40132
a848cd7e
SC
40133/* Override any gcc2 internal prototype to avoid an error. */
40134#ifdef __cplusplus
40135extern "C"
40136{
40137#endif
40138/* We use char because int might match the return type of a gcc2
40139 builtin and then its argument prototype would still apply. */
40140char $ac_func ();
40141/* The GNU C library defines this for functions which it implements
40142 to always fail with ENOSYS. Some functions are actually named
40143 something starting with __ and the normal name is an alias. */
40144#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40145choke me
40146#else
40147char (*f) () = $ac_func;
40148#endif
40149#ifdef __cplusplus
40150}
40151#endif
40152
40153int
40154main ()
40155{
40156return f != $ac_func;
40157 ;
40158 return 0;
40159}
40160_ACEOF
40161rm -f conftest.$ac_objext conftest$ac_exeext
40162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40163 (eval $ac_link) 2>conftest.er1
a848cd7e 40164 ac_status=$?
ac1cb8d3
VS
40165 grep -v '^ *+' conftest.er1 >conftest.err
40166 rm -f conftest.er1
40167 cat conftest.err >&5
a848cd7e
SC
40168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40169 (exit $ac_status); } &&
5d7b7554 40170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40172 (eval $ac_try) 2>&5
40173 ac_status=$?
40174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40175 (exit $ac_status); }; } &&
40176 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40178 (eval $ac_try) 2>&5
40179 ac_status=$?
40180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181 (exit $ac_status); }; }; then
40182 eval "$as_ac_var=yes"
40183else
40184 echo "$as_me: failed program was:" >&5
40185sed 's/^/| /' conftest.$ac_ext >&5
40186
40187eval "$as_ac_var=no"
40188fi
ac1cb8d3
VS
40189rm -f conftest.err conftest.$ac_objext \
40190 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40191fi
40192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40193echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40194if test `eval echo '${'$as_ac_var'}'` = yes; then
40195 cat >>confdefs.h <<_ACEOF
40196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40197_ACEOF
40198 cat >>confdefs.h <<\_ACEOF
40199#define HAVE_DLERROR 1
40200_ACEOF
40201
40202else
40203
40204 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40205echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40206if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40207 echo $ECHO_N "(cached) $ECHO_C" >&6
40208else
40209 ac_check_lib_save_LIBS=$LIBS
40210LIBS="-ldl $LIBS"
40211cat >conftest.$ac_ext <<_ACEOF
40212/* confdefs.h. */
40213_ACEOF
40214cat confdefs.h >>conftest.$ac_ext
40215cat >>conftest.$ac_ext <<_ACEOF
40216/* end confdefs.h. */
40217
40218/* Override any gcc2 internal prototype to avoid an error. */
40219#ifdef __cplusplus
40220extern "C"
40221#endif
40222/* We use char because int might match the return type of a gcc2
40223 builtin and then its argument prototype would still apply. */
40224char dlerror ();
40225int
40226main ()
40227{
40228dlerror ();
40229 ;
40230 return 0;
40231}
40232_ACEOF
40233rm -f conftest.$ac_objext conftest$ac_exeext
40234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40235 (eval $ac_link) 2>conftest.er1
a848cd7e 40236 ac_status=$?
ac1cb8d3
VS
40237 grep -v '^ *+' conftest.er1 >conftest.err
40238 rm -f conftest.er1
40239 cat conftest.err >&5
a848cd7e
SC
40240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241 (exit $ac_status); } &&
5d7b7554 40242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40244 (eval $ac_try) 2>&5
40245 ac_status=$?
40246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40247 (exit $ac_status); }; } &&
40248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40250 (eval $ac_try) 2>&5
40251 ac_status=$?
40252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40253 (exit $ac_status); }; }; then
40254 ac_cv_lib_dl_dlerror=yes
40255else
40256 echo "$as_me: failed program was:" >&5
40257sed 's/^/| /' conftest.$ac_ext >&5
40258
40259ac_cv_lib_dl_dlerror=no
40260fi
ac1cb8d3
VS
40261rm -f conftest.err conftest.$ac_objext \
40262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40263LIBS=$ac_check_lib_save_LIBS
40264fi
40265echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40266echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40267if test $ac_cv_lib_dl_dlerror = yes; then
40268 cat >>confdefs.h <<\_ACEOF
40269#define HAVE_DLERROR 1
40270_ACEOF
40271
40272fi
40273
40274
40275
40276fi
40277done
40278
40279 fi
40280 fi
40281
40282 if test "$HAVE_DL_FUNCS" = 0; then
40283 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40284 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40285 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40286echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40287 wxUSE_DYNAMIC_LOADER=no
40288 wxUSE_DYNLIB_CLASS=no
40289 else
40290 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40291echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40292 fi
40293 fi
40294 fi
40295 fi
40296fi
40297
40298if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40299 cat >>confdefs.h <<\_ACEOF
40300#define wxUSE_DYNAMIC_LOADER 1
40301_ACEOF
40302
40303fi
40304if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40305 cat >>confdefs.h <<\_ACEOF
40306#define wxUSE_DYNLIB_CLASS 1
40307_ACEOF
40308
40309fi
40310
40311
40312
40313if test "$wxUSE_PLUGINS" = "yes" ; then
40314 if test "$wxUSE_SHARED" = "no" ; then
40315 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40316echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40317 wxUSE_PLUGINS=no
40318 fi
40319 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40320 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40321echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40322 wxUSE_PLUGINS=no
40323 fi
40324 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40325 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40326echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40327 wxUSE_PLUGINS=no
40328 fi
40329 if test "$wxUSE_PLUGINS" = "yes" ; then
40330 cat >>confdefs.h <<\_ACEOF
40331#define wxUSE_PLUGINS 1
40332_ACEOF
40333
40334 fi
40335fi
40336
40337
40338if test "$wxUSE_STL" = "yes"; then
40339 cat >>confdefs.h <<\_ACEOF
40340#define wxUSE_STL 1
40341_ACEOF
40342
40343fi
40344
40345if test "$wxUSE_APPLE_IEEE" = "yes"; then
40346 cat >>confdefs.h <<\_ACEOF
40347#define wxUSE_APPLE_IEEE 1
40348_ACEOF
40349
40350fi
40351
40352if test "$wxUSE_TIMER" = "yes"; then
40353 cat >>confdefs.h <<\_ACEOF
40354#define wxUSE_TIMER 1
40355_ACEOF
40356
40357fi
40358
9c112555 40359if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40360 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40361echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40362if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40363 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40364else
d12aef51
VZ
40365
40366 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40367/* confdefs.h. */
40368_ACEOF
40369cat confdefs.h >>conftest.$ac_ext
40370cat >>conftest.$ac_ext <<_ACEOF
40371/* end confdefs.h. */
d12aef51
VZ
40372
40373 #include <sys/soundcard.h>
40374
40375int
40376main ()
40377{
40378
40379 ioctl(0, SNDCTL_DSP_SYNC, 0);
40380
40381 ;
40382 return 0;
40383}
a848cd7e 40384_ACEOF
d12aef51
VZ
40385rm -f conftest.$ac_objext conftest$ac_exeext
40386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40387 (eval $ac_link) 2>conftest.er1
a848cd7e 40388 ac_status=$?
ac1cb8d3
VS
40389 grep -v '^ *+' conftest.er1 >conftest.err
40390 rm -f conftest.er1
40391 cat conftest.err >&5
a848cd7e
SC
40392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40393 (exit $ac_status); } &&
5d7b7554 40394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40396 (eval $ac_try) 2>&5
40397 ac_status=$?
40398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40399 (exit $ac_status); }; } &&
d12aef51 40400 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40402 (eval $ac_try) 2>&5
40403 ac_status=$?
40404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405 (exit $ac_status); }; }; then
d12aef51 40406 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40407else
40408 echo "$as_me: failed program was:" >&5
40409sed 's/^/| /' conftest.$ac_ext >&5
40410
a848cd7e 40411
d12aef51
VZ
40412 saveLibs="$LIBS"
40413 LIBS="$saveLibs -lossaudio"
40414 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40415/* confdefs.h. */
40416_ACEOF
40417cat confdefs.h >>conftest.$ac_ext
40418cat >>conftest.$ac_ext <<_ACEOF
40419/* end confdefs.h. */
d12aef51
VZ
40420
40421 #include <sys/soundcard.h>
40422
40423int
40424main ()
40425{
40426
40427 ioctl(0, SNDCTL_DSP_SYNC, 0);
40428
40429 ;
40430 return 0;
40431}
a848cd7e 40432_ACEOF
d12aef51
VZ
40433rm -f conftest.$ac_objext conftest$ac_exeext
40434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40435 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40436 ac_status=$?
40437 grep -v '^ *+' conftest.er1 >conftest.err
40438 rm -f conftest.er1
40439 cat conftest.err >&5
40440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40441 (exit $ac_status); } &&
5d7b7554 40442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
40443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40444 (eval $ac_try) 2>&5
40445 ac_status=$?
40446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40447 (exit $ac_status); }; } &&
40448 { ac_try='test -s conftest$ac_exeext'
40449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40450 (eval $ac_try) 2>&5
40451 ac_status=$?
40452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40453 (exit $ac_status); }; }; then
40454 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40455else
40456 echo "$as_me: failed program was:" >&5
40457sed 's/^/| /' conftest.$ac_ext >&5
40458
a848cd7e 40459
d12aef51
VZ
40460 LIBS="$saveLibs"
40461 ac_cv_header_sys_soundcard=no
40462
40463
a848cd7e 40464fi
d12aef51
VZ
40465rm -f conftest.err conftest.$ac_objext \
40466 conftest$ac_exeext conftest.$ac_ext
40467
a848cd7e
SC
40468
40469fi
d12aef51
VZ
40470rm -f conftest.err conftest.$ac_objext \
40471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40472
40473fi
d12aef51
VZ
40474echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40475echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40476
d12aef51
VZ
40477 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40478 cat >>confdefs.h <<\_ACEOF
40479#define HAVE_SYS_SOUNDCARD_H 1
40480_ACEOF
a848cd7e 40481
d12aef51
VZ
40482 else
40483 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40484 fi
9c112555
MW
40485fi
40486WITH_PLUGIN_SDL=0
40487if test "$wxUSE_SOUND" = "yes"; then
40488 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40489 if test "$wxUSE_LIBSDL" != "no"; then
40490
40491# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40492if test "${with_sdl_prefix+set}" = set; then
40493 withval="$with_sdl_prefix"
40494 sdl_prefix="$withval"
40495else
40496 sdl_prefix=""
40497fi;
40498
40499# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40500if test "${with_sdl_exec_prefix+set}" = set; then
40501 withval="$with_sdl_exec_prefix"
40502 sdl_exec_prefix="$withval"
40503else
40504 sdl_exec_prefix=""
40505fi;
40506# Check whether --enable-sdltest or --disable-sdltest was given.
40507if test "${enable_sdltest+set}" = set; then
40508 enableval="$enable_sdltest"
40509
40510else
40511 enable_sdltest=yes
40512fi;
40513
40514 if test x$sdl_exec_prefix != x ; then
40515 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40516 if test x${SDL_CONFIG+set} != xset ; then
40517 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40518 fi
40519 fi
40520 if test x$sdl_prefix != x ; then
40521 sdl_args="$sdl_args --prefix=$sdl_prefix"
40522 if test x${SDL_CONFIG+set} != xset ; then
40523 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40524 fi
40525 fi
40526
40527
40528 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40529 # Extract the first word of "sdl-config", so it can be a program name with args.
40530set dummy sdl-config; ac_word=$2
40531echo "$as_me:$LINENO: checking for $ac_word" >&5
40532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40533if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40534 echo $ECHO_N "(cached) $ECHO_C" >&6
40535else
40536 case $SDL_CONFIG in
40537 [\\/]* | ?:[\\/]*)
40538 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40539 ;;
40540 *)
40541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40542for as_dir in $PATH
40543do
40544 IFS=$as_save_IFS
40545 test -z "$as_dir" && as_dir=.
40546 for ac_exec_ext in '' $ac_executable_extensions; do
40547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40548 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40550 break 2
40551 fi
40552done
40553done
40554
40555 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40556 ;;
40557esac
40558fi
40559SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40560
40561if test -n "$SDL_CONFIG"; then
40562 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40563echo "${ECHO_T}$SDL_CONFIG" >&6
40564else
40565 echo "$as_me:$LINENO: result: no" >&5
40566echo "${ECHO_T}no" >&6
40567fi
40568
40569 min_sdl_version=1.2.0
40570 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40571echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40572 no_sdl=""
40573 if test "$SDL_CONFIG" = "no" ; then
40574 no_sdl=yes
40575 else
40576 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40577 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40578
40579 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40580 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40581 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40582 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40583 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40584 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40585 if test "x$enable_sdltest" = "xyes" ; then
40586 ac_save_CFLAGS="$CFLAGS"
94acd38e 40587 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40588 ac_save_LIBS="$LIBS"
40589 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40590 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40591 LIBS="$LIBS $SDL_LIBS"
40592 rm -f conf.sdltest
40593 if test "$cross_compiling" = yes; then
40594 echo $ac_n "cross compiling; assumed OK... $ac_c"
40595else
40596 cat >conftest.$ac_ext <<_ACEOF
40597/* confdefs.h. */
40598_ACEOF
40599cat confdefs.h >>conftest.$ac_ext
40600cat >>conftest.$ac_ext <<_ACEOF
40601/* end confdefs.h. */
40602
40603#include <stdio.h>
40604#include <stdlib.h>
40605#include <string.h>
40606#include "SDL.h"
40607
40608char*
40609my_strdup (char *str)
40610{
40611 char *new_str;
40612
40613 if (str)
40614 {
40615 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40616 strcpy (new_str, str);
40617 }
40618 else
40619 new_str = NULL;
40620
40621 return new_str;
40622}
40623
40624int main (int argc, char *argv[])
40625{
40626 int major, minor, micro;
40627 char *tmp_version;
40628
40629 /* This hangs on some systems (?)
40630 system ("touch conf.sdltest");
40631 */
40632 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40633
40634 /* HP/UX 9 (%@#!) writes to sscanf strings */
40635 tmp_version = my_strdup("$min_sdl_version");
40636 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40637 printf("%s, bad version string\n", "$min_sdl_version");
40638 exit(1);
40639 }
40640
40641 if (($sdl_major_version > major) ||
40642 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40643 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40644 {
40645 return 0;
40646 }
40647 else
40648 {
40649 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40650 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40651 printf("*** best to upgrade to the required version.\n");
40652 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40653 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40654 printf("*** config.cache before re-running configure\n");
40655 return 1;
40656 }
40657}
40658
40659
40660_ACEOF
40661rm -f conftest$ac_exeext
40662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40663 (eval $ac_link) 2>&5
40664 ac_status=$?
40665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40668 (eval $ac_try) 2>&5
40669 ac_status=$?
40670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671 (exit $ac_status); }; }; then
40672 :
40673else
40674 echo "$as_me: program exited with status $ac_status" >&5
40675echo "$as_me: failed program was:" >&5
40676sed 's/^/| /' conftest.$ac_ext >&5
40677
40678( exit $ac_status )
40679no_sdl=yes
40680fi
ac1cb8d3 40681rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40682fi
40683 CFLAGS="$ac_save_CFLAGS"
94acd38e 40684 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40685 LIBS="$ac_save_LIBS"
40686 fi
40687 fi
40688 if test "x$no_sdl" = x ; then
40689 echo "$as_me:$LINENO: result: yes" >&5
40690echo "${ECHO_T}yes" >&6
40691
40692 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40693 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40694 cat >>confdefs.h <<\_ACEOF
40695#define wxUSE_LIBSDL 1
40696_ACEOF
40697
40698
40699 else
40700 echo "$as_me:$LINENO: result: no" >&5
40701echo "${ECHO_T}no" >&6
40702 if test "$SDL_CONFIG" = "no" ; then
40703 echo "*** The sdl-config script installed by SDL could not be found"
40704 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40705 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40706 echo "*** full path to sdl-config."
40707 else
40708 if test -f conf.sdltest ; then
40709 :
40710 else
40711 echo "*** Could not run SDL test program, checking why..."
40712 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40713 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40714 LIBS="$LIBS $SDL_LIBS"
40715 cat >conftest.$ac_ext <<_ACEOF
40716/* confdefs.h. */
40717_ACEOF
40718cat confdefs.h >>conftest.$ac_ext
40719cat >>conftest.$ac_ext <<_ACEOF
40720/* end confdefs.h. */
40721
40722#include <stdio.h>
40723#include "SDL.h"
40724
40725int main(int argc, char *argv[])
40726{ return 0; }
40727#undef main
40728#define main K_and_R_C_main
40729
40730int
40731main ()
40732{
40733 return 0;
40734 ;
40735 return 0;
40736}
40737_ACEOF
40738rm -f conftest.$ac_objext conftest$ac_exeext
40739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40740 (eval $ac_link) 2>conftest.er1
a848cd7e 40741 ac_status=$?
ac1cb8d3
VS
40742 grep -v '^ *+' conftest.er1 >conftest.err
40743 rm -f conftest.er1
40744 cat conftest.err >&5
a848cd7e
SC
40745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746 (exit $ac_status); } &&
5d7b7554 40747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40749 (eval $ac_try) 2>&5
40750 ac_status=$?
40751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40752 (exit $ac_status); }; } &&
40753 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40755 (eval $ac_try) 2>&5
40756 ac_status=$?
40757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40758 (exit $ac_status); }; }; then
40759 echo "*** The test program compiled, but did not run. This usually means"
40760 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40761 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40762 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40763 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40764 echo "*** is required on your system"
40765 echo "***"
40766 echo "*** If you have an old version installed, it is best to remove it, although"
40767 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40768else
40769 echo "$as_me: failed program was:" >&5
40770sed 's/^/| /' conftest.$ac_ext >&5
40771
40772 echo "*** The test program failed to compile or link. See the file config.log for the"
40773 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40774 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40775 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40776fi
ac1cb8d3
VS
40777rm -f conftest.err conftest.$ac_objext \
40778 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40779 CFLAGS="$ac_save_CFLAGS"
94acd38e 40780 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40781 LIBS="$ac_save_LIBS"
40782 fi
40783 fi
40784 SDL_CFLAGS=""
40785 SDL_LIBS=""
40786 wxUSE_LIBSDL="no"
40787 fi
40788
40789
40790 rm -f conf.sdltest
40791
40792 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40793 WITH_PLUGIN_SDL=1
40794 fi
40795 fi
40796 fi
40797
40798 cat >>confdefs.h <<\_ACEOF
40799#define wxUSE_SOUND 1
40800_ACEOF
40801
40802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40803fi
40804
d1c38808
VZ
40805if test "$WXGTK20" = 1; then
40806 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40807 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40808
40809
40810 succeeded=no
40811
40812 if test -z "$PKG_CONFIG"; then
40813 # Extract the first word of "pkg-config", so it can be a program name with args.
40814set dummy pkg-config; ac_word=$2
40815echo "$as_me:$LINENO: checking for $ac_word" >&5
40816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40817if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40818 echo $ECHO_N "(cached) $ECHO_C" >&6
40819else
40820 case $PKG_CONFIG in
40821 [\\/]* | ?:[\\/]*)
40822 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40823 ;;
40824 *)
40825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40826for as_dir in $PATH
40827do
40828 IFS=$as_save_IFS
40829 test -z "$as_dir" && as_dir=.
40830 for ac_exec_ext in '' $ac_executable_extensions; do
40831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40832 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40834 break 2
40835 fi
40836done
40837done
40838
40839 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40840 ;;
40841esac
40842fi
40843PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40844
40845if test -n "$PKG_CONFIG"; then
40846 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40847echo "${ECHO_T}$PKG_CONFIG" >&6
40848else
40849 echo "$as_me:$LINENO: result: no" >&5
40850echo "${ECHO_T}no" >&6
40851fi
40852
40853 fi
40854
40855 if test "$PKG_CONFIG" = "no" ; then
40856 echo "*** The pkg-config script could not be found. Make sure it is"
40857 echo "*** in your path, or set the PKG_CONFIG environment variable"
40858 echo "*** to the full path to pkg-config."
40859 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40860 else
40861 PKG_CONFIG_MIN_VERSION=0.9.0
40862 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
40863 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
40864echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 40865
ffa762ff 40866 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
40867 echo "$as_me:$LINENO: result: yes" >&5
40868echo "${ECHO_T}yes" >&6
40869 succeeded=yes
40870
40871 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
40872echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 40873 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40874 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
40875echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
40876
40877 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
40878echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 40879 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40880 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
40881echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
40882 else
40883 LIBGNOMEPRINTUI_CFLAGS=""
40884 LIBGNOMEPRINTUI_LIBS=""
40885 ## If we have a custom action on failure, don't print errors, but
40886 ## do set a variable so people can do so.
ffa762ff 40887 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40888
40889 fi
40890
40891
40892
40893 else
40894 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40895 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40896 fi
40897 fi
40898
40899 if test $succeeded = yes; then
40900
c92ad099 40901 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
40902 cat >>confdefs.h <<\_ACEOF
40903#define wxUSE_LIBGNOMEPRINT 1
40904_ACEOF
40905
40906
40907 else
40908
40909 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
40910echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
40911 wxUSE_LIBGNOMEPRINT="no"
40912
40913
40914 fi
40915
40916 fi
40917 fi
40918fi
40919
2b850ae1
RR
40920if test "$WXGTK20" = 1; then
40921 if test "$wxUSE_MIMETYPE" = "yes" ; then
40922 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
40923
40924
40925 succeeded=no
40926
40927 if test -z "$PKG_CONFIG"; then
40928 # Extract the first word of "pkg-config", so it can be a program name with args.
40929set dummy pkg-config; ac_word=$2
40930echo "$as_me:$LINENO: checking for $ac_word" >&5
40931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40932if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40933 echo $ECHO_N "(cached) $ECHO_C" >&6
40934else
40935 case $PKG_CONFIG in
40936 [\\/]* | ?:[\\/]*)
40937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40938 ;;
40939 *)
40940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40941for as_dir in $PATH
40942do
40943 IFS=$as_save_IFS
40944 test -z "$as_dir" && as_dir=.
40945 for ac_exec_ext in '' $ac_executable_extensions; do
40946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40949 break 2
40950 fi
40951done
40952done
40953
40954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40955 ;;
40956esac
40957fi
40958PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40959
40960if test -n "$PKG_CONFIG"; then
40961 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40962echo "${ECHO_T}$PKG_CONFIG" >&6
40963else
40964 echo "$as_me:$LINENO: result: no" >&5
40965echo "${ECHO_T}no" >&6
40966fi
40967
40968 fi
40969
40970 if test "$PKG_CONFIG" = "no" ; then
40971 echo "*** The pkg-config script could not be found. Make sure it is"
40972 echo "*** in your path, or set the PKG_CONFIG environment variable"
40973 echo "*** to the full path to pkg-config."
40974 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40975 else
40976 PKG_CONFIG_MIN_VERSION=0.9.0
40977 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40978 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
40979echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
40980
40981 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
40982 echo "$as_me:$LINENO: result: yes" >&5
40983echo "${ECHO_T}yes" >&6
40984 succeeded=yes
40985
40986 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
40987echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
40988 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
40989 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
40990echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
40991
40992 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
40993echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
40994 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
40995 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
40996echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
40997 else
40998 GNOMEVFS_CFLAGS=""
40999 GNOMEVFS_LIBS=""
41000 ## If we have a custom action on failure, don't print errors, but
41001 ## do set a variable so people can do so.
41002 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41003
41004 fi
41005
41006
41007
41008 else
41009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41011 fi
41012 fi
41013
41014 if test $succeeded = yes; then
41015
41016 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41017 cat >>confdefs.h <<\_ACEOF
41018#define wxUSE_LIBGNOMEVFS 1
41019_ACEOF
41020
41021
41022 else
41023
41024 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41025echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41026 wxUSE_LIBGNOMEVFS="no"
41027
41028
41029 fi
41030
41031 fi
41032 fi
41033fi
41034
3565d135
RR
41035if test "$WXGTK20" = 1; then
41036 if test "$wxUSE_LIBHILDON" = "yes" ; then
41037
41038 succeeded=no
41039
41040 if test -z "$PKG_CONFIG"; then
41041 # Extract the first word of "pkg-config", so it can be a program name with args.
41042set dummy pkg-config; ac_word=$2
41043echo "$as_me:$LINENO: checking for $ac_word" >&5
41044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41045if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41046 echo $ECHO_N "(cached) $ECHO_C" >&6
41047else
41048 case $PKG_CONFIG in
41049 [\\/]* | ?:[\\/]*)
41050 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41051 ;;
41052 *)
41053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41054for as_dir in $PATH
41055do
41056 IFS=$as_save_IFS
41057 test -z "$as_dir" && as_dir=.
41058 for ac_exec_ext in '' $ac_executable_extensions; do
41059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41060 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41062 break 2
41063 fi
41064done
41065done
41066
41067 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41068 ;;
41069esac
41070fi
41071PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41072
41073if test -n "$PKG_CONFIG"; then
41074 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41075echo "${ECHO_T}$PKG_CONFIG" >&6
41076else
41077 echo "$as_me:$LINENO: result: no" >&5
41078echo "${ECHO_T}no" >&6
41079fi
41080
41081 fi
41082
41083 if test "$PKG_CONFIG" = "no" ; then
41084 echo "*** The pkg-config script could not be found. Make sure it is"
41085 echo "*** in your path, or set the PKG_CONFIG environment variable"
41086 echo "*** to the full path to pkg-config."
41087 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41088 else
41089 PKG_CONFIG_MIN_VERSION=0.9.0
41090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41091 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41092echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41093
41094 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41095 echo "$as_me:$LINENO: result: yes" >&5
41096echo "${ECHO_T}yes" >&6
41097 succeeded=yes
41098
41099 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41100echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41101 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41102 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41103echo "${ECHO_T}$HILDON_CFLAGS" >&6
41104
41105 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41106echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41107 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41108 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41109echo "${ECHO_T}$HILDON_LIBS" >&6
41110 else
41111 HILDON_CFLAGS=""
41112 HILDON_LIBS=""
41113 ## If we have a custom action on failure, don't print errors, but
41114 ## do set a variable so people can do so.
41115 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41116
41117 fi
41118
41119
41120
41121 else
41122 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41123 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41124 fi
41125 fi
41126
41127 if test $succeeded = yes; then
41128
41129 EXTRALIBS_HILDON="$HILDON_LIBS"
41130 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41131 cat >>confdefs.h <<\_ACEOF
41132#define wxUSE_LIBHILDON 1
41133_ACEOF
41134
41135
41136 else
41137
41138 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41139echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41140 wxUSE_LIBHILDON="no"
41141
41142
41143 fi
41144
41145 fi
41146fi
d1c38808 41147
a848cd7e
SC
41148if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41149 cat >>confdefs.h <<\_ACEOF
41150#define wxUSE_CMDLINE_PARSER 1
41151_ACEOF
41152
41153fi
41154
41155if test "$wxUSE_STOPWATCH" = "yes"; then
41156 cat >>confdefs.h <<\_ACEOF
41157#define wxUSE_STOPWATCH 1
41158_ACEOF
41159
41160fi
41161
41162if test "$wxUSE_DATETIME" = "yes"; then
41163 cat >>confdefs.h <<\_ACEOF
41164#define wxUSE_DATETIME 1
41165_ACEOF
41166
41167fi
41168
41169if test "$wxUSE_FILE" = "yes"; then
41170 cat >>confdefs.h <<\_ACEOF
41171#define wxUSE_FILE 1
41172_ACEOF
41173
41174fi
41175
41176if test "$wxUSE_FFILE" = "yes"; then
41177 cat >>confdefs.h <<\_ACEOF
41178#define wxUSE_FFILE 1
41179_ACEOF
41180
41181fi
41182
41183if test "$wxUSE_FILESYSTEM" = "yes"; then
41184 cat >>confdefs.h <<\_ACEOF
41185#define wxUSE_FILESYSTEM 1
41186_ACEOF
41187
41188fi
41189
41190if test "$wxUSE_FS_ZIP" = "yes"; then
41191 cat >>confdefs.h <<\_ACEOF
41192#define wxUSE_FS_ZIP 1
41193_ACEOF
41194
41195fi
41196
9e8e867f 41197if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41198 cat >>confdefs.h <<\_ACEOF
9e8e867f 41199#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41200_ACEOF
41201
41202fi
41203
41204if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41205 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41206 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41207echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41208 elif test "$wxUSE_ZLIB" = "no"; then
41209 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41210echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41211 else
41212 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41213#define wxUSE_ZIPSTREAM 1
41214_ACEOF
41215
81f90336 41216 fi
a848cd7e
SC
41217fi
41218
a848cd7e 41219if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41220 if test "$USE_UNIX" != 1; then
41221 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41222echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41223 wxUSE_ON_FATAL_EXCEPTION=no
41224 else
41225 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41226#define wxUSE_ON_FATAL_EXCEPTION 1
41227_ACEOF
41228
18228ab4 41229 fi
a848cd7e
SC
41230fi
41231
eaff0f0d
VZ
41232if test "$wxUSE_STACKWALKER" = "yes"; then
41233 cat >>confdefs.h <<\_ACEOF
41234#define wxUSE_STACKWALKER 1
41235_ACEOF
41236
41237fi
41238
36b6448c 41239if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41240 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41241 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41242echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41243 wxUSE_DEBUGREPORT=no
41244 else
41245 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41246#define wxUSE_DEBUGREPORT 1
41247_ACEOF
41248
21dfc162
MW
41249 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41251 fi
dfe0c803 41252 fi
36b6448c
VZ
41253fi
41254
a848cd7e
SC
41255if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41256 cat >>confdefs.h <<\_ACEOF
41257#define wxUSE_SNGLINST_CHECKER 1
41258_ACEOF
41259
41260fi
41261
41262if test "$wxUSE_BUSYINFO" = "yes"; then
41263 cat >>confdefs.h <<\_ACEOF
41264#define wxUSE_BUSYINFO 1
41265_ACEOF
41266
41267fi
41268
41269if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41270 cat >>confdefs.h <<\_ACEOF
41271#define wxUSE_STD_IOSTREAM 1
41272_ACEOF
41273
41274fi
41275
59746b65
MW
41276if test "$wxUSE_STD_STRING" = "yes"; then
41277 cat >>confdefs.h <<\_ACEOF
41278#define wxUSE_STD_STRING 1
41279_ACEOF
41280
41281fi
41282
07158944
VZ
41283if test "$wxUSE_STDPATHS" = "yes"; then
41284 cat >>confdefs.h <<\_ACEOF
41285#define wxUSE_STDPATHS 1
41286_ACEOF
41287
41288fi
41289
a848cd7e
SC
41290if test "$wxUSE_TEXTBUFFER" = "yes"; then
41291 cat >>confdefs.h <<\_ACEOF
41292#define wxUSE_TEXTBUFFER 1
41293_ACEOF
41294
41295fi
41296
41297if test "$wxUSE_TEXTFILE" = "yes"; then
41298 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41299 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41300echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41301 else
41302 cat >>confdefs.h <<\_ACEOF
41303#define wxUSE_TEXTFILE 1
41304_ACEOF
41305
41306 fi
41307fi
41308
41309if test "$wxUSE_CONFIG" = "yes" ; then
41310 if test "$wxUSE_TEXTFILE" != "yes"; then
41311 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41312echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41313 else
41314 cat >>confdefs.h <<\_ACEOF
41315#define wxUSE_CONFIG 1
89be85c2
VS
41316_ACEOF
41317
41318 cat >>confdefs.h <<\_ACEOF
41319#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41320_ACEOF
41321
41322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41323 fi
41324fi
41325
41326if test "$wxUSE_INTL" = "yes" ; then
41327 if test "$wxUSE_FILE" != "yes"; then
41328 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41329echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41330 else
41331 cat >>confdefs.h <<\_ACEOF
41332#define wxUSE_INTL 1
41333_ACEOF
41334
41335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41336 GUIDIST="$GUIDIST INTL_DIST"
41337 fi
41338fi
41339
41340if test "$wxUSE_LOG" = "yes"; then
41341 cat >>confdefs.h <<\_ACEOF
41342#define wxUSE_LOG 1
41343_ACEOF
41344
41345
41346 if test "$wxUSE_LOGGUI" = "yes"; then
41347 cat >>confdefs.h <<\_ACEOF
41348#define wxUSE_LOGGUI 1
41349_ACEOF
41350
41351 fi
41352
41353 if test "$wxUSE_LOGWINDOW" = "yes"; then
41354 cat >>confdefs.h <<\_ACEOF
41355#define wxUSE_LOGWINDOW 1
41356_ACEOF
41357
41358 fi
41359
41360 if test "$wxUSE_LOGDIALOG" = "yes"; then
41361 cat >>confdefs.h <<\_ACEOF
41362#define wxUSE_LOG_DIALOG 1
41363_ACEOF
41364
41365 fi
0b78747f
MW
41366
41367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41368fi
41369
41370if test "$wxUSE_LONGLONG" = "yes"; then
41371 cat >>confdefs.h <<\_ACEOF
41372#define wxUSE_LONGLONG 1
41373_ACEOF
41374
41375fi
41376
41377if test "$wxUSE_GEOMETRY" = "yes"; then
41378 cat >>confdefs.h <<\_ACEOF
41379#define wxUSE_GEOMETRY 1
41380_ACEOF
41381
41382fi
41383
a848cd7e
SC
41384if test "$wxUSE_STREAMS" = "yes" ; then
41385 cat >>confdefs.h <<\_ACEOF
41386#define wxUSE_STREAMS 1
41387_ACEOF
41388
41389fi
41390
41391
41392if test "$wxUSE_DATETIME" = "yes"; then
41393
41394for ac_func in strptime
41395do
41396as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41397echo "$as_me:$LINENO: checking for $ac_func" >&5
41398echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41399if eval "test \"\${$as_ac_var+set}\" = set"; then
41400 echo $ECHO_N "(cached) $ECHO_C" >&6
41401else
41402 cat >conftest.$ac_ext <<_ACEOF
41403/* confdefs.h. */
41404_ACEOF
41405cat confdefs.h >>conftest.$ac_ext
41406cat >>conftest.$ac_ext <<_ACEOF
41407/* end confdefs.h. */
ac1cb8d3
VS
41408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41410#define $ac_func innocuous_$ac_func
41411
a848cd7e
SC
41412/* System header to define __stub macros and hopefully few prototypes,
41413 which can conflict with char $ac_func (); below.
41414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41415 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41416
a848cd7e
SC
41417#ifdef __STDC__
41418# include <limits.h>
41419#else
41420# include <assert.h>
41421#endif
ac1cb8d3
VS
41422
41423#undef $ac_func
41424
a848cd7e
SC
41425/* Override any gcc2 internal prototype to avoid an error. */
41426#ifdef __cplusplus
41427extern "C"
41428{
41429#endif
41430/* We use char because int might match the return type of a gcc2
41431 builtin and then its argument prototype would still apply. */
41432char $ac_func ();
41433/* The GNU C library defines this for functions which it implements
41434 to always fail with ENOSYS. Some functions are actually named
41435 something starting with __ and the normal name is an alias. */
41436#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41437choke me
41438#else
41439char (*f) () = $ac_func;
41440#endif
41441#ifdef __cplusplus
41442}
41443#endif
41444
41445int
41446main ()
41447{
41448return f != $ac_func;
41449 ;
41450 return 0;
41451}
41452_ACEOF
41453rm -f conftest.$ac_objext conftest$ac_exeext
41454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41455 (eval $ac_link) 2>conftest.er1
a848cd7e 41456 ac_status=$?
ac1cb8d3
VS
41457 grep -v '^ *+' conftest.er1 >conftest.err
41458 rm -f conftest.er1
41459 cat conftest.err >&5
a848cd7e
SC
41460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461 (exit $ac_status); } &&
5d7b7554 41462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41464 (eval $ac_try) 2>&5
41465 ac_status=$?
41466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41467 (exit $ac_status); }; } &&
41468 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41470 (eval $ac_try) 2>&5
41471 ac_status=$?
41472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41473 (exit $ac_status); }; }; then
41474 eval "$as_ac_var=yes"
41475else
41476 echo "$as_me: failed program was:" >&5
41477sed 's/^/| /' conftest.$ac_ext >&5
41478
41479eval "$as_ac_var=no"
41480fi
ac1cb8d3
VS
41481rm -f conftest.err conftest.$ac_objext \
41482 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41483fi
41484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41485echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41486if test `eval echo '${'$as_ac_var'}'` = yes; then
41487 cat >>confdefs.h <<_ACEOF
41488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41489_ACEOF
41490
41491fi
41492done
41493
f536f005
VZ
41494 if test "$ac_cv_func_strptime" = "yes"; then
41495 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41496echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41497if test "${wx_cv_func_strptime_decl+set}" = set; then
41498 echo $ECHO_N "(cached) $ECHO_C" >&6
41499else
41500
f536f005
VZ
41501 cat >conftest.$ac_ext <<_ACEOF
41502/* confdefs.h. */
41503_ACEOF
41504cat confdefs.h >>conftest.$ac_ext
41505cat >>conftest.$ac_ext <<_ACEOF
41506/* end confdefs.h. */
41507
41508 #include <time.h>
41509
41510int
41511main ()
41512{
41513
41514 struct tm t;
41515 strptime("foo", "bar", &t);
41516
41517 ;
41518 return 0;
41519}
41520_ACEOF
41521rm -f conftest.$ac_objext
41522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41523 (eval $ac_compile) 2>conftest.er1
41524 ac_status=$?
41525 grep -v '^ *+' conftest.er1 >conftest.err
41526 rm -f conftest.er1
41527 cat conftest.err >&5
41528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41529 (exit $ac_status); } &&
5d7b7554 41530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
41531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41532 (eval $ac_try) 2>&5
41533 ac_status=$?
41534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41535 (exit $ac_status); }; } &&
41536 { ac_try='test -s conftest.$ac_objext'
41537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41538 (eval $ac_try) 2>&5
41539 ac_status=$?
41540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41541 (exit $ac_status); }; }; then
41542 wx_cv_func_strptime_decl=yes
41543else
41544 echo "$as_me: failed program was:" >&5
41545sed 's/^/| /' conftest.$ac_ext >&5
41546
41547wx_cv_func_strptime_decl=no
41548
41549fi
41550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
41551
41552
41553fi
41554echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41555echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41556 fi
41557 if test "$wx_cv_func_strptime_decl" = "yes"; then
41558 cat >>confdefs.h <<\_ACEOF
41559#define HAVE_STRPTIME_DECL 1
41560_ACEOF
41561
41562 fi
a848cd7e
SC
41563
41564 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41565echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41566if test "${wx_cv_var_timezone+set}" = set; then
41567 echo $ECHO_N "(cached) $ECHO_C" >&6
41568else
41569
41570 cat >conftest.$ac_ext <<_ACEOF
41571/* confdefs.h. */
41572_ACEOF
41573cat confdefs.h >>conftest.$ac_ext
41574cat >>conftest.$ac_ext <<_ACEOF
41575/* end confdefs.h. */
41576
41577 #include <time.h>
41578
41579int
41580main ()
41581{
41582
41583 int tz;
41584 tz = timezone;
41585
41586 ;
41587 return 0;
41588}
41589_ACEOF
41590rm -f conftest.$ac_objext
41591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41592 (eval $ac_compile) 2>conftest.er1
a848cd7e 41593 ac_status=$?
ac1cb8d3
VS
41594 grep -v '^ *+' conftest.er1 >conftest.err
41595 rm -f conftest.er1
41596 cat conftest.err >&5
a848cd7e
SC
41597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41598 (exit $ac_status); } &&
5d7b7554 41599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41601 (eval $ac_try) 2>&5
41602 ac_status=$?
41603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41604 (exit $ac_status); }; } &&
41605 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41607 (eval $ac_try) 2>&5
41608 ac_status=$?
41609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41610 (exit $ac_status); }; }; then
41611
41612 wx_cv_var_timezone=timezone
41613
41614else
41615 echo "$as_me: failed program was:" >&5
41616sed 's/^/| /' conftest.$ac_ext >&5
41617
41618
41619 cat >conftest.$ac_ext <<_ACEOF
41620/* confdefs.h. */
41621_ACEOF
41622cat confdefs.h >>conftest.$ac_ext
41623cat >>conftest.$ac_ext <<_ACEOF
41624/* end confdefs.h. */
41625
41626 #include <time.h>
41627
41628int
41629main ()
41630{
41631
41632 int tz;
41633 tz = _timezone;
41634
41635 ;
41636 return 0;
41637}
41638_ACEOF
41639rm -f conftest.$ac_objext
41640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41641 (eval $ac_compile) 2>conftest.er1
a848cd7e 41642 ac_status=$?
ac1cb8d3
VS
41643 grep -v '^ *+' conftest.er1 >conftest.err
41644 rm -f conftest.er1
41645 cat conftest.err >&5
a848cd7e
SC
41646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41647 (exit $ac_status); } &&
5d7b7554 41648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41650 (eval $ac_try) 2>&5
41651 ac_status=$?
41652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41653 (exit $ac_status); }; } &&
41654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41656 (eval $ac_try) 2>&5
41657 ac_status=$?
41658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41659 (exit $ac_status); }; }; then
41660
41661 wx_cv_var_timezone=_timezone
41662
41663else
41664 echo "$as_me: failed program was:" >&5
41665sed 's/^/| /' conftest.$ac_ext >&5
41666
41667
41668 cat >conftest.$ac_ext <<_ACEOF
41669/* confdefs.h. */
41670_ACEOF
41671cat confdefs.h >>conftest.$ac_ext
41672cat >>conftest.$ac_ext <<_ACEOF
41673/* end confdefs.h. */
41674
41675 #include <time.h>
41676
41677int
41678main ()
41679{
41680
41681 int tz;
41682 tz = __timezone;
41683
41684 ;
41685 return 0;
41686}
41687_ACEOF
41688rm -f conftest.$ac_objext
41689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41690 (eval $ac_compile) 2>conftest.er1
a848cd7e 41691 ac_status=$?
ac1cb8d3
VS
41692 grep -v '^ *+' conftest.er1 >conftest.err
41693 rm -f conftest.er1
41694 cat conftest.err >&5
a848cd7e
SC
41695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696 (exit $ac_status); } &&
5d7b7554 41697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41699 (eval $ac_try) 2>&5
41700 ac_status=$?
41701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702 (exit $ac_status); }; } &&
41703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41705 (eval $ac_try) 2>&5
41706 ac_status=$?
41707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41708 (exit $ac_status); }; }; then
41709
41710 wx_cv_var_timezone=__timezone
41711
41712else
41713 echo "$as_me: failed program was:" >&5
41714sed 's/^/| /' conftest.$ac_ext >&5
41715
41716
41717 if test "$USE_DOS" = 0 ; then
41718 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41719echo "$as_me: WARNING: no timezone variable" >&2;}
41720 fi
41721
41722
41723fi
ac1cb8d3 41724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41725
41726
41727fi
ac1cb8d3 41728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41729
41730
41731fi
ac1cb8d3 41732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41733
41734
41735fi
41736echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41737echo "${ECHO_T}$wx_cv_var_timezone" >&6
41738
41739 if test "x$wx_cv_var_timezone" != x ; then
41740 cat >>confdefs.h <<_ACEOF
41741#define WX_TIMEZONE $wx_cv_var_timezone
41742_ACEOF
41743
41744 fi
41745
41746
41747for ac_func in localtime
41748do
41749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41750echo "$as_me:$LINENO: checking for $ac_func" >&5
41751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41752if eval "test \"\${$as_ac_var+set}\" = set"; then
41753 echo $ECHO_N "(cached) $ECHO_C" >&6
41754else
41755 cat >conftest.$ac_ext <<_ACEOF
41756/* confdefs.h. */
41757_ACEOF
41758cat confdefs.h >>conftest.$ac_ext
41759cat >>conftest.$ac_ext <<_ACEOF
41760/* end confdefs.h. */
ac1cb8d3
VS
41761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41763#define $ac_func innocuous_$ac_func
41764
a848cd7e
SC
41765/* System header to define __stub macros and hopefully few prototypes,
41766 which can conflict with char $ac_func (); below.
41767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41768 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41769
a848cd7e
SC
41770#ifdef __STDC__
41771# include <limits.h>
41772#else
41773# include <assert.h>
41774#endif
ac1cb8d3
VS
41775
41776#undef $ac_func
41777
a848cd7e
SC
41778/* Override any gcc2 internal prototype to avoid an error. */
41779#ifdef __cplusplus
41780extern "C"
41781{
41782#endif
41783/* We use char because int might match the return type of a gcc2
41784 builtin and then its argument prototype would still apply. */
41785char $ac_func ();
41786/* The GNU C library defines this for functions which it implements
41787 to always fail with ENOSYS. Some functions are actually named
41788 something starting with __ and the normal name is an alias. */
41789#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41790choke me
41791#else
41792char (*f) () = $ac_func;
41793#endif
41794#ifdef __cplusplus
41795}
41796#endif
41797
41798int
41799main ()
41800{
41801return f != $ac_func;
41802 ;
41803 return 0;
41804}
41805_ACEOF
41806rm -f conftest.$ac_objext conftest$ac_exeext
41807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41808 (eval $ac_link) 2>conftest.er1
a848cd7e 41809 ac_status=$?
ac1cb8d3
VS
41810 grep -v '^ *+' conftest.er1 >conftest.err
41811 rm -f conftest.er1
41812 cat conftest.err >&5
a848cd7e
SC
41813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41814 (exit $ac_status); } &&
5d7b7554 41815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41817 (eval $ac_try) 2>&5
41818 ac_status=$?
41819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41820 (exit $ac_status); }; } &&
41821 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41823 (eval $ac_try) 2>&5
41824 ac_status=$?
41825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41826 (exit $ac_status); }; }; then
41827 eval "$as_ac_var=yes"
41828else
41829 echo "$as_me: failed program was:" >&5
41830sed 's/^/| /' conftest.$ac_ext >&5
41831
41832eval "$as_ac_var=no"
41833fi
ac1cb8d3
VS
41834rm -f conftest.err conftest.$ac_objext \
41835 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41836fi
41837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41838echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41839if test `eval echo '${'$as_ac_var'}'` = yes; then
41840 cat >>confdefs.h <<_ACEOF
41841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41842_ACEOF
41843
41844fi
41845done
41846
41847
41848 if test "$ac_cv_func_localtime" = "yes"; then
41849 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41850echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41851if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41852 echo $ECHO_N "(cached) $ECHO_C" >&6
41853else
41854
41855 cat >conftest.$ac_ext <<_ACEOF
41856/* confdefs.h. */
41857_ACEOF
41858cat confdefs.h >>conftest.$ac_ext
41859cat >>conftest.$ac_ext <<_ACEOF
41860/* end confdefs.h. */
41861
41862 #include <time.h>
41863
41864int
41865main ()
41866{
41867
41868 struct tm tm;
41869 tm.tm_gmtoff++;
41870
41871 ;
41872 return 0;
41873}
41874_ACEOF
41875rm -f conftest.$ac_objext
41876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41877 (eval $ac_compile) 2>conftest.er1
a848cd7e 41878 ac_status=$?
ac1cb8d3
VS
41879 grep -v '^ *+' conftest.er1 >conftest.err
41880 rm -f conftest.er1
41881 cat conftest.err >&5
a848cd7e
SC
41882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41883 (exit $ac_status); } &&
5d7b7554 41884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41886 (eval $ac_try) 2>&5
41887 ac_status=$?
41888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889 (exit $ac_status); }; } &&
41890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41892 (eval $ac_try) 2>&5
41893 ac_status=$?
41894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41895 (exit $ac_status); }; }; then
41896
41897 wx_cv_struct_tm_has_gmtoff=yes
41898
41899else
41900 echo "$as_me: failed program was:" >&5
41901sed 's/^/| /' conftest.$ac_ext >&5
41902
41903wx_cv_struct_tm_has_gmtoff=no
41904
41905fi
ac1cb8d3 41906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41907
41908fi
41909echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
41910echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
41911 fi
41912
41913 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
41914 cat >>confdefs.h <<\_ACEOF
41915#define WX_GMTOFF_IN_TM 1
41916_ACEOF
41917
41918 fi
41919
41920
41921
41922for ac_func in gettimeofday ftime
41923do
41924as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41925echo "$as_me:$LINENO: checking for $ac_func" >&5
41926echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41927if eval "test \"\${$as_ac_var+set}\" = set"; then
41928 echo $ECHO_N "(cached) $ECHO_C" >&6
41929else
41930 cat >conftest.$ac_ext <<_ACEOF
41931/* confdefs.h. */
41932_ACEOF
41933cat confdefs.h >>conftest.$ac_ext
41934cat >>conftest.$ac_ext <<_ACEOF
41935/* end confdefs.h. */
ac1cb8d3
VS
41936/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41938#define $ac_func innocuous_$ac_func
41939
a848cd7e
SC
41940/* System header to define __stub macros and hopefully few prototypes,
41941 which can conflict with char $ac_func (); below.
41942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41943 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41944
a848cd7e
SC
41945#ifdef __STDC__
41946# include <limits.h>
41947#else
41948# include <assert.h>
41949#endif
ac1cb8d3
VS
41950
41951#undef $ac_func
41952
a848cd7e
SC
41953/* Override any gcc2 internal prototype to avoid an error. */
41954#ifdef __cplusplus
41955extern "C"
41956{
41957#endif
41958/* We use char because int might match the return type of a gcc2
41959 builtin and then its argument prototype would still apply. */
41960char $ac_func ();
41961/* The GNU C library defines this for functions which it implements
41962 to always fail with ENOSYS. Some functions are actually named
41963 something starting with __ and the normal name is an alias. */
41964#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41965choke me
41966#else
41967char (*f) () = $ac_func;
41968#endif
41969#ifdef __cplusplus
41970}
41971#endif
41972
41973int
41974main ()
41975{
41976return f != $ac_func;
41977 ;
41978 return 0;
41979}
41980_ACEOF
41981rm -f conftest.$ac_objext conftest$ac_exeext
41982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41983 (eval $ac_link) 2>conftest.er1
a848cd7e 41984 ac_status=$?
ac1cb8d3
VS
41985 grep -v '^ *+' conftest.er1 >conftest.err
41986 rm -f conftest.er1
41987 cat conftest.err >&5
a848cd7e
SC
41988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989 (exit $ac_status); } &&
5d7b7554 41990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41992 (eval $ac_try) 2>&5
41993 ac_status=$?
41994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41995 (exit $ac_status); }; } &&
41996 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41998 (eval $ac_try) 2>&5
41999 ac_status=$?
42000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42001 (exit $ac_status); }; }; then
42002 eval "$as_ac_var=yes"
42003else
42004 echo "$as_me: failed program was:" >&5
42005sed 's/^/| /' conftest.$ac_ext >&5
42006
42007eval "$as_ac_var=no"
42008fi
ac1cb8d3
VS
42009rm -f conftest.err conftest.$ac_objext \
42010 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42011fi
42012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42013echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42014if test `eval echo '${'$as_ac_var'}'` = yes; then
42015 cat >>confdefs.h <<_ACEOF
42016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42017_ACEOF
42018 break
42019fi
42020done
42021
42022
42023 if test "$ac_cv_func_gettimeofday" = "yes"; then
42024 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42025echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42026if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42027 echo $ECHO_N "(cached) $ECHO_C" >&6
42028else
42029
5d7b7554 42030 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42031/* confdefs.h. */
42032_ACEOF
42033cat confdefs.h >>conftest.$ac_ext
42034cat >>conftest.$ac_ext <<_ACEOF
42035/* end confdefs.h. */
42036
42037 #include <sys/time.h>
42038 #include <unistd.h>
42039
42040int
42041main ()
42042{
42043
42044 struct timeval tv;
42045 gettimeofday(&tv, NULL);
42046
42047 ;
42048 return 0;
42049}
42050_ACEOF
42051rm -f conftest.$ac_objext
42052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42053 (eval $ac_compile) 2>conftest.er1
a848cd7e 42054 ac_status=$?
ac1cb8d3
VS
42055 grep -v '^ *+' conftest.er1 >conftest.err
42056 rm -f conftest.er1
42057 cat conftest.err >&5
a848cd7e
SC
42058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42059 (exit $ac_status); } &&
5d7b7554 42060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42062 (eval $ac_try) 2>&5
42063 ac_status=$?
42064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065 (exit $ac_status); }; } &&
42066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42068 (eval $ac_try) 2>&5
42069 ac_status=$?
42070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071 (exit $ac_status); }; }; then
42072 wx_cv_func_gettimeofday_has_2_args=yes
42073else
42074 echo "$as_me: failed program was:" >&5
42075sed 's/^/| /' conftest.$ac_ext >&5
42076
42077cat >conftest.$ac_ext <<_ACEOF
42078/* confdefs.h. */
42079_ACEOF
42080cat confdefs.h >>conftest.$ac_ext
42081cat >>conftest.$ac_ext <<_ACEOF
42082/* end confdefs.h. */
42083
42084 #include <sys/time.h>
42085 #include <unistd.h>
42086
42087int
42088main ()
42089{
42090
42091 struct timeval tv;
42092 gettimeofday(&tv);
42093
42094 ;
42095 return 0;
42096}
42097_ACEOF
42098rm -f conftest.$ac_objext
42099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42100 (eval $ac_compile) 2>conftest.er1
a848cd7e 42101 ac_status=$?
ac1cb8d3
VS
42102 grep -v '^ *+' conftest.er1 >conftest.err
42103 rm -f conftest.er1
42104 cat conftest.err >&5
a848cd7e
SC
42105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42106 (exit $ac_status); } &&
5d7b7554 42107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42109 (eval $ac_try) 2>&5
42110 ac_status=$?
42111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42112 (exit $ac_status); }; } &&
42113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42115 (eval $ac_try) 2>&5
42116 ac_status=$?
42117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42118 (exit $ac_status); }; }; then
42119 wx_cv_func_gettimeofday_has_2_args=no
42120else
42121 echo "$as_me: failed program was:" >&5
42122sed 's/^/| /' conftest.$ac_ext >&5
42123
42124
42125 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42126echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42127 wx_cv_func_gettimeofday_has_2_args=unknown
42128
42129
42130fi
ac1cb8d3 42131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42132
42133fi
ac1cb8d3 42134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42135
42136fi
42137echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42138echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42139
42140 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42141 cat >>confdefs.h <<\_ACEOF
42142#define WX_GETTIMEOFDAY_NO_TZ 1
42143_ACEOF
42144
42145 fi
42146 fi
42147
42148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42149fi
42150
42151
42152if test "$wxUSE_SOCKETS" = "yes"; then
42153 if test "$wxUSE_MGL" = "1"; then
42154 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42155echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42156 wxUSE_SOCKETS="no"
42157 fi
42158fi
42159
42160if test "$wxUSE_SOCKETS" = "yes"; then
42161 if test "$TOOLKIT" != "MSW"; then
42162 echo "$as_me:$LINENO: checking for socket" >&5
42163echo $ECHO_N "checking for socket... $ECHO_C" >&6
42164if test "${ac_cv_func_socket+set}" = set; then
42165 echo $ECHO_N "(cached) $ECHO_C" >&6
42166else
42167 cat >conftest.$ac_ext <<_ACEOF
42168/* confdefs.h. */
42169_ACEOF
42170cat confdefs.h >>conftest.$ac_ext
42171cat >>conftest.$ac_ext <<_ACEOF
42172/* end confdefs.h. */
ac1cb8d3
VS
42173/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42175#define socket innocuous_socket
42176
a848cd7e
SC
42177/* System header to define __stub macros and hopefully few prototypes,
42178 which can conflict with char socket (); below.
42179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42180 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42181
a848cd7e
SC
42182#ifdef __STDC__
42183# include <limits.h>
42184#else
42185# include <assert.h>
42186#endif
ac1cb8d3
VS
42187
42188#undef socket
42189
a848cd7e
SC
42190/* Override any gcc2 internal prototype to avoid an error. */
42191#ifdef __cplusplus
42192extern "C"
42193{
42194#endif
42195/* We use char because int might match the return type of a gcc2
42196 builtin and then its argument prototype would still apply. */
42197char socket ();
42198/* The GNU C library defines this for functions which it implements
42199 to always fail with ENOSYS. Some functions are actually named
42200 something starting with __ and the normal name is an alias. */
42201#if defined (__stub_socket) || defined (__stub___socket)
42202choke me
42203#else
42204char (*f) () = socket;
42205#endif
42206#ifdef __cplusplus
42207}
42208#endif
42209
42210int
42211main ()
42212{
42213return f != socket;
42214 ;
42215 return 0;
42216}
42217_ACEOF
42218rm -f conftest.$ac_objext conftest$ac_exeext
42219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42220 (eval $ac_link) 2>conftest.er1
a848cd7e 42221 ac_status=$?
ac1cb8d3
VS
42222 grep -v '^ *+' conftest.er1 >conftest.err
42223 rm -f conftest.er1
42224 cat conftest.err >&5
a848cd7e
SC
42225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42226 (exit $ac_status); } &&
5d7b7554 42227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42229 (eval $ac_try) 2>&5
42230 ac_status=$?
42231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42232 (exit $ac_status); }; } &&
42233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42235 (eval $ac_try) 2>&5
42236 ac_status=$?
42237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42238 (exit $ac_status); }; }; then
42239 ac_cv_func_socket=yes
42240else
42241 echo "$as_me: failed program was:" >&5
42242sed 's/^/| /' conftest.$ac_ext >&5
42243
42244ac_cv_func_socket=no
42245fi
ac1cb8d3
VS
42246rm -f conftest.err conftest.$ac_objext \
42247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42248fi
42249echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42250echo "${ECHO_T}$ac_cv_func_socket" >&6
42251if test $ac_cv_func_socket = yes; then
42252 :
42253else
42254
42255 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42256echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42257if test "${ac_cv_lib_socket_socket+set}" = set; then
42258 echo $ECHO_N "(cached) $ECHO_C" >&6
42259else
42260 ac_check_lib_save_LIBS=$LIBS
42261LIBS="-lsocket $LIBS"
42262cat >conftest.$ac_ext <<_ACEOF
42263/* confdefs.h. */
42264_ACEOF
42265cat confdefs.h >>conftest.$ac_ext
42266cat >>conftest.$ac_ext <<_ACEOF
42267/* end confdefs.h. */
42268
42269/* Override any gcc2 internal prototype to avoid an error. */
42270#ifdef __cplusplus
42271extern "C"
42272#endif
42273/* We use char because int might match the return type of a gcc2
42274 builtin and then its argument prototype would still apply. */
42275char socket ();
42276int
42277main ()
42278{
42279socket ();
42280 ;
42281 return 0;
42282}
42283_ACEOF
42284rm -f conftest.$ac_objext conftest$ac_exeext
42285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42286 (eval $ac_link) 2>conftest.er1
a848cd7e 42287 ac_status=$?
ac1cb8d3
VS
42288 grep -v '^ *+' conftest.er1 >conftest.err
42289 rm -f conftest.er1
42290 cat conftest.err >&5
a848cd7e
SC
42291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42292 (exit $ac_status); } &&
5d7b7554 42293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42295 (eval $ac_try) 2>&5
42296 ac_status=$?
42297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42298 (exit $ac_status); }; } &&
42299 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42301 (eval $ac_try) 2>&5
42302 ac_status=$?
42303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42304 (exit $ac_status); }; }; then
42305 ac_cv_lib_socket_socket=yes
42306else
42307 echo "$as_me: failed program was:" >&5
42308sed 's/^/| /' conftest.$ac_ext >&5
42309
42310ac_cv_lib_socket_socket=no
42311fi
ac1cb8d3
VS
42312rm -f conftest.err conftest.$ac_objext \
42313 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42314LIBS=$ac_check_lib_save_LIBS
42315fi
42316echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42317echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42318if test $ac_cv_lib_socket_socket = yes; then
42319 if test "$INET_LINK" != " -lsocket"; then
42320 INET_LINK="$INET_LINK -lsocket"
42321 fi
42322else
42323
42324 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42325echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42326 wxUSE_SOCKETS=no
42327
42328
42329fi
42330
42331
42332
42333fi
42334
42335 fi
42336fi
42337
42338if test "$wxUSE_SOCKETS" = "yes" ; then
42339 if test "$TOOLKIT" != "MSW"; then
5d7b7554 42340 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42341echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42342if test "${wx_cv_type_getsockname3+set}" = set; then
42343 echo $ECHO_N "(cached) $ECHO_C" >&6
42344else
42345
42346 cat >conftest.$ac_ext <<_ACEOF
42347/* confdefs.h. */
42348_ACEOF
42349cat confdefs.h >>conftest.$ac_ext
42350cat >>conftest.$ac_ext <<_ACEOF
42351/* end confdefs.h. */
42352
42353 #include <sys/types.h>
42354 #include <sys/socket.h>
42355
42356int
42357main ()
42358{
42359
42360 socklen_t len;
42361 getsockname(0, 0, &len);
42362
42363 ;
42364 return 0;
42365}
42366_ACEOF
42367rm -f conftest.$ac_objext
42368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42369 (eval $ac_compile) 2>conftest.er1
a848cd7e 42370 ac_status=$?
ac1cb8d3
VS
42371 grep -v '^ *+' conftest.er1 >conftest.err
42372 rm -f conftest.er1
42373 cat conftest.err >&5
a848cd7e
SC
42374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42375 (exit $ac_status); } &&
5d7b7554 42376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42378 (eval $ac_try) 2>&5
42379 ac_status=$?
42380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42381 (exit $ac_status); }; } &&
42382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42384 (eval $ac_try) 2>&5
42385 ac_status=$?
42386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42387 (exit $ac_status); }; }; then
42388 wx_cv_type_getsockname3=socklen_t
42389else
42390 echo "$as_me: failed program was:" >&5
42391sed 's/^/| /' conftest.$ac_ext >&5
42392
42393
6459a506 42394 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42395 if test "$GCC" = yes ; then
c92ad099 42396 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42397 fi
42398
42399 cat >conftest.$ac_ext <<_ACEOF
42400/* confdefs.h. */
42401_ACEOF
42402cat confdefs.h >>conftest.$ac_ext
42403cat >>conftest.$ac_ext <<_ACEOF
42404/* end confdefs.h. */
42405
42406 #include <sys/types.h>
42407 #include <sys/socket.h>
42408
42409int
42410main ()
42411{
42412
42413 size_t len;
42414 getsockname(0, 0, &len);
42415
42416 ;
42417 return 0;
42418}
42419_ACEOF
42420rm -f conftest.$ac_objext
42421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42422 (eval $ac_compile) 2>conftest.er1
a848cd7e 42423 ac_status=$?
ac1cb8d3
VS
42424 grep -v '^ *+' conftest.er1 >conftest.err
42425 rm -f conftest.er1
42426 cat conftest.err >&5
a848cd7e
SC
42427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42428 (exit $ac_status); } &&
5d7b7554 42429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42431 (eval $ac_try) 2>&5
42432 ac_status=$?
42433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42434 (exit $ac_status); }; } &&
42435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42437 (eval $ac_try) 2>&5
42438 ac_status=$?
42439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42440 (exit $ac_status); }; }; then
42441 wx_cv_type_getsockname3=size_t
42442else
42443 echo "$as_me: failed program was:" >&5
42444sed 's/^/| /' conftest.$ac_ext >&5
42445
42446cat >conftest.$ac_ext <<_ACEOF
42447/* confdefs.h. */
42448_ACEOF
42449cat confdefs.h >>conftest.$ac_ext
42450cat >>conftest.$ac_ext <<_ACEOF
42451/* end confdefs.h. */
42452
42453 #include <sys/types.h>
42454 #include <sys/socket.h>
42455
42456int
42457main ()
42458{
42459
42460 int len;
42461 getsockname(0, 0, &len);
42462
42463 ;
42464 return 0;
42465}
42466_ACEOF
42467rm -f conftest.$ac_objext
42468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42469 (eval $ac_compile) 2>conftest.er1
a848cd7e 42470 ac_status=$?
ac1cb8d3
VS
42471 grep -v '^ *+' conftest.er1 >conftest.err
42472 rm -f conftest.er1
42473 cat conftest.err >&5
a848cd7e
SC
42474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42475 (exit $ac_status); } &&
5d7b7554 42476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42478 (eval $ac_try) 2>&5
42479 ac_status=$?
42480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42481 (exit $ac_status); }; } &&
42482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42484 (eval $ac_try) 2>&5
42485 ac_status=$?
42486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42487 (exit $ac_status); }; }; then
42488 wx_cv_type_getsockname3=int
42489else
42490 echo "$as_me: failed program was:" >&5
42491sed 's/^/| /' conftest.$ac_ext >&5
42492
42493wx_cv_type_getsockname3=unknown
42494
42495fi
ac1cb8d3 42496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42497
42498fi
ac1cb8d3 42499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42500
6459a506 42501 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42502
42503
42504fi
ac1cb8d3 42505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42506
42507fi
42508echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42509echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42510
42511 if test "$wx_cv_type_getsockname3" = "unknown"; then
42512 wxUSE_SOCKETS=no
42513 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42514echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42515 else
42516 cat >>confdefs.h <<_ACEOF
9e03e02d 42517#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42518_ACEOF
42519
42520 fi
42521 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42522echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42523if test "${wx_cv_type_getsockopt5+set}" = set; then
42524 echo $ECHO_N "(cached) $ECHO_C" >&6
42525else
42526
42527 cat >conftest.$ac_ext <<_ACEOF
42528/* confdefs.h. */
42529_ACEOF
42530cat confdefs.h >>conftest.$ac_ext
42531cat >>conftest.$ac_ext <<_ACEOF
42532/* end confdefs.h. */
42533
42534 #include <sys/types.h>
42535 #include <sys/socket.h>
42536
42537int
42538main ()
42539{
42540
42541 socklen_t len;
42542 getsockopt(0, 0, 0, 0, &len);
42543
42544 ;
42545 return 0;
42546}
42547_ACEOF
42548rm -f conftest.$ac_objext
42549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42550 (eval $ac_compile) 2>conftest.er1
42551 ac_status=$?
42552 grep -v '^ *+' conftest.er1 >conftest.err
42553 rm -f conftest.er1
42554 cat conftest.err >&5
42555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556 (exit $ac_status); } &&
5d7b7554 42557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42559 (eval $ac_try) 2>&5
42560 ac_status=$?
42561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562 (exit $ac_status); }; } &&
42563 { ac_try='test -s conftest.$ac_objext'
42564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42565 (eval $ac_try) 2>&5
42566 ac_status=$?
42567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42568 (exit $ac_status); }; }; then
42569 wx_cv_type_getsockopt5=socklen_t
42570else
42571 echo "$as_me: failed program was:" >&5
42572sed 's/^/| /' conftest.$ac_ext >&5
42573
42574
6459a506 42575 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42576 if test "$GCC" = yes ; then
c92ad099 42577 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42578 fi
42579
42580 cat >conftest.$ac_ext <<_ACEOF
42581/* confdefs.h. */
42582_ACEOF
42583cat confdefs.h >>conftest.$ac_ext
42584cat >>conftest.$ac_ext <<_ACEOF
42585/* end confdefs.h. */
42586
42587 #include <sys/types.h>
42588 #include <sys/socket.h>
42589
42590int
42591main ()
42592{
42593
42594 size_t len;
42595 getsockopt(0, 0, 0, 0, &len);
42596
42597 ;
42598 return 0;
42599}
42600_ACEOF
42601rm -f conftest.$ac_objext
42602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42603 (eval $ac_compile) 2>conftest.er1
42604 ac_status=$?
42605 grep -v '^ *+' conftest.er1 >conftest.err
42606 rm -f conftest.er1
42607 cat conftest.err >&5
42608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42609 (exit $ac_status); } &&
5d7b7554 42610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42612 (eval $ac_try) 2>&5
42613 ac_status=$?
42614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42615 (exit $ac_status); }; } &&
42616 { ac_try='test -s conftest.$ac_objext'
42617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42618 (eval $ac_try) 2>&5
42619 ac_status=$?
42620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42621 (exit $ac_status); }; }; then
42622 wx_cv_type_getsockopt5=size_t
42623else
42624 echo "$as_me: failed program was:" >&5
42625sed 's/^/| /' conftest.$ac_ext >&5
42626
42627cat >conftest.$ac_ext <<_ACEOF
42628/* confdefs.h. */
42629_ACEOF
42630cat confdefs.h >>conftest.$ac_ext
42631cat >>conftest.$ac_ext <<_ACEOF
42632/* end confdefs.h. */
42633
42634 #include <sys/types.h>
42635 #include <sys/socket.h>
42636
42637int
42638main ()
42639{
42640
42641 int len;
42642 getsockopt(0, 0, 0, 0, &len);
42643
42644 ;
42645 return 0;
42646}
42647_ACEOF
42648rm -f conftest.$ac_objext
42649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42650 (eval $ac_compile) 2>conftest.er1
42651 ac_status=$?
42652 grep -v '^ *+' conftest.er1 >conftest.err
42653 rm -f conftest.er1
42654 cat conftest.err >&5
42655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42656 (exit $ac_status); } &&
5d7b7554 42657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42659 (eval $ac_try) 2>&5
42660 ac_status=$?
42661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42662 (exit $ac_status); }; } &&
42663 { ac_try='test -s conftest.$ac_objext'
42664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42665 (eval $ac_try) 2>&5
42666 ac_status=$?
42667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42668 (exit $ac_status); }; }; then
42669 wx_cv_type_getsockopt5=int
42670else
42671 echo "$as_me: failed program was:" >&5
42672sed 's/^/| /' conftest.$ac_ext >&5
42673
42674wx_cv_type_getsockopt5=unknown
42675
42676fi
42677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42678
42679fi
42680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42681
6459a506 42682 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42683
42684
42685fi
42686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42687
42688fi
42689echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42690echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42691
42692 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42693 wxUSE_SOCKETS=no
42694 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42695echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42696 else
42697 cat >>confdefs.h <<_ACEOF
42698#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42699_ACEOF
42700
42701 fi
42702 fi
42703fi
42704
42705if test "$wxUSE_SOCKETS" = "yes" ; then
42706 cat >>confdefs.h <<\_ACEOF
42707#define wxUSE_SOCKETS 1
42708_ACEOF
42709
42710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42711fi
42712
42713if test "$wxUSE_PROTOCOL" = "yes"; then
42714 if test "$wxUSE_SOCKETS" != "yes"; then
42715 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42716echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42717 wxUSE_PROTOCOL=no
42718 fi
42719fi
42720
42721if test "$wxUSE_PROTOCOL" = "yes"; then
42722 cat >>confdefs.h <<\_ACEOF
42723#define wxUSE_PROTOCOL 1
42724_ACEOF
42725
42726
42727 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42728 cat >>confdefs.h <<\_ACEOF
42729#define wxUSE_PROTOCOL_HTTP 1
42730_ACEOF
42731
42732 fi
42733 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42734 cat >>confdefs.h <<\_ACEOF
42735#define wxUSE_PROTOCOL_FTP 1
42736_ACEOF
42737
42738 fi
42739 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42740 cat >>confdefs.h <<\_ACEOF
42741#define wxUSE_PROTOCOL_FILE 1
42742_ACEOF
42743
42744 fi
42745else
42746 if test "$wxUSE_FS_INET" = "yes"; then
42747 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42748echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42749 wxUSE_FS_INET="no"
42750 fi
42751fi
42752
42753if test "$wxUSE_URL" = "yes"; then
42754 if test "$wxUSE_PROTOCOL" != "yes"; then
42755 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42756echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42757 wxUSE_URL=no
42758 fi
42759 if test "$wxUSE_URL" = "yes"; then
42760 cat >>confdefs.h <<\_ACEOF
42761#define wxUSE_URL 1
42762_ACEOF
42763
42764 fi
42765fi
42766
42767if test "$wxUSE_FS_INET" = "yes"; then
42768 cat >>confdefs.h <<\_ACEOF
42769#define wxUSE_FS_INET 1
42770_ACEOF
42771
42772fi
42773
42774
ee45c548
MW
42775if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42776 wxUSE_JOYSTICK=no
42777
42778 if test "$TOOLKIT" = "MSW"; then
42779 wxUSE_JOYSTICK=yes
42780
42781 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42782 if test "$USE_DARWIN" = 1; then
42783 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42784echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
42785 cat >conftest.$ac_ext <<_ACEOF
42786/* confdefs.h. */
42787_ACEOF
42788cat confdefs.h >>conftest.$ac_ext
42789cat >>conftest.$ac_ext <<_ACEOF
42790/* end confdefs.h. */
42791 #include <IOKit/hid/IOHIDLib.h>
42792int
42793main ()
42794{
42795 IOHIDQueueInterface *qi = NULL;
42796 IOHIDCallbackFunction cb = NULL;
42797 qi->setEventCallout(NULL, cb, NULL, NULL);
42798 ;
42799 return 0;
42800}
42801_ACEOF
42802rm -f conftest.$ac_objext
42803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42804 (eval $ac_compile) 2>conftest.er1
42805 ac_status=$?
42806 grep -v '^ *+' conftest.er1 >conftest.err
42807 rm -f conftest.er1
42808 cat conftest.err >&5
42809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42810 (exit $ac_status); } &&
5d7b7554 42811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
42812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42813 (eval $ac_try) 2>&5
42814 ac_status=$?
42815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42816 (exit $ac_status); }; } &&
42817 { ac_try='test -s conftest.$ac_objext'
42818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42819 (eval $ac_try) 2>&5
42820 ac_status=$?
42821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42822 (exit $ac_status); }; }; then
42823 wxUSE_JOYSTICK=yes
a848cd7e 42824
ee45c548
MW
42825else
42826 echo "$as_me: failed program was:" >&5
42827sed 's/^/| /' conftest.$ac_ext >&5
42828
42829fi
42830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
42831 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42832echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42833 fi
42834
42835 else
a848cd7e
SC
42836
42837for ac_header in linux/joystick.h
42838do
42839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42840if eval "test \"\${$as_ac_Header+set}\" = set"; then
42841 echo "$as_me:$LINENO: checking for $ac_header" >&5
42842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42843if eval "test \"\${$as_ac_Header+set}\" = set"; then
42844 echo $ECHO_N "(cached) $ECHO_C" >&6
42845fi
42846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42848else
42849 # Is the header compilable?
42850echo "$as_me:$LINENO: checking $ac_header usability" >&5
42851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42852cat >conftest.$ac_ext <<_ACEOF
42853/* confdefs.h. */
42854_ACEOF
42855cat confdefs.h >>conftest.$ac_ext
42856cat >>conftest.$ac_ext <<_ACEOF
42857/* end confdefs.h. */
42858$ac_includes_default
42859#include <$ac_header>
42860_ACEOF
42861rm -f conftest.$ac_objext
42862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42863 (eval $ac_compile) 2>conftest.er1
a848cd7e 42864 ac_status=$?
ac1cb8d3
VS
42865 grep -v '^ *+' conftest.er1 >conftest.err
42866 rm -f conftest.er1
42867 cat conftest.err >&5
a848cd7e
SC
42868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869 (exit $ac_status); } &&
5d7b7554 42870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42872 (eval $ac_try) 2>&5
42873 ac_status=$?
42874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42875 (exit $ac_status); }; } &&
42876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42878 (eval $ac_try) 2>&5
42879 ac_status=$?
42880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881 (exit $ac_status); }; }; then
42882 ac_header_compiler=yes
42883else
42884 echo "$as_me: failed program was:" >&5
42885sed 's/^/| /' conftest.$ac_ext >&5
42886
42887ac_header_compiler=no
42888fi
ac1cb8d3 42889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42891echo "${ECHO_T}$ac_header_compiler" >&6
42892
42893# Is the header present?
42894echo "$as_me:$LINENO: checking $ac_header presence" >&5
42895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42896cat >conftest.$ac_ext <<_ACEOF
42897/* confdefs.h. */
42898_ACEOF
42899cat confdefs.h >>conftest.$ac_ext
42900cat >>conftest.$ac_ext <<_ACEOF
42901/* end confdefs.h. */
42902#include <$ac_header>
42903_ACEOF
42904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42906 ac_status=$?
42907 grep -v '^ *+' conftest.er1 >conftest.err
42908 rm -f conftest.er1
42909 cat conftest.err >&5
42910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42911 (exit $ac_status); } >/dev/null; then
42912 if test -s conftest.err; then
5d7b7554
VZ
42913 ac_cpp_err=$ac_cxx_preproc_warn_flag
42914 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
42915 else
42916 ac_cpp_err=
42917 fi
42918else
42919 ac_cpp_err=yes
42920fi
42921if test -z "$ac_cpp_err"; then
42922 ac_header_preproc=yes
42923else
42924 echo "$as_me: failed program was:" >&5
42925sed 's/^/| /' conftest.$ac_ext >&5
42926
42927 ac_header_preproc=no
42928fi
42929rm -f conftest.err conftest.$ac_ext
42930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42931echo "${ECHO_T}$ac_header_preproc" >&6
42932
42933# So? What about this header?
5d7b7554 42934case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 42935 yes:no: )
a848cd7e
SC
42936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
42938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42940 ac_header_preproc=yes
a848cd7e 42941 ;;
ac1cb8d3 42942 no:yes:* )
a848cd7e
SC
42943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
42945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42950echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
42951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
42953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
42955 (
42956 cat <<\_ASBOX
ac1cb8d3
VS
42957## ----------------------------------------- ##
42958## Report this to wx-dev@lists.wxwidgets.org ##
42959## ----------------------------------------- ##
a848cd7e
SC
42960_ASBOX
42961 ) |
42962 sed "s/^/$as_me: WARNING: /" >&2
42963 ;;
42964esac
42965echo "$as_me:$LINENO: checking for $ac_header" >&5
42966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42967if eval "test \"\${$as_ac_Header+set}\" = set"; then
42968 echo $ECHO_N "(cached) $ECHO_C" >&6
42969else
ac1cb8d3 42970 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
42971fi
42972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42974
42975fi
42976if test `eval echo '${'$as_ac_Header'}'` = yes; then
42977 cat >>confdefs.h <<_ACEOF
42978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42979_ACEOF
ee45c548 42980 wxUSE_JOYSTICK=yes
a848cd7e
SC
42981fi
42982
42983done
42984
ee45c548 42985 fi
4cb1d3da 42986
ee45c548
MW
42987 if test "$wxUSE_JOYSTICK" = "yes"; then
42988 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42989#define wxUSE_JOYSTICK 1
42990_ACEOF
42991
ee45c548
MW
42992 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
42993 else
42994 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
42995echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
42996 fi
42997fi
42998
42999
43000
43001if test "$wxUSE_FONTMAP" = "yes" ; then
43002 cat >>confdefs.h <<\_ACEOF
43003#define wxUSE_FONTMAP 1
43004_ACEOF
43005
43006fi
43007
43008if test "$wxUSE_UNICODE" = "yes" ; then
43009 cat >>confdefs.h <<\_ACEOF
43010#define wxUSE_UNICODE 1
43011_ACEOF
43012
43013
43014 if test "$USE_WIN32" != 1; then
43015 wxUSE_UNICODE_MSLU=no
43016 fi
43017
43018 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43019 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43020echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43021if test "${ac_cv_lib_unicows_main+set}" = set; then
43022 echo $ECHO_N "(cached) $ECHO_C" >&6
43023else
43024 ac_check_lib_save_LIBS=$LIBS
43025LIBS="-lunicows $LIBS"
43026cat >conftest.$ac_ext <<_ACEOF
43027/* confdefs.h. */
43028_ACEOF
43029cat confdefs.h >>conftest.$ac_ext
43030cat >>conftest.$ac_ext <<_ACEOF
43031/* end confdefs.h. */
43032
43033
43034int
43035main ()
43036{
43037main ();
43038 ;
43039 return 0;
43040}
43041_ACEOF
43042rm -f conftest.$ac_objext conftest$ac_exeext
43043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43044 (eval $ac_link) 2>conftest.er1
a848cd7e 43045 ac_status=$?
ac1cb8d3
VS
43046 grep -v '^ *+' conftest.er1 >conftest.err
43047 rm -f conftest.er1
43048 cat conftest.err >&5
a848cd7e
SC
43049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43050 (exit $ac_status); } &&
5d7b7554 43051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43053 (eval $ac_try) 2>&5
43054 ac_status=$?
43055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43056 (exit $ac_status); }; } &&
43057 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43059 (eval $ac_try) 2>&5
43060 ac_status=$?
43061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43062 (exit $ac_status); }; }; then
43063 ac_cv_lib_unicows_main=yes
43064else
43065 echo "$as_me: failed program was:" >&5
43066sed 's/^/| /' conftest.$ac_ext >&5
43067
43068ac_cv_lib_unicows_main=no
43069fi
ac1cb8d3
VS
43070rm -f conftest.err conftest.$ac_objext \
43071 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43072LIBS=$ac_check_lib_save_LIBS
43073fi
43074echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43075echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43076if test $ac_cv_lib_unicows_main = yes; then
43077
43078 cat >>confdefs.h <<\_ACEOF
43079#define wxUSE_UNICODE_MSLU 1
43080_ACEOF
43081
43082
43083else
43084
43085 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43086 Applications will only run on Windows NT/2000/XP!" >&5
43087echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43088 Applications will only run on Windows NT/2000/XP!" >&2;}
43089 wxUSE_UNICODE_MSLU=no
43090
43091fi
43092
43093 fi
43094fi
43095
43096if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43097 cat >>confdefs.h <<\_ACEOF
43098#define wxUSE_EXPERIMENTAL_PRINTF 1
43099_ACEOF
43100
43101fi
43102
43103
43104if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43105 cat >>confdefs.h <<\_ACEOF
43106#define wxUSE_POSTSCRIPT 1
43107_ACEOF
43108
43109fi
43110
43111cat >>confdefs.h <<\_ACEOF
43112#define wxUSE_AFM_FOR_POSTSCRIPT 1
43113_ACEOF
43114
43115
43116cat >>confdefs.h <<\_ACEOF
43117#define wxUSE_NORMALIZED_PS_FONTS 1
43118_ACEOF
43119
43120
43121
43122if test "$wxUSE_CONSTRAINTS" = "yes"; then
43123 cat >>confdefs.h <<\_ACEOF
43124#define wxUSE_CONSTRAINTS 1
43125_ACEOF
43126
43127 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43128fi
43129
8a7b1113
VZ
43130if test "$wxUSE_MDI" = "yes"; then
43131 cat >>confdefs.h <<\_ACEOF
43132#define wxUSE_MDI 1
43133_ACEOF
43134
43135
43136 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43137 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43138#define wxUSE_MDI_ARCHITECTURE 1
43139_ACEOF
43140
8a7b1113
VZ
43141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43142 fi
a848cd7e
SC
43143fi
43144
43145if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43146 cat >>confdefs.h <<\_ACEOF
43147#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43148_ACEOF
43149
43150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43151 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43153 fi
43154fi
43155
43156if test "$wxUSE_HELP" = "yes"; then
43157 cat >>confdefs.h <<\_ACEOF
43158#define wxUSE_HELP 1
43159_ACEOF
43160
43161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43162
43163 if test "$wxUSE_MSW" = 1; then
43164 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43165 cat >>confdefs.h <<\_ACEOF
43166#define wxUSE_MS_HTML_HELP 1
43167_ACEOF
43168
43169 fi
43170 fi
43171
43172 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43173 if test "$wxUSE_HTML" = "yes"; then
43174 cat >>confdefs.h <<\_ACEOF
43175#define wxUSE_WXHTML_HELP 1
43176_ACEOF
43177
43178 else
43179 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43180echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43181 wxUSE_WXHTML_HELP=no
43182 fi
43183 fi
43184fi
43185
43186if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43187 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43188 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43189echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43190 else
43191 cat >>confdefs.h <<\_ACEOF
43192#define wxUSE_PRINTING_ARCHITECTURE 1
43193_ACEOF
43194
43195 fi
43196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43197fi
43198
43199if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43200 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43201echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43202 { (exit 1); exit 1; }; }
43203fi
43204
43205
efdf6afe
VZ
43206if test "$wxUSE_METAFILE" = "yes"; then
43207 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43208 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43209echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43210 wxUSE_METAFILE=no
43211 fi
43212fi
43213
43214
a848cd7e
SC
43215if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43216 -o "$wxUSE_CLIPBOARD" = "yes" \
43217 -o "$wxUSE_OLE" = "yes" \
43218 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43219
43220for ac_header in ole2.h
43221do
43222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43223if eval "test \"\${$as_ac_Header+set}\" = set"; then
43224 echo "$as_me:$LINENO: checking for $ac_header" >&5
43225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43226if eval "test \"\${$as_ac_Header+set}\" = set"; then
43227 echo $ECHO_N "(cached) $ECHO_C" >&6
43228fi
43229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43231else
43232 # Is the header compilable?
43233echo "$as_me:$LINENO: checking $ac_header usability" >&5
43234echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43235cat >conftest.$ac_ext <<_ACEOF
43236/* confdefs.h. */
43237_ACEOF
43238cat confdefs.h >>conftest.$ac_ext
43239cat >>conftest.$ac_ext <<_ACEOF
43240/* end confdefs.h. */
43241$ac_includes_default
43242#include <$ac_header>
43243_ACEOF
43244rm -f conftest.$ac_objext
43245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43246 (eval $ac_compile) 2>conftest.er1
a848cd7e 43247 ac_status=$?
ac1cb8d3
VS
43248 grep -v '^ *+' conftest.er1 >conftest.err
43249 rm -f conftest.er1
43250 cat conftest.err >&5
a848cd7e
SC
43251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43252 (exit $ac_status); } &&
5d7b7554 43253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43255 (eval $ac_try) 2>&5
43256 ac_status=$?
43257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43258 (exit $ac_status); }; } &&
43259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43261 (eval $ac_try) 2>&5
43262 ac_status=$?
43263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264 (exit $ac_status); }; }; then
43265 ac_header_compiler=yes
43266else
43267 echo "$as_me: failed program was:" >&5
43268sed 's/^/| /' conftest.$ac_ext >&5
43269
43270ac_header_compiler=no
43271fi
ac1cb8d3 43272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43273echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43274echo "${ECHO_T}$ac_header_compiler" >&6
43275
43276# Is the header present?
43277echo "$as_me:$LINENO: checking $ac_header presence" >&5
43278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43279cat >conftest.$ac_ext <<_ACEOF
43280/* confdefs.h. */
43281_ACEOF
43282cat confdefs.h >>conftest.$ac_ext
43283cat >>conftest.$ac_ext <<_ACEOF
43284/* end confdefs.h. */
43285#include <$ac_header>
43286_ACEOF
43287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43289 ac_status=$?
43290 grep -v '^ *+' conftest.er1 >conftest.err
43291 rm -f conftest.er1
43292 cat conftest.err >&5
43293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43294 (exit $ac_status); } >/dev/null; then
43295 if test -s conftest.err; then
5d7b7554
VZ
43296 ac_cpp_err=$ac_cxx_preproc_warn_flag
43297 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43298 else
43299 ac_cpp_err=
43300 fi
43301else
43302 ac_cpp_err=yes
43303fi
43304if test -z "$ac_cpp_err"; then
43305 ac_header_preproc=yes
43306else
43307 echo "$as_me: failed program was:" >&5
43308sed 's/^/| /' conftest.$ac_ext >&5
43309
43310 ac_header_preproc=no
43311fi
43312rm -f conftest.err conftest.$ac_ext
43313echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43314echo "${ECHO_T}$ac_header_preproc" >&6
43315
43316# So? What about this header?
5d7b7554 43317case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43318 yes:no: )
a848cd7e
SC
43319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43320echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43322echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43323 ac_header_preproc=yes
a848cd7e 43324 ;;
ac1cb8d3 43325 no:yes:* )
a848cd7e
SC
43326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43327echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43329echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43331echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43333echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43335echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43337echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43338 (
43339 cat <<\_ASBOX
ac1cb8d3
VS
43340## ----------------------------------------- ##
43341## Report this to wx-dev@lists.wxwidgets.org ##
43342## ----------------------------------------- ##
a848cd7e
SC
43343_ASBOX
43344 ) |
43345 sed "s/^/$as_me: WARNING: /" >&2
43346 ;;
43347esac
43348echo "$as_me:$LINENO: checking for $ac_header" >&5
43349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43350if eval "test \"\${$as_ac_Header+set}\" = set"; then
43351 echo $ECHO_N "(cached) $ECHO_C" >&6
43352else
ac1cb8d3 43353 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43354fi
43355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43357
43358fi
43359if test `eval echo '${'$as_ac_Header'}'` = yes; then
43360 cat >>confdefs.h <<_ACEOF
43361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43362_ACEOF
43363
43364fi
43365
43366done
43367
43368
43369 if test "$ac_cv_header_ole2_h" = "yes" ; then
43370 if test "$GCC" = yes ; then
a848cd7e
SC
43371 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43372echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43373 cat >conftest.$ac_ext <<_ACEOF
43374/* confdefs.h. */
43375_ACEOF
43376cat confdefs.h >>conftest.$ac_ext
43377cat >>conftest.$ac_ext <<_ACEOF
43378/* end confdefs.h. */
43379#include <windows.h>
43380 #include <ole2.h>
43381int
43382main ()
43383{
43384
43385 ;
43386 return 0;
43387}
43388_ACEOF
43389rm -f conftest.$ac_objext
43390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43391 (eval $ac_compile) 2>conftest.er1
a848cd7e 43392 ac_status=$?
ac1cb8d3
VS
43393 grep -v '^ *+' conftest.er1 >conftest.err
43394 rm -f conftest.er1
43395 cat conftest.err >&5
a848cd7e
SC
43396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43397 (exit $ac_status); } &&
5d7b7554 43398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43400 (eval $ac_try) 2>&5
43401 ac_status=$?
43402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43403 (exit $ac_status); }; } &&
43404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43406 (eval $ac_try) 2>&5
43407 ac_status=$?
43408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43409 (exit $ac_status); }; }; then
43410 echo "$as_me:$LINENO: result: no" >&5
43411echo "${ECHO_T}no" >&6
43412else
43413 echo "$as_me: failed program was:" >&5
43414sed 's/^/| /' conftest.$ac_ext >&5
43415
43416echo "$as_me:$LINENO: result: yes" >&5
43417echo "${ECHO_T}yes" >&6
5ff751d6 43418 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43419fi
ac1cb8d3 43420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43421 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43422 if test "$wxUSE_OLE" = "yes" ; then
43423 cat >>confdefs.h <<\_ACEOF
43424#define wxUSE_OLE 1
43425_ACEOF
43426
0b78747f 43427 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43428 fi
43429 fi
43430
43431 if test "$wxUSE_DATAOBJ" = "yes" ; then
43432 cat >>confdefs.h <<\_ACEOF
43433#define wxUSE_DATAOBJ 1
43434_ACEOF
43435
43436 fi
43437 else
43438 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43439echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43440
43441 wxUSE_CLIPBOARD=no
43442 wxUSE_DRAG_AND_DROP=no
43443 wxUSE_DATAOBJ=no
43444 wxUSE_OLE=no
43445 fi
43446
43447 if test "$wxUSE_METAFILE" = "yes"; then
43448 cat >>confdefs.h <<\_ACEOF
43449#define wxUSE_METAFILE 1
43450_ACEOF
43451
43452
43453 cat >>confdefs.h <<\_ACEOF
43454#define wxUSE_ENH_METAFILE 1
43455_ACEOF
43456
43457 fi
43458fi
43459
43460if test "$wxUSE_IPC" = "yes"; then
0b78747f 43461 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43462 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43463echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43464 wxUSE_IPC=no
a848cd7e
SC
43465 fi
43466
0b78747f
MW
43467 if test "$wxUSE_IPC" = "yes"; then
43468 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43469#define wxUSE_IPC 1
43470_ACEOF
43471
0b78747f
MW
43472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43473 fi
a848cd7e
SC
43474fi
43475
eb730a0c 43476if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43477 if test "$wxUSE_MGL" = 1; then
43478 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43479echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43480 wxUSE_DATAOBJ=no
43481 else
43482 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43483#define wxUSE_DATAOBJ 1
43484_ACEOF
43485
2113bc77 43486 fi
eb730a0c
JS
43487else
43488 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43489echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43490 wxUSE_CLIPBOARD=no
43491 wxUSE_DRAG_AND_DROP=no
43492fi
43493
a848cd7e
SC
43494if test "$wxUSE_CLIPBOARD" = "yes"; then
43495 if test "$wxUSE_MGL" = 1; then
43496 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43497echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43498 wxUSE_CLIPBOARD=no
43499 fi
43500
43501 if test "$wxUSE_CLIPBOARD" = "yes"; then
43502 cat >>confdefs.h <<\_ACEOF
43503#define wxUSE_CLIPBOARD 1
43504_ACEOF
43505
a848cd7e
SC
43506 fi
43507fi
43508
43509if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43510 if test "$wxUSE_GTK" = 1; then
43511 if test "$WXGTK12" != 1; then
43512 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43513echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43514 wxUSE_DRAG_AND_DROP=no
43515 fi
43516 fi
43517
43518 if test "$wxUSE_MOTIF" = 1; then
43519 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43520echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43521 wxUSE_DRAG_AND_DROP=no
43522 fi
43523
43524 if test "$wxUSE_X11" = 1; then
43525 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43526echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43527 wxUSE_DRAG_AND_DROP=no
43528 fi
43529
43530 if test "$wxUSE_MGL" = 1; then
43531 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43532echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43533 wxUSE_DRAG_AND_DROP=no
43534 fi
43535
43536 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43537 cat >>confdefs.h <<\_ACEOF
43538#define wxUSE_DRAG_AND_DROP 1
43539_ACEOF
43540
43541 fi
43542
43543fi
43544
43545if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43547fi
43548
43549if test "$wxUSE_SPLINES" = "yes" ; then
43550 cat >>confdefs.h <<\_ACEOF
43551#define wxUSE_SPLINES 1
43552_ACEOF
43553
43554fi
43555
fbe2ca43
SN
43556if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43557 cat >>confdefs.h <<\_ACEOF
43558#define wxUSE_MOUSEWHEEL 1
43559_ACEOF
43560
43561fi
43562
a848cd7e
SC
43563
43564USES_CONTROLS=0
43565if test "$wxUSE_CONTROLS" = "yes"; then
43566 USES_CONTROLS=1
43567fi
43568
43569if test "$wxUSE_ACCEL" = "yes"; then
43570 cat >>confdefs.h <<\_ACEOF
43571#define wxUSE_ACCEL 1
43572_ACEOF
43573
43574 USES_CONTROLS=1
43575fi
43576
43577if test "$wxUSE_BUTTON" = "yes"; then
43578 cat >>confdefs.h <<\_ACEOF
43579#define wxUSE_BUTTON 1
43580_ACEOF
43581
43582 USES_CONTROLS=1
43583fi
43584
43585if test "$wxUSE_BMPBUTTON" = "yes"; then
43586 cat >>confdefs.h <<\_ACEOF
43587#define wxUSE_BMPBUTTON 1
43588_ACEOF
43589
43590 USES_CONTROLS=1
43591fi
43592
43593if test "$wxUSE_CALCTRL" = "yes"; then
43594 cat >>confdefs.h <<\_ACEOF
43595#define wxUSE_CALENDARCTRL 1
43596_ACEOF
43597
43598 USES_CONTROLS=1
43599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43600fi
43601
43602if test "$wxUSE_CARET" = "yes"; then
43603 cat >>confdefs.h <<\_ACEOF
43604#define wxUSE_CARET 1
43605_ACEOF
43606
43607 USES_CONTROLS=1
43608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43609fi
43610
43611if test "$wxUSE_COMBOBOX" = "yes"; then
43612 cat >>confdefs.h <<\_ACEOF
43613#define wxUSE_COMBOBOX 1
43614_ACEOF
43615
43616 USES_CONTROLS=1
43617fi
43618
43619if test "$wxUSE_CHOICE" = "yes"; then
43620 cat >>confdefs.h <<\_ACEOF
43621#define wxUSE_CHOICE 1
43622_ACEOF
43623
43624 USES_CONTROLS=1
43625fi
43626
92bbdbcd
WS
43627if test "$wxUSE_CHOICEBOOK" = "yes"; then
43628 cat >>confdefs.h <<\_ACEOF
43629#define wxUSE_CHOICEBOOK 1
43630_ACEOF
43631
43632 USES_CONTROLS=1
43633fi
43634
a848cd7e
SC
43635if test "$wxUSE_CHECKBOX" = "yes"; then
43636 cat >>confdefs.h <<\_ACEOF
43637#define wxUSE_CHECKBOX 1
43638_ACEOF
43639
43640 USES_CONTROLS=1
43641fi
43642
43643if test "$wxUSE_CHECKLST" = "yes"; then
43644 cat >>confdefs.h <<\_ACEOF
43645#define wxUSE_CHECKLISTBOX 1
43646_ACEOF
43647
43648 USES_CONTROLS=1
43649 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43650fi
43651
da98e9be
VZ
43652if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43653 cat >>confdefs.h <<\_ACEOF
43654#define wxUSE_DATEPICKCTRL 1
43655_ACEOF
43656
43657 USES_CONTROLS=1
43658fi
43659
a848cd7e
SC
43660if test "$wxUSE_DISPLAY" = "yes"; then
43661 cat >>confdefs.h <<\_ACEOF
43662#define wxUSE_DISPLAY 1
43663_ACEOF
43664
0b78747f 43665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43666fi
43667
43668if test "$wxUSE_GAUGE" = "yes"; then
43669 cat >>confdefs.h <<\_ACEOF
43670#define wxUSE_GAUGE 1
43671_ACEOF
43672
43673 USES_CONTROLS=1
43674fi
43675
43676if test "$wxUSE_GRID" = "yes"; then
43677 cat >>confdefs.h <<\_ACEOF
43678#define wxUSE_GRID 1
43679_ACEOF
43680
43681 USES_CONTROLS=1
43682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43683fi
43684
20e34ecc
RR
43685if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43686 cat >>confdefs.h <<\_ACEOF
43687#define wxUSE_DATAVIEWCTRL 1
43688_ACEOF
43689
43690 USES_CONTROLS=1
43691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43692fi
43693
a848cd7e
SC
43694if test "$wxUSE_IMAGLIST" = "yes"; then
43695 cat >>confdefs.h <<\_ACEOF
43696#define wxUSE_IMAGLIST 1
43697_ACEOF
43698
43699fi
43700
43701if test "$wxUSE_LISTBOOK" = "yes"; then
43702 cat >>confdefs.h <<\_ACEOF
43703#define wxUSE_LISTBOOK 1
43704_ACEOF
43705
43706 USES_CONTROLS=1
43707fi
43708
43709if test "$wxUSE_LISTBOX" = "yes"; then
43710 cat >>confdefs.h <<\_ACEOF
43711#define wxUSE_LISTBOX 1
43712_ACEOF
43713
43714 USES_CONTROLS=1
0b78747f 43715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43716fi
43717
43718if test "$wxUSE_LISTCTRL" = "yes"; then
43719 if test "$wxUSE_IMAGLIST" = "yes"; then
43720 cat >>confdefs.h <<\_ACEOF
43721#define wxUSE_LISTCTRL 1
43722_ACEOF
43723
43724 USES_CONTROLS=1
43725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43726 else
43727 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43728echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43729 fi
43730fi
43731
43732if test "$wxUSE_NOTEBOOK" = "yes"; then
43733 cat >>confdefs.h <<\_ACEOF
43734#define wxUSE_NOTEBOOK 1
43735_ACEOF
43736
43737 USES_CONTROLS=1
43738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43739fi
43740
43741
43742if test "$wxUSE_RADIOBOX" = "yes"; then
43743 cat >>confdefs.h <<\_ACEOF
43744#define wxUSE_RADIOBOX 1
43745_ACEOF
43746
43747 USES_CONTROLS=1
43748fi
43749
43750if test "$wxUSE_RADIOBTN" = "yes"; then
43751 cat >>confdefs.h <<\_ACEOF
43752#define wxUSE_RADIOBTN 1
43753_ACEOF
43754
43755 USES_CONTROLS=1
43756fi
43757
43758if test "$wxUSE_SASH" = "yes"; then
43759 cat >>confdefs.h <<\_ACEOF
43760#define wxUSE_SASH 1
43761_ACEOF
43762
43763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43764fi
43765
43766if test "$wxUSE_SCROLLBAR" = "yes"; then
43767 cat >>confdefs.h <<\_ACEOF
43768#define wxUSE_SCROLLBAR 1
43769_ACEOF
43770
43771 USES_CONTROLS=1
43772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43773fi
43774
43775if test "$wxUSE_SLIDER" = "yes"; then
43776 cat >>confdefs.h <<\_ACEOF
43777#define wxUSE_SLIDER 1
43778_ACEOF
43779
43780 USES_CONTROLS=1
43781fi
43782
43783if test "$wxUSE_SPINBTN" = "yes"; then
43784 cat >>confdefs.h <<\_ACEOF
43785#define wxUSE_SPINBTN 1
43786_ACEOF
43787
43788 USES_CONTROLS=1
43789fi
43790
43791if test "$wxUSE_SPINCTRL" = "yes"; then
43792 cat >>confdefs.h <<\_ACEOF
43793#define wxUSE_SPINCTRL 1
43794_ACEOF
43795
43796 USES_CONTROLS=1
43797fi
43798
43799if test "$wxUSE_SPLITTER" = "yes"; then
43800 cat >>confdefs.h <<\_ACEOF
43801#define wxUSE_SPLITTER 1
43802_ACEOF
43803
43804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43805fi
43806
43807if test "$wxUSE_STATBMP" = "yes"; then
43808 cat >>confdefs.h <<\_ACEOF
43809#define wxUSE_STATBMP 1
43810_ACEOF
43811
43812 USES_CONTROLS=1
43813fi
43814
43815if test "$wxUSE_STATBOX" = "yes"; then
43816 cat >>confdefs.h <<\_ACEOF
43817#define wxUSE_STATBOX 1
43818_ACEOF
43819
43820 USES_CONTROLS=1
43821fi
43822
43823if test "$wxUSE_STATTEXT" = "yes"; then
43824 cat >>confdefs.h <<\_ACEOF
43825#define wxUSE_STATTEXT 1
43826_ACEOF
43827
43828 USES_CONTROLS=1
43829fi
43830
43831if test "$wxUSE_STATLINE" = "yes"; then
43832 cat >>confdefs.h <<\_ACEOF
43833#define wxUSE_STATLINE 1
43834_ACEOF
43835
43836 USES_CONTROLS=1
43837fi
43838
43839if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
43840 cat >>confdefs.h <<\_ACEOF
43841#define wxUSE_NATIVE_STATUSBAR 1
43842_ACEOF
43843
a848cd7e
SC
43844 cat >>confdefs.h <<\_ACEOF
43845#define wxUSE_STATUSBAR 1
43846_ACEOF
43847
43848 USES_CONTROLS=1
43849
43850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
43851fi
43852
f10e38c4 43853if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
43854 cat >>confdefs.h <<\_ACEOF
43855#define wxUSE_TAB_DIALOG 1
43856_ACEOF
43857
a848cd7e
SC
43858fi
43859
43860if test "$wxUSE_TEXTCTRL" = "yes"; then
43861 cat >>confdefs.h <<\_ACEOF
43862#define wxUSE_TEXTCTRL 1
43863_ACEOF
43864
43865 USES_CONTROLS=1
43866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
43867fi
43868
43869if test "$wxUSE_TOGGLEBTN" = "yes"; then
43870 if test "$wxUSE_COCOA" = 1 ; then
43871 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
43872echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
43873 wxUSE_TOGGLEBTN=no
43874 fi
43875 if test "$wxUSE_UNIVERSAL" = "yes"; then
43876 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
43877echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
43878 wxUSE_TOGGLEBTN=no
43879 fi
43880
43881 if test "$wxUSE_TOGGLEBTN" = "yes"; then
43882 cat >>confdefs.h <<\_ACEOF
43883#define wxUSE_TOGGLEBTN 1
43884_ACEOF
43885
43886 USES_CONTROLS=1
43887 fi
43888fi
43889
43890if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
43891 cat >>confdefs.h <<\_ACEOF
43892#define wxUSE_TOOLBAR_SIMPLE 1
43893_ACEOF
43894
43895 wxUSE_TOOLBAR="yes"
43896 USES_CONTROLS=1
43897fi
43898
43899if test "$wxUSE_TOOLBAR" = "yes"; then
43900 cat >>confdefs.h <<\_ACEOF
43901#define wxUSE_TOOLBAR 1
43902_ACEOF
43903
43904 USES_CONTROLS=1
43905
43906 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
43907 wxUSE_TOOLBAR_NATIVE="yes"
43908 fi
43909
43910 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
43911 cat >>confdefs.h <<\_ACEOF
43912#define wxUSE_TOOLBAR_NATIVE 1
43913_ACEOF
43914
43915 USES_CONTROLS=1
43916 fi
43917
43918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
43919fi
43920
43921if test "$wxUSE_TOOLTIPS" = "yes"; then
43922 if test "$wxUSE_MOTIF" = 1; then
43923 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
43924echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
43925 else
43926 if test "$wxUSE_UNIVERSAL" = "yes"; then
43927 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
43928echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
43929 else
43930 cat >>confdefs.h <<\_ACEOF
43931#define wxUSE_TOOLTIPS 1
43932_ACEOF
43933
43934 fi
43935 fi
43936fi
43937
0093c2fc
VZ
43938if test "$wxUSE_TREEBOOK" = "yes"; then
43939 cat >>confdefs.h <<\_ACEOF
43940#define wxUSE_TREEBOOK 1
43941_ACEOF
43942
43943 USES_CONTROLS=1
43944fi
43945
5ec3bc43
JS
43946if test "$wxUSE_TOOLBOOK" = "yes"; then
43947 cat >>confdefs.h <<\_ACEOF
43948#define wxUSE_TOOLBOOK 1
43949_ACEOF
43950
43951 USES_CONTROLS=1
43952fi
43953
a848cd7e
SC
43954if test "$wxUSE_TREECTRL" = "yes"; then
43955 if test "$wxUSE_IMAGLIST" = "yes"; then
43956 cat >>confdefs.h <<\_ACEOF
43957#define wxUSE_TREECTRL 1
43958_ACEOF
43959
43960 USES_CONTROLS=1
43961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
43962 else
43963 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
43964echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
43965 fi
43966fi
43967
43968if test "$wxUSE_POPUPWIN" = "yes"; then
43969 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43970 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
43971echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
43972 else
43973 if test "$wxUSE_PM" = 1; then
43974 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
43975echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
43976 else
43977 cat >>confdefs.h <<\_ACEOF
43978#define wxUSE_POPUPWIN 1
43979_ACEOF
43980
0b78747f 43981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
43982
43983 USES_CONTROLS=1
43984 fi
43985 fi
43986fi
43987
0dcd06dd 43988if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
43989 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43990 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
43991echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
43992 else
43993 cat >>confdefs.h <<\_ACEOF
43994#define wxUSE_DIALUP_MANAGER 1
43995_ACEOF
43996
43997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
43998 fi
43999fi
44000
a848cd7e
SC
44001if test "$wxUSE_TIPWINDOW" = "yes"; then
44002 if test "$wxUSE_PM" = 1; then
44003 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44004echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44005 else
44006 cat >>confdefs.h <<\_ACEOF
44007#define wxUSE_TIPWINDOW 1
44008_ACEOF
44009
44010 fi
44011fi
44012
44013if test "$USES_CONTROLS" = 1; then
44014 cat >>confdefs.h <<\_ACEOF
44015#define wxUSE_CONTROLS 1
44016_ACEOF
44017
44018fi
44019
44020
44021if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44022 cat >>confdefs.h <<\_ACEOF
44023#define wxUSE_ACCESSIBILITY 1
44024_ACEOF
44025
44026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44027fi
44028
38b4a946
VZ
44029if test "$wxUSE_DC_CACHEING" = "yes"; then
44030 cat >>confdefs.h <<\_ACEOF
44031#define wxUSE_DC_CACHEING 1
44032_ACEOF
44033
44034fi
44035
a848cd7e
SC
44036if test "$wxUSE_DRAGIMAGE" = "yes"; then
44037 cat >>confdefs.h <<\_ACEOF
44038#define wxUSE_DRAGIMAGE 1
44039_ACEOF
44040
44041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44042fi
44043
44044if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44045 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44046 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44047echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44048 else
44049 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44050#define wxUSE_EXCEPTIONS 1
44051_ACEOF
44052
07bea8f0
VS
44053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44054 fi
a848cd7e
SC
44055fi
44056
44057USE_HTML=0
44058if test "$wxUSE_HTML" = "yes"; then
44059 cat >>confdefs.h <<\_ACEOF
44060#define wxUSE_HTML 1
44061_ACEOF
44062
44063 USE_HTML=1
44064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44065 if test "$wxUSE_MAC" = 1; then
44066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44067 fi
a848cd7e 44068fi
646b6ec1 44069if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44070 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44071 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44072 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44073 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44074echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44075if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44076 echo $ECHO_N "(cached) $ECHO_C" >&6
44077else
44078 cat >conftest.$ac_ext <<_ACEOF
44079/* confdefs.h. */
44080_ACEOF
44081cat confdefs.h >>conftest.$ac_ext
44082cat >>conftest.$ac_ext <<_ACEOF
44083/* end confdefs.h. */
44084#include <Carbon/Carbon.h>
44085
44086#include <WebKit/HIWebView.h>
44087_ACEOF
44088rm -f conftest.$ac_objext
44089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44090 (eval $ac_compile) 2>conftest.er1
44091 ac_status=$?
44092 grep -v '^ *+' conftest.er1 >conftest.err
44093 rm -f conftest.er1
44094 cat conftest.err >&5
44095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44096 (exit $ac_status); } &&
5d7b7554 44097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
44098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44099 (eval $ac_try) 2>&5
44100 ac_status=$?
44101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44102 (exit $ac_status); }; } &&
44103 { ac_try='test -s conftest.$ac_objext'
44104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44105 (eval $ac_try) 2>&5
44106 ac_status=$?
44107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44108 (exit $ac_status); }; }; then
44109 ac_cv_header_WebKit_HIWebView_h=yes
44110else
44111 echo "$as_me: failed program was:" >&5
44112sed 's/^/| /' conftest.$ac_ext >&5
44113
44114ac_cv_header_WebKit_HIWebView_h=no
44115fi
44116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44117fi
44118echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44119echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44120if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44121
44122 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44123#define wxUSE_WEBKIT 1
44124_ACEOF
44125
07bea8f0
VS
44126 WEBKIT_LINK="-framework WebKit"
44127
44128else
44129
44130 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44131echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44132 wxUSE_WEBKIT=no
44133
646b6ec1
VS
44134fi
44135
07bea8f0
VS
44136
44137 CPPFLAGS="$old_CPPFLAGS"
44138 elif test "$wxUSE_COCOA" = 1; then
44139 cat >>confdefs.h <<\_ACEOF
44140#define wxUSE_WEBKIT 1
44141_ACEOF
44142
44143 else
44144 wxUSE_WEBKIT=no
44145 fi
44146fi
44147
9a8f0513
VS
44148USE_XRC=0
44149if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44150 if test "$wxUSE_XML" != "yes"; then
44151 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44152echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44153 wxUSE_XRC=no
44154 else
44155 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44156#define wxUSE_XRC 1
44157_ACEOF
44158
d2ebf0b7
VS
44159 USE_XRC=1
44160 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44161 fi
9a8f0513 44162fi
07bea8f0 44163
a848cd7e
SC
44164if test "$wxUSE_MENUS" = "yes"; then
44165 cat >>confdefs.h <<\_ACEOF
44166#define wxUSE_MENUS 1
44167_ACEOF
44168
44169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44170fi
44171
44172if test "$wxUSE_METAFILE" = "yes"; then
44173 cat >>confdefs.h <<\_ACEOF
44174#define wxUSE_METAFILE 1
44175_ACEOF
44176
44177fi
44178
44179if test "$wxUSE_MIMETYPE" = "yes"; then
44180 cat >>confdefs.h <<\_ACEOF
44181#define wxUSE_MIMETYPE 1
44182_ACEOF
44183
44184fi
44185
44186if test "$wxUSE_MINIFRAME" = "yes"; then
44187 cat >>confdefs.h <<\_ACEOF
44188#define wxUSE_MINIFRAME 1
44189_ACEOF
44190
44191 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44192fi
44193
44194if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44195 cat >>confdefs.h <<\_ACEOF
44196#define wxUSE_SYSTEM_OPTIONS 1
44197_ACEOF
44198
44199 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44200 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44202 fi
44203fi
44204
44205
44206if test "$wxUSE_VALIDATORS" = "yes"; then
44207 cat >>confdefs.h <<\_ACEOF
44208#define wxUSE_VALIDATORS 1
44209_ACEOF
44210
44211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44212fi
44213
44214if test "$wxUSE_PALETTE" = "yes" ; then
44215 cat >>confdefs.h <<\_ACEOF
44216#define wxUSE_PALETTE 1
44217_ACEOF
44218
44219fi
44220
44221if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44222 LIBS=" -lunicows $LIBS"
44223fi
44224
91dea314
MW
44225USE_RICHTEXT=0
44226if test "$wxUSE_RICHTEXT" = "yes"; then
44227 cat >>confdefs.h <<\_ACEOF
44228#define wxUSE_RICHTEXT 1
44229_ACEOF
44230
44231 USE_RICHTEXT=1
44232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44233fi
44234
a848cd7e
SC
44235
44236if test "$wxUSE_IMAGE" = "yes" ; then
44237 cat >>confdefs.h <<\_ACEOF
44238#define wxUSE_IMAGE 1
44239_ACEOF
44240
44241
44242 if test "$wxUSE_GIF" = "yes" ; then
44243 cat >>confdefs.h <<\_ACEOF
44244#define wxUSE_GIF 1
44245_ACEOF
44246
44247 fi
44248
44249 if test "$wxUSE_PCX" = "yes" ; then
44250 cat >>confdefs.h <<\_ACEOF
44251#define wxUSE_PCX 1
44252_ACEOF
44253
44254 fi
44255
44256 if test "$wxUSE_IFF" = "yes" ; then
44257 cat >>confdefs.h <<\_ACEOF
44258#define wxUSE_IFF 1
44259_ACEOF
44260
44261 fi
44262
44263 if test "$wxUSE_PNM" = "yes" ; then
44264 cat >>confdefs.h <<\_ACEOF
44265#define wxUSE_PNM 1
44266_ACEOF
44267
44268 fi
44269
44270 if test "$wxUSE_XPM" = "yes" ; then
44271 cat >>confdefs.h <<\_ACEOF
44272#define wxUSE_XPM 1
44273_ACEOF
44274
44275 fi
44276
44277 if test "$wxUSE_ICO_CUR" = "yes" ; then
44278 cat >>confdefs.h <<\_ACEOF
44279#define wxUSE_ICO_CUR 1
44280_ACEOF
44281
44282 fi
44283fi
44284
44285
44286if test "$wxUSE_CHOICEDLG" = "yes"; then
44287 cat >>confdefs.h <<\_ACEOF
44288#define wxUSE_CHOICEDLG 1
44289_ACEOF
44290
44291fi
44292
44293if test "$wxUSE_COLOURDLG" = "yes"; then
44294 cat >>confdefs.h <<\_ACEOF
44295#define wxUSE_COLOURDLG 1
44296_ACEOF
44297
44298fi
44299
44300if test "$wxUSE_FILEDLG" = "yes"; then
44301 cat >>confdefs.h <<\_ACEOF
44302#define wxUSE_FILEDLG 1
44303_ACEOF
44304
44305fi
44306
44307if test "$wxUSE_FINDREPLDLG" = "yes"; then
44308 cat >>confdefs.h <<\_ACEOF
44309#define wxUSE_FINDREPLDLG 1
44310_ACEOF
44311
44312fi
44313
44314if test "$wxUSE_FONTDLG" = "yes"; then
44315 cat >>confdefs.h <<\_ACEOF
44316#define wxUSE_FONTDLG 1
44317_ACEOF
44318
44319fi
44320
44321if test "$wxUSE_DIRDLG" = "yes"; then
44322 if test "$wxUSE_TREECTRL" != "yes"; then
44323 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44324echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44325 else
44326 cat >>confdefs.h <<\_ACEOF
44327#define wxUSE_DIRDLG 1
44328_ACEOF
44329
44330 fi
44331fi
44332
44333if test "$wxUSE_MSGDLG" = "yes"; then
44334 cat >>confdefs.h <<\_ACEOF
44335#define wxUSE_MSGDLG 1
44336_ACEOF
44337
44338fi
44339
44340if test "$wxUSE_NUMBERDLG" = "yes"; then
44341 cat >>confdefs.h <<\_ACEOF
44342#define wxUSE_NUMBERDLG 1
44343_ACEOF
44344
44345fi
44346
44347if test "$wxUSE_PROGRESSDLG" = "yes"; then
44348 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44349 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44350echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44351 else
44352 cat >>confdefs.h <<\_ACEOF
44353#define wxUSE_PROGRESSDLG 1
44354_ACEOF
44355
44356 fi
44357fi
44358
44359if test "$wxUSE_SPLASH" = "yes"; then
44360 cat >>confdefs.h <<\_ACEOF
44361#define wxUSE_SPLASH 1
44362_ACEOF
44363
2057db16 44364 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44365fi
44366
44367if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44368 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44369 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44370echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44371 else
44372 cat >>confdefs.h <<\_ACEOF
44373#define wxUSE_STARTUP_TIPS 1
44374_ACEOF
44375
44376 fi
44377fi
44378
44379if test "$wxUSE_TEXTDLG" = "yes"; then
44380 cat >>confdefs.h <<\_ACEOF
44381#define wxUSE_TEXTDLG 1
44382_ACEOF
44383
44384fi
44385
44386if test "$wxUSE_WIZARDDLG" = "yes"; then
44387 cat >>confdefs.h <<\_ACEOF
44388#define wxUSE_WIZARDDLG 1
44389_ACEOF
44390
44391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44392fi
44393
44394
f10e38c4
VZ
44395USE_MEDIA=0
44396
ce756cb0 44397if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44398 if test "$wxUSE_GTK" = 1; then
44399 wxUSE_GSTREAMER="yes"
44400
f10e38c4
VZ
44401 GST_VERSION_MAJOR=0
44402 GST_VERSION_MINOR=10
44403 GST_VERSION_RELEASE=0
44404 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44405 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44406
44407 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 44408
dae87f93 44409 succeeded=no
ce756cb0 44410
dae87f93
RN
44411 if test -z "$PKG_CONFIG"; then
44412 # Extract the first word of "pkg-config", so it can be a program name with args.
44413set dummy pkg-config; ac_word=$2
44414echo "$as_me:$LINENO: checking for $ac_word" >&5
44415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44416if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44417 echo $ECHO_N "(cached) $ECHO_C" >&6
44418else
44419 case $PKG_CONFIG in
44420 [\\/]* | ?:[\\/]*)
44421 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44422 ;;
44423 *)
44424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44425for as_dir in $PATH
44426do
44427 IFS=$as_save_IFS
44428 test -z "$as_dir" && as_dir=.
44429 for ac_exec_ext in '' $ac_executable_extensions; do
44430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44431 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44433 break 2
44434 fi
44435done
44436done
44437
44438 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44439 ;;
44440esac
44441fi
44442PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44443
44444if test -n "$PKG_CONFIG"; then
44445 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44446echo "${ECHO_T}$PKG_CONFIG" >&6
44447else
44448 echo "$as_me:$LINENO: result: no" >&5
44449echo "${ECHO_T}no" >&6
44450fi
44451
44452 fi
44453
44454 if test "$PKG_CONFIG" = "no" ; then
44455 echo "*** The pkg-config script could not be found. Make sure it is"
44456 echo "*** in your path, or set the PKG_CONFIG environment variable"
44457 echo "*** to the full path to pkg-config."
44458 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44459 else
44460 PKG_CONFIG_MIN_VERSION=0.9.0
44461 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
f10e38c4
VZ
44462 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44463 gstreamer-plugins-base-$GST_MAJORMINOR
44464 gconf-2.0" >&5
44465echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44466 gstreamer-plugins-base-$GST_MAJORMINOR
44467 gconf-2.0... $ECHO_C" >&6
44468
44469 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44470 gstreamer-plugins-base-$GST_MAJORMINOR
44471 gconf-2.0" ; then
dae87f93 44472 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44473echo "${ECHO_T}yes" >&6
dae87f93 44474 succeeded=yes
ce756cb0 44475
f10e38c4
VZ
44476 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44477echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44478 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44479 gstreamer-plugins-base-$GST_MAJORMINOR
44480 gconf-2.0"`
44481 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44482echo "${ECHO_T}$GST_CFLAGS" >&6
44483
44484 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44485echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44486 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44487 gstreamer-plugins-base-$GST_MAJORMINOR
44488 gconf-2.0"`
44489 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44490echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 44491 else
f10e38c4
VZ
44492 GST_CFLAGS=""
44493 GST_LIBS=""
dae87f93
RN
44494 ## If we have a custom action on failure, don't print errors, but
44495 ## do set a variable so people can do so.
f10e38c4
VZ
44496 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44497 gstreamer-plugins-base-$GST_MAJORMINOR
44498 gconf-2.0"`
ce756cb0 44499
dae87f93
RN
44500 fi
44501
44502
44503
44504 else
44505 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44506 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44507 fi
44508 fi
44509
44510 if test $succeeded = yes; then
44511
f10e38c4
VZ
44512 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44513 LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
ce756cb0 44514
ce756cb0 44515 else
dae87f93 44516
f10e38c4 44517 GST_VERSION_MINOR=8
dae87f93
RN
44518
44519 fi
44520
f10e38c4
VZ
44521 else
44522 GST_VERSION_MINOR=8
44523 fi
dae87f93 44524
f10e38c4
VZ
44525 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44526 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 44527
f10e38c4 44528 if test x$GST_VERSION_MINOR = x8; then
dae87f93 44529
f10e38c4 44530 succeeded=no
dae87f93 44531
f10e38c4
VZ
44532 if test -z "$PKG_CONFIG"; then
44533 # Extract the first word of "pkg-config", so it can be a program name with args.
44534set dummy pkg-config; ac_word=$2
dae87f93
RN
44535echo "$as_me:$LINENO: checking for $ac_word" >&5
44536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 44537if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
44538 echo $ECHO_N "(cached) $ECHO_C" >&6
44539else
f10e38c4
VZ
44540 case $PKG_CONFIG in
44541 [\\/]* | ?:[\\/]*)
44542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44543 ;;
44544 *)
44545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
44546for as_dir in $PATH
44547do
44548 IFS=$as_save_IFS
44549 test -z "$as_dir" && as_dir=.
44550 for ac_exec_ext in '' $ac_executable_extensions; do
44551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 44552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
44553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44554 break 2
ce756cb0 44555 fi
dae87f93
RN
44556done
44557done
44558
f10e38c4
VZ
44559 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44560 ;;
44561esac
dae87f93 44562fi
f10e38c4
VZ
44563PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44564
44565if test -n "$PKG_CONFIG"; then
44566 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44567echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
44568else
44569 echo "$as_me:$LINENO: result: no" >&5
44570echo "${ECHO_T}no" >&6
44571fi
44572
f10e38c4 44573 fi
ce756cb0 44574
f10e38c4
VZ
44575 if test "$PKG_CONFIG" = "no" ; then
44576 echo "*** The pkg-config script could not be found. Make sure it is"
44577 echo "*** in your path, or set the PKG_CONFIG environment variable"
44578 echo "*** to the full path to pkg-config."
44579 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44580 else
44581 PKG_CONFIG_MIN_VERSION=0.9.0
44582 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44583 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44584 gstreamer-interfaces-$GST_MAJORMINOR
44585 gstreamer-gconf-$GST_MAJORMINOR" >&5
44586echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44587 gstreamer-interfaces-$GST_MAJORMINOR
44588 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
44589
44590 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44591 gstreamer-interfaces-$GST_MAJORMINOR
44592 gstreamer-gconf-$GST_MAJORMINOR" ; then
44593 echo "$as_me:$LINENO: result: yes" >&5
44594echo "${ECHO_T}yes" >&6
44595 succeeded=yes
dae87f93 44596
f10e38c4
VZ
44597 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44598echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44599 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44600 gstreamer-interfaces-$GST_MAJORMINOR
44601 gstreamer-gconf-$GST_MAJORMINOR"`
44602 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44603echo "${ECHO_T}$GST_CFLAGS" >&6
44604
44605 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44606echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44607 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44608 gstreamer-interfaces-$GST_MAJORMINOR
44609 gstreamer-gconf-$GST_MAJORMINOR"`
44610 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44611echo "${ECHO_T}$GST_LIBS" >&6
44612 else
44613 GST_CFLAGS=""
44614 GST_LIBS=""
44615 ## If we have a custom action on failure, don't print errors, but
44616 ## do set a variable so people can do so.
44617 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44618 gstreamer-interfaces-$GST_MAJORMINOR
44619 gstreamer-gconf-$GST_MAJORMINOR"`
dae87f93 44620
dae87f93
RN
44621 fi
44622
44623
ce756cb0 44624
f10e38c4
VZ
44625 else
44626 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44627 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44628 fi
44629 fi
ce756cb0 44630
f10e38c4 44631 if test $succeeded = yes; then
dae87f93 44632
f10e38c4
VZ
44633 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44634 LIBS="$LIBS $GST_LIBS"
dae87f93 44635
f10e38c4 44636 else
ce756cb0 44637
f10e38c4
VZ
44638 { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
44639echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
44640 wxUSE_GSTREAMER="no"
ce756cb0 44641
f10e38c4 44642 fi
ce756cb0 44643
dae87f93 44644 fi
ce756cb0 44645
f10e38c4 44646
dae87f93
RN
44647 if test "$wxUSE_GSTREAMER" = "yes"; then
44648 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44649#define wxUSE_GSTREAMER 1
44650_ACEOF
44651
dae87f93
RN
44652 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44653echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44654 fi
44655 fi
f10e38c4 44656 USE_MEDIA=1
ce756cb0
RN
44657 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44658 cat >>confdefs.h <<\_ACEOF
44659#define wxUSE_MEDIACTRL 1
44660_ACEOF
44661
44662fi
44663
44664
a848cd7e
SC
44665if test "$cross_compiling" = "yes"; then
44666 OSINFO="\"$host\""
44667else
44668 OSINFO=`uname -s -r -m`
44669 OSINFO="\"$OSINFO\""
44670fi
44671
44672cat >>confdefs.h <<_ACEOF
44673#define WXWIN_OS_DESCRIPTION $OSINFO
44674_ACEOF
44675
44676
44677
44678if test "x$prefix" != "xNONE"; then
44679 wxPREFIX=$prefix
44680else
44681 wxPREFIX=$ac_default_prefix
44682fi
44683
44684cat >>confdefs.h <<_ACEOF
44685#define wxINSTALL_PREFIX "$wxPREFIX"
44686_ACEOF
44687
44688
a848cd7e
SC
44689
44690
44691CORE_BASE_LIBS="net base"
44692CORE_GUI_LIBS="adv core"
44693
44694if test "$wxUSE_XML" = "yes" ; then
44695 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44696fi
44697if test "$wxUSE_ODBC" != "no" ; then
44698 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44699 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44700fi
44701if test "$wxUSE_HTML" = "yes" ; then
44702 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44703fi
61639efb
VZ
44704if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44705 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44706fi
9a8f0513
VS
44707if test "$wxUSE_XRC" = "yes" ; then
44708 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44709fi
a848cd7e
SC
44710
44711if test "$wxUSE_GUI" != "yes"; then
44712 CORE_GUI_LIBS=""
44713fi
44714
44715
44716
44717
44718
5d7b7554
VZ
44719ac_ext=c
44720ac_cpp='$CPP $CPPFLAGS'
44721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44723ac_compiler_gnu=$ac_cv_c_compiler_gnu
44724
a848cd7e
SC
44725
44726
a848cd7e 44727if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44728 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44729 if test "$USE_DARWIN" = 1; then
44730 LDFLAGS="$LDFLAGS -framework QuickTime"
44731 else
44732 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44733 fi
07bea8f0 44734 fi
5dcf30a0 44735 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44736 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44737 else
44738 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44739 fi
a848cd7e
SC
44740fi
44741if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44742 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44743 if test "$wxUSE_MEDIACTRL" = "yes"; then
44744 LDFLAGS="$LDFLAGS -framework QuickTime"
44745 fi
a848cd7e 44746fi
19b27e78
MW
44747if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44748 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44749fi
a848cd7e 44750
a848cd7e
SC
44751LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44752
a848cd7e
SC
44753if test "$wxUSE_GUI" = "yes"; then
44754
44755
8bce5cda
MW
44756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
44757 dynamic erase event exec font image minimal mobile \
44758 mobile/wxedit mobile/styles propsize render \
9e39d889 44759 rotate shaped vscroll widgets"
a848cd7e
SC
44760
44761 if test "$wxUSE_MONOLITHIC" != "yes"; then
44762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
44763 fi
0b78747f 44764 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
44765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
44766 if test "$wxUSE_UNIVERSAL" != "yes"; then
44767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
44768 fi
44769 fi
44770 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
44771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 44772 fi
a848cd7e
SC
44773else
44774 SAMPLES_SUBDIRS="console"
44775fi
44776
44777
48f625bc 44778if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
44779 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
44780elif test "$GCC" = yes ; then
44781 CWARNINGS="-Wall -Wundef"
44782fi
44783
48f625bc 44784if test "x$INTELCXX" = "xyes" ; then
7f47faf4 44785 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
44786elif test "$GXX" = yes ; then
44787 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 44788fi
a848cd7e 44789
a848cd7e 44790
5ff751d6
VZ
44791WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
44792WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
44793
44794
c92ad099 44795CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 44796 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
44797 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
44798 $CPPFLAGS `
5ff751d6 44799
8aeeb05c 44800C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 44801CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 44802CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
44803
44804WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
44805
a848cd7e 44806
95986553
DE
44807if test "x$MWCC" = "xyes"; then
44808
44809 CC="$CC -cwd source -I-"
44810 CXX="$CXX -cwd source -I-"
44811fi
44812
a848cd7e 44813
0c3c69fc 44814LIBS=`echo $LIBS`
a848cd7e
SC
44815EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
44816EXTRALIBS_XML="$EXPAT_LINK"
44817EXTRALIBS_HTML="$MSPACK_LINK"
44818EXTRALIBS_ODBC="$ODBC_LINK"
44819if test "$wxUSE_GUI" = "yes"; then
2b850ae1 44820 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
44821fi
44822if test "$wxUSE_OPENGL" = "yes"; then
44823 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
44824fi
44825
8aeeb05c 44826LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 44827
5ff751d6 44828WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
44829
44830if test "$wxUSE_REGEX" = "builtin" ; then
74802184 44831 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
44832fi
44833if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 44834 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
44835fi
44836if test "$wxUSE_ODBC" = "builtin" ; then
74802184 44837 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
44838fi
44839if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 44840 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
44841fi
44842if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 44843 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
44844fi
44845if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 44846 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
44847fi
44848if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 44849 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
44850fi
44851
44852for i in $wxconfig_3rdparty ; do
5ff751d6 44853 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
44854done
44855
44856
44857if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
44858 WXUNIV=1
44859else
44860 WXUNIV=0
44861fi
44862
44863
44864
44865
44866
44867
44868
44869
44870
44871if test $wxUSE_MONOLITHIC = "yes" ; then
44872 MONOLITHIC=1
44873else
44874 MONOLITHIC=0
44875fi
44876
44877if test $wxUSE_PLUGINS = "yes" ; then
44878 USE_PLUGINS=1
44879else
44880 USE_PLUGINS=0
44881fi
44882
44883if test $wxUSE_ODBC != "no" ; then
44884 USE_ODBC=1
44885else
44886 USE_ODBC=0
44887fi
44888
16358932
VZ
44889if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44890 USE_QA=1
44891else
44892 USE_QA=0
44893fi
44894
a848cd7e
SC
44895if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
44896 OFFICIAL_BUILD=1
44897else
44898 OFFICIAL_BUILD=0
44899fi
44900
44901
44902
44903
44904
44905
44906
44907
44908
44909
44910
44911
44912
44913
44914
44915
44916
44917
44918
ceec2216 44919
d1c38808 44920
3565d135 44921
2b850ae1 44922
a848cd7e
SC
44923
44924
44925TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
44926
44927
44928
44929
44930
44931
44932
44933
4d4ff94c
VZ
44934case "$TOOLKIT" in
44935 GTK)
44936 TOOLKIT_USER="GTK+"
44937 if test "$WXGTK20" = 1; then
44938 TOOLKIT_USER="$TOOLKIT_USER 2"
44939 fi
9a8f0513 44940 ;;
4d4ff94c
VZ
44941
44942 *)
44943 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 44944 ;;
4d4ff94c 44945esac
a848cd7e 44946
fb00f58d
JS
44947if test "$wxUSE_WINE" = "yes"; then
44948 BAKEFILE_FORCE_PLATFORM=win32
44949fi
44950
7afc46ab
KO
44951if test "$wxUSE_MAC" = 1 ; then
44952 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
44953 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
44954 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
44955 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
44956 bk_use_pch=no
44957 fi
44958 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
44959 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
44960 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
44961fi
44962
9a8f0513 44963
1e9e8aba
DE
44964
44965
a848cd7e 44966 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
44967 if test "x${host}" = "x" ; then
44968 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
44969echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
44970 { (exit 1); exit 1; }; }
44971 fi
44972
a848cd7e
SC
44973 BAKEFILE_HOST="${host}"
44974 fi
44975
44976 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
44977
44978 if test -n "$ac_tool_prefix"; then
44979 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
44980set dummy ${ac_tool_prefix}ranlib; ac_word=$2
44981echo "$as_me:$LINENO: checking for $ac_word" >&5
44982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44983if test "${ac_cv_prog_RANLIB+set}" = set; then
44984 echo $ECHO_N "(cached) $ECHO_C" >&6
44985else
44986 if test -n "$RANLIB"; then
44987 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
44988else
44989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44990for as_dir in $PATH
44991do
44992 IFS=$as_save_IFS
44993 test -z "$as_dir" && as_dir=.
44994 for ac_exec_ext in '' $ac_executable_extensions; do
44995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44996 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
44997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44998 break 2
44999 fi
45000done
45001done
45002
45003fi
45004fi
45005RANLIB=$ac_cv_prog_RANLIB
45006if test -n "$RANLIB"; then
45007 echo "$as_me:$LINENO: result: $RANLIB" >&5
45008echo "${ECHO_T}$RANLIB" >&6
45009else
45010 echo "$as_me:$LINENO: result: no" >&5
45011echo "${ECHO_T}no" >&6
45012fi
45013
45014fi
45015if test -z "$ac_cv_prog_RANLIB"; then
45016 ac_ct_RANLIB=$RANLIB
45017 # Extract the first word of "ranlib", so it can be a program name with args.
45018set dummy ranlib; ac_word=$2
45019echo "$as_me:$LINENO: checking for $ac_word" >&5
45020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45021if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45022 echo $ECHO_N "(cached) $ECHO_C" >&6
45023else
45024 if test -n "$ac_ct_RANLIB"; then
45025 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45026else
45027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45028for as_dir in $PATH
45029do
45030 IFS=$as_save_IFS
45031 test -z "$as_dir" && as_dir=.
45032 for ac_exec_ext in '' $ac_executable_extensions; do
45033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45034 ac_cv_prog_ac_ct_RANLIB="ranlib"
45035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45036 break 2
45037 fi
45038done
45039done
45040
45041 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45042fi
45043fi
45044ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45045if test -n "$ac_ct_RANLIB"; then
45046 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45047echo "${ECHO_T}$ac_ct_RANLIB" >&6
45048else
45049 echo "$as_me:$LINENO: result: no" >&5
45050echo "${ECHO_T}no" >&6
45051fi
45052
45053 RANLIB=$ac_ct_RANLIB
45054else
45055 RANLIB="$ac_cv_prog_RANLIB"
45056fi
45057
45058 # Find a good install program. We prefer a C program (faster),
45059# so one script is as good as another. But avoid the broken or
45060# incompatible versions:
45061# SysV /etc/install, /usr/sbin/install
45062# SunOS /usr/etc/install
45063# IRIX /sbin/install
45064# AIX /bin/install
45065# AmigaOS /C/install, which installs bootblocks on floppy discs
45066# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45067# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45068# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45069# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45070# ./install, which can be erroneously created by make from ./install.sh.
45071echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45072echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45073if test -z "$INSTALL"; then
45074if test "${ac_cv_path_install+set}" = set; then
45075 echo $ECHO_N "(cached) $ECHO_C" >&6
45076else
45077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45078for as_dir in $PATH
45079do
45080 IFS=$as_save_IFS
45081 test -z "$as_dir" && as_dir=.
45082 # Account for people who put trailing slashes in PATH elements.
45083case $as_dir/ in
45084 ./ | .// | /cC/* | \
45085 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45086 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45087 /usr/ucb/* ) ;;
45088 *)
45089 # OSF1 and SCO ODT 3.0 have their own names for install.
45090 # Don't use installbsd from OSF since it installs stuff as root
45091 # by default.
45092 for ac_prog in ginstall scoinst install; do
45093 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45094 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45095 if test $ac_prog = install &&
45096 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45097 # AIX install. It has an incompatible calling convention.
45098 :
45099 elif test $ac_prog = install &&
45100 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45101 # program-specific install script used by HP pwplus--don't use.
45102 :
45103 else
45104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45105 break 3
45106 fi
45107 fi
a848cd7e
SC
45108 done
45109 done
45110 ;;
45111esac
45112done
45113
45114
45115fi
45116 if test "${ac_cv_path_install+set}" = set; then
45117 INSTALL=$ac_cv_path_install
45118 else
45119 # As a last resort, use the slow shell script. We don't cache a
45120 # path for INSTALL within a source directory, because that will
45121 # break other packages using the cache if that directory is
45122 # removed, or if the path is relative.
45123 INSTALL=$ac_install_sh
45124 fi
45125fi
45126echo "$as_me:$LINENO: result: $INSTALL" >&5
45127echo "${ECHO_T}$INSTALL" >&6
45128
45129# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45130# It thinks the first close brace ends the variable substitution.
45131test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45132
45133test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45134
45135test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45136
45137 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45138echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45139LN_S=$as_ln_s
45140if test "$LN_S" = "ln -s"; then
45141 echo "$as_me:$LINENO: result: yes" >&5
45142echo "${ECHO_T}yes" >&6
45143else
45144 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45145echo "${ECHO_T}no, using $LN_S" >&6
45146fi
45147
45148
45149 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45150echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45151set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45152if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45153 echo $ECHO_N "(cached) $ECHO_C" >&6
45154else
45155 cat >conftest.make <<\_ACEOF
45156all:
45157 @echo 'ac_maketemp="$(MAKE)"'
45158_ACEOF
45159# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45160eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45161if test -n "$ac_maketemp"; then
45162 eval ac_cv_prog_make_${ac_make}_set=yes
45163else
45164 eval ac_cv_prog_make_${ac_make}_set=no
45165fi
45166rm -f conftest.make
45167fi
45168if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45169 echo "$as_me:$LINENO: result: yes" >&5
45170echo "${ECHO_T}yes" >&6
45171 SET_MAKE=
45172else
45173 echo "$as_me:$LINENO: result: no" >&5
45174echo "${ECHO_T}no" >&6
45175 SET_MAKE="MAKE=${MAKE-make}"
45176fi
45177
45178
45179
45180 if test -n "$ac_tool_prefix"; then
45181 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45182set dummy ${ac_tool_prefix}ar; ac_word=$2
45183echo "$as_me:$LINENO: checking for $ac_word" >&5
45184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45185if test "${ac_cv_prog_AR+set}" = set; then
45186 echo $ECHO_N "(cached) $ECHO_C" >&6
45187else
45188 if test -n "$AR"; then
45189 ac_cv_prog_AR="$AR" # Let the user override the test.
45190else
45191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45192for as_dir in $PATH
45193do
45194 IFS=$as_save_IFS
45195 test -z "$as_dir" && as_dir=.
45196 for ac_exec_ext in '' $ac_executable_extensions; do
45197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45198 ac_cv_prog_AR="${ac_tool_prefix}ar"
45199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45200 break 2
45201 fi
45202done
45203done
45204
45205fi
45206fi
45207AR=$ac_cv_prog_AR
45208if test -n "$AR"; then
45209 echo "$as_me:$LINENO: result: $AR" >&5
45210echo "${ECHO_T}$AR" >&6
45211else
45212 echo "$as_me:$LINENO: result: no" >&5
45213echo "${ECHO_T}no" >&6
45214fi
45215
45216fi
45217if test -z "$ac_cv_prog_AR"; then
45218 ac_ct_AR=$AR
45219 # Extract the first word of "ar", so it can be a program name with args.
45220set dummy ar; ac_word=$2
45221echo "$as_me:$LINENO: checking for $ac_word" >&5
45222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45223if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45224 echo $ECHO_N "(cached) $ECHO_C" >&6
45225else
45226 if test -n "$ac_ct_AR"; then
45227 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45228else
45229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45230for as_dir in $PATH
45231do
45232 IFS=$as_save_IFS
45233 test -z "$as_dir" && as_dir=.
45234 for ac_exec_ext in '' $ac_executable_extensions; do
45235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45236 ac_cv_prog_ac_ct_AR="ar"
45237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45238 break 2
45239 fi
45240done
45241done
45242
45243 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45244fi
45245fi
45246ac_ct_AR=$ac_cv_prog_ac_ct_AR
45247if test -n "$ac_ct_AR"; then
45248 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45249echo "${ECHO_T}$ac_ct_AR" >&6
45250else
45251 echo "$as_me:$LINENO: result: no" >&5
45252echo "${ECHO_T}no" >&6
45253fi
45254
45255 AR=$ac_ct_AR
45256else
45257 AR="$ac_cv_prog_AR"
45258fi
45259
45260 if test -n "$ac_tool_prefix"; then
45261 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45262set dummy ${ac_tool_prefix}strip; ac_word=$2
45263echo "$as_me:$LINENO: checking for $ac_word" >&5
45264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45265if test "${ac_cv_prog_STRIP+set}" = set; then
45266 echo $ECHO_N "(cached) $ECHO_C" >&6
45267else
45268 if test -n "$STRIP"; then
45269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45270else
45271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45272for as_dir in $PATH
45273do
45274 IFS=$as_save_IFS
45275 test -z "$as_dir" && as_dir=.
45276 for ac_exec_ext in '' $ac_executable_extensions; do
45277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45278 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45280 break 2
45281 fi
45282done
45283done
45284
45285fi
45286fi
45287STRIP=$ac_cv_prog_STRIP
45288if test -n "$STRIP"; then
45289 echo "$as_me:$LINENO: result: $STRIP" >&5
45290echo "${ECHO_T}$STRIP" >&6
45291else
45292 echo "$as_me:$LINENO: result: no" >&5
45293echo "${ECHO_T}no" >&6
45294fi
45295
45296fi
45297if test -z "$ac_cv_prog_STRIP"; then
45298 ac_ct_STRIP=$STRIP
45299 # Extract the first word of "strip", so it can be a program name with args.
45300set dummy strip; ac_word=$2
45301echo "$as_me:$LINENO: checking for $ac_word" >&5
45302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45303if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45304 echo $ECHO_N "(cached) $ECHO_C" >&6
45305else
45306 if test -n "$ac_ct_STRIP"; then
45307 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45308else
45309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45310for as_dir in $PATH
45311do
45312 IFS=$as_save_IFS
45313 test -z "$as_dir" && as_dir=.
45314 for ac_exec_ext in '' $ac_executable_extensions; do
45315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45316 ac_cv_prog_ac_ct_STRIP="strip"
45317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45318 break 2
45319 fi
45320done
45321done
45322
45323 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45324fi
45325fi
45326ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45327if test -n "$ac_ct_STRIP"; then
45328 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45329echo "${ECHO_T}$ac_ct_STRIP" >&6
45330else
45331 echo "$as_me:$LINENO: result: no" >&5
45332echo "${ECHO_T}no" >&6
45333fi
45334
45335 STRIP=$ac_ct_STRIP
45336else
45337 STRIP="$ac_cv_prog_STRIP"
45338fi
45339
45340 if test -n "$ac_tool_prefix"; then
45341 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45342set dummy ${ac_tool_prefix}nm; ac_word=$2
45343echo "$as_me:$LINENO: checking for $ac_word" >&5
45344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45345if test "${ac_cv_prog_NM+set}" = set; then
45346 echo $ECHO_N "(cached) $ECHO_C" >&6
45347else
45348 if test -n "$NM"; then
45349 ac_cv_prog_NM="$NM" # Let the user override the test.
45350else
45351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45352for as_dir in $PATH
45353do
45354 IFS=$as_save_IFS
45355 test -z "$as_dir" && as_dir=.
45356 for ac_exec_ext in '' $ac_executable_extensions; do
45357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45358 ac_cv_prog_NM="${ac_tool_prefix}nm"
45359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45360 break 2
45361 fi
45362done
45363done
45364
45365fi
45366fi
45367NM=$ac_cv_prog_NM
45368if test -n "$NM"; then
45369 echo "$as_me:$LINENO: result: $NM" >&5
45370echo "${ECHO_T}$NM" >&6
45371else
45372 echo "$as_me:$LINENO: result: no" >&5
45373echo "${ECHO_T}no" >&6
45374fi
45375
45376fi
45377if test -z "$ac_cv_prog_NM"; then
45378 ac_ct_NM=$NM
45379 # Extract the first word of "nm", so it can be a program name with args.
45380set dummy nm; ac_word=$2
45381echo "$as_me:$LINENO: checking for $ac_word" >&5
45382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45383if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45384 echo $ECHO_N "(cached) $ECHO_C" >&6
45385else
45386 if test -n "$ac_ct_NM"; then
45387 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45388else
45389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45390for as_dir in $PATH
45391do
45392 IFS=$as_save_IFS
45393 test -z "$as_dir" && as_dir=.
45394 for ac_exec_ext in '' $ac_executable_extensions; do
45395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45396 ac_cv_prog_ac_ct_NM="nm"
45397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45398 break 2
45399 fi
45400done
45401done
45402
45403 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45404fi
45405fi
45406ac_ct_NM=$ac_cv_prog_ac_ct_NM
45407if test -n "$ac_ct_NM"; then
45408 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45409echo "${ECHO_T}$ac_ct_NM" >&6
45410else
45411 echo "$as_me:$LINENO: result: no" >&5
45412echo "${ECHO_T}no" >&6
45413fi
45414
45415 NM=$ac_ct_NM
45416else
45417 NM="$ac_cv_prog_NM"
45418fi
45419
45420
45421 case ${BAKEFILE_HOST} in
45422 *-hp-hpux* )
1e9e8aba 45423 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45424 ;;
45425 *) INSTALL_DIR="$INSTALL -d"
45426 ;;
45427 esac
45428
45429
45430 LDFLAGS_GUI=
45431 case ${BAKEFILE_HOST} in
45432 *-*-cygwin* | *-*-mingw32* )
45433 LDFLAGS_GUI="-mwindows"
45434 esac
45435
45436
45437 fi
45438
45439 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45440echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45441if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45442 echo $ECHO_N "(cached) $ECHO_C" >&6
45443else
45444
45445 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45446 egrep -s GNU > /dev/null); then
45447 bakefile_cv_prog_makeisgnu="yes"
45448 else
45449 bakefile_cv_prog_makeisgnu="no"
45450 fi
45451
45452fi
45453echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45454echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45455
45456 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45457 IF_GNU_MAKE=""
45458 else
45459 IF_GNU_MAKE="#"
45460 fi
45461
45462
45463
45464 PLATFORM_UNIX=0
45465 PLATFORM_WIN32=0
45466 PLATFORM_MSDOS=0
45467 PLATFORM_MAC=0
1e9e8aba 45468 PLATFORM_MACOS=0
a848cd7e
SC
45469 PLATFORM_MACOSX=0
45470 PLATFORM_OS2=0
1e9e8aba 45471 PLATFORM_BEOS=0
a848cd7e
SC
45472
45473 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45474 case "${BAKEFILE_HOST}" in
810b94f0 45475 *-*-mingw32* )
a848cd7e
SC
45476 PLATFORM_WIN32=1
45477 ;;
45478 *-pc-msdosdjgpp )
45479 PLATFORM_MSDOS=1
45480 ;;
45481 *-pc-os2_emx | *-pc-os2-emx )
45482 PLATFORM_OS2=1
45483 ;;
47bd5406 45484 *-*-darwin* )
a848cd7e
SC
45485 PLATFORM_MAC=1
45486 PLATFORM_MACOSX=1
45487 ;;
1e9e8aba
DE
45488 *-*-beos* )
45489 PLATFORM_BEOS=1
45490 ;;
45491 powerpc-apple-macos* )
45492 PLATFORM_MAC=1
45493 PLATFORM_MACOS=1
45494 ;;
a848cd7e
SC
45495 * )
45496 PLATFORM_UNIX=1
45497 ;;
45498 esac
45499 else
45500 case "$BAKEFILE_FORCE_PLATFORM" in
45501 win32 )
45502 PLATFORM_WIN32=1
45503 ;;
45504 msdos )
45505 PLATFORM_MSDOS=1
45506 ;;
45507 os2 )
45508 PLATFORM_OS2=1
45509 ;;
45510 darwin )
45511 PLATFORM_MAC=1
45512 PLATFORM_MACOSX=1
45513 ;;
45514 unix )
45515 PLATFORM_UNIX=1
45516 ;;
1e9e8aba
DE
45517 beos )
45518 PLATFORM_BEOS=1
45519 ;;
a848cd7e
SC
45520 * )
45521 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45522echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45523 { (exit 1); exit 1; }; }
45524 ;;
45525 esac
45526 fi
45527
45528
45529
45530
45531
45532
45533
45534
45535
1e9e8aba
DE
45536
45537
a848cd7e
SC
45538 # Check whether --enable-omf or --disable-omf was given.
45539if test "${enable_omf+set}" = set; then
45540 enableval="$enable_omf"
45541 bk_os2_use_omf="$enableval"
45542fi;
45543
45544 case "${BAKEFILE_HOST}" in
45545 *-*-darwin* )
47bd5406
VZ
45546 if test "x$GCC" = "xyes"; then
45547 CFLAGS="$CFLAGS -fno-common"
45548 CXXFLAGS="$CXXFLAGS -fno-common"
45549 fi
45550 if test "x$XLCC" = "xyes"; then
45551 CFLAGS="$CFLAGS -qnocommon"
45552 CXXFLAGS="$CXXFLAGS -qnocommon"
45553 fi
a848cd7e
SC
45554 ;;
45555
45556 *-pc-os2_emx | *-pc-os2-emx )
45557 if test "x$bk_os2_use_omf" = "xyes" ; then
45558 AR=emxomfar
45559 RANLIB=:
45560 LDFLAGS="-Zomf $LDFLAGS"
45561 CFLAGS="-Zomf $CFLAGS"
45562 CXXFLAGS="-Zomf $CXXFLAGS"
45563 OS2_LIBEXT="lib"
45564 else
45565 OS2_LIBEXT="a"
45566 fi
45567 ;;
1e9e8aba
DE
45568
45569 i*86-*-beos* )
45570 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
45571 ;;
a848cd7e
SC
45572 esac
45573
45574
45575 SO_SUFFIX="so"
45576 SO_SUFFIX_MODULE="so"
45577 EXEEXT=""
45578 LIBPREFIX="lib"
45579 LIBEXT=".a"
45580 DLLPREFIX="lib"
45581 DLLPREFIX_MODULE=""
45582 DLLIMP_SUFFIX=""
810b94f0 45583 dlldir="$libdir"
a848cd7e
SC
45584
45585 case "${BAKEFILE_HOST}" in
45586 *-hp-hpux* )
45587 SO_SUFFIX="sl"
45588 SO_SUFFIX_MODULE="sl"
45589 ;;
45590 *-*-aix* )
45591 SO_SUFFIX="a"
45592 SO_SUFFIX_MODULE="a"
45593 ;;
810b94f0
MW
45594 *-*-cygwin* )
45595 SO_SUFFIX="dll"
45596 SO_SUFFIX_MODULE="dll"
45597 DLLIMP_SUFFIX="dll.a"
45598 EXEEXT=".exe"
45599 DLLPREFIX="cyg"
45600 dlldir="$bindir"
45601 ;;
45602 *-*-mingw32* )
a848cd7e
SC
45603 SO_SUFFIX="dll"
45604 SO_SUFFIX_MODULE="dll"
45605 DLLIMP_SUFFIX="dll.a"
45606 EXEEXT=".exe"
45607 DLLPREFIX=""
810b94f0 45608 dlldir="$bindir"
a848cd7e
SC
45609 ;;
45610 *-pc-msdosdjgpp )
45611 EXEEXT=".exe"
45612 DLLPREFIX=""
810b94f0 45613 dlldir="$bindir"
a848cd7e
SC
45614 ;;
45615 *-pc-os2_emx | *-pc-os2-emx )
45616 SO_SUFFIX="dll"
45617 SO_SUFFIX_MODULE="dll"
45618 DLLIMP_SUFFIX=$OS2_LIBEXT
45619 EXEEXT=".exe"
45620 DLLPREFIX=""
45621 LIBPREFIX=""
45622 LIBEXT=".$OS2_LIBEXT"
810b94f0 45623 dlldir="$bindir"
a848cd7e 45624 ;;
47bd5406 45625 *-*-darwin* )
a848cd7e
SC
45626 SO_SUFFIX="dylib"
45627 SO_SUFFIX_MODULE="bundle"
45628 ;;
45629 esac
45630
45631 if test "x$DLLIMP_SUFFIX" = "x" ; then
45632 DLLIMP_SUFFIX="$SO_SUFFIX"
45633 fi
45634
45635
45636
45637
45638
45639
45640
45641
45642
45643
45644
810b94f0 45645
1e9e8aba
DE
45646 PIC_FLAG=""
45647 if test "x$GCC" = "xyes"; then
a848cd7e
SC
45648 PIC_FLAG="-fPIC"
45649 fi
45650
1e9e8aba
DE
45651 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
45652 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 45653 WINDOWS_IMPLIB=0
1e9e8aba 45654
a848cd7e
SC
45655 case "${BAKEFILE_HOST}" in
45656 *-hp-hpux* )
1e9e8aba 45657 if test "x$GCC" != "xyes"; then
a848cd7e
SC
45658 LDFLAGS="$LDFLAGS -L/usr/lib"
45659
45660 SHARED_LD_CC="${CC} -b -o"
45661 SHARED_LD_CXX="${CXX} -b -o"
45662 PIC_FLAG="+Z"
45663 fi
45664 ;;
45665
45666 *-*-linux* )
45667 if test "x$GCC" != "xyes"; then
45668 echo "$as_me:$LINENO: checking for Intel compiler" >&5
45669echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
45670if test "${bakefile_cv_prog_icc+set}" = set; then
45671 echo $ECHO_N "(cached) $ECHO_C" >&6
45672else
45673
45674 cat >conftest.$ac_ext <<_ACEOF
45675/* confdefs.h. */
45676_ACEOF
45677cat confdefs.h >>conftest.$ac_ext
45678cat >>conftest.$ac_ext <<_ACEOF
45679/* end confdefs.h. */
45680
45681int
45682main ()
45683{
45684
45685 #ifndef __INTEL_COMPILER
e5efa97e 45686 This is not ICC
a848cd7e
SC
45687 #endif
45688
45689 ;
45690 return 0;
45691}
45692_ACEOF
45693rm -f conftest.$ac_objext
45694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45695 (eval $ac_compile) 2>conftest.er1
a848cd7e 45696 ac_status=$?
ac1cb8d3
VS
45697 grep -v '^ *+' conftest.er1 >conftest.err
45698 rm -f conftest.er1
45699 cat conftest.err >&5
a848cd7e
SC
45700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45701 (exit $ac_status); } &&
5d7b7554 45702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45704 (eval $ac_try) 2>&5
45705 ac_status=$?
45706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45707 (exit $ac_status); }; } &&
45708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45710 (eval $ac_try) 2>&5
45711 ac_status=$?
45712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45713 (exit $ac_status); }; }; then
45714 bakefile_cv_prog_icc=yes
45715else
45716 echo "$as_me: failed program was:" >&5
45717sed 's/^/| /' conftest.$ac_ext >&5
45718
45719bakefile_cv_prog_icc=no
45720
45721fi
ac1cb8d3 45722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45723
45724fi
45725echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
45726echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
45727 if test "$bakefile_cv_prog_icc" = "yes"; then
45728 PIC_FLAG="-KPIC"
45729 fi
45730 fi
45731 ;;
45732
45733 *-*-solaris2* )
45734 if test "x$GCC" != xyes ; then
45735 SHARED_LD_CC="${CC} -G -o"
45736 SHARED_LD_CXX="${CXX} -G -o"
45737 PIC_FLAG="-KPIC"
45738 fi
45739 ;;
45740
45741 *-*-darwin* )
45742
473276a9
VS
45743D='$'
45744cat <<EOF >shared-ld-sh
a848cd7e
SC
45745#!/bin/sh
45746#-----------------------------------------------------------------------------
45747#-- Name: distrib/mac/shared-ld-sh
45748#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
45749#-- Author: Gilles Depeyrot
45750#-- Copyright: (c) 2002 Gilles Depeyrot
45751#-- Licence: any use permitted
45752#-----------------------------------------------------------------------------
45753
45754verbose=0
45755args=""
45756objects=""
45757linking_flag="-dynamiclib"
810b94f0 45758ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 45759
473276a9
VS
45760while test ${D}# -gt 0; do
45761 case ${D}1 in
a848cd7e
SC
45762
45763 -v)
45764 verbose=1
45765 ;;
45766
45767 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
45768 # collect these options and values
473276a9 45769 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
45770 shift
45771 ;;
45772
810b94f0
MW
45773 -s|-Wl,*)
45774 # collect these load args
45775 ldargs="${D}{ldargs} ${D}1"
2113bc77 45776 ;;
810b94f0
MW
45777
45778 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 45779 # collect these options
473276a9 45780 args="${D}{args} ${D}1"
a848cd7e
SC
45781 ;;
45782
45783 -dynamiclib|-bundle)
473276a9 45784 linking_flag="${D}1"
a848cd7e
SC
45785 ;;
45786
45787 -*)
473276a9 45788 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
45789 exit 1
45790 ;;
45791
45792 *.o | *.a | *.dylib)
45793 # collect object files
473276a9 45794 objects="${D}{objects} ${D}1"
a848cd7e
SC
45795 ;;
45796
45797 *)
473276a9 45798 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
45799 exit 1
45800 ;;
45801
45802 esac
45803 shift
45804done
45805
810b94f0
MW
45806status=0
45807
a848cd7e
SC
45808#
45809# Link one module containing all the others
45810#
473276a9 45811if test ${D}{verbose} = 1; then
810b94f0 45812 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 45813fi
810b94f0 45814c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 45815status=${D}?
a848cd7e
SC
45816
45817#
810b94f0
MW
45818# Link the shared library from the single module created, but only if the
45819# previous command didn't fail:
a848cd7e 45820#
810b94f0
MW
45821if test ${D}{status} = 0; then
45822 if test ${D}{verbose} = 1; then
45823 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
45824 fi
45825 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
45826 status=${D}?
a848cd7e
SC
45827fi
45828
45829#
45830# Remove intermediate module
45831#
473276a9 45832rm -f master.${D}${D}.o
a848cd7e 45833
810b94f0 45834exit ${D}status
a848cd7e 45835EOF
473276a9 45836
583d6b4b
VZ
45837 chmod +x shared-ld-sh
45838
45839 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
45840 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
45841
45842
45843 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
45844echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
45845if test "${bakefile_cv_gcc31+set}" = set; then
45846 echo $ECHO_N "(cached) $ECHO_C" >&6
45847else
45848
45849 cat >conftest.$ac_ext <<_ACEOF
45850/* confdefs.h. */
45851_ACEOF
45852cat confdefs.h >>conftest.$ac_ext
45853cat >>conftest.$ac_ext <<_ACEOF
45854/* end confdefs.h. */
45855
45856int
45857main ()
45858{
45859
45860 #if (__GNUC__ < 3) || \
45861 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 45862 This is old gcc
583d6b4b 45863 #endif
a848cd7e 45864
583d6b4b
VZ
45865 ;
45866 return 0;
45867}
45868_ACEOF
45869rm -f conftest.$ac_objext
45870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45871 (eval $ac_compile) 2>conftest.er1
45872 ac_status=$?
45873 grep -v '^ *+' conftest.er1 >conftest.err
45874 rm -f conftest.er1
45875 cat conftest.err >&5
45876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45877 (exit $ac_status); } &&
5d7b7554 45878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
45879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45880 (eval $ac_try) 2>&5
45881 ac_status=$?
45882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45883 (exit $ac_status); }; } &&
45884 { ac_try='test -s conftest.$ac_objext'
45885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45886 (eval $ac_try) 2>&5
45887 ac_status=$?
45888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45889 (exit $ac_status); }; }; then
45890
45891 bakefile_cv_gcc31=yes
45892
45893else
45894 echo "$as_me: failed program was:" >&5
45895sed 's/^/| /' conftest.$ac_ext >&5
45896
45897
45898 bakefile_cv_gcc31=no
45899
45900
45901fi
45902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45903
45904fi
45905echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
45906echo "${ECHO_T}$bakefile_cv_gcc31" >&6
45907 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 45908 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 45909 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
45910 else
45911 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 45912 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
45913 fi
45914
47bd5406
VZ
45915 if test "x$GCC" == "xyes"; then
45916 PIC_FLAG="-dynamic -fPIC"
45917 fi
45918 if test "x$XLCC" = "xyes"; then
45919 PIC_FLAG="-dynamic -DPIC"
45920 fi
a848cd7e
SC
45921 ;;
45922
45923 *-*-aix* )
f6b50c59 45924 if test "x$GCC" = "xyes"; then
583d6b4b 45925 PIC_FLAG=""
f6b50c59 45926
583d6b4b
VZ
45927 case "${BAKEFILE_HOST}" in
45928 *-*-aix5* )
45929 LD_EXPFULL="-Wl,-bexpfull"
45930 ;;
45931 esac
f6b50c59 45932
583d6b4b
VZ
45933 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
45934 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
45935 else
45936 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
45937set dummy makeC++SharedLib; ac_word=$2
45938echo "$as_me:$LINENO: checking for $ac_word" >&5
45939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45940if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
45941 echo $ECHO_N "(cached) $ECHO_C" >&6
45942else
45943 if test -n "$AIX_CXX_LD"; then
45944 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
45945else
45946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45947for as_dir in $PATH
45948do
45949 IFS=$as_save_IFS
45950 test -z "$as_dir" && as_dir=.
45951 for ac_exec_ext in '' $ac_executable_extensions; do
45952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45953 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
45954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45955 break 2
45956 fi
45957done
45958done
45959
45960 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
45961fi
45962fi
45963AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
45964if test -n "$AIX_CXX_LD"; then
45965 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
45966echo "${ECHO_T}$AIX_CXX_LD" >&6
45967else
45968 echo "$as_me:$LINENO: result: no" >&5
45969echo "${ECHO_T}no" >&6
45970fi
45971
f6b50c59 45972 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
45973 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
45974 fi
45975 ;;
45976
45977 *-*-beos* )
1e9e8aba
DE
45978 SHARED_LD_CC="${LD} -nostart -o"
45979 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
45980 ;;
45981
45982 *-*-irix* )
45983 if test "x$GCC" != "xyes"; then
45984 PIC_FLAG="-KPIC"
45985 fi
45986 ;;
45987
45988 *-*-cygwin* | *-*-mingw32* )
45989 PIC_FLAG=""
1e9e8aba
DE
45990 SHARED_LD_CC="\$(CC) -shared -o"
45991 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 45992 WINDOWS_IMPLIB=1
a848cd7e
SC
45993 ;;
45994
45995 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
45996 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45997 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 45998 PIC_FLAG=""
473276a9
VS
45999
46000D='$'
46001cat <<EOF >dllar.sh
46002#!/bin/sh
46003#
46004# dllar - a tool to build both a .dll and an .a file
46005# from a set of object (.o) files for EMX/OS2.
46006#
46007# Written by Andrew Zabolotny, bit@freya.etu.ru
46008# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46009#
46010# This script will accept a set of files on the command line.
46011# All the public symbols from the .o files will be exported into
46012# a .DEF file, then linker will be run (through gcc) against them to
46013# build a shared library consisting of all given .o files. All libraries
46014# (.a) will be first decompressed into component .o files then act as
46015# described above. You can optionally give a description (-d "description")
46016# which will be put into .DLL. To see the list of accepted options (as well
46017# as command-line format) simply run this program without options. The .DLL
46018# is built to be imported by name (there is no guarantee that new versions
46019# of the library you build will have same ordinals for same symbols).
46020#
46021# dllar is free software; you can redistribute it and/or modify
46022# it under the terms of the GNU General Public License as published by
46023# the Free Software Foundation; either version 2, or (at your option)
46024# any later version.
46025#
46026# dllar is distributed in the hope that it will be useful,
46027# but WITHOUT ANY WARRANTY; without even the implied warranty of
46028# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46029# GNU General Public License for more details.
46030#
46031# You should have received a copy of the GNU General Public License
46032# along with dllar; see the file COPYING. If not, write to the Free
46033# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46034# 02111-1307, USA.
46035
46036# To successfuly run this program you will need:
46037# - Current drive should have LFN support (HPFS, ext2, network, etc)
46038# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46039# - gcc
46040# (used to build the .dll)
46041# - emxexp
46042# (used to create .def file from .o files)
46043# - emximp
46044# (used to create .a file from .def file)
46045# - GNU text utilites (cat, sort, uniq)
46046# used to process emxexp output
46047# - GNU file utilities (mv, rm)
46048# - GNU sed
46049# - lxlite (optional, see flag below)
46050# (used for general .dll cleanup)
46051#
46052
46053flag_USE_LXLITE=1;
46054
46055#
46056# helper functions
46057# basnam, variant of basename, which does _not_ remove the path, _iff_
46058# second argument (suffix to remove) is given
46059basnam(){
46060 case ${D}# in
46061 1)
1e9e8aba 46062 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46063 ;;
46064 2)
46065 echo ${D}1 | sed 's/'${D}2'${D}//'
46066 ;;
46067 *)
46068 echo "error in basnam ${D}*"
46069 exit 8
46070 ;;
46071 esac
46072}
46073
46074# Cleanup temporary files and output
46075CleanUp() {
46076 cd ${D}curDir
46077 for i in ${D}inputFiles ; do
46078 case ${D}i in
46079 *!)
46080 rm -rf \`basnam ${D}i !\`
46081 ;;
46082 *)
46083 ;;
46084 esac
46085 done
46086
46087 # Kill result in case of failure as there is just to many stupid make/nmake
46088 # things out there which doesn't do this.
1e9e8aba 46089 if [ ${D}# -eq 0 ]; then
473276a9
VS
46090 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46091 fi
46092}
46093
46094# Print usage and exit script with rc=1.
46095PrintHelp() {
b1d22ded
DE
46096 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46097 echo ' [-name-mangler-script script.sh]'
46098 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46099 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46100 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46101 echo ' [*.o] [*.a]'
473276a9
VS
46102 echo '*> "output_file" should have no extension.'
46103 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46104 echo ' The import library name is derived from this and is set to "name".a,'
46105 echo ' unless overridden by -import'
46106 echo '*> "importlib_name" should have no extension.'
46107 echo ' If it has the .o, or .a extension, it is automatically removed.'
46108 echo ' This name is used as the import library name and may be longer and'
46109 echo ' more descriptive than the DLL name which has to follow the old '
46110 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46111 echo '*> "script.sh may be given to override the output_file name by a'
46112 echo ' different name. It is mainly useful if the regular make process'
46113 echo ' of some package does not take into account OS/2 restriction of'
46114 echo ' DLL name lengths. It takes the importlib name as input and is'
46115 echo ' supposed to procude a shorter name as output. The script should'
46116 echo ' expect to get importlib_name without extension and should produce'
46117 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46118 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46119 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46120 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46121 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46122 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46123 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46124 echo ' If the last character of a symbol is "*", all symbols beginning'
46125 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46126 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46127 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46128 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46129 echo ' C runtime DLLs.'
b1d22ded 46130 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46131 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46132 echo ' unchanged to GCC at the end of command line.'
46133 echo '*> If you create a DLL from a library and you do not specify -o,'
46134 echo ' the basename for DLL and import library will be set to library name,'
46135 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46136 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46137 echo ' library will be renamed into gcc_s.a.'
46138 echo '--------'
46139 echo 'Example:'
46140 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46141 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46142 CleanUp
46143 exit 1
46144}
46145
46146# Execute a command.
46147# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46148# @Uses Whatever CleanUp() uses.
46149doCommand() {
46150 echo "${D}*"
46151 eval ${D}*
46152 rcCmd=${D}?
46153
1e9e8aba 46154 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46155 echo "command failed, exit code="${D}rcCmd
46156 CleanUp
46157 exit ${D}rcCmd
46158 fi
46159}
46160
46161# main routine
46162# setup globals
46163cmdLine=${D}*
46164outFile=""
46165outimpFile=""
46166inputFiles=""
b1d22ded 46167renameScript=""
473276a9
VS
46168description=""
46169CC=gcc.exe
46170CFLAGS="-s -Zcrtdll"
46171EXTRA_CFLAGS=""
46172EXPORT_BY_ORDINALS=0
46173exclude_symbols=""
46174library_flags=""
46175curDir=\`pwd\`
46176curDirS=curDir
46177case ${D}curDirS in
46178*/)
46179 ;;
46180*)
46181 curDirS=${D}{curDirS}"/"
46182 ;;
46183esac
46184# Parse commandline
46185libsToLink=0
b1d22ded 46186omfLinking=0
1e9e8aba 46187while [ ${D}1 ]; do
473276a9
VS
46188 case ${D}1 in
46189 -ord*)
46190 EXPORT_BY_ORDINALS=1;
46191 ;;
46192 -o*)
46193 shift
46194 outFile=${D}1
46195 ;;
46196 -i*)
46197 shift
46198 outimpFile=${D}1
46199 ;;
b1d22ded
DE
46200 -name-mangler-script)
46201 shift
46202 renameScript=${D}1
46203 ;;
473276a9
VS
46204 -d*)
46205 shift
46206 description=${D}1
46207 ;;
46208 -f*)
46209 shift
46210 CFLAGS=${D}1
46211 ;;
46212 -c*)
46213 shift
46214 CC=${D}1
46215 ;;
46216 -h*)
46217 PrintHelp
46218 ;;
46219 -ex*)
46220 shift
46221 exclude_symbols=${D}{exclude_symbols}${D}1" "
46222 ;;
46223 -libf*)
46224 shift
46225 library_flags=${D}{library_flags}${D}1" "
46226 ;;
46227 -nocrt*)
46228 CFLAGS="-s"
46229 ;;
46230 -nolxl*)
46231 flag_USE_LXLITE=0
46232 ;;
46233 -* | /*)
46234 case ${D}1 in
46235 -L* | -l*)
46236 libsToLink=1
46237 ;;
b1d22ded
DE
46238 -Zomf)
46239 omfLinking=1
46240 ;;
473276a9
VS
46241 *)
46242 ;;
46243 esac
46244 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46245 ;;
b1d22ded
DE
46246 *.dll)
46247 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46248 if [ ${D}omfLinking -eq 1 ]; then
46249 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46250 else
46251 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46252 fi
46253 ;;
473276a9
VS
46254 *)
46255 found=0;
1e9e8aba 46256 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46257 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46258 else
46259 for file in ${D}1 ; do
1e9e8aba 46260 if [ -f ${D}file ]; then
473276a9
VS
46261 inputFiles="${D}{inputFiles} ${D}file"
46262 found=1
46263 fi
46264 done
1e9e8aba 46265 if [ ${D}found -eq 0 ]; then
473276a9
VS
46266 echo "ERROR: No file(s) found: "${D}1
46267 exit 8
46268 fi
46269 fi
46270 ;;
46271 esac
46272 shift
46273done # iterate cmdline words
46274
46275#
1e9e8aba 46276if [ -z "${D}inputFiles" ]; then
473276a9
VS
46277 echo "dllar: no input files"
46278 PrintHelp
46279fi
46280
46281# Now extract all .o files from .a files
46282newInputFiles=""
46283for file in ${D}inputFiles ; do
46284 case ${D}file in
46285 *.a | *.lib)
46286 case ${D}file in
46287 *.a)
46288 suffix=".a"
46289 AR="ar"
46290 ;;
46291 *.lib)
46292 suffix=".lib"
46293 AR="emxomfar"
46294 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46295 ;;
46296 *)
46297 ;;
46298 esac
46299 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46300 mkdir ${D}dirname
1e9e8aba 46301 if [ ${D}? -ne 0 ]; then
473276a9
VS
46302 echo "Failed to create subdirectory ./${D}dirname"
46303 CleanUp
46304 exit 8;
46305 fi
46306 # Append '!' to indicate archive
46307 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46308 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46309 cd ${D}curDir
46310 found=0;
46311 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46312 if [ -f ${D}subfile ]; then
473276a9 46313 found=1
1e9e8aba 46314 if [ -s ${D}subfile ]; then
473276a9
VS
46315 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46316 newInputFiles="${D}newInputFiles ${D}subfile"
46317 fi
46318 fi
46319 done
1e9e8aba
DE
46320 if [ ${D}found -eq 0 ]; then
46321 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46322 fi
46323 ;;
46324 *)
46325 newInputFiles="${D}{newInputFiles} ${D}file"
46326 ;;
46327 esac
46328done
46329inputFiles="${D}newInputFiles"
46330
46331# Output filename(s).
46332do_backup=0;
1e9e8aba 46333if [ -z ${D}outFile ]; then
473276a9
VS
46334 do_backup=1;
46335 set outFile ${D}inputFiles; outFile=${D}2
46336fi
46337
46338# If it is an archive, remove the '!' and the '_%' suffixes
46339case ${D}outFile in
46340*_%!)
46341 outFile=\`basnam ${D}outFile _%!\`
46342 ;;
46343*)
46344 ;;
46345esac
46346case ${D}outFile in
46347*.dll)
46348 outFile=\`basnam ${D}outFile .dll\`
46349 ;;
46350*.DLL)
46351 outFile=\`basnam ${D}outFile .DLL\`
46352 ;;
46353*.o)
46354 outFile=\`basnam ${D}outFile .o\`
46355 ;;
46356*.obj)
46357 outFile=\`basnam ${D}outFile .obj\`
46358 ;;
46359*.a)
46360 outFile=\`basnam ${D}outFile .a\`
46361 ;;
46362*.lib)
46363 outFile=\`basnam ${D}outFile .lib\`
46364 ;;
46365*)
46366 ;;
46367esac
46368case ${D}outimpFile in
46369*.a)
46370 outimpFile=\`basnam ${D}outimpFile .a\`
46371 ;;
46372*.lib)
46373 outimpFile=\`basnam ${D}outimpFile .lib\`
46374 ;;
46375*)
46376 ;;
46377esac
1e9e8aba 46378if [ -z ${D}outimpFile ]; then
473276a9
VS
46379 outimpFile=${D}outFile
46380fi
46381defFile="${D}{outFile}.def"
46382arcFile="${D}{outimpFile}.a"
46383arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46384
46385#create ${D}dllFile as something matching 8.3 restrictions,
46386if [ -z ${D}renameScript ] ; then
46387 dllFile="${D}outFile"
46388else
46389 dllFile=\`${D}renameScript ${D}outimpFile\`
46390fi
473276a9 46391
1e9e8aba
DE
46392if [ ${D}do_backup -ne 0 ] ; then
46393 if [ -f ${D}arcFile ] ; then
473276a9
VS
46394 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46395 fi
1e9e8aba 46396 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46397 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46398 fi
46399fi
46400
46401# Extract public symbols from all the object files.
46402tmpdefFile=${D}{defFile}_%
46403rm -f ${D}tmpdefFile
46404for file in ${D}inputFiles ; do
46405 case ${D}file in
46406 *!)
46407 ;;
46408 *)
46409 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46410 ;;
46411 esac
46412done
46413
46414# Create the def file.
46415rm -f ${D}defFile
46416echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46417dllFile="${D}{dllFile}.dll"
46418if [ ! -z ${D}description ]; then
1e9e8aba 46419 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46420fi
46421echo "EXPORTS" >> ${D}defFile
46422
46423doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46424grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46425
46426# Checks if the export is ok or not.
46427for word in ${D}exclude_symbols; do
46428 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46429 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46430done
46431
46432
1e9e8aba
DE
46433if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46434 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46435 sed '
46436 N
46437 : loop
1e9e8aba 46438 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46439 t loop
46440 ' > ${D}{tmpdefFile}%
46441 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46442else
46443 rm -f ${D}{tmpdefFile}%
46444fi
46445cat ${D}tmpdefFile >> ${D}defFile
46446rm -f ${D}tmpdefFile
46447
46448# Do linking, create implib, and apply lxlite.
46449gccCmdl="";
46450for file in ${D}inputFiles ; do
46451 case ${D}file in
46452 *!)
46453 ;;
46454 *)
46455 gccCmdl="${D}gccCmdl ${D}file"
46456 ;;
46457 esac
46458done
46459doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46460touch "${D}{outFile}.dll"
46461
46462doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46463if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46464 add_flags="";
1e9e8aba 46465 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46466 add_flags="-ynd"
46467 fi
46468 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46469fi
46470doCommand "emxomf -s -l ${D}arcFile"
46471
46472# Successful exit.
46473CleanUp 1
46474exit 0
46475EOF
46476
46477 chmod +x dllar.sh
a848cd7e
SC
46478 ;;
46479
1e9e8aba 46480 powerpc-apple-macos* | \
0ad5d837 46481 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46482 *-*-sunos4* | \
46483 *-*-osf* | \
46484 *-*-dgux5* | \
47a7e797
MW
46485 *-*-sysv5* | \
46486 *-pc-msdosdjgpp )
a848cd7e
SC
46487 ;;
46488
46489 *)
46490 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46491echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46492 { (exit 1); exit 1; }; }
46493 esac
46494
2057db16
VS
46495 if test "x$PIC_FLAG" != "x" ; then
46496 PIC_FLAG="$PIC_FLAG -DPIC"
46497 fi
46498
a848cd7e
SC
46499 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46500 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46501 fi
46502 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46503 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46504 fi
46505
46506
46507
46508
46509
46510
46511
46512
810b94f0 46513
a848cd7e
SC
46514 USE_SOVERSION=0
46515 USE_SOVERLINUX=0
46516 USE_SOVERSOLARIS=0
810b94f0 46517 USE_SOVERCYGWIN=0
a848cd7e
SC
46518 USE_SOSYMLINKS=0
46519 USE_MACVERSION=0
46520 SONAME_FLAG=
46521
46522 case "${BAKEFILE_HOST}" in
0ad5d837 46523 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46524 SONAME_FLAG="-Wl,-soname,"
46525 USE_SOVERSION=1
46526 USE_SOVERLINUX=1
46527 USE_SOSYMLINKS=1
46528 ;;
46529
a848cd7e
SC
46530 *-*-solaris2* )
46531 SONAME_FLAG="-h "
46532 USE_SOVERSION=1
46533 USE_SOVERSOLARIS=1
46534 USE_SOSYMLINKS=1
46535 ;;
46536
46537 *-*-darwin* )
46538 USE_MACVERSION=1
46539 USE_SOVERSION=1
46540 USE_SOSYMLINKS=1
46541 ;;
810b94f0
MW
46542
46543 *-*-cygwin* )
46544 USE_SOVERSION=1
46545 USE_SOVERCYGWIN=1
46546 ;;
a848cd7e
SC
46547 esac
46548
46549
46550
46551
46552
46553
46554
46555
46556
810b94f0 46557
f10e38c4
VZ
46558 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
46559if test "${enable_dependency_tracking+set}" = set; then
46560 enableval="$enable_dependency_tracking"
46561 bk_use_trackdeps="$enableval"
46562fi;
46563
a848cd7e
SC
46564 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46565echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 46566
f10e38c4
VZ
46567 if test "x$bk_use_trackdeps" = "xno" ; then
46568 DEPS_TRACKING=0
46569 echo "$as_me:$LINENO: result: disabled" >&5
46570echo "${ECHO_T}disabled" >&6
46571 else
46572 DEPS_TRACKING=1
46573
46574 if test "x$GCC" = "xyes"; then
46575 DEPSMODE=gcc
46576 case "${BAKEFILE_HOST}" in
46577 *-*-darwin* )
46578 DEPSFLAG="-no-cpp-precomp -MMD"
46579 ;;
46580 * )
46581 DEPSFLAG="-MMD"
46582 ;;
46583 esac
46584 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 46585echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
46586 elif test "x$MWCC" = "xyes"; then
46587 DEPSMODE=mwcc
46588 DEPSFLAG="-MM"
46589 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 46590echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
46591 elif test "x$SUNCC" = "xyes"; then
46592 DEPSMODE=unixcc
46593 DEPSFLAG="-xM1"
46594 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 46595echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
46596 elif test "x$SGICC" = "xyes"; then
46597 DEPSMODE=unixcc
46598 DEPSFLAG="-M"
46599 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 46600echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
46601 elif test "x$HPCC" = "xyes"; then
46602 DEPSMODE=unixcc
46603 DEPSFLAG="+make"
46604 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 46605echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
46606 elif test "x$COMPAQCC" = "xyes"; then
46607 DEPSMODE=gcc
46608 DEPSFLAG="-MD"
46609 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 46610echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
46611 else
46612 DEPS_TRACKING=0
46613 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 46614echo "${ECHO_T}none" >&6
f10e38c4 46615 fi
a848cd7e 46616
f10e38c4 46617 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
46618
46619D='$'
46620cat <<EOF >bk-deps
a848cd7e
SC
46621#!/bin/sh
46622
46623# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46624# script. It is used to track C/C++ files dependencies in portable way.
46625#
46626# Permission is given to use this file in any way.
46627
473276a9 46628DEPSMODE=${DEPSMODE}
a848cd7e 46629DEPSDIR=.deps
0ad5d837 46630DEPSFLAG="${DEPSFLAG}"
a848cd7e 46631
473276a9 46632mkdir -p ${D}DEPSDIR
a848cd7e 46633
473276a9 46634if test ${D}DEPSMODE = gcc ; then
0ad5d837 46635 ${D}* ${D}{DEPSFLAG}
473276a9
VS
46636 status=${D}?
46637 if test ${D}{status} != 0 ; then
46638 exit ${D}{status}
a848cd7e
SC
46639 fi
46640 # move created file to the location we want it in:
473276a9
VS
46641 while test ${D}# -gt 0; do
46642 case "${D}1" in
a848cd7e
SC
46643 -o )
46644 shift
473276a9 46645 objfile=${D}1
a848cd7e
SC
46646 ;;
46647 -* )
46648 ;;
46649 * )
473276a9 46650 srcfile=${D}1
a848cd7e
SC
46651 ;;
46652 esac
46653 shift
46654 done
1e9e8aba
DE
46655 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
46656 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
46657 if test -f ${D}depfile ; then
46658 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46659 rm -f ${D}depfile
a848cd7e 46660 else
a1aa0349 46661 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 46662 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
46663 if test ! -f ${D}depfile ; then
46664 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
46665 depfile="${D}objfile.d"
46666 fi
473276a9
VS
46667 if test -f ${D}depfile ; then
46668 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46669 rm -f ${D}depfile
a848cd7e
SC
46670 fi
46671 fi
46672 exit 0
81f90336 46673elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 46674 ${D}* || exit ${D}?
81f90336
MW
46675 # Run mwcc again with -MM and redirect into the dep file we want
46676 # NOTE: We can't use shift here because we need ${D}* to be valid
46677 prevarg=
46678 for arg in ${D}* ; do
46679 if test "${D}prevarg" = "-o"; then
46680 objfile=${D}arg
46681 else
46682 case "${D}arg" in
46683 -* )
46684 ;;
46685 * )
46686 srcfile=${D}arg
46687 ;;
46688 esac
46689 fi
46690 prevarg="${D}arg"
46691 done
0ad5d837 46692 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 46693 exit 0
0ad5d837 46694elif test ${D}DEPSMODE = unixcc; then
f6b50c59 46695 ${D}* || exit ${D}?
a9e5b1f0
MW
46696 # Run compiler again with deps flag and redirect into the dep file.
46697 # It doesn't work if the '-o FILE' option is used, but without it the
46698 # dependency file will contain the wrong name for the object. So it is
46699 # removed from the command line, and the dep file is fixed with sed.
46700 cmd=""
46701 while test ${D}# -gt 0; do
46702 case "${D}1" in
46703 -o )
46704 shift
46705 objfile=${D}1
46706 ;;
46707 * )
46708 eval arg${D}#=\\${D}1
46709 cmd="${D}cmd \\${D}arg${D}#"
46710 ;;
46711 esac
46712 shift
46713 done
0ad5d837 46714 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 46715 exit 0
a848cd7e 46716else
473276a9
VS
46717 ${D}*
46718 exit ${D}?
a848cd7e
SC
46719fi
46720EOF
473276a9 46721
f10e38c4
VZ
46722 chmod +x bk-deps
46723 fi
a848cd7e
SC
46724 fi
46725
46726
46727
46728
a848cd7e
SC
46729 case ${BAKEFILE_HOST} in
46730 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
46731 if test -n "$ac_tool_prefix"; then
46732 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
46733set dummy ${ac_tool_prefix}windres; ac_word=$2
46734echo "$as_me:$LINENO: checking for $ac_word" >&5
46735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46736if test "${ac_cv_prog_WINDRES+set}" = set; then
46737 echo $ECHO_N "(cached) $ECHO_C" >&6
46738else
46739 if test -n "$WINDRES"; then
46740 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
46741else
46742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46743for as_dir in $PATH
46744do
46745 IFS=$as_save_IFS
46746 test -z "$as_dir" && as_dir=.
46747 for ac_exec_ext in '' $ac_executable_extensions; do
46748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46749 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
46750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46751 break 2
46752 fi
46753done
46754done
46755
46756fi
46757fi
46758WINDRES=$ac_cv_prog_WINDRES
46759if test -n "$WINDRES"; then
46760 echo "$as_me:$LINENO: result: $WINDRES" >&5
46761echo "${ECHO_T}$WINDRES" >&6
46762else
46763 echo "$as_me:$LINENO: result: no" >&5
46764echo "${ECHO_T}no" >&6
46765fi
46766
46767fi
46768if test -z "$ac_cv_prog_WINDRES"; then
46769 ac_ct_WINDRES=$WINDRES
46770 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
46771set dummy windres; ac_word=$2
46772echo "$as_me:$LINENO: checking for $ac_word" >&5
46773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46774if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
46775 echo $ECHO_N "(cached) $ECHO_C" >&6
46776else
8ced02f6
DE
46777 if test -n "$ac_ct_WINDRES"; then
46778 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
46779else
46780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46781for as_dir in $PATH
46782do
46783 IFS=$as_save_IFS
46784 test -z "$as_dir" && as_dir=.
46785 for ac_exec_ext in '' $ac_executable_extensions; do
46786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46787 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
46788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46789 break 2
46790 fi
46791done
46792done
46793
a848cd7e
SC
46794fi
46795fi
8ced02f6
DE
46796ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
46797if test -n "$ac_ct_WINDRES"; then
46798 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
46799echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
46800else
46801 echo "$as_me:$LINENO: result: no" >&5
46802echo "${ECHO_T}no" >&6
46803fi
46804
8ced02f6
DE
46805 WINDRES=$ac_ct_WINDRES
46806else
46807 WINDRES="$ac_cv_prog_WINDRES"
46808fi
46809
a848cd7e
SC
46810 ;;
46811
1e9e8aba 46812 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
46813 # Extract the first word of "Rez", so it can be a program name with args.
46814set dummy Rez; ac_word=$2
46815echo "$as_me:$LINENO: checking for $ac_word" >&5
46816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46817if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
46818 echo $ECHO_N "(cached) $ECHO_C" >&6
46819else
8ced02f6
DE
46820 if test -n "$REZ"; then
46821 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
46822else
46823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46824for as_dir in $PATH
46825do
46826 IFS=$as_save_IFS
46827 test -z "$as_dir" && as_dir=.
46828 for ac_exec_ext in '' $ac_executable_extensions; do
46829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46830 ac_cv_prog_REZ="Rez"
a848cd7e
SC
46831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46832 break 2
46833 fi
46834done
46835done
46836
8ced02f6 46837 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
46838fi
46839fi
8ced02f6
DE
46840REZ=$ac_cv_prog_REZ
46841if test -n "$REZ"; then
46842 echo "$as_me:$LINENO: result: $REZ" >&5
46843echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
46844else
46845 echo "$as_me:$LINENO: result: no" >&5
46846echo "${ECHO_T}no" >&6
46847fi
46848
46849 # Extract the first word of "SetFile", so it can be a program name with args.
46850set dummy SetFile; ac_word=$2
46851echo "$as_me:$LINENO: checking for $ac_word" >&5
46852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46853if test "${ac_cv_prog_SETFILE+set}" = set; then
46854 echo $ECHO_N "(cached) $ECHO_C" >&6
46855else
46856 if test -n "$SETFILE"; then
46857 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
46858else
46859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46860for as_dir in $PATH
46861do
46862 IFS=$as_save_IFS
46863 test -z "$as_dir" && as_dir=.
46864 for ac_exec_ext in '' $ac_executable_extensions; do
46865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46866 ac_cv_prog_SETFILE="SetFile"
46867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46868 break 2
46869 fi
46870done
46871done
46872
46873 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
46874fi
46875fi
46876SETFILE=$ac_cv_prog_SETFILE
46877if test -n "$SETFILE"; then
46878 echo "$as_me:$LINENO: result: $SETFILE" >&5
46879echo "${ECHO_T}$SETFILE" >&6
46880else
46881 echo "$as_me:$LINENO: result: no" >&5
46882echo "${ECHO_T}no" >&6
46883fi
46884
46885 ;;
46886 esac
46887
46888
46889
46890
46891
8ced02f6 46892
f10e38c4 46893 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 46894
dcc1b6ad 46895
f10e38c4 46896BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 46897
646b6ec1 46898
74b84332 46899
a848cd7e
SC
46900 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
46901if test "${enable_precomp_headers+set}" = set; then
46902 enableval="$enable_precomp_headers"
46903 bk_use_pch="$enableval"
46904fi;
46905
46906 GCC_PCH=0
f10e38c4
VZ
46907 ICC_PCH=0
46908 USE_PCH=0
a848cd7e 46909
5c60e845
MW
46910 case ${BAKEFILE_HOST} in
46911 *-*-cygwin* )
46912 bk_use_pch="no"
46913 ;;
46914 esac
46915
a848cd7e
SC
46916 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
46917 if test "x$GCC" = "xyes"; then
46918 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
46919echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
46920 cat >conftest.$ac_ext <<_ACEOF
46921/* confdefs.h. */
46922_ACEOF
46923cat confdefs.h >>conftest.$ac_ext
46924cat >>conftest.$ac_ext <<_ACEOF
46925/* end confdefs.h. */
46926
46927int
46928main ()
46929{
46930
46931 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 46932 There is no PCH support
a848cd7e
SC
46933 #endif
46934 #if (__GNUC__ < 3)
e5efa97e 46935 There is no PCH support
a848cd7e
SC
46936 #endif
46937 #if (__GNUC__ == 3) && \
46938 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
46939 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
46940 ( defined(__INTEL_COMPILER) )
e5efa97e 46941 There is no PCH support
a848cd7e
SC
46942 #endif
46943
46944 ;
46945 return 0;
46946}
46947_ACEOF
46948rm -f conftest.$ac_objext
46949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46950 (eval $ac_compile) 2>conftest.er1
a848cd7e 46951 ac_status=$?
ac1cb8d3
VS
46952 grep -v '^ *+' conftest.er1 >conftest.err
46953 rm -f conftest.er1
46954 cat conftest.err >&5
a848cd7e
SC
46955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46956 (exit $ac_status); } &&
5d7b7554 46957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46959 (eval $ac_try) 2>&5
46960 ac_status=$?
46961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46962 (exit $ac_status); }; } &&
46963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46965 (eval $ac_try) 2>&5
46966 ac_status=$?
46967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46968 (exit $ac_status); }; }; then
46969
46970 echo "$as_me:$LINENO: result: yes" >&5
46971echo "${ECHO_T}yes" >&6
a848cd7e
SC
46972 GCC_PCH=1
46973
46974else
46975 echo "$as_me: failed program was:" >&5
46976sed 's/^/| /' conftest.$ac_ext >&5
46977
46978
f10e38c4
VZ
46979 cat >conftest.$ac_ext <<_ACEOF
46980/* confdefs.h. */
46981_ACEOF
46982cat confdefs.h >>conftest.$ac_ext
46983cat >>conftest.$ac_ext <<_ACEOF
46984/* end confdefs.h. */
46985
46986int
46987main ()
46988{
46989
46990 #if !defined(__INTEL_COMPILER) || \
46991 (__INTEL_COMPILER < 800)
e5efa97e 46992 There is no PCH support
f10e38c4
VZ
46993 #endif
46994
46995 ;
46996 return 0;
46997}
46998_ACEOF
46999rm -f conftest.$ac_objext
47000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47001 (eval $ac_compile) 2>conftest.er1
47002 ac_status=$?
47003 grep -v '^ *+' conftest.er1 >conftest.err
47004 rm -f conftest.er1
47005 cat conftest.err >&5
47006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47007 (exit $ac_status); } &&
5d7b7554 47008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
47009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47010 (eval $ac_try) 2>&5
47011 ac_status=$?
47012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47013 (exit $ac_status); }; } &&
47014 { ac_try='test -s conftest.$ac_objext'
47015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47016 (eval $ac_try) 2>&5
47017 ac_status=$?
47018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47019 (exit $ac_status); }; }; then
47020
47021 echo "$as_me:$LINENO: result: yes" >&5
47022echo "${ECHO_T}yes" >&6
47023 ICC_PCH=1
47024
47025else
47026 echo "$as_me: failed program was:" >&5
47027sed 's/^/| /' conftest.$ac_ext >&5
47028
47029
47030 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47031echo "${ECHO_T}no" >&6
47032
47033fi
ac1cb8d3 47034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47035
47036fi
47037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47038 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47039 USE_PCH=1
1e9e8aba
DE
47040
47041D='$'
47042cat <<EOF >bk-make-pch
a848cd7e
SC
47043#!/bin/sh
47044
47045# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47046# script. It is used to generated precompiled headers.
47047#
47048# Permission is given to use this file in any way.
47049
1e9e8aba
DE
47050outfile="${D}{1}"
47051header="${D}{2}"
a848cd7e
SC
47052shift
47053shift
47054
f10e38c4
VZ
47055compiler=""
47056headerfile=""
47057
1e9e8aba 47058while test ${D}{#} -gt 0; do
f10e38c4 47059 add_to_cmdline=1
1e9e8aba 47060 case "${D}{1}" in
a848cd7e 47061 -I* )
1e9e8aba
DE
47062 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47063 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47064 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47065 fi
47066 ;;
f10e38c4
VZ
47067 -use-pch|-use_pch )
47068 shift
47069 add_to_cmdline=0
47070 ;;
a848cd7e 47071 esac
f10e38c4
VZ
47072 if test ${D}add_to_cmdline = 1 ; then
47073 compiler="${D}{compiler} ${D}{1}"
47074 fi
a848cd7e
SC
47075 shift
47076done
47077
1e9e8aba 47078if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47079 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47080else
1e9e8aba
DE
47081 if test -f ${D}{outfile} ; then
47082 rm -f ${D}{outfile}
a848cd7e 47083 else
1e9e8aba 47084 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47085 fi
1e9e8aba 47086 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47087 mkdir -p .deps
f10e38c4
VZ
47088 if test "x${GCC_PCH}" = "x1" ; then
47089 # can do this because gcc is >= 3.4:
47090 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47091 elif test "x${ICC_PCH}" = "x1" ; then
47092 filename=pch_gen-${D}${D}
47093 file=${D}{filename}.c
47094 dfile=${D}{filename}.d
47095 cat > ${D}file <<EOT
47096#include "${D}header"
47097EOT
47098 # using -MF icc complains about differing command lines in creation/use
47099 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47100 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47101 rm -f ${D}file ${D}dfile ${D}{filename}.o
47102 fi
1e9e8aba 47103 exit ${D}{?}
a848cd7e
SC
47104fi
47105EOF
1e9e8aba 47106
a848cd7e
SC
47107 chmod +x bk-make-pch
47108 fi
47109 fi
47110 fi
47111
47112
47113
f10e38c4 47114
a848cd7e
SC
47115 COND_BUILD_DEBUG="#"
47116 if test "x$BUILD" = "xdebug" ; then
47117 COND_BUILD_DEBUG=""
47118 fi
47119
47120 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47121 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47122 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47123 fi
47124
47125 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47126 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47127 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47128 fi
47129
47130 COND_BUILD_DEBUG_UNICODE_0="#"
47131 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47132 COND_BUILD_DEBUG_UNICODE_0=""
47133 fi
47134
47135 COND_BUILD_DEBUG_UNICODE_1="#"
47136 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47137 COND_BUILD_DEBUG_UNICODE_1=""
47138 fi
47139
47140 COND_BUILD_RELEASE="#"
47141 if test "x$BUILD" = "xrelease" ; then
47142 COND_BUILD_RELEASE=""
47143 fi
47144
47145 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47146 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47147 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47148 fi
47149
47150 COND_BUILD_RELEASE_UNICODE_0="#"
47151 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47152 COND_BUILD_RELEASE_UNICODE_0=""
47153 fi
47154
47155 COND_BUILD_RELEASE_UNICODE_1="#"
47156 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47157 COND_BUILD_RELEASE_UNICODE_1=""
47158 fi
47159
47160 COND_DEBUG_FLAG_1="#"
47161 if test "x$DEBUG_FLAG" = "x1" ; then
47162 COND_DEBUG_FLAG_1=""
47163 fi
47164
47165 COND_DEBUG_INFO_0="#"
47166 if test "x$DEBUG_INFO" = "x0" ; then
47167 COND_DEBUG_INFO_0=""
47168 fi
47169
47170 COND_DEBUG_INFO_1="#"
47171 if test "x$DEBUG_INFO" = "x1" ; then
47172 COND_DEBUG_INFO_1=""
47173 fi
47174
47175 COND_DEPS_TRACKING_0="#"
47176 if test "x$DEPS_TRACKING" = "x0" ; then
47177 COND_DEPS_TRACKING_0=""
47178 fi
47179
47180 COND_DEPS_TRACKING_1="#"
47181 if test "x$DEPS_TRACKING" = "x1" ; then
47182 COND_DEPS_TRACKING_1=""
47183 fi
47184
47185 COND_GCC_PCH_1="#"
47186 if test "x$GCC_PCH" = "x1" ; then
47187 COND_GCC_PCH_1=""
47188 fi
47189
f10e38c4
VZ
47190 COND_ICC_PCH_1="#"
47191 if test "x$ICC_PCH" = "x1" ; then
47192 COND_ICC_PCH_1=""
47193 fi
47194
a848cd7e
SC
47195 COND_MONOLITHIC_0="#"
47196 if test "x$MONOLITHIC" = "x0" ; then
47197 COND_MONOLITHIC_0=""
47198 fi
47199
47200 COND_MONOLITHIC_0_SHARED_0="#"
47201 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47202 COND_MONOLITHIC_0_SHARED_0=""
47203 fi
47204
47205 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47206 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47207 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47208 fi
47209
90970d69
DE
47210 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47211 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47212 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47213 fi
47214
f10e38c4
VZ
47215 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47216 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47217 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47218 fi
47219
a848cd7e
SC
47220 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47221 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47222 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47223 fi
47224
6671c68b
VZ
47225 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47226 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47227 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47228 fi
47229
a848cd7e
SC
47230 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47231 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47232 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47233 fi
47234
ceec2216
RL
47235 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47236 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47237 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47238 fi
47239
a848cd7e
SC
47240 COND_MONOLITHIC_0_SHARED_1="#"
47241 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47242 COND_MONOLITHIC_0_SHARED_1=""
47243 fi
47244
47245 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47246 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47247 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47248 fi
47249
90970d69
DE
47250 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47251 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47252 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47253 fi
47254
f10e38c4
VZ
47255 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47256 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47257 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47258 fi
47259
a848cd7e
SC
47260 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47261 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47262 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47263 fi
47264
6671c68b
VZ
47265 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47266 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47267 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47268 fi
47269
a848cd7e
SC
47270 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47271 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47272 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47273 fi
47274
ceec2216
RL
47275 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47276 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47277 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47278 fi
47279
e5efa97e
VZ
47280 COND_MONOLITHIC_0_USE_MEDIA_1="#"
47281 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47282 COND_MONOLITHIC_0_USE_MEDIA_1=""
47283 fi
47284
a848cd7e
SC
47285 COND_MONOLITHIC_0_USE_ODBC_1="#"
47286 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47287 COND_MONOLITHIC_0_USE_ODBC_1=""
47288 fi
47289
47290 COND_MONOLITHIC_1="#"
47291 if test "x$MONOLITHIC" = "x1" ; then
47292 COND_MONOLITHIC_1=""
47293 fi
47294
47295 COND_MONOLITHIC_1_SHARED_0="#"
47296 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47297 COND_MONOLITHIC_1_SHARED_0=""
47298 fi
47299
47300 COND_MONOLITHIC_1_SHARED_1="#"
47301 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47302 COND_MONOLITHIC_1_SHARED_1=""
47303 fi
47304
47305 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47306 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47307 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47308 fi
47309
47310 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47311 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47312 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47313 fi
47314
eb730a0c
JS
47315 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47316 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47317 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47318 fi
47319
a848cd7e
SC
47320 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47321 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47322 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47323 fi
47324
47325 COND_PLATFORM_MACOSX_1="#"
47326 if test "x$PLATFORM_MACOSX" = "x1" ; then
47327 COND_PLATFORM_MACOSX_1=""
47328 fi
47329
a30f955f
VS
47330 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47331 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47332 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47333 fi
47334
a848cd7e
SC
47335 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47336 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47337 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47338 fi
47339
47340 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47341 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47342 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47343 fi
47344
47345 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47346 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47347 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47348 fi
47349
fc480dc1
DE
47350 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47351 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47352 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47353 fi
47354
1e9e8aba
DE
47355 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47356 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47357 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47358 fi
47359
ebee3cd0
VS
47360 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47361 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47362 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47363 fi
47364
47365 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47366 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47367 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47368 fi
47369
a848cd7e
SC
47370 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47371 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47372 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47373 fi
47374
47375 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47376 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47377 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47378 fi
47379
b48a2016
DE
47380 COND_PLATFORM_MACOS_1="#"
47381 if test "x$PLATFORM_MACOS" = "x1" ; then
47382 COND_PLATFORM_MACOS_1=""
47383 fi
47384
083508af
MW
47385 COND_PLATFORM_MAC_1="#"
47386 if test "x$PLATFORM_MAC" = "x1" ; then
47387 COND_PLATFORM_MAC_1=""
47388 fi
47389
e5efa97e
VZ
47390 COND_PLATFORM_MSDOS_0="#"
47391 if test "x$PLATFORM_MSDOS" = "x0" ; then
47392 COND_PLATFORM_MSDOS_0=""
47393 fi
47394
83d8eb47
MW
47395 COND_PLATFORM_MSDOS_1="#"
47396 if test "x$PLATFORM_MSDOS" = "x1" ; then
47397 COND_PLATFORM_MSDOS_1=""
47398 fi
47399
a848cd7e
SC
47400 COND_PLATFORM_OS2_1="#"
47401 if test "x$PLATFORM_OS2" = "x1" ; then
47402 COND_PLATFORM_OS2_1=""
47403 fi
47404
47405 COND_PLATFORM_UNIX_0="#"
47406 if test "x$PLATFORM_UNIX" = "x0" ; then
47407 COND_PLATFORM_UNIX_0=""
47408 fi
47409
47410 COND_PLATFORM_UNIX_1="#"
47411 if test "x$PLATFORM_UNIX" = "x1" ; then
47412 COND_PLATFORM_UNIX_1=""
47413 fi
47414
47415 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47416 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47417 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47418 fi
47419
47420 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47421 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47422 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47423 fi
47424
47425 COND_PLATFORM_WIN32_0="#"
47426 if test "x$PLATFORM_WIN32" = "x0" ; then
47427 COND_PLATFORM_WIN32_0=""
47428 fi
47429
47430 COND_PLATFORM_WIN32_1="#"
47431 if test "x$PLATFORM_WIN32" = "x1" ; then
47432 COND_PLATFORM_WIN32_1=""
47433 fi
47434
47435 COND_SHARED_0="#"
47436 if test "x$SHARED" = "x0" ; then
47437 COND_SHARED_0=""
47438 fi
47439
083508af
MW
47440 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47441 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47442 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47443 fi
47444
47445 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47446 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47447 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47448 fi
47449
47450 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47451 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47452 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47453 fi
47454
a848cd7e
SC
47455 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47456 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47457 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47458 fi
47459
47460 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47461 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47462 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47463 fi
47464
47465 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47466 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47467 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47468 fi
47469
47470 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47471 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47472 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47473 fi
47474
083508af
MW
47475 COND_SHARED_0_USE_XRC_1="#"
47476 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47477 COND_SHARED_0_USE_XRC_1=""
47478 fi
47479
a848cd7e
SC
47480 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47481 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47482 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47483 fi
47484
47485 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47486 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47487 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47488 fi
47489
47490 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47491 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47492 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47493 fi
47494
47495 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47496 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47497 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47498 fi
47499
47500 COND_SHARED_1="#"
47501 if test "x$SHARED" = "x1" ; then
47502 COND_SHARED_1=""
47503 fi
47504
47505 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47506 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47507 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47508 fi
47509
083508af
MW
47510 COND_SHARED_1_USE_XRC_1="#"
47511 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47512 COND_SHARED_1_USE_XRC_1=""
47513 fi
47514
a30f955f
VS
47515 COND_TOOLKIT_="#"
47516 if test "x$TOOLKIT" = "x" ; then
47517 COND_TOOLKIT_=""
47518 fi
47519
a848cd7e
SC
47520 COND_TOOLKIT_COCOA="#"
47521 if test "x$TOOLKIT" = "xCOCOA" ; then
47522 COND_TOOLKIT_COCOA=""
47523 fi
47524
a49baeab
DE
47525 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47526 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47527 COND_TOOLKIT_COCOA_USE_GUI_1=""
47528 fi
47529
a848cd7e
SC
47530 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47531 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47532 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47533 fi
47534
47535 COND_TOOLKIT_GTK="#"
47536 if test "x$TOOLKIT" = "xGTK" ; then
47537 COND_TOOLKIT_GTK=""
47538 fi
47539
d044deea
MW
47540 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47541 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47542 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47543 fi
47544
47545 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
47546 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
47547 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
47548 fi
47549
47550 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
47551 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
47552 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
47553 fi
47554
47555 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
47556 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47557 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
47558 fi
47559
47560 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
47561 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
47562 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
47563 fi
47564
47565 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
47566 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47567 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
47568 fi
47569
a848cd7e
SC
47570 COND_TOOLKIT_GTK_USE_GUI_1="#"
47571 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47572 COND_TOOLKIT_GTK_USE_GUI_1=""
47573 fi
47574
a848cd7e
SC
47575 COND_TOOLKIT_MAC="#"
47576 if test "x$TOOLKIT" = "xMAC" ; then
47577 COND_TOOLKIT_MAC=""
47578 fi
47579
47580 COND_TOOLKIT_MAC_USE_GUI_1="#"
47581 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47582 COND_TOOLKIT_MAC_USE_GUI_1=""
47583 fi
47584
47585 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47586 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47587 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47588 fi
47589
47590 COND_TOOLKIT_MGL="#"
47591 if test "x$TOOLKIT" = "xMGL" ; then
47592 COND_TOOLKIT_MGL=""
47593 fi
47594
47595 COND_TOOLKIT_MGL_USE_GUI_1="#"
47596 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47597 COND_TOOLKIT_MGL_USE_GUI_1=""
47598 fi
47599
47600 COND_TOOLKIT_MOTIF="#"
47601 if test "x$TOOLKIT" = "xMOTIF" ; then
47602 COND_TOOLKIT_MOTIF=""
47603 fi
47604
47605 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47606 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47607 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47608 fi
47609
47610 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47611 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47612 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47613 fi
47614
47615 COND_TOOLKIT_MSW="#"
47616 if test "x$TOOLKIT" = "xMSW" ; then
47617 COND_TOOLKIT_MSW=""
47618 fi
47619
47620 COND_TOOLKIT_MSW_USE_GUI_1="#"
47621 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47622 COND_TOOLKIT_MSW_USE_GUI_1=""
47623 fi
47624
47625 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47626 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47627 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47628 fi
47629
0ee4059d
DE
47630 COND_TOOLKIT_MSW_WXUNIV_0="#"
47631 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47632 COND_TOOLKIT_MSW_WXUNIV_0=""
47633 fi
47634
a848cd7e
SC
47635 COND_TOOLKIT_PM="#"
47636 if test "x$TOOLKIT" = "xPM" ; then
47637 COND_TOOLKIT_PM=""
47638 fi
47639
47640 COND_TOOLKIT_PM_USE_GUI_1="#"
47641 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47642 COND_TOOLKIT_PM_USE_GUI_1=""
47643 fi
47644
47645 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47646 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47647 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47648 fi
47649
3fd9c298
DE
47650 COND_TOOLKIT_WINCE="#"
47651 if test "x$TOOLKIT" = "xWINCE" ; then
47652 COND_TOOLKIT_WINCE=""
47653 fi
47654
47655 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47656 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47657 COND_TOOLKIT_WINCE_USE_GUI_1=""
47658 fi
47659
47660 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47661 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47662 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47663 fi
47664
0ee4059d
DE
47665 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47666 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47667 COND_TOOLKIT_WINCE_WXUNIV_0=""
47668 fi
47669
a848cd7e
SC
47670 COND_TOOLKIT_X11="#"
47671 if test "x$TOOLKIT" = "xX11" ; then
47672 COND_TOOLKIT_X11=""
47673 fi
47674
47675 COND_TOOLKIT_X11_USE_GUI_1="#"
47676 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47677 COND_TOOLKIT_X11_USE_GUI_1=""
47678 fi
47679
47680 COND_UNICODE_1="#"
47681 if test "x$UNICODE" = "x1" ; then
47682 COND_UNICODE_1=""
47683 fi
47684
47685 COND_USE_EXCEPTIONS_0="#"
47686 if test "x$USE_EXCEPTIONS" = "x0" ; then
47687 COND_USE_EXCEPTIONS_0=""
47688 fi
47689
47690 COND_USE_EXCEPTIONS_1="#"
47691 if test "x$USE_EXCEPTIONS" = "x1" ; then
47692 COND_USE_EXCEPTIONS_1=""
47693 fi
47694
47695 COND_USE_GUI_0="#"
47696 if test "x$USE_GUI" = "x0" ; then
47697 COND_USE_GUI_0=""
47698 fi
47699
47700 COND_USE_GUI_1="#"
47701 if test "x$USE_GUI" = "x1" ; then
47702 COND_USE_GUI_1=""
47703 fi
47704
47705 COND_USE_GUI_1_WXUNIV_0="#"
47706 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47707 COND_USE_GUI_1_WXUNIV_0=""
47708 fi
47709
47710 COND_USE_GUI_1_WXUNIV_1="#"
47711 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
47712 COND_USE_GUI_1_WXUNIV_1=""
47713 fi
47714
47715 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47716 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47717 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47718 fi
47719
47720 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47721 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47722 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47723 fi
47724
47725 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47726 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47727 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47728 fi
47729
083508af
MW
47730 COND_USE_ODBC_1="#"
47731 if test "x$USE_ODBC" = "x1" ; then
47732 COND_USE_ODBC_1=""
47733 fi
47734
47735 COND_USE_OPENGL_1="#"
47736 if test "x$USE_OPENGL" = "x1" ; then
47737 COND_USE_OPENGL_1=""
47738 fi
47739
f10e38c4
VZ
47740 COND_USE_PCH_1="#"
47741 if test "x$USE_PCH" = "x1" ; then
47742 COND_USE_PCH_1=""
47743 fi
47744
a848cd7e
SC
47745 COND_USE_PLUGINS_0="#"
47746 if test "x$USE_PLUGINS" = "x0" ; then
47747 COND_USE_PLUGINS_0=""
47748 fi
47749
0b78747f
MW
47750 COND_USE_RTTI_0="#"
47751 if test "x$USE_RTTI" = "x0" ; then
47752 COND_USE_RTTI_0=""
47753 fi
47754
47755 COND_USE_RTTI_1="#"
47756 if test "x$USE_RTTI" = "x1" ; then
47757 COND_USE_RTTI_1=""
47758 fi
47759
a848cd7e
SC
47760 COND_USE_SOSYMLINKS_1="#"
47761 if test "x$USE_SOSYMLINKS" = "x1" ; then
47762 COND_USE_SOSYMLINKS_1=""
47763 fi
47764
eb730a0c
JS
47765 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
47766 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47767 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
47768 fi
47769
a848cd7e
SC
47770 COND_USE_SOVERLINUX_1="#"
47771 if test "x$USE_SOVERLINUX" = "x1" ; then
47772 COND_USE_SOVERLINUX_1=""
47773 fi
47774
47775 COND_USE_SOVERSION_0="#"
47776 if test "x$USE_SOVERSION" = "x0" ; then
47777 COND_USE_SOVERSION_0=""
47778 fi
47779
47780 COND_USE_SOVERSOLARIS_1="#"
47781 if test "x$USE_SOVERSOLARIS" = "x1" ; then
47782 COND_USE_SOVERSOLARIS_1=""
47783 fi
47784
0b78747f
MW
47785 COND_USE_THREADS_0="#"
47786 if test "x$USE_THREADS" = "x0" ; then
47787 COND_USE_THREADS_0=""
47788 fi
47789
47790 COND_USE_THREADS_1="#"
47791 if test "x$USE_THREADS" = "x1" ; then
47792 COND_USE_THREADS_1=""
47793 fi
47794
a13a7f89
RL
47795 COND_USE_XRC_1="#"
47796 if test "x$USE_XRC" = "x1" ; then
47797 COND_USE_XRC_1=""
47798 fi
47799
eb730a0c
JS
47800 COND_WINDOWS_IMPLIB_1="#"
47801 if test "x$WINDOWS_IMPLIB" = "x1" ; then
47802 COND_WINDOWS_IMPLIB_1=""
47803 fi
47804
a848cd7e
SC
47805 COND_WITH_PLUGIN_SDL_1="#"
47806 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
47807 COND_WITH_PLUGIN_SDL_1=""
47808 fi
47809
1e6eb025
VZ
47810 COND_WXUNIV_0="#"
47811 if test "x$WXUNIV" = "x0" ; then
47812 COND_WXUNIV_0=""
47813 fi
47814
a848cd7e
SC
47815 COND_WXUNIV_1="#"
47816 if test "x$WXUNIV" = "x1" ; then
47817 COND_WXUNIV_1=""
47818 fi
47819
47820 COND_WXUSE_EXPAT_BUILTIN="#"
47821 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
47822 COND_WXUSE_EXPAT_BUILTIN=""
47823 fi
47824
47825 COND_WXUSE_LIBJPEG_BUILTIN="#"
47826 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47827 COND_WXUSE_LIBJPEG_BUILTIN=""
47828 fi
47829
47830 COND_WXUSE_LIBPNG_BUILTIN="#"
47831 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47832 COND_WXUSE_LIBPNG_BUILTIN=""
47833 fi
47834
47835 COND_WXUSE_LIBTIFF_BUILTIN="#"
47836 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47837 COND_WXUSE_LIBTIFF_BUILTIN=""
47838 fi
47839
47840 COND_WXUSE_ODBC_BUILTIN="#"
47841 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
47842 COND_WXUSE_ODBC_BUILTIN=""
47843 fi
47844
47845 COND_WXUSE_REGEX_BUILTIN="#"
47846 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
47847 COND_WXUSE_REGEX_BUILTIN=""
47848 fi
47849
47850 COND_WXUSE_ZLIB_BUILTIN="#"
47851 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
47852 COND_WXUSE_ZLIB_BUILTIN=""
47853 fi
47854
47855
47856
810b94f0
MW
47857 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
47858 { { 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
47859echo "$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;}
47860 { (exit 1); exit 1; }; }
47861 fi
47862
2057db16
VS
47863 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
47864 { { 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
47865echo "$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;}
47866 { (exit 1); exit 1; }; }
47867 fi
47868
a848cd7e 47869
7afc46ab
KO
47870
47871if test "$wxUSE_MAC" = 1 ; then
47872 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
47873 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
47874 mv temp bk-deps
47875 chmod +x bk-deps
47876 fi
47877fi
47878
ceec2216
RL
47879if test "$wxUSE_SHARED" = "yes"; then
47880
47881 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
47882 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
47883
5b674b9d
DE
47884 case "${host}" in
47885 *-pc-os2_emx | *-pc-os2-emx )
47886 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47887 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47888 cp -p ${srcdir}/src/os2/dllnames.sh .
47889 cp -p ${srcdir}/src/os2/dllar.sh .
47890 ;;
47891 esac
ceec2216
RL
47892else
47893
47894 EXE_LINKER="$CXX -o"
47895
47896fi
69120ee4
VZ
47897if test "$wxUSE_OMF" = "yes"; then
47898 case "${host}" in
47899 *-pc-os2_emx | *-pc-os2-emx )
47900 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
47901 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
47902 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
47903 ;;
47904 esac
47905fi
a848cd7e 47906
c08ebc62 47907if test $GCC_PCH = 1 ; then
254e8e29 47908 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 47909fi
a848cd7e 47910
5ff751d6 47911WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
47912
47913SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
47914
47915
47916
47917
47918
47919
47920
47921
47922
47923
47924
47925
47926
47927
47928
47929
47930
47931
47932
47933
47934
47935
47936
47937
47938
47939
47940
47941
47942
47943
47944
47945
47946
47947
47948
47949
47950
47951
47952
47953
47954
47955
a848cd7e
SC
47956
47957
47958
47959
47960
47961
47962
47963
47964
47965
47966
47967
a848cd7e
SC
47968
47969
ddd14b14 47970
370d2fd7 47971
8ced02f6 47972
a848cd7e
SC
47973
47974
47975echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47976echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 47977set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
47978if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47979 echo $ECHO_N "(cached) $ECHO_C" >&6
47980else
47981 cat >conftest.make <<\_ACEOF
47982all:
47983 @echo 'ac_maketemp="$(MAKE)"'
47984_ACEOF
47985# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47986eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47987if test -n "$ac_maketemp"; then
47988 eval ac_cv_prog_make_${ac_make}_set=yes
47989else
47990 eval ac_cv_prog_make_${ac_make}_set=no
47991fi
47992rm -f conftest.make
47993fi
47994if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47995 echo "$as_me:$LINENO: result: yes" >&5
47996echo "${ECHO_T}yes" >&6
47997 SET_MAKE=
47998else
47999 echo "$as_me:$LINENO: result: no" >&5
48000echo "${ECHO_T}no" >&6
48001 SET_MAKE="MAKE=${MAKE-make}"
48002fi
48003
48004
a848cd7e 48005
ceec2216
RL
48006 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48007
a848cd7e 48008
5c60e845
MW
48009if test "$USE_WIN32" = 1; then
48010 ac_config_commands="$ac_config_commands
48011 rcdefs.h
48012 "
48013
48014fi
48015
ceec2216 48016 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48017
a848cd7e 48018
ceec2216 48019 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48020
ceec2216
RL
48021
48022 ac_config_files="$ac_config_files version-script Makefile"
48023
48024
5c60e845 48025 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48026
48027
9103d280 48028
1c14217d 48029if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48030if test "$wxUSE_GUI" = "yes"; then
48031 SUBDIRS="samples demos utils contrib"
48032else SUBDIRS="samples utils"
48033fi
48034
48035
48036
48037# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48038if test "${with_cppunit_prefix+set}" = set; then
48039 withval="$with_cppunit_prefix"
48040 cppunit_config_prefix="$withval"
48041else
48042 cppunit_config_prefix=""
48043fi;
48044
48045# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48046if test "${with_cppunit_exec_prefix+set}" = set; then
48047 withval="$with_cppunit_exec_prefix"
48048 cppunit_config_exec_prefix="$withval"
48049else
48050 cppunit_config_exec_prefix=""
48051fi;
48052
48053 if test x$cppunit_config_exec_prefix != x ; then
48054 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48055 if test x${CPPUNIT_CONFIG+set} != xset ; then
48056 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48057 fi
48058 fi
48059 if test x$cppunit_config_prefix != x ; then
48060 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48061 if test x${CPPUNIT_CONFIG+set} != xset ; then
48062 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48063 fi
48064 fi
48065
48066 # Extract the first word of "cppunit-config", so it can be a program name with args.
48067set dummy cppunit-config; ac_word=$2
48068echo "$as_me:$LINENO: checking for $ac_word" >&5
48069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48070if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48071 echo $ECHO_N "(cached) $ECHO_C" >&6
48072else
48073 case $CPPUNIT_CONFIG in
48074 [\\/]* | ?:[\\/]*)
48075 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48076 ;;
48077 *)
48078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48079for as_dir in $PATH
48080do
48081 IFS=$as_save_IFS
48082 test -z "$as_dir" && as_dir=.
48083 for ac_exec_ext in '' $ac_executable_extensions; do
48084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48085 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48087 break 2
48088 fi
48089done
48090done
48091
48092 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48093 ;;
48094esac
48095fi
48096CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48097
48098if test -n "$CPPUNIT_CONFIG"; then
48099 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48100echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48101else
48102 echo "$as_me:$LINENO: result: no" >&5
48103echo "${ECHO_T}no" >&6
48104fi
48105
48106 cppunit_version_min=1.8.0
48107
48108 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48109echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48110 no_cppunit=""
48111 if test "$CPPUNIT_CONFIG" = "no" ; then
48112 no_cppunit=yes
48113 else
48114 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48115 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48116 cppunit_version=`$CPPUNIT_CONFIG --version`
48117
48118 cppunit_major_version=`echo $cppunit_version | \
48119 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48120 cppunit_minor_version=`echo $cppunit_version | \
48121 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48122 cppunit_micro_version=`echo $cppunit_version | \
48123 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48124
48125 cppunit_major_min=`echo $cppunit_version_min | \
48126 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48127 cppunit_minor_min=`echo $cppunit_version_min | \
48128 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48129 cppunit_micro_min=`echo $cppunit_version_min | \
48130 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48131
48132 cppunit_version_proper=`expr \
48133 $cppunit_major_version \> $cppunit_major_min \| \
48134 $cppunit_major_version \= $cppunit_major_min \& \
48135 $cppunit_minor_version \> $cppunit_minor_min \| \
48136 $cppunit_major_version \= $cppunit_major_min \& \
48137 $cppunit_minor_version \= $cppunit_minor_min \& \
48138 $cppunit_micro_version \>= $cppunit_micro_min `
48139
48140 if test "$cppunit_version_proper" = "1" ; then
48141 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48142echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48143 else
48144 echo "$as_me:$LINENO: result: no" >&5
48145echo "${ECHO_T}no" >&6
48146 no_cppunit=yes
48147 fi
48148 fi
48149
48150 if test "x$no_cppunit" = x ; then
c2218763 48151 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48152 else
48153 CPPUNIT_CFLAGS=""
48154 CPPUNIT_LIBS=""
c2218763 48155 :
a848cd7e
SC
48156 fi
48157
48158
48159
48160
48161
48162for subdir in `echo $SUBDIRS`; do
48163 if test -d ${srcdir}/${subdir} ; then
48164 if test "$wxUSE_GUI" = "yes"; then
48165 if test ${subdir} = "samples"; then
48166 makefiles="samples/Makefile.in $makefiles"
48167 for sample in `echo $SAMPLES_SUBDIRS`; do
48168 if test -d $srcdir/samples/$sample; then
48169 makefiles="samples/$sample/Makefile.in $makefiles"
48170 fi
48171 done
9c112555
MW
48172 else
48173 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48174 eval "disabled=\$$disabled_var"
48175 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48176 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48177 fi
48178 else if test ${subdir} = "samples"; then
48179 makefiles="samples/Makefile.in samples/console/Makefile.in"
48180 elif test ${subdir} = "utils"; then
6537ccf8
VS
48181 makefiles=""
48182 for util in HelpGen tex2rtf ; do
48183 if test -d $srcdir/utils/$util ; then
48184 makefiles="utils/$util/Makefile.in \
48185 utils/$util/src/Makefile.in \
48186 $makefiles"
48187 fi
48188 done
a848cd7e
SC
48189 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48190 fi
48191 fi
48192
48193 for mkin in $makefiles ; do
48194 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48195 ac_config_files="$ac_config_files $mk"
48196
48197 done
48198 fi
48199done
1c14217d 48200fi
a848cd7e
SC
48201cat >confcache <<\_ACEOF
48202# This file is a shell script that caches the results of configure
48203# tests run on this system so they can be shared between configure
48204# scripts and configure runs, see configure's option --config-cache.
48205# It is not useful on other systems. If it contains results you don't
48206# want to keep, you may remove or edit it.
48207#
48208# config.status only pays attention to the cache file if you give it
48209# the --recheck option to rerun configure.
48210#
48211# `ac_cv_env_foo' variables (set or unset) will be overridden when
48212# loading this file, other *unset* `ac_cv_foo' will be assigned the
48213# following values.
48214
48215_ACEOF
48216
48217# The following way of writing the cache mishandles newlines in values,
48218# but we know of no workaround that is simple, portable, and efficient.
48219# So, don't put newlines in cache variables' values.
48220# Ultrix sh set writes to stderr and can't be redirected directly,
48221# and sets the high bit in the cache file unless we assign to the vars.
48222{
48223 (set) 2>&1 |
48224 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48225 *ac_space=\ *)
48226 # `set' does not quote correctly, so add quotes (double-quote
48227 # substitution turns \\\\ into \\, and sed turns \\ into \).
48228 sed -n \
ac1cb8d3
VS
48229 "s/'/'\\\\''/g;
48230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48231 ;;
48232 *)
48233 # `set' quotes correctly as required by POSIX, so do not add quotes.
48234 sed -n \
ac1cb8d3 48235 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48236 ;;
48237 esac;
48238} |
48239 sed '
48240 t clear
48241 : clear
48242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48243 t end
48244 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48245 : end' >>confcache
48246if diff $cache_file confcache >/dev/null 2>&1; then :; else
48247 if test -w $cache_file; then
48248 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48249 cat confcache >$cache_file
48250 else
48251 echo "not updating unwritable cache $cache_file"
48252 fi
48253fi
48254rm -f confcache
48255
48256test "x$prefix" = xNONE && prefix=$ac_default_prefix
48257# Let make expand exec_prefix.
48258test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48259
48260# VPATH may cause trouble with some makes, so we remove $(srcdir),
48261# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48262# trailing colons and then remove the whole line if VPATH becomes empty
48263# (actually we leave an empty line to preserve line numbers).
48264if test "x$srcdir" = x.; then
ac1cb8d3 48265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48266s/:*\$(srcdir):*/:/;
48267s/:*\${srcdir}:*/:/;
48268s/:*@srcdir@:*/:/;
ac1cb8d3 48269s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48270s/:*$//;
ac1cb8d3 48271s/^[^=]*=[ ]*$//;
a848cd7e
SC
48272}'
48273fi
48274
48275DEFS=-DHAVE_CONFIG_H
48276
48277ac_libobjs=
48278ac_ltlibobjs=
48279for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48280 # 1. Remove the extension, and $U if already installed.
48281 ac_i=`echo "$ac_i" |
ac1cb8d3 48282 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48283 # 2. Add them.
48284 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48285 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48286done
48287LIBOBJS=$ac_libobjs
48288
48289LTLIBOBJS=$ac_ltlibobjs
48290
48291
48292
48293: ${CONFIG_STATUS=./config.status}
48294ac_clean_files_save=$ac_clean_files
48295ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48296{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48297echo "$as_me: creating $CONFIG_STATUS" >&6;}
48298cat >$CONFIG_STATUS <<_ACEOF
48299#! $SHELL
48300# Generated by $as_me.
48301# Run this file to recreate the current configuration.
48302# Compiler output produced by configure, useful for debugging
48303# configure, is in config.log if it exists.
48304
48305debug=false
48306ac_cs_recheck=false
48307ac_cs_silent=false
48308SHELL=\${CONFIG_SHELL-$SHELL}
48309_ACEOF
48310
48311cat >>$CONFIG_STATUS <<\_ACEOF
48312## --------------------- ##
48313## M4sh Initialization. ##
48314## --------------------- ##
48315
48316# Be Bourne compatible
48317if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48318 emulate sh
48319 NULLCMD=:
48320 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48321 # is contrary to our usage. Disable this feature.
48322 alias -g '${1+"$@"}'='"$@"'
48323elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48324 set -o posix
48325fi
ac1cb8d3 48326DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48327
48328# Support unset when possible.
ac1cb8d3 48329if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48330 as_unset=unset
48331else
48332 as_unset=false
48333fi
48334
48335
48336# Work around bugs in pre-3.0 UWIN ksh.
48337$as_unset ENV MAIL MAILPATH
48338PS1='$ '
48339PS2='> '
48340PS4='+ '
48341
48342# NLS nuisances.
48343for as_var in \
48344 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48345 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48346 LC_TELEPHONE LC_TIME
48347do
ac1cb8d3 48348 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48349 eval $as_var=C; export $as_var
48350 else
48351 $as_unset $as_var
48352 fi
48353done
48354
48355# Required to use basename.
48356if expr a : '\(a\)' >/dev/null 2>&1; then
48357 as_expr=expr
48358else
48359 as_expr=false
48360fi
48361
48362if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48363 as_basename=basename
48364else
48365 as_basename=false
48366fi
48367
48368
48369# Name of the executable.
48370as_me=`$as_basename "$0" ||
48371$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48372 X"$0" : 'X\(//\)$' \| \
48373 X"$0" : 'X\(/\)$' \| \
48374 . : '\(.\)' 2>/dev/null ||
48375echo X/"$0" |
48376 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48377 /^X\/\(\/\/\)$/{ s//\1/; q; }
48378 /^X\/\(\/\).*/{ s//\1/; q; }
48379 s/.*/./; q'`
48380
48381
48382# PATH needs CR, and LINENO needs CR and PATH.
48383# Avoid depending upon Character Ranges.
48384as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48385as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48386as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48387as_cr_digits='0123456789'
48388as_cr_alnum=$as_cr_Letters$as_cr_digits
48389
48390# The user is always right.
48391if test "${PATH_SEPARATOR+set}" != set; then
48392 echo "#! /bin/sh" >conf$$.sh
48393 echo "exit 0" >>conf$$.sh
48394 chmod +x conf$$.sh
48395 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48396 PATH_SEPARATOR=';'
48397 else
48398 PATH_SEPARATOR=:
48399 fi
48400 rm -f conf$$.sh
48401fi
48402
48403
48404 as_lineno_1=$LINENO
48405 as_lineno_2=$LINENO
48406 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48407 test "x$as_lineno_1" != "x$as_lineno_2" &&
48408 test "x$as_lineno_3" = "x$as_lineno_2" || {
48409 # Find who we are. Look in the path if we contain no path at all
48410 # relative or not.
48411 case $0 in
48412 *[\\/]* ) as_myself=$0 ;;
48413 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48414for as_dir in $PATH
48415do
48416 IFS=$as_save_IFS
48417 test -z "$as_dir" && as_dir=.
48418 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48419done
48420
48421 ;;
48422 esac
48423 # We did not find ourselves, most probably we were run as `sh COMMAND'
48424 # in which case we are not to be found in the path.
48425 if test "x$as_myself" = x; then
48426 as_myself=$0
48427 fi
48428 if test ! -f "$as_myself"; then
48429 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48430echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48431 { (exit 1); exit 1; }; }
48432 fi
48433 case $CONFIG_SHELL in
48434 '')
48435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48436for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48437do
48438 IFS=$as_save_IFS
48439 test -z "$as_dir" && as_dir=.
48440 for as_base in sh bash ksh sh5; do
48441 case $as_dir in
48442 /*)
48443 if ("$as_dir/$as_base" -c '
48444 as_lineno_1=$LINENO
48445 as_lineno_2=$LINENO
48446 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48447 test "x$as_lineno_1" != "x$as_lineno_2" &&
48448 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48449 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48450 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48451 CONFIG_SHELL=$as_dir/$as_base
48452 export CONFIG_SHELL
48453 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48454 fi;;
48455 esac
48456 done
48457done
48458;;
48459 esac
48460
48461 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48462 # uniformly replaced by the line number. The first 'sed' inserts a
48463 # line-number line before each line; the second 'sed' does the real
48464 # work. The second script uses 'N' to pair each line-number line
48465 # with the numbered line, and appends trailing '-' during
48466 # substitution so that $LINENO is not a special case at line end.
48467 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48468 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48469 sed '=' <$as_myself |
48470 sed '
48471 N
48472 s,$,-,
48473 : loop
48474 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48475 t loop
48476 s,-$,,
48477 s,^['$as_cr_digits']*\n,,
48478 ' >$as_me.lineno &&
48479 chmod +x $as_me.lineno ||
48480 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48481echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48482 { (exit 1); exit 1; }; }
48483
48484 # Don't try to exec as it changes $[0], causing all sort of problems
48485 # (the dirname of $[0] is not the place where we might find the
48486 # original and so on. Autoconf is especially sensible to this).
48487 . ./$as_me.lineno
48488 # Exit status is that of the last command.
48489 exit
48490}
48491
48492
48493case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48494 *c*,-n*) ECHO_N= ECHO_C='
48495' ECHO_T=' ' ;;
48496 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48497 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48498esac
48499
48500if expr a : '\(a\)' >/dev/null 2>&1; then
48501 as_expr=expr
48502else
48503 as_expr=false
48504fi
48505
48506rm -f conf$$ conf$$.exe conf$$.file
48507echo >conf$$.file
48508if ln -s conf$$.file conf$$ 2>/dev/null; then
48509 # We could just check for DJGPP; but this test a) works b) is more generic
48510 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48511 if test -f conf$$.exe; then
48512 # Don't use ln at all; we don't have any links
48513 as_ln_s='cp -p'
48514 else
48515 as_ln_s='ln -s'
48516 fi
48517elif ln conf$$.file conf$$ 2>/dev/null; then
48518 as_ln_s=ln
48519else
48520 as_ln_s='cp -p'
48521fi
48522rm -f conf$$ conf$$.exe conf$$.file
48523
48524if mkdir -p . 2>/dev/null; then
48525 as_mkdir_p=:
48526else
ac1cb8d3 48527 test -d ./-p && rmdir ./-p
a848cd7e
SC
48528 as_mkdir_p=false
48529fi
48530
48531as_executable_p="test -f"
48532
48533# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48535
48536# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48538
48539
48540# IFS
48541# We need space, tab and new line, in precisely that order.
48542as_nl='
48543'
48544IFS=" $as_nl"
48545
48546# CDPATH.
48547$as_unset CDPATH
48548
48549exec 6>&1
48550
48551# Open the log real soon, to keep \$[0] and so on meaningful, and to
48552# report actual input values of CONFIG_FILES etc. instead of their
48553# values after options handling. Logging --version etc. is OK.
48554exec 5>>config.log
48555{
48556 echo
48557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48558## Running $as_me. ##
48559_ASBOX
48560} >&5
48561cat >&5 <<_CSEOF
48562
dd8df4fc 48563This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 48564generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
48565
48566 CONFIG_FILES = $CONFIG_FILES
48567 CONFIG_HEADERS = $CONFIG_HEADERS
48568 CONFIG_LINKS = $CONFIG_LINKS
48569 CONFIG_COMMANDS = $CONFIG_COMMANDS
48570 $ $0 $@
48571
48572_CSEOF
48573echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48574echo >&5
48575_ACEOF
48576
48577# Files that config.status was made for.
48578if test -n "$ac_config_files"; then
48579 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48580fi
48581
48582if test -n "$ac_config_headers"; then
48583 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48584fi
48585
48586if test -n "$ac_config_links"; then
48587 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48588fi
48589
48590if test -n "$ac_config_commands"; then
48591 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48592fi
48593
48594cat >>$CONFIG_STATUS <<\_ACEOF
48595
48596ac_cs_usage="\
48597\`$as_me' instantiates files from templates according to the
48598current configuration.
48599
48600Usage: $0 [OPTIONS] [FILE]...
48601
48602 -h, --help print this help, then exit
48603 -V, --version print version number, then exit
48604 -q, --quiet do not print progress messages
48605 -d, --debug don't remove temporary files
48606 --recheck update $as_me by reconfiguring in the same conditions
48607 --file=FILE[:TEMPLATE]
ac1cb8d3 48608 instantiate the configuration file FILE
a848cd7e 48609 --header=FILE[:TEMPLATE]
ac1cb8d3 48610 instantiate the configuration header FILE
a848cd7e
SC
48611
48612Configuration files:
48613$config_files
48614
48615Configuration headers:
48616$config_headers
48617
48618Configuration commands:
48619$config_commands
48620
48621Report bugs to <bug-autoconf@gnu.org>."
48622_ACEOF
48623
48624cat >>$CONFIG_STATUS <<_ACEOF
48625ac_cs_version="\\
dd8df4fc 48626wxWidgets config.status 2.7.0
ac1cb8d3 48627configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
48628 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48629
ac1cb8d3 48630Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
48631This config.status script is free software; the Free Software Foundation
48632gives unlimited permission to copy, distribute and modify it."
48633srcdir=$srcdir
48634INSTALL="$INSTALL"
48635_ACEOF
48636
48637cat >>$CONFIG_STATUS <<\_ACEOF
48638# If no file are specified by the user, then we need to provide default
48639# value. By we need to know if files were specified by the user.
48640ac_need_defaults=:
48641while test $# != 0
48642do
48643 case $1 in
48644 --*=*)
48645 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48646 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48647 ac_shift=:
48648 ;;
48649 -*)
48650 ac_option=$1
48651 ac_optarg=$2
48652 ac_shift=shift
48653 ;;
48654 *) # This is not an option, so the user has probably given explicit
48655 # arguments.
48656 ac_option=$1
48657 ac_need_defaults=false;;
48658 esac
48659
48660 case $ac_option in
48661 # Handling of the options.
48662_ACEOF
48663cat >>$CONFIG_STATUS <<\_ACEOF
48664 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48665 ac_cs_recheck=: ;;
48666 --version | --vers* | -V )
48667 echo "$ac_cs_version"; exit 0 ;;
48668 --he | --h)
48669 # Conflict between --help and --header
48670 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48671Try \`$0 --help' for more information." >&5
48672echo "$as_me: error: ambiguous option: $1
48673Try \`$0 --help' for more information." >&2;}
48674 { (exit 1); exit 1; }; };;
48675 --help | --hel | -h )
48676 echo "$ac_cs_usage"; exit 0 ;;
48677 --debug | --d* | -d )
48678 debug=: ;;
48679 --file | --fil | --fi | --f )
48680 $ac_shift
48681 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48682 ac_need_defaults=false;;
48683 --header | --heade | --head | --hea )
48684 $ac_shift
48685 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48686 ac_need_defaults=false;;
48687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48688 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48689 ac_cs_silent=: ;;
48690
48691 # This is an error.
48692 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48693Try \`$0 --help' for more information." >&5
48694echo "$as_me: error: unrecognized option: $1
48695Try \`$0 --help' for more information." >&2;}
48696 { (exit 1); exit 1; }; } ;;
48697
48698 *) ac_config_targets="$ac_config_targets $1" ;;
48699
48700 esac
48701 shift
48702done
48703
48704ac_configure_extra_args=
48705
48706if $ac_cs_silent; then
48707 exec 6>/dev/null
48708 ac_configure_extra_args="$ac_configure_extra_args --silent"
48709fi
48710
48711_ACEOF
48712cat >>$CONFIG_STATUS <<_ACEOF
48713if \$ac_cs_recheck; then
48714 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48715 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48716fi
48717
48718_ACEOF
48719
48720cat >>$CONFIG_STATUS <<_ACEOF
48721#
48722# INIT-COMMANDS section.
48723#
48724
5c60e845
MW
48725
48726 CPP="$CPP"
48727 infile="$srcdir/include/wx/msw/genrcdefs.h"
48728 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
48729
48730
ceec2216
RL
48731 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48732 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48733 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48734 LN_S="${LN_S}"
a848cd7e
SC
48735
48736
48737_ACEOF
48738
48739
48740
48741cat >>$CONFIG_STATUS <<\_ACEOF
48742for ac_config_target in $ac_config_targets
48743do
48744 case "$ac_config_target" in
48745 # Handling of arguments.
ceec2216
RL
48746 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
48747 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
48748 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
48749 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48750 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 48751 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
48752 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
48753 "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
48754 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48755echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48756 { (exit 1); exit 1; }; };;
48757 esac
48758done
48759
48760# If the user did not use the arguments to specify the items to instantiate,
48761# then the envvar interface is used. Set only those that are not.
48762# We use the long form for the default assignment because of an extremely
48763# bizarre bug on SunOS 4.1.3.
48764if $ac_need_defaults; then
48765 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48766 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48767 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48768fi
48769
48770# Have a temporary directory for convenience. Make it in the build tree
48771# simply because there is no reason to put it here, and in addition,
48772# creating and moving files from /tmp can sometimes cause problems.
48773# Create a temporary directory, and hook for its removal unless debugging.
48774$debug ||
48775{
48776 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
48777 trap '{ (exit 1); exit 1; }' 1 2 13 15
48778}
48779
48780# Create a (secure) tmp directory for tmp files.
48781
48782{
48783 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
48784 test -n "$tmp" && test -d "$tmp"
48785} ||
48786{
48787 tmp=./confstat$$-$RANDOM
48788 (umask 077 && mkdir $tmp)
48789} ||
48790{
48791 echo "$me: cannot create a temporary directory in ." >&2
48792 { (exit 1); exit 1; }
48793}
48794
48795_ACEOF
48796
48797cat >>$CONFIG_STATUS <<_ACEOF
48798
48799#
48800# CONFIG_FILES section.
48801#
48802
48803# No need to generate the scripts if there are no CONFIG_FILES.
48804# This happens for instance when ./config.status config.h
48805if test -n "\$CONFIG_FILES"; then
48806 # Protect against being on the right side of a sed subst in config.status.
48807 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
48808 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
48809s,@SHELL@,$SHELL,;t t
48810s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
48811s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
48812s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
48813s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
48814s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
48815s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
48816s,@exec_prefix@,$exec_prefix,;t t
48817s,@prefix@,$prefix,;t t
48818s,@program_transform_name@,$program_transform_name,;t t
48819s,@bindir@,$bindir,;t t
48820s,@sbindir@,$sbindir,;t t
48821s,@libexecdir@,$libexecdir,;t t
48822s,@datadir@,$datadir,;t t
48823s,@sysconfdir@,$sysconfdir,;t t
48824s,@sharedstatedir@,$sharedstatedir,;t t
48825s,@localstatedir@,$localstatedir,;t t
48826s,@libdir@,$libdir,;t t
48827s,@includedir@,$includedir,;t t
48828s,@oldincludedir@,$oldincludedir,;t t
48829s,@infodir@,$infodir,;t t
48830s,@mandir@,$mandir,;t t
48831s,@build_alias@,$build_alias,;t t
48832s,@host_alias@,$host_alias,;t t
48833s,@target_alias@,$target_alias,;t t
48834s,@DEFS@,$DEFS,;t t
48835s,@ECHO_C@,$ECHO_C,;t t
48836s,@ECHO_N@,$ECHO_N,;t t
48837s,@ECHO_T@,$ECHO_T,;t t
48838s,@LIBS@,$LIBS,;t t
48839s,@build@,$build,;t t
48840s,@build_cpu@,$build_cpu,;t t
48841s,@build_vendor@,$build_vendor,;t t
48842s,@build_os@,$build_os,;t t
48843s,@host@,$host,;t t
48844s,@host_cpu@,$host_cpu,;t t
48845s,@host_vendor@,$host_vendor,;t t
48846s,@host_os@,$host_os,;t t
48847s,@target@,$target,;t t
48848s,@target_cpu@,$target_cpu,;t t
48849s,@target_vendor@,$target_vendor,;t t
48850s,@target_os@,$target_os,;t t
48851s,@CC@,$CC,;t t
48852s,@CFLAGS@,$CFLAGS,;t t
48853s,@LDFLAGS@,$LDFLAGS,;t t
48854s,@CPPFLAGS@,$CPPFLAGS,;t t
48855s,@ac_ct_CC@,$ac_ct_CC,;t t
48856s,@EXEEXT@,$EXEEXT,;t t
48857s,@OBJEXT@,$OBJEXT,;t t
48858s,@CPP@,$CPP,;t t
48859s,@EGREP@,$EGREP,;t t
48860s,@CXX@,$CXX,;t t
48861s,@CXXFLAGS@,$CXXFLAGS,;t t
48862s,@ac_ct_CXX@,$ac_ct_CXX,;t t
48863s,@RANLIB@,$RANLIB,;t t
48864s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
48865s,@AR@,$AR,;t t
8c80d384 48866s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
48867s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
48868s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
48869s,@INSTALL_DATA@,$INSTALL_DATA,;t t
48870s,@STRIP@,$STRIP,;t t
8c80d384 48871s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
48872s,@WINDRES@,$WINDRES,;t t
48873s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
48874s,@DLLTOOL@,$DLLTOOL,;t t
48875s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
48876s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
48877s,@LN_S@,$LN_S,;t t
48878s,@CXXCPP@,$CXXCPP,;t t
48879s,@subdirs@,$subdirs,;t t
48880s,@PKG_CONFIG@,$PKG_CONFIG,;t t
48881s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
48882s,@GTK_LIBS@,$GTK_LIBS,;t t
48883s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
48884s,@X_CFLAGS@,$X_CFLAGS,;t t
48885s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
48886s,@X_LIBS@,$X_LIBS,;t t
48887s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
48888s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
48889s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
48890s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
48891s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
48892s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
48893s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 48894s,@REZ@,$REZ,;t t
a848cd7e
SC
48895s,@DEREZ@,$DEREZ,;t t
48896s,@SETFILE@,$SETFILE,;t t
48897s,@LIBICONV@,$LIBICONV,;t t
48898s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
48899s,@SDL_CONFIG@,$SDL_CONFIG,;t t
48900s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
48901s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
48902s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
48903s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
48904s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
48905s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
48906s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
48907s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
48908s,@GST_CFLAGS@,$GST_CFLAGS,;t t
48909s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
48910s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
48911s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
48912s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
48913s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
48914s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
48915s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
48916s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
48917s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
48918s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
48919s,@VENDOR@,$VENDOR,;t t
48920s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
48921s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
48922s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
48923s,@WXUNIV@,$WXUNIV,;t t
48924s,@MONOLITHIC@,$MONOLITHIC,;t t
48925s,@USE_PLUGINS@,$USE_PLUGINS,;t t
48926s,@EXTRALIBS@,$EXTRALIBS,;t t
48927s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
48928s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
48929s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
48930s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
48931s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
48932s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
48933s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 48934s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 48935s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 48936s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
48937s,@UNICODE@,$UNICODE,;t t
48938s,@BUILD@,$BUILD,;t t
48939s,@DEBUG_INFO@,$DEBUG_INFO,;t t
48940s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
48941s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
48942s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
48943s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
48944s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
48945s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
48946s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
48947s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
48948s,@SET_MAKE@,$SET_MAKE,;t t
48949s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
48950s,@NM@,$NM,;t t
48951s,@ac_ct_NM@,$ac_ct_NM,;t t
48952s,@INSTALL_DIR@,$INSTALL_DIR,;t t
48953s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
48954s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
48955s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
48956s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
48957s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 48958s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
48959s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
48960s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 48961s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
48962s,@SO_SUFFIX@,$SO_SUFFIX,;t t
48963s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
48964s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
48965s,@LIBPREFIX@,$LIBPREFIX,;t t
48966s,@LIBEXT@,$LIBEXT,;t t
48967s,@DLLPREFIX@,$DLLPREFIX,;t t
48968s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 48969s,@dlldir@,$dlldir,;t t
a848cd7e
SC
48970s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
48971s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
48972s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
48973s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
48974s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
48975s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 48976s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
48977s,@USE_SOVERSION@,$USE_SOVERSION,;t t
48978s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
48979s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 48980s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
48981s,@USE_MACVERSION@,$USE_MACVERSION,;t t
48982s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
48983s,@SONAME_FLAG@,$SONAME_FLAG,;t t
48984s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
48985s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 48986s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
48987s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
48988s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
48989s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
48990s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
48991s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
48992s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
48993s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
48994s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
48995s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
48996s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
48997s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
48998s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
48999s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49000s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49001s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49002s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49003s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49004s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49005s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49006s,@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 49007s,@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 49008s,@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 49009s,@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 49010s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49011s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49012s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49013s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49014s,@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 49015s,@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 49016s,@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 49017s,@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 49018s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49019s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49020s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49021s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49022s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49023s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49024s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49025s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49026s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49027s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49028s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49029s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49030s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49031s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49032s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49033s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49034s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49035s,@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
49036s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49037s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49038s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49039s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49040s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49041s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49042s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49043s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49044s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49045s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49046s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49047s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49048s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49049s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49050s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49051s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49052s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49053s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49054s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49055s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49056s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49057s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49058s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49059s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49060s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49061s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49062s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49063s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49064s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49065s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49066s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49067s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49068s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49069s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49070s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49071s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49072s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49073s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49074s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49075s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49076s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49077s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49078s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49079s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49080s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49081s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49082s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49083s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49084s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49085s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49086s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49087s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49088s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49089s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49090s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49091s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49092s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49093s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49094s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49095s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49096s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49097s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49098s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49099s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49100s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49101s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49102s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49103s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49104s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49105s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49106s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49107s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49108s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49109s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49110s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49111s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49112s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49113s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49114s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49115s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49116s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49117s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49118s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49119s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49120s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49121s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49122s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49123s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49124s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49125s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49126s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49127s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49128s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49129s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49130s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49131s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49132s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49133s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49134s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49135s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49136s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49137s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49138s,@USE_GUI@,$USE_GUI,;t t
49139s,@AFMINSTALL@,$AFMINSTALL,;t t
49140s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49141s,@TOOLKIT@,$TOOLKIT,;t t
49142s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49143s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49144s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49145s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49146s,@WIDGET_SET@,$WIDGET_SET,;t t
49147s,@WX_RELEASE@,$WX_RELEASE,;t t
49148s,@WX_VERSION@,$WX_VERSION,;t t
49149s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49150s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49151s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49152s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49153s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49154s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49155s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49156s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49157s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49158s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49159s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49160s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49161s,@DISTDIR@,$DISTDIR,;t t
49162s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49163s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49164s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49165s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49166s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49167s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49168s,@RESFLAGS@,$RESFLAGS,;t t
49169s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49170s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49171s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49172s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49173s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49174s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49175s,@GCC@,$GCC,;t t
a848cd7e
SC
49176s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49177s,@LIBOBJS@,$LIBOBJS,;t t
49178s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49179CEOF
49180
49181_ACEOF
49182
49183 cat >>$CONFIG_STATUS <<\_ACEOF
49184 # Split the substitutions into bite-sized pieces for seds with
49185 # small command number limits, like on Digital OSF/1 and HP-UX.
49186 ac_max_sed_lines=48
49187 ac_sed_frag=1 # Number of current file.
49188 ac_beg=1 # First line for current file.
49189 ac_end=$ac_max_sed_lines # Line after last line for current file.
49190 ac_more_lines=:
49191 ac_sed_cmds=
49192 while $ac_more_lines; do
49193 if test $ac_beg -gt 1; then
49194 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49195 else
49196 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49197 fi
49198 if test ! -s $tmp/subs.frag; then
49199 ac_more_lines=false
49200 else
49201 # The purpose of the label and of the branching condition is to
49202 # speed up the sed processing (if there are no `@' at all, there
49203 # is no need to browse any of the substitutions).
49204 # These are the two extra sed commands mentioned above.
49205 (echo ':t
49206 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49207 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49208 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49209 else
ac1cb8d3 49210 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49211 fi
49212 ac_sed_frag=`expr $ac_sed_frag + 1`
49213 ac_beg=$ac_end
49214 ac_end=`expr $ac_end + $ac_max_sed_lines`
49215 fi
49216 done
49217 if test -z "$ac_sed_cmds"; then
49218 ac_sed_cmds=cat
49219 fi
49220fi # test -n "$CONFIG_FILES"
49221
49222_ACEOF
49223cat >>$CONFIG_STATUS <<\_ACEOF
49224for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49225 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49226 case $ac_file in
49227 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49228 cat >$tmp/stdin
49229 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49230 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49231 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49232 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49233 * ) ac_file_in=$ac_file.in ;;
49234 esac
49235
49236 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49237 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49238$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49239 X"$ac_file" : 'X\(//\)[^/]' \| \
49240 X"$ac_file" : 'X\(//\)$' \| \
49241 X"$ac_file" : 'X\(/\)' \| \
49242 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49243echo X"$ac_file" |
49244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49246 /^X\(\/\/\)$/{ s//\1/; q; }
49247 /^X\(\/\).*/{ s//\1/; q; }
49248 s/.*/./; q'`
49249 { if $as_mkdir_p; then
49250 mkdir -p "$ac_dir"
49251 else
49252 as_dir="$ac_dir"
49253 as_dirs=
49254 while test ! -d "$as_dir"; do
49255 as_dirs="$as_dir $as_dirs"
49256 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49257$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49258 X"$as_dir" : 'X\(//\)[^/]' \| \
49259 X"$as_dir" : 'X\(//\)$' \| \
49260 X"$as_dir" : 'X\(/\)' \| \
49261 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49262echo X"$as_dir" |
49263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49265 /^X\(\/\/\)$/{ s//\1/; q; }
49266 /^X\(\/\).*/{ s//\1/; q; }
49267 s/.*/./; q'`
49268 done
49269 test ! -n "$as_dirs" || mkdir $as_dirs
49270 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49271echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49272 { (exit 1); exit 1; }; }; }
49273
49274 ac_builddir=.
49275
49276if test "$ac_dir" != .; then
49277 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49278 # A "../" for each directory in $ac_dir_suffix.
49279 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49280else
49281 ac_dir_suffix= ac_top_builddir=
49282fi
49283
49284case $srcdir in
49285 .) # No --srcdir option. We are building in place.
49286 ac_srcdir=.
49287 if test -z "$ac_top_builddir"; then
49288 ac_top_srcdir=.
49289 else
49290 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49291 fi ;;
49292 [\\/]* | ?:[\\/]* ) # Absolute path.
49293 ac_srcdir=$srcdir$ac_dir_suffix;
49294 ac_top_srcdir=$srcdir ;;
49295 *) # Relative path.
49296 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49297 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49298esac
ac1cb8d3
VS
49299
49300# Do not use `cd foo && pwd` to compute absolute paths, because
49301# the directories may not exist.
49302case `pwd` in
49303.) ac_abs_builddir="$ac_dir";;
49304*)
49305 case "$ac_dir" in
49306 .) ac_abs_builddir=`pwd`;;
49307 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49308 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49309 esac;;
49310esac
49311case $ac_abs_builddir in
49312.) ac_abs_top_builddir=${ac_top_builddir}.;;
49313*)
49314 case ${ac_top_builddir}. in
49315 .) ac_abs_top_builddir=$ac_abs_builddir;;
49316 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49317 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49318 esac;;
49319esac
49320case $ac_abs_builddir in
49321.) ac_abs_srcdir=$ac_srcdir;;
49322*)
49323 case $ac_srcdir in
49324 .) ac_abs_srcdir=$ac_abs_builddir;;
49325 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49326 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49327 esac;;
49328esac
49329case $ac_abs_builddir in
49330.) ac_abs_top_srcdir=$ac_top_srcdir;;
49331*)
49332 case $ac_top_srcdir in
49333 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49334 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49335 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49336 esac;;
49337esac
a848cd7e
SC
49338
49339
49340 case $INSTALL in
49341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49342 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49343 esac
49344
a848cd7e
SC
49345 # Let's still pretend it is `configure' which instantiates (i.e., don't
49346 # use $as_me), people would be surprised to read:
49347 # /* config.h. Generated by config.status. */
49348 if test x"$ac_file" = x-; then
49349 configure_input=
49350 else
49351 configure_input="$ac_file. "
49352 fi
49353 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49354 sed 's,.*/,,'` by configure."
a848cd7e
SC
49355
49356 # First look for the input files in the build tree, otherwise in the
49357 # src tree.
49358 ac_file_inputs=`IFS=:
49359 for f in $ac_file_in; do
49360 case $f in
49361 -) echo $tmp/stdin ;;
49362 [\\/$]*)
ac1cb8d3
VS
49363 # Absolute (can't be DOS-style, as IFS=:)
49364 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49365echo "$as_me: error: cannot find input file: $f" >&2;}
49366 { (exit 1); exit 1; }; }
ac1cb8d3 49367 echo "$f";;
a848cd7e 49368 *) # Relative
ac1cb8d3
VS
49369 if test -f "$f"; then
49370 # Build tree
49371 echo "$f"
49372 elif test -f "$srcdir/$f"; then
49373 # Source tree
49374 echo "$srcdir/$f"
49375 else
49376 # /dev/null tree
49377 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49378echo "$as_me: error: cannot find input file: $f" >&2;}
49379 { (exit 1); exit 1; }; }
ac1cb8d3 49380 fi;;
a848cd7e
SC
49381 esac
49382 done` || { (exit 1); exit 1; }
5d7b7554
VZ
49383
49384 if test x"$ac_file" != x-; then
49385 { echo "$as_me:$LINENO: creating $ac_file" >&5
49386echo "$as_me: creating $ac_file" >&6;}
49387 rm -f "$ac_file"
49388 fi
a848cd7e
SC
49389_ACEOF
49390cat >>$CONFIG_STATUS <<_ACEOF
49391 sed "$ac_vpsub
49392$extrasub
49393_ACEOF
49394cat >>$CONFIG_STATUS <<\_ACEOF
49395:t
49396/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49397s,@configure_input@,$configure_input,;t t
49398s,@srcdir@,$ac_srcdir,;t t
49399s,@abs_srcdir@,$ac_abs_srcdir,;t t
49400s,@top_srcdir@,$ac_top_srcdir,;t t
49401s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49402s,@builddir@,$ac_builddir,;t t
49403s,@abs_builddir@,$ac_abs_builddir,;t t
49404s,@top_builddir@,$ac_top_builddir,;t t
49405s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49406s,@INSTALL@,$ac_INSTALL,;t t
49407" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49408 rm -f $tmp/stdin
49409 if test x"$ac_file" != x-; then
49410 mv $tmp/out $ac_file
49411 else
49412 cat $tmp/out
49413 rm -f $tmp/out
49414 fi
49415
ceec2216
RL
49416 # Run the commands associated with the file.
49417 case $ac_file in
49418 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49419 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49420 esac
a848cd7e
SC
49421done
49422_ACEOF
49423cat >>$CONFIG_STATUS <<\_ACEOF
49424
49425#
49426# CONFIG_HEADER section.
49427#
49428
49429# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49430# NAME is the cpp macro being defined and VALUE is the value it is being given.
49431#
49432# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49433ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49434ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49435ac_dC=' '
49436ac_dD=',;t'
49437# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49438ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49439ac_uB='$,\1#\2define\3'
49440ac_uC=' '
49441ac_uD=',;t'
49442
49443for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49444 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49445 case $ac_file in
49446 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49447 cat >$tmp/stdin
49448 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49450 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49451 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49452 * ) ac_file_in=$ac_file.in ;;
49453 esac
49454
49455 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49456echo "$as_me: creating $ac_file" >&6;}
49457
49458 # First look for the input files in the build tree, otherwise in the
49459 # src tree.
49460 ac_file_inputs=`IFS=:
49461 for f in $ac_file_in; do
49462 case $f in
49463 -) echo $tmp/stdin ;;
49464 [\\/$]*)
ac1cb8d3
VS
49465 # Absolute (can't be DOS-style, as IFS=:)
49466 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49467echo "$as_me: error: cannot find input file: $f" >&2;}
49468 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49469 # Do quote $f, to prevent DOS paths from being IFS'd.
49470 echo "$f";;
a848cd7e 49471 *) # Relative
ac1cb8d3
VS
49472 if test -f "$f"; then
49473 # Build tree
49474 echo "$f"
49475 elif test -f "$srcdir/$f"; then
49476 # Source tree
49477 echo "$srcdir/$f"
49478 else
49479 # /dev/null tree
49480 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49481echo "$as_me: error: cannot find input file: $f" >&2;}
49482 { (exit 1); exit 1; }; }
ac1cb8d3 49483 fi;;
a848cd7e
SC
49484 esac
49485 done` || { (exit 1); exit 1; }
49486 # Remove the trailing spaces.
ac1cb8d3 49487 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49488
49489_ACEOF
49490
49491# Transform confdefs.h into two sed scripts, `conftest.defines' and
49492# `conftest.undefs', that substitutes the proper values into
49493# config.h.in to produce config.h. The first handles `#define'
49494# templates, and the second `#undef' templates.
49495# And first: Protect against being on the right side of a sed subst in
49496# config.status. Protect against being in an unquoted here document
49497# in config.status.
49498rm -f conftest.defines conftest.undefs
49499# Using a here document instead of a string reduces the quoting nightmare.
49500# Putting comments in sed scripts is not portable.
49501#
49502# `end' is used to avoid that the second main sed command (meant for
49503# 0-ary CPP macros) applies to n-ary macro definitions.
49504# See the Autoconf documentation for `clear'.
49505cat >confdef2sed.sed <<\_ACEOF
49506s/[\\&,]/\\&/g
49507s,[\\$`],\\&,g
49508t clear
49509: clear
ac1cb8d3 49510s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49511t end
ac1cb8d3 49512s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49513: end
49514_ACEOF
49515# If some macros were called several times there might be several times
49516# the same #defines, which is useless. Nevertheless, we may not want to
49517# sort them, since we want the *last* AC-DEFINE to be honored.
49518uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49519sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49520rm -f confdef2sed.sed
49521
49522# This sed command replaces #undef with comments. This is necessary, for
49523# example, in the case of _POSIX_SOURCE, which is predefined and required
49524# on some systems where configure will not decide to define it.
49525cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49526s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49527_ACEOF
49528
49529# Break up conftest.defines because some shells have a limit on the size
49530# of here documents, and old seds have small limits too (100 cmds).
49531echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49532echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49533echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49534echo ' :' >>$CONFIG_STATUS
49535rm -f conftest.tail
49536while grep . conftest.defines >/dev/null
49537do
49538 # Write a limited-size here document to $tmp/defines.sed.
49539 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49540 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49541 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49542 # Work around the forget-to-reset-the-flag bug.
49543 echo 't clr' >>$CONFIG_STATUS
49544 echo ': clr' >>$CONFIG_STATUS
49545 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49546 echo 'CEOF
49547 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49548 rm -f $tmp/in
49549 mv $tmp/out $tmp/in
49550' >>$CONFIG_STATUS
49551 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49552 rm -f conftest.defines
49553 mv conftest.tail conftest.defines
49554done
49555rm -f conftest.defines
49556echo ' fi # grep' >>$CONFIG_STATUS
49557echo >>$CONFIG_STATUS
49558
49559# Break up conftest.undefs because some shells have a limit on the size
49560# of here documents, and old seds have small limits too (100 cmds).
49561echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49562rm -f conftest.tail
49563while grep . conftest.undefs >/dev/null
49564do
49565 # Write a limited-size here document to $tmp/undefs.sed.
49566 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49567 # Speed up: don't consider the non `#undef'
ac1cb8d3 49568 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
49569 # Work around the forget-to-reset-the-flag bug.
49570 echo 't clr' >>$CONFIG_STATUS
49571 echo ': clr' >>$CONFIG_STATUS
49572 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49573 echo 'CEOF
49574 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49575 rm -f $tmp/in
49576 mv $tmp/out $tmp/in
49577' >>$CONFIG_STATUS
49578 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49579 rm -f conftest.undefs
49580 mv conftest.tail conftest.undefs
49581done
49582rm -f conftest.undefs
49583
49584cat >>$CONFIG_STATUS <<\_ACEOF
49585 # Let's still pretend it is `configure' which instantiates (i.e., don't
49586 # use $as_me), people would be surprised to read:
49587 # /* config.h. Generated by config.status. */
49588 if test x"$ac_file" = x-; then
49589 echo "/* Generated by configure. */" >$tmp/config.h
49590 else
49591 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49592 fi
49593 cat $tmp/in >>$tmp/config.h
49594 rm -f $tmp/in
49595 if test x"$ac_file" != x-; then
49596 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49597 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49598echo "$as_me: $ac_file is unchanged" >&6;}
49599 else
49600 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49601$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49602 X"$ac_file" : 'X\(//\)[^/]' \| \
49603 X"$ac_file" : 'X\(//\)$' \| \
49604 X"$ac_file" : 'X\(/\)' \| \
49605 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49606echo X"$ac_file" |
49607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49609 /^X\(\/\/\)$/{ s//\1/; q; }
49610 /^X\(\/\).*/{ s//\1/; q; }
49611 s/.*/./; q'`
49612 { if $as_mkdir_p; then
49613 mkdir -p "$ac_dir"
49614 else
49615 as_dir="$ac_dir"
49616 as_dirs=
49617 while test ! -d "$as_dir"; do
49618 as_dirs="$as_dir $as_dirs"
49619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49620$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49621 X"$as_dir" : 'X\(//\)[^/]' \| \
49622 X"$as_dir" : 'X\(//\)$' \| \
49623 X"$as_dir" : 'X\(/\)' \| \
49624 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49625echo X"$as_dir" |
49626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49628 /^X\(\/\/\)$/{ s//\1/; q; }
49629 /^X\(\/\).*/{ s//\1/; q; }
49630 s/.*/./; q'`
49631 done
49632 test ! -n "$as_dirs" || mkdir $as_dirs
49633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49634echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49635 { (exit 1); exit 1; }; }; }
49636
49637 rm -f $ac_file
49638 mv $tmp/config.h $ac_file
49639 fi
49640 else
49641 cat $tmp/config.h
49642 rm -f $tmp/config.h
49643 fi
49644done
49645_ACEOF
49646cat >>$CONFIG_STATUS <<\_ACEOF
49647
49648#
49649# CONFIG_COMMANDS section.
49650#
49651for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49652 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49653 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49654 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49655$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49656 X"$ac_dest" : 'X\(//\)[^/]' \| \
49657 X"$ac_dest" : 'X\(//\)$' \| \
49658 X"$ac_dest" : 'X\(/\)' \| \
49659 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49660echo X"$ac_dest" |
49661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49663 /^X\(\/\/\)$/{ s//\1/; q; }
49664 /^X\(\/\).*/{ s//\1/; q; }
49665 s/.*/./; q'`
ac1cb8d3
VS
49666 { if $as_mkdir_p; then
49667 mkdir -p "$ac_dir"
49668 else
49669 as_dir="$ac_dir"
49670 as_dirs=
49671 while test ! -d "$as_dir"; do
49672 as_dirs="$as_dir $as_dirs"
49673 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49674$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49675 X"$as_dir" : 'X\(//\)[^/]' \| \
49676 X"$as_dir" : 'X\(//\)$' \| \
49677 X"$as_dir" : 'X\(/\)' \| \
49678 . : '\(.\)' 2>/dev/null ||
49679echo X"$as_dir" |
49680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49682 /^X\(\/\/\)$/{ s//\1/; q; }
49683 /^X\(\/\).*/{ s//\1/; q; }
49684 s/.*/./; q'`
49685 done
49686 test ! -n "$as_dirs" || mkdir $as_dirs
49687 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49688echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49689 { (exit 1); exit 1; }; }; }
49690
a848cd7e
SC
49691 ac_builddir=.
49692
49693if test "$ac_dir" != .; then
49694 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49695 # A "../" for each directory in $ac_dir_suffix.
49696 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49697else
49698 ac_dir_suffix= ac_top_builddir=
49699fi
49700
49701case $srcdir in
49702 .) # No --srcdir option. We are building in place.
49703 ac_srcdir=.
49704 if test -z "$ac_top_builddir"; then
49705 ac_top_srcdir=.
49706 else
49707 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49708 fi ;;
49709 [\\/]* | ?:[\\/]* ) # Absolute path.
49710 ac_srcdir=$srcdir$ac_dir_suffix;
49711 ac_top_srcdir=$srcdir ;;
49712 *) # Relative path.
49713 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49714 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49715esac
ac1cb8d3
VS
49716
49717# Do not use `cd foo && pwd` to compute absolute paths, because
49718# the directories may not exist.
49719case `pwd` in
49720.) ac_abs_builddir="$ac_dir";;
49721*)
49722 case "$ac_dir" in
49723 .) ac_abs_builddir=`pwd`;;
49724 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49725 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49726 esac;;
49727esac
49728case $ac_abs_builddir in
49729.) ac_abs_top_builddir=${ac_top_builddir}.;;
49730*)
49731 case ${ac_top_builddir}. in
49732 .) ac_abs_top_builddir=$ac_abs_builddir;;
49733 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49734 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49735 esac;;
49736esac
49737case $ac_abs_builddir in
49738.) ac_abs_srcdir=$ac_srcdir;;
49739*)
49740 case $ac_srcdir in
49741 .) ac_abs_srcdir=$ac_abs_builddir;;
49742 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49743 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49744 esac;;
49745esac
49746case $ac_abs_builddir in
49747.) ac_abs_top_srcdir=$ac_top_srcdir;;
49748*)
49749 case $ac_top_srcdir in
49750 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49751 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49752 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49753 esac;;
49754esac
a848cd7e
SC
49755
49756
49757 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
49758echo "$as_me: executing $ac_dest commands" >&6;}
49759 case $ac_dest in
5c60e845
MW
49760 rcdefs.h )
49761 mkdir -p $outdir &&
49762 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
49763 ;;
ceec2216
RL
49764 wx-config ) rm -f wx-config
49765 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
49766 ;;
a848cd7e
SC
49767 esac
49768done
49769_ACEOF
49770
49771cat >>$CONFIG_STATUS <<\_ACEOF
49772
49773{ (exit 0); exit 0; }
49774_ACEOF
49775chmod +x $CONFIG_STATUS
49776ac_clean_files=$ac_clean_files_save
49777
49778
49779# configure is writing to config.log, and then calls config.status.
49780# config.status does its own redirection, appending to config.log.
49781# Unfortunately, on DOS this fails, as config.log is still kept open
49782# by configure, so config.status won't be able to write to it; its
49783# output is simply discarded. So we exec the FD to /dev/null,
49784# effectively closing config.log, so it can be properly (re)opened and
49785# appended to by config.status. When coming back to configure, we
49786# need to make the FD available again.
49787if test "$no_create" != yes; then
49788 ac_cs_success=:
49789 ac_config_status_args=
49790 test "$silent" = yes &&
49791 ac_config_status_args="$ac_config_status_args --quiet"
49792 exec 5>/dev/null
49793 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49794 exec 5>>config.log
49795 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49796 # would make configure fail if this is the last instruction.
49797 $ac_cs_success || { (exit 1); exit 1; }
49798fi
49799
49800#
49801# CONFIG_SUBDIRS section.
49802#
49803if test "$no_recursion" != yes; then
49804
49805 # Remove --cache-file and --srcdir arguments so they do not pile up.
49806 ac_sub_configure_args=
49807 ac_prev=
49808 for ac_arg in $ac_configure_args; do
49809 if test -n "$ac_prev"; then
49810 ac_prev=
49811 continue
49812 fi
49813 case $ac_arg in
49814 -cache-file | --cache-file | --cache-fil | --cache-fi \
49815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
49816 ac_prev=cache_file ;;
49817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
49818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
49819 | --c=*)
49820 ;;
49821 --config-cache | -C)
49822 ;;
49823 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
49824 ac_prev=srcdir ;;
49825 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
49826 ;;
49827 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
49828 ac_prev=prefix ;;
49829 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
49830 ;;
49831 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
49832 esac
49833 done
49834
49835 # Always prepend --prefix to ensure using the same prefix
49836 # in subdir configurations.
49837 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
49838
49839 ac_popdir=`pwd`
49840 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
49841
49842 # Do not complain, so a configure script can configure whichever
49843 # parts of a large source tree are present.
49844 test -d $srcdir/$ac_dir || continue
49845
49846 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
49847echo "$as_me: configuring in $ac_dir" >&6;}
49848 { if $as_mkdir_p; then
49849 mkdir -p "$ac_dir"
49850 else
49851 as_dir="$ac_dir"
49852 as_dirs=
49853 while test ! -d "$as_dir"; do
49854 as_dirs="$as_dir $as_dirs"
49855 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49857 X"$as_dir" : 'X\(//\)[^/]' \| \
49858 X"$as_dir" : 'X\(//\)$' \| \
49859 X"$as_dir" : 'X\(/\)' \| \
49860 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49861echo X"$as_dir" |
49862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49864 /^X\(\/\/\)$/{ s//\1/; q; }
49865 /^X\(\/\).*/{ s//\1/; q; }
49866 s/.*/./; q'`
49867 done
49868 test ! -n "$as_dirs" || mkdir $as_dirs
49869 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49870echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49871 { (exit 1); exit 1; }; }; }
49872
49873 ac_builddir=.
49874
49875if test "$ac_dir" != .; then
49876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49877 # A "../" for each directory in $ac_dir_suffix.
49878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49879else
49880 ac_dir_suffix= ac_top_builddir=
49881fi
49882
49883case $srcdir in
49884 .) # No --srcdir option. We are building in place.
49885 ac_srcdir=.
49886 if test -z "$ac_top_builddir"; then
49887 ac_top_srcdir=.
49888 else
49889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49890 fi ;;
49891 [\\/]* | ?:[\\/]* ) # Absolute path.
49892 ac_srcdir=$srcdir$ac_dir_suffix;
49893 ac_top_srcdir=$srcdir ;;
49894 *) # Relative path.
49895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49897esac
ac1cb8d3
VS
49898
49899# Do not use `cd foo && pwd` to compute absolute paths, because
49900# the directories may not exist.
49901case `pwd` in
49902.) ac_abs_builddir="$ac_dir";;
49903*)
49904 case "$ac_dir" in
49905 .) ac_abs_builddir=`pwd`;;
49906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49908 esac;;
49909esac
49910case $ac_abs_builddir in
49911.) ac_abs_top_builddir=${ac_top_builddir}.;;
49912*)
49913 case ${ac_top_builddir}. in
49914 .) ac_abs_top_builddir=$ac_abs_builddir;;
49915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49917 esac;;
49918esac
49919case $ac_abs_builddir in
49920.) ac_abs_srcdir=$ac_srcdir;;
49921*)
49922 case $ac_srcdir in
49923 .) ac_abs_srcdir=$ac_abs_builddir;;
49924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49926 esac;;
49927esac
49928case $ac_abs_builddir in
49929.) ac_abs_top_srcdir=$ac_top_srcdir;;
49930*)
49931 case $ac_top_srcdir in
49932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49935 esac;;
49936esac
a848cd7e
SC
49937
49938
49939 cd $ac_dir
49940
49941 # Check for guested configure; otherwise get Cygnus style configure.
49942 if test -f $ac_srcdir/configure.gnu; then
49943 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
49944 elif test -f $ac_srcdir/configure; then
49945 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
49946 elif test -f $ac_srcdir/configure.in; then
49947 ac_sub_configure=$ac_configure
49948 else
49949 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
49950echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
49951 ac_sub_configure=
49952 fi
49953
49954 # The recursion is here.
49955 if test -n "$ac_sub_configure"; then
49956 # Make the cache file name correct relative to the subdirectory.
49957 case $cache_file in
49958 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
49959 *) # Relative path.
ac1cb8d3 49960 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
49961 esac
49962
49963 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
49964echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
49965 # The eval makes quoting arguments work.
49966 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
49967 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
49968 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
49969echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
49970 { (exit 1); exit 1; }; }
49971 fi
49972
5d7b7554 49973 cd "$ac_popdir"
a848cd7e
SC
49974 done
49975fi
49976
49977
49978echo
77ffb593 49979echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 49980echo ""
4d4ff94c 49981echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 49982echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 49983
77ffb593
JS
49984echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
49985echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
49986echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 49987
77ffb593 49988echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
49989echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
49990echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 49991
77ffb593 49992echo " Which libraries should wxWidgets use?"
a848cd7e
SC
49993echo " jpeg ${wxUSE_LIBJPEG-none}"
49994echo " png ${wxUSE_LIBPNG-none}"
49995echo " regex ${wxUSE_REGEX}"
49996echo " tiff ${wxUSE_LIBTIFF-none}"
49997if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
49998echo " xpm ${wxUSE_LIBXPM-none}"
49999fi
50000echo " zlib ${wxUSE_ZLIB}"
50001echo " odbc ${wxUSE_ODBC}"
50002echo " expat ${wxUSE_EXPAT}"
50003echo " libmspack ${wxUSE_LIBMSPACK}"
50004echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50005echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50006echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50007echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50008
50009echo ""
50010